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.
1312 lines
2.7 MiB
1312 lines
2.7 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[6277],{80205:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Mt}});var ce=we(5891),at=we(59301),Lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},kt=Lt,Dt=we(88853),jt=function(Et,xt){return at.createElement(Dt.Z,(0,ce.Z)({},Et,{ref:xt,icon:kt}))},Ge=at.forwardRef(jt),Mt=Ge},1301:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Mt}});var ce=we(5891),at=we(59301),Lt={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"},kt=Lt,Dt=we(88853),jt=function(Et,xt){return at.createElement(Dt.Z,(0,ce.Z)({},Et,{ref:xt,icon:kt}))},Ge=at.forwardRef(jt),Mt=Ge},96830:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Mt}});var ce=we(5891),at=we(59301),Lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},kt=Lt,Dt=we(88853),jt=function(Et,xt){return at.createElement(Dt.Z,(0,ce.Z)({},Et,{ref:xt,icon:kt}))},Ge=at.forwardRef(jt),Mt=Ge},79906:function(){"use strict"},93938:function($t,zn){"use strict";zn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52222:function($t,zn){"use strict";zn.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},52525:function($t,zn){"use strict";zn.Z={titlesize:"titlesize___RiFfV",labelWrap:"labelWrap___gNw3Q",label:"label___uujJZ",labelContent:"labelContent___QsIDL",selectSchool:"selectSchool___HL1ax",dataPicker:"dataPicker___Ux1tp",itemWrap:"itemWrap___Q0uQz",img:"img___bqnNM",itemContent:"itemContent___FvPMp",nameWrap:"nameWrap___ALKio",name:"name___Q7c5Q",actionGroup:"actionGroup___qiWs0",schoolWrap:"schoolWrap___dXuoo",school:"school___CW5RX",colorOrange:"colorOrange___EkZAA",colorYellow:"colorYellow___evRzy",graaytitle:"graaytitle___LUmPS"}},37404:function(){"use strict";function $t(Re,te,ne,de){ne===void 0&&(ne=0),de===void 0&&(de=1/0),this._name=Re,this._defaultValue=te,this._minimum=ne,this._maximum=de}Object.defineProperty($t.prototype,"name",{get:function(){return this._name},set:function(Re){if(typeof Re!="string"||Re==="")throw new Error("Shape name must be a valid string.");this._name=Re}}),Object.defineProperty($t.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Re){if(typeof Re!="number"||isNaN(Re))throw new Error("The default value must be a real number, not: "+Re);this._defaultValue=Re}}),Object.defineProperty($t.prototype,"minimum",{get:function(){return this._minimum},set:function(Re){if(typeof Re!="number"||isNaN(Re))throw new Error("Minimum must be a real number, not: "+Re);this._minimum=Re}}),Object.defineProperty($t.prototype,"maximum",{get:function(){return this._maximum},set:function(Re){if(typeof Re!="number"||isNaN(Re))throw new Error("Maximum must be a real number, not: "+Re);this._maximum=Re}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Re,te){var ne=go.Shape._FigureParameters[Re];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Re,te,ne){if(!(ne instanceof $t))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var de=go.Shape._FigureParameters[Re];de||(de=[],go.Shape._FigureParameters[Re]=de),de[te]=ne};var zn=[];function we(Re,te){var ne=zn.pop();return ne===void 0?new go.Point(Re,te):(ne.x=Re,ne.y=te,ne)}function ce(){var Re=zn.pop();return Re===void 0?new go.Point:Re}function at(Re){zn.push(Re)}function Lt(Re,te,ne,de,le,pe,xe,Ae,ke){ke||(ke=new go.Point);var Me=Re-ne,ot=le-xe,dt=NaN,yt=NaN;if(Me===0)if(ot===0)Re===ne&&(dt=Re,yt=te);else{var vt=(pe-Ae)/ot,Kt=pe-vt*le;dt=Re,yt=vt*dt+Kt}else if(ot===0){var wt=(te-de)/Me,It=te-wt*Re;dt=le,yt=wt*dt+It}else{var wt=(te-de)/Me,vt=(pe-Ae)/ot,It=te-wt*Re,Kt=pe-vt*le;dt=(Kt-It)/(wt-vt),yt=wt*dt+It}return ke.x=dt,ke.y=yt,ke}function kt(Re,te,ne,de,le,pe,xe,Ae,ke,Me,ot,dt,yt,vt){var Kt=1-ke,wt=ke,It=Re*Kt+ne*wt,Yt=te*Kt+de*wt,yn=ne*Kt+le*wt,Mi=de*Kt+pe*wt,wi=le*Kt+xe*wt,Nn=pe*Kt+Ae*wt,ui=It*Kt+yn*wt,tt=Yt*Kt+Mi*wt,He=yn*Kt+wi*wt,mn=Mi*Kt+Nn*wt,Zn=ui*Kt+He*wt,Qn=tt*Kt+mn*wt;Me.x=It,Me.y=Yt,ot.x=ui,ot.y=tt,dt.x=Zn,dt.y=Qn,yt.x=He,yt.y=mn,vt.x=wi,vt.y=Nn}var Dt=new go.Spot(.156,.156),jt=new go.Spot(.844,.844),Ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new $t("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=5),de=Math.min(de,te/3),de=Math.min(de,ne/3);var le=de*Ge,pe=new go.Geometry().add(new go.PathFigure(de,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-de,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,de,te-le,0,te,le)).add(new go.PathSegment(go.PathSegment.Line,te,ne-de)).add(new go.PathSegment(go.PathSegment.Bezier,te-de,ne,te,ne-le,te-le,ne)).add(new go.PathSegment(go.PathSegment.Line,de,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-de,le,ne,0,ne-le)).add(new go.PathSegment(go.PathSegment.Line,0,de)).add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()));return le>1&&(pe.spot1=new go.Spot(0,0,le,le),pe.spot2=new go.Spot(1,1,-le,-le)),pe}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Re,te,ne){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=ne/2,de.endX=te,de.endY=ne/2,de}),go.Shape.defineFigureGenerator("LineV",function(Re,te,ne){var de=new go.Geometry(go.Geometry.Line);return de.startX=te/2,de.startY=0,de.endX=te/2,de.endY=ne,de}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Re,te,ne){var de=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(de*te,(1-de)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,de*ne)).add(new go.PathSegment(go.PathSegment.Move,de*te,de*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,(1-de)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Re,te,ne){var de=te/2,le=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,de,de,de,de).close()));return le.spot1=Dt,le.spot2=jt,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Line1",function(Re,te,ne){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=0,de.endX=te,de.endY=ne,de}),go.Shape.defineFigureGenerator("Line2",function(Re,te,ne){var de=new go.Geometry(go.Geometry.Line);return de.startX=te,de.startY=0,de.endX=0,de.endY=ne,de}),go.Shape.defineFigureGenerator("Curve1",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Ge*te,0,te,(1-Ge)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Ge*ne,(1-Ge)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Ge*ne,Ge*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ge)*te,0,0,(1-Ge)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new $t("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)?de=.1:de<-1?de=-1:de>1&&(de=1);var le=Math.abs(de)*te;if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new $t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)?de=10:de<-te?de=-te:de>te&&(de=te);var le=Math.abs(de);if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.setFigureParameter("Trapezoid1",0,new $t("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)?de=.2:de<.5?de=-.5:de>.5&&(de=.5);var le=Math.abs(de)*te;if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new $t("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)?de=20:de<-te?de=-te/2:de>te&&(de=te/2);var le=Math.abs(de);if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}}),go.Shape.setFigureParameter("ManualOperation",0,new $t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)?de=10:de<-te?de=-te/2:de>te&&(de=te/2);var le=Math.abs(de);if(de===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return de>0?pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-le,ne)).add(new go.PathSegment(go.PathSegment.Line,le,ne).close())):pe.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,te-le,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),le<te/2&&pe.setSpots(le/te,0,(te-le)/te,1),pe}});var Mt=[];function Ct(){var Re=Mt.pop();return Re===void 0?[]:Re}function Et(Re){Re.length=0,Mt.push(Re)}function xt(Re){for(var te=Ct(),ne=.5,de=.5,le=Math.PI*1.5,pe=0,xe=0;xe<Re;xe++)pe=2*Math.PI/Re*xe+le,te[xe]=new go.Point(de+ne*Math.cos(pe),de+ne*Math.sin(pe));return te.push(te[0]),te}function Gt(Re){var te=Ut(Re),ne=Ct();ne[0]=te[0];for(var de=1,le=1;de<te.length;de+=2,le+=3)ne[le]=te[de],ne[le+1]=te[de],ne[le+2]=te[de+1];return Et(te),ne}function Ut(Re){for(var te=xt(Re),ne=Ct(),de=Math.floor(te.length/2),le=te.length-1,pe=Re%2===0?2:1,xe=0;xe<le;xe++){var Ae=te[xe],ke=te[xe+1],Me=te[(de+xe-1)%le],ot=te[(de+xe+pe)%le];ne[xe*2]=Ae,ne[xe*2+1]=Lt(Ae.x,Ae.y,Me.x,Me.y,ke.x,ke.y,ot.x,ot.y,new go.Point)}return ne[ne.length]=ne[0],Et(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Re,te,ne){var de=xt(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<5;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.2,.22),le.spot2=new go.Spot(.8,.9),le}),go.Shape.defineFigureGenerator("Hexagon",function(Re,te,ne){var de=xt(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<6;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.07,.25),le.spot2=new go.Spot(.93,.75),le}),go.Shape.defineFigureGenerator("Heptagon",function(Re,te,ne){var de=xt(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<7;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.2,.15),le.spot2=new go.Spot(.8,.85),le}),go.Shape.defineFigureGenerator("Octagon",function(Re,te,ne){var de=xt(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<8;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.15,.15),le.spot2=new go.Spot(.85,.85),le}),go.Shape.defineFigureGenerator("Nonagon",function(Re,te,ne){var de=xt(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<9;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.17,.13),le.spot2=new go.Spot(.82,.82),le}),go.Shape.defineFigureGenerator("Decagon",function(Re,te,ne){var de=xt(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<10;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("Dodecagon",function(Re,te,ne){var de=xt(12),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<12;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("FivePointedStar",function(Re,te,ne){var de=Ut(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<10;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.266,.333),le.spot2=new go.Spot(.733,.733),le}),go.Shape.defineFigureGenerator("SixPointedStar",function(Re,te,ne){var de=Ut(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<12;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.17,.25),le.spot2=new go.Spot(.83,.75),le}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Re,te,ne){var de=Ut(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<14;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("EightPointedStar",function(Re,te,ne){var de=Ut(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<16;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.25,.25),le.spot2=new go.Spot(.75,.75),le}),go.Shape.defineFigureGenerator("NinePointedStar",function(Re,te,ne){var de=Ut(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<18;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("TenPointedStar",function(Re,te,ne){var de=Ut(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<20;xe++)pe.add(new go.PathSegment(go.PathSegment.Line,de[xe].x*te,de[xe].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),Et(de),le.spot1=new go.Spot(.281,.261),le.spot2=new go.Spot(.723,.748),le}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Re,te,ne){var de=Gt(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<de.length;xe+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[xe+2].x*te,de[xe+2].y*ne,de[xe].x*te,de[xe].y*ne,de[xe+1].x*te,de[xe+1].y*ne));return pe.segments.last().close(),Et(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Re,te,ne){var de=Gt(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<de.length;xe+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[xe+2].x*te,de[xe+2].y*ne,de[xe].x*te,de[xe].y*ne,de[xe+1].x*te,de[xe+1].y*ne));return pe.segments.last().close(),Et(de),le.spot1=new go.Spot(.17,.222),le.spot2=new go.Spot(.833,.777),le}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Re,te,ne){var de=Gt(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<de.length;xe+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[xe+2].x*te,de[xe+2].y*ne,de[xe].x*te,de[xe].y*ne,de[xe+1].x*te,de[xe+1].y*ne));return pe.segments.last().close(),Et(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Re,te,ne){var de=Gt(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<de.length;xe+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[xe+2].x*te,de[xe+2].y*ne,de[xe].x*te,de[xe].y*ne,de[xe+1].x*te,de[xe+1].y*ne));return pe.segments.last().close(),Et(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Re,te,ne){var de=Gt(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<de.length;xe+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[xe+2].x*te,de[xe+2].y*ne,de[xe].x*te,de[xe].y*ne,de[xe+1].x*te,de[xe+1].y*ne));return pe.segments.last().close(),Et(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Re,te,ne){var de=Gt(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var xe=1;xe<de.length;xe+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[xe+2].x*te,de[xe+2].y*ne,de[xe].x*te,de[xe].y*ne,de[xe+1].x*te,de[xe+1].y*ne));return pe.segments.last().close(),Et(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.setFigureParameter("FramedRectangle",0,new $t("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new $t("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Re,te,ne){var de=Re?Re.parameter1:NaN,le=Re?Re.parameter2:NaN;isNaN(de)&&(de=8),isNaN(le)&&(le=8);var pe=new go.Geometry,xe=new go.PathFigure(0,0,!0);return pe.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de<te/2&&le<ne/2&&(xe.add(new go.PathSegment(go.PathSegment.Move,de,le)),xe.add(new go.PathSegment(go.PathSegment.Line,de,ne-le)),xe.add(new go.PathSegment(go.PathSegment.Line,te-de,ne-le)),xe.add(new go.PathSegment(go.PathSegment.Line,te-de,le).close())),pe.setSpots(0,0,1,1,de,le,-de,-le),pe}),go.Shape.setFigureParameter("Ring",0,new $t("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=8);var le=te/2,pe=new go.Geometry,xe=new go.PathFigure(te,te/2,!0);pe.add(xe),xe.add(new go.PathSegment(go.PathSegment.Arc,0,360,le,le,le,le).close());var Ae=Math.max(le-de,0);return Ae>0&&(xe.add(new go.PathSegment(go.PathSegment.Move,te/2+Ae,te/2)),xe.add(new go.PathSegment(go.PathSegment.Arc,0,-360,le,le,Ae,Ae).close())),pe.spot1=Dt,pe.spot2=jt,pe.defaultStretch=go.GraphObject.Uniform,pe}),go.Shape.defineFigureGenerator("Cloud",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Re,te,ne){var de=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(de*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,de*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-de)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,de*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,de*ne).close())).setSpots(de/2,de/2,1-de/2,1-de/2)}),go.Shape.setFigureParameter("Pie",0,new $t("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new $t("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Re,te,ne){var de=Re?Re.parameter1:NaN,le=Re?Re.parameter2:NaN;isNaN(de)&&(de=0),isNaN(le)&&(le=315);var pe=de%360;pe<0&&(pe+=360);var xe=le%360,Ae=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(Ae,Ae).add(new go.PathSegment(go.PathSegment.Arc,pe,xe,Ae,Ae,Ae,Ae).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Re,te,ne){var de=Ge/Math.SQRT2*.5,le=Math.SQRT2/2,pe=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,le*te,pe*ne,te,(1-de)*ne,(le+de)*te,(pe+de)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new $t("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=30);var le=Math.min(de,te)/2,pe=te/2,xe=ne/2;return new go.Geometry().add(new go.PathFigure(pe-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,pe+le,0)).add(new go.PathSegment(go.PathSegment.Line,pe+le,xe-le)).add(new go.PathSegment(go.PathSegment.Line,te,xe-le)).add(new go.PathSegment(go.PathSegment.Line,te,xe+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,xe+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-le,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-le,xe+le)).add(new go.PathSegment(go.PathSegment.Line,0,xe+le)).add(new go.PathSegment(go.PathSegment.Line,0,xe-le)).add(new go.PathSegment(go.PathSegment.Line,pe-le,xe-le).close()))}),go.Shape.setFigureParameter("ThinCross",0,new $t("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=Math.min(de,te)/2,pe=te/2,xe=ne/2;return new go.Geometry().add(new go.PathFigure(pe-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,pe+le,0)).add(new go.PathSegment(go.PathSegment.Line,pe+le,xe-le)).add(new go.PathSegment(go.PathSegment.Line,te,xe-le)).add(new go.PathSegment(go.PathSegment.Line,te,xe+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,xe+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-le,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-le,xe+le)).add(new go.PathSegment(go.PathSegment.Line,0,xe+le)).add(new go.PathSegment(go.PathSegment.Line,0,xe-le)).add(new go.PathSegment(go.PathSegment.Line,pe-le,xe-le).close()))}),go.Shape.setFigureParameter("ThickX",0,new $t("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Re,te,ne){var de=Re?Re.parameter1:NaN;if((isNaN(de)||de<0)&&(de=30),te===0||ne===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=te,le.endY=ne,le}else{var pe=te/2,xe=ne/2,Ae=Math.atan2(ne,te),ke=de-Math.min(Math.cos(Ae)*de/2,pe),Me=de-Math.min(Math.sin(Ae)*de/2,xe),le=new go.Geometry,ot=new go.PathFigure(ke,0,!0);return le.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,pe,.2*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,te-ke,0)),ot.add(new go.PathSegment(go.PathSegment.Line,te,Me)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*te,xe)),ot.add(new go.PathSegment(go.PathSegment.Line,te,ne-Me)),ot.add(new go.PathSegment(go.PathSegment.Line,te-ke,ne)),ot.add(new go.PathSegment(go.PathSegment.Line,pe,.8*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,ke,ne)),ot.add(new go.PathSegment(go.PathSegment.Line,0,ne-Me)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,xe)),ot.add(new go.PathSegment(go.PathSegment.Line,0,Me).close()),le}}),go.Shape.setFigureParameter("ThinX",0,new $t("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=new go.Geometry,pe=new go.PathFigure(.1*te,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),le}),go.Shape.setFigureParameter("SquareIBeam",0,new $t("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,pe=new go.PathFigure(0,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,de*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*te,de*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*te,(1-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,(1-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*te,(1-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*te,de*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,de*ne).close()),le}),go.Shape.setFigureParameter("RoundedIBeam",0,new $t("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.5);var le=new go.Geometry,pe=new go.PathFigure(0,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-de)*te,.25*ne,Math.abs(1-de)*te,.75*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*te,.75*ne,de*te,.25*ne).close()),le}),go.Shape.defineFigureGenerator("HalfEllipse",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Ge*te,0,te,(.5-Ge/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Ge/2)*ne,Ge*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.4*te,.6*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var pe=.2,xe=.3,Ae=0,ke=pe*Ge;return le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+xe)*te,(.5+pe+Ae)*ne,(.5-pe+xe)*te,(.5+ke+Ae)*ne,(.5-ke+xe)*te,(.5+pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+xe)*te,(.5+Ae)*ne,(.5+ke+xe)*te,(.5+pe+Ae)*ne,(.5+pe+xe)*te,(.5+ke+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+xe)*te,(.5-pe+Ae)*ne,(1-.5+pe+xe)*te,(.5-ke+Ae)*ne,(.5+ke+xe)*te,(.5-pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-ke+xe)*te,(.5-pe+Ae)*ne,(.5-pe+xe+.05)*te,(.5-ke+Ae-.02)*ne)),pe=.2,xe=0,Ae=-.3,ke=pe*Ge,le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+xe)*te,(.5+Ae)*ne,(.5+ke+xe)*te,(.5+pe+Ae)*ne,(.5+pe+xe)*te,(.5+ke+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+xe)*te,(.5-pe+Ae)*ne,(1-.5+pe+xe)*te,(.5-ke+Ae)*ne,(.5+ke+xe)*te,(.5-pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+xe)*te,(.5+Ae)*ne,(.5-ke+xe)*te,(.5-pe+Ae)*ne,(.5-pe+xe)*te,(.5-ke+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ke+xe)*te,(.5+pe+Ae)*ne,(.5-pe+xe)*te,(.5+ke+Ae)*ne,(.5-ke+xe)*te,(.5+pe+Ae)*ne)),pe=.2,xe=-.3,Ae=0,ke=pe*Ge,le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+xe)*te,(.5-pe+Ae)*ne,(1-.5+pe+xe-.05)*te,(.5-ke+Ae-.02)*ne,(.5+ke+xe)*te,(.5-pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+xe)*te,(.5+Ae)*ne,(.5-ke+xe)*te,(.5-pe+Ae)*ne,(.5-pe+xe)*te,(.5-ke+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+xe)*te,(.5+pe+Ae)*ne,(.5-pe+xe)*te,(.5+ke+Ae)*ne,(.5-ke+xe)*te,(.5+pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+ke+xe)*te,(.5+pe+Ae)*ne,(.5+pe+xe)*te,(.5+ke+Ae)*ne).close()),de.setSpots(.06,.33,.93,.68),de}),go.Shape.defineFigureGenerator("YinYang",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*.5,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),le.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var pe=.1,xe=.5,Ae=.25;return le.add(new go.PathSegment(go.PathSegment.Move,(xe+pe)*te,Ae*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*xe,ne*Ae,pe*te,pe*te).close()),le=new go.PathFigure(te*.5,0,!1),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Ae=.75,le=new go.PathFigure((xe+pe)*te,Ae*ne,!0),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*xe,ne*Ae,pe*te,pe*te).close()),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Peace",function(Re,te,ne){var de=.8535533905932737,le=.5*te,pe=.5*ne;return new go.Geometry().add(new go.PathFigure(le,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,le,pe,le,pe)).add(new go.PathSegment(go.PathSegment.Line,le,ne)).add(new go.PathSegment(go.PathSegment.Move,le,pe)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,de*ne)).add(new go.PathSegment(go.PathSegment.Move,le,pe)).add(new go.PathSegment(go.PathSegment.Line,de*te,de*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=.5,xe=.5,Ae=.5,ke=new go.PathFigure(xe*te,(Ae-pe)*ne);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-pe)*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),pe=.4,le=Ge*.4;var Me=ce(),ot=ce(),dt=ce(),yt=ce();kt(xe,Ae-pe,xe+le,Ae-pe,xe+pe,Ae-le,xe+pe,Ae,.42,Me,ot,dt,yt,yt);var vt=ce(),Kt=ce(),wt=ce();kt(xe,Ae-pe,xe+le,Ae-pe,xe+pe,Ae-le,xe+pe,Ae,.58,yt,yt,wt,vt,Kt);var It=ce(),Yt=ce(),yn=ce();kt(xe,Ae+pe,xe-le,Ae+pe,xe-pe,Ae+le,xe-pe,Ae,.42,It,Yt,yn,yt,yt);var Mi=ce(),wi=ce(),Nn=ce();return kt(xe,Ae+pe,xe-le,Ae+pe,xe-pe,Ae+le,xe-pe,Ae,.58,yt,yt,Nn,Mi,wi),ke.add(new go.PathSegment(go.PathSegment.Move,Nn.x*te,Nn.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,Mi.x*te,Mi.y*ne,wi.x*te,wi.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,dt.x*te,dt.y*ne,Me.x*te,Me.y*ne,ot.x*te,ot.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,Nn.x*te,Nn.y*ne).close()),ke.add(new go.PathSegment(go.PathSegment.Move,yn.x*te,yn.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,wt.x*te,wt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,vt.x*te,vt.y*ne,Kt.x*te,Kt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,yn.x*te,yn.y*ne,It.x*te,It.y*ne,Yt.x*te,Yt.y*ne).close()),at(Me),at(ot),at(dt),at(yt),at(vt),at(Kt),at(wt),at(It),at(Yt),at(yn),at(Mi),at(wi),at(Nn),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Fragile",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new $t("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=30),de>te&&(de=te);var le=(te-de)/2,pe=le+de;return new go.Geometry().add(new go.PathFigure(pe,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,le,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Re,te,ne){var de=new go.Geometry,le=Ge*.4,pe=.4,xe=.5,Ae=.5,ke=ce(),Me=ce(),ot=ce(),dt=ce(),yt=new go.PathFigure((xe-pe)*te,Ae*ne,!1);de.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne)),kt(xe,Ae-pe,xe+le,Ae-pe,xe+pe,Ae-le,xe+pe,Ae,.44,ot,dt,Me,ke,ke),yt.add(new go.PathSegment(go.PathSegment.Bezier,Me.x*te,Me.y*ne,ot.x*te,ot.y*ne,dt.x*te,dt.y*ne));var vt=we(Me.x,Me.y);kt(xe,Ae-pe,xe+le,Ae-pe,xe+pe,Ae-le,xe+pe,Ae,.56,ke,ke,Me,ot,dt);var Kt=we(Me.x,Me.y);yt.add(new go.PathSegment(go.PathSegment.Line,(vt.x*.1+.95*.9)*te,vt.y*.1*ne)),yt.add(new go.PathSegment(go.PathSegment.Line,.85*te,vt.y*.1*ne)),yt.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),yt.add(new go.PathSegment(go.PathSegment.Line,te,0)),yt.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),yt.add(new go.PathSegment(go.PathSegment.Line,(Kt.x*.1+.9)*te,.15*ne)),yt.add(new go.PathSegment(go.PathSegment.Line,(Kt.x*.1+.9)*te,(Kt.y*.1+.05*.9)*ne)),yt.add(new go.PathSegment(go.PathSegment.Line,Kt.x*te,Kt.y*ne)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,ot.x*te,ot.y*ne,dt.x*te,dt.y*ne)),yt.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,(xe-le)*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne)),pe=.35,le=Ge*.35;var wt=new go.PathFigure(xe*te,(Ae-pe)*ne,!1);de.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),wt.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),wt.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-pe)*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne));var It=new go.PathFigure((xe-pe)*te,Ae*ne,!1);return de.add(It),at(ke),at(Me),at(ot),at(dt),at(vt),at(Kt),de.spot1=new go.Spot(.202,.257),de.spot2=new go.Spot(.792,.739),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("GenderFemale",function(Re,te,ne){var de=new go.Geometry,le=.375,pe=0,xe=-.125,Ae=le*Ge,ke=new go.PathFigure((.525+pe)*te,(.5+le+xe)*ne,!1);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+pe)*te,(.5+xe)*ne,(.5+Ae+pe)*te,(.5+le+xe)*ne,(.5+le+pe)*te,(.5+Ae+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-le+xe)*ne,(1-.5+le+pe)*te,(.5-Ae+xe)*ne,(.5+Ae+pe)*te,(.5-le+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+xe)*ne,(.5-Ae+pe)*te,(.5-le+xe)*ne,(.5-le+pe)*te,(.5-Ae+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pe)*te,(.5+le+xe)*ne,(.5-le+pe)*te,(.5+Ae+xe)*ne,(.5-Ae+pe)*te,(.5+le+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),le=.325,pe=0,xe=-.125,Ae=le*Ge;var ke=new go.PathFigure((1-.5+le+pe)*te,(.5+xe)*ne,!1);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5+le+xe)*ne,(.5+le+pe)*te,(.5+Ae+xe)*ne,(.5+Ae+pe)*te,(.5+le+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+xe)*ne,(.5-Ae+pe)*te,(.5+le+xe)*ne,(.5-le+pe)*te,(.5+Ae+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-le+xe)*ne,(.5-le+pe)*te,(.5-Ae+xe)*ne,(.5-Ae+pe)*te,(.5-le+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+pe)*te,(.5+xe)*ne,(.5+Ae+pe)*te,(.5-le+xe)*ne,(1-.5+le+pe)*te,(.5-Ae+xe)*ne));var ke=new go.PathFigure((.525+pe)*te,(.5+le+xe)*ne,!1);return de.add(ke),de.spot1=new go.Spot(.232,.136),de.spot2=new go.Spot(.682,.611),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicImplies",function(Re,te,ne){var de=Re?Re.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Re,te,ne){var de=Re?Re.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,de*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,de*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Re,te,ne){var de=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicTruth",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Re,te,ne){var de=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,de*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,de*te,de*ne,de*te,de*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Re,te,ne){var de=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,de*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,de*te,de*ne,de*te,de*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new $t("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new $t("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.3);var le=Re?Re.parameter2:NaN;isNaN(le)&&(le=.3);var pe=(1-de)*te,xe=(.5-le/2)*ne,Ae=(.5+le/2)*ne,ke=new go.Geometry,Me=new go.PathFigure(0,xe,!0);ke.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,pe,xe)),Me.add(new go.PathSegment(go.PathSegment.Line,pe,0)),Me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,pe,ne)),Me.add(new go.PathSegment(go.PathSegment.Line,pe,Ae)),Me.add(new go.PathSegment(go.PathSegment.Line,0,Ae).close()),ke.spot1=new go.Spot(0,xe/ne);var ot=Lt(0,Ae/ne,1,Ae/ne,pe/te,1,1,.5,ce());return ke.spot2=new go.Spot(ot.x,ot.y),at(ot),ke}),go.Shape.setFigureParameter("Arrow2",0,new $t("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new $t("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=30),de>te&&(de=te);var le=Re?Re.parameter2:NaN;isNaN(le)&&(le=30),le=Math.min(le,ne/2);var pe=te-de,xe=(ne-le)/2,Ae=xe+le,ke=new go.Geometry,Me=new go.PathFigure(0,xe,!0);ke.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,pe,xe)),Me.add(new go.PathSegment(go.PathSegment.Line,pe,0)),Me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,pe,ne)),Me.add(new go.PathSegment(go.PathSegment.Line,pe,Ae)),Me.add(new go.PathSegment(go.PathSegment.Line,0,Ae).close()),ke.spot1=new go.Spot(0,xe/ne);var ot=Lt(0,Ae/ne,1,Ae/ne,pe/te,1,1,.5,ce());return ke.spot2=new go.Spot(ot.x,ot.y),at(ot),ke}),go.Shape.defineFigureGenerator("Chevron",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),de}),go.Shape.defineFigureGenerator("DoubleArrow",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),de}),go.Shape.setFigureParameter("DoubleEndArrow",0,new $t("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*ne,pe=(.5+de/2)*ne,xe=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);xe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.3*te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var ke=Lt(0,.5,.3,0,0,le/ne,.1,le/ne,ce());return xe.spot1=new go.Spot(ke.x,ke.y),ke=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ke),xe.spot2=new go.Spot(ke.x,ke.y),at(ke),xe}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new $t("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new $t("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=40);var le=Re?Re.parameter2:NaN;isNaN(le)&&(le=100);var pe=(ne-de)/2,xe=pe+de,Ae=(ne-le)/2,ke=Ae+le;(de>ne||le>ne)&&(le>de?(de=de*ne/le,pe=(ne-de)/2,xe=pe+de,Ae=0,ke=ne):(pe=0,xe=ne,Ae=0,ke=ne));var Me=new go.Geometry,ot=new go.PathFigure(te,.5*ne,!0);Me.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,xe)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*te,xe)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*te,ke)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ae)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae).close());var dt=Lt(0,.5,.3,Ae/ne,0,pe/ne,1,pe/ne,ce());return Me.spot1=new go.Spot(dt.x,dt.y),dt=Lt(.7,ke/ne,1,.5,0,xe/ne,1,xe/ne,dt),Me.spot2=new go.Spot(dt.x,dt.y),at(dt),Me}),go.Shape.setFigureParameter("IBeamArrow",0,new $t("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*ne,pe=(.5+de/2)*ne,xe=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);xe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),xe.spot1=new go.Spot(0,le/ne);var ke=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ce());return xe.spot2=new go.Spot(ke.x,ke.y),at(ke),xe}),go.Shape.setFigureParameter("IBeamArrow2",0,new $t("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new $t("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=40);var le=Re?Re.parameter2:NaN;isNaN(le)&&(le=100);var pe=(ne-de)/2,xe=pe+de,Ae=(ne-le)/2,ke=Ae+le;(de>ne||le>ne)&&(le>de?(de=de*ne/le,pe=(ne-de)/2,xe=pe+de,Ae=0,ke=ne):(pe=0,xe=ne,Ae=0,ke=ne));var Me=new go.Geometry,ot=new go.PathFigure(te,.5*ne,!0);Me.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,ke)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,xe)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,xe)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,ke)),ot.add(new go.PathSegment(go.PathSegment.Line,0,ke)),ot.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ae)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae).close()),Me.spot1=new go.Spot(0,pe/ne);var dt=Lt(.7,ke/ne,1,.5,0,xe/ne,1,xe/ne,ce());return Me.spot2=new go.Spot(dt.x,dt.y),at(dt),Me}),go.Shape.setFigureParameter("Pointer",0,new $t("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.1);var le=new go.Geometry,pe=new go.PathFigure(te,.5*ne,!0);le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),le.spot1=new go.Spot(de,.35);var xe=Lt(.2,.65,1,.65,0,1,1,.5,ce());return le.spot2=new go.Spot(xe.x,xe.y),at(xe),le}),go.Shape.setFigureParameter("RoundedPointer",0,new $t("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.3);var le=new go.Geometry,pe=new go.PathFigure(te,.5*ne,!0);le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*te,.75*ne,de*te,.25*ne).close()),le.spot1=new go.Spot(de,.35);var xe=Lt(0,.65,1,.65,0,1,1,.5,ce());return le.spot2=new go.Spot(xe.x,xe.y),at(xe),le}),go.Shape.setFigureParameter("SplitEndArrow",0,new $t("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.4);var le=(.5-de/2)*ne,pe=(.5+de/2)*ne,xe=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);xe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),xe.spot1=new go.Spot(.2,.3);var ke=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ce());return xe.spot2=new go.Spot(ke.x,ke.y),at(ke),xe}),go.Shape.setFigureParameter("SplitEndArrow2",0,new $t("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=50);var le=(ne-de)/2,pe=le+de;de>ne&&(le=0,pe=ne);var xe=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);xe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),xe.spot1=new go.Spot(.2,le/ne);var ke=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ce());return xe.spot2=new go.Spot(ke.x,ke.y),at(ke),xe}),go.Shape.setFigureParameter("SquareArrow",0,new $t("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.7);var le=new go.Geometry,pe=new go.PathFigure(te,.5*ne,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,0).close()),le.spot1=go.Spot.TopLeft,le.spot2=new go.Spot(de,1),le}),go.Shape.defineFigureGenerator("Cone1",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=Ge*.1,xe=new go.PathFigure(0,.9*ne,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*te,ne,0,(.9+pe)*ne).close()),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.97),de}),go.Shape.defineFigureGenerator("Cone2",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.9*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var pe=new go.PathFigure(0,.9*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.82),de}),go.Shape.defineFigureGenerator("Cube1",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var pe=new go.PathFigure(.5*te,ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.5,.85),de}),go.Shape.defineFigureGenerator("Cube2",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.3*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var pe=new go.PathFigure(0,.3*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.7,1),de}),go.Shape.defineFigureGenerator("Cylinder1",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,pe=Ge*.5,xe=new go.PathFigure(0,de,!0);le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ge*de,(.5-pe)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,1*te,de,(.5+pe)*te,0,1*te,Ge*de)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne-de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Ge*de,(.5+pe)*te,1*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-de,(.5-pe)*te,1*ne,0,ne-Ge*de)),xe.add(new go.PathSegment(go.PathSegment.Line,0,de));var Ae=new go.PathFigure(te,de,!1);return le.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*de,1*te,2*de-Ge*de,(.5+pe)*te,2*de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,de,(.5-pe)*te,2*de,0,2*de-Ge*de)),le.spot1=new go.Spot(0,0,0,2*de),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder2",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,pe=Ge*.5,xe=new go.PathFigure(0,ne-de,!0);le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,0,de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ge*de,(.5-pe)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,de,(.5+pe)*te,0,te,Ge*de)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne-de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Ge*de,(.5+pe)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-de,(.5-pe)*te,ne,0,ne-Ge*de));var Ae=new go.PathFigure(0,ne-de,!1);return le.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*de,0,ne-de-Ge*de,(.5-pe)*te,ne-2*de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-de,(.5+pe)*te,ne-2*de,te,ne-de-Ge*de)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,0,-2*de),le}),go.Shape.defineFigureGenerator("Cylinder3",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,pe=Ge*.5,xe=new go.PathFigure(de,0,!0);le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ge*de,0,te,(.5-pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ne,te,(.5+pe)*ne,te-Ge*de,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,de,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ge*de,ne,0,(.5+pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-pe)*ne,Ge*de,0));var Ae=new go.PathFigure(de,0,!1);return le.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,2*de,.5*ne,de+Ge*de,0,2*de,(.5-pe)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,de,ne,2*de,(.5+pe)*ne,de+Ge*de,ne)),le.spot1=new go.Spot(0,0,2*de,0),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder4",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,pe=Ge*.5,xe=new go.PathFigure(te-de,0,!0);le.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ge*de,0,te,(.5-pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ne,te,(.5+pe)*ne,te-Ge*de,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,de,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ge*de,ne,0,(.5+pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-pe)*ne,Ge*de,0)),xe.add(new go.PathSegment(go.PathSegment.Line,te-de,0));var Ae=new go.PathFigure(te-de,0,!1);return le.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te-2*de,.5*ne,te-de-Ge*de,0,te-2*de,(.5-pe)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ne,te-2*de,(.5+pe)*ne,te-de-Ge*de,ne)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,-2*de,0),le}),go.Shape.defineFigureGenerator("Prism1",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.25*te,.25*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(.25*te,.25*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),de.spot1=new go.Spot(.408,.172),de.spot2=new go.Spot(.833,.662),de}),go.Shape.defineFigureGenerator("Prism2",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.25*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(0,ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("Pyramid1",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var pe=new go.PathFigure(.5*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Pyramid2",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var pe=new go.PathFigure(.5*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Actor",function(Re,te,ne){var de=new go.Geometry,le=.2,pe=.1,xe=Ge*le,Ae=Ge*pe,ke=.5,Me=.1,ot=new go.PathFigure(ke*te,(Me+pe)*ne,!0);de.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(ke-le)*te,Me*ne,(ke-xe)*te,(Me+pe)*ne,(ke-le)*te,(Me+Ae)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-pe)*ne,(ke-le)*te,(Me-Ae)*ne,(ke-xe)*te,(Me-pe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(ke+le)*te,Me*ne,(ke+xe)*te,(Me-pe)*ne,(ke+le)*te,(Me-Ae)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me+pe)*ne,(ke+le)*te,(Me+Ae)*ne,(ke+xe)*te,(Me+pe)*ne));var dt=.05,yt=Ge*dt;ke=.05,Me=.25;var vt=new go.PathFigure(.5*te,.2*ne,!0);return de.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),ke=.95,Me=.25,vt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+dt)*te,Me*ne,(ke+yt)*te,(Me-dt)*ne,(ke+dt)*te,(Me-yt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),dt=.025,yt=Ge*dt,ke=.825,Me=.35,vt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-dt)*ne,(ke+dt)*te,(Me-yt)*ne,(ke+yt)*te,(Me-dt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-dt)*te,Me*ne,(ke-yt)*te,(Me-dt)*ne,(ke-dt)*te,(Me-yt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),dt=.05,yt=Ge*dt,ke=.5,Me=.7,vt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-dt)*ne,(ke+dt)*te,(Me-yt)*ne,(ke+yt)*te,(Me-dt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-dt)*te,Me*ne,(ke-yt)*te,(Me-dt)*ne,(ke-dt)*te,(Me-yt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),dt=.025,yt=Ge*dt,ke=.175,Me=.35,vt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-dt)*ne,(ke+dt)*te,(Me-yt)*ne,(ke+yt)*te,(Me-dt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-dt)*te,Me*ne,(ke-yt)*te,(Me-dt)*ne,(ke-dt)*te,(Me-yt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),dt=.05,yt=Ge*dt,ke=.05,Me=.25,vt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-dt)*ne,(ke-dt)*te,(Me-yt)*ne,(ke-yt)*te,(Me-dt)*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),de.spot1=new go.Spot(.2,.2),de.spot2=new go.Spot(.8,.65),de}),go.Shape.setFigureParameter("Card",0,new $t("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Re,te,ne){var de=Re?Re.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,pe=new go.PathFigure(te,0,!0);return le.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,de*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,de*te,0).close()),le.spot1=new go.Spot(0,de),le.spot2=go.Spot.BottomRight,le}),go.Shape.defineFigureGenerator("Collate",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,.5*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var pe=new go.PathFigure(.5*te,.5*ne,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,.25),de}),go.Shape.defineFigureGenerator("CreateRequest",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var xe=new go.PathFigure(0,le*ne,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,le*ne)),xe.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,(1-le)*ne)),de}),go.Shape.defineFigureGenerator("Database",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=Ge*.1,xe=new go.PathFigure(te,.1*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*te,ne,0,(.9+pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-pe)*ne,(.5-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+le)*te,0,te,(.1-pe)*ne));var Ae=new go.PathFigure(te,.1*ne,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+pe)*ne,(.5+le)*te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-le)*te,.2*ne,0,(.1+pe)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+pe)*ne,(.5+le)*te,.3*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-le)*te,.3*ne,0,(.2+pe)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+pe)*ne,(.5+le)*te,.4*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-le)*te,.4*ne,0,(.3+pe)*ne)),de.spot1=new go.Spot(0,.4),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("DataStorage",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),de.spot1=new go.Spot(.226,0),de.spot2=new go.Spot(.81,1),de}),go.Shape.defineFigureGenerator("DiskStorage",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=Ge*.1,xe=new go.PathFigure(te,.1*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*te,ne,0,(.9+pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-pe)*ne,(.5-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+le)*te,0,te,(.1-pe)*ne));var Ae=new go.PathFigure(te,.1*ne,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+pe)*ne,(.5+le)*te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-le)*te,.2*ne,0,(.1+pe)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+pe)*ne,(.5+le)*te,.3*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-le)*te,.3*ne,0,(.2+pe)*ne)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("Display",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.25*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("DividedEvent",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)?le=.2:le<.15&&(le=.15);var pe=Ge*.2,xe=new go.PathFigure(0,.2*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-pe)*ne,(.2-pe)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+pe)*te,0,te,(.2-pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+pe)*ne,(.8+pe)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-pe)*te,ne,0,(.8+pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Ae=new go.PathFigure(0,le*ne,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,le*ne)),de}),go.Shape.defineFigureGenerator("DividedProcess",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;(isNaN(le)||le<.1)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var xe=new go.PathFigure(0,le*ne,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,le*ne)),de}),go.Shape.defineFigureGenerator("Document",function(Re,te,ne){var de=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(0,.7*ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;(isNaN(le)||le<.2)&&(le=.2);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var xe=new go.PathFigure(le*te,0,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,0,le*ne)),xe.add(new go.PathSegment(go.PathSegment.Move,te,le*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Move,(1-le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,(1-le)*ne)),de}),go.Shape.defineFigureGenerator("ExternalProcess",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var pe=new go.PathFigure(.1*te,.4*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("File",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(.75*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Interrupt",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te,.5*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var pe=new go.PathFigure(te,.5*ne,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne));var xe=new go.PathFigure(te,.5*ne,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("InternalStorage",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN,pe=Re?Re.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.1);var xe=new go.PathFigure(0,0,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Ae=new go.PathFigure(le*te,0,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,0,pe*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,te,pe*ne)),de}),go.Shape.defineFigureGenerator("Junction",function(Re,te,ne){var de=new go.Geometry,le=1/Math.SQRT2,pe=(1-1/Math.SQRT2)/2,xe=Ge*.5,Ae=.5,ke=new go.PathFigure(te,Ae*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,ne,te,(Ae+xe)*ne,(Ae+xe)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,Ae*ne,(Ae-xe)*te,ne,0,(Ae+xe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,0,0,(Ae-xe)*ne,(Ae-xe)*te,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,Ae*ne,(Ae+xe)*te,0,te,(Ae-xe)*ne));var Me=new go.PathFigure((pe+le)*te,(pe+le)*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,pe*te,pe*ne)),Me.add(new go.PathSegment(go.PathSegment.Move,pe*te,(pe+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,(pe+le)*te,pe*ne)),de}),go.Shape.defineFigureGenerator("LinedDocument",function(Re,te,ne){var de=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(0,.7*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var pe=new go.PathFigure(.1*te,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),de.spot1=new go.Spot(.1,0),de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("LoopLimit",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MagneticTape",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=.5,xe=new go.PathFigure(.5*te,ne,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-le)*te,ne,0,(pe+le)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ne,(pe-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+le)*te,0,te,(pe-le)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(pe+.1)*te,.9*ne,te,(pe+le)*ne,(pe+le)*te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),de.spot1=new go.Spot(.15,.15),de.spot2=new go.Spot(.85,.8),de}),go.Shape.defineFigureGenerator("ManualInput",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MessageFromUser",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.7);var pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,le*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.25);var pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,le*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-le)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de}),go.Shape.defineFigureGenerator("MicroformRecording",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("MultiDocument",function(Re,te,ne){var de=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var pe=new go.PathFigure(.1*te,.2*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.8,.77),de}),go.Shape.defineFigureGenerator("MultiProcess",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.1*te,.1*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var pe=new go.PathFigure(.2*te,.1*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),de.spot1=new go.Spot(0,.2),de.spot2=new go.Spot(.8,1),de}),go.Shape.defineFigureGenerator("OfflineStorage",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.1);var pe=1-le,xe=new go.PathFigure(0,0,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var Ae=new go.PathFigure(.5*le*te,le*ne,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-.5*le)*te,le*ne)),de}),go.Shape.defineFigureGenerator("OffPageConnector",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("Or",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=.5,xe=new go.PathFigure(te,pe*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,te,(pe+le)*ne,(pe+le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-le)*te,ne,0,(pe+le)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ne,(pe-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+le)*te,0,te,(pe-le)*ne));var Ae=new go.PathFigure(te,.5*ne,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),de}),go.Shape.defineFigureGenerator("PaperTape",function(Re,te,ne){var de=new go.Geometry;ne=ne/.8;var le=new go.PathFigure(0,.7*ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),de.spot1=new go.Spot(0,.49),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN,pe=Re?Re.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.3);var xe=new go.PathFigure(0,0,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,.5*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN,pe=Re?Re.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.3);var xe=new go.PathFigure(0,0,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de}),go.Shape.defineFigureGenerator("Procedure",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var xe=new go.PathFigure((1-le)*te,0,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Move,le*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),de}),go.Shape.defineFigureGenerator("Process",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var xe=new go.PathFigure(le*te,0,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Sort",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var pe=new go.PathFigure(0,.5*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.5),de}),go.Shape.defineFigureGenerator("Start",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.25);var pe=new go.PathFigure(le*te,0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var xe=new go.PathFigure(le*te,0,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Move,(1-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,ne)),de.spot1=new go.Spot(le,0),de.spot2=new go.Spot(1-le,1),de}),go.Shape.defineFigureGenerator("Terminator",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.25*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),de.spot1=new go.Spot(.23,0),de.spot2=new go.Spot(.77,1),de}),go.Shape.defineFigureGenerator("TransmittalTape",function(Re,te,ne){var de=new go.Geometry,le=Re?Re.parameter1:NaN;isNaN(le)&&(le=.1);var pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-le)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,(1-le)*ne).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("AndGate",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+le)*te,0,te,(.5-le)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+le)*ne,(.5+le)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.55,1),de}),go.Shape.defineFigureGenerator("Buffer",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Clock",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=.5,xe=new go.PathFigure(te,pe*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,te,(pe+le)*ne,(pe+le)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-le)*te,ne,0,(pe+le)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ne,(pe-le)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+le)*te,0,te,(pe-le)*ne));var Ae=new go.PathFigure(te,pe*ne,!1);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,pe*ne));var ke=new go.PathFigure(.8*te,.75*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),de}),go.Shape.defineFigureGenerator("Ground",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),de}),go.Shape.defineFigureGenerator("Inverter",function(Re,te,ne){var de=new go.Geometry,le=Ge*.1,pe=.1,xe=.9,Ae=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var Me=new go.PathFigure((xe+pe)*te,Ae*ne,!0);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,(xe-le)*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,(xe+le)*te,(Ae-pe)*ne,(xe+pe)*te,(Ae-le)*ne)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.4,.75),de}),go.Shape.defineFigureGenerator("NandGate",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=Ge*.4,xe=Ge*.1,Ae=.1,ke=.9,Me=.5,ot=new go.PathFigure(.8*te,.5*ne,!0);de.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+pe)*ne,(.4+le)*te,ne)),ot.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+le)*te,0,.8*te,(.5-pe)*ne));var dt=new go.PathFigure((ke+Ae)*te,Me*ne,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me+Ae)*ne,(ke+Ae)*te,(Me+xe)*ne,(ke+xe)*te,(Me+Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae)*te,Me*ne,(ke-xe)*te,(Me+Ae)*ne,(ke-Ae)*te,(Me+xe)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-Ae)*ne,(ke-Ae)*te,(Me-xe)*ne,(ke-xe)*te,(Me-Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae)*te,Me*ne,(ke+xe)*te,(Me-Ae)*ne,(ke+Ae)*te,(Me-xe)*ne)),de.spot1=new go.Spot(0,.05),de.spot2=new go.Spot(.55,.95),de}),go.Shape.defineFigureGenerator("NorGate",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*le,xe=0,Ae=.5,ke=new go.PathFigure(.8*te,.5*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(xe+pe)*te,(Ae-le)*ne,.7*te,(Ae-pe)*ne)),le=.1,pe=Ge*.1,xe=.9,Ae=.5;var Me=new go.PathFigure((xe-le)*te,Ae*ne,!0);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le)*te,Ae*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xe-le)*te,Ae*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne)),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.6,.75),de}),go.Shape.defineFigureGenerator("OrGate",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*le,xe=0,Ae=.5,ke=new go.PathFigure(0,0,!0);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(xe+pe+pe)*te,(Ae-le)*ne,.8*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Ae+pe)*ne,(xe+pe+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("XnorGate",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*le,xe=.2,Ae=.5,ke=new go.PathFigure(.1*te,0,!1);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Me=new go.PathFigure(.8*te,.5*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(xe+pe)*te,(Ae-le)*ne,.7*te,(Ae-pe)*ne)),le=.1,pe=Ge*.1,xe=.9,Ae=.5;var ot=new go.PathFigure((xe-le)*te,Ae*ne,!0);return de.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le)*te,Ae*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(xe-le)*te,Ae*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne)),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.65,.75),de}),go.Shape.defineFigureGenerator("XorGate",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*le,xe=.2,Ae=.5,ke=new go.PathFigure(.1*te,0,!1);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Me=new go.PathFigure(.2*te,0,!0);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(xe+pe)*te,(Ae-le)*ne,.9*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.8,.75),de}),go.Shape.defineFigureGenerator("Capacitor",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de}),go.Shape.defineFigureGenerator("Resistor",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.5*ne,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),de}),go.Shape.defineFigureGenerator("Inductor",function(Re,te,ne){var de=new go.Geometry,le=Ge*.1,pe=.1,xe=.1,Ae=.5,ke=new go.PathFigure((xe-le*.5)*te,ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,0,(xe-le)*te,ne,(xe-pe)*te,0)),xe=.3,ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,ne,(xe+pe)*te,0,(xe+le)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,0,(xe-le)*te,ne,(xe-pe)*te,0)),xe=.5,ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,ne,(xe+pe)*te,0,(xe+le)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,0,(xe-le)*te,ne,(xe-pe)*te,0)),xe=.7,ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,ne,(xe+pe)*te,0,(xe+le)*te,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,0,(xe-le)*te,ne,(xe-pe)*te,0)),xe=.9,ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le*.5)*te,ne,(xe+pe)*te,0,(xe+le)*te,ne)),de}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Re,te,ne){var de=new go.Geometry,le=Ge*.5,pe=.5,xe=.5,Ae=.5,ke=new go.PathFigure((xe-pe)*te,Ae*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,(xe+le)*te,(Ae-pe)*ne,(xe+pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,(xe-le)*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,(xe-pe+.1)*te,Ae*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe-.1)*te,Ae*ne,xe*te,(Ae-pe)*ne,xe*te,(Ae+pe)*ne)),de}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.75*ne,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Move,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de}),go.Shape.defineFigureGenerator("Diode",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Wifi",function(Re,te,ne){var de=new go.Geometry,le=te,pe=ne;te=te*.38,ne=ne*.6;var xe=Ge*.8,Ae=.8,ke=0,Me=.5,ot=(le-te)/2,dt=(pe-ne)/2,yt=new go.PathFigure(ke*te+ot,(Me+Ae)*ne+dt,!0);de.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae)*te+ot,Me*ne+dt,(ke-xe)*te+ot,(Me+Ae)*ne+dt,(ke-Ae)*te+ot,(Me+xe)*ne+dt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me-Ae)*ne+dt,(ke-Ae)*te+ot,(Me-xe)*ne+dt,(ke-xe)*te+ot,(Me-Ae)*ne+dt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae+xe*.5)*te+ot,Me*ne+dt,ke*te+ot,(Me-Ae)*ne+dt,(ke-Ae+xe*.5)*te+ot,(Me-xe)*ne+dt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me+Ae)*ne+dt,(ke-Ae+xe*.5)*te+ot,(Me+xe)*ne+dt,ke*te+ot,(Me+Ae)*ne+dt).close()),xe=Ge*.4,Ae=.4,ke=.2,Me=.5;var vt=new go.PathFigure(ke*te+ot,(Me+Ae)*ne+dt,!0);de.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae)*te+ot,Me*ne+dt,(ke-xe)*te+ot,(Me+Ae)*ne+dt,(ke-Ae)*te+ot,(Me+xe)*ne+dt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me-Ae)*ne+dt,(ke-Ae)*te+ot,(Me-xe)*ne+dt,(ke-xe)*te+ot,(Me-Ae)*ne+dt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae+xe*.5)*te+ot,Me*ne+dt,ke*te+ot,(Me-Ae)*ne+dt,(ke-Ae+xe*.5)*te+ot,(Me-xe)*ne+dt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me+Ae)*ne+dt,(ke-Ae+xe*.5)*te+ot,(Me+xe)*ne+dt,ke*te+ot,(Me+Ae)*ne+dt).close()),xe=Ge*.2,Ae=.2,ke=.5,Me=.5;var Kt=new go.PathFigure((ke-Ae)*te+ot,Me*ne+dt,!0);de.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me-Ae)*ne+dt,(ke-Ae)*te+ot,(Me-xe)*ne+dt,(ke-xe)*te+ot,(Me-Ae)*ne+dt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae)*te+ot,Me*ne+dt,(ke+xe)*te+ot,(Me-Ae)*ne+dt,(ke+Ae)*te+ot,(Me-xe)*ne+dt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me+Ae)*ne+dt,(ke+Ae)*te+ot,(Me+xe)*ne+dt,(ke+xe)*te+ot,(Me+Ae)*ne+dt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae)*te+ot,Me*ne+dt,(ke-xe)*te+ot,(Me+Ae)*ne+dt,(ke-Ae)*te+ot,(Me+xe)*ne+dt)),xe=Ge*.4,Ae=.4,ke=.8,Me=.5;var wt=new go.PathFigure(ke*te+ot,(Me-Ae)*ne+dt,!0);de.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae)*te+ot,Me*ne+dt,(ke+xe)*te+ot,(Me-Ae)*ne+dt,(ke+Ae)*te+ot,(Me-xe)*ne+dt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me+Ae)*ne+dt,(ke+Ae)*te+ot,(Me+xe)*ne+dt,(ke+xe)*te+ot,(Me+Ae)*ne+dt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae-xe*.5)*te+ot,Me*ne+dt,ke*te+ot,(Me+Ae)*ne+dt,(ke+Ae-xe*.5)*te+ot,(Me+xe)*ne+dt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me-Ae)*ne+dt,(ke+Ae-xe*.5)*te+ot,(Me-xe)*ne+dt,ke*te+ot,(Me-Ae)*ne+dt).close()),xe=Ge*.8,Ae=.8,ke=1,Me=.5;var It=new go.PathFigure(ke*te+ot,(Me-Ae)*ne+dt,!0);return de.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae)*te+ot,Me*ne+dt,(ke+xe)*te+ot,(Me-Ae)*ne+dt,(ke+Ae)*te+ot,(Me-xe)*ne+dt)),It.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me+Ae)*ne+dt,(ke+Ae)*te+ot,(Me+xe)*ne+dt,(ke+xe)*te+ot,(Me+Ae)*ne+dt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae-xe*.5)*te+ot,Me*ne+dt,ke*te+ot,(Me+Ae)*ne+dt,(ke+Ae-xe*.5)*te+ot,(Me+xe)*ne+dt)),It.add(new go.PathSegment(go.PathSegment.Bezier,ke*te+ot,(Me-Ae)*ne+dt,(ke+Ae-xe*.5)*te+ot,(Me-xe)*ne+dt,ke*te+ot,(Me-Ae)*ne+dt).close()),de}),go.Shape.defineFigureGenerator("Email",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,0,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),de}),go.Shape.defineFigureGenerator("Ethernet",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.35*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var pe=new go.PathFigure(.1*te,ne,!0,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var xe=new go.PathFigure(.6*te,ne,!0,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var Ae=new go.PathFigure(0,.5*ne,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),de}),go.Shape.defineFigureGenerator("Power",function(Re,te,ne){var de=new go.Geometry,le=Ge*.4,pe=.4,xe=.5,Ae=.5,ke=ce(),Me=ce(),ot=ce(),dt=ce();kt(xe,Ae-pe,xe+le,Ae-pe,xe+pe,Ae-le,xe+pe,Ae,.5,ke,ke,Me,ot,dt);var yt=we(Me.x,Me.y),vt=new go.PathFigure(Me.x*te,Me.y*ne,!0);de.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,ot.x*te,ot.y*ne,dt.x*te,dt.y*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,(xe-le)*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne)),kt(xe-pe,Ae,xe-pe,Ae-le,xe-le,Ae-pe,xe,Ae-pe,.5,ot,dt,Me,ke,ke),vt.add(new go.PathSegment(go.PathSegment.Bezier,Me.x*te,Me.y*ne,ot.x*te,ot.y*ne,dt.x*te,dt.y*ne)),le=Ge*.3,pe=.3,kt(xe-pe,Ae,xe-pe,Ae-le,xe-le,Ae-pe,xe,Ae-pe,.5,ot,dt,Me,ke,ke),vt.add(new go.PathSegment(go.PathSegment.Line,Me.x*te,Me.y*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*te,Ae*ne,dt.x*te,dt.y*ne,ot.x*te,ot.y*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+pe)*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*te,Ae*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),kt(xe,Ae-pe,xe+le,Ae-pe,xe+pe,Ae-le,xe+pe,Ae,.5,ke,ke,Me,ot,dt),vt.add(new go.PathSegment(go.PathSegment.Bezier,Me.x*te,Me.y*ne,dt.x*te,dt.y*ne,ot.x*te,ot.y*ne).close());var vt=new go.PathFigure(.45*te,0,!0);return de.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),at(ke),at(Me),at(ot),at(dt),at(yt),de.spot1=new go.Spot(.25,.45),de.spot2=new go.Spot(.75,.8),de}),go.Shape.defineFigureGenerator("Fallout",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne/2,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function pe(xe,Ae,ke){xe.add(new go.PathSegment(go.PathSegment.Move,(.3+Ae)*te,(.8+ke)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,(.5+Ae)*te,(.5+ke)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,(.1+Ae)*te,(.5+ke)*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,(.3+Ae)*te,(.8+ke)*ne).close())}return pe(le,0,0),pe(le,.4,0),pe(le,.2,-.3),de}),go.Shape.defineFigureGenerator("IrritationHazard",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.2*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),de.spot1=new go.Spot(.3,.3),de.spot2=new go.Spot(.7,.7),de}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.37*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),de}),go.Shape.defineFigureGenerator("FireHazard",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.1*te,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),de.spot1=new go.Spot(.07,.445),de.spot2=new go.Spot(.884,.958),de}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=0,xe=0,Ae=le*Ge,ke=.4*Math.SQRT2/2+.5,Me=.5-.5*Math.SQRT2/2,ot=1,dt=.5,yt=.5,vt=0,Kt=new go.PathFigure(ke*te,(1-Me)*ne,!1);return de.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,dt*ne,ot*te,.7*ne,ot*te,dt*ne)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pe)*te,(vt+pe)*ne,(.5+le+pe)*te,(.5-Ae+pe)*ne,(.5+Ae+pe)*te,(.5-le+pe)*ne)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+xe)*ne,(.5-Ae+pe)*te,(.5-le+xe)*ne,(.5-le+pe)*te,(.5-Ae+xe)*ne)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pe)*te,.9*ne,(.5-le+pe)*te,(.5+Ae+xe)*ne,(.5-Ae+pe)*te,.9*ne)),Kt.add(new go.PathSegment(go.PathSegment.Move,(.25+pe)*te,.8*ne)),Kt.add(new go.PathSegment(go.PathSegment.Line,(.35+pe)*te,.9*ne)),Kt.add(new go.PathSegment(go.PathSegment.Line,(.2+pe)*te,.95*ne)),de}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Move,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var pe=new go.PathFigure(te,ne,!1);de.add(pe);var xe=new go.PathFigure(0,.5*ne,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),de}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),de}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.2*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var le=new go.PathFigure(0,.2*ne,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),de}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.7*te,ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var pe=new go.PathFigure(.45*te,.73*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),de}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var pe=new go.PathFigure(.335*te,(1-.555)*ne,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var xe=.5-.285,Ae=.5,ke=xe,Me=Math.PI/4,ot=4*(1-Math.cos(Me))/(3*Math.sin(Me)),dt=ot*.5,yt=xe,vt=xe,Kt=ot*yt,wt=ot*vt;pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-yt)*te,ke*ne,(Ae-(Kt+yt)/2)*te,(ke+(vt+wt)/2)*ne,(Ae-yt)*te,(ke+wt)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(ke-vt)*ne,(Ae-yt)*te,(ke-wt)*ne,(Ae-Kt)*te,(ke-vt)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+yt)*te,ke*ne,(Ae+Kt)*te,(ke-vt)*ne,(Ae+yt)*te,(ke-wt)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Ae+yt)*te,(ke+wt)*ne,(Ae+(Kt+yt)/2)*te,(ke+(vt+wt)/2)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var It=new go.PathFigure(.2*te,ne,!1);de.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var Yt=new go.PathFigure(.8*te,ne,!1);return de.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),de}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.1*te,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var pe=new go.PathFigure(.2*te,.2*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),de}),go.Shape.defineFigureGenerator("BpmnEventError",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),de}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var pe=new go.PathFigure(te,ne,!1);de.add(pe);var xe=new go.PathFigure(.1*te,ne,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),de}),go.Shape.defineFigureGenerator("Caution",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.05*te,ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var pe=.05;return le.add(new go.PathSegment(go.PathSegment.Move,(.5-pe)*te,.875*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,pe*te,pe*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),de}),go.Shape.defineFigureGenerator("Recycle",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.45*te,.95*ne,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var pe=new go.PathFigure(.475*te,.2*ne,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var xe=new go.PathFigure(.675*te,.575*ne,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),xe.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),de}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*.5,xe=new go.PathFigure(te,le*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,le*te,ne,te,(le+pe)*ne,(le+pe)*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ne,(le-pe)*te,ne,0,(le+pe)*ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,le*te,0,0,(le-pe)*ne,(le-pe)*te,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te,le*ne,(le+pe)*te,0,te,(le-pe)*ne));var Ae=new go.PathFigure(le*te,0,!1);return de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,le*te,.15*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,le*te,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,le*te,.85*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,0,le*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*te,le*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,te,le*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*te,le*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,le*te,le*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),Ae.add(new go.PathSegment(go.PathSegment.Move,le*te,le*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),de}),go.Shape.defineFigureGenerator("Package",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.15*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(0,.15*ne,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),de.spot1=new go.Spot(0,.1),de.spot2=new go.Spot(1,1),de}),go.Shape.defineFigureGenerator("Class",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,.2*ne,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var xe=new go.PathFigure(0,.5*ne,!1);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),de}),go.Shape.defineFigureGenerator("Component",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te,ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var pe=new go.PathFigure(0,.2*ne,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var xe=new go.PathFigure(0,.6*ne,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),de}),go.Shape.defineFigureGenerator("Boat Shipment",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.15*te,.6*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var pe=new go.PathFigure(.15*te,.6*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),de}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),de}),go.Shape.defineFigureGenerator("Workcell",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de}),go.Shape.defineFigureGenerator("Supermarket",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),le.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de}),go.Shape.defineFigureGenerator("TruckShipment",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(te,.8*ne,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var xe=.1,Ae=Ge*.1,ke=.2,Me=.9,ot=new go.PathFigure((ke-xe)*te,Me*ne,!0);de.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-xe)*ne,(ke-xe)*te,(Me-Ae)*ne,(ke-Ae)*te,(Me-xe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(ke+xe)*te,Me*ne,(ke+Ae)*te,(Me-xe)*ne,(ke+xe)*te,(Me-Ae)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me+xe)*ne,(ke+xe)*te,(Me+Ae)*ne,(ke+Ae)*te,(Me+xe)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(ke-xe)*te,Me*ne,(ke-Ae)*te,(Me+xe)*ne,(ke-xe)*te,(Me+Ae)*ne).close()),xe=.1,Ae=Ge*.1,ke=.8,Me=.9;var dt=new go.PathFigure((ke-xe)*te,Me*ne,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me-xe)*ne,(ke-xe)*te,(Me-Ae)*ne,(ke-Ae)*te,(Me-xe)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+xe)*te,Me*ne,(ke+Ae)*te,(Me-xe)*ne,(ke+xe)*te,(Me-Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(Me+xe)*ne,(ke+xe)*te,(Me+Ae)*ne,(ke+Ae)*te,(Me+xe)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-xe)*te,Me*ne,(ke-Ae)*te,(Me+xe)*ne,(ke-xe)*te,(Me+Ae)*ne).close()),de}),go.Shape.defineFigureGenerator("KanbanPost",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.2*te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),de}),go.Shape.defineFigureGenerator("Forklift",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0));var pe=new go.PathFigure(0,.5*ne,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var xe=new go.PathFigure(.5*te,.8*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var Ae=new go.PathFigure(.5*te,.7*ne,!1);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var ke=.1,Me=Ge*.1,ot=.1,dt=.9,yt=new go.PathFigure((ot-ke)*te,dt*ne,!0);de.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(dt-ke)*ne,(ot-ke)*te,(dt-Me)*ne,(ot-Me)*te,(dt-ke)*ne)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ot+ke)*te,dt*ne,(ot+Me)*te,(dt-ke)*ne,(ot+ke)*te,(dt-Me)*ne)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(dt+ke)*ne,(ot+ke)*te,(dt+Me)*ne,(ot+Me)*te,(dt+ke)*ne)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ot-ke)*te,dt*ne,(ot-Me)*te,(dt+ke)*ne,(ot-ke)*te,(dt+Me)*ne)),ke=.1,Me=Ge*.1,ot=.4,dt=.9;var vt=new go.PathFigure((ot-ke)*te,dt*ne,!0);return de.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(dt-ke)*ne,(ot-ke)*te,(dt-Me)*ne,(ot-Me)*te,(dt-ke)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ot+ke)*te,dt*ne,(ot+Me)*te,(dt-ke)*ne,(ot+ke)*te,(dt-Me)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ot*te,(dt+ke)*ne,(ot+ke)*te,(dt+Me)*ne,(ot+Me)*te,(dt+ke)*ne)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ot-ke)*te,dt*ne,(ot-Me)*te,(dt+ke)*ne,(ot-ke)*te,(dt+Me)*ne)),de}),go.Shape.defineFigureGenerator("RailShipment",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.1*te,.4*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var pe=new go.PathFigure(.45*te,.7*ne,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var xe=new go.PathFigure(.55*te,.4*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var ot=.05,dt=Ge*.05,yt=.175,vt=.95,Ae=new go.PathFigure((yt-ot)*te,vt*ne,!0);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt-ot)*ne,(yt-ot)*te,(vt-dt)*ne,(yt-dt)*te,(vt-ot)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ot)*te,vt*ne,(yt+dt)*te,(vt-ot)*ne,(yt+ot)*te,(vt-dt)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt+ot)*ne,(yt+ot)*te,(vt+dt)*ne,(yt+dt)*te,(vt+ot)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ot)*te,vt*ne,(yt-dt)*te,(vt+ot)*ne,(yt-ot)*te,(vt+dt)*ne));var ot=.05,dt=Ge*.05,yt=.375,vt=.95,ke=new go.PathFigure((yt-ot)*te,vt*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt-ot)*ne,(yt-ot)*te,(vt-dt)*ne,(yt-dt)*te,(vt-ot)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ot)*te,vt*ne,(yt+dt)*te,(vt-ot)*ne,(yt+ot)*te,(vt-dt)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt+ot)*ne,(yt+ot)*te,(vt+dt)*ne,(yt+dt)*te,(vt+ot)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ot)*te,vt*ne,(yt-dt)*te,(vt+ot)*ne,(yt-ot)*te,(vt+dt)*ne));var ot=.05,dt=Ge*.05,yt=.625,vt=.95,Me=new go.PathFigure((yt-ot)*te,vt*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt-ot)*ne,(yt-ot)*te,(vt-dt)*ne,(yt-dt)*te,(vt-ot)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ot)*te,vt*ne,(yt+dt)*te,(vt-ot)*ne,(yt+ot)*te,(vt-dt)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt+ot)*ne,(yt+ot)*te,(vt+dt)*ne,(yt+dt)*te,(vt+ot)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ot)*te,vt*ne,(yt-dt)*te,(vt+ot)*ne,(yt-ot)*te,(vt+dt)*ne));var ot=.05,dt=Ge*.05,yt=.825,vt=.95,Kt=new go.PathFigure((yt-ot)*te,vt*ne,!0);de.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt-ot)*ne,(yt-ot)*te,(vt-dt)*ne,(yt-dt)*te,(vt-ot)*ne)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ot)*te,vt*ne,(yt+dt)*te,(vt-ot)*ne,(yt+ot)*te,(vt-dt)*ne)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,yt*te,(vt+ot)*ne,(yt+ot)*te,(vt+dt)*ne,(yt+dt)*te,(vt+ot)*ne)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ot)*te,vt*ne,(yt-dt)*te,(vt+ot)*ne,(yt-ot)*te,(vt+dt)*ne).close());var wt=new go.PathFigure(0,ne,!1);return de.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),de}),go.Shape.defineFigureGenerator("Warehouse",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,.2*ne,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var xe=new go.PathFigure(.15*te,ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Ae=.05,ke=Ge*.05,Me=.35,ot=.775,dt=new go.PathFigure((Me-Ae)*te,ot*ne,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ot-Ae)*ne,(Me-Ae)*te,(ot-ke)*ne,(Me-ke)*te,(ot-Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae)*te,ot*ne,(Me+ke)*te,(ot-Ae)*ne,(Me+Ae)*te,(ot-ke)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ot+Ae)*ne,(Me+Ae)*te,(ot+ke)*ne,(Me+ke)*te,(ot+Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae)*te,ot*ne,(Me-ke)*te,(ot+Ae)*ne,(Me-Ae)*te,(ot+ke)*ne).close()),de}),go.Shape.defineFigureGenerator("ControlCenter",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),de}),go.Shape.defineFigureGenerator("Bluetooth",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.75*ne,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),de}),go.Shape.defineFigureGenerator("Globe",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),de}),go.Shape.defineFigureGenerator("Wave",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.25*ne,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),de}),go.Shape.defineFigureGenerator("Operator",function(Re,te,ne){var de=new go.Geometry,le=.3,pe=Ge*.3,xe=.5,Ae=.7,ke=new go.PathFigure((xe-le)*te,Ae*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le)*te,Ae*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe-le)*te,Ae*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne));var Me=new go.PathFigure(0,.7*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),de}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.5*te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),de}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,0)),de}),go.Shape.defineFigureGenerator("Battery",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var pe=new go.PathFigure(0,.6*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),de}),go.Shape.defineFigureGenerator("Delete",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*.5,xe=.5,Ae=.5,ke=new go.PathFigure((xe-le)*te,Ae*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le)*te,Ae*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe-le)*te,Ae*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne));var Me=new go.PathFigure(.15*te,.5*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),de}),go.Shape.defineFigureGenerator("Flag",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.1*ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),de}),go.Shape.defineFigureGenerator("Help",function(Re,te,ne){var de=new go.Geometry,le=.5,pe=Ge*.5,xe=.5,Ae=.5,ke=new go.PathFigure((xe-le)*te,Ae*ne,!1);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le)*te,Ae*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xe-le)*te,Ae*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne).close()),le=.05,pe=Ge*.05,xe=.5,Ae=.8;var Me=new go.PathFigure((xe-le)*te,Ae*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae-le)*ne,(xe-le)*te,(Ae-pe)*ne,(xe-pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xe+le)*te,Ae*ne,(xe+pe)*te,(Ae-le)*ne,(xe+le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,xe*te,(Ae+le)*ne,(xe+le)*te,(Ae+pe)*ne,(xe+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xe-le)*te,Ae*ne,(xe-pe)*te,(Ae+le)*ne,(xe-le)*te,(Ae+pe)*ne).close()),Me.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),de}),go.Shape.defineFigureGenerator("Location",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var pe=new go.PathFigure(.2*te,.5*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),de}),go.Shape.defineFigureGenerator("Unlocked",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var pe=new go.PathFigure(.2*te,.5*ne,!1);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),de}),go.Shape.defineFigureGenerator("Gear",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.5*ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),de}),go.Shape.defineFigureGenerator("Map",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,.2*ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),le.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),le.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),de}),go.Shape.defineFigureGenerator("Eject",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te,ne)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var pe=new go.PathFigure(0,ne*.6,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),de}),go.Shape.defineFigureGenerator("Pencil",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*1,ne*1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),le.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var pe=new go.PathFigure(.126*te,.85*ne,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var xe=new go.PathFigure(.402*te,.85*ne,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),xe.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var Ae=new go.PathFigure(.678*te,.85*ne,!1);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var ke=new go.PathFigure(.5*te,.1*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),de}),go.Shape.defineFigureGenerator("Staircase",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne*1,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),le.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),le.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),de}),go.Shape.defineFigureGenerator("5Bars",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,ne*1,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var pe=new go.PathFigure(te*.204,ne,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var xe=new go.PathFigure(te*.408,ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),xe.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),xe.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var Ae=new go.PathFigure(te*.612,ne,!0);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var ke=new go.PathFigure(te*.816,ne,!0);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),de}),go.Shape.defineFigureGenerator("PC",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var pe=new go.PathFigure(te*.055,.07*ne,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var xe=new go.PathFigure(te*.055,.13*ne,!0);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var Ae=new go.PathFigure(te*.055,.18*ne,!0);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var ke=new go.PathFigure(te*1,0,!0);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),ke.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),de}),go.Shape.defineFigureGenerator("Plane",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(.55*te,ne,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),le.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),de}),go.Shape.defineFigureGenerator("Key",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*1,ne*.5,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),le.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),le.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),le.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),de}),go.Shape.defineFigureGenerator("FilmTape",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),le.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var pe=new go.PathFigure(0,0,!1);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var xe=new go.PathFigure(te*.11,ne*.1,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),xe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var Ae=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var ke=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),ke.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),de}),go.Shape.defineFigureGenerator("FloppyDisk",function(Re,te,ne){var de=new go.Geometry,le=8,pe=le*Ge,xe=new go.PathFigure(le,0,!1);de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),xe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne-le)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-le,ne,te,ne-pe,te-pe,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,le,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-le,pe,ne,0,ne-pe)),xe.add(new go.PathSegment(go.PathSegment.Line,0,le)),xe.add(new go.PathSegment(go.PathSegment.Bezier,le,0,0,pe,pe,0).close());var Ae=new go.PathFigure(te*.83,0,!1);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var ke=new go.PathFigure(te*.83,ne*1,!1);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var Me=new go.PathFigure(te*.78,ne*.05,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),de}),go.Shape.defineFigureGenerator("SpeechBubble",function(Re,te,ne){var de=Re?Re.parameter1:NaN;(isNaN(de)||de<0)&&(de=15),de=Math.min(de,te/3),de=Math.min(de,ne/3);var le=de*Ge,pe=ne*.8,xe=new go.Geometry,Ae=new go.PathFigure(de,0,!0);return xe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,de,te-le,0,te,le)),Ae.add(new go.PathSegment(go.PathSegment.Line,te,pe-de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te-de,pe,te,pe-le,te-le,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.7,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.55,pe)),Ae.add(new go.PathSegment(go.PathSegment.Line,de,pe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,pe-de,le,pe,0,pe-le)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()),le>1?(xe.spot1=new go.Spot(0,0,le,le),xe.spot2=new go.Spot(1,.8,-le,-le)):(xe.spot1=go.Spot.TopLeft,xe.spot2=new go.Spot(1,.8)),xe}),go.Shape.defineFigureGenerator("Repeat",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*0,ne*.45,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),le.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var pe=new go.PathFigure(te*1,ne*.55,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),de}),go.Shape.defineFigureGenerator("Windows",function(Re,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*0,ne*.1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var pe=new go.PathFigure(te*.1,ne*.2,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var xe=new go.PathFigure(te*.28,ne*.37,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),de}),go.Shape.defineFigureGenerator("Beaker",function(Re,te,ne){var de=new go.Geometry,le=15,pe=le*Ge,xe=new go.PathFigure(te*.62,ne*.475,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te,ne-le)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te-le,ne,te,ne-pe,te-pe,ne)),xe.add(new go.PathSegment(go.PathSegment.Line,le,ne)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-le,pe,ne,0,ne-pe)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),pe>1?(de.spot1=new go.Spot(0,0,pe,pe),de.spot2=new go.Spot(1,1,-pe,-pe)):(de.spot1=go.Spot.TopLeft,de.spot2=go.Spot.BottomRight),de}),go.Shape.defineFigureGenerator("Download",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*0,ne*1,!0);de.add(le);var pe=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-pe)).close());var xe=new go.PathFigure(te*.4,ne*0,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),xe.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),de}),go.Shape.defineFigureGenerator("Bin",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*0,ne*1,!0);de.add(le);var pe=.1/.3;return le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-pe)).close()),de}),go.Shape.defineFigureGenerator("Upload",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*0,ne*1,!0);de.add(le);var pe=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-pe))),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-pe)).close());var xe=new go.PathFigure(te*.5,ne*0,!0);return de.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),xe.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),de}),go.Shape.defineFigureGenerator("EmptyDrink",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*.15,ne*0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),de}),go.Shape.defineFigureGenerator("Drink",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*.15,ne*0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),le.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var pe=new go.PathFigure(te*.235,ne*.28,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),de}),go.Shape.defineFigureGenerator("4Arrows",function(Re,te,ne){var de=new go.Geometry,le=new go.PathFigure(te*.5,ne*0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),le.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),le.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),le.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),le.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),de}),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")},98598: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 $t={},zn="5.0",we={},ce=null,at=!1,Lt=!1,kt=null,Dt=!1,jt=null,Ge=null,Mt=0;Mt<arguments.length;Mt++){var Ct=arguments[Mt];if(Ct!==null)switch(typeof Ct){case"number":zn=Ct.toFixed(1);break;case"string":Ct.match(new RegExp("^[0-9]\\.[0-9]+$"))?zn=Ct:kt=Ct;break;case"object":typeof Ct.is3D!="undefined"?ce=Ct:we=Ct;break;case"boolean":at=Ct,Lt=!0;break}}ce===null&&(ce={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},we.material_id!==void 0&&!Lt&&(at=!0)),kt!==null&&we.id===void 0&&(we.id=kt);var Et="",xt="",Gt=!1,Ut=null,Re=null,te=null,ne=!1,de=null,le=null,pe=null,xe=null,Ae=null;we.height!==void 0&&(we.height=Math.round(we.height)),we.width!==void 0&&(we.width=Math.round(we.width));var ke=function(nn){return parseFloat(nn)>4?parseFloat(nn):5};$t.setHTML5Codebase=function(nn,gn){Ge=nn,mn(nn,gn)},$t.setJavaCodebase=$t.setJavaCodebaseVersion=$t.isCompiledInstalled=$t.setPreCompiledScriptPath=$t.setPreCompiledResourcePath=function(){},$t.setHTML5CodebaseVersion=function(nn,gn){var Ln=parseFloat(nn);if(Ln!==NaN&&Ln<5){console.log("The GeoGebra HTML5 codebase version "+Ln+" is deprecated. Using version latest instead.");return}jt=nn,He(nn,gn)},$t.getHTML5CodebaseVersion=function(){return Re},$t.getParameters=function(){return we},$t.setFontsCSSURL=function(nn){xe=nn},$t.setGiacJSURL=function(nn){},$t.setJNLPFile=function(nn){Et=nn},$t.setJNLPBaseDir=function(nn){},$t.inject=function(){function nn(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gn="auto",Ln=we.id,yi,Yn=!1,Ai=0;Ai<arguments.length;Ai++){var mt=arguments[Ai];typeof mt=="string"?(mt=mt.toLowerCase(),mt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gn=mt:Ln=arguments[Ai]):typeof mt=="boolean"?Yn=mt:mt instanceof HTMLElement&&(yi=mt)}ht();function ht(){if(!Dt){setTimeout(ht,200);return}gn=ui(gn);var un=yi||document.getElementById(Ln);if(!un){console.log("possibly bug on ajax loading? ");return}if($t.removeExistingApplet(un,!1),we.width===void 0&&un.clientWidth&&(we.width=un.clientWidth),we.height===void 0&&un.clientHeight&&(we.height=un.clientHeight),!(we.width&&we.height)&&gn==="html5"&&(delete we.width,delete we.height),Ut=gn,gn==="screenshot")Yt(un,we);else{var Sn=!1;we.hasOwnProperty("playButton")&&we.playButton||we.hasOwnProperty("clickToLoad")&&we.clickToLoad?Sn=!0:we.hasOwnProperty("playButtonAutoDecide")&&we.playButtonAutoDecide&&(Sn=(!Me()||nn())&&ot()),Sn?(Ut="screenshot",Mi(un,we,Yn,gn)):It(un,we,Yn)}}};function Me(){try{return window.self!==window.top}catch(nn){return!0}}function ot(){return we.hasOwnProperty("screenshotGenerator")&&we.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}$t.getViews=function(){return ce},$t.isJavaInstalled=function(){return!1};var dt=function(nn){var gn=function(Ai){var mt=JSON.parse(Ai),ht=function(Dn){return Dn.type=="G"||Dn.type=="E"},un=mt.elements?mt.elements.filter(ht)[0]:mt;if(!un||!un.url){Ln();return}we.fileName=un.url,yt(un.settings||{}),ce.is3D=!0;var Sn="https://www.geogebra.org/images/";$t.setPreviewImage(de||un.previewUrl,Sn+"GeoGebra_loading.png",Sn+"applet_play.png"),nn()},Ln=function(){we.onError&&we.onError(),Zn("Error: Fetching material (id "+we.material_id+") failed.",we)},yi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Yn="/materials/"+we.material_id+"?scope=basic";vt("https://"+yi+"/api/proxy.php?path="+encodeURIComponent(Yn),gn,Ln)};function yt(nn){var gn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ln){nn[Ln]=!!nn[Ln]}),gn.forEach(function(Ln){we[Ln]===void 0&&nn[Ln]!==void 0&&(we[Ln]=nn[Ln])}),we.showToolBarHelp===void 0&&(we.showToolBarHelp=we.showToolBar)}function vt(nn,gn,Ln){var yi=new XMLHttpRequest;yi.open("GET",nn),yi.onload=function(){gn(yi.responseText)},yi.onerror=Ln,yi.send()}$t.isHTML5Installed=function(){return!0},$t.getLoadedAppletType=function(){return Ut},$t.setPreviewImage=function(nn,gn,Ln){de=nn,le=gn,pe=Ln},$t.removeExistingApplet=function(nn,gn){var Ln;typeof nn=="string"&&(nn=document.getElementById(nn)),Ut=null;var yi=null;for(Ln=0;Ln<nn.childNodes.length;Ln++){var Yn=nn.childNodes[Ln],Ai=Yn.className;Ai==="applet_screenshot"?gn?(Yn.style.display="block",Ut="screenshot"):Yn.style.display="none":Ai!=="applet_scaler prerender"&&(nn.removeChild(Yn),yi=Ai&&Ai.indexOf("appletParameters")!=-1?Yn.id:null,Ln--)}var mt=we.id!==void 0?we.id:yi,ht=window[mt];ht&&typeof ht.getBase64=="function"&&(ht.remove(),window[mt]=null)},$t.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var nn=$t.getAppletObject();return nn&&typeof nn.recalculateEnvironments=="function"?(nn.recalculateEnvironments(),!0):!1},$t.startAnimation=function(){var nn=$t.getAppletObject();return nn&&typeof nn.startAnimation=="function"?(nn.startAnimation(),!0):!1},$t.stopAnimation=function(){var nn=$t.getAppletObject();return nn&&typeof nn.stopAnimation=="function"?(nn.stopAnimation(),!0):!1},$t.getAppletObject=function(){var nn=we.id!==void 0?we.id:"ggbApplet";return window[nn]},$t.resize=function(){};var Kt=function(nn,gn,Ln){var yi=document.createElement("param");yi.setAttribute("name",gn),yi.setAttribute("value",Ln),nn.appendChild(yi)},wt=function(nn){return nn&&nn!=="false"},It=function(nn,gn,Ln){ke(Re)<=4.2&&(Ln=!0);var yi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Re||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(yi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Yn=document.createElement("div");Yn.classList.add("appletParameters","notranslate");var Ai=gn.width,mt=gn.height;if(gn.disableAutoScale=gn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gn.disableAutoScale,gn.width!==void 0)if(ke(Re)<=4.4)wt(gn.showToolBar)&&(gn.height-=7),wt(gn.showAlgebraInput)&&(gn.height-=37),gn.width<605&&wt(gn.showToolBar)&&(gn.width=605,Ai=605);else{var ht=100;(wt(gn.showToolBar)||wt(gn.showMenuBar))&&(gn.hasOwnProperty("customToolBar")&&(gn.customToolbar=gn.customToolBar),ht=wt(gn.showMenuBar)?245:155),Ai<ht&&(gn.width=ht,Ai=ht)}Yn.style.border="none",Yn.style.display="inline-block";for(var un in gn)gn.hasOwnProperty(un)&&un!=="appletOnLoad"&&Yn.setAttribute("data-param-"+un,gn[un]);xe&&Yn.setAttribute("data-param-fontscssurl",xe),$t.resize=function(){GGBAppletUtils.responsiveResize(nn,gn)},window.addEventListener("resize",function(Ee){$t.resize()});var Sn=typeof gn.appletOnLoad=="function"?gn.appletOnLoad:function(){};if(!Ln&&gn.width!==void 0){gn.hasOwnProperty("showSplash")||Yn.setAttribute("data-param-showSplash","false");var Dn=nn.querySelector(".applet_scaler.prerender"),kn=Dn!==null;if(kn)var ii=Dn.querySelector(".ggb_preview");else{var ii=Nn(Ai,mt,gn.borderColor,!1);Dn=document.createElement("div"),Dn.className="applet_scaler",Dn.style.position="relative",Dn.style.display="block",Dn.style.width=Ai+"px",Dn.style.height=mt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dn,"66%"),ke(Re)>=5?(gn.appletOnLoad=function(Ee){var Ie=nn.querySelector(".ggb_preview");Ie&&Ie.parentNode.removeChild(Ie),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Dn),window.GGBT_wsf_view&&$(window).trigger("resize"),Sn(Ee)},kn||Dn.appendChild(ii)):Yn.appendChild(ii),Dn.appendChild(Yn),kn||nn.appendChild(Dn),setTimeout(function(){$t.resize()},1)}else{var Hn=document.createElement("div");Hn.className="applet_scaler",Hn.style.position="relative",Hn.style.display="block",Hn.appendChild(Yn),nn.appendChild(Hn),gn.appletOnLoad=function(Ee){$t.resize(),Sn(Ee)}}function Di(Ee,Ie){Ie&&typeof Ie.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ee,Ie.appletOnLoad):renderGGBElement(Ee),Zn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ie)}function hn(Ee,Ie){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ee,params:Ie}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ke){Di(Ke.article,Ke.params)}),html5AppletsToProcess=null)},ke(Re)<5&&(Ee.className+=" geogebraweb")):Di(Ee,Ie)}if(yi){scriptLoadStarted=!0;for(var rt=0;rt<Yn.childNodes.length;rt++){var Pt=Yn.childNodes[rt].tagName;Pt==="TABLE"&&(Yn.removeChild(Yn.childNodes[rt]),rt--)}if(ggbHTML5LoadedScript!==null){var _t=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');_t!=null&&_t.parentNode.removeChild(_t)}var We=document.createElement("script"),Ce=function(){hn(Yn,gn)};We.src=xt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Re,ggbHTML5LoadedScript=We.src,Zn("GeoGebra HTML5 codebase loaded: '"+xt+"'.",gn),!Ge&&(!jt||jt=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ce()):xt.requirejs?__webpack_require__.e(7374).then(function(){var Ee=[__webpack_require__(97374)];Ce.apply(null,Ee)}.bind(this)).catch(__webpack_require__.oe):(We.onload=Ce,nn.appendChild(We))}else hn(Yn,gn);gn.height=mt,gn.width=Ai},Yt=function(nn,gn,Ln){var yi=Nn(gn.width,gn.height,gn.borderColor,Ln),Yn=document.createElement("div");Yn.style.position="relative",Yn.style.display="block",Yn.style.width=gn.width+"px",Yn.style.height=gn.height+"px",Yn.className="applet_screenshot applet_scaler"+(Ln?" applet_screenshot_play":""),Yn.appendChild(yi);var Ai=GGBAppletUtils.getScale(gn,nn,Ln);Ln?(nn.appendChild(wi()),window.GGBT_wsf_view||(nn.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Yn,"66%"),nn.appendChild(Yn),Ai!==1&&!isNaN(Ai)&&(GGBAppletUtils.scaleElement(Yn,Ai),Yn.style.width=gn.width+"px",Yn.style.height=gn.height+"px",Yn.parentNode.style.width=gn.width*Ai+"px",Yn.parentNode.style.height=gn.height*Ai+"px"),$t.resize=function(){yn(nn,yi,Yn,Ln)},window.addEventListener("resize",function(mt){$t.resize()}),$t.resize()};function yn(nn,gn,Ln,yi){if(nn.contains(gn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(nn.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(nn)}var Yn=GGBAppletUtils.getScale(we,nn,yi);Ln.parentNode!==null&&(!isNaN(Yn)&&Yn!==1?(GGBAppletUtils.scaleElement(Ln,Yn),Ln.parentNode.style.width=we.width*Yn+"px",Ln.parentNode.style.height=we.height*Yn+"px"):(GGBAppletUtils.scaleElement(Ln,1),Ln.parentNode.style.width=we.width+"px",Ln.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(nn),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}$t.onExitFullscreen=function(nn,gn){gn.appendChild(nn)};var Mi=function(nn,gn,Ln,yi){Yt(nn,gn,!0);for(var Yn=function(){var ht=[];for(mt=0;mt<nn.childNodes.length;mt++)ht.push(nn.childNodes[mt]);if(window.GGBT_wsf_view){var un=window.GGBT_wsf_view.renderFullScreen(nn,gn.id),Sn=document.getElementById("fullscreencontainer"),Dn=jQuery(nn).find(".fullscreencontent");Dn.length>0?(un.remove(),Dn.attr("id","fullscreencontent").show(),jQuery(Sn).append(Dn),window.dispatchEvent(new Event("resize"))):It(un,gn,!1),window.GGBT_wsf_view.launchFullScreen(Sn)}else Ut=yi,It(nn,gn,!1);if(!window.GGBT_wsf_view)for(mt=0;mt<ht.length;mt++)nn.removeChild(ht[mt])},Ai=nn.getElementsByClassName("ggb_preview_play"),mt=0;mt<Ai.length;mt++)Ai[mt].addEventListener("click",Yn,!1),Ai[mt].addEventListener("ontouchstart",Yn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(nn),ot()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},wi=function(){var nn=document.createElement("div");if(nn.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gn='.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");}',Ln=document.createElement("style");Ln.styleSheet?Ln.styleSheet.cssText=gn:Ln.appendChild(document.createTextNode(gn)),document.getElementsByTagName("head")[0].appendChild(Ln)}return nn},Nn=function(nn,gn,Ln,yi){var Yn=document.createElement("div");Yn.className="ggb_preview",Yn.style.position="absolute",Yn.style.zIndex="90",Yn.style.width=nn-2+"px",Yn.style.height=gn-2+"px",Yn.style.top="0px",Yn.style.left="0px",Yn.style.overflow="hidden",Yn.style.backgroundColor="white";var Ai="lightgrey";Ln!==void 0&&(Ln==="none"?Ai="transparent":Ai=Ln),Yn.style.border="1px solid "+Ai;var mt=document.createElement("img");if(mt.style.position="relative",mt.style.zIndex="1000",mt.style.top="-1px",mt.style.left="-1px",de!==null&&mt.setAttribute("src",de),mt.style.opacity=.7,le!==null){var ht,un,Sn;if(!yi){ht=document.createElement("img"),ht.style.position="absolute",ht.style.zIndex="1001",ht.style.opacity=1,mt.style.opacity=.3,un=360,un>nn/4*3&&(un=nn/4*3),Sn=un/5.8,ht.setAttribute("src",le),ht.setAttribute("width",un),ht.setAttribute("height",Sn);var Dn=(nn-un)/2,kn=(gn-Sn)/2;ht.style.left=Dn+"px",ht.style.top=kn+"px",Yn.appendChild(ht)}}return Yn.appendChild(mt),Yn},ui=function(nn){return nn=nn.toLowerCase(),nn==="html5"||nn==="screenshot"?nn:"html5"},tt=["web","webSimple","web3d","tablet","tablet3d","phone"],He=function(nn,gn){if(Re=nn,gn){mn(Re,!0);return}var Ln=!at;if(Ln){var yi=ke(Re);!isNaN(yi)&&yi<4.4&&(Ln=!1)}var Yn,Ai;window.location.protocol.substr(0,4)==="http"?Yn=window.location.protocol:Yn="http:";var mt=Re.indexOf("//");mt>0?Ai=Re:mt===0?Ai=Yn+Re:Ai="https://www.geogebra.org/apps/5.2.814.0/";for(var ht in tt)if(Re.slice(tt[ht].length*-1)===tt[ht]||Re.slice((tt[ht].length+1)*-1)===tt[ht]+"/"){mn(Ai,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ln&&!ce.is3D&&!ce.AV&&!ce.SV&&!ce.CV&&!ce.EV2&&!ce.CP&&!ce.PC&&!ce.DA&&!ce.FI&&!ce.PV&&!wt(we.showToolBar)&&!wt(we.showMenuBar)&&!wt(we.showAlgebraInput)&&!wt(we.enableRightClick)&&(!we.appName||we.appName=="classic")?Ai+="webSimple/":Ai+="web3d/",mn(Ai,!1)},mn=function(nn,gn){if(nn.requirejs){xt=nn;return}nn.slice(-1)!=="/"&&(nn+="/"),xt=nn,gn===null&&(gn=nn.indexOf("http")===-1),Gt=gn,te="web.nocache.js",ne=!1;var Ln=xt.split("/");Ln.length>1&&(!gn&&Ln[Ln.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):tt.indexOf(Ln[Ln.length-2])>=0&&(te=Ln[Ln.length-2]+".nocache.js")),Ln=nn.split("/"),Re=Ln[Ln.length-3],Re.substr(0,4)==="test"?Re=Re.substr(4,1)+"."+Re.substr(5,1):(Re.substr(0,3)==="war"||Re.substr(0,4)==="beta")&&(Re="5.0");var yi=parseFloat(Re);yi!==NaN&&yi<5&&nn.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yi+" is deprecated. Using version latest instead."),He("5.0",gn))},Zn=function(nn,gn){window.console&&window.console.log&&(!gn||typeof gn.showLogging=="undefined"||gn.showLogging&&gn.showLogging!=="false")&&console.log(nn)};we.material_id!==void 0?dt(Qn):Qn();function Qn(){var nn=zn;jt!==null?nn=jt:parseFloat(nn)<5&&(nn="5.0"),He(nn,!1),Ge!==null&&mn(Ge,Gt),Dt=!0}return $t},GGBAppletUtils=function(){"use strict";function $t(){return window.GGBT_wsf_edit!==void 0}function zn(Dt,jt){jt!=1?(Dt.style.transformOrigin="0% 0% 0px",Dt.style.webkitTransformOrigin="0% 0% 0px",Dt.style.transform="scale("+jt+","+jt+")",Dt.style.webkitTransform="scale("+jt+","+jt+")",Dt.style.maxWidth="initial",Dt.querySelector(".ggb_preview")!==null&&(Dt.querySelector(".ggb_preview").style.maxWidth="initial"),Dt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Dt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Dt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Dt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Dt.style.transform="none",Dt.style.webkitTransform="none")}function we(Dt,jt,Ge,Mt,Ct,Et){var xt=null;if(Et!=null&&Et!="")for(var Gt=Dt.parentNode;Gt!=null;)if((" "+Gt.className+" ").indexOf(" "+Et+" ")>-1){xt=Gt;break}else Gt=Gt.parentNode;var Ut=0,Re=0,te=0,ne=0,de=0,le=0,pe=0;if(xt)Ut=xt.offsetWidth,Re=Math.max(Mt?xt.offsetWidth:0,xt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ut=Math.min(window.innerWidth,document.documentElement.clientWidth),Re=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Ut):(Ut=window.innerWidth,Re=window.innerHeight,te=window.innerWidth),Dt){var xe=Dt.getBoundingClientRect();xe.left>0&&xe.left<=Ut&&(Ct===void 0||!Ct)&&(document.dir==="rtl"?(de=Ut-xe.width-xe.left,le=te<=480?10:30):(le=xe.left,de=te<=480?10:30),ne=le+de)}if(Dt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=Dt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,pe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,pe=40)}}return Dt&&((Ge===void 0||!Ge)&&jt>0&&jt+ne<Ut?Ut=jt:Ut-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge===void 0||!Ge)&&(Re-=pe)),{width:Ut,height:Re}}function ce(Dt,jt,Ge,Mt,Ct){if(Dt.isScreenshoGenerator)return 1;var Et=Mt!==void 0&&Mt,xt=Dt.noScaleMargin!=null&&Dt.noScaleMargin,Gt=function(Ae){return Ae&&Ae!=="false"},Ut=Gt(Dt.autoHeight),Re=we(jt,Dt.width,Ge,Ut,Et&&window.GGBT_wsf_view||xt,Ct),te=parseInt(Re.width),ne=Dt.width,de=Dt.height;if(ne===void 0){var le=jt.querySelector(".appletParameters");le&&(ne=le.offsetWidth,de=le.offsetHeight)}var pe=te/ne,xe=Et?1:Re.height/de;return Ge!==void 0&&!Ge&&(pe=Math.min(1,pe),xe=Math.min(1,xe)),Math.min(pe,xe)}function at(Dt,jt,Ge){var Mt=1,Ct,Et=!1;if(Dt.hasOwnProperty("allowUpscale")&&(Et=Dt.allowUpscale),Dt.hasOwnProperty("scale")&&(Mt=parseFloat(Dt.scale),(isNaN(Mt)||Mt===null||Mt===0)&&(Mt=1),Mt>1&&(Et=!0)),jt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Et=!0),!(Dt.hasOwnProperty("disableAutoScale")&&Dt.disableAutoScale))Ct=ce(Dt,jt,Et,Ge,Dt.scaleContainerClass);else return Mt;return Et&&(!Dt.hasOwnProperty("scale")||Mt===1)?Ct:Math.min(Mt,Ct)}function Lt(Dt){var jt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),Mt=Dt.getBoundingClientRect(),Ct=(jt-Mt.width)/2,Et=(Ge-Mt.height)/2;Et<0&&(Et=0),Dt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ct<40?Dt.style.left="40px":Dt.style.left=Ct+"px",Dt.style.top=Et+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Et<40?Dt.style.top="40px":Dt.style.top=Et+"px",Dt.style.left=Ct+"px")}function kt(Dt,jt){var Ge=Dt.querySelector(".appletParameters");if(Ge){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(jt.id!==Ge.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Dt)}if(Ge.parentElement&&/fullscreen/.test(Ge.parentElement.className))return;var Mt=at(jt,Dt);$t()&&Ge.setAttribute("data-param-scale",Mt);for(var Ct=null,Et=0;Et<Dt.childNodes.length;Et++)if(Dt.childNodes[Et].className!==void 0&&Dt.childNodes[Et].className.match(/^applet_scaler/)){Ct=Dt.childNodes[Et];break}if(Ct!==null&&Ct.querySelector(".noscale")!==null)return;var xt=jt.id!==void 0?jt.id:"ggbApplet",Gt=window[xt];(Gt==null||!Gt.recalculateEnvironments)&&Ct!==null&&!Ct.className.match(/fullscreen/)&&(Ct.parentNode.style.transform="",!isNaN(Mt)&&Mt!==1?(Ct.parentNode.style.width=jt.width*Mt+"px",Ct.parentNode.style.height=jt.height*Mt+"px",zn(Ct,Mt)):(zn(Ct,1),Ct.parentNode.style.width=jt.width+"px",Ct.parentNode.style.height=jt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Lt(Dt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ge).parents(".content-added-content"))}}return{responsiveResize:kt,isFlexibleWorksheetEditor:$t,positionCenter:Lt,getScale:at,scaleElement:zn}}();__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 $t=n.location.search;return $t.indexOf(J)!=-1||$t.indexOf(K)!=-1}function q($t,zn){}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($t){var zn=s[L].bindings;s[L].bindings=function(){for(var we=zn?zn():{},ce=$t[webModule.__softPermutationId],at=O;at<ce.length;at++){var Lt=ce[at];we[Lt[O]]=Lt[P]}return we}};var t;function u(){return v(),t}function v(){if(!t){var $t=o.createElement(Q);if($t.id=L,$t.style.cssText=R+S,$t.tabIndex=-1,o.body.appendChild($t),t=$t.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var zn=document.compatMode==U?V:W;t.write(zn+X),t.close()}}}function w($t){function zn(ce){function at(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Lt=at();if(Lt){ce();return}function kt(){if(!Lt){if(!at())return;Lt=!0,ce(),o.removeEventListener&&o.removeEventListener(Z,kt,!1),Dt&&clearInterval(Dt)}}o.addEventListener&&o.addEventListener(Z,kt,!1);var Dt=setInterval(function(){kt()},$)}function we(ce){var at=u(),Lt=at.body,kt=at.createElement(_);kt.language=ab,kt.crossOrigin=W,kt.src=ce,webModule.__errFn&&(kt.onerror=function(){webModule.__errFn(L,new Error(bb+ce))}),Lt.appendChild(kt)}zn(function(){we($t)})}webModule.__startLoadingFragment=function($t){return C($t)},webModule.__installRunAsyncCode=function($t){var zn=u(),we=zn.body,ce=zn.createElement(_);ce.language=ab,ce.text=$t,we.appendChild(ce),we.removeChild(ce)};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($t){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch($t){alert(nb+k+qb)}}}__gwt_getMetaProperty=function($t){var zn=c[$t];return zn==null?null:zn},r=d,webModule.__errFn=e}function B(){function $t(Dt){var jt=Dt.lastIndexOf(rb);jt==-1&&(jt=Dt.length);var Ge=Dt.indexOf(sb);Ge==-1&&(Ge=Dt.length);var Mt=Dt.lastIndexOf(tb,Math.min(Ge,jt));return Mt>=O?Dt.substring(O,Mt+P):W}function zn(Dt){if(!Dt.match(/^\w+:\/\//)){var jt=o.createElement(ub);jt.src=Dt+vb,Dt=$t(jt.src)}return Dt}function we(){var Dt=__gwt_getMetaProperty(wb);return Dt!=null?Dt:W}function ce(){for(var Dt=o.getElementsByTagName(_),jt=O;jt<Dt.length;++jt)if(Dt[jt].src.indexOf(xb)!=-1)return $t(Dt[jt].src);return W}function at(){var Dt=o.getElementsByTagName(yb);return Dt.length>O?Dt[Dt.length-P].href:W}function Lt(){var Dt=o.location;return Dt.href==Dt.protocol+zb+Dt.host+Dt.pathname+Dt.search+Dt.hash}var kt=we();return kt==W&&(kt=ce()),kt==W&&(kt=at()),kt==W&&Lt()&&(kt=$t(o.location.href)),kt=zn(kt),kt}function C($t){return $t.match(/^\//)||$t.match(/^[a-zA-Z]+:\/\//)?$t:webModule.__moduleBase+$t}function D(){var $t=[],zn=O,we=[],ce=[];function at(Dt){var jt=ce[Dt](),Ge=we[Dt];if(jt in Ge)return jt;var Mt=[];for(var Ct in Ge)Mt[Ge[Ct]]=Ct;throw r&&r(Dt,Mt,jt),null}if(__gwt_isKnownPropertyValue=function(Dt,jt){return jt in we[Dt]},webModule.__getPropMap=function(){var Dt={};for(var jt in we)we.hasOwnProperty(jt)&&(Dt[jt]=at(jt));return Dt},webModule.__computePropValue=at,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Lt;try{Lt=Cb;var kt=Lt.indexOf(Db);kt!=-1&&(zn=parseInt(Lt.substring(kt+P),$),Lt=Lt.substring(O,kt))}catch(Dt){}return webModule.__softPermutationId=zn,C(Lt+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})()},58788:function($t,zn,we){"use strict";we.d(zn,{Ax:function(){return kt},Ds:function(){return Dt},KI:function(){return Ge},SI:function(){return Lt},f1:function(){return at}});var ce=we(10148);function at(Mt){let Ct=!0;if(Mt.length>0){for(let Et=0;Et<Mt.length;Et++)if(Mt[Et].compile_success==0||!Mt[Et].compile_success){Ct=!1;break}}else Ct=!1;return Ct}function Lt(Mt,Ct=""){let Et=[];for(let xt=0;xt<Mt.length;xt++){let Gt=Mt[xt],Ut=Ct?`${Ct}/${Gt.name}`:`${Gt.name}`;Et.push({title:Gt.name,type:Gt.type,isLeaf:Gt.type!=="tree",key:Ut})}return Et}function kt(Mt,Ct,Et){for(let xt=0;xt<Mt.length;xt++){let Gt=Mt[xt];if(Gt.key===Ct){Gt.children=Et;break}Gt.children&&kt(Gt.children,Ct,Et)}return Mt}function Dt(Mt,Ct,Et){let xt;return function(){let Gt=this,Ut=arguments,Re=function(){xt=null,Et||Mt.apply(Gt,Ut)},te=Et&&!xt;clearTimeout(xt),xt=setTimeout(Re,Ct),te&&Mt.apply(Gt,Ut)}}const jt=!0,Ge=ce.Z.API_SERVER},25167:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Mt}});var ce=we(59301),at=we(42203),Lt=we(43418),kt="data:image/png;base64,iVBORw0KGgoAAAANSUh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z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC",jt={tilte:"tilte___IfiMG",flexRow:"flexRow___pQP78",flexColumn:"flexColumn___xrBZQ",footerWrap:"footerWrap___C5kCC",img:"img___GoWZu",content:"content___pumTK",modalContent:"modalContent___XvHiZ"};const Ge=({visible:Ct,occupationValue:Et,onCancel:xt=()=>{}})=>{const Gt=()=>ce.createElement("div",{className:jt.flexColumn},ce.createElement("img",{className:jt.img,src:Dt}),ce.createElement("span",{className:jt.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1")),Ut=()=>ce.createElement("div",{className:jt.flexColumn},ce.createElement("img",{className:jt.img,src:kt}),ce.createElement("span",{className:jt.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1")),Re=()=>Et===3?ce.createElement(ce.Fragment,null,Ut(),Gt()):Et===2?Gt():Ut();return ce.createElement(Lt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Ct,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:()=>{xt(),at.history.push("/account/certification")},onCancel:()=>{xt()}},ce.createElement("div",{className:jt.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),ce.createElement("div",{className:jt.flexRow},Re()))};var Mt=(0,at.connect)(({paperlibrary:Ct,loading:Et,globalSetting:xt})=>({paperlibrary:Ct,globalSetting:xt,loading:Et.effects}))(Ge)},23744:function($t,zn,we){"use strict";we.d(zn,{t:function(){return Gt}});var ce=we(59301),at=we(3113),Lt={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},kt=we(92310),Dt=we.n(kt),jt=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Et=(Ut,Re,te)=>Re in Ut?jt(Ut,Re,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ut[Re]=te,xt=(Ut,Re)=>{for(var te in Re||(Re={}))Mt.call(Re,te)&&Et(Ut,te,Re[te]);if(Ge)for(var te of Ge(Re))Ct.call(Re,te)&&Et(Ut,te,Re[te]);return Ut};const Gt=({cancelText:Ut="\u53D6\u6D88",okText:Re="\u786E\u5B9A",loading:te=!1,hasOkBtn:ne=!0,hasCancelBtn:de=!0,okButtonProps:le={},onCancel:pe=()=>{},onOk:xe=()=>{},className:Ae=""})=>ce.createElement("div",{className:Dt()(Lt.buttonFixed,Ae)},ce.createElement("div",{className:Lt.buttonWrap},de&&ce.createElement(at.ZP,{size:"middle",className:`${Lt.button} mr20`,onClick:pe},Ut),ne&&ce.createElement(at.ZP,xt({size:"middle",type:"primary",className:`${Lt.button} mr20`,loading:te,onClick:xe},le),Re)))},91552:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return ke}});var ce=we(59301),at=we(42203),Lt=we(43418),kt=we(8591),Dt=we(92832),jt=we(24905),Ge=we(99460),Mt=we(25167),Ct=we(58130),Et=we(3113),xt=we(80205),Gt={bottom:"bottom___z0ujX",yes:"yes___hodnN",no:"no___hiPz5"},Ut=we(32637),Re=we(59301);const te=({classroomList:Me,dispatch:ot,user:dt})=>Re.createElement(Lt.default,{open:Me.actionTabs.key==="\u5230\u671F\u63D0\u793A",width:464,centered:!0,title:Re.createElement("span",null,Re.createElement(xt.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u63D0\u793A"),onCancel:()=>{ot({type:"classroomList/setActionTabs",payload:{key:""}})},footer:null},Re.createElement("div",{style:{textAlign:"center",marginBottom:30}},Re.createElement("div",{style:{marginBottom:20,textAlign:"left"}},"\u8BE5\u6559\u5B66\u8BFE\u5802\u7684\u8BD5\u7528\u5DF2\u5230\u671F\uFF0C\u76EE\u524D\u65E0\u6CD5\u652F\u6301",Re.createElement("span",{style:{color:"#FF9D18"}},"\u8D85\u8FC750"),"\u4EBA\u7684\u6559\u5B66\u6D3B\u52A8\u3002\u5982\u6709\u4EFB\u4F55\u7591\u95EE\uFF0C\u8BF7\u968F\u65F6\u8054\u7CFB\u6211\u4EEC\u3002\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301\uFF01"),Re.createElement("img",{style:{width:130,height:130},src:Ut})),Re.createElement("div",{className:Gt.bottom},Re.createElement(Et.ZP,{className:Gt.yes,onClick:()=>{ot({type:"classroomList/setActionTabs",payload:{key:""}})}},"\u6211\u77E5\u9053\u4E86")));var ne=(0,at.connect)(({classroomList:Me,user:ot})=>({classroomList:Me,user:ot}))(te),de=we(70635),le=we(59301),pe=(Me,ot,dt)=>new Promise((yt,vt)=>{var Kt=Yt=>{try{It(dt.next(Yt))}catch(yn){vt(yn)}},wt=Yt=>{try{It(dt.throw(Yt))}catch(yn){vt(yn)}},It=Yt=>Yt.done?yt(Yt.value):Promise.resolve(Yt.value).then(Kt,wt);It((dt=dt.apply(Me,ot)).next())}),xe=(Me=>(Me[Me.Professor=1]="Professor",Me[Me.AssistantProfessor=2]="AssistantProfessor",Me[Me.Student=3]="Student",Me))(xe||{});const Ae=({visible:Me,user:ot,account:dt,onCancel:yt=()=>{},dispatch:vt})=>{const[Kt,wt]=(0,ce.useState)(),[It,Yt]=(0,ce.useState)([]),[yn,Mi]=(0,ce.useState)(!1),[wi,Nn]=(0,ce.useState)(!1),[ui,tt]=(0,ce.useState)(),[He,mn]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{var gn,Ln;(gn=ot==null?void 0:ot.userInfo)!=null&&gn.identity&&Yt([((Ln=ot==null?void 0:ot.userInfo)==null?void 0:Ln.identity)==="student"?3:1])},[ot]);const Zn=gn=>{const Ln=()=>{window.location.href=(gn==null?void 0:gn.jump_url)||`/classrooms/${gn==null?void 0:gn.course_id}/students`};if(It.includes(1)){Lt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:le.createElement("div",{className:"tc"},(gn==null?void 0:gn.message)||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{Ln()}});return}Ln()},Qn=()=>pe(void 0,null,function*(){if(!Kt){kt.ZP.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}let gn=yield(0,de.ZP)("/api/courses/get_pro_info.json",{method:"get",params:{invite_code:Kt}});if(gn!=null&&gn.need_pro_auth&&!It.includes(1)&&!It.includes(2)){vt({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth",code:Kt,checkedList:It}}),nn();return}Mi(!0);const Ln=yield(0,Ge.cR)({invite_code:Kt,professor:It.includes(1)?1:null,assistant_professor:It.includes(2)?1:null,student:It.includes(3)?1:null});if(Mi(!1),(Ln==null?void 0:Ln.status)===-4&&(yt(),vt({type:"classroomList/setActionTabs",payload:{key:"\u5230\u671F\u63D0\u793A"}})),(Ln==null?void 0:Ln.status)===-12&&kt.ZP.warning(Ln==null?void 0:Ln.message),(Ln==null?void 0:Ln.status)===-2){if(nn(),Ln.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"){Nn(!0),tt(1);return}if(Ln.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1"){Nn(!0),tt(2);return}if(Ln.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1"){Nn(!0),tt(3);return}}if((Ln==null?void 0:Ln.status)===0){(0,Ct.L9)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),nn(),Ln!=null&&Ln.course_id?Zn(Ln):kt.ZP.success(Ln.message);return}}),nn=()=>pe(void 0,null,function*(){yt()});return le.createElement(le.Fragment,null,le.createElement(Lt.default,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",open:Me,confirmLoading:yn,onOk:Qn,onCancel:nn},le.createElement("div",{className:"tc"},le.createElement("div",null,le.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),le.createElement(Dt.default,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:Kt,onChange:gn=>{if(gn.target.value.length>=7){kt.ZP.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}wt(gn.target.value)}})),le.createElement("div",{className:"mt10 font14"},le.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),le.createElement(jt.default.Group,{value:It,onChange:gn=>Yt(gn)},le.createElement(jt.default,{value:1,disabled:It.includes(2)},"\u6559\u5E08"),le.createElement(jt.default,{value:2,disabled:It.includes(1)},"\u52A9\u6559"),le.createElement(jt.default,{value:3},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),le.createElement(ne,null),le.createElement(Mt.Z,{visible:wi,onCancel:()=>Nn(!1),occupationValue:ui}))};var ke=(0,at.connect)(({user:Me,account:ot})=>({user:Me,account:ot}))(Ae)},55315:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Ii},g:function(){return _r}});var ce=we(59301),at=we(42203),Lt=we(44e3),kt=we(92832),Dt=we(43418),jt={flex_box_center:"flex_box_center___et8xE",flex_space_between:"flex_space_between___GBGuw",flex_box_vertical_center:"flex_box_vertical_center____6P1q",flex_box_center_end:"flex_box_center_end___whXw6",flex_box_column:"flex_box_column___mWgI_",header:"header___Wn4fJ",logo:"logo___QnotM",menu:"menu___twLGR",dropDown:"dropDown___Cwaoa",line:"line___D1auu",subName:"subName___gql7K",name:"name___dR5V2",actived:"actived___ohMks","edu-menu":"edu-menu___iWLK0",newslight:"newslight___lSZjL",classromediv:"classromediv___knFRv",glow:"glow___gzrPH",spandiv:"spandiv___Gm_hg","header-iearning":"header-iearning___LZfyg",title:"title___Ozzjk",headerFixed:"headerFixed___QLwBd"},Ge=we(8591),Mt=we(95237),Ct=we(43604),Et=we(20834),xt=we(38854),Gt=we(5112),Ut=we(99460),Re=we(58130),te=(xn,jn,Ft)=>new Promise((bt,rn)=>{var Sr=qn=>{try{Ni(Ft.next(qn))}catch(Wi){rn(Wi)}},ki=qn=>{try{Ni(Ft.throw(qn))}catch(Wi){rn(Wi)}},Ni=qn=>qn.done?bt(qn.value):Promise.resolve(qn.value).then(Sr,ki);Ni((Ft=Ft.apply(xn,jn)).next())}),ne=(xn=>(xn.Manager="manager",xn.Developer="developer",xn.Reporter="reporter",xn))(ne||{}),le=({visible:xn,onCancel:jn=()=>{}})=>{const[Ft,bt]=(0,ce.useState)(),[rn,Sr]=(0,ce.useState)(),[ki,Ni]=(0,ce.useState)(!1),qn=()=>te(void 0,null,function*(){if(!Ft){Ge.ZP.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}if(Ft.length!==6){Ge.ZP.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}if(!rn){Ge.ZP.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01");return}Ni(!0);const Hr=yield(0,Ut.vm)({code:Ft,role:rn});Ni(!1),Wi();const no={1:"\u60A8\u8F93\u5165\u7684\u9080\u8BF7\u7801\u9519\u8BEF",2:"\u60A8\u5DF2\u7ECF\u662F\u8BE5\u9879\u76EE\u6210\u5458",3:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u89D2\u8272",4:"\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279",5:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u52A0\u5165\u8BE5\u9879\u76EE\u4E86\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85",6:"\u60A8\u5DF2\u6210\u529F\u52A0\u5165\u9879\u76EE"};if(no[Hr.status]){Ge.ZP.info(no[Hr.status]);return}if(Hr.status===0){rn==="reporter"?(Ge.ZP.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),(0,Re.L9)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),at.history.push(`/projects/${Hr==null?void 0:Hr.project_id}`)):((0,Re.L9)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),Ge.ZP.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01"));return}}),Wi=()=>te(void 0,null,function*(){jn()});return ce.createElement(ce.Fragment,null,ce.createElement(Dt.default,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",open:xn,confirmLoading:ki,onOk:qn,onCancel:Wi},ce.createElement("div",{className:"tc"},ce.createElement("div",null,ce.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),ce.createElement(kt.default,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:Ft,onChange:Hr=>{if(Hr.target.value.length>=7){Ge.ZP.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}bt(Hr.target.value)}})),ce.createElement("div",{className:"mt10 font14"},ce.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),ce.createElement(Gt.ZP.Group,{value:rn,onChange:Hr=>Sr(Hr.target.value)},ce.createElement(Gt.ZP,{value:"manager"},"\u7BA1\u7406\u4EBA\u5458"),ce.createElement(Gt.ZP,{value:"developer"},"\u5F00\u53D1\u4EBA\u5458"),ce.createElement(Gt.ZP,{value:"reporter"},"\u62A5\u544A\u4EBA\u5458"))))))},pe=we(91552),xe={flex_box_center:"flex_box_center___cltIf",flex_space_between:"flex_space_between___fKr_O",flex_box_vertical_center:"flex_box_vertical_center____QfiA",flex_box_center_end:"flex_box_center_end___ysqmH",flex_box_column:"flex_box_column___CfE8K",rightMenu:"rightMenu___ADTOX",joinMenu:"joinMenu___aRGsf",joinBoard:"joinBoard___AeUvr",joinCol:"joinCol___fV4uL"},Ae=we(18032),ke=we(78241),Me=we(57809),ot=we(19726),dt=(xn,jn,Ft)=>new Promise((bt,rn)=>{var Sr=qn=>{try{Ni(Ft.next(qn))}catch(Wi){rn(Wi)}},ki=qn=>{try{Ni(Ft.throw(qn))}catch(Wi){rn(Wi)}},Ni=qn=>qn.done?bt(qn.value):Promise.resolve(qn.value).then(Sr,ki);Ni((Ft=Ft.apply(xn,jn)).next())});const yt=({globalSetting:xn,dispatch:jn,user:Ft,open:bt,onCancel:rn=()=>{}})=>{const[Sr,ki]=(0,ce.useState)([]),[Ni,qn]=(0,ce.useState)([]),[Wi,Hr]=(0,ce.useState)([]),[no]=ke.default.useForm(),[vi,Ji]=(0,ce.useState)(!1),[Aa,uo]=(0,ce.useState)(!1),Ir=(0,ce.useRef)(null),Bt=(0,ce.useRef)(1),[Ht,pn]=(0,ce.useState)({keyword:"",source:"",status:"",page:1,limit:20});(0,ce.useEffect)(()=>{bt&&zt()},[bt]);const zt=()=>dt(void 0,null,function*(){var ri;const Ei=yield li(Ht);if(!(0,Ae.o1)(jn))return;const{user_school_id:Xn="",department_id:tn="",school_name:Jr="",department_name:Tn=""}=Ft.userInfo||{},zr=(ri=Ei==null?void 0:Ei.graduation_years)==null?void 0:ri.at(-1);qn([{id:Xn,name:Jr}]),yield cr(Xn),no.setFieldsValue({year:zr,school_id:Xn,department_id:Number(tn),name:`${zr}${Jr}${Tn}\u6BD5\u4E1A\u8BBE\u8BA1`})}),li=ri=>dt(void 0,null,function*(){const Ei=yield(0,ot.J3)(ri);return Ei.status===0&&ki((Ei==null?void 0:Ei.graduation_years)||[]),Ei}),ir=(ri,Ei=500)=>{uo(!0),clearTimeout(Ir.current),Ir.current=setTimeout(()=>dt(void 0,null,function*(){Bt.current+=1;const Xn=Bt.current,tn=yield(0,ot.NT)({keyword:ri});tn.status===0&&Bt.current===Xn&&(qn((tn==null?void 0:tn.schools)||[]),uo(!1))}),Ei)},cr=ri=>dt(void 0,null,function*(){if(!ri)return;const Ei=yield(0,ot.Ps)({page:1,limit:9999,id:ri});Ei.status===0&&Hr((Ei==null?void 0:Ei.departments)||[])});return ce.createElement(Dt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:bt,title:"\u5F00\u542F\u65B0\u4E00\u5C4A\u6BD5\u4E1A\u8BBE\u8BA1",width:578,confirmLoading:vi,onCancel:rn,onOk:()=>no.submit()},ce.createElement(ke.default,{colon:!1,form:no,initialValues:{},labelCol:{span:7},size:"large",wrapperCol:{span:17},onValuesChange:(ri,Ei)=>{ri.school_id&&(cr(Ei.school_id),no.setFieldValue("department_id",null))},onFinish:ri=>dt(void 0,null,function*(){Ji(!0);const Ei=yield(0,ot.Wz)(ri);Ei.status===0&&(Ge.ZP.success("\u521B\u5EFA\u6210\u529F"),no.resetFields(),rn(),(0,Re.xg)(`/graduations/${Ei==null?void 0:Ei.identifier}/index`)),Ji(!1)})},ce.createElement(ke.default.Item,{name:"year",label:"\u9009\u62E9\u5C4A\u522B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},ce.createElement(Me.default,{style:{width:344},size:"large",options:Sr.map(ri=>({value:ri,label:ri}))})),ce.createElement(ke.default.Item,{name:"school_id",label:"\u5B66\u6821",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},ce.createElement(Me.default,{showSearch:!0,filterOption:!1,onSearch:ri=>{ir(ri)},loading:Aa,size:"large",style:{width:344},options:Ni.map(ri=>({value:ri.id,label:ri.name}))})),ce.createElement(ke.default.Item,{name:"department_id",label:"\u5B66\u9662",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u9662"}]},ce.createElement(Me.default,{showSearch:!0,optionFilterProp:"label",style:{width:344},size:"large",options:Wi.map(ri=>({value:ri.id,label:ri.name}))})),ce.createElement(ke.default.Item,{name:"name",label:"\u6BD5\u4E1A\u8BBE\u8BA1\u540D\u79F0",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u4E1A\u8BBE\u8BA1\u540D\u79F0"},{max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u4E1A\u8BBE\u8BA1\u540D\u79F0"}]},ce.createElement(kt.default,{showCount:!0,style:{width:344},maxLength:60}))))};var vt=(0,at.connect)(({user:xn,globalSetting:jn,loading:Ft})=>({user:xn,globalSetting:jn,loading:Ft}))(yt),Kt=we(70635),wt=Object.defineProperty,It=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Mi=(xn,jn,Ft)=>jn in xn?wt(xn,jn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):xn[jn]=Ft,wi=(xn,jn)=>{for(var Ft in jn||(jn={}))Yt.call(jn,Ft)&&Mi(xn,Ft,jn[Ft]);if(It)for(var Ft of It(jn))yn.call(jn,Ft)&&Mi(xn,Ft,jn[Ft]);return xn},Nn=(xn,jn,Ft)=>new Promise((bt,rn)=>{var Sr=qn=>{try{Ni(Ft.next(qn))}catch(Wi){rn(Wi)}},ki=qn=>{try{Ni(Ft.throw(qn))}catch(Wi){rn(Wi)}},Ni=qn=>qn.done?bt(qn.value):Promise.resolve(qn.value).then(Sr,ki);Ni((Ft=Ft.apply(xn,jn)).next())});const ui=({globalSetting:xn,dispatch:jn,user:Ft,open:bt,onCancel:rn=()=>{}})=>{const[Sr]=ke.default.useForm(),[ki,Ni]=(0,ce.useState)(!1),[qn,Wi]=(0,ce.useState)(null);return(0,ce.useEffect)(()=>{var Hr;if(bt){const no={code:"",user_type:((Hr=Ft==null?void 0:Ft.userInfo)==null?void 0:Hr.identity)==="student"?2:1,major:""};Sr.setFieldsValue(no),Wi(wi({},no))}},[bt]),ce.createElement(Dt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:bt,title:"\u52A0\u5165\u6BD5\u8BBE",width:527,confirmLoading:ki,onCancel:rn,onOk:()=>Sr.submit()},ce.createElement(ke.default,{colon:!1,form:Sr,initialValues:{user_type:1},labelCol:{span:5},wrapperCol:{span:19},size:"large",onValuesChange:(Hr,no)=>Wi(wi({},no)),onFinish:Hr=>Nn(void 0,null,function*(){Ni(!0);const no=yield(0,Kt.ZP)("/api/graduations/join.json",{method:"post",body:Hr});no.status===0&&(rn(),no!=null&&no.identifier?(0,Re.xg)(`/graduations/${no==null?void 0:no.identifier}/index`):Ge.ZP.success(no==null?void 0:no.message)),Ni(!1)})},ce.createElement(ke.default.Item,{name:"code",label:"\u6BD5\u8BBE\u9080\u8BF7\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u8BBE\u9080\u8BF7\u7801"}]},ce.createElement(kt.default,{placeholder:"\u8BF7\u8F93\u5165\u6BD5\u8BBE\u9080\u8BF7\u7801",size:"large"})),ce.createElement(ke.default.Item,{name:"user_type",label:"\u8EAB\u4EFD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u8BBE\u9080\u8BF7\u7801"}]},ce.createElement(Gt.ZP.Group,null,ce.createElement(Gt.ZP,{value:1,style:{color:"#000"}},"\u7BA1\u7406\u5458\uFF08\u6559\u5E08\uFF09"),ce.createElement(Gt.ZP,{className:"ml30",style:{color:"#000"},value:2},"\u5B66\u751F"))),(qn==null?void 0:qn.user_type)===2&&ce.createElement(ke.default.Item,{style:{marginBottom:0},name:"major",label:"\u4E13\u4E1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u540D\u79F0"},{max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u540D\u79F0"}]},ce.createElement(kt.default,{showCount:!0,maxLength:60}))))};var tt=(0,at.connect)(({user:xn,globalSetting:jn})=>({user:xn,globalSetting:jn}))(ui),He=we(59301),mn=Object.defineProperty,Zn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,yi=(xn,jn,Ft)=>jn in xn?mn(xn,jn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):xn[jn]=Ft,Yn=(xn,jn)=>{for(var Ft in jn||(jn={}))gn.call(jn,Ft)&&yi(xn,Ft,jn[Ft]);if(nn)for(var Ft of nn(jn))Ln.call(jn,Ft)&&yi(xn,Ft,jn[Ft]);return xn},Ai=(xn,jn)=>Zn(xn,Qn(jn)),mt=(xn,jn)=>{var Ft={};for(var bt in xn)gn.call(xn,bt)&&jn.indexOf(bt)<0&&(Ft[bt]=xn[bt]);if(xn!=null&&nn)for(var bt of nn(xn))jn.indexOf(bt)<0&&Ln.call(xn,bt)&&(Ft[bt]=xn[bt]);return Ft},ht=(xn=>(xn.Projects="projects",xn.Shixuns="shixuns",xn.Classrooms="classrooms",xn))(ht||{}),un=(xn=>(xn.Classrooms="classrooms",xn.Shixuns="shixuns",xn.Paths="paths",xn.Projects="projects",xn.Videos="videos",xn.Topics="topics",xn))(un||{});const Sn=xn=>{var jn=xn,{homePage:Ft,user:bt,globalSetting:rn,loading:Sr,dispatch:ki}=jn,Ni=mt(jn,["homePage","user","globalSetting","loading","dispatch"]),qn,Wi,Hr,no,vi,Ji,Aa,uo;const[Ir,Bt]=(0,ce.useState)(),[Ht,pn]=(0,ce.useState)(),[zt,li]=(0,ce.useState)(!1),[ir,cr]=(0,ce.useState)(!1),ri=zr=>{var Or;if((0,Ae.tJ)(ki)){if(zr==="projects"&&!((Or=bt.userInfo)!=null&&Or.email)){Ge.ZP.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}zr==="classrooms"?Bt(!0):zr==="projects"&&pn(!0)}},Ei=(zr,Or)=>{var ur;if((0,Ae.tJ)(ki)){if(Or==="projects"&&!((ur=bt.userInfo)!=null&&ur.email)){Ge.ZP.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Or==="shixuns"&&!(0,Ae.xY)()||zr&&(window.location.href=zr)}},Xn=(Wi=(((qn=rn.setting)==null?void 0:qn.navbar)||[]).find(zr=>zr.link==="/classrooms"))==null?void 0:Wi.hidden;let tn=(no=(((Hr=rn.setting)==null?void 0:Hr.navbar)||[]).find(zr=>zr.link==="/shixuns"))==null?void 0:no.hidden;const Jr=(Ji=(((vi=rn.setting)==null?void 0:vi.navbar)||[]).find(zr=>zr.link==="/paths"))==null?void 0:Ji.hidden;(Aa=rn==null?void 0:rn.setting)!=null&&Aa.is_local&&((uo=bt==null?void 0:bt.userInfo)!=null&&uo.is_shixun_marker||(tn=!0));const Tn=zr=>{var Or,ur,ko,Zr,Gi,Er,ro,Fn,ti,Ue,fo,So,rr,Xi,Ui,qo,gs,Ps,Ro;return He.createElement(He.Fragment,null,He.createElement(Mt.Z,{justify:"space-around",className:"pt5 pb5"},He.createElement(Ct.Z,{className:xe.joinCol},((Or=bt.userInfo)==null?void 0:Or.user_identity)!=="\u5B66\u751F"&&!Xn&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>Ei("/classrooms/new")},(ur=bt.userInfo)!=null&&ur.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!tn&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>Ei("/shixuns/new","shixuns")},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((ko=bt.userInfo)==null?void 0:ko.main_site)||!((Zr=bt.userInfo)!=null&&Zr.main_site)&&!Jr&&(((Gi=bt.userInfo)==null?void 0:Gi.admin)||((Er=bt.userInfo)==null?void 0:Er.is_teacher)||((ro=bt.userInfo)==null?void 0:ro.business)))&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>Ei("/paths/new")},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!((Fn=rn==null?void 0:rn.setting)!=null&&Fn.is_local)&&((ti=bt.userInfo)==null?void 0:ti.main_site)&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>{var Ho;return Ei(`${(Ho=rn==null?void 0:rn.setting)==null?void 0:Ho.old_url}/projects/deposit/new`,"projects")}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE")),window.location.host!=="narl.educoder.net"&&((Ue=bt==null?void 0:bt.userInfo)==null?void 0:Ue.identity)!=="student"&&He.createElement(Et.default.Item,Ai(Yn({},zr),{onClick:()=>{(0,Ae.o1)(ki)&&li(!0)}}),He.createElement("a",null,"\u65B0\u5EFA\u6BD5\u4E1A\u8BBE\u8BA1")),!((fo=bt.userInfo)!=null&&fo.main_site)&&He.createElement("div",null,!Xn&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>ri("classrooms")},(So=bt.userInfo)!=null&&So.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((rr=bt.userInfo)==null?void 0:rr.main_site)&&!((Xi=rn==null?void 0:rn.setting)!=null&&Xi.is_local)&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>ri("projects")},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))),((Ui=bt.userInfo)==null?void 0:Ui.main_site)&&He.createElement(Ct.Z,null,He.createElement("div",{className:xe.joinBoard})),((qo=bt.userInfo)==null?void 0:qo.main_site)&&He.createElement(Ct.Z,{className:xe.joinCol},!Xn&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>ri("classrooms")},(gs=bt.userInfo)!=null&&gs.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((Ps=bt.userInfo)==null?void 0:Ps.main_site)&&!((Ro=rn==null?void 0:rn.setting)!=null&&Ro.is_local)&&He.createElement(Et.default.Item,Yn({},zr),He.createElement("a",{onClick:()=>ri("projects")},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")),He.createElement(Et.default.Item,Ai(Yn({},zr),{onClick:()=>{(0,Ae.o1)(ki)&&cr(!0)}}),He.createElement("a",null,"\u52A0\u5165\u6BD5\u4E1A\u8BBE\u8BA1")))))};return He.createElement("section",null,He.createElement(xt.Z,{dropdownRender:()=>He.createElement(Et.default,{className:`${xe.rightMenu} ${xe.joinMenu} mt10`},He.createElement(Tn,null)),placement:"bottomRight"},He.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),He.createElement(pe.Z,{visible:Ir,onCancel:()=>Bt(!1)}),He.createElement(le,{visible:Ht,onCancel:()=>pn(!1)}),He.createElement(vt,{open:zt,onCancel:()=>li(!1)}),He.createElement(tt,{open:ir,onCancel:()=>cr(!1)}))};var Dn=(0,at.connect)(({homePage:xn,loading:jn,user:Ft,globalSetting:bt})=>({homePage:xn,user:Ft,globalSetting:bt,loading:jn.models.index}))(Sn),kn={flex_box_center:"flex_box_center___YbxYn",flex_space_between:"flex_space_between___Atwkg",flex_box_vertical_center:"flex_box_vertical_center____I6AC",flex_box_center_end:"flex_box_center_end___LrYPg",flex_box_column:"flex_box_column___j7QNF",userPic:"userPic___a46Uz",rightMenu:"rightMenu___y_nqk",menuWrap:"menuWrap___iwlZB",exit:"exit___MOREW",classromediv:"classromediv___crYsO",glow:"glow___jMGk7",height67:"height67___asp2E",login:"login___WGEW9",icon:"icon___HABAt"},ii=we(2119),Hn=we(3129),Di=we(10148),hn=we(59301),rt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,We=(xn,jn)=>{var Ft={};for(var bt in xn)Pt.call(xn,bt)&&jn.indexOf(bt)<0&&(Ft[bt]=xn[bt]);if(xn!=null&&rt)for(var bt of rt(xn))jn.indexOf(bt)<0&&_t.call(xn,bt)&&(Ft[bt]=xn[bt]);return Ft},Ce=(xn,jn,Ft)=>new Promise((bt,rn)=>{var Sr=qn=>{try{Ni(Ft.next(qn))}catch(Wi){rn(Wi)}},ki=qn=>{try{Ni(Ft.throw(qn))}catch(Wi){rn(Wi)}},Ni=qn=>qn.done?bt(qn.value):Promise.resolve(qn.value).then(Sr,ki);Ni((Ft=Ft.apply(xn,jn)).next())});const Ee=xn=>{var jn,Ft=RegExp("(^| )"+xn+"=([^;]+)(;|$)");return(jn=document.cookie.match(Ft))?decodeURIComponent(jn[2]):null},Ie=xn=>{var jn=new Date;jn.setTime(jn.getTime()-1);var Ft=Ee(xn);Ft!=null&&(document.cookie=xn+"="+Ft+";expires="+jn.toGMTString())};var Ke=(xn=>(xn.Classrooms="classrooms",xn.Shixuns="shixuns",xn.Paths="paths",xn.Projects="projects",xn.Videos="videos",xn.Topics="topics",xn))(Ke||{});const Le=xn=>{var jn=xn,{homePage:Ft,user:bt,globalSetting:rn,loading:Sr,dispatch:ki,shixunHomeworks:Ni,location:qn,payload:Wi={}}=jn,Hr=We(jn,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),no,vi,Ji,Aa,uo,Ir,Bt,Ht,pn,zt;const li=(vi=(((no=rn.setting)==null?void 0:no.navbar)||[]).find(Xn=>Xn.link==="/classrooms"))==null?void 0:vi.hidden,ir=(Aa=(((Ji=rn.setting)==null?void 0:Ji.navbar)||[]).find(Xn=>Xn.link==="/shixuns"))==null?void 0:Aa.hidden,cr=(Ir=(((uo=rn.setting)==null?void 0:uo.navbar)||[]).find(Xn=>Xn.link==="/paths"))==null?void 0:Ir.hidden,ri=(Bt=bt.userInfo)==null?void 0:Bt.is_school_manage,Ei=()=>{var Xn,tn,Jr,Tn,zr,Or,ur,ko;return(0,Re.Ll)()?hn.createElement(Et.default,{className:`${kn.rightMenu} ${kn.menuWrap}`},hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406"))):hn.createElement(Et.default,{className:`${kn.rightMenu} ${kn.menuWrap}`},hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:`/users/${(Xn=bt.userInfo)==null?void 0:Xn.login}/classrooms`},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!li&&hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:`/users/${(tn=bt.userInfo)==null?void 0:tn.login}/classrooms`},(Jr=bt.userInfo)!=null&&Jr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!ir&&hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:`/users/${(Tn=bt.userInfo)==null?void 0:Tn.login}/shixuns`},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!cr&&hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:`/users/${(zr=bt.userInfo)==null?void 0:zr.login}/paths`},(Or=bt.userInfo)!=null&&Or.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:`/users/${(ur=bt.userInfo)==null?void 0:ur.login}/teach-group`},"\u6211\u7684\u6559\u7814\u56E2\u961F")),hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:`/users/${(ko=bt.userInfo)==null?void 0:ko.login}/competitions`},"\u6211\u7684\u7ADE\u8D5B\u7BA1\u7406")),hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:"/order"},"\u6211\u8D2D\u4E70\u7684\u8BFE\u7A0B")),(0,ii.Ny)()&&hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:"/quality"},"\u7CBE\u54C1\u8BFE\u7A0B")),!(0,ii.JA)()&&hn.createElement(Et.default.Item,null,hn.createElement("a",{onClick:()=>{(0,Ae.tJ)(ki)&&at.history.push("/problemset")}},"\u8BD5\u9898\u5E93")),!(0,ii.JA)()&&hn.createElement(Et.default.Item,null,hn.createElement("a",{onClick:()=>{(0,Ae.tJ)(ki)&&at.history.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{onClick:()=>{localStorage.getItem("Noviceguide")==="0"||ki({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:hn.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),ri&&hn.createElement(Et.default.Item,null,hn.createElement(at.Link,{to:"/administration/college"},"\u9AD8\u6821\u7BA1\u7406")),hn.createElement(Et.default.Item,{className:kn.exit},hn.createElement("a",{onClick:()=>Ce(void 0,null,function*(){try{const Zr=yield(0,Hn.vR)({});Ge.ZP.success(Zr==null?void 0:Zr.message)}catch(Zr){}(0,Re.d8)("_educoder_session","logout",1),(0,Re.m5)(),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),setTimeout(()=>{window.location.href="/"},800)})},"\u9000\u51FA")))};return(0,ii.bg)()?hn.createElement(xt.Z,{className:`${kn.height67}`,dropdownRender:Ei,placement:"bottomRight"},hn.createElement("section",null,hn.createElement("aside",null,hn.createElement("div",{className:Ni.actionTabs.type===1?kn.classromediv:""},hn.createElement("img",{className:`${kn.userPic} current ml15`,src:`${(Ht=Di.Z)==null?void 0:Ht.IMG_SERVER}/images/${(pn=bt.userInfo)==null?void 0:pn.image_url}`,alt:"",onClick:()=>{var Xn;return at.history.push((0,Re.Ll)()?"/account/profile":`/users/${(Xn=bt.userInfo)==null?void 0:Xn.login}/classrooms`)}}),(0,Re.Ll)()&&hn.createElement("span",{className:"ml10 font16"},(zt=bt.userInfo)==null?void 0:zt.username),hn.createElement("i",{className:`iconfont icon-zhankai4 ${kn.icon}`}))))):hn.createElement("div",{className:`font15 ${rn.isIlearning?kn.login:""}`},hn.createElement("span",{className:"ml10 mr5 current c-white",onClick:()=>{ki({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55 / \u6CE8\u518C"))};var st=(0,at.connect)(({homePage:xn,loading:jn,user:Ft,globalSetting:bt,shixunHomeworks:rn})=>({homePage:xn,user:Ft,globalSetting:bt,shixunHomeworks:rn,loading:jn.models.index}))(Le),dn={tip:"tip___a6MfI"},sn=we(61186),en=we.n(sn),Xt=we(59301),ai=(xn,jn,Ft)=>new Promise((bt,rn)=>{var Sr=qn=>{try{Ni(Ft.next(qn))}catch(Wi){rn(Wi)}},ki=qn=>{try{Ni(Ft.throw(qn))}catch(Wi){rn(Wi)}},Ni=qn=>qn.done?bt(qn.value):Promise.resolve(qn.value).then(Sr,ki);Ni((Ft=Ft.apply(xn,jn)).next())}),Bn=(xn=>(xn[xn.Professor=1]="Professor",xn[xn.AssistantProfessor=2]="AssistantProfessor",xn[xn.Student=3]="Student",xn))(Bn||{});const In=({visible:xn,user:jn,onCancel:Ft=()=>{},dispatch:bt})=>{var rn,Sr,ki;const[Ni,qn]=(0,ce.useState)(),[Wi,Hr]=(0,ce.useState)([]),[no,vi]=(0,ce.useState)(!1),[Ji,Aa]=(0,ce.useState)(!1),[uo,Ir]=(0,ce.useState)(),[Bt,Ht]=(0,ce.useState)(!1),pn=(rn=window.location.pathname)==null?void 0:rn.includes("classrooms/");(0,ce.useEffect)(()=>{var Ei,Xn;(Ei=jn==null?void 0:jn.userInfo)!=null&&Ei.identity&&Hr([((Xn=jn==null?void 0:jn.userInfo)==null?void 0:Xn.identity)==="student"?3:1])},[jn]),(0,ce.useEffect)(()=>{var Ei,Xn,tn;if(console.log(jn==null?void 0:jn.userInfo),(Ei=jn==null?void 0:jn.userInfo)!=null&&Ei.user_status)if(((Xn=jn==null?void 0:jn.userInfo)==null?void 0:Xn.role)===15){Ht(!1);return}else{let Jr=JSON.parse(pn?localStorage==null?void 0:localStorage.getItem("delaytip_class"):localStorage==null?void 0:localStorage.getItem("delaytip_user"));Jr&&(Jr==null?void 0:Jr.login)===((tn=jn==null?void 0:jn.userInfo)==null?void 0:tn.login)?(console.log(en()(Jr==null?void 0:Jr.time).add(1,"days")),console.log(en()(new Date)),en()(Jr==null?void 0:Jr.time).add(1,"days").set({hour:0,minute:0,second:0})<en()(new Date)&&Ht(!0)):Ht(!0)}},[(Sr=jn==null?void 0:jn.userInfo)==null?void 0:Sr.user_status]);const zt=(Ei,Xn)=>{if(Wi.includes(1)){Dt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Xt.createElement("div",{className:"tc"},Xn||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${Ei}/students`}});return}window.location.href=`/classrooms/${Ei}/students`},li=()=>ai(void 0,null,function*(){if(!Ni){Ge.ZP.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}vi(!0);const Ei=yield(0,Ut.cR)({invite_code:Ni,professor:Wi.includes(1)?1:null,assistant_professor:Wi.includes(2)?1:null,student:Wi.includes(3)?1:null});if(vi(!1),(Ei==null?void 0:Ei.status)===-1&&bt({type:"classroomList/setActionTabs",payload:{key:"\u5230\u671F\u63D0\u793A"}}),(Ei==null?void 0:Ei.status)===-2){if(ir(),Ei.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"){Aa(!0),Ir(1);return}if(Ei.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1"){Aa(!0),Ir(2);return}if(Ei.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1"){Aa(!0),Ir(3);return}}if((Ei==null?void 0:Ei.status)===0){(0,Re.L9)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),ir(),Ei!=null&&Ei.course_id?zt(Ei.course_id,Ei.message):Ge.ZP.success(Ei.message);return}}),ir=()=>ai(void 0,null,function*(){Ft()}),cr=()=>{var Ei,Xn;pn?localStorage.setItem("delaytip_class",JSON.stringify({time:new Date,login:(Ei=jn==null?void 0:jn.userInfo)==null?void 0:Ei.login})):localStorage.setItem("delaytip_user",JSON.stringify({time:new Date,login:(Xn=jn==null?void 0:jn.userInfo)==null?void 0:Xn.login})),Ht(!1)},ri=()=>ai(void 0,null,function*(){let Ei=yield(0,Kt.ZP)("/api/business_contacts.json",{method:"post"});(Ei==null?void 0:Ei.status)===0&&Ge.ZP.info("\u7533\u8BF7\u6210\u529F")});return Xt.createElement(Xt.Fragment,null,Bt&&Xt.createElement("div",{style:{background:"rgba(255,24,24,0.1)",color:"#E30000",display:"none"}},Xt.createElement("div",{className:dn.tip},Xt.createElement("div",null,Xt.createElement("i",{className:"iconfont icon-tishi9 font14 mr10",style:{color:"#E30000"}}),pn?Xt.createElement(Xt.Fragment,null,"\u5C0A\u656C\u7684\u8001\u5E08\u60A8\u597D\uFF0C\u8D35\u5355\u4F4D\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u60A8\u7684\u6559\u5B66\u8BFE\u5802\u7684",((ki=jn==null?void 0:jn.userInfo)==null?void 0:ki.user_status)==2?"\u90E8\u5206\u529F\u80FD\u5DF2\u88AB\u9650\u5236":"\u529F\u80FD\u5C06\u53D7\u5230\u9650\u5236",'\uFF0C\u4E3A\u786E\u4FDD\u6821\u5185\u6559\u5B66\u4E0D\u53D7\u5F71\u54CD\uFF0C\u8BF7\u5148\u70B9\u51FB\u53F3\u4FA7\u7684"\u7533\u8BF7\u5EF6\u671F"\u6309\u94AE\uFF0C\u5E73\u53F0\u5C06\u63A8\u52A8\u89E3\u51B3\u76F8\u5173\u4E8B\u5B9C\u3002'):Xt.createElement(Xt.Fragment,null,'\u5C0A\u656C\u7684\u8001\u5E08\u60A8\u597D\uFF0C\u8D35\u5355\u4F4D\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u5C06\u53D7\u5230\u9650\u5236\uFF0C\u4E3A\u786E\u4FDD\u6821\u5185\u6559\u5B66\u4E0D\u53D7\u5F71\u54CD\uFF0C\u8BF7\u5148\u70B9\u51FB\u53F3\u4FA7\u7684"\u7533\u8BF7\u5EF6\u671F"\u6309\u94AE\uFF0C\u5E73\u53F0\u5C06\u63A8\u52A8\u89E3\u51B3\u76F8\u5173\u4E8B\u5B9C\u3002')),Xt.createElement("div",null,Xt.createElement("span",{className:"mr15",style:{color:"#666666",cursor:"pointer"},onClick:cr},"\u5FFD\u7565"),Xt.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:ri},"\u7533\u8BF7\u5EF6\u671F")))))};var Yi=(0,at.connect)(({user:xn})=>({user:xn}))(In),fi=we(3113),ar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAACpCAYAAAD6OhnWAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfQWcHEX2/7daxtc17oYFSYIeBPsBgRwECe6BcHDIccghRxIk6MFB4A4NJHiCB7egwXJokLhnXcenu6v+n1fdPTu7O7vZ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amG0YwRZ1kO1/Cxg1o5ltLKdDBGJuUI05TYiVLgKlEcetcrvXWPFJVosIkf2t5DOvaJP3xVTRKkYb3HoHivBRI/JuBFoB5vcostvDSW1LmK5NgQM2WTGT1upgndcgM4KcMqRrhaAse78v/OmAq2/0F7CG+TE9S9iNx/smXxRlo23j2DAfcy/jbOukAuLGgvA0lBoa7CWAqTG/x3/QQ7UGBZq8WwM99Bsrvi66rNgnuBjTlwqVUSMkwQHNOKkBv5LFa/iBQ9xXNdiGLx4xMZvK0hc+JGlq2S2oG3CbtxSgOlTT+Ek2XIGsWTASOYHLumUV2HhfcbJv9I8HisU6zUFvDT7ZFs42aQ2yDsD+TQB9whIjHiNhNoH153YJyD5C8mFrElozXvNXP1ILSBezZ7GUP28656wzuBJl3eg4aJ1CYQO2+ABUy2GNWzZQQqzy1IYiJ8TJTZa3aZ9AdAqIXs3bNjoe+a2nWFnFBorK+5cgrzy95TtAE5AIRx6D7M80zCXYW008MwpMFIuaI2GRjlNnH1ZufRcABIm4hNjsotR0ItJh0ArjET0LIJ2USOwfgs15S23v7GvD2vVXf7Z+bp8y68ZLVvE5mZzcg7qTz5ydQcZRMZfLQPSDyfCcdyVAO1rteKY1eOAL0bmIXsqmUTf4jAkWWbXGDX0QQLJ7vZRZl0Njo4yZis9C/y7f7lIWk/WIusJOc9Q6fd/1iC8pVnnXlMd35t+tpm5zc3Nb4lu41dmzG8my45vRHft5pAdb4eXn9cb7+hfxhaJ60AYVCIX9yOCSrlq8pG7cogoPm6vz772Yz3LrJmo97Kuet/weX7/RHY+BFcPwPAL3oJXTdfvZSiJV7t6yjnb+FjsTzfpr81XWfddddc59Vq9lHCo9XeWcuesz/KaAXvezzbl/7MFzqqZ4tay71Ej6mO/0Xg5uniQ1vwFgAAAAASUVORK5CYII=",io=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,Mr=(xn,jn)=>{var Ft={};for(var bt in xn)jo.call(xn,bt)&&jn.indexOf(bt)<0&&(Ft[bt]=xn[bt]);if(xn!=null&&io)for(var bt of io(xn))jn.indexOf(bt)<0&&bo.call(xn,bt)&&(Ft[bt]=xn[bt]);return Ft};const _o=null,Bo=xn=>{var jn=xn,{homePage:Ft,user:bt,globalSetting:rn,loading:Sr,dispatch:ki,location:Ni,text:qn,shixunHomeworks:Wi,payload:Hr={}}=jn,no=Mr(jn,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]);const[vi,Ji]=(0,ce.useState)("none");return(0,ce.useEffect)(()=>{Wi.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Ji("flex")},[Wi.actionTabs.key]),(0,ce.useEffect)(()=>{Wi.actionTabs.key==="\u9690\u85CF"&&(Ji("none"),localStorage.setItem("Noviceguide","0"))},[Wi.actionTabs.key]),ce.createElement("div",{style:{display:vi,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},ce.createElement("div",{style:{margin:"0 auto",width:"1200px"}},ce.createElement("img",{src:ar,style:{position:"absolute",top:"-32px"}}),ce.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Wi.actionTabs.text),Wi.actionTabs.type===9?ce.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},ce.createElement(fi.ZP,{type:"primary",onClick:()=>{localStorage.setItem("Noviceguide","0"),Ji("none"),ki({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):ce.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},ce.createElement(fi.ZP,{type:"primary",onClick:()=>{localStorage.setItem("Noviceguide","0"),ki({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Ji("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))};var yo=(0,at.connect)(({homePage:xn,loading:jn,user:Ft,globalSetting:bt,shixunHomeworks:rn})=>({homePage:xn,user:Ft,globalSetting:bt,loading:jn.models.index,shixunHomeworks:rn}))(Bo),ho=Object.defineProperty,Tr=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,eo=(xn,jn,Ft)=>jn in xn?ho(xn,jn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):xn[jn]=Ft,Wn=(xn,jn)=>{for(var Ft in jn||(jn={}))Be.call(jn,Ft)&&eo(xn,Ft,jn[Ft]);if(Tr)for(var Ft of Tr(jn))ua.call(jn,Ft)&&eo(xn,Ft,jn[Ft]);return xn};const Oi=xn=>React.createElement("svg",Wn({width:46,height:18,xmlns:"http://www.w3.org/2000/svg"},xn),React.createElement("title",null,"logo2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M6.578 8.8c.162-.682.3-.737.982-.737.689 0 .793.055.632.737-.164.689-.298.76-.987.76-.682 0-.79-.071-.627-.76Zm-.222 1.198h1.488l-1.004 4.23H5.352l1.004-4.23ZM8.465 11.244h2.474l-.275 1.16H8.189zM15.12 12.889l-.317 1.34H11.23l1.291-5.437h1.56l-.974 4.097zM18.688 11.55c.076-.322.01-.541-.459-.541-.501 0-.748.117-.905.642l1.364-.102Zm1.041.955-2.636.156c-.002.369.3.517.84.517.571 0 1.259-.155 1.545-.305l-.26 1.097c-.301.18-1.012.337-1.85.337-1.332 0-2.039-.454-1.626-2.194.413-1.739 1.336-2.193 2.738-2.193 1.504 0 1.762.626 1.455 1.92-.082.344-.166.602-.206.665ZM22.806 12.936l.079-.33h-.595c-.47 0-.636.071-.695.322-.052.22.098.274.404.274.368 0 .655-.117.807-.266m1.857-1.583-.683 2.875h-1.347l-.025-.391c-.175.212-.596.47-1.34.47-.885 0-1.347-.4-1.131-1.308.23-.972.872-1.332 2.101-1.332h.87c.08-.43-.063-.494-.682-.494-.305 0-.6.024-.885.07l.295-1.245c.334-.054.792-.07 1.098-.07 1.48 0 1.963.438 1.729 1.425M28.691 9.92l-.346 1.324h-.118c-.493 0-1.055.188-1.257.776l-.525 2.208h-1.488l1.005-4.23h1.488l-.175.737c.41-.674.828-.815 1.329-.815h.087ZM33.084 11.369l-.68 2.86h-1.488l.6-2.523c.124-.525.012-.611-.458-.611-.376 0-.572.133-.685.345l-.663 2.788h-1.488l1.005-4.23h1.488l-.102.431c.28-.29.74-.51 1.43-.51.993 0 1.285.424 1.041 1.45M34.507 8.8c.162-.682.3-.737.982-.737.688 0 .793.055.631.737-.163.689-.297.76-.987.76-.681 0-.79-.071-.626-.76Zm-.222 1.198h1.488l-1.004 4.23H33.28l1.004-4.23Z",fill:"#196EFD"}),React.createElement("path",{d:"M34.507 8.8c.162-.682.3-.737.982-.737.688 0 .793.055.631.737-.163.689-.297.76-.987.76-.681 0-.79-.071-.626-.76Zm-.222 1.198h1.488l-1.004 4.23H33.28l1.004-4.23ZM40.522 11.369l-.68 2.86h-1.488l.6-2.523c.124-.525.011-.611-.458-.611-.376 0-.573.133-.685.345l-.663 2.788H35.66l1.004-4.23h1.489l-.102.431c.28-.29.74-.51 1.428-.51.996 0 1.286.424 1.043 1.45",fill:"#196EFD"}),React.createElement("path",{d:"M44.025 12.071c-.173.721-.317 1.132-1.023 1.132-.606 0-.577-.519-.433-1.132.137-.57.353-1.088.959-1.088.714 0 .663.41.497 1.088Zm.425-2.076-.086.368c-.094-.31-.382-.44-1.103-.44-1.34 0-1.917.995-2.199 2.148-.302 1.29-.165 2.156 1.175 2.156.714 0 1.089-.18 1.32-.483l-.022.108c-.187.786-.41 2.004-1.32 2.256-.662.188-1.463-.339-2.09-.548a13.981 13.981 0 0 0-2.408-.59c-1.917-.296-3.878-.174-5.73.41-3.287 1.042-6.775 1.315-10.205 1.352-3.509.037-6.943-.052-10.374-.907-1.071-.267-2.084-.825-3.167-1.001-1.74-.284-3.94.465-5.22-1.16-.584-.735-.915-1.6-.915-2.515 0-1.767 1.225-3.324 3.085-4.225l.591-.764c-.11.145-1.174.218-1.397.285a8.478 8.478 0 0 0-1.524.617c-.936.491-1.82 1.178-2.374 2.093-1.003 1.654-.346 3.809.968 5.109.914.903 2.122 1.454 3.368 1.72 1.298.277 2.684-.167 3.943.277 1.134.4 2.144.831 3.342 1.075a31.42 31.42 0 0 0 3.874.526c2.931.224 5.859.083 8.79-.055a29.884 29.884 0 0 0 7.56-1.331c1.817-.577 3.763-.642 5.63-.281 1.471.28 3.187 1.413 4.686.944 1.428-.44 2.033-1.932 2.35-3.265l.923-3.879h-1.47Z",fill:"#23DD7F"}),React.createElement("path",{d:"m20.387 4.16-.735.079c-1.283-1.687-3.518-2.797-6.048-2.797-3.18 0-5.876 1.752-6.834 4.18l-1.81.196C5.17 2.58 8.637 0 12.883 0c3.489 0 6.452 1.737 7.504 4.16",fill:"#196EFD"}),React.createElement("path",{d:"M28.086 6.488h-2.508c-1.003-1.074-3.086-1.802-5.486-1.802-2.408 0-4.491.735-5.494 1.81.736-1.363 3.043-2.567 5.876-2.92 3.446-.426 7.137 1.21 7.612 2.912",fill:"#196EFD"})));var Ri="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNi41NzggOC44Yy4xNjItLjY4Mi4zLS43MzcuOTgyLS43MzcuNjg5IDAgLjc5My4wNTUuNjMyLjczNy0uMTY0LjY4OS0uMjk4Ljc2LS45ODcuNzYtLjY4MiAwLS43OS0uMDcxLS42MjctLjc2Wm0tLjIyMiAxLjE5OGgxLjQ4OGwtMS4wMDQgNC4yM0g1LjM1MmwxLjAwNC00LjIzWk04LjQ2NSAxMS4yNDRoMi40NzRs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OC4yNzcgMi42ODQtLjE2NyAzLjk0My4yNzcgMS4xMzQuNCAyLjE0NC44MzEgMy4zNDIgMS4wNzVhMzEuNDIgMzEuNDIgMCAwIDAgMy44NzQuNTI2YzIuOTMxLjIyNCA1Ljg1OS4wODMgOC43OS0uMDU1YTI5Ljg4NCAyOS44ODQgMCAwIDAgNy41Ni0xLjMzMWMxLjgxNy0uNTc3IDMuNzYzLS42NDIgNS42My0uMjgxIDEuNDcxLjI4IDMuMTg3IDEuNDEzIDQuNjg2Ljk0NCAxLjQyOC0uNDQgMi4wMzMtMS45MzIgMi4zNS0zLjI2NWwuOTIzLTMuODc5aC0xLjQ3WiIgZmlsbD0iIzIzREQ3RiIvPjxwYXRoIGQ9Im0yMC4zODcgNC4xNi0uNzM1LjA3OWMtMS4yODMtMS42ODctMy41MTgtMi43OTctNi4wNDgtMi43OTctMy4xOCAwLTUuODc2IDEuNzUyLTYuODM0IDQuMThsLTEuODEuMTk2QzUuMTcgMi41OCA4LjYzNyAwIDEyLjg4MyAwYzMuNDg5IDAgNi40NTIgMS43MzcgNy41MDQgNC4xNiIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik0yOC4wODYgNi40ODhoLTIuNTA4Yy0xLjAwMy0xLjA3NC0zLjA4Ni0xLjgwMi01LjQ4Ni0xLjgwMi0yLjQwOCAwLTQuNDkxLjczNS01LjQ5NCAxLjgxLjczNi0xLjM2MyAzLjA0My0yLjU2NyA1Ljg3Ni0yLjkyIDMuNDQ2LS40MjYgNy4xMzcgMS4yMSA3LjYxMiAyLjkxMiIgZmlsbD0iIzE5NkVGRCIvPjwvZz48L3N2Zz4=",ci=we(89392),Un=we(59301),Zt=Object.defineProperty,ln=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Hi=(xn,jn,Ft)=>jn in xn?Zt(xn,jn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):xn[jn]=Ft,gr=(xn,jn)=>{for(var Ft in jn||(jn={}))Tt.call(jn,Ft)&&Hi(xn,Ft,jn[Ft]);if(ln)for(var Ft of ln(jn))An.call(jn,Ft)&&Hi(xn,Ft,jn[Ft]);return xn},sr=(xn,jn)=>{var Ft={};for(var bt in xn)Tt.call(xn,bt)&&jn.indexOf(bt)<0&&(Ft[bt]=xn[bt]);if(xn!=null&&ln)for(var bt of ln(xn))jn.indexOf(bt)<0&&An.call(xn,bt)&&(Ft[bt]=xn[bt]);return Ft},Rn=(xn,jn,Ft)=>new Promise((bt,rn)=>{var Sr=qn=>{try{Ni(Ft.next(qn))}catch(Wi){rn(Wi)}},ki=qn=>{try{Ni(Ft.throw(qn))}catch(Wi){rn(Wi)}},Ni=qn=>qn.done?bt(qn.value):Promise.resolve(qn.value).then(Sr,ki);Ni((Ft=Ft.apply(xn,jn)).next())});const{Header:Ti}=Lt.default,{Search:qr}=kt.default;function _r(){var xn,jn;const bt=window.location.pathname.split("/"),rn={};return bt[1]=="classrooms"&&bt.length>3&&!((xn=bt[4])!=null&&xn.includes("newgold"))&&!((jn=bt[5])!=null&&jn.includes("newgold"))&&bt[2]!=="coursesId"&&(rn.course_id=bt[2]),bt[1]==="shixuns"&&bt.length>3&&(rn.objective_type="shixun",rn.objective_id=bt[2]),bt[1]==="paths"&&bt.length>3&&(rn.objective_type="path",rn.objective_id=bt[2]),gr(gr({},rn),{school:1})}const di=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Ot=xn=>{var jn=xn,{homePage:Ft,user:bt,globalSetting:rn,loading:Sr,dispatch:ki,isLogin:Ni=!1,shixunHomeworks:qn}=jn,Wi=sr(jn,["homePage","user","globalSetting","loading","dispatch","isLogin","shixunHomeworks"]),Hr,no,vi,Ji,Aa,uo,Ir,Bt,Ht;const pn=(0,at.useLocation)(),[zt,li]=(0,ce.useState)(!1),[ir,cr]=(0,ce.useState)(""),[ri,Ei]=(0,ce.useState)(!1),Xn=_r();(0,ce.useEffect)(()=>{ki({type:"user/getNavigationInfo",payload:gr({},Xn)})},[rn.name]),(0,ce.useEffect)(()=>{qn.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(di!=null&&di.includes(pn==null?void 0:pn.pathname)||(pn==null?void 0:pn.pathname.indexOf("/classrooms"))===0||ki({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[pn.pathname]),(0,ce.useEffect)(()=>{qn.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||qn.actionTabs.key||localStorage.setItem("Noviceguide","0")},[qn.actionTabs.key]),(0,ce.useEffect)(()=>{var Gi;if(rn!=null&&rn.setting){let Er=(0,ci.cloneDeep)((Gi=rn==null?void 0:rn.setting)==null?void 0:Gi.navbar);Er=Er==null?void 0:Er.filter(Fn=>{var ti;return!(Fn!=null&&Fn.hidden)&&!((0,ii.JA)()&&((ti=["/paperlibrary","/problemset"])!=null&&ti.includes(Fn.link)))});for(const Fn of Er)Fn.subitem&&(Fn.subitem=Fn.subitem.filter(ti=>{var Ue;return!(ti!=null&&ti.hidden)&&!((0,ii.JA)()&&((Ue=["/paperlibrary","/problemset"])!=null&&Ue.includes(ti.link)))}));let ro=!1;Er==null||Er.map(function(Fn,ti){var Ue,fo,So;const rr=pn.pathname;Fn.link===rr&&(cr(Fn==null?void 0:Fn.link),(0,Re.Dk)(rr==="/"?(Ue=rn==null?void 0:rn.setting)==null?void 0:Ue.name:Zr(Fn==null?void 0:Fn.name)),Or(ko(ti,{name:Fn==null?void 0:Fn.name,link:Fn==null?void 0:Fn.link},Er)),ro=!0),(fo=Fn==null?void 0:Fn.subitem)!=null&&fo.length&&((So=Fn==null?void 0:Fn.subitem)==null||So.map(Xi=>{Xi.link===rr&&(cr(Xi==null?void 0:Xi.link),rr!=="/"&&(0,Re.Dk)(Zr(Xi==null?void 0:Xi.name)),Or(ko(ti,{name:Xi==null?void 0:Xi.name,link:Xi==null?void 0:Xi.link},Er)),ro=!0)}))}),ro||Or(Er)}},[rn==null?void 0:rn.setting,bt]);const tn=(0,ce.useMemo)(()=>{var Gi,Er;return(Gi=rn==null?void 0:rn.setting)!=null&&Gi.nav_logo_url?`${Di.Z.IMG_SERVER}/${(Er=rn==null?void 0:rn.setting)==null?void 0:Er.nav_logo_url}`:`${Di.Z.IMG_SERVER}/images/avatars/LaboratorySetting/1nav?t=${new Date().getTime()}`},[(Hr=rn==null?void 0:rn.setting)==null?void 0:Hr.nav_logo_url]);function Jr(Gi){at.history.push("/search?value="+Gi)}const Tn=()=>zt?Un.createElement("div",{onBlur:()=>{setTimeout(()=>{li(!1)},300)}},Un.createElement(qr,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Jr,autoFocus:!0})):Un.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:()=>{at.history.push("/search?value=")}}),[zr,Or]=(0,ce.useState)([]),ur=(Gi,Er)=>Rn(void 0,null,function*(){var ro,Fn,ti,Ue,fo,So;if((Gi==null?void 0:Gi.name)==="\u5DE5\u7A0B\u8BA4\u8BC1"){const rr=yield(0,Hn.IU)();(ro=rr==null?void 0:rr.data)!=null&&ro.engineer_url?(ti=(Fn=rr==null?void 0:rr.data)==null?void 0:Fn.engineer_url)!=null&&ti.includes("http")?(0,Re.xg)((Ue=rr==null?void 0:rr.data)==null?void 0:Ue.engineer_url):at.history.push((fo=rr==null?void 0:rr.data)==null?void 0:fo.engineer_url):(rr==null?void 0:rr.status)!=401&&Ei(!0);return}(So=Gi==null?void 0:Gi.link)!=null&&So.includes("http")?(0,Re.xg)(Gi==null?void 0:Gi.link):((0,Re.Dk)(Gi==null?void 0:Gi.name),at.history.push(Gi==null?void 0:Gi.link)),(Gi==null?void 0:Gi.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&ki({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:Un.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}})}),ko=(Gi,Er,ro)=>{const Fn=ro.slice();return Fn[Gi]&&(Fn[Gi].name=Er.name,Fn[Gi].link=Er.link),Fn||[]},Zr=(Gi="")=>Gi.indexOf("<")>-1?Gi.slice(0,Gi.indexOf("<")):Gi;return rn.showHeader&&rn.showHeaderFooter?Un.createElement(Lt.default,{style:{background:`${pn.pathname=="/training"?"rgba(0,0,0,0)":""}`},className:`${rn.isIlearning?jt["header-iearning"]:jt.header} ${rn.showHeaderFixed?jt.headerFixed:""}`},(rn==null?void 0:rn.showTip)&&Un.createElement(Yi,null),Un.createElement(Ti,{className:"header",style:{background:`${pn.pathname=="/training"?"rgba(0,0,0,0)":""}`,zIndex:`${pn.pathname=="/training"?"999":""}`}},Un.createElement("section",{className:jt["edu-menu"]},(!!rn.isIlearning||!((no=rn==null?void 0:rn.setting)!=null&&no.main_site)&&!!((vi=rn==null?void 0:rn.setting)!=null&&vi.navbar))&&Un.createElement(at.Link,{style:{display:"flex",alignItems:"center"},onClick:()=>{ki({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},Un.createElement("img",{className:jt.logo,title:(Ji=rn.setting)==null?void 0:Ji.name,src:tn||Ri})),Un.createElement("ul",{className:`${jt.menu} ${(0,Re.Ll)()&&"ml0"}`},(0,Re.Ll)()&&Un.createElement("li",null,Un.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!(0,Re.Ll)()&&rn.setting&&zr.map(function(Gi,Er){var ro,Fn,ti,Ue,fo;return Un.createElement("li",{key:Er,className:!((ro=Gi==null?void 0:Gi.subitem)!=null&&ro.length)&&ir===(Gi==null?void 0:Gi.link)||(Fn=Gi==null?void 0:Gi.subitem)!=null&&Fn.some(So=>ir===(So==null?void 0:So.link))?jt.actived:""},Un.createElement("div",{onClick:()=>ur(Gi,Er),className:jt.name},Un.createElement("span",{dangerouslySetInnerHTML:{__html:(()=>{var So;let rr=Gi==null?void 0:Gi.name;return(So=Gi==null?void 0:Gi.subitem)==null||So.map((Xi,Ui)=>(Xi.link===pn.pathname&&(rr=Xi.name),Xi)),rr})()}}),((ti=Gi==null?void 0:Gi.subitem)==null?void 0:ti.length)>0&&Un.createElement("i",{className:"iconfont icon-zhankai4"})),((Ue=Gi==null?void 0:Gi.subitem)==null?void 0:Ue.length)>0&&Un.createElement("div",{className:jt.dropDown},(fo=Gi==null?void 0:Gi.subitem)==null?void 0:fo.map((So,rr)=>Un.createElement("div",{className:jt.subName,onClick:()=>ur(So,Er),key:Er+"-"+rr},!!rr&&Un.createElement("div",{className:jt.line}),Un.createElement("aside",{className:"font16 c-black"},Zr(So.name)),Un.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},So.content)))))})),Un.createElement("div",{className:"search-bar",style:{flex:rn.isIlearning?"initial":"1 0 auto"}},!(0,Re.Ll)()&&!(rn!=null&&rn.isIlearning)&&Un.createElement(Un.Fragment,null,Un.createElement(Tn,null),!Ni&&Un.createElement(Dn,null),!Ni&&!!((Aa=bt==null?void 0:bt.userInfo)!=null&&Aa.login)&&Un.createElement(at.Link,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:`/messages/${(uo=bt==null?void 0:bt.userInfo)==null?void 0:uo.login}/user_tidings`},((Ir=bt==null?void 0:bt.navigationInfo)==null?void 0:Ir.new_message)&&Un.createElement("span",{className:jt.newslight}))),!Ni&&Un.createElement(st,{payload:Xn}))),Un.createElement(Dt.default,{centered:!0,destroyOnClose:!0,open:ri,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Re.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:()=>Ei(!1)},Un.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},Un.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),Un.createElement("img",{src:`${Di.Z.IMG_SERVER}/${(Bt=rn==null?void 0:rn.setting)==null?void 0:Bt.homepage_tea_qq_qrcode_url}`,width:200,height:200,className:"mb10"}),Un.createElement("p",null,"\u7FA4\u53F7\uFF1A",(Ht=rn==null?void 0:rn.setting)==null?void 0:Ht.homepage_tea_qq_number)))),Un.createElement(yo,null)):Un.createElement(Un.Fragment,null)};var Ii=(0,at.connect)(({homePage:xn,loading:jn,user:Ft,globalSetting:bt,shixunHomeworks:rn})=>({homePage:xn,user:Ft,globalSetting:bt,loading:jn.models.index,shixunHomeworks:rn}))(Ot)},65983:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return _t}});var ce=we(59301),at={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Lt=we(92310),kt=we.n(Lt),Dt=we(71418);var jt=function(We,Ce){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,Ie){Ee.__proto__=Ie}||function(Ee,Ie){for(var Ke in Ie)Object.prototype.hasOwnProperty.call(Ie,Ke)&&(Ee[Ke]=Ie[Ke])})(We,Ce)};function Ge(We,Ce){function Ee(){this.constructor=We}jt(We,Ce),We.prototype=Ce===null?Object.create(Ce):(Ee.prototype=Ce.prototype,new Ee)}function Mt(We,Ce,Ee,Ie){return new(Ee||(Ee=Promise))(function(Ke,Le){function st(en){try{sn(Ie.next(en))}catch(Xt){Le(Xt)}}function dn(en){try{sn(Ie.throw(en))}catch(Xt){Le(Xt)}}function sn(en){var Xt;en.done?Ke(en.value):(Xt=en.value,Xt instanceof Ee?Xt:new Ee(function(ai){ai(Xt)})).then(st,dn)}sn((Ie=Ie.apply(We,Ce||[])).next())})}function Ct(We,Ce){var Ee,Ie,Ke,Le,st={label:0,sent:function(){if(1&Ke[0])throw Ke[1];return Ke[1]},trys:[],ops:[]};return Le={next:dn(0),throw:dn(1),return:dn(2)},typeof Symbol=="function"&&(Le[Symbol.iterator]=function(){return this}),Le;function dn(sn){return function(en){return function(Xt){if(Ee)throw new TypeError("Generator is already executing.");for(;st;)try{if(Ee=1,Ie&&(Ke=2&Xt[0]?Ie.return:Xt[0]?Ie.throw||((Ke=Ie.return)&&Ke.call(Ie),0):Ie.next)&&!(Ke=Ke.call(Ie,Xt[1])).done)return Ke;switch(Ie=0,Ke&&(Xt=[2&Xt[0],Ke.value]),Xt[0]){case 0:case 1:Ke=Xt;break;case 4:return st.label++,{value:Xt[1],done:!1};case 5:st.label++,Ie=Xt[1],Xt=[0];continue;case 7:Xt=st.ops.pop(),st.trys.pop();continue;default:if(Ke=st.trys,!((Ke=Ke.length>0&&Ke[Ke.length-1])||Xt[0]!==6&&Xt[0]!==2)){st=0;continue}if(Xt[0]===3&&(!Ke||Xt[1]>Ke[0]&&Xt[1]<Ke[3])){st.label=Xt[1];break}if(Xt[0]===6&&st.label<Ke[1]){st.label=Ke[1],Ke=Xt;break}if(Ke&&st.label<Ke[2]){st.label=Ke[2],st.ops.push(Xt);break}Ke[2]&&st.ops.pop(),st.trys.pop();continue}Xt=Ce.call(We,st)}catch(ai){Xt=[6,ai],Ie=0}finally{Ee=Ke=0}if(5&Xt[0])throw Xt[1];return{value:Xt[0]?Xt[1]:void 0,done:!0}}([sn,en])}}}function Et(){for(var We=0,Ce=0,Ee=arguments.length;Ce<Ee;Ce++)We+=arguments[Ce].length;var Ie=Array(We),Ke=0;for(Ce=0;Ce<Ee;Ce++)for(var Le=arguments[Ce],st=0,dn=Le.length;st<dn;st++,Ke++)Ie[Ke]=Le[st];return Ie}var xt=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(Ce,Ee){for(var Ie=0,Ke=Ee;Ie<Ke.length;Ie++){var Le=Ke[Ie],st=Le[0],dn=Le[1];Ce.setAttribute(st,dn)}},We.createRect=function(Ce,Ee,Ie){var Ke=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ke.setAttribute("width",Ce.toString()),Ke.setAttribute("height",Ee.toString()),Ie&&We.setAttributes(Ke,Ie),Ke},We.createLine=function(Ce,Ee,Ie,Ke,Le){var st=document.createElementNS("http://www.w3.org/2000/svg","line");return st.setAttribute("x1",Ce.toString()),st.setAttribute("y1",Ee.toString()),st.setAttribute("x2",Ie.toString()),st.setAttribute("y2",Ke.toString()),Le&&We.setAttributes(st,Le),st},We.createPolygon=function(Ce,Ee){var Ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ie.setAttribute("points",Ce),Ee&&We.setAttributes(Ie,Ee),Ie},We.createCircle=function(Ce,Ee){var Ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ie.setAttribute("cx",(Ce/2).toString()),Ie.setAttribute("cy",(Ce/2).toString()),Ie.setAttribute("r",Ce.toString()),Ee&&We.setAttributes(Ie,Ee),Ie},We.createEllipse=function(Ce,Ee,Ie){var Ke=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ke.setAttribute("cx",(Ce/2).toString()),Ke.setAttribute("cy",(Ee/2).toString()),Ke.setAttribute("rx",(Ce/2).toString()),Ke.setAttribute("ry",(Ee/2).toString()),Ie&&We.setAttributes(Ke,Ie),Ke},We.createGroup=function(Ce){var Ee=document.createElementNS("http://www.w3.org/2000/svg","g");return Ce&&We.setAttributes(Ee,Ce),Ee},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(Ce,Ee,Ie,Ke,Le,st,dn){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(sn,[["id",Ce],["orient",Ee],["markerWidth",Ie.toString()],["markerHeight",Ke.toString()],["refX",Le.toString()],["refY",st.toString()]]),sn.appendChild(dn),sn},We.createText=function(Ce){var Ee=document.createElementNS("http://www.w3.org/2000/svg","text");return Ee.setAttribute("x","0"),Ee.setAttribute("y","0"),Ce&&We.setAttributes(Ee,Ce),Ee},We.createTSpan=function(Ce,Ee){var Ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ie.textContent=Ce,Ee&&We.setAttributes(Ie,Ee),Ie},We.createImage=function(Ce){var Ee=document.createElementNS("http://www.w3.org/2000/svg","image");return Ce&&We.setAttributes(Ee,Ce),Ee},We.createPoint=function(Ce,Ee){var Ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ie.x=Ce,Ie.y=Ee,Ie},We.createPath=function(Ce,Ee){var Ie=document.createElementNS("http://www.w3.org/2000/svg","path");return Ie.setAttribute("d",Ce),Ee&&We.setAttributes(Ie,Ee),Ie},We}(),Gt=function(){function We(){}return We.addKey=function(Ce){We.key=Ce},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),Ut=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(Ce,Ee,Ie){var Ke=this;return new Promise(function(Le){var st=Ie!==void 0?Ie:document.createElement("canvas");Ce===null&&(Ke.markersOnly=!0,Ke.naturalSize=!1);var dn=document.createElementNS("http://www.w3.org/2000/svg","svg");dn.setAttribute("xmlns","http://www.w3.org/2000/svg"),dn.setAttribute("width",Ee.width.baseVal.valueAsString),dn.setAttribute("height",Ee.height.baseVal.valueAsString),dn.setAttribute("viewBox","0 0 "+Ee.viewBox.baseVal.width.toString()+" "+Ee.viewBox.baseVal.height.toString()),dn.innerHTML=Ee.innerHTML,Ke.naturalSize===!0?(dn.width.baseVal.value=Ce.naturalWidth,dn.height.baseVal.value=Ce.naturalHeight):Ke.width!==void 0&&Ke.height!==void 0&&(dn.width.baseVal.value=Ke.width,dn.height.baseVal.value=Ke.height),st.width=dn.width.baseVal.value,st.height=dn.height.baseVal.value;var sn=dn.outerHTML,en=st.getContext("2d");Ke.markersOnly!==!0&&en.drawImage(Ce,0,0,st.width,st.height);var Xt=window.URL,ai=new Image(st.width,st.height);ai.setAttribute("crossOrigin","anonymous");var Bn=new Blob([sn],{type:"image/svg+xml"}),In=Xt.createObjectURL(Bn);ai.onload=function(){en.drawImage(ai,0,0),Xt.revokeObjectURL(In);var Yi=st.toDataURL(Ke.imageType,Ke.imageQuality);Le(Yi)},ai.src=In})},We}(),Re=function(){},te=function(){function We(Ce){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ce+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.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(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.prototype.addClass=function(Ce){return this.styleSheet===void 0&&this.addStyleSheet(),Ce.name=""+this.classNamePrefix+Ce.localName,this.classes.push(Ce),this.styleSheet.sheet.insertRule("."+Ce.name+" {"+Ce.style+"}",this.styleSheet.sheet.cssRules.length),Ce},We.prototype.addRule=function(Ce){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ce),this.styleSheet.sheet.insertRule(Ce.selector+" {"+Ce.style+"}",this.styleSheet.sheet.cssRules.length)},We.prototype.addStyleSheet=function(){var Ce;this.styleSheet=document.createElement("style"),((Ce=this.styleSheetRoot)!==null&&Ce!==void 0?Ce:document.head).appendChild(this.styleSheet),this.addRule(new ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new de("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new de("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},We.prototype.removeStyleSheet=function(){var Ce;this.styleSheet&&(((Ce=this.styleSheetRoot)!==null&&Ce!==void 0?Ce:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),ne=function(We,Ce){this.selector=We,this.style=Ce},de=function(We,Ce){this.localName=We,this.style=Ce},le=function(){function We(Ce,Ee,Ie,Ke,Le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ce,this.displayMode=Ee,this.markerItems=Ie,this.uiStyleSettings=Ke,this.styles=Le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.prototype.show=function(Ce){var Ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ce,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ie=document.createElement("div");Ie.className=this.toolbarBlockStyleClass.name,Ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ie),this.addActionButton(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Le){var st=document.createElement("div");st.className=""+Ee.toolbarButtonStyleClass.name,st.setAttribute("data-type-name",Le.typeName),st.innerHTML=Le.icon,st.addEventListener("click",function(){Ee.markerToolbarButtonClicked(st,Le)}),Ee.buttons.push(st),Ee.markerButtons.push(st)}),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 Ke=document.createElement("div");Ke.className=this.toolbarBlockStyleClass.name,Ke.style.whiteSpace="nowrap",Ke.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ke),this.addActionButton(Ke,'<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(Ke,'<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()},We.prototype.addButtonClickListener=function(Ce){this.buttonClickListeners.push(Ce)},We.prototype.removeButtonClickListener=function(Ce){this.buttonClickListeners.indexOf(Ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ce),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ce=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ee=0;Ee<this.markerButtons.length;Ee++)Ee<Ce||Ee===Ce&&this.markerButtons.length-1===Ce?this.markerButtonBlock.appendChild(this.markerButtons[Ee]):(Ee===Ce&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ee]))}},We.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")},We.prototype.resetButtonStyles=function(){var Ce=this;this.buttons.forEach(function(Ee){Ee.className=Ee.className.replace(Ce.uiStyleSettings.toolbarButtonStyleColorsClassName?Ce.uiStyleSettings.toolbarButtonStyleColorsClassName:Ce.toolbarButtonStyleColorsClass.name,"").trim(),Ee.className=Ee.className.replace(Ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ce.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ee.className+=" "+(Ce.uiStyleSettings.toolbarButtonStyleColorsClassName?Ce.uiStyleSettings.toolbarButtonStyleColorsClassName:Ce.toolbarButtonStyleColorsClass.name)})},We.prototype.addActionButton=function(Ce,Ee,Ie){var Ke=this,Le=document.createElement("div");switch(Le.className=""+this.toolbarButtonStyleClass.name,Le.innerHTML=Ee,Le.setAttribute("data-action",Ie),Le.addEventListener("click",function(){Ke.actionToolbarButtonClicked(Le,Ie)}),Ie){case"select":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Le.style.fill=this.uiStyleSettings.closeButtonColor}Ce.appendChild(Le),this.buttons.push(Le)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new de("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 de("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new de("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new de("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 de("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Ce=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new de("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ce)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ce)+`px;
|
|
padding: `+Ce+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new de("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},We.prototype.markerToolbarButtonClicked=function(Ce,Ee){this.setActiveButton(Ce),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ie){return Ie("marker",Ee)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(Ce,Ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ie){return Ie("action",Ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.prototype.setActiveButton=function(Ce){this.resetButtonStyles(),Ce.className=Ce.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ce.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},We.prototype.setActiveMarkerButton=function(Ce){var Ee=this.markerButtons.find(function(Ie){return Ie.getAttribute("data-type-name")===Ce});Ee&&this.setActiveButton(Ee)},We.prototype.setCurrentMarker=function(Ce){var Ee=this;this.currentMarker=Ce,this.buttons.filter(function(Ie){return/delete|notes/.test(Ie.getAttribute("data-action"))}).forEach(function(Ie){Ee.currentMarker===void 0?(Ie.style.fillOpacity="0.4",Ie.style.pointerEvents="none"):(Ie.style.fillOpacity="1",Ie.style.pointerEvents="all")})},We}(),pe=function(){function We(Ce,Ee,Ie,Ke){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ce,this.displayMode=Ee,this.uiStyleSettings=Ie,this.styles=Ke,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var Ce;this.toolboxStyleClass=this.styles.addClass(new de("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 de("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var Ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new de("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new de("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new de("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 de("toolbox-panel-row_colors",`
|
|
background-color: `+((Ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ce!==void 0?Ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new de("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ee)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ee)+`px;
|
|
padding: `+Ee+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new de("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},We.prototype.show=function(Ce){var Ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ee!==void 0?Ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},We.prototype.setPanelButtons=function(Ce){var Ee,Ie,Ke=this;this.panels=Ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ee!==void 0?Ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ie!==void 0?Ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Le){var st;Le.uiStyleSettings=Ke.uiStyleSettings;var dn=document.createElement("div");dn.className=Ke.toolboxButtonStyleClass.name+" "+((st=Ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:Ke.toolboxButtonStyleColorsClass.name),dn.innerHTML=Le.icon,dn.title=Le.title,dn.addEventListener("click",function(){Ke.panelButtonClick(Le)}),Ke.panelButtons.push(dn),Ke.buttonRow.appendChild(dn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(Ce){var Ee=this,Ie=-1;if(Ce!==this.activePanel){Ie=this.panels.indexOf(Ce),this.panelRow.innerHTML="";var Ke=Ce.getUi();Ke.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ke),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=Ce}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ee.displayMode==="inline"?Ee.panelRow.style.display="none":Ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Le,st){var dn,sn;Le.className=Ee.toolboxButtonStyleClass.name+" "+(st===Ie?""+((dn=Ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&dn!==void 0?dn:Ee.toolboxActiveButtonStyleColorsClass.name):""+((sn=Ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:Ee.toolboxButtonStyleColorsClass.name))})},We}(),xe=function(We,Ce){this.title=We,this.icon=Ce},Ae=function(We){function Ce(Ee,Ie,Ke,Le){var st=We.call(this,Ee,Le||'<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 st.colors=[],st.addTransparent=!1,st.colorBoxes=[],st.colors=Ie,st.currentColor=Ke,st.setCurrentColor=st.setCurrentColor.bind(st),st.getColorBox=st.getColorBox.bind(st),st}return Ge(Ce,We),Ce.prototype.getUi=function(){var Ee=this,Ie=document.createElement("div");return Ie.style.overflow="hidden",Ie.style.whiteSpace="nowrap",this.colors.forEach(function(Ke){var Le=Ee.getColorBox(Ke);Ie.appendChild(Le),Ee.colorBoxes.push(Le)}),Ie},Ce.prototype.getColorBox=function(Ee){var Ie=this,Ke=this.uiStyleSettings.toolbarHeight/4,Le=this.uiStyleSettings.toolbarHeight-Ke,st=document.createElement("div");st.style.display="inline-block",st.style.boxSizing="content-box",st.style.width=Le-2+"px",st.style.height=Le-2+"px",st.style.padding="1px",st.style.marginRight="2px",st.style.marginBottom="2px",st.style.borderWidth="2px",st.style.borderStyle="solid",st.style.borderRadius=(Le+2)/2+"px",st.style.borderColor=Ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",st.addEventListener("click",function(){Ie.setCurrentColor(Ee,st)});var dn=document.createElement("div");return dn.style.display="inline-block",dn.style.width=Le-2+"px",dn.style.height=Le-2+"px",dn.style.backgroundColor=Ee,dn.style.borderRadius=Le/2+"px",Ee==="transparent"&&(dn.style.fill=this.uiStyleSettings.toolboxAccentColor,dn.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>`),st.appendChild(dn),st},Ce.prototype.setCurrentColor=function(Ee,Ie){var Ke=this;this.currentColor=Ee,this.colorBoxes.forEach(function(Le){Le.style.borderColor=Le===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ee)},Ce}(xe),ke=function(){function We(Ce,Ee,Ie){this._state="new",this._isSelected=!1,this._container=Ce,this._overlayContainer=Ee,this.globalSettings=Ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(Ce){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(Ce,Ee){},We.prototype.dblClick=function(Ce,Ee){},We.prototype.manipulate=function(Ce){},We.prototype.pointerUp=function(Ce){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(Ce){this.container.childNodes.length>0?this.container.insertBefore(Ce,this.container.childNodes[0]):this.container.appendChild(Ce)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(Ce){this._state=Ce.state,this.notes=Ce.notes},We.prototype.scale=function(Ce,Ee){},We.prototype.colorChanged=function(Ce){this.onColorChanged&&this.onColorChanged(Ce),this.stateChanged()},We.prototype.fillColorChanged=function(Ce){this.onFillColorChanged&&this.onFillColorChanged(Ce),this.stateChanged()},We.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ce=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ce.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ce)&&this.onStateChanged(this)}},We.typeName="MarkerBase",We}(),Me=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.prototype.findGripByVisual=function(Ce){return this.topLeft.ownsTarget(Ce)?this.topLeft:this.topCenter.ownsTarget(Ce)?this.topCenter:this.topRight.ownsTarget(Ce)?this.topRight:this.centerLeft.ownsTarget(Ce)?this.centerLeft:this.centerRight.ownsTarget(Ce)?this.centerRight:this.bottomLeft.ownsTarget(Ce)?this.bottomLeft:this.bottomCenter.ownsTarget(Ce)?this.bottomCenter:this.bottomRight.ownsTarget(Ce)?this.bottomRight:void 0},We}(),ot=function(){function We(){this.GRIP_SIZE=10,this.visual=xt.createGroup(),this.visual.appendChild(xt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(xt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return We.prototype.ownsTarget=function(Ce){return Ce===this.visual||Ce===this.visual.childNodes[0]||Ce===this.visual.childNodes[1]},We}(),dt=function(){function We(){}return We.toITransformMatrix=function(Ce){return{a:Ce.a,b:Ce.b,c:Ce.c,d:Ce.d,e:Ce.e,f:Ce.f}},We.toSVGMatrix=function(Ce,Ee){return Ce.a=Ee.a,Ce.b=Ee.b,Ce.c=Ee.c,Ce.d=Ee.d,Ce.e=Ee.e,Ce.f=Ee.f,Ce},We}(),yt=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.left=0,Le.top=0,Le.width=0,Le.height=0,Le.defaultSize={x:50,y:20},Le.offsetX=0,Le.offsetY=0,Le.rotationAngle=0,Le.CB_DISTANCE=10,Le._suppressMarkerCreateEvent=!1,Le.container.transform.baseVal.appendItem(xt.createTransform()),Le.setupControlBox(),Le}return Ge(Ce,We),Object.defineProperty(Ce.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"visual",{get:function(){return this._visual},set:function(Ee){this._visual=Ee;var Ie=xt.createTransform();this._visual.transform.baseVal.appendItem(Ie)},enumerable:!1,configurable:!0}),Ce.prototype.ownsTarget=function(Ee){return!!We.prototype.ownsTarget.call(this,Ee)||!!(this.controlGrips.findGripByVisual(Ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ee))},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.state==="new"&&(this.left=Ee.x,this.top=Ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ke=this.unrotatePoint(Ee);if(this.manipulationStartX=Ke.x,this.manipulationStartY=Ke.y,this.offsetX=Ke.x-this.left,this.offsetY=Ke.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ie)){this.activeGrip=this.rotatorGrip;var Le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Le.x-this.width/2,this.top=Le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var st=this.container.transform.baseVal.getItem(0);st.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(st,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ce.prototype.pointerUp=function(Ee){var Ie=this.state;We.prototype.pointerUp.call(this,Ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ee),this._state="select",Ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ce.prototype.moveVisual=function(Ee){this.visual.style.transform="translate("+Ee.x+"px, "+Ee.y+"px)"},Ce.prototype.manipulate=function(Ee){var Ie=this.unrotatePoint(Ee);this.state==="creating"?this.resize(Ee):this.state==="move"?(this.left=this.manipulationStartLeft+(Ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ie):this.state==="rotate"&&this.rotate(Ee)},Ce.prototype.resize=function(Ee){var Ie=this.manipulationStartLeft,Ke=this.manipulationStartWidth,Le=this.manipulationStartTop,st=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ie=this.manipulationStartLeft+Ee.x-this.manipulationStartX,Ke=this.manipulationStartWidth+this.manipulationStartLeft-Ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ke=this.manipulationStartWidth+Ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Le=this.manipulationStartTop+Ee.y-this.manipulationStartY,st=this.manipulationStartHeight+this.manipulationStartTop-Le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:st=this.manipulationStartHeight+Ee.y-this.manipulationStartY}Ke>=0?(this.left=Ie,this.width=Ke):(this.left=Ie+Ke,this.width=-Ke),st>=0?(this.top=Le,this.height=st):(this.top=Le+st,this.height=-st),this.setSize()},Ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ce.prototype.rotate=function(Ee){if(Math.abs(Ee.x-this.centerX)>.1){var Ie=Math.sign(Ee.x-this.centerX);this.rotationAngle=180*Math.atan((Ee.y-this.centerY)/(Ee.x-this.centerX))/Math.PI+90*Ie,this.applyRotation()}},Ce.prototype.applyRotation=function(){var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0)},Ce.prototype.rotatePoint=function(Ee){if(this.rotationAngle===0)return Ee;var Ie=this.container.getCTM(),Ke=xt.createPoint(Ee.x,Ee.y);return{x:(Ke=Ke.matrixTransform(Ie)).x,y:Ke.y}},Ce.prototype.unrotatePoint=function(Ee){if(this.rotationAngle===0)return Ee;var Ie=this.container.getCTM();Ie=Ie.inverse();var Ke=xt.createPoint(Ee.x,Ee.y);return{x:(Ke=Ke.matrixTransform(Ie)).x,y:Ke.y}},Ce.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ce.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Ce.prototype.setupControlBox=function(){this.controlBox=xt.createGroup();var Ee=xt.createTransform();Ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ee),this.container.appendChild(this.controlBox),this.controlRect=xt.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=xt.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 Me,this.addControlGrips(),this.controlBox.style.display="none"},Ce.prototype.adjustControlBox=function(){var Ee=this.controlBox.transform.baseVal.getItem(0);Ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ee,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()},Ce.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()},Ce.prototype.createGrip=function(){var Ee=new ot;return Ee.visual.transform.baseVal.appendItem(xt.createTransform()),this.controlBox.appendChild(Ee.visual),Ee},Ce.prototype.positionGrips=function(){var Ee=this.controlGrips.topLeft.GRIP_SIZE,Ie=-Ee/2,Ke=Ie,Le=(this.width+this.CB_DISTANCE)/2-Ee/2,st=(this.height+this.CB_DISTANCE)/2-Ee/2,dn=this.height+this.CB_DISTANCE-Ee/2,sn=this.width+this.CB_DISTANCE-Ee/2;this.positionGrip(this.controlGrips.topLeft.visual,Ie,Ke),this.positionGrip(this.controlGrips.topCenter.visual,Le,Ke),this.positionGrip(this.controlGrips.topRight.visual,sn,Ke),this.positionGrip(this.controlGrips.centerLeft.visual,Ie,st),this.positionGrip(this.controlGrips.centerRight.visual,sn,st),this.positionGrip(this.controlGrips.bottomLeft.visual,Ie,dn),this.positionGrip(this.controlGrips.bottomCenter.visual,Le,dn),this.positionGrip(this.controlGrips.bottomRight.visual,sn,dn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Le,Ke-3*this.CB_DISTANCE)},Ce.prototype.positionGrip=function(Ee,Ie,Ke){var Le=Ee.transform.baseVal.getItem(0);Le.setTranslate(Ie,Ke),Ee.transform.baseVal.replaceItem(Le,0)},Ce.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ce.prototype.showControlBox=function(){this.controlBox.style.display=""},Ce.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},Ce.prototype.restoreState=function(Ee){We.prototype.restoreState.call(this,Ee);var Ie=Ee;this.left=Ie.left,this.top=Ie.top,this.width=Ie.width,this.height=Ie.height,this.rotationAngle=Ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ie.containerTransformMatrix))},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie);var Ke=this.rotatePoint({x:this.left,y:this.top}),Le=this.unrotatePoint({x:Ke.x*Ee,y:Ke.y*Ie});this.left=Le.x,this.top=Le.y,this.width=this.width*Ee,this.height=this.height*Ie,this.adjustControlBox()},Ce}(ke),vt=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.visual)},Ce.prototype.createVisual=function(){this.visual=xt.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)},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.state==="new"&&(this.createVisual(),this.moveVisual(Ee),this._state="creating")},Ce.prototype.manipulate=function(Ee){We.prototype.manipulate.call(this,Ee)},Ce.prototype.resize=function(Ee){We.prototype.resize.call(this,Ee),this.setSize()},Ce.prototype.setSize=function(){We.prototype.setSize.call(this),xt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ce.prototype.pointerUp=function(Ee){We.prototype.pointerUp.call(this,Ee),this.setSize()},Ce.prototype.setStrokeColor=function(Ee){this.strokeColor=Ee,this.visual&&xt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ee),this.stateChanged()},Ce.prototype.setFillColor=function(Ee){this.fillColor=Ee,this.visual&&xt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Ee){this.strokeWidth=Ee,this.visual&&xt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Ee){this.strokeDasharray=Ee,this.visual&&xt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ce.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this))},Ce.prototype.restoreState=function(Ee){var Ie=Ee;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.opacity=Ie.opacity,this.createVisual(),We.prototype.restoreState.call(this,Ee),this.setSize()},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.setSize()},Ce.title="Rectangle marker",Ce}(yt),Kt=function(We){function Ce(Ee,Ie,Ke,Le){var st=We.call(this,Ee,Le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return st.widths=[],st.widthBoxes=[],st.widths=Ie,st.currentWidth=Ke,st.setCurrentWidth=st.setCurrentWidth.bind(st),st}return Ge(Ce,We),Ce.prototype.getUi=function(){var Ee=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.widths.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=Ke===Ee.currentWidth?Ee.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ee.setCurrentWidth(Ke,Le)}),Ie.appendChild(Le);var st=document.createElement("div");st.innerText=Ke.toString(),st.style.marginRight="5px",Le.appendChild(st);var dn=document.createElement("div");dn.style.minHeight="20px",dn.style.flexGrow="2",dn.style.display="flex",dn.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=Ke+"px solid "+Ee.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",dn.appendChild(sn),Le.appendChild(dn),Ee.widthBoxes.push(Le)}),Ie},Ce.prototype.setCurrentWidth=function(Ee,Ie){var Ke=this;this.currentWidth=Ee,this.widthBoxes.forEach(function(Le){Le.style.borderColor=Le===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ce}(xe),wt=function(We){function Ce(Ee,Ie,Ke,Le){var st=We.call(this,Ee,Le||'<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 st.styles=[],st.styleBoxes=[],st.styles=Ie,st.currentStyle=Ke,st.setCurrentStyle=st.setCurrentStyle.bind(st),st}return Ge(Ce,We),Ce.prototype.getUi=function(){var Ee=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.styles.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/Ee.styles.length-5+"%",Le.style.borderColor=Ke===Ee.currentStyle?Ee.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ee.setCurrentStyle(Ke,Le)}),Ie.appendChild(Le);var st=document.createElement("div");st.style.minHeight="20px",st.style.flexGrow="2",st.style.overflow="hidden";var dn=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ke!==""?'stroke-dasharray="'+Ke+'"':"")+` />
|
|
</svg>`;st.innerHTML=dn,Le.appendChild(st),Ee.styleBoxes.push(Le)}),Ie},Ce.prototype.setCurrentStyle=function(Ee,Ie){var Ke=this;this.currentStyle=Ee,this.styleBoxes.forEach(function(Le){Le.style.borderColor=Le===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ce}(xe),It=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.strokePanel=new Ae("Line color",Ke.defaultColorSet,Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new Kt("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new wt("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Ge(Ce,We),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=We.prototype.getState.call(this);return Ee.typeName=Ce.typeName,Ee},Ce.typeName="FrameMarker",Ce.title="Frame marker",Ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ce}(vt),Yt=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"},yn=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.x1=0,Le.y1=0,Le.x2=0,Le.y2=0,Le.defaultLength=50,Le.manipulationStartX=0,Le.manipulationStartY=0,Le.manipulationStartX1=0,Le.manipulationStartY1=0,Le.manipulationStartX2=0,Le.manipulationStartY2=0,Le.setupControlBox(),Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!!We.prototype.ownsTarget.call(this,Ee)||!(!this.grip1.ownsTarget(Ee)&&!this.grip2.ownsTarget(Ee))},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.manipulationStartX=Ee.x,this.manipulationStartY=Ee.y,this.state==="new"&&(this.x1=Ee.x,this.y1=Ee.y,this.x2=Ee.x,this.y2=Ee.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(Ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ce.prototype.pointerUp=function(Ee){var Ie=this.state;We.prototype.pointerUp.call(this,Ee),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(Ee),this._state="select",Ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ce.prototype.adjustVisual=function(){},Ce.prototype.manipulate=function(Ee){this.state==="creating"?this.resize(Ee):this.state==="move"?(this.x1=this.manipulationStartX1+Ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ee)},Ce.prototype.resize=function(Ee){switch(this.activeGrip){case this.grip1:this.x1=Ee.x,this.y1=Ee.y;break;case this.grip2:case void 0:this.x2=Ee.x,this.y2=Ee.y}this.adjustVisual(),this.adjustControlBox()},Ce.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ce.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Ce.prototype.setupControlBox=function(){this.controlBox=xt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ce.prototype.adjustControlBox=function(){this.positionGrips()},Ce.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ce.prototype.createGrip=function(){var Ee=new ot;return Ee.visual.transform.baseVal.appendItem(xt.createTransform()),this.controlBox.appendChild(Ee.visual),Ee},Ce.prototype.positionGrips=function(){var Ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ee/2,this.y1-Ee/2),this.positionGrip(this.grip2.visual,this.x2-Ee/2,this.y2-Ee/2)},Ce.prototype.positionGrip=function(Ee,Ie,Ke){var Le=Ee.transform.baseVal.getItem(0);Le.setTranslate(Ie,Ke),Ee.transform.baseVal.replaceItem(Le,0)},Ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},Ce.prototype.restoreState=function(Ee){We.prototype.restoreState.call(this,Ee);var Ie=Ee;this.x1=Ie.x1,this.y1=Ie.y1,this.x2=Ie.x2,this.y2=Ie.y2},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.x1=this.x1*Ee,this.y1=this.y1*Ie,this.x2=this.x2*Ee,this.y2=this.y2*Ie,this.adjustVisual(),this.adjustControlBox()},Ce}(ke),Mi=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.strokePanel=new Ae("Line color",Ke.defaultColorSet,Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new Kt("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new wt("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.visual&&Ee!==this.selectorLine&&Ee!==this.visibleLine)},Ce.prototype.createVisual=function(){this.visual=xt.createGroup(),this.selectorLine=xt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=xt.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)},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ce.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()),xt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),xt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),xt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ce.prototype.setStrokeColor=function(Ee){this.strokeColor=Ee,this.adjustVisual(),this.colorChanged(Ee)},Ce.prototype.setStrokeWidth=function(Ee){this.strokeWidth=Ee,this.adjustVisual()},Ce.prototype.setStrokeDasharray=function(Ee){this.strokeDasharray=Ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){We.prototype.restoreState.call(this,Ee);var Ie=Ee;this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.createVisual(),this.adjustVisual()},Ce.typeName="LineMarker",Ce.title="Line marker",Ce.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ce}(yn),wi=function(We){function Ce(Ee,Ie,Ke,Le){var st=We.call(this,Ee,Le||'<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 st.fonts=[],st.fontBoxes=[],st.fonts=Ie,st.currentFont=Ke,st.setCurrentFont=st.setCurrentFont.bind(st),st}return Ge(Ce,We),Ce.prototype.getUi=function(){var Ee=this,Ie=document.createElement("div");return Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.fonts.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="inline-block",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/Ee.fonts.length-5+"%",Le.style.borderColor=Ke===Ee.currentFont?Ee.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ee.setCurrentFont(Ke,Le)}),Ie.appendChild(Le);var st=document.createElement("div");st.style.display="flex",st.style.minHeight="20px",st.style.flexGrow="2",st.style.fontFamily=Ke,st.style.overflow="hidden";var dn=document.createElement("div");dn.style.whiteSpace="nowrap",dn.style.overflow="hidden",dn.style.textOverflow="ellipsis",dn.innerHTML="The quick brown fox jumps over the lazy dog",st.appendChild(dn),Le.appendChild(st),Ee.fontBoxes.push(Le)}),Ie},Ce.prototype.setCurrentFont=function(Ee,Ie){var Ke=this;this.currentFont=Ee,this.fontBoxes.forEach(function(Le){Le.style.borderColor=Le===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ce}(xe),Nn=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.color="transparent",Le.padding=5,Le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Le.text=Le.DEFAULT_TEXT,Le.isMoved=!1,Le.color=Ke.defaultColor,Le.fontFamily=Ke.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setColor=Le.setColor.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.renderText=Le.renderText.bind(Le),Le.sizeText=Le.sizeText.bind(Le),Le.textEditDivClicked=Le.textEditDivClicked.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.setSize=Le.setSize.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.colorPanel=new Ae("Color",Ke.defaultColorSet,Ke.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.fontFamilyPanel=new wi("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){if(We.prototype.ownsTarget.call(this,Ee)||Ee===this.visual||Ee===this.textElement||Ee===this.bgRectangle)return!0;var Ie=!1;return this.textElement.childNodes.forEach(function(Ke){Ke===Ee&&(Ie=!0)}),Ie},Ce.prototype.createVisual=function(){this.visual=xt.createGroup(),this.bgRectangle=xt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=xt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(xt.createTransform()),this.textElement.transform.baseVal.appendItem(xt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.isMoved=!1,this.pointerDownPoint=Ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ee),this._state="creating")},Ce.prototype.renderText=function(){var Ee=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(Ie){Ee.textElement.appendChild(xt.createTSpan(Ie.trim()===""?" ":Ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ce.prototype.getTextScale=function(){var Ee=this.textElement.getBBox(),Ie=1;if(Ee.width>0&&Ee.height>0){var Ke=(1*this.width-this.width*this.padding*2/100)/Ee.width,Le=(1*this.height-this.height*this.padding*2/100)/Ee.height;Ie=Math.min(Ke,Le)}return Ie},Ce.prototype.getTextPosition=function(Ee){var Ie=this.textElement.getBBox(),Ke=0,Le=0;return Ie.width>0&&Ie.height>0&&(Ke=(this.width-Ie.width*Ee)/2,Le=this.height/2-Ie.height*Ee/2),{x:Ke,y:Le}},Ce.prototype.sizeText=function(){var Ee=this.textElement.getBBox(),Ie=this.getTextScale(),Ke=this.getTextPosition(Ie);Ke.y-=Ee.y*Ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ke.x+"px, "+Ke.y+"px) scale("+Ie+", "+Ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ke.x,Ke.y),this.textElement.transform.baseVal.getItem(1).setScale(Ie,Ie))},Ce.prototype.manipulate=function(Ee){We.prototype.manipulate.call(this,Ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ee.x-this.pointerDownPoint.x)>5||Math.abs(Ee.y-this.pointerDownPoint.y)>5)},Ce.prototype.resize=function(Ee){We.prototype.resize.call(this,Ee),this.isMoved=!0,this.setSize(),this.sizeText()},Ce.prototype.setSize=function(){We.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(xt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ce.prototype.pointerUp=function(Ee){var Ie=this.state;Ie==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,Ee),this.setSize(),(Ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ce.prototype.showTextEditor=function(){var Ee=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(Ie){Ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ie=Number.parseFloat(Ee.textEditor.style.fontSize);Ee.textEditor.clientWidth>=Number.parseInt(Ee.textEditor.style.maxWidth)&&Ie>.9;)Ie-=.1,Ee.textEditor.style.fontSize=Math.max(Ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ie){Ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ie){if(Ie.clipboardData){var Ke=Ie.clipboardData.getData("text"),Le=window.getSelection();if(!Le.rangeCount)return!1;Le.deleteFromDocument(),Le.getRangeAt(0).insertNode(document.createTextNode(Ke)),Ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ee.textEditDivClicked(Ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ce.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ee=this.getTextScale(),Ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ke=this.textElement.getBBox(),Le={x:Ke.width*Ee,y:Ke.height*Ee};Ie.x-=Le.x/2,Ie.y-=Le.y/2,this.textEditor.style.top=Ie.y+"px",this.textEditor.style.left=Ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ie.x+"px",this.textEditor.style.fontSize=Math.max(16*Ee,12)+"px",this.textElement.style.display="none"}},Ce.prototype.textEditDivClicked=function(Ee){this.text=Ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ce.prototype.select=function(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},Ce.prototype.dblClick=function(Ee,Ie){We.prototype.dblClick.call(this,Ee,Ie),this.showTextEditor()},Ce.prototype.setColor=function(Ee){this.textElement&&xt.setAttributes(this.textElement,[["fill",Ee]]),this.color=Ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ee)},Ce.prototype.setFont=function(Ee){this.textElement&&xt.setAttributes(this.textElement,[["font-family",Ee]]),this.fontFamily=Ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ce.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ce.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){var Ie=Ee;this.color=Ie.color,this.fontFamily=Ie.fontFamily,this.padding=Ie.padding,this.text=Ie.text,this.createVisual(),We.prototype.restoreState.call(this,Ee),this.setSize()},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.setSize(),this.sizeText(),this.positionTextEditor()},Ce.typeName="TextMarker",Ce.title="Text marker",Ce.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>',Ce}(yt),ui=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.color="transparent",Le.lineWidth=3,Le.drawing=!1,Le.pixelRatio=1,Le.color=Ke.defaultColor,Le.lineWidth=Ke.defaultStrokeWidth,Le.pixelRatio=Ke.freehandPixelRatio,Le.setColor=Le.setColor.bind(Le),Le.addCanvas=Le.addCanvas.bind(Le),Le.finishCreation=Le.finishCreation.bind(Le),Le.setLineWidth=Le.setLineWidth.bind(Le),Le.colorPanel=new Ae("Color",Ke.defaultColorSet,Ke.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.lineWidthPanel=new Kt("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.lineWidthPanel.onWidthChanged=Le.setLineWidth,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.visual&&Ee!==this.drawingImage)},Ce.prototype.createVisual=function(){this.visual=xt.createGroup(),this.drawingImage=xt.createImage(),this.visual.appendChild(this.drawingImage);var Ee=xt.createTransform();this.visual.transform.baseVal.appendItem(Ee),this.addMarkerVisualToContainer(this.visual)},Ce.prototype.pointerDown=function(Ee,Ie){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(Ee.x,Ee.y),this.drawing=!0):We.prototype.pointerDown.call(this,Ee,Ie)},Ce.prototype.manipulate=function(Ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ee.x,Ee.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,Ee)},Ce.prototype.resize=function(Ee){We.prototype.resize.call(this,Ee),xt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ce.prototype.pointerUp=function(Ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):We.prototype.pointerUp.call(this,Ee)},Ce.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)},Ce.prototype.select=function(){this.state==="creating"&&this.finishCreation(),We.prototype.select.call(this)},Ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},Ce.prototype.finishCreation=function(){for(var Ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ke=Ie[0],Le=Ie[1],st=Ie[2],dn=Ie[3],sn=!1,en=0;en<this.canvasElement.height;en++)for(var Xt=0;Xt<this.canvasElement.width;Xt++)Ee.data[en*this.canvasElement.width*4+4*Xt+3]>0&&(sn=!0,en<Le&&(Le=en),Xt<Ke&&(Ke=Xt),en>dn&&(dn=en),Xt>st&&(st=Xt));if(sn){this.left=Ke/this.pixelRatio,this.top=Le/this.pixelRatio,this.width=(st-Ke)/this.pixelRatio,this.height=(dn-Le)/this.pixelRatio;var ai=document.createElement("canvas");ai.width=st-Ke,ai.height=dn-Le,ai.getContext("2d").putImageData(this.canvasContext.getImageData(Ke,Le,st-Ke,dn-Le),0,0),this.drawingImgUrl=ai.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ce.prototype.setDrawingImage=function(){xt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),xt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ce.prototype.setColor=function(Ee){this.color=Ee,this.colorChanged(Ee)},Ce.prototype.setLineWidth=function(Ee){this.lineWidth=Ee},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=Object.assign({drawingImgUrl:this.drawingImgUrl},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){this.createVisual(),We.prototype.restoreState.call(this,Ee),this.drawingImgUrl=Ee.drawingImgUrl,this.setDrawingImage()},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.setDrawingImage()},Ce.typeName="FreehandMarker",Ce.title="Freehand marker",Ce.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>',Ce}(yt),tt=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ke||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Le.typeBoxes=[],Le.currentType=Ie,Le.setCurrentType=Le.setCurrentType.bind(Le),Le}return Ge(Ce,We),Ce.prototype.getUi=function(){var Ee=this,Ie=document.createElement("div");Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2";for(var Ke=function(dn){var sn="both";switch(dn){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var en=document.createElement("div");if(en.style.display="flex",en.style.flexGrow="2",en.style.alignItems="center",en.style.justifyContent="space-between",en.style.padding="5px",en.style.borderWidth="2px",en.style.borderStyle="solid",en.style.borderColor=sn===Le.currentType?Le.uiStyleSettings.toolboxAccentColor:"transparent",en.addEventListener("click",function(){Ee.setCurrentType(sn,en)}),Ie.appendChild(en),sn==="both"||sn==="start"){var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.alignItems="center",Xt.style.minHeight="20px",Xt.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Xt.style.marginLeft="5px",en.appendChild(Xt)}var ai=document.createElement("div");ai.style.display="flex",ai.style.alignItems="center",ai.style.minHeight="20px",ai.style.flexGrow="2";var Bn=document.createElement("hr");if(Bn.style.minWidth="20px",Bn.style.border="0px",Bn.style.borderTop="3px solid "+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee"),Bn.style.flexGrow="2",ai.appendChild(Bn),en.appendChild(ai),sn==="both"||sn==="end"){var In=document.createElement("div");In.style.display="flex",In.style.alignItems="center",In.style.minHeight="20px",In.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,In.style.marginRight="5px",en.appendChild(In)}Le.typeBoxes.push(en)},Le=this,st=0;st<4;st++)Ke(st);return Ie},Ce.prototype.setCurrentType=function(Ee,Ie){var Ke=this;this.currentType=Ee,this.typeBoxes.forEach(function(Le){Le.style.borderColor=Le===Ie?Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ce}(xe),He=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.arrowType="end",Le.arrowBaseHeight=10,Le.arrowBaseWidth=10,Le.getArrowPoints=Le.getArrowPoints.bind(Le),Le.setArrowType=Le.setArrowType.bind(Le),Le.arrowTypePanel=new tt("Arrow type","end"),Le.arrowTypePanel.onArrowTypeChanged=Le.setArrowType,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.arrow1&&Ee!==this.arrow2)},Ce.prototype.getArrowPoints=function(Ee,Ie){var Ke=this.arrowBaseWidth+2*this.strokeWidth,Le=this.arrowBaseHeight+2*this.strokeWidth;return Ee-Ke/2+","+(Ie+Le/2)+" "+Ee+","+(Ie-Le/2)+" "+(Ee+Ke/2)+","+(Ie+Le/2)},Ce.prototype.createTips=function(){this.arrow1=xt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(xt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=xt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(xt.createTransform()),this.visual.appendChild(this.arrow2)},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.state==="creating"&&this.createTips()},Ce.prototype.adjustVisual=function(){if(We.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",xt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),xt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ee=0;Math.abs(this.x1-this.x2)>.1&&(Ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ie=this.arrow1.transform.baseVal.getItem(0);Ie.setRotate(Ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ie,0);var Ke=this.arrow2.transform.baseVal.getItem(0);Ke.setRotate(Ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ke,0)}},Ce.prototype.setArrowType=function(Ee){this.arrowType=Ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=Object.assign({arrowType:this.arrowType},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){We.prototype.restoreState.call(this,Ee);var Ie=Ee;this.arrowType=Ie.arrowType,this.createTips(),this.adjustVisual()},Ce.typeName="ArrowMarker",Ce.title="Arrow marker",Ce.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ce}(Mi),mn=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.fillColor=Ke.defaultFillColor,Le.strokeWidth=0,Le.fillPanel=new Ae("Color",Ke.defaultColorSet,Ke.defaultFillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le}return Ge(Ce,We),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=We.prototype.getState.call(this);return Ee.typeName=Ce.typeName,Ee},Ce.typeName="CoverMarker",Ce.title="Cover marker",Ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ce}(vt),Zn=function(We){function Ce(Ee,Ie,Ke,Le){var st=We.call(this,Ee,Le||'<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 st.opacities=[],st.opacityBoxes=[],st.opacities=Ie,st.currentOpacity=Ke,st.setCurrentOpacity=st.setCurrentOpacity.bind(st),st}return Ge(Ce,We),Ce.prototype.getUi=function(){var Ee=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",Ie.style.justifyContent="space-between",this.opacities.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="center",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=Ke===Ee.currentOpacity?Ee.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ee.setCurrentOpacity(Ke,Le)}),Ie.appendChild(Le);var st=document.createElement("div");st.innerText=100*Ke+"%",Le.appendChild(st),Ee.opacityBoxes.push(Le)}),Ie},Ce.prototype.setCurrentOpacity=function(Ee,Ie){var Ke=this;this.currentOpacity=Ee,this.opacityBoxes.forEach(function(Le){Le.style.borderColor=Le===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ce}(xe),Qn=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.setOpacity=Le.setOpacity.bind(Le),Le.fillColor=Ke.defaultHighlightColor,Le.strokeWidth=0,Le.opacity=Ke.defaultHighlightOpacity,Le.fillPanel=new Ae("Color",Ke.defaultColorSet,Le.fillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le.opacityPanel=new Zn("Opacity",Ke.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return Ge(Ce,We),Ce.prototype.setOpacity=function(Ee){this.opacity=Ee,this.visual&&xt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=We.prototype.getState.call(this);return Ee.typeName=Ce.typeName,Ee},Ce.typeName="HighlightMarker",Ce.title="Highlight marker",Ce.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>',Ce}(mn),nn='<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>',gn='<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>',Ln=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.bgColor="transparent",Le.tipPosition={x:0,y:0},Le.tipBase1Position={x:0,y:0},Le.tipBase2Position={x:0,y:0},Le.tipMoving=!1,Le.color=Ke.defaultStrokeColor,Le.bgColor=Ke.defaultFillColor,Le.fontFamily=Ke.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setBgColor=Le.setBgColor.bind(Le),Le.getTipPoints=Le.getTipPoints.bind(Le),Le.positionTip=Le.positionTip.bind(Le),Le.setTipPoints=Le.setTipPoints.bind(Le),Le.colorPanel=new Ae("Text color",Ke.defaultColorSet,Le.color,nn),Le.colorPanel.onColorChanged=Le.setColor,Le.bgColorPanel=new Ae("Fill color",Ke.defaultColorSet,Le.bgColor,gn),Le.bgColorPanel.onColorChanged=Le.setBgColor,Le.fontFamilyPanel=new wi("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.tipGrip=new ot,Le.tipGrip.visual.transform.baseVal.appendItem(xt.createTransform()),Le.controlBox.appendChild(Le.tipGrip.visual),Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return We.prototype.ownsTarget.call(this,Ee)||this.tipGrip.ownsTarget(Ee)||this.tip===Ee},Ce.prototype.createTip=function(){xt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=xt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ce.prototype.pointerDown=function(Ee,Ie){this.state==="new"&&We.prototype.pointerDown.call(this,Ee,Ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,Ee,Ie)},Ce.prototype.pointerUp=function(Ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,Ee);else{var Ie=this.state==="creating";We.prototype.pointerUp.call(this,Ee),this.setTipPoints(Ie),this.positionTip()}},Ce.prototype.manipulate=function(Ee){if(this.tipMoving){var Ie=this.unrotatePoint(Ee);this.tipPosition={x:Ie.x-this.manipulationStartLeft,y:Ie.y-this.manipulationStartTop},this.positionTip()}else We.prototype.manipulate.call(this,Ee)},Ce.prototype.setBgColor=function(Ee){this.bgRectangle&&this.tip&&(xt.setAttributes(this.bgRectangle,[["fill",Ee]]),xt.setAttributes(this.tip,[["fill",Ee]])),this.bgColor=Ee,this.fillColorChanged(Ee)},Ce.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},Ce.prototype.setTipPoints=function(Ee){Ee===void 0&&(Ee=!1);var Ie=Math.min(this.height/2,15),Ke=this.height/5;Ee&&(this.tipPosition={x:Ie+Ke/2,y:this.height+20});var Le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ke=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:Ie,y:0},this.tipBase2Position={x:Ie+Ke,y:0}):(this.tipBase1Position={x:0,y:Ie},this.tipBase2Position={x:0,y:Ie+Ke}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ke=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ie-Ke,y:0},this.tipBase2Position={x:this.width-Ie,y:0}):(this.tipBase1Position={x:this.width,y:Ie},this.tipBase2Position={x:this.width,y:Ie+Ke}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ke=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ie-Ke,y:this.height},this.tipBase2Position={x:this.width-Ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ie-Ke},this.tipBase2Position={x:this.width,y:this.height-Ie}):Le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ke=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:Ie,y:this.height},this.tipBase2Position={x:Ie+Ke,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ie},this.tipBase2Position={x:0,y:this.height-Ie-Ke})},Ce.prototype.resize=function(Ee){We.prototype.resize.call(this,Ee),this.positionTip()},Ce.prototype.positionTip=function(){xt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ee=this.tipGrip.visual.transform.baseVal.getItem(0);Ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ee,0)},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ce.prototype.select=function(){this.positionTip(),We.prototype.select.call(this)},Ce.prototype.getState=function(){var Ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){var Ie=Ee;this.bgColor=Ie.bgColor,this.tipPosition=Ie.tipPosition,We.prototype.restoreState.call(this,Ee),this.createTip(),this.setTipPoints()},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.tipPosition={x:this.tipPosition.x*Ee,y:this.tipPosition.y*Ie},this.positionTip()},Ce.typeName="CalloutMarker",Ce.title="Callout marker",Ce.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>',Ce}(Nn),yi=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.fillColor=Ke.defaultFillColor,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.setOpacity=Le.setOpacity.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.strokePanel=new Ae("Line color",Et(Ke.defaultColorSet,["transparent"]),Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new Ae("Fill color",Et(Ke.defaultColorSet,["transparent"]),Le.fillColor,gn),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new Kt("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new wt("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.opacityPanel=new Zn("Opacity",Ke.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.visual)},Ce.prototype.createVisual=function(){this.visual=xt.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)},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.state==="new"&&(this.createVisual(),this.moveVisual(Ee),this._state="creating")},Ce.prototype.manipulate=function(Ee){We.prototype.manipulate.call(this,Ee)},Ce.prototype.resize=function(Ee){We.prototype.resize.call(this,Ee),this.setSize()},Ce.prototype.setSize=function(){We.prototype.setSize.call(this),xt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ce.prototype.pointerUp=function(Ee){We.prototype.pointerUp.call(this,Ee),this.setSize()},Ce.prototype.setStrokeColor=function(Ee){this.strokeColor=Ee,this.visual&&xt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ee),this.stateChanged()},Ce.prototype.setFillColor=function(Ee){this.fillColor=Ee,this.visual&&xt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ee),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Ee){this.strokeWidth=Ee,this.visual&&xt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Ee){this.strokeDasharray=Ee,this.visual&&xt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ce.prototype.setOpacity=function(Ee){this.opacity=Ee,this.visual&&xt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){var Ie=Ee;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.opacity=Ie.opacity,this.createVisual(),We.prototype.restoreState.call(this,Ee),this.setSize()},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.setSize()},Ce.typeName="EllipseMarker",Ce.title="Ellipse marker",Ce.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>',Ce}(yt),Yn=function(We){function Ce(Ee,Ie,Ke){return We.call(this,Ee,Ie,Ke)||this}return Ge(Ce,We),Object.defineProperty(Ce.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.tip1&&Ee!==this.tip2)},Ce.prototype.createTips=function(){this.tip1=xt.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(xt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=xt.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(xt.createTransform()),this.visual.appendChild(this.tip2)},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.state==="creating"&&this.createTips()},Ce.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(xt.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()]]),xt.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 Ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ie=this.tip1.transform.baseVal.getItem(0);Ie.setRotate(Ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ie,0);var Ke=this.tip2.transform.baseVal.getItem(0);Ke.setRotate(Ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ke,0)}},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=We.prototype.getState.call(this);return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){We.prototype.restoreState.call(this,Ee),this.createTips(),this.adjustVisual()},Ce.typeName="MeasurementMarker",Ce.title="Measurement marker",Ce.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>',Ce}(Mi),Ai=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.strokePanel.colors=Ke.defaultColorSet,Le.fillColor="transparent",Le}return Ge(Ce,We),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=We.prototype.getState.call(this);return Ee.typeName=Ce.typeName,Ee},Ce.typeName="EllipseFrameMarker",Ce.title="Ellipse frame marker",Ce.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>',Ce}(yi),mt=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.prototype.addUndoStep=function(Ce){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ce)||(this.undoStack.push(Ce),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ce)&&this.redoStack.splice(0,this.redoStack.length))},We.prototype.replaceLastUndoStep=function(Ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ce)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.prototype.undo=function(){if(this.undoStack.length>1){var Ce=this.undoStack.pop();return Ce!==void 0&&this.redoStack.push(Ce),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),ht=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.curveX=0,Le.curveY=0,Le.manipulationStartCurveX=0,Le.manipulationStartCurveY=0,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.positionGrips=Le.positionGrips.bind(Le),Le.addControlGrips=Le.addControlGrips.bind(Le),Le.adjustVisual=Le.adjustVisual.bind(Le),Le.setupControlBox=Le.setupControlBox.bind(Le),Le.resize=Le.resize.bind(Le),Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.strokePanel=new Ae("Line color",Ke.defaultColorSet,Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new Kt("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new wt("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.visual&&Ee!==this.selectorCurve&&Ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ee))},Ce.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ce.prototype.createVisual=function(){this.visual=xt.createGroup(),this.selectorCurve=xt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=xt.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)},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ee.x,this.curveY=Ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ce.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),xt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),xt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),xt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ce.prototype.setupControlBox=function(){We.prototype.setupControlBox.call(this),this.curveControlLine1=xt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=xt.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)},Ce.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,We.prototype.addControlGrips.call(this)},Ce.prototype.positionGrips=function(){We.prototype.positionGrips.call(this);var Ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ee/2,this.curveY-Ee/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()))},Ce.prototype.manipulate=function(Ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ee.y-this.manipulationStartY),We.prototype.manipulate.call(this,Ee)},Ce.prototype.resize=function(Ee){this.activeGrip===this.curveGrip&&(this.curveX=Ee.x,this.curveY=Ee.y),We.prototype.resize.call(this,Ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ce.prototype.setStrokeColor=function(Ee){this.strokeColor=Ee,this.adjustVisual(),this.colorChanged(Ee)},Ce.prototype.setStrokeWidth=function(Ee){this.strokeWidth=Ee,this.adjustVisual()},Ce.prototype.setStrokeDasharray=function(Ee){this.strokeDasharray=Ee,this.adjustVisual()},Ce.prototype.scale=function(Ee,Ie){this.curveX=this.curveX*Ee,this.curveY=this.curveY*Ie,We.prototype.scale.call(this,Ee,Ie)},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},We.prototype.getState.call(this));return Ee.typeName=Ce.typeName,Ee},Ce.prototype.restoreState=function(Ee){We.prototype.restoreState.call(this,Ee);var Ie=Ee;this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.curveX=Ie.curveX,this.curveY=Ie.curveY,this.createVisual(),this.adjustVisual()},Ce.typeName="CurveMarker",Ce.title="Curve marker",Ce.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>',Ce}(yn),un=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,Ie,Ke)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.textColor="transparent",Le.fontSize="1rem",Le.isMoved=!1,Le.captionText="Caption",Le.PADDING=5,Le.captionBoxWidth=0,Le.captionBoxHeight=0,Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.fillColor=Ke.defaultFillColor,Le.textColor=Ke.defaultStrokeColor,Le.fontFamily=Ke.defaultFontFamily,Le.fontSize=Ke.defaultCaptionFontSize,Le.captionText=Ke.defaultCaptionText,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.sizeCaption=Le.sizeCaption.bind(Le),Le.setCaptionText=Le.setCaptionText.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.finishTextEditing=Le.finishTextEditing.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.setTextColor=Le.setTextColor.bind(Le),Le.strokePanel=new Ae("Line color",Et(Ke.defaultColorSet,["transparent"]),Le.strokeColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new Ae("Fill color",Et(Ke.defaultColorSet,["transparent"]),Le.fillColor,gn),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new Kt("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new wt("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.fontFamilyPanel=new wi("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.textColorPanel=new Ae("Text color",Ke.defaultColorSet,Le.textColor,nn),Le.textColorPanel.onColorChanged=Le.setTextColor,Le}return Ge(Ce,We),Ce.prototype.ownsTarget=function(Ee){return!(!We.prototype.ownsTarget.call(this,Ee)&&Ee!==this.visual&&Ee!==this.frame&&Ee!==this.captionBg&&Ee!==this.captionElement)},Ce.prototype.createVisual=function(){this.visual=xt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=xt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=xt.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=xt.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()},Ce.prototype.setCaptionText=function(Ee){this.captionText=Ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ce.prototype.pointerDown=function(Ee,Ie){We.prototype.pointerDown.call(this,Ee,Ie),this.isMoved=!1,this.pointerDownPoint=Ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ee),this._state="creating")},Ce.prototype.manipulate=function(Ee){We.prototype.manipulate.call(this,Ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ee.x-this.pointerDownPoint.x)>5||Math.abs(Ee.y-this.pointerDownPoint.y)>5)},Ce.prototype.resize=function(Ee){We.prototype.resize.call(this,Ee),this.setSize()},Ce.prototype.sizeCaption=function(){var Ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ee.width+2*this.PADDING,this.captionBoxHeight=Ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),xt.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')"]]),xt.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')"]])},Ce.prototype.showTextEditor=function(){var Ee=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(Ie){Ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ie){Ie.key==="Enter"&&Ee.finishTextEditing(Ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ie){Ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ee.finishTextEditing(Ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ee.finishTextEditing(Ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ce.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"))},Ce.prototype.finishTextEditing=function(Ee){this.setCaptionText(Ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ce.prototype.setFont=function(Ee){this.captionElement&&xt.setAttributes(this.captionElement,[["font-family",Ee]]),this.fontFamily=Ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ce.prototype.setTextColor=function(Ee){this.captionElement&&xt.setAttributes(this.captionElement,[["fill",Ee]]),this.textColor=Ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ce.prototype.setSize=function(){We.prototype.setSize.call(this),xt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ce.prototype.pointerUp=function(Ee){We.prototype.pointerUp.call(this,Ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ce.prototype.dblClick=function(Ee,Ie){We.prototype.dblClick.call(this,Ee,Ie),this.showTextEditor()},Ce.prototype.setStrokeColor=function(Ee){this.strokeColor=Ee,this.frame&&xt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ee),this.stateChanged()},Ce.prototype.setFillColor=function(Ee){this.fillColor=Ee,this.captionBg&&xt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ee),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Ee){this.strokeWidth=Ee,this.frame&&xt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Ee){this.strokeDasharray=Ee,this.frame&&xt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Ee=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},We.prototype.getState.call(this));return Ee.typeName=this.typeName,Ee},Ce.prototype.restoreState=function(Ee){var Ie=Ee;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.textColor=Ie.textColor,this.fontFamily=Ie.fontFamily,this.captionText=Ie.captionText,this.fontSize=Ie.fontSize,this.createVisual(),We.prototype.restoreState.call(this,Ee),this.setSize()},Ce.prototype.scale=function(Ee,Ie){We.prototype.scale.call(this,Ee,Ie),this.setSize()},Ce.typeName="CaptionFrameMarker",Ce.title="Caption frame marker",Ce.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>',Ce}(yt),Sn=function(){function We(Ce,Ee){Ee===void 0&&(Ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ce,this.cancelable=Ee}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),Dn=function(We){function Ce(Ee,Ie,Ke){var Le=We.call(this,Ee,!1)||this;return Le.dataUrl=Ie,Le.state=Ke,Le}return Ge(Ce,We),Ce}(Sn),kn=function(We){function Ce(Ee,Ie,Ke){Ke===void 0&&(Ke=!1);var Le=We.call(this,Ee,Ke)||this;return Le.marker=Ie,Le}return Ge(Ce,We),Ce}(Sn),ii=function(){function We(){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 We.prototype.addEventListener=function(Ce,Ee){this[Ce].push(Ee)},We.prototype.removeEventListener=function(Ce,Ee){var Ie=this[Ce].indexOf(Ee);Ie>-1&&this[Ce].splice(Ie,1)},We}(),Hn=function(){function We(Ce){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Yt,this._isOpen=!1,this.undoRedoManager=new mt,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 ii,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ce,this.targetRoot=document.body,this.width=Ce.clientWidth,this.height=Ce.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(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[It,ui,He,Nn,Ai,yi,Qn,Ln,Yn,mn,Mi,ht,un]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[It,ui,He,Nn,yi,Qn,Ln]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[It,ui,He,Nn,Qn]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ce){var Ee=this;this._availableMarkerTypes.splice(0),Ce.forEach(function(Ie){if(typeof Ie=="string"){var Ke=Ee.ALL_MARKER_TYPES.find(function(Le){return Le.typeName===Ie});Ke!==void 0&&Ee._availableMarkerTypes.push(Ke)}else Ee._availableMarkerTypes.push(Ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ce){this._zoomLevel=Ce,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(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Gt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.prototype.show=function(){var Ce=this;this.styles.styleSheetRoot===void 0&&Re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ee){return Ee(new Sn(Ce))})},We.prototype.render=function(){return Mt(this,void 0,void 0,function(){var Ce;return Ct(this,function(Ee){switch(Ee.label){case 0:return this.setCurrentMarker(),(Ce=new Ut).naturalSize=this.renderAtNaturalSize,Ce.imageType=this.renderImageType,Ce.imageQuality=this.renderImageQuality,Ce.markersOnly=this.renderMarkersOnly,Ce.width=this.renderWidth,Ce.height=this.renderHeight,[4,Ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ee.sent(),[4,Ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ee.sent()]}})})},We.prototype.close=function(Ce){var Ee=this;if(Ce===void 0&&(Ce=!1),this.isOpen){var Ie=!1;Ce||this.eventListeners.beforeclose.forEach(function(Ke){var Le=new Sn(Ee,!0);Ke(Le),Le.defaultPrevented&&(Ie=!0)}),Ie||(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(Ke){return Ke(new Sn(Ee))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var Ce,Ee=[],Ie=0;Ie<arguments.length;Ie++)Ee[Ie]=arguments[Ie];(Ce=this._availableMarkerTypes).push.apply(Ce,Ee)},We.prototype.addRenderEventListener=function(Ce){this.addEventListener("render",function(Ee){Ce(Ee.dataUrl,Ee.state)})},We.prototype.removeRenderEventListener=function(Ce){},We.prototype.addCloseEventListener=function(Ce){this.addEventListener("close",function(){Ce()})},We.prototype.removeCloseEventListener=function(Ce){},We.prototype.setupResizeObserver=function(){var Ce=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ce.resize(Ce.target.clientWidth,Ce.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ce.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},We.prototype.onPopupTargetResize=function(){var Ce=1*this.target.clientWidth/this.target.clientHeight,Ee=this.editorCanvas.clientWidth/Ce>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ce:this.editorCanvas.clientWidth,Ie=Ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ce;this.resize(Ee,Ie)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(Ce,Ee){this._isResizing=!0;var Ie=Ce/this.imageWidth,Ke=Ee/this.imageHeight;this.imageWidth=Math.round(Ce),this.imageHeight=Math.round(Ee),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(Ie,Ke),this._isResizing=!1},We.prototype.scaleMarkers=function(Ce,Ee){var Ie,Ke=this;this._currentMarker&&this._currentMarker instanceof Nn?this._currentMarker.scale(Ce,Ee):(Ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Le){Le!==Ke._currentMarker&&Le.scale(Ce,Ee)}),Ie!==void 0&&this.setCurrentMarker(Ie)},We.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"},We.prototype.setTopLeft=function(){var Ce=this.editingTarget.getBoundingClientRect(),Ee=this.editorCanvas.getBoundingClientRect();this.left=Ce.left-Ee.left,this.top=Ce.top-Ee.top},We.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)},We.prototype.addDefs=function(){for(var Ce,Ee=[],Ie=0;Ie<arguments.length;Ie++)Ee[Ie]=arguments[Ie];this.defs=xt.createDefs(),this.addDefsToImage(),(Ce=this.defs).append.apply(Ce,Ee)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.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)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.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)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.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)},We.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 Ce=document.createElement("a");Ce.href="https://markerjs.com/",Ce.target="_blank",Ce.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>',Ce.title="Powered by marker.js",Ce.style.display="grid",Ce.style.alignItems="center",Ce.style.justifyItems="center",Ce.style.padding="3px",Ce.style.width="20px",Ce.style.height="20px",this.logoUI.appendChild(Ce),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},We.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")},We.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"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.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 Ce=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=Ce+"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 le(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 pe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(Ce){this.markerImage.removeChild(Ce.container),this.markers.indexOf(Ce)>-1&&this.markers.splice(this.markers.indexOf(Ce),1),Ce.dispose()},We.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())},We.prototype.toolbarButtonClicked=function(Ce,Ee){if(Ce==="marker"&&Ee!==void 0)this.createNewMarker(Ee);else if(Ce==="action")switch(Ee){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()}},We.prototype.deleteSelectedMarker=function(){var Ce=this;if(this._currentMarker!==void 0){var Ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ke){var Le=new kn(Ce,Ce._currentMarker,!0);Ke(Le),Le.defaultPrevented&&(Ee=!0)}),!Ee){var Ie=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(Ke){return Ke(new kn(Ce,Ie))})}}},We.prototype.clear=function(){var Ce=this,Ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(st){var dn=new kn(Ce,void 0,!0);st(dn),dn.defaultPrevented&&(Ee=!0)}),!Ee)){this.setCurrentMarker();for(var Ie=function(st){var dn=Ke.markers[st];Ke.setCurrentMarker(Ke.markers[st]),Ke._currentMarker.dispose(),Ke.markerImage.removeChild(Ke._currentMarker.container),Ke.markers.splice(Ke.markers.indexOf(Ke._currentMarker),1),Ke.eventListeners.markerdelete.forEach(function(sn){return sn(new kn(Ce,dn))})},Ke=this,Le=this.markers.length-1;Le>=0;Le--)Ie(Le);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.prototype.showNotesEditor=function(){var Ce;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=(Ce=this._currentMarker.notes)!==null&&Ce!==void 0?Ce:"",this.overlayContainer.appendChild(this.notesArea))},We.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)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var Ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ee=this.getState(),Ie=this.undoRedoManager.getLastUndoStep();if(!Ie||Ie.width===Ee.width&&Ie.height===Ee.height){var Ke=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ee),Ke<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Le){return Le(new Sn(Ce))})}else this.undoRedoManager.replaceLastUndoStep(Ee),this.eventListeners.statechange.forEach(function(Le){return Le(new Sn(Ce))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.prototype.undoStep=function(){var Ce=this,Ee=this.undoRedoManager.undo();Ee!==void 0&&(this.restoreState(Ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ie){return Ie(new Sn(Ce))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.prototype.redoStep=function(){var Ce=this,Ee=this.undoRedoManager.redo();Ee!==void 0&&(this.restoreState(Ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ie){return Ie(new Sn(Ce))}))},We.prototype.stepZoom=function(){var Ce=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ce<this.zoomSteps.length-1?this.zoomSteps[Ce+1]:this.zoomSteps[0]},We.prototype.panTo=function(Ce){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ce.x,top:this.prevPanPoint.y-Ce.y}),this.prevPanPoint=Ce},We.prototype.startRenderAndClose=function(){return Mt(this,void 0,void 0,function(){var Ce,Ee,Ie=this;return Ct(this,function(Ke){switch(Ke.label){case 0:return[4,this.render()];case 1:return Ce=Ke.sent(),Ee=this.getState(),this.eventListeners.render.forEach(function(Le){return Le(new Dn(Ie,Ce,Ee))}),this.close(!0),[2]}})})},We.prototype.getState=function(Ce){Ce===!0&&this.setCurrentMarker();var Ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ie){return Ee.markers.push(Ie.getState())}),Ee},We.prototype.restoreState=function(Ce){var Ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ce.markers.forEach(function(Ie){var Ke=Ee._availableMarkerTypes.find(function(st){return st.typeName===Ie.typeName});if(Ke!==void 0){var Le=Ee.addNewMarker(Ke);Le.restoreState(Ie),Ee.markers.push(Le)}}),Ce.width&&Ce.height&&(Ce.width!==this.imageWidth||Ce.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ce.width,this.imageHeight/Ce.height),this.eventListeners.restorestate.forEach(function(Ie){return Ie(new Sn(Ee))})},We.prototype.addNewMarker=function(Ce){var Ee=xt.createGroup();return this.markerImage.appendChild(Ee),new Ce(Ee,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(Ce){var Ee,Ie=this;(Ee=typeof Ce=="string"?this._availableMarkerTypes.find(function(Ke){return Ke.typeName===Ce}):Ce)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ee),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(Ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ke){return Ke(new kn(Ie,Ie._currentMarker))}))},We.prototype.markerCreated=function(Ce){var Ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ce),this.setCurrentMarker(Ce),Ce instanceof ui&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ui):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ie){return Ie(new kn(Ee,Ee._currentMarker))})},We.prototype.colorChanged=function(Ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ce,this.settings.defaultStrokeColor=Ce)},We.prototype.fillColorChanged=function(Ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ce)},We.prototype.markerStateChanged=function(Ce){var Ee=this;this.eventListeners.markerchange.forEach(function(Ie){return Ie(new kn(Ee,Ce))})},We.prototype.setCurrentMarker=function(Ce){var Ee=this;this._currentMarker!==Ce&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ie){return Ie(new kn(Ee,Ee._currentMarker))})),this._currentMarker=Ce,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(Ie){return Ie(new kn(Ee,Ee._currentMarker))}))},We.prototype.onPointerDown=function(Ce){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ce.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ee=this.markers.find(function(Ie){return Ie.ownsTarget(Ce.target)});Ee!==void 0?(this.setCurrentMarker(Ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY),Ce.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ce.clientX,y:Ce.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY))},We.prototype.onDblClick=function(Ce){if(this._isFocused||this.focus(),this.mode==="select"){var Ee=this.markers.find(function(Ie){return Ie.ownsTarget(Ce.target)});Ee!==void 0&&Ee!==this._currentMarker&&this.setCurrentMarker(Ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY),Ce.target):this.setCurrentMarker()}},We.prototype.onPointerMove=function(Ce){this.touchPoints!==1&&Ce.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ce.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY)):this.zoomLevel>1&&this.panTo({x:Ce.clientX,y:Ce.clientY}))},We.prototype.onPointerUp=function(Ce){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY)),this.isDragging=!1,this.addUndoStep()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(Ce){this._currentMarker===void 0||this.notesArea!==void 0||Ce.key!=="Delete"&&Ce.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(Ce,Ee){var Ie=this.markerImage.getBoundingClientRect();return{x:(Ce-Ie.left)/this.zoomLevel,y:(Ee-Ie.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ce=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ce+"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()},We.prototype.addLicenseKey=function(Ce){Gt.addKey(Ce)},We.prototype.addEventListener=function(Ce,Ee){this.eventListeners.addEventListener(Ce,Ee)},We.prototype.removeEventListener=function(Ce,Ee){this.eventListeners.removeEventListener(Ce,Ee)},We.prototype.renderState=function(Ce){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ce),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.prototype.focus=function(){var Ce=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ee){return Ee(new Sn(Ce))}))},We.prototype.blur=function(){var Ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ee){return Ee(new Sn(Ce))}))},We.instanceCounter=0,We}(),Di=we(70635),hn=we(58130),rt=(We,Ce,Ee)=>new Promise((Ie,Ke)=>{var Le=sn=>{try{dn(Ee.next(sn))}catch(en){Ke(en)}},st=sn=>{try{dn(Ee.throw(sn))}catch(en){Ke(en)}},dn=sn=>sn.done?Ie(sn.value):Promise.resolve(sn.value).then(Le,st);dn((Ee=Ee.apply(We,Ce)).next())}),_t=({data:We,className:Ce,fullWidth:Ee,style:Ie={},onClose:Ke,onOk:Le,showFullTools:st,noAssociationId:dn})=>{const sn=(0,ce.useRef)(null),en=(0,ce.useRef)(null),Xt=(0,ce.useRef)(null),ai=(0,ce.useRef)(null),[Bn,In]=(0,ce.useState)(!1),[Yi,fi]=(0,ce.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ce.useEffect)(()=>{Xt.current||(Xt.current=document.createElement("style"),document.head.appendChild(Xt.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),Xt.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&&ar()):(document.body.removeAttribute("data-custom"),Xt.current&&(document.head.removeChild(Xt.current),Xt.current=null))},[We==null?void 0:We.visible]);const ar=()=>rt(void 0,null,function*(){In(!0),fi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Mr=yield(0,hn.ZJ)(We==null?void 0:We.src);sn.current.src="",sn.current.src=Mr,sn.current.onload=function(){bo()},In(!1),fi("")}),io=Mr=>rt(void 0,null,function*(){In(!0),fi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _o=yield(0,Di.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:Mr.dataUrl}});_o!=null&&_o.id&&!dn?(yield(0,Di.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:_o==null?void 0:_o.id,settings:JSON.stringify(Mr.state)}})).status===0&&Le():_o!=null&&_o.id&&Le(_o),In(!1),fi("")}),jo=()=>{const Mr=document.querySelector('a[href="https://markerjs.com/"]');Mr&&Mr.parentNode&&(Mr.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(Bo=>{const yo=document.querySelector(Bo.name);yo&&yo.setAttribute("title",Bo.title)})},bo=()=>{en.current=new Hn(sn.current),en.current.targetRoot=ai.current,en.current.addEventListener("render",io),en.current.addEventListener("beforeclose",Ke),st&&(en.current.availableMarkerTypes=en.current.ALL_MARKER_TYPES,en.current.uiStyleSettings.redoButtonVisible=!0,en.current.uiStyleSettings.notesButtonVisible=!0,en.current.uiStyleSettings.zoomButtonVisible=!0,en.current.uiStyleSettings.zoomOutButtonVisible=!0,en.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=en.current.uiStyleSettings,en.current.show(),We!=null&&We.snapshotData&&en.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),jo()},300)};return ce.createElement(ce.Fragment,null,(We==null?void 0:We.visible)&&ce.createElement(Dt.Z,{spinning:Bn,tip:Yi,style:{position:"absolute"}},ce.createElement("div",{ref:ai,className:kt()(at.imageDimensions,Ce,Ee?at.fullWidth:""),style:Ie},ce.createElement("img",{className:at.img,ref:sn}))))}},75890:function($t,zn,we){"use strict";var ce=we(59301),at=we(95237),Lt=we(43604),kt=we(99313),Dt=we(3113),jt=we(25711),Ge=we(93938),Mt=we(48136),Ct=we(59301);const Et=(0,ce.forwardRef)(({callback:xt,showSaveButton:Gt,value:Ut=""},Re)=>{const te=(0,ce.useRef)(),ne=[{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 "}]}]}],de=[{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}`}]}]}],le=Ae=>{te.current.setValue(te.current.getValue()+" "+Ae.value+" ")},pe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ct.createElement(at.Z,{className:Ge.Z.lists,gutter:[10,10]},ne.map((Ae,ke)=>Ct.createElement(Lt.Z,{flex:"110px",className:Ge.Z.item},Ct.createElement("div",null,Ct.createElement(jt.Z,{value:`$$${Ae.value}$$`}),Ae.name),Ct.createElement("div",{className:Ge.Z.children},Ae.children.map((Me,ot)=>Ct.createElement("div",{key:ot},Ct.createElement("h1",null,Me.name),Ct.createElement(at.Z,{gutter:[10,10]},Me.data.map((dt,yt)=>Ct.createElement(Lt.Z,{key:yt,onClick:()=>le(dt),className:Ge.Z.diamond},Ct.createElement(jt.Z,{value:"`$$"+dt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ct.createElement(at.Z,{className:Ge.Z.lists,gutter:[10,10]},de.map((Ae,ke)=>Ct.createElement(Lt.Z,{flex:"110px",className:Ge.Z.item},Ct.createElement("div",null,Ct.createElement(jt.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),Ct.createElement("div",{className:Ge.Z.children},Ae.children.map((Me,ot)=>Ct.createElement("div",{key:ot},Me.name&&Ct.createElement("h1",null,Me.name),Ct.createElement(at.Z,{gutter:[10,10]},Me.data.map((dt,yt)=>Ct.createElement(Lt.Z,{key:yt,onClick:()=>le(dt),className:Ge.Z.diamond},Ct.createElement(jt.Z,{value:"`$$"+dt.value+"$$`"}))))))))))}],xe=()=>{var Ae=document.createElement("div");Ae.innerHTML=te.current.getValue();var ke=Ae.innerText;return xt&&xt(ke),ke};return(0,ce.useImperativeHandle)(Re,()=>({getData:xe})),Ct.createElement("div",{className:Ge.Z.mathWrap},Ct.createElement(kt.default,{defaultActiveKey:"1",items:pe}),Ct.createElement("math-field",{locale:"zh_cn",className:Ge.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Ut||""),Gt&&Ct.createElement("div",{className:Ge.Z.button},Ct.createElement(Dt.ZP,{size:"large",onClick:xe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});zn.Z=Et},79646:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return xe}});var ce=we(59301),at={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Lt=we(3113),kt=we(63093),Dt=we(48551),jt=we(6848),Ge=we(58130),Mt=we(79124),Ct=we(97267),Et=we(10148),xt=we(63486),Gt=we(59301),Ut=Object.defineProperty,Re=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,de=(Ae,ke,Me)=>ke in Ae?Ut(Ae,ke,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ae[ke]=Me,le=(Ae,ke)=>{for(var Me in ke||(ke={}))te.call(ke,Me)&&de(Ae,Me,ke[Me]);if(Re)for(var Me of Re(ke))ne.call(ke,Me)&&de(Ae,Me,ke[Me]);return Ae},pe=(Ae,ke,Me)=>new Promise((ot,dt)=>{var yt=wt=>{try{Kt(Me.next(wt))}catch(It){dt(It)}},vt=wt=>{try{Kt(Me.throw(wt))}catch(It){dt(It)}},Kt=wt=>wt.done?ot(wt.value):Promise.resolve(wt.value).then(yt,vt);Kt((Me=Me.apply(Ae,ke)).next())}),xe=({editOffice:Ae="view",data:ke,theme:Me,type:ot,filename:dt,monacoEditor:yt,className:vt,style:Kt,close:wt,onClose:It,hasMask:Yt,disabledDownload:yn,onImgDimensions:Mi,showNodata:wi,recordInfo:Nn})=>{const[ui,tt]=(0,ce.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[He,mn]=(0,ce.useState)(""),[Zn,Qn]=(0,ce.useState)(),nn=window.ENV==="build"?"/react/build":"",gn=location.host.startsWith("localhost")?Et.Z.PROXY_SERVER:Et.Z.API_SERVER,yi=10*(1024*1024),Yn=(0,ce.useRef)();ke!=null&&ke.startsWith("/api")&&ot!=="txt"&&(ke=Et.Z.API_SERVER+ke);const Ai=Sn=>Sn.substring(Sn.lastIndexOf("/")+1).split(".").pop();dt&&yt&&(yt.filename=dt),(0,ce.useEffect)(()=>{var Sn,Dn;const kn=(Dn=(Sn=document.cookie)==null?void 0:Sn.replace(/\s/g,""))==null?void 0:Dn.split(";");kn==null||kn.map(ii=>{let Hn=ii.split("=");Hn[0]==="_educoder_session"&&mn(Hn[1])})},[]),(0,ce.useEffect)(()=>{ot==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?Qn({url:ke,fileType:Ai(ke),model:ke.indexOf("model=edit")?"edit":"view"}):mt())},[ot,ke]);const mt=()=>pe(void 0,null,function*(){console.log("data:",ke);let Sn=ke;ke.startsWith("http")||(Sn=location.origin+Sn);let Dn=new URL(Sn).pathname.split("/").pop();const kn=yield(0,Mt.gJ)({attachment_id:Dn});kn.url=gn+kn.url,Qn(kn)}),ht=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){un();return}(0,Ge.Sv)(dt||"educoder",ke,dt)},un=()=>{Nn&&(0,xt.fc)({id:Nn==null?void 0:Nn.id,watch_type:1,course_id:Nn==null?void 0:Nn.course_id}),(0,Ge.Nd)(dt||"educoder",decodeURIComponent(ke))};return Gt.createElement("div",{style:le({},Kt||{}),className:`${Yt&&at.bgBlack} ${ot?at.wrp:"hide"}`},wt&&Gt.createElement("div",{className:at.close,ref:Yn},!!Mi&&Gt.createElement(jt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Yn.current},Gt.createElement("span",{onClick:()=>{It(),Mi()}},Gt.createElement("i",{className:"icon-yulanpizhu"}))),!yn&&Gt.createElement(jt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Yn.current},Gt.createElement("span",{onClick:un},Gt.createElement("i",{className:"icon-quxiaozhiding"}))),Gt.createElement(jt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Yn.current},Gt.createElement("span",{className:"",onClick:It},Gt.createElement("i",{className:"icon-guanbi1"})))),Gt.createElement("div",{className:`${at[vt]} ${vt} ${at.monaco} ${ot==="txt"?"show":"hide"}`},ot==="txt"&&Gt.createElement(Gt.Fragment,null,Gt.createElement(Dt.ZP,le({},yt)))),ot==="audio"&&Gt.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),ot==="video"&&Gt.createElement(Gt.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?Gt.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):Gt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),ot==="office"&&Zn&&Gt.createElement("iframe",{src:`${nn}/office.html?key=${Zn.key}&url=${btoa(Zn.url)}&callbackUrl=${gn+(Zn.callbackUrl||"")}&fileType=${Zn.fileType}&title=${Zn.title||""}&model=${Ae}&officeServer=${Et.Z.ONLYOFFICE}&disabledDownload=${!!yn}`}),ot==="html"&&Gt.createElement("iframe",{src:ke+"&disposition=inline"}),ot==="pdf"&&Gt.createElement("iframe",{src:`${nn}/js/pdfview/index.html?filename=${dt||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!yn}`}),ot==="image"&&Gt.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(ot==="other"||ot==="download")&&Gt.createElement(Gt.Fragment,null,wi?Gt.createElement(Ct.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Gt.createElement(Lt.ZP,{icon:Gt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ht,disabled:yn},"\u4E0B\u8F7D")}):Gt.createElement(Lt.ZP,{type:"primary",size:"middle",onClick:ht,disabled:yn},Gt.createElement(kt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function($t,zn,we){"use strict";we.d(zn,{z:function(){return ot},Z:function(){return dt}});var ce=we(59301),at=we(1751),Lt=we(31087),kt=we(64018),Dt=we(37312),jt=we(10148),Ge=we(58130),Mt=we(15342),Ct=we(1012),Et=we(79646),xt=we(59301),Ut=({html:yt})=>{const vt=(0,ce.useRef)(null),Kt=(0,ce.useRef)(null),wt=`.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,ce.useEffect)(()=>{const It=vt.current.attachShadow({mode:"open"});Kt.current=document.createElement("div"),Kt.current.className="markdown-body",Kt.current.innerHTML=yt,It.appendChild(Kt.current);const Yt=document.createElement("style");return Yt.textContent=wt,It.appendChild(Yt),()=>{It.innerHTML=""}},[]),(0,ce.useEffect)(()=>{Kt.current&&(Kt.current.innerHTML=yt)},[yt]),xt.createElement("div",{ref:vt})},Re=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,le=(yt,vt,Kt)=>vt in yt?Re(yt,vt,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):yt[vt]=Kt,pe=(yt,vt)=>{for(var Kt in vt||(vt={}))ne.call(vt,Kt)&&le(yt,Kt,vt[Kt]);if(te)for(var Kt of te(vt))de.call(vt,Kt)&&le(yt,Kt,vt[Kt]);return yt};const xe="@\u2581\u2581@",Ae="@\u2581@",ke=/<pre[^>]*>/g;function Me(yt){let vt=document.createElement("div");return vt.innerHTML=yt,vt.childNodes.length===0?"":vt.childNodes[0].nodeValue}const ot=(yt,vt)=>{yt=yt||"";const Kt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,wt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,It=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Yt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return vt?yt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Kt,(yn,Mi,wi,Nn,ui,tt,He)=>{const mn=Mi||Nn||tt,Zn=wi||ui||He||"?";return jt.Z.API_SERVER+"/api/attachments/"+mn+Zn+"&t="+(0,Ge.Jn)(mn,Date.now())+(yn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(yt=yt.replace(Yt,(yn,Mi,wi,Nn,ui,tt,He)=>{const mn=Mi||Nn||tt,Zn=wi||ui||He||"?";return jt.Z.API_SERVER+"/attachments/download/"+mn+Zn+"&t="+(0,Ge.Jn)(mn,Date.now())+(yn.indexOf(")")>-1?")":"&")}).replace(Kt,(yn,Mi,wi,Nn,ui,tt,He)=>{const mn=Mi||Nn||tt,Zn=wi||ui||He||"?";return jt.Z.API_SERVER+"/api/attachments/"+mn+Zn+"&t="+(0,Ge.Jn)(mn,Date.now())+(yn.indexOf(")")>-1?")":"&")}).replace(wt,(yn,Mi,wi,Nn,ui)=>{const tt=Mi||Nn,He=wi||ui||"";return'"'+jt.Z.API_SERVER+"/api/attachments/"+tt+He+tt+He+"&t="+(0,Ge.Jn)(tt,Date.now())}).replace(It,(yn,Mi,wi,Nn,ui)=>{const tt=Mi||Nn,He=wi||ui||"";return"("+jt.Z.API_SERVER+"/files/uploads/"+tt+He+tt+He+"&t="+(0,Ge.Jn)(tt,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,`
|
|
`),yt)};var dt=({value:yt="",className:vt,showTextOnly:Kt,showLines:wt,style:It={},stylesPrev:Yt={},highlightKeywords:yn,showProgramFill:Mi,isProgramFill:wi,disabledFill:Nn=!1,programFillValue:ui,onFillChange:tt=Zn=>{},onFillBlur:He=()=>{},onFillFocus:mn=()=>{}})=>{let Zn=String(yt);const[Qn,nn]=(0,ce.useState)(""),[gn,Ln]=(0,ce.useState)("office"),[yi,Yn]=(0,ce.useState)([]),Ai=(0,ce.useRef)("a"+(0,Ct.Z)()),mt={},ht=(We,Ce,Ee)=>{const Ie=document.createElement(We===Ae?"input":"textarea");Ie.style.width="100%",Ie.style.height=We===Ae?"40px":"151px",Ie.rows=5,Ie.spellcheck=!1,Ie.name="edu-program-fill",Ie.placeholder="\u8BF7\u8F93\u5165",Ie.dataset.id=Ce;const Ke=Object.keys(mt).length;return mt[Ke]=Ie,`<span class="edu-program-fill-wrap ${We===Ae?"":"show"}" style="width:${We===Ae?"400px":"100%"}" title=${Ee||""}><span>${Ie.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function un(We){return We=We.replace(/!\[.*?\]\(.*?\)/g,""),We=We.replace(/\[.*?\]\(.*?\)/g,""),We=We.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),We=We.replace(/<embed.*?>/g,""),We=We.replace(/<img.*?>/g,""),We=We.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),We=We.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),We=We.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),We=We.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),We}const Sn=We=>We.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ce,Ee){let Ie=Ee.replace(/(\n|\r)/g,"").split("}"),Ke=[];return Ie.map(Le=>{Le!=""&&Ke.push(`.${Ai.current} ${Le}`)}),`<style>${Ke.join("}")}</style>`}),Dn=(0,ce.useMemo)(()=>{try{const Ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ke=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Le=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,st=/\(\/attachments\/download\//g;Zn=Zn.replace(st,"("+jt.Z.API_SERVER+"/attachments/download/").replace(Ie,"("+jt.Z.API_SERVER+"/api/attachments/").replace(Ke,'"'+jt.Z.API_SERVER+"/api/attachments/").replace(Le,'"'+jt.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(Ie){}if(Mi){let Ie=-1;return Zn=Zn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ke,Le,st){var dn;return++Ie,ht(Ke,Ie,(dn=ui==null?void 0:ui[Ie])==null?void 0:dn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Sn(Zn||"")}</pre>`}let We=Sn(Zn);We=(0,Lt.ZP)(We);const Ce=(0,Lt.ez)();Zn.match(/\[TOC\]/)&&(We=We.replace("<p>[TOC]</p>",(0,Lt.Qv)()),(0,Lt.Iy)()),We=We.replace(/(__special_katext_id_\d+__)/g,(Ie,Ke)=>{const{type:Le,expression:st}=Ce[Ke];return(0,Mt.renderToString)(Me(st)||"",{displayMode:Le==="block",throwOnError:!1,output:"html"})}),We=We.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Lt.AL)();const Ee=document.createElement("div");if(Ee.innerHTML=We,Kt)return Ee.innerText;if(yn){const Ie=yn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Di(Ee,Ie),Ee.innerHTML}return setTimeout(()=>Pt(),500),Ee.innerHTML},[Zn,yn]);(0,ce.useEffect)(()=>{hn.current&&hn.current.querySelectorAll(["input","textarea"]).forEach(Ce=>{Ce.oninput=kn,Ce.onblur=ii,Ce.onfocus=Hn})},[yi]),(0,ce.useEffect)(()=>{var We,Ce,Ee,Ie,Ke;if(ui!=null&&ui.length)try{const Le=hn.current.querySelectorAll(".edu-program-fill-score"),st=hn.current.querySelectorAll('[name="edu-program-fill"]');for(const[dn,sn]of st.entries())sn.value=((We=ui==null?void 0:ui[dn])==null?void 0:We.value)||"",((Ce=ui==null?void 0:ui[dn])==null?void 0:Ce.type)==="warning"?sn.className="program-fill-warning":((Ee=ui==null?void 0:ui[dn])==null?void 0:Ee.type)==="success"?sn.className="program-fill-success":sn.className="";for(const[dn,sn]of Le.entries())sn.innerHTML=(Ie=ui==null?void 0:ui[dn])!=null&&Ie.score?`${(Ke=ui==null?void 0:ui[dn])==null?void 0:Ke.score}\u5206`:"";Yn(ui)}catch(Le){console.log(Le,"error")}},[ui]);const kn=We=>{yi[We.target.dataset.id]=yi[We.target.dataset.id]||{},yi[We.target.dataset.id].value=We.target.value,Yn([...yi]),tt(yi,We.target.dataset.id)},ii=We=>{yi[We.target.dataset.id]=yi[We.target.dataset.id]||{},yi[We.target.dataset.id].value=We.target.value,Yn([...yi]),He(yi,We.target.dataset.id)},Hn=We=>{yi[We.target.dataset.id]=yi[We.target.dataset.id]||{},yi[We.target.dataset.id].value=We.target.value,Yn([...yi]),mn(yi,We.target.dataset.id)};function Di(We,Ce){return We.childNodes.forEach(Ee=>{var Ie;if(Ee.childNodes.length>0)Di(Ee,Ce);else if(Ee.nodeName!=="IMG")if(Ee.innerHTML)Ee.innerHTML=(Ie=Ee.innerHTML)==null?void 0:Ie.replace(new RegExp(Ce,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ke=document.createElement("span");Ke.innerHTML=Ee.textContent.replace(new RegExp(Ce,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ee.replaceWith(Ke)}})}const hn=(0,ce.useRef)();Lt.jb.WebkitLineClamp=wt,wt&&(It=pe(pe({},It),Lt.jb));function rt(We){let Ce=We.target;if(Ce.tagName.toUpperCase()==="A"){let Ee=Ce.getAttribute("href");if(Ee.indexOf("office")>-1)We.preventDefault(),nn(Ee),Ln("office");else if(Ee.indexOf("application/pdf")>-1)We.preventDefault(),nn(Ee),Ln("pdf");else if(Ee.indexOf("text/html")>-1)We.preventDefault(),nn(Ee),Ln("html");else if(Ee.startsWith("#")){We.preventDefault();let Ie=document.getElementById(Ee.replace("#",""));Ie&&Ie.scrollIntoView(!0)}}}const Pt=()=>{var We;const Ce=(We=hn.current)==null?void 0:We.querySelectorAll("video");Ce==null||Ce.forEach(Ee=>{if(Ee.oncontextmenu=()=>!1,Ee.src.indexOf(".m3u8")>-1&&!Ee.canPlayType("application/vnd.apple.mpegurl")){if(Dt.ZP.isSupported()){var Ie=new Dt.ZP;Ie.loadSource(Ee.src),Ie.attachMedia(Ee)}}})};(0,ce.useEffect)(()=>{if(hn.current&&Dn&&Dn.match(ke)&&window.PR.prettyPrint(),hn.current)return hn.current.addEventListener("click",rt),()=>{var We;(We=hn.current)==null||We.removeEventListener("click",rt),(0,Lt.AL)(),(0,Lt.Iy)()}},[Dn,hn.current,rt]),(0,ce.useEffect)(()=>{var We;const Ce=Ee=>{Ee.preventDefault(),Ee.clipboardData.setData("text",window.getSelection().toString())};return(We=hn.current)==null||We.addEventListener("copy",Ce),()=>{var Ee;(Ee=hn.current)==null||Ee.removeEventListener("copy",Ce)}},[hn.current]);const _t=We=>/<style[\s\S]*?>/i.test(We||"");return ce.createElement(ce.Fragment,null,Kt&&ce.createElement("div",{ref:hn},Dn),!Kt&&!_t(Dn)&&ce.createElement("div",{ref:hn,style:pe({},It),className:`${vt||""} ${Nn?"disabled-fill":""} markdown-body ${Ai.current}`,dangerouslySetInnerHTML:{__html:Dn}}),!Kt&&_t(Dn)&&ce.createElement(Ut,{html:Dn}),ce.createElement(Et.Z,{close:!0,data:Qn,type:Qn!=null&&Qn.length?gn:"",style:pe({},Yt),onClose:()=>nn("")}))}},89484:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return ot}});var ce=we(59301),at=we(6848),Lt=we(92832),kt=we(71418),Dt=we(64165),jt=we(92310),Ge=we.n(jt),Mt={selectEnvironment:"selectEnvironment___LegvW",search:"search___ZMwsK",searchListWrap:"searchListWrap___iUv9S",searchList:"searchList___T1FBi",name:"name___t0Y2b",tag:"tag___ooWkq",searchListActive:"searchListActive___ahElk",spin:"spin___x2xMT",common:"common___ZhJvk",title:"title___p4_7m",tags:"tags___2fYZM",tagActive:"tagActive___tb54k",wrap:"wrap___I9ZtF",allList:"allList___h31KX",item:"item___PwiKQ",itemActive:"itemActive___JCEc6",line:"line___Qn6mz",apply:"apply___EhZKq",p1:"p1___LxfGu",p2:"p2___jiQhJ",list:"list___n7Ydz",items:"items___OB8qz",darklySelectEnvironment:"darklySelectEnvironment___K__cy"},Ct=we(36723),Et=we(70635),xt=we(89392),Gt=Object.defineProperty,Ut=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,le=(dt,yt,vt)=>yt in dt?Gt(dt,yt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):dt[yt]=vt,pe=(dt,yt)=>{for(var vt in yt||(yt={}))ne.call(yt,vt)&&le(dt,vt,yt[vt]);if(te)for(var vt of te(yt))de.call(yt,vt)&&le(dt,vt,yt[vt]);return dt},xe=(dt,yt)=>Ut(dt,Re(yt)),Ae=(dt,yt,vt)=>new Promise((Kt,wt)=>{var It=Mi=>{try{yn(vt.next(Mi))}catch(wi){wt(wi)}},Yt=Mi=>{try{yn(vt.throw(Mi))}catch(wi){wt(wi)}},yn=Mi=>Mi.done?Kt(Mi.value):Promise.resolve(Mi.value).then(It,Yt);yn((vt=vt.apply(dt,yt)).next())});const ke=({className:dt,dispatch:yt,skin:vt="white",value:Kt=null,loading:wt=!1,data:It=[],otherData:Yt=[],tags:yn=[],onChange:Mi=()=>{},onSearchWord:wi=()=>{},shixun_type:Nn,extraContent:ui,tab_type:tt,is_create_mirror:He,hiddenCreateOnline:mn})=>{const[Zn,Qn]=(0,ce.useState)(""),[nn,gn]=(0,ce.useState)(!1),[Ln,yi]=(0,ce.useState)([]),[Yn,Ai]=(0,ce.useState)(0),mt=(0,ce.useRef)(null),ht=(0,ce.useRef)(String(Math.floor(Math.random()*1e6))).current,un=(0,ce.useRef)(),Sn=(0,ce.useRef)(null),Dn=(0,ce.useRef)(0),kn=(0,ce.useRef)([]);(0,ce.useEffect)(()=>(window.addEventListener("keydown",ii),()=>{window.removeEventListener("keydown",ii)}),[Zn,nn,Ln]),(0,ce.useEffect)(()=>{yi([])},[tt]);const ii=sn=>{if(!nn||sn.keyCode!==40&&sn.keyCode!==38)return;let en=0;sn.keyCode===40&&nn&&(Yn<Ln.length-1?en=Yn+1:en=0,console.log("\u4E0B"),rt(en,"down")),sn.keyCode===38&&nn&&(Yn===0?en=Ln.length-1:en=Yn-1,rt(en,"up")),Ai(en),Di(Zn,en,!0)},Hn=(sn,en)=>{const Xt=Bn=>{var In=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Yi={};return Yi["^"]="\\^",Yi["."]="\\.",Yi["\\"]="\\\\",Yi["|"]="\\|",Yi["("]="\\(",Yi[")"]="\\)",Yi["*"]="\\*",Yi["+"]="\\+",Yi["-"]="\\-",Yi.$="$",Yi["["]="\\[",Yi["]"]="\\]",Yi["?"]="\\?",Bn=Bn.replace(In,function(fi){return Yi[fi]}),Bn};var ai=new RegExp(Xt(en),"gi");return sn=sn.replace(ai,function(Bn){return"<span style='color:#0152d9;'>"+Bn+"</span>"}),sn},Di=(sn,en,Xt)=>Ae(void 0,null,function*(){let ai=Dn.current+1;Dn.current=ai;const Bn=In=>In==null?void 0:In.map((fi,ar)=>{const{id:io,name:jo}=fi,bo=xe(pe({},fi),{label:ce.createElement("ul",{id:`search-${ht}-${ar}`,onClick:()=>We(io,bo),className:ar===en?Mt.searchListActive:Mt.searchList},ce.createElement("li",{className:Mt.name,dangerouslySetInnerHTML:{__html:Hn(jo,sn)}}),fi.private&&ce.createElement(at.Z,{title:"\u8BE5\u955C\u50CF\u9762\u5411\u6307\u5B9A\u7528\u6237\u5F00\u653E"},ce.createElement("li",{className:Mt.tag,style:{color:"#FF9D18",border:"1px solid #FFCF8D",fontSize:10}},"\u9650\u5B9A")),fi.is_base&&ce.createElement(at.Z,{title:"\u4EC5\u63D0\u4F9B\u4E00\u4E2A\u57FA\u672C\u7684\u64CD\u4F5C\u7CFB\u7EDF\u73AF\u5883"},ce.createElement("li",{className:Mt.tag,style:{color:"#165DFF",border:"1px solid #BACFFE",fontSize:10}},"\u57FA\u7840")))});return bo});if(Xt){const In=Bn(kn.current);yi(In);return}clearTimeout(Sn.current),Sn.current=setTimeout(()=>Ae(void 0,null,function*(){var In,Yi;const fi={keywords:encodeURIComponent(sn||""),page:1,limit:1e5,tab_type:tt};Nn&&(fi.shixun_type=Nn);const ar=yield(0,Et.ZP)("/api/shixuns/search_image.json",{method:"get",params:xe(pe({},fi),{is_create_mirror:He})});if((ar==null?void 0:ar.status)===0){const io=Bn(((In=ar==null?void 0:ar.data)==null?void 0:In.mirrors)||[]);ai===Dn.current&&(yi(io),kn.current=(0,xt.cloneDeep)(((Yi=ar==null?void 0:ar.data)==null?void 0:Yi.mirrors)||[]))}}),300)}),hn=sn=>{const en=document.getElementById(`scroll-${ht}-${sn}`);if(!en)return;document.getElementById(`scroll-${ht}`).scrollTo(0,en.offsetTop)},rt=(sn,en)=>{const Xt=document.getElementById(`search-${ht}-${sn}`);if(!Xt)return;const ai=document.getElementById(`search-${ht}`);Xt.offsetTop-ai.scrollTop>0&&Xt.offsetTop-ai.scrollTop<ai.clientHeight||(en==="down"?ai.scrollTo(0,Xt.offsetTop-ai.clientHeight+Xt.clientHeight):ai.scrollTo(0,Xt.offsetTop))},Pt=sn=>{Di(sn,0)},_t=sn=>{var en;if(!Ln.length)return;const Xt=(en=Ln==null?void 0:Ln[Yn])==null?void 0:en.id;Mi(Xt),yi([]),Ai(0),hn(Xt),un.current.blur()},We=(sn,en)=>{Mi(sn),yi([]),Ai(0),hn(sn)},Ce=()=>{yi([]),Qn(""),wi("")},Ee=sn=>{Mi(sn),yi([])},Ie=()=>Zn===""?ce.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):ce.createElement("i",{onClick:sn=>{sn.stopPropagation(),Ce()},className:"iconfont icon-shanchu4 c-grey-c"}),Ke=()=>{yt({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Le=()=>{yt({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},st=()=>{mt.current=setTimeout(()=>{gn(!1),Ai(0)},200)},dn=!(It!=null&&It.length)&&!(Yt!=null&&Yt.length);return ce.createElement("div",{className:Ge()(vt==="night"?Mt.darklySelectEnvironment:Mt.selectEnvironment,dt)},ui&&ce.createElement("div",{style:{marginTop:20,marginLeft:20}},ui),ce.createElement("div",{className:Mt.search},ce.createElement(Lt.default,{suffix:Ie(),bordered:!1,ref:un,value:Zn,onKeyDown:sn=>{(sn.keyCode===40||sn.keyCode===38||sn.keyCode===13)&&sn.preventDefault()},size:"middle",onFocus:()=>{clearTimeout(mt.current),Zn&&Pt(Zn),gn(!0)},onBlur:st,onChange:sn=>{Qn(sn.target.value),sn.target.value&&Pt(sn.target.value),wi(sn.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:_t}),nn&&ce.createElement("div",{id:`search-${ht}`,className:Mt.searchListWrap},Ln.map((sn,en)=>ce.createElement(ce.Fragment,{key:en}," ",sn.label)))),wt?ce.createElement(kt.Z,{className:Mt.spin}):ce.createElement(ce.Fragment,null,!!yn.length&&ce.createElement("aside",{className:Mt.common},ce.createElement("div",{className:Mt.title},"\u63A8\u8350\u73AF\u5883:"),ce.createElement("ul",{className:Mt.tags},yn.map((sn,en)=>ce.createElement("li",{key:en,onClick:()=>Ee(sn.id),className:Kt===sn.id?`${Mt.tag} ${Mt.tagActive}`:Mt.tag},sn.name)))),dn&&ce.createElement(Dt.Z,{style:{margin:"60px 0"},image:Ct,description:ce.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),ce.createElement("aside",{className:Mt.wrap,id:`scroll-${ht}`},It.map((sn,en)=>{var Xt;return(Xt=sn==null?void 0:sn.image)!=null&&Xt.length?ce.createElement(Me,{key:en,data:sn,id:Kt,handleClick:ai=>Ee(ai)}):null}),ce.createElement("ul",{className:Mt.allList},Yt.map(sn=>ce.createElement("li",{key:`key-${sn.id}`,id:`scroll-${ht}-${sn.id}`,className:sn.id===Kt?`${Mt.item} ${Mt.itemActive}`:Mt.item,onClick:()=>Mi(sn.id)},ce.createElement("div",{className:Mt.name},sn.name),sn.private&&ce.createElement(at.Z,{title:"\u8BE5\u955C\u50CF\u9762\u5411\u6307\u5B9A\u7528\u6237\u5F00\u653E"},ce.createElement("div",{className:Mt.tag,style:{color:"#FF9D18",border:"1px solid #FFCF8D",fontSize:10}},"\u9650\u5B9A")),sn.is_base&&ce.createElement(at.Z,{title:"\u4EC5\u63D0\u4F9B\u4E00\u4E2A\u57FA\u672C\u7684\u64CD\u4F5C\u7CFB\u7EDF\u73AF\u5883"},ce.createElement("div",{className:Mt.tag,style:{color:"#165DFF",border:"1px solid #BACFFE",fontSize:10}},"\u57FA\u7840"))))))),ce.createElement("div",{className:Mt.apply},ce.createElement("span",{className:Mt.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),ce.createElement("span",{className:Mt.p2,onClick:Ke}," \u7533\u8BF7\u65B0\u5EFA"),!mn&&ce.createElement("span",{className:Mt.p2,onClick:Le}," \u5728\u7EBF\u521B\u5EFA")))},Me=({data:dt,id:yt,handleClick:vt})=>{const[Kt,wt]=(0,ce.useState)(!0),{name:It,image:Yt}=dt;return ce.createElement("div",{className:Mt.list},ce.createElement("header",{onClick:()=>wt(!Kt)},ce.createElement("div",{className:Mt.title},It),ce.createElement("i",{style:{transition:"0.5s",transform:Kt?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),ce.createElement("ul",{className:Mt.items,style:{height:Kt?"auto":0}},Yt.map(yn=>ce.createElement("li",{key:yn.id,className:yn.id===yt?`${Mt.item} ${Mt.itemActive}`:Mt.item,onClick:()=>vt(yn.id)},ce.createElement("div",{className:Mt.name},yn.name),yn.private&&ce.createElement(at.Z,{title:"\u8BE5\u955C\u50CF\u9762\u5411\u6307\u5B9A\u7528\u6237\u5F00\u653E"},ce.createElement("div",{className:Mt.tag,style:{color:"#FF9D18",border:"1px solid #FFCF8D",fontSize:10}},"\u9650\u5B9A")),yn.is_base&&ce.createElement(at.Z,{title:"\u4EC5\u63D0\u4F9B\u4E00\u4E2A\u57FA\u672C\u7684\u64CD\u4F5C\u7CFB\u7EDF\u73AF\u5883"},ce.createElement("div",{className:Mt.tag,style:{color:"#165DFF",border:"1px solid #BACFFE",fontSize:10}},"\u57FA\u7840")))),ce.createElement("li",{className:Mt.line})))};var ot=ke},84784:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return mt}});var ce=we(59301),at=we(5112),Lt=we(78241),kt=we(78485),Dt=we(3113),jt=we(70635),Ge=we(43418),Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAIwCAYAAABawRXrAADVaUlEQVR42uydCXhcdbn/RRAEURGvC4LgAsJFUVQUQWRRQdkLBUoXREVRLgh6BUG40KJA7ZK0EAiZ2z+VpWy9rbGltHSBdCHJNG1o2iQ0bdIsTRqStplmn+2c5/d/v+ecX3JycmbmzMyZJZP3+zzvM13TmXOm8/vkXb7vhz7EYrFYrLjl2SqOmVMefCivXLlm7nviFL4iLBaLxWKxWEkqryz8k7nekAeRV6HewVeExWKxWCwWKymJw+aWB/8uAWtehTibrwmLxWKxWCxWEprlFScNZa82h/IAXHxVWCwWi8VisZLQnPLA1RKwKJM1la8Ii8VisVgsVhKaXiKOnbs59CcDsJ7Orwh+na8Ki8VisVgsVhKaV+7/0tzycL5WHvQGH35is/g0XxUWi8VisVisJJRXHrjG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EBNnyhLjg/L2+pk4wACIK3KIscQQWeI7S37vHofLkBEIBCKxBOxsefkqlxh+S7woSw+8oTlDvuBjSSoA4S/rzJHXyfDAyp+Il+RuvIHye5AzUkfhVQmBQCCSN+PFvV3fkT0dP5UHwMNyRw5fdj0V5UYAQq5CeJ0YJcv0v5ITfNfItSynIyOFQCAQCG1f1wlykvE0eSWQPvP1ivzpHNkukEpZqWnEqzITxd8L35ffG6fJ75UT5PcOMlMIBAKBCEvETpJLC39M3EP8TvZ7vSXLjpOliM3AlUEgDpktn5v8HJ0in7Nvyb4ofi7/Wt41ehkLFL7jEQgEAhFr8fqWbNi9RJZJbpTrJX4jp6Oeklvs39StmUA2DEQi6zRTiv6bcjpvpHwODpbPyZ/K5+glskcRk3oIBAKBSEj5OkaumOByysnEt2WPCl8u+z15N9o9shTJKyfGy3vTIAwg0J16b8vnCpfu7iVukTvj+Dl1hnyO8XPtRPncQz8UAoFAIBC6rBhPXl0p10/8QmbEHpXNxa/Iex3flqWeSbJBP1Nesj1DTnblIlsW86xSrvxazJBfm0z5tZosp+7elqU67nf6g5TtwfJr/iP5HMBeKAQCgUAgoiRhx8pmYy5PXkxcITMZ18tS0ADZnMxZjgdkqegxWbJ8VpYtX5Fj9e9IScuQEjAbYnaEKM3WCdIk+ZiNk4/hGPmYPiUf4+HyMb9XTqoOkF+T6+XX6Er5NTtbfg1xGTECgUAgEAkoY0dLITtelo64hHSqnAg7U0raOXJKjC/LvUius+gne3Zu8JG2/5VZlofk/ZHcJP20zK6NlsLxqhznHy95VzZXT5EZnGxZ8tKTZ1B2pvthqu7vf1f3cV+Xn8sYWVobJT/X38mM4FB5WfA98t82QK4d4H/z/8jH4DvyMblAPkbn/P9Bw0wIGoa8aNNyoLBmGk15o2AUjCwAAJpj3XJMmgW8AAAAAElFTkSuQmCC";function Ct(){return(0,jt.U2)("teach_groups.json")}function Et(ht){return(0,jt.v_)("teach_groups.json",ht)}function xt(ht,un){return(0,jt.gz)(`teach_groups/${ht}.json`,un)}function Gt(ht){return(0,jt.v_)("teach_group_members.json",ht)}function Ut(ht){return(0,jt.IV)(`teach_group_members/${ht}.json`)}function Re(ht,un){return(0,jt.IV)(`teach_groups/${ht}/del_member.json`,{member_id:un})}function te(ht){return(0,jt.IV)(`teach_groups/${ht}.json`)}var ne=we(92832),de=({callback:ht,visible:un,onCancel:Sn,id:Dn,name:kn})=>{function ii(Di){ht(Di)}const[Hn]=Lt.default.useForm();return(0,ce.useEffect)(()=>{Hn.setFieldsValue({name:kn})},[kn]),ce.createElement(Ge.default,{centered:!0,title:Dn?"\u6539\u540D":"\u65B0\u5EFA",open:un,onCancel:Sn,footer:null},ce.createElement(Lt.default,{layout:"vertical",form:Hn,initialValues:{name:kn},onFinish:ii},ce.createElement(Lt.default.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},ce.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),ce.createElement(Lt.default.Item,null,ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(Dt.ZP,{type:"ghost",onClick:Sn,style:{marginRight:20}}," \u53D6\u6D88 ")," ",ce.createElement(Dt.ZP,{type:"primary",htmlType:"submit"}," \u786E\u5B9A ")))))},le=we(5891),pe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"},xe=pe,Ae=we(88853),ke=function(un,Sn){return ce.createElement(Ae.Z,(0,le.Z)({},un,{ref:Sn,icon:xe}))},Me=ce.forwardRef(ke),ot=Me,dt=we(5527);const yt=50;var vt=({data:ht,isAdminOrTeacher:un,onDelGroup:Sn,onChangeGroupName:Dn,onPlusMember:kn,onDelMember:ii,onExitGroup:Hn})=>{const[Di,hn]=(0,ce.useState)(0),[rt,Pt]=(0,ce.useState)(0);function _t(Ee){let Ie=parseInt(Ee.target.id,10);Ge.default.confirm({title:"\u89E3\u6563\u63D0\u793A",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:()=>{Sn(Ie)}})}function We(Ee){let Ie=parseInt(Ee.target.id,10);Ge.default.confirm({title:"\u9000\u51FA\u63D0\u793A",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:()=>{Hn(Ie)}})}function Ce(Ee,Ie){Ge.default.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:()=>{ii(Ee,Ie)}})}return ce.createElement("ul",{className:"teaching-list"},ht.map((Ee,Ie)=>ce.createElement("li",{key:Ee.id,onClick:()=>hn(Ie)},ce.createElement("div",{className:"item-group"},ce.createElement("span",null,Ee.name," \xA0 ",Ie!==Di&&ce.createElement("i",{className:"iconfont icon-jiantou9"})," "),ce.createElement("div",{className:"action-group"},un?ce.createElement("a",{onClick:()=>{Dn(Ee)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ee.is_creat?ce.createElement("a",{id:Ee.id+"",className:"c-grey-c",onClick:_t},"\u89E3\u6563"):ce.createElement("a",{id:Ee.id+"",className:"c-grey-c",onClick:We},"\u9000\u51FA"))),Ie===Di?ce.createElement("ul",{className:"info"},Ee.memers.map(Ke=>ce.createElement("li",{key:Ke.id||Ke.name,onClick:()=>{Pt(Ke.id)},className:rt===Ke.id?"active":""},ce.createElement("div",null,Ke.name),Ee.is_creat&&Ke.id&&rt===Ke.id?ce.createElement("a",{className:"btn-del",onClick:Le=>{Le.preventDefault(),Le.stopPropagation(),Ce(Ee.id,rt)}},ce.createElement(ot,null)):null)),un?ce.createElement("li",null,ce.createElement(Dt.ZP,{type:"link",disabled:Ee.memers.length>=50,title:Ee.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:()=>{kn(Ee)}}," ",ce.createElement(dt.Z,null)," \u6DFB\u52A0\u7EC4\u5458 ")):null):null)))},Kt=we(42203),wt=we(4194),It=Object.defineProperty,Yt=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,ui=(ht,un,Sn)=>un in ht?It(ht,un,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):ht[un]=Sn,tt=(ht,un)=>{for(var Sn in un||(un={}))wi.call(un,Sn)&&ui(ht,Sn,un[Sn]);if(Mi)for(var Sn of Mi(un))Nn.call(un,Sn)&&ui(ht,Sn,un[Sn]);return ht},He=(ht,un)=>Yt(ht,yn(un)),mn=(ht,un,Sn)=>new Promise((Dn,kn)=>{var ii=hn=>{try{Di(Sn.next(hn))}catch(rt){kn(rt)}},Hn=hn=>{try{Di(Sn.throw(hn))}catch(rt){kn(rt)}},Di=hn=>hn.done?Dn(hn.value):Promise.resolve(hn.value).then(ii,Hn);Di((Sn=Sn.apply(ht,un)).next())});function Zn({children:ht}){return ce.createElement("div",{className:"no-data"},ce.createElement("img",{src:Mt,alt:"no-data",width:300}),ht)}const Qn={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0};var nn=(ht=>(ht[ht.INITDATA=0]="INITDATA",ht[ht.SHOWLOADING=1]="SHOWLOADING",ht[ht.SHOWFORMPANEL=2]="SHOWFORMPANEL",ht[ht.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",ht[ht.SELECTGROUP=4]="SELECTGROUP",ht[ht.SETINDEX=5]="SETINDEX",ht))(nn||{});function gn(ht,un){switch(un.type){case 0:return tt(tt({},ht),un.payload);case 1:return He(tt({},ht),{loading:un.payload});case 5:return He(tt({},ht),{index:un.payload});case 2:return tt(tt({},ht),un.payload);case 3:return tt(tt({},ht),un.payload);case 4:return He(tt({},ht),{selectedGroup:un.payload,showFormPanel:!0});default:throw new Error}}function Ln({user:ht}){var un;const[Sn,Dn]=(0,ce.useReducer)(gn,Qn),{data:kn,index:ii,loading:Hn,showFormPanel:Di,selectedGroup:hn,showMemberPanel:rt}=Sn,Pt=(un=ht.userInfo)==null?void 0:un.role,_t=(0,ce.useMemo)(()=>{let Bn=[],In=[];for(let Yi of kn)Yi.is_creat?Bn.push(Yi):In.push(Yi);return[Bn,In]},[kn]);(0,ce.useEffect)(()=>{Pt===15&&Dn({type:5,payload:1})},[Pt]);function We(){return mn(this,null,function*(){const Bn=yield Ct();Dn({type:0,payload:{loading:!1,showFormPanel:!1,data:Bn.groups}})})}(0,ce.useEffect)(()=>{We()},[]);function Ce(Bn){return mn(this,null,function*(){hn.id?yield xt(hn.id,Bn):yield Et(Bn),We()})}function Ee(){Dn({type:2,payload:{showFormPanel:!0,selectedGroup:{}}})}function Ie(Bn){Dn({type:4,payload:Bn})}function Ke(){Dn({type:2,payload:{showFormPanel:!1}})}function Le(){Dn({type:3,payload:{showMemberPanel:!1,selectedGroup:{}}})}function st(Bn){Dn({type:3,payload:{showMemberPanel:!0,selectedGroup:Bn}})}function dn(Bn,In){return mn(this,null,function*(){yield Re(Bn,In),We()})}function sn(Bn){return mn(this,null,function*(){yield te(Bn),We()})}function en(Bn){return mn(this,null,function*(){yield Ut(Bn),We()})}function Xt(Bn){Dn({type:5,payload:parseInt(Bn.target.id,10)})}function ai(Bn,In){return mn(this,null,function*(){Le(),yield Gt({user_ids:Bn,group_id:In}),We()})}return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"teaching-circling-container"},ce.createElement("h3",null," \u6559\u7814\u56E2\u961F ",Pt<=12&&ce.createElement(Dt.ZP,{type:"primary",disabled:kn.length>=50,title:kn.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ee},"\u65B0\u5EFA")," "),ce.createElement("div",{className:"teaching-circling-body"},Pt===15?null:ce.createElement("ul",{className:"navs"},ce.createElement("li",{className:ii===0?"active":""},ce.createElement("a",{id:"0",onClick:Xt},"\u6211\u521B\u5EFA\u7684")),ce.createElement("li",{className:ii===1?"active":""},ce.createElement("a",{id:"1",onClick:Xt},"\u6211\u52A0\u5165\u7684"))),ce.createElement("div",{className:_t[ii].length===0?"nodata-content":"main-content"},_t[ii].length===0?ce.createElement(Zn,null,Pt<=12?ce.createElement(ce.Fragment,null," ",ce.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",ce.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):ce.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):ce.createElement(vt,{onExitGroup:en,onPlusMember:st,onDelMember:dn,onDelGroup:sn,isAdminOrTeacher:Pt<=12,onChangeGroupName:Ie,data:_t[ii]}))),ce.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," * \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732 ")),ce.createElement(de,{callback:Ce,visible:Di,onCancel:Ke,id:hn.id,name:hn.name}),ce.createElement(Ge.default,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",open:rt,onCancel:Le,footer:null,width:1100,bodyStyle:{minHeight:200}},ce.createElement(wt.Z,{container_id:hn.id,container_type:4,onSelect:ai,onCancel:Le})))}var yi=(0,Kt.connect)(({user:ht})=>({user:ht}))(Ln),Yn=(ht,un,Sn)=>new Promise((Dn,kn)=>{var ii=hn=>{try{Di(Sn.next(hn))}catch(rt){kn(rt)}},Hn=hn=>{try{Di(Sn.throw(hn))}catch(rt){kn(rt)}},Di=hn=>hn.done?Dn(hn.value):Promise.resolve(hn.value).then(ii,Hn);Di((Sn=Sn.apply(ht,un)).next())});const Ai=at.ZP.Group;var mt=({onSelect:ht,onCancel:un})=>{const[Sn,Dn]=(0,ce.useState)([]),[kn,ii]=(0,ce.useState)(!0);(0,ce.useEffect)(()=>{function hn(){return Yn(this,null,function*(){const{groups:rt}=yield(0,jt.U2)("teach_groups/my.json");Dn(rt),ii(!1)})}hn()},[]);const Hn=(0,ce.useMemo)(()=>{let hn=[],rt=[];for(let Pt of Sn)Pt.is_creat?hn.push(Pt):rt.push(Pt);return[hn,rt]},[Sn]);function Di(hn){ht(hn)}return ce.createElement(Lt.default,{className:"select-teach-group",onFinish:Di},kn?ce.createElement(kt.Z,{paragraph:!0}):Sn.length===0?ce.createElement(Zn,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",ce.createElement(Kt.Link,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):ce.createElement(ce.Fragment,null,ce.createElement(Lt.default.Item,{name:"group_id",style:{width:"100%"}},ce.createElement(Ai,{style:{width:"100%"}},ce.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),ce.createElement("ul",{className:"groups"},Hn[0].map(hn=>ce.createElement("li",{key:hn.id},ce.createElement(at.ZP,{value:hn.id},hn.name)))),ce.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),ce.createElement("ul",{className:"groups"},Hn[1].map(hn=>ce.createElement("li",{key:hn.id},ce.createElement(at.ZP,{value:hn.id},hn.name)))))),ce.createElement("div",{className:"btn-actions"},ce.createElement(Dt.ZP,{type:"default",onClick:un,style:{marginRight:10}},"\u53D6\u6D88"),ce.createElement(Dt.ZP,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},4194:function($t,zn,we){"use strict";var ce=we(59301),at=we(78241),Lt=we(95237),kt=we(57809),Dt=we(92832),jt=we(88522),Ge=we(3113),Mt=we(24905),Ct=we(6848),Et=we(8591),xt=we(2595),Gt=we(42203),Ut=we(61186),Re=we.n(Ut),te=we(26724),ne=we.n(te),de=we(58143),le=we(16597),pe=we(94606),xe=we(52222),Ae=we(59301),ke=Object.defineProperty,Me=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Kt=(tt,He,mn)=>He in tt?ke(tt,He,{enumerable:!0,configurable:!0,writable:!0,value:mn}):tt[He]=mn,wt=(tt,He)=>{for(var mn in He||(He={}))yt.call(He,mn)&&Kt(tt,mn,He[mn]);if(dt)for(var mn of dt(He))vt.call(He,mn)&&Kt(tt,mn,He[mn]);return tt},It=(tt,He)=>Me(tt,ot(He)),Yt=(tt,He,mn)=>new Promise((Zn,Qn)=>{var nn=yi=>{try{Ln(mn.next(yi))}catch(Yn){Qn(Yn)}},gn=yi=>{try{Ln(mn.throw(yi))}catch(Yn){Qn(Yn)}},Ln=yi=>yi.done?Zn(yi.value):Promise.resolve(yi.value).then(nn,gn);Ln((mn=mn.apply(tt,He)).next())});const yn=[];function Mi({onSearch:tt,schools:He}){return Ae.createElement(at.default,{colon:!1,layout:"horizontal",onFinish:tt,initialValues:{keyword:"",school_name:"",search_type:"1"}},Ae.createElement(Lt.Z,{style:{flexWrap:"nowrap"}},Ae.createElement(at.default.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},Ae.createElement(kt.default,{popupClassName:xe.Z.selectdown,style:{width:106}},Ae.createElement(kt.default.Option,{value:"1"},"\u59D3\u540D"),Ae.createElement(kt.default.Option,{value:"2"},"\u624B\u673A\u53F7"),Ae.createElement(kt.default.Option,{value:"3"},"\u90AE\u7BB1"))),Ae.createElement(at.default.Item,{style:{marginLeft:20},label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},Ae.createElement(Dt.default,{allowClear:!0,style:{width:300},size:"middle"})),Ae.createElement(at.default.Item,{style:{marginLeft:20},label:"\u5355\u4F4D",name:"school_name"},Ae.createElement(jt.Z,{options:He,style:{width:300},size:"middle",showSearch:!0,filterOption:(mn,Zn)=>Zn.value.toUpperCase().indexOf(mn.toUpperCase())!==-1,placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),Ae.createElement(Ge.ZP,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",marginLeft:40,border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var wi=(tt=>(tt[tt.INITDATA=0]="INITDATA",tt[tt.INITSCHOOLS=1]="INITSCHOOLS",tt[tt.SHOWLOADING=2]="SHOWLOADING",tt[tt.SELECTEDIDS=3]="SELECTEDIDS",tt[tt.SETQUERY=4]="SETQUERY",tt[tt.SETPAGE=5]="SETPAGE",tt))(wi||{});function Nn(tt,He){switch(He.type){case 0:return wt(wt({},tt),He.payload);case 4:return wt(wt({},tt),He.payload);case 5:return It(wt({},tt),{page:He.payload,reload:!1});case 2:return It(wt({},tt),{loading:He.payload});case 1:return It(wt({},tt),{schools:He.payload});case 3:return It(wt({},tt),{selectedIds:He.payload});default:throw new Error}}const ui={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};zn.Z=({onSelect:tt,onCancel:He,container_id:mn,container_type:Zn})=>{const[Qn,nn]=(0,ce.useReducer)(Nn,ui),{data:gn,schools:Ln,loading:yi,selectedIds:Yn,page:Ai,count:mt,query:ht,reload:un}=Qn;(0,ce.useEffect)(()=>{function hn(){return Yt(this,null,function*(){const{users:rt,user_count:Pt}=yield(0,le.nQ)(It(wt({},ht),{page:Ai,container_type:Zn,container_id:mn,display_aliases:!0}));nn({type:0,payload:{data:un?rt:[...gn,...rt],count:Pt}})})}ht&&hn()},[Ai,ht,un,mn,Zn]),(0,ce.useEffect)(()=>{function hn(){return Yt(this,null,function*(){const{school_names:rt}=yield(0,le.K$)({display_aliases:!0});nn({type:1,payload:rt.map(Pt=>({value:Pt}))})})}hn()},[]);const Sn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:(hn,rt)=>Ae.createElement(Mt.default,{value:rt.numid,checked:Yn.includes(rt.numid),disabled:!!hn})},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:(hn,rt)=>Ae.createElement("div",null,Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement(Gt.Link,{style:{color:"#000000"},className:"bold c-black",to:`/users/${rt.login}`,target:"_blank"},hn||"--")))},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:hn=>Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement("span",{style:{color:"#000000"}},hn||"--"))},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:hn=>Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement("span",{style:{color:"#000000"}},hn||"--"))},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:hn=>Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement("span",{style:{color:"#000000"}},hn||"--"))},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:hn=>Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement("span",{style:{color:"#000000"}},hn||"--"))},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:hn=>Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement("span",{style:{color:"#000000"}},hn||"--"))},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:hn=>Ae.createElement("span",{style:{color:"#000000"}},hn?"\u662F":"\u5426")},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:hn=>Ae.createElement(Ct.Z,{placement:"bottom",title:hn},Ae.createElement("span",{style:{color:"#000000"}},Re()(hn).format("YYYY-MM-DD HH:mm")))},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:hn=>{if(hn===1)return Ae.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Dn(hn){nn({type:4,payload:{page:1,reload:!0,query:hn}})}function kn(hn){nn({type:5,payload:hn})}function ii(hn){let rt=Yn.indexOf(hn);rt>=0?Yn.splice(rt,1):Yn.push(hn),nn({type:3,payload:[...Yn]})}function Hn(){Yn.length===0?Et.ZP.warning("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(tt(Yn,mn),nn({type:0,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}const Di=mt>Ai*10;return Ae.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},Ae.createElement(Mi,{onSearch:Dn,schools:Ln}),ht?Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"flexd-table-header mt20"},Ae.createElement(pe.Gi,null,Ae.createElement(xt.default,{pagination:!1,dataSource:yn,columns:Sn}))),Ae.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},Ae.createElement(ne(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:kn,hasMore:Di,useWindow:!1},Ae.createElement(pe.Gi,null,Ae.createElement(xt.default,{loading:yi,showHeader:!1,pagination:!1,dataSource:gn,columns:Sn,onRow:hn=>({onClick:rt=>{hn.added!==1&&ii(hn.numid)}})})))),Ae.createElement("div",{className:"flex-container flex-end"},Ae.createElement(Ge.ZP,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:He},"\u53D6\u6D88"),Ae.createElement(Ge.ZP,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:Hn},"\u786E\u5B9A"))):Ae.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},Ae.createElement("img",{src:de,width:"100",alt:""}),Ae.createElement("br",null),Ae.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},36866:function($t,zn,we){"use strict";we.d(zn,{h:function(){return Ae},Z:function(){return xe}});var ce=we(59301),at=we(57809),Lt=we(78241),kt=we(3113),Dt=we(89780),jt=we.n(Dt),Ge=we(79906),Mt=Object.defineProperty,Ct=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Re=(ke,Me,ot)=>Me in ke?Mt(ke,Me,{enumerable:!0,configurable:!0,writable:!0,value:ot}):ke[Me]=ot,te=(ke,Me)=>{for(var ot in Me||(Me={}))Gt.call(Me,ot)&&Re(ke,ot,Me[ot]);if(xt)for(var ot of xt(Me))Ut.call(Me,ot)&&Re(ke,ot,Me[ot]);return ke},ne=(ke,Me)=>Ct(ke,Et(Me));const de=at.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},pe={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"]};var xe=({callback:ke,onCancel:Me})=>{const[ot,dt]=(0,ce.useState)("python");function yt(Kt){dt(pe[Kt][1])}function vt(Kt){ke(Kt)}return ce.createElement(Lt.default,ne(te({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:vt,style:{width:500}}),ce.createElement(Lt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ce.createElement(at.default,{getPopupContainer:Kt=>Kt.parentNode,onChange:yt},Object.keys(pe).map(Kt=>ce.createElement(de,{key:Kt,value:Kt},pe[Kt][0])))),ce.createElement(Lt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ce.createElement(Ae,{mode:ot})),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(kt.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function Ae({value:ke,onChange:Me,mode:ot,options:dt={}}){const yt=(0,ce.useRef)(),[vt,Kt]=(0,ce.useState)();return(0,ce.useEffect)(()=>{if(vt){let wt=function(It){const Yt=It.getValue();Me&&Me(Yt)};return vt.on("change",wt),()=>{vt.off("change",wt)}}},[vt,Me]),(0,ce.useEffect)(()=>{vt&&vt.setOption("mode",ot)},[vt,ot]),(0,ce.useEffect)(()=>{vt&&(ke!==vt.getValue()||ke==="")&&setTimeout(()=>{vt.setValue(ke||"")},300)},[vt,ke]),(0,ce.useEffect)(()=>{if(yt.current&&!vt){const wt=jt().fromTextArea(yt.current,te({mode:ot,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},dt));Kt(wt)}},[yt.current,vt]),ce.createElement("div",{className:"my-codemirror-container"},ce.createElement("textarea",{ref:yt}))}},23469:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Un}});var ce=we(59301),at=we(89780),Lt=we.n(at),kt=we(76374),Dt=we(79906),jt=we(6313),Ge=we(25717),Mt=we(99498),Ct=we(25419),Et=we(67549),xt=we(25711),Gt=({value:Zt="",className:ln,showTextOnly:Tt,showLines:An,style:Hi={}})=>{const gr=(0,ce.useMemo)(()=>"",[Zt]);return ce.createElement(ce.Fragment,null,ce.createElement("div",{dangerouslySetInnerHTML:{__html:gr}}))},Ut=we(59301),Re=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,xe=(Zt,ln,Tt)=>ln in Zt?Re(Zt,ln,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Zt[ln]=Tt,Ae=(Zt,ln)=>{for(var Tt in ln||(ln={}))le.call(ln,Tt)&&xe(Zt,Tt,ln[Tt]);if(de)for(var Tt of de(ln))pe.call(ln,Tt)&&xe(Zt,Tt,ln[Tt]);return Zt},ke=(Zt,ln)=>te(Zt,ne(ln));let Me=[{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 ot({onActionCallback:Zt,title:ln,icon:Tt,actionName:An,className:Hi="",children:gr}){function sr(){Zt(An)}return Ut.createElement("a",{title:ln,className:Hi,onClick:sr},Ut.createElement("i",{className:`${Tt}`}),gr)}var dt=({watch:Zt,showNullButton:ln,showNullProgramButton:Tt,onActionCallback:An,fullScreen:Hi,insertTemp:gr,hidetoolBar:sr,extraUse:Rn})=>{const Ti=[...Me,{title:`${Zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ut.createElement("ul",{className:"markdown-toolbar-container"},!sr&&Ti.map((qr,_r)=>Ut.createElement("li",{key:_r},qr.actionName?Ut.createElement(ot,ke(Ae({},qr),{onActionCallback:An})):Ut.createElement("span",{className:"v-line"}))),ln?Ut.createElement("li",null,Ut.createElement(ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:An},Ut.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Tt?Ut.createElement(Ut.Fragment,null,Ut.createElement("li",null,Ut.createElement(ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:An},Ut.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ut.createElement("li",null,Ut.createElement(ot,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:An},Ut.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gr&&Ut.createElement("li",null,Ut.createElement(ot,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gr}`,onActionCallback:An},Ut.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rn&&Ut.createElement("li",null,Rn),Ut.createElement("li",{className:"btn-full-screen"},Ut.createElement(ot,{icon:`${Hi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Hi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:An})))},yt=we(50474),vt=we(78241),Kt=we(92832),wt=we(3113),It=Object.defineProperty,Yt=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,ui=(Zt,ln,Tt)=>ln in Zt?It(Zt,ln,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Zt[ln]=Tt,tt=(Zt,ln)=>{for(var Tt in ln||(ln={}))wi.call(ln,Tt)&&ui(Zt,Tt,ln[Tt]);if(Mi)for(var Tt of Mi(ln))Nn.call(ln,Tt)&&ui(Zt,Tt,ln[Tt]);return Zt},He=(Zt,ln)=>Yt(Zt,yn(ln));const mn={labelCol:{span:4},wrapperCol:{span:20}};var Zn=({callback:Zt,onCancel:ln})=>{function Tt(An){Zt(An)}return ce.createElement(vt.default,He(tt({},mn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt,style:{width:500}}),ce.createElement(vt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ce.createElement(Kt.default,null)),ce.createElement(vt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ce.createElement(Kt.default,null)),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(wt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(wt.ZP,{type:"ghost",onClick:ln},"\u53D6\u6D88")))},Qn=we(36866),nn=we(56701),gn=we(43418),Ln=we(95237),yi=we(65983),Yn=we(59301),Ai=({callback:Zt,onCancel:ln})=>{const Tt=document.createElement("canvas"),An=Tt.getContext("2d");Tt.width=1e3,Tt.height=800,An.fillStyle="#ffffff",An.fillRect(0,0,Tt.width,Tt.height);const Hi=Tt.toDataURL("image/png");return Yn.createElement(gn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Yn.createElement(Ln.Z,{style:{height:"100vh"}},Yn.createElement(yi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Hi,visible:!0,title:String(Date.now())},onOk:gr=>{Zt({src:gr.url})},onClose:ln})))},mt=we(12378);function ht(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ht,go.CommandHandler),ht.prototype.canAlignSelection=function(){var Zt=this.diagram;return!(Zt===null||Zt.isReadOnly||Zt.isModelReadOnly||Zt.selection.count<2)},ht.prototype.alignLeft=function(){var Zt=this.diagram;Zt.startTransaction("aligning left");var ln=1/0;Zt.selection.each(function(Tt){Tt instanceof go.Link||(ln=Math.min(Tt.position.x,ln))}),Zt.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(ln,Tt.position.y))}),Zt.commitTransaction("aligning left")},ht.prototype.alignRight=function(){var Zt=this.diagram;Zt.startTransaction("aligning right");var ln=-1/0;Zt.selection.each(function(Tt){if(!(Tt instanceof go.Link)){var An=Tt.actualBounds.x+Tt.actualBounds.width;ln=Math.max(An,ln)}}),Zt.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(ln-Tt.actualBounds.width,Tt.position.y))}),Zt.commitTransaction("aligning right")},ht.prototype.alignTop=function(){var Zt=this.diagram;Zt.startTransaction("alignTop");var ln=1/0;Zt.selection.each(function(Tt){Tt instanceof go.Link||(ln=Math.min(Tt.position.y,ln))}),Zt.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.position.x,ln))}),Zt.commitTransaction("alignTop")},ht.prototype.alignBottom=function(){var Zt=this.diagram;Zt.startTransaction("aligning bottom");var ln=-1/0;Zt.selection.each(function(Tt){if(!(Tt instanceof go.Link)){var An=Tt.actualBounds.y+Tt.actualBounds.height;ln=Math.max(An,ln)}}),Zt.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.actualBounds.x,ln-Tt.actualBounds.height))}),Zt.commitTransaction("aligning bottom")},ht.prototype.alignCenterX=function(){var Zt=this.diagram,ln=Zt.selection.first();if(ln){Zt.startTransaction("aligning Center X");var Tt=ln.actualBounds.x+ln.actualBounds.width/2;Zt.selection.each(function(An){An instanceof go.Link||An.move(new go.Point(Tt-An.actualBounds.width/2,An.actualBounds.y))}),Zt.commitTransaction("aligning Center X")}},ht.prototype.alignCenterY=function(){var Zt=this.diagram,ln=Zt.selection.first();if(ln){Zt.startTransaction("aligning Center Y");var Tt=ln.actualBounds.y+ln.actualBounds.height/2;Zt.selection.each(function(An){An instanceof go.Link||An.move(new go.Point(An.actualBounds.x,Tt-An.actualBounds.height/2))}),Zt.commitTransaction("aligning Center Y")}},ht.prototype.alignColumn=function(Zt){var ln=this.diagram;ln.startTransaction("align Column"),Zt===void 0&&(Zt=0),Zt=parseFloat(Zt);var Tt=new Array;ln.selection.each(function(Rn){Rn instanceof go.Link||Tt.push(Rn)});for(var An=0;An<Tt.length-1;An++){var Hi=Tt[An],gr=Hi.actualBounds.y+Hi.actualBounds.height+Zt,sr=Tt[An+1];sr.move(new go.Point(Hi.actualBounds.x,gr))}ln.commitTransaction("align Column")},ht.prototype.alignRow=function(Zt){Zt===void 0&&(Zt=0),Zt=parseFloat(Zt);var ln=this.diagram;ln.startTransaction("align Row");var Tt=new Array;ln.selection.each(function(Rn){Rn instanceof go.Link||Tt.push(Rn)});for(var An=0;An<Tt.length-1;An++){var Hi=Tt[An],gr=Hi.actualBounds.x+Hi.actualBounds.width+Zt,sr=Tt[An+1];sr.move(new go.Point(gr,Hi.actualBounds.y))}ln.commitTransaction("align Row")},ht.prototype.canRotate=function(Zt){var ln=this.diagram;return!(ln===null||ln.isReadOnly||ln.isModelReadOnly||ln.selection.count<1)},ht.prototype.rotate=function(Zt){Zt===void 0&&(Zt=90);var ln=this.diagram;ln.startTransaction("rotate "+Zt.toString());var ln=this.diagram;ln.selection.each(function(Tt){Tt instanceof go.Link||Tt instanceof go.Group||(Tt.angle+=Zt)}),ln.commitTransaction("rotate "+Zt.toString())},ht.prototype.pullToFront=function(){var Zt=this.diagram;Zt.startTransaction("pullToFront");var ln=new go.Map;Zt.selection.each(function(Tt){ln.set(Tt.layer,0)}),ln.iteratorKeys.each(function(Tt){var An=0;Tt.parts.each(function(Hi){if(!Hi.isSelected){var gr=Hi.zOrder;isNaN(gr)?Hi.zOrder=0:An=Math.max(An,gr)}}),ln.set(Tt,An)}),Zt.selection.each(function(Tt){ht._assignZOrder(Tt,ln.get(Tt.layer)+1)}),Zt.commitTransaction("pullToFront")},ht.prototype.pushToBack=function(){var Zt=this.diagram;Zt.startTransaction("pushToBack");var ln=new go.Map;Zt.selection.each(function(Tt){ln.set(Tt.layer,0)}),ln.iteratorKeys.each(function(Tt){var An=0;Tt.parts.each(function(Hi){if(!Hi.isSelected){var gr=Hi.zOrder;isNaN(gr)?Hi.zOrder=0:An=Math.min(An,gr)}}),ln.set(Tt,An)}),Zt.selection.each(function(Tt){ht._assignZOrder(Tt,ln.get(Tt.layer)-1-ht._findGroupDepth(Tt))}),Zt.commitTransaction("pushToBack")},ht._assignZOrder=function(Zt,ln,Tt){Tt===void 0&&(Tt=Zt),Zt.layer===Tt.layer&&(Zt.zOrder=ln),Zt instanceof go.Group&&Zt.memberParts.each(function(An){ht._assignZOrder(An,ln+1,Tt)})},ht._findGroupDepth=function(Zt){if(Zt instanceof go.Group){var ln=0;return Zt.memberParts.each(function(Tt){ln=Math.max(ln,ht._findGroupDepth(Tt))}),ln+1}else return 0},ht.prototype.doKeyDown=function(){var Zt=this.diagram;if(Zt!==null){var ln=Zt.lastInput;if(ln.key==="Up"||ln.key==="Down"||ln.key==="Left"||ln.key==="Right"){var Tt=this.arrowKeyBehavior;if(Tt==="none")return;if(Tt==="select"){this._arrowKeySelect();return}else if(Tt==="move"){this._arrowKeyMove();return}else if(Tt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ht.prototype._getAllParts=function(){var Zt=new Array;return this.diagram.nodes.each(function(ln){Zt.push(ln)}),this.diagram.parts.each(function(ln){Zt.push(ln)}),Zt},ht.prototype._arrowKeyMove=function(){var Zt=this.diagram,ln=Zt.lastInput,Tt=0,An=0;if(ln.control||ln.meta)Tt=1,An=1;else if(Zt.grid!==null){var Hi=Zt.grid.gridCellSize;An=Hi.width,Tt=Hi.height}Zt.startTransaction("arrowKeyMove"),Zt.selection.each(function(gr){ln.key==="Up"?gr.move(new go.Point(gr.actualBounds.x,gr.actualBounds.y-Tt)):ln.key==="Down"?gr.move(new go.Point(gr.actualBounds.x,gr.actualBounds.y+Tt)):ln.key==="Left"?gr.move(new go.Point(gr.actualBounds.x-An,gr.actualBounds.y)):ln.key==="Right"&&gr.move(new go.Point(gr.actualBounds.x+An,gr.actualBounds.y))}),Zt.commitTransaction("arrowKeyMove")},ht.prototype._arrowKeySelect=function(){var Zt=this.diagram,ln=Zt.lastInput,Tt=null;ln.key==="Up"?Tt=this._findNearestPartTowards(270):ln.key==="Down"?Tt=this._findNearestPartTowards(90):ln.key==="Left"?Tt=this._findNearestPartTowards(180):ln.key==="Right"&&(Tt=this._findNearestPartTowards(0)),Tt!==null&&(ln.shift?Tt.isSelected=!0:ln.control||ln.meta?Tt.isSelected=!Tt.isSelected:Zt.select(Tt))},ht.prototype._findNearestPartTowards=function(Zt){var ln=this.diagram.selection.first();if(ln===null)return null;for(var Tt=ln.actualBounds.center,An=this._getAllParts(),Hi=1/0,gr=ln,sr=0;sr<An.length;sr++){var Rn=An[sr];if(Rn!==ln&&Rn.canSelect()){var Ti=Rn.actualBounds.center,qr=Tt.directionPoint(Ti),_r=this._angleCloseness(qr,Zt);if(_r<=45){var di=Tt.distanceSquaredPoint(Ti);di*=1+Math.sin(_r*Math.PI/180),di<Hi&&(Hi=di,gr=Rn)}}}return gr},ht.prototype._angleCloseness=function(Zt,ln){return Math.min(Math.abs(ln-Zt),Math.min(Math.abs(ln+360-Zt),Math.abs(ln-360-Zt)))},ht.prototype._arrowKeyTree=function(){var Zt=this.diagram,ln=Zt.selection.first();if(ln instanceof go.Node){var Tt=Zt.lastInput;if(Tt.key==="Right"){if(!ln.isTreeLeaf)if(!ln.isTreeExpanded)Zt.commandHandler.canExpandTree(ln)&&Zt.commandHandler.expandTree(ln);else{var An=this._sortTreeChildrenByY(ln).first();An!==null&&Zt.select(An)}}else if(Tt.key==="Left")if(!ln.isTreeLeaf&&ln.isTreeExpanded)Zt.commandHandler.canCollapseTree(ln)&&Zt.commandHandler.collapseTree(ln);else{var Hi=ln.findTreeParentNode();Hi!==null&&Zt.select(Hi)}else if(Tt.key==="Up"){var Hi=ln.findTreeParentNode();if(Hi!==null){var gr=this._sortTreeChildrenByY(Hi),sr=gr.indexOf(ln);if(sr>0){for(var Rn=gr.elt(sr-1);Rn!==null&&Rn.isTreeExpanded&&!Rn.isTreeLeaf;){var Ti=this._sortTreeChildrenByY(Rn);Rn=Ti.last()}Rn!==null&&Zt.select(Rn)}else Zt.select(Hi)}}else if(Tt.key==="Down")if(ln.isTreeExpanded&&!ln.isTreeLeaf){var An=this._sortTreeChildrenByY(ln).first();An!==null&&Zt.select(An)}else for(;ln!==null;){var Hi=ln.findTreeParentNode();if(Hi===null)break;var gr=this._sortTreeChildrenByY(Hi),sr=gr.indexOf(ln);if(sr<gr.length-1){Zt.select(gr.elt(sr+1));break}else ln=Hi}var qr=Zt.selection.first();qr!==null&&Zt.scrollToRect(qr.actualBounds)}},ht.prototype._sortTreeChildrenByY=function(Zt){var ln=new go.List().addAll(Zt.findTreeChildrenNodes());return ln.sort(function(Tt,An){var Hi=Tt.location,gr=An.location;return Hi.y<gr.y?-1:Hi.y>gr.y?1:Hi.x<gr.x?-1:Hi.x>gr.x?1:0}),ln},ht.prototype.copyToClipboard=function(Zt){go.CommandHandler.prototype.copyToClipboard.call(this,Zt),this._lastPasteOffset.set(this.pasteOffset)},ht.prototype.pasteFromClipboard=function(){var Zt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Zt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Zt},Object.defineProperty(ht.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Zt){if(Zt!=="move"&&Zt!=="select"&&Zt!=="scroll"&&Zt!=="tree"&&Zt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Zt);this._arrowKeyBehavior=Zt}}),Object.defineProperty(ht.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Zt){if(!(Zt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Zt);this._pasteOffset.set(Zt)}});var un=ht,Sn=we(37404),Dn=we(43604),kn=we(70635),ii={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Hn=we(59301),Di=(Zt,ln,Tt)=>new Promise((An,Hi)=>{var gr=Ti=>{try{Rn(Tt.next(Ti))}catch(qr){Hi(qr)}},sr=Ti=>{try{Rn(Tt.throw(Ti))}catch(qr){Hi(qr)}},Rn=Ti=>Ti.done?An(Ti.value):Promise.resolve(Ti.value).then(gr,sr);Rn((Tt=Tt.apply(Zt,ln)).next())});function hn({onCancel:Zt,callback:ln}){let Tt=(0,ce.useRef)(),An=(0,ce.useRef)(),Hi=(0,ce.useRef)(),gr=(0,ce.useRef)(!1);const sr=(0,ce.useRef)(!1),[Rn,Ti]=(0,ce.useState)(0);function qr(){const di=mt.bx.make,Ot={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"};Tt.current=new mt.S0(An.current,{padding:20,grid:di(mt.s_,"Grid",di(mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),di(mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bt=>{var Ht=Bt.diagram.commandHandler.addTopLevelParts(Bt.diagram.selection,!0);Ht||Bt.diagram.currentTool.doCancel()},commandHandler:di(un),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bt=>{var Ht=Bt.subject;Ht.location=Ht.location.copy().snapToGridPoint(Bt.diagram.grid.gridOrigin,Bt.diagram.grid.gridCellSize),setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Bt=>{var Ht=Bt.subject;setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bt=>{var Ht=Bt.parameter.part;Ht.invalidateConnectedLinks();var pn=Bt.subject;Bt.diagram.toolManager.linkingTool.isForwards?pn.toNode.invalidateConnectedLinks():pn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Tt.current.nodeTemplate=di(mt.NB,"Auto",{locationSpot:mt.z6.Center,locationObjectName:"SHAPE",desiredSize:new mt.$u(120,60),minSize:new mt.$u(40,40),resizable:!0,resizeCellSize:new mt.$u(10,10),rotatable:!0},new mt.KX("location","loc",mt.E9.parse).makeTwoWay(mt.E9.stringify),new mt.KX("desiredSize","size",mt.$u.parse).makeTwoWay(mt.$u.stringify),di(mt.bn,{name:"SHAPE",fill:Ot.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:mt.z6.AllSides,toSpot:mt.z6.AllSides},new mt.KX("figure"),new mt.KX("fill"),new mt.KX("stroke","borderColor"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),di(mt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),di(mt.al,{margin:1,textAlign:"center",overflow:mt.al.OverflowEllipsis,editable:!0},new mt.KX("text").makeTwoWay(),new mt.KX("stroke","color"))),Tt.current.nodeTemplate.toolTip=di("ToolTip",di(mt.s_,"Vertical",{maxSize:new mt.$u(200,NaN)},di(mt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new mt.KX("text")),di(mt.al,{font:"10pt sans-serif",textAlign:"center"},new mt.KX("text","details"))));function Ii(Bt,Ht){var pn=(zt,li)=>{zt.handled=!0,zt.diagram.model.commit(ir=>{var cr=li.part.adornedPart,ri=new mt.E9().setRectSpot(cr.actualBounds,Bt);ri.subtract(cr.location),ri.scale(2,2),ri.x+=Math.sign(ri.x)*130,ri.y+=Math.sign(ri.y)*130,ri.add(cr.location),ri.snapToGridPoint(zt.diagram.grid.gridOrigin,zt.diagram.grid.gridCellSize);var Ei=ir.copyNodeData(cr.data);ir.setGroupKeyForNodeData(Ei,ir.getGroupKeyForNodeData(cr.data)),ir.addNodeData(Ei);var Xn={from:cr.key,to:ir.getKeyForNodeData(Ei)};ir.addLinkData(Xn);var tn=zt.diagram.findNodeForData(Ei);tn.location=ri,zt.diagram.select(tn),setTimeout(()=>{zt.diagram.commandHandler.editTextBlock()},20)})};return di(mt.bn,{figure:Ht,alignment:Bt,alignmentFocus:Bt.opposite(),width:Bt.equals(mt.z6.Top)||Bt.equals(mt.z6.Bottom)?25:18,height:Bt.equals(mt.z6.Top)||Bt.equals(mt.z6.Bottom)?18:25,fill:"orange",stroke:Ot.white,strokeWidth:4,mouseEnter:(zt,li)=>li.fill="dodgerblue",mouseLeave:(zt,li)=>li.fill="orange",isActionable:!0,click:pn,contextClick:pn})}function xn(Bt){return di(mt.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:(Ht,pn)=>pn.fill="dodgerblue",mouseLeave:(Ht,pn)=>pn.fill="orange",click:(Ht,pn)=>{Ht.diagram.commandHandler.showContextMenu(pn.part.adornedPart)}},Bt||{})}Tt.current.nodeTemplate.selectionAdornmentTemplate=di(mt.uz,"Spot",di(mt.Vm,{padding:10}),Ii(mt.z6.Top,"TriangleUp"),Ii(mt.z6.Left,"TriangleLeft"),Ii(mt.z6.Right,"TriangleRight"),Ii(mt.z6.Bottom,"TriangleDown"),xn({alignment:new mt.z6(.75,0)}));function jn(Bt,Ht){return(pn,zt)=>{pn.handled=!0,pn.diagram.model.commit(li=>{li.set(zt.part.adornedPart.data,Bt,Ht)})}}function Ft(Bt,Ht){return Ht||(Ht="color"),di(mt.bn,{width:16,height:16,stroke:"lightgray",fill:Bt,margin:1,background:"transparent",mouseEnter:(pn,zt)=>zt.stroke="dodgerblue",mouseLeave:(pn,zt)=>zt.stroke="lightgray",click:jn(Ht,Bt),contextClick:jn(Ht,Bt)})}function bt(){return[di("ContextMenuButton",di(mt.s_,"Horizontal",Ft(Ot.white,"fill"),Ft(Ot.beige,"fill"),Ft(Ot.extralightblue,"fill"),Ft(Ot.extralightred,"fill"))),di("ContextMenuButton",di(mt.s_,"Horizontal",Ft(Ot.lightgray,"fill"),Ft(Ot.lightgreen,"fill"),Ft(Ot.lightblue,"fill"),Ft(Ot.lightred,"fill")))]}function rn(){return[di("ContextMenuButton",di(mt.s_,"Horizontal",Ft(Ot.black),Ft(Ot.green),Ft(Ot.blue),Ft(Ot.red))),di("ContextMenuButton",di(mt.s_,"Horizontal",Ft(Ot.white),Ft(Ot.magenta),Ft(Ot.purple),Ft(Ot.orange)))]}function Sr(Bt,Ht){return Ht||(Ht="thickness"),di(mt.bn,"LineH",{width:16,height:16,strokeWidth:Bt,margin:1,background:"transparent",mouseEnter:(pn,zt)=>zt.background="dodgerblue",mouseLeave:(pn,zt)=>zt.background="transparent",click:jn(Ht,Bt),contextClick:jn(Ht,Bt)})}function ki(Bt,Ht){return Ht||(Ht="dash"),di(mt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bt,margin:1,background:"transparent",mouseEnter:(pn,zt)=>zt.background="dodgerblue",mouseLeave:(pn,zt)=>zt.background="transparent",click:jn(Ht,Bt),contextClick:jn(Ht,Bt)})}function Ni(){return[di("ContextMenuButton",di(mt.s_,"Horizontal",Sr(1),Sr(2),Sr(3),Sr(4))),di("ContextMenuButton",di(mt.s_,"Horizontal",ki(null),ki([2,4]),ki([4,4])))]}function qn(Bt,Ht){return Ht||(Ht="figure"),di(mt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bt,margin:1,background:"transparent",mouseEnter:(pn,zt)=>zt.fill="dodgerblue",mouseLeave:(pn,zt)=>zt.fill="lightgray",click:jn(Ht,Bt),contextClick:jn(Ht,Bt)})}Tt.current.nodeTemplate.contextMenu=di("ContextMenu",di("ContextMenuButton",di(mt.s_,"Horizontal",qn("Rectangle"),qn("RoundedRectangle"),qn("Ellipse"),qn("Diamond"))),di("ContextMenuButton",di(mt.s_,"Horizontal",qn("Parallelogram2"),qn("ManualOperation"),qn("Procedure"),qn("Cylinder1"))),di("ContextMenuButton",di(mt.s_,"Horizontal",qn("Terminator"),qn("CreateRequest"),qn("Document"),qn("TriangleDown"))),bt(),rn(),Ni()),Tt.current.groupTemplate=di(mt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:mt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bt,Ht)=>{var pn=Ht.addMembers(Ht.diagram.selection,!0);pn||Ht.diagram.currentTool.doCancel()},avoidable:!1},new mt.KX("location","loc",mt.E9.parse).makeTwoWay(mt.E9.stringify),di(mt.s_,"Auto",{name:"BODY"},di(mt.bn,{parameter1:10,fill:Ot.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:mt.z6.AllSides,toSpot:mt.z6.AllSides},new mt.KX("fill"),new mt.KX("stroke","color"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),di(mt.Vm,{background:"transparent",margin:20})),di(mt.al,{alignment:mt.z6.Top,alignmentFocus:mt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new mt.KX("text"),new mt.KX("stroke","color"))),Tt.current.groupTemplate.selectionAdornmentTemplate=di(mt.uz,"Spot",di(mt.s_,"Auto",di(mt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),di(mt.Vm,{margin:1.5})),xn({alignment:mt.z6.TopRight,alignmentFocus:mt.z6.BottomRight})),Tt.current.groupTemplate.contextMenu=di("ContextMenu",bt(),rn(),Ni()),Tt.current.linkTemplate=di(mt.rU,{layerName:"Foreground",routing:mt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new mt.KX("fromSpot","fromSpot",mt.z6.parse),new mt.KX("toSpot","toSpot",mt.z6.parse),new mt.KX("fromShortLength","dir",Bt=>Bt>=1?10:0),new mt.KX("toShortLength","dir",Bt=>Bt>=1?10:0),new mt.KX("points").makeTwoWay(),di(mt.bn,{strokeWidth:2},new mt.KX("stroke","color"),new mt.KX("strokeWidth","thickness"),new mt.KX("strokeDashArray","dash")),di(mt.bn,{segmentIndex:0,segmentOffset:new mt.E9(15,0),segmentOrientation:mt.rU.OrientAlong,alignmentFocus:mt.z6.Right,figure:"circle",width:10,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",Bt=>Bt===1)),di(mt.bn,{segmentIndex:-1,segmentOffset:new mt.E9(-10,6),segmentOrientation:mt.rU.OrientPlus90,alignmentFocus:mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",Bt=>Bt>=1),new mt.KX("width","thickness",Bt=>7+3*Bt),new mt.KX("height","thickness",Bt=>7+3*Bt),new mt.KX("segmentOffset","thickness",Bt=>new mt.E9(-15,4+1.5*Bt))),di(mt.bn,{segmentIndex:0,segmentOffset:new mt.E9(15,-6),segmentOrientation:mt.rU.OrientMinus90,alignmentFocus:mt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new mt.KX("fill","color"),new mt.KX("visible","dir",Bt=>Bt===2),new mt.KX("width","thickness",Bt=>7+3*Bt),new mt.KX("height","thickness",Bt=>7+3*Bt),new mt.KX("segmentOffset","thickness",Bt=>new mt.E9(-15,4+1.5*Bt))),di(mt.al,{alignmentFocus:new mt.z6(0,1,-4,0),editable:!0},new mt.KX("text").makeTwoWay(),new mt.KX("stroke","color"))),Tt.current.linkTemplate.selectionAdornmentTemplate=di(mt.uz,di(mt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Wi(2)},new mt.KX("pathPattern","thickness",Wi)),xn({alignmentFocus:new mt.z6(0,0,-6,-4)}));function Wi(Bt){return di(mt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bt+4).toString()+" H3"})}function Hr(Bt){var Ht="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bt===0?Ht="M0 0 M16 16 M0 8 L16 8":Bt===2&&(Ht="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),di(mt.bn,{geometryString:Ht,margin:2,background:"transparent",mouseEnter:(pn,zt)=>zt.background="dodgerblue",mouseLeave:(pn,zt)=>zt.background="transparent",click:jn("dir",Bt),contextClick:jn("dir",Bt)})}function no(Bt){var Ht=(pn,zt)=>{pn.handled=!0,pn.diagram.model.commit(li=>{var ir=zt.part.adornedPart;li.set(ir.data,Bt?"toSpot":"fromSpot",mt.z6.stringify(mt.z6.AllSides)),(Bt?ir.toNode:ir.fromNode).invalidateConnectedLinks()})};return di(mt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(pn,zt)=>zt.background="dodgerblue",mouseLeave:(pn,zt)=>zt.background="transparent",click:Ht,contextClick:Ht})}function vi(Bt,Ht){var pn=0,zt=mt.z6.RightSide;Bt.equals(mt.z6.Top)?(pn=270,zt=mt.z6.TopSide):Bt.equals(mt.z6.Left)?(pn=180,zt=mt.z6.LeftSide):Bt.equals(mt.z6.Bottom)&&(pn=90,zt=mt.z6.BottomSide),Ht||(pn-=180);var li=(ir,cr)=>{ir.handled=!0,ir.diagram.model.commit(ri=>{var Ei=cr.part.adornedPart;ri.set(Ei.data,Ht?"toSpot":"fromSpot",mt.z6.stringify(zt)),(Ht?Ei.toNode:Ei.fromNode).invalidateConnectedLinks()})};return di(mt.bn,{alignment:Bt,alignmentFocus:Bt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:pn,background:"transparent",mouseEnter:(ir,cr)=>cr.background="dodgerblue",mouseLeave:(ir,cr)=>cr.background="transparent",click:li,contextClick:li})}Tt.current.linkTemplate.contextMenu=di("ContextMenu",rn(),Ni(),di("ContextMenuButton",di(mt.s_,"Horizontal",Hr(0),Hr(1),Hr(2))),di("ContextMenuButton",di(mt.s_,"Horizontal",di(mt.s_,"Spot",no(!1),vi(mt.z6.Top,!1),vi(mt.z6.Left,!1),vi(mt.z6.Right,!1),vi(mt.z6.Bottom,!1)),di(mt.s_,"Spot",{margin:new mt.Zt(0,0,0,2)},no(!0),vi(mt.z6.Top,!0),vi(mt.z6.Left,!0),vi(mt.z6.Right,!0),vi(mt.z6.Bottom,!0)))));const Ji=`{ "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 Aa=["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 uo(Bt){return console.log("shapeName:",Bt),Aa.indexOf(Bt)>=0}var Ir=new mt.YI(Hi.current,{maxSelectionCount:1,linkTemplate:di(mt.rU,{locationSpot:mt.z6.Center,selectionAdornmentTemplate:di(mt.uz,"Link",{locationSpot:mt.z6.Center},di(mt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),di(mt.bn,{toArrow:"Standard",stroke:null}))},{routing:mt.rU.AvoidsNodes,curve:mt.rU.JumpOver,corner:5,toShortLength:4},new mt.KX("points"),di(mt.bn,{isPanelMain:!0,strokeWidth:2}),di(mt.bn,{toArrow:"Standard",stroke:null})),model:new mt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...mt.bn.getFigureGenerators().toArray().map(Bt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Bt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Tt.current.addDiagramListener("TextEdited",function(Bt){var Ht;const pn=Bt.subject.part;var zt=(Ht=document.activeElement)==null?void 0:Ht.value;typeof zt=="string"&&zt.trim()===""&&Tt.current.model.commit(function(li){li.set(pn.data,"text","\u672A\u547D\u540D"),Tt.current.commandHandler.stopCommand()},"increment")}),Ir.nodeTemplate=di(mt.NB,"Auto",{locationSpot:mt.z6.Center},new mt.KX("location","location",mt.E9.parse).makeTwoWay(mt.E9.stringify),di(mt.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 mt.KX("stroke").makeTwoWay(),new mt.KX("fill").makeTwoWay(),new mt.KX("figure")),di(mt.al,{margin:new mt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new mt.$u(16,16),maxSize:new mt.$u(10,NaN),textAlign:"center",editable:!0},new mt.KX("key").makeTwoWay())),setTimeout(()=>{Tt.current.grid=di(mt.s_,"Grid",di(mt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),di(mt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Tt.current.grid.visible=!0,Tt.current.grid.gridCellStroke="darkgray",Tt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Tt.current,Tt.current}const _r=()=>Di(this,null,function*(){var di=Tt.current.makeImage();const Ot=yield(0,kn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:di.src}});ln({src:Ot.url})});return(0,ce.useEffect)(()=>(setTimeout(()=>{qr()},500),Ti(Rn+1),()=>{Tt.current=null}),[]),Hn.createElement("div",{ref:sr,className:gr.current?`${ii.maxH60} body-overflow-initial`:"body-overflow-initial"},Hn.createElement(gn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Rn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Hn.createElement(Ln.Z,null,Hn.createElement(Dn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Hn.createElement(Dn.Z,{onClick:()=>{var di,Ot,Ii=Tt.current.selection.first();if(gr.current=!gr.current,document.activeElement&&Ii){let xn=(Ot=(di=document.activeElement)==null?void 0:di.value)==null?void 0:Ot.trim();typeof xn=="string"&&Tt.current.model.commit(function(jn){jn.set(Ii.data,"text",xn||"\u672A\u547D\u540D"),Tt.current.commandHandler.stopCommand()},"increment")}Ti(Rn+1)}},Hn.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Zt},Hn.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ii.flowChartWrp},Hn.createElement("div",{style:{display:"flex",height:"100%"}},Hn.createElement("div",{style:{width:"300px",height:"100%"}},Hn.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Hn.createElement("div",{style:{height:"calc(100% - 50px)"},className:ii.myPaletteDiv,ref:Hi})),Hn.createElement("div",{style:{flex:1,position:"relative"}},Hn.createElement("div",{ref:An,style:{height:"80vh"}}))),Hn.createElement("div",{className:"tr"},Hn.createElement(wt.ZP,{size:"large",onClick:_r,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var rt=hn,Pt=we(5112),_t=we(88897);const We=Pt.ZP.Group,Ce={margin:"0 8px"};var Ee=({callback:Zt,onCancel:ln})=>{function Tt(An){Zt(An)}return ce.createElement(vt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},ce.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ce.createElement("span",{style:Ce},"\u5355\u5143\u683C\u6570\uFF1A"),ce.createElement("span",{style:Ce},"\u884C\u6570"),ce.createElement(vt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ce.createElement(_t.Z,null)),ce.createElement("span",{style:Ce},"\u5217\u6570"),ce.createElement(vt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ce.createElement(_t.Z,null))),ce.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ce.createElement("span",{style:Ce},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ce.createElement(vt.default.Item,{name:"align"},ce.createElement(We,null,ce.createElement(Pt.ZP,{value:"default"},ce.createElement("i",{className:"fa fa-align-justify"})),ce.createElement(Pt.ZP,{value:"left"},ce.createElement("i",{className:"fa fa-align-left"})),ce.createElement(Pt.ZP,{value:"center"},ce.createElement("i",{className:"fa fa-align-center"})),ce.createElement(Pt.ZP,{value:"right"},ce.createElement("i",{className:"fa fa-align-right"}))))),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(wt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(wt.ZP,{type:"ghost",onClick:ln},"\u53D6\u6D88")))},Ie=we(78673),Ke=we(98598),Le=we.n(Ke),dn=(0,ce.forwardRef)(({use3d:Zt,width:ln,height:Tt,callback:An,showSaveButton:Hi},gr)=>{const sr=(0,ce.useRef)(),Rn=(0,ce.useRef)(),[Ti,qr]=(0,ce.useState)(!1),_r=(0,ce.useRef)({id:sr,appName:"graphing",width:ln||1e3,height:Tt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ce.useEffect)(()=>{Rn.current=new(Le())(_r.current,!0),window.onload=function(){Rn.current.inject("applet_container")}},[]);const di=()=>{var Ot=window.ggbApplet.getPNGBase64(1,!0,72);return An&&An(Ot),Ot};return(0,ce.useEffect)(()=>{_r.current.appName=Ti?"3D":"graphing",Rn.current.inject("applet_container")},[Ti]),(0,ce.useEffect)(()=>{qr(Zt)},[Zt]),(0,ce.useImperativeHandle)(gr,()=>({getImgData:di})),ce.createElement(ce.Fragment,null,ce.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:sr}),ce.createElement(Ln.Z,{align:"middle"},ce.createElement(Dn.Z,{flex:1},ce.createElement(Ie.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ti,onChange:Ot=>qr(Ot)})),ce.createElement(Dn.Z,null,ce.createElement(wt.ZP,{size:"large",onClick:di,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),sn=we(75890),en=we(8591);const Xt="link",ai="upload-image",Bn="add-flowchart",In="draw-image",Yi="add-flowchart",fi="code-block",ar="add-table",io="------------",jo={default:io,left:`:${io}`,center:`:${io}:`,right:`${io}:`};var bo=we(91300);function Mr(){}let _o=0;const Bo=1e4,yo="\u2581",ho="@\u2581\u2581@",Tr="@\u2581@",Be=`
|
|
**\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`,ua=["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 eo(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}const Oi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ri={[Oi+"-B"]:"bold",[Oi+"-I"]:"italic"},ci={[Xt]:"\u6DFB\u52A0\u94FE\u63A5",[fi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ai]:"\u6DFB\u52A0\u56FE\u7247",[In]:"\u6DFB\u52A0\u753B\u56FE",[Bn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ar]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Un=({defaultValue:Zt="",onChange:ln,width:Tt="100%",height:An=400,miniToolbar:Hi=!1,isFocus:gr=!1,watch:sr,insertTemp:Rn,mode:Ti="markdown",id:qr="markdown-editor-id",showResizeBar:_r=!1,noStorage:di=!1,showNullButton:Ot=!1,showNullProgramButton:Ii=!1,hidetoolBar:xn=!1,fullScreen:jn=!1,onBlur:Ft,onCMBeforeChange:bt,onFullScreen:rn,className:Sr="",disablePaste:ki=!1,disabled:Ni=!1,disabledFill:qn=!1,placeholder:Wi="",values:Hr="",extraUse:no})=>{const[vi,Ji]=(0,ce.useState)(null),[Aa,uo]=(0,ce.useState)(Zt),[Ir,Bt]=(0,ce.useState)(sr),[Ht,pn]=(0,ce.useState)(jn),[zt,li]=(0,ce.useState)(""),[ir,cr]=(0,ce.useState)(0),[ri,Ei]=(0,ce.useState)(An),[Xn,tn]=(0,ce.useState)(!1),[Jr,Tn]=(0,ce.useState)(0),[zr,Or]=(0,ce.useState)(0),ur=(0,ce.useRef)(),ko=(0,ce.useRef)(),Zr=(0,ce.useRef)(),Gi=(0,ce.useRef)();(0,ce.useEffect)(()=>{const Rr=window.scrollY||window.pageYOffset;uo(Hr),vi==null||vi.setValue(Hr),window.scrollTo(0,Rr)},[Hr]),(0,ce.useEffect)(()=>{rn==null||rn(Ht)},[Ht]),(0,ce.useEffect)(()=>{if(ur.current){let Rr=function(Eo,oi){var Na;if(ki){oi.preventDefault();return}const qa=oi.clipboardData;if(qa){const tl=qa.types.toString(),Ta=qa.items;if(tl==="Files"||qa.types.indexOf("Files")>-1){if(oi.preventDefault(),Ti=="stex")return;try{let sa=Ta[1];((Na=Ta[0])==null?void 0:Na.kind)==="file"&&(sa=Ta[0]);const Oa=sa.getAsFile(),nl=Oa.name.split(".").pop();(0,nn.I)(Oa,Qt=>{var Su,Ia,qt;Qt.id?((Su=Oa==null?void 0:Oa.type)==null?void 0:Su.indexOf("image"))>-1?yr.replaceSelection(``):((Ia=Oa==null?void 0:Oa.type)==null?void 0:Ia.indexOf("video"))>-1?yr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qt.id}"></video>`):((qt=Oa==null?void 0:Oa.type)==null?void 0:qt.indexOf("pdf"))>-1?yr.replaceSelection(`<a href="/api/attachments/${Qt.id}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):ua.includes(nl)?yr.replaceSelection(`<a href="/api/attachments/${Qt.id}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):yr.replaceSelection(`[${Oa.name}](/api/attachments/${Qt.id}?type=${Qt.content_type})`):(Qt==null?void 0:Qt.status)===401&&(document.location.href="/user/login")})}catch(sa){en.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yr=Lt().fromTextArea(ur.current,{mode:Ti,lineNumbers:!Hi,lineWrapping:!0,value:Zt,autoCloseTags:!0,autoCloseBrackets:!0});return yr.on("keyup",function(Eo,oi){oi.keyCode===8&&(Eo.getValue()==""?yr.setOption("placeholder",Wi):yr.setOption("placeholder",null))}),yr.on("keydown",function(Eo,oi){if(oi.keyCode===8){var Na=ro(Eo);Na&&oi.preventDefault()}}),gr&&yr.focus(),yr.on("paste",Rr),Ni&&yr.on("beforeChange",function(Eo,oi){(oi.origin==="paste"||oi.origin==="+input")&&oi.cancel()}),Ji(yr),()=>{yr.off("paste",Rr)}}},[]);const Er=(0,ce.useCallback)(()=>{if(ko.current)try{}catch(Rr){console.log(Rr,"---- to set md editor body height")}},[ri,ko,Ht]);(0,ce.useEffect)(()=>{function Rr(){let yr=new kt.Z(Eo=>{for(let oi of Eo)(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&(Er(),vi.setSize("100%","100%"),vi.refresh())});return yr.observe(ur.current.parentElement),yr}if(vi){const yr=Rr();return()=>{var Eo,oi;(Eo=ur.current)!=null&&Eo.parentElement&&yr.unobserve((oi=ur.current)==null?void 0:oi.parentElement)}}},[vi,Er]),(0,ce.useEffect)(()=>{if(vi){let Rr=[];for(const[yr,Eo]of Object.entries(Ri)){let oi={[yr]:()=>{Fn(Eo)}};Rr.push(oi),vi.addKeyMap(oi)}return()=>{for(let yr of Rr)vi.removeKeyMap(yr)}}},[vi]),(0,ce.useEffect)(()=>{jn!==Ht&&pn(jn)},[jn]),(0,bo.Z)(()=>{if(!di&&ir>0){let Rr=new Date().getTime(),yr=window.sessionStorage.getItem(qr);Rr>=ir+Bo&&(!yr||yr!==Aa)&&(window.sessionStorage.setItem(qr,Aa),tn(!0))}},Bo),(0,ce.useEffect)(()=>{Bt(sr)},[vi,sr]),(0,ce.useEffect)(()=>{vi&&gr&&vi.focus()},[vi,gr]),(0,ce.useEffect)(()=>{if(Ir&&vi){let Rr=function(Eo){let oi=Eo.target;if(Gi.current){let Na=oi.scrollTop/oi.scrollHeight;Gi.current.scrollTop=Gi.current.scrollHeight*Na}};const yr=vi.getScrollerElement();return yr.addEventListener("scroll",Rr),()=>{yr.removeEventListener("scroll",Rr)}}},[vi,Ir]),(0,ce.useEffect)(()=>{if(vi&&bt){let Rr=function(yr,Eo){bt(yr,Eo)};return vi.on("beforeChange",Rr),()=>{vi.off("beforeChange",Rr)}}},[vi,bt]),(0,ce.useEffect)(()=>{if(vi&&Ft){let Rr=function(){Ft(vi.getValue())};return vi.on("blur",Rr),()=>{vi.off("blur",Rr)}}},[vi,Ft]);function ro(Rr,yr){var Eo=Rr.getDoc(),oi=Eo.getCursor(),Na=Eo.getLine(oi.line),qa=Na.charAt(oi.ch-1),tl=Na.lastIndexOf("@\u2581@",oi.ch),Ta=Na.lastIndexOf("@\u2581\u2581@",oi.ch),sa=tl>Ta?tl:Ta,Oa=tl>Ta?3:4;if(ho.indexOf(qa)===-1)return null;if(console.log("change1:",yr,Rr,Na,oi,sa,tl,Ta,qa),sa>=0&&oi.ch-sa<5){var nl=sa+Oa;return Eo.replaceRange("",{line:oi.line,ch:sa},{line:oi.line,ch:nl}),{line:oi.line,ch:nl}}return null}(0,ce.useEffect)(()=>{if(vi){let Rr=function(yr,Eo){const oi=yr.getValue();uo(oi),cr(new Date().getTime()),yr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ln&&(Ii?ln(oi,qo(oi)):ln(oi))};return vi.on("change",Rr),()=>{vi.off("change",Rr)}}},[vi,ln]),(0,ce.useEffect)(()=>{if(vi)if(Zt==null)vi.setValue(""),uo("");else{const Rr=window.scrollY||window.pageYOffset;Zt!==vi.getValue()&&(vi.setValue(Zt),uo(Zt),vi.setCursor(Ni?1:vi.lineCount(),0),window.scrollTo(0,Rr))}},[vi,Zt]);const Fn=(0,ce.useCallback)(Rr=>{const yr=vi.getCursor(),Eo=vi.getSelection();let oi=Eo.split(`
|
|
`);switch(Rr){case"bold":return vi.replaceSelection("**"+Eo+"**"),Eo===""&&vi.setCursor(yr.line,yr.ch+2),vi.focus();case"italic":return vi.replaceSelection("*"+Eo+"*"),Eo===""&&vi.setCursor(yr.line,yr.ch+1),vi.focus();case"code":return vi.replaceSelection("`"+Eo+"`"),Eo===""&&vi.setCursor(yr.line,yr.ch+1),vi.focus();case"inline-latex":return li("inline-latex"),vi.focus();case"latex":return vi.replaceSelection("```latex\n"+Eo+"\n```"),vi.setCursor(yr.line+1,Eo.length+1),vi.focus();case"line-break":return vi.replaceSelection(`<br/>
|
|
`),vi.focus();case"list-ul":return Eo===""?vi.replaceSelection("- "+Eo):vi.replaceSelection(oi.map(Na=>Na===""?"":`- ${Na}`).join(`
|
|
`)),vi.focus();case"list-ol":return Eo===""?vi.replaceSelection("1. "+Eo):vi.replaceSelection(oi.map((Na,qa)=>Na===""?"":`${qa+1}. ${Na}`).join(`
|
|
`)),vi.focus();case"add-null-ch":return Eo===""&&vi.setCursor(yr.line,yr.ch),vi.replaceSelection(yo),vi.focus();case"add-signal":return Eo===""&&vi.setCursor(yr.line,yr.ch),vi.replaceSelection(Tr),vi.focus();case"add-multiple":return Eo===""&&vi.setCursor(yr.line,yr.ch),vi.replaceSelection(ho),vi.focus();case"inster-template-1":return Eo===""&&vi.setCursor(yr.line,yr.ch),vi.replaceSelection(Be),vi.focus();case"eraser":return vi.setValue(""),vi.focus();case"trigger-watch":return Bt(!Ir),vi.focus();case"trigger-full-screen":return pn(!Ht),vi.focus();case Xt:li(Xt);return;case fi:li(fi);return;case ai:li(ai);return;case In:li(In);return;case"maths-latex":li("maths-latex");return;case Bn:li(Bn);return;case ar:li(ar);return;default:throw new Error}},[vi,Ir,Ht]),ti=(0,ce.useCallback)((Rr,yr)=>{var Eo,oi,Na,qa,tl,Ta;switch(li(""),zt){case Xt:const{title:Su,link:Ia}=Rr;return vi.replaceSelection(`[${Su}](${Ia})`),vi.focus();case fi:const{language:qt,content:ys}=Rr;return vi.replaceSelection(["```"+qt,ys,"```"].join(`
|
|
`)),vi.focus();case"maths-latex":for(var sa=atob(Rr),Oa=new Uint8Array(sa.length),nl=0;nl<sa.length;nl++)Oa[nl]=sa.charCodeAt(nl);var Qt=new Blob([Oa],{type:"image/png"});(0,nn.I)(Qt,ku=>{ku.id?vi.replaceSelection(``):(ku==null?void 0:ku.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":vi.replaceSelection("`$$"+Rr+"$$`");break;case ai:case In:case Yi:const{src:Tl,alt:Ol}=Rr,ws=yr,Ss=(Na=(oi=(Eo=ws==null?void 0:ws.name)==null?void 0:Eo.split("."))==null?void 0:oi.pop)==null?void 0:Na.call(oi);return((qa=ws==null?void 0:ws.type)==null?void 0:qa.indexOf("image"))>-1||!(ws!=null&&ws.type)?Ol?vi.replaceSelection(``):vi.replaceSelection(``):((tl=ws==null?void 0:ws.type)==null?void 0:tl.indexOf("video"))>-1?vi.replaceSelection(`<video width="100%" controls src="${Tl}"></video>`):((Ta=ws==null?void 0:ws.type)==null?void 0:Ta.indexOf("pdf"))>-1?vi.replaceSelection(`<a href="${Tl}?type=${ws.type}&disposition=inline" target="_blank">${ws.name}</a>`):ua.includes(Ss)?vi.replaceSelection(`<a href="${Tl}?type=office&disposition=inline" target="_blank">${ws.name}</a>`):vi.replaceSelection(`[${ws.name}](${Tl})`),vi.focus();case ar:const{row:eu,col:il,align:os}=Rr;let rl=`
|
|
`;for(let ku=0;ku<eu;ku++){let hc=[],cu=[];for(let Nu=0;Nu<il;Nu++)ku===1&&cu.push(jo[os]),hc.push(" ");ku===1&&(rl+=`| ${cu.join(" | ")} |
|
|
`),rl+=`| ${hc.join(il===1?"":" | ")} |
|
|
`}return vi.replaceSelection(rl+`
|
|
`),vi.focus();default:throw new Error}},[vi,zt]),Ue=(0,ce.useMemo)(()=>{switch(zt){case Xt:return ce.createElement(Zn,{callback:ti,onCancel:fo});case fi:return ce.createElement(Qn.Z,{callback:ti,onCancel:fo});case ai:return ce.createElement(nn.Z,{callback:ti,onCancel:fo});case Bn:return ce.createElement(rt,{callback:ti,onCancel:fo});case ar:return ce.createElement(Ee,{callback:ti,onCancel:fo});case"maths-latex":return ce.createElement(dn,{showSaveButton:!0,callback:ti});case"inline-latex":return ce.createElement(sn.Z,{showSaveButton:!0,callback:ti});default:return null}},[zt]);function fo(){li("")}(0,ce.useEffect)(()=>{if(Zr.current){let Rr=function(tl){Na=!0,qa=tl.pageY},yr=function(){Na=!1},Eo=function(tl){if(Na){let Ta=tl.pageY-qa;Ta<0&&(Ta=0),Ta>300&&(Ta=300);let sa=An+Ta+"px";Ei(sa)}},oi=Zr.current,Na=!1,qa=0;return oi.addEventListener("mousedown",Rr),document.addEventListener("mousemove",Eo),document.addEventListener("mouseup",yr),()=>{oi.removeEventListener("mousedown",Rr),document.removeEventListener("mousemove",Eo),document.removeEventListener("mouseup",yr)}}},[vi,Zr]),(0,ce.useEffect)(()=>{Ei(An)},[An]);const So=eo(Tt),rr=eo(ri),Xi={width:So,height:rr},Ui=(0,ce.useMemo)(()=>{if(ir){let Rr=new Date(ir),yr=Rr.getHours(),Eo=Rr.getMinutes(),oi=Rr.getSeconds();return yr=yr<10?"0"+yr:yr,Eo=Eo<10?"0"+Eo:Eo,oi=oi<10?"0"+oi:oi,`${yr}:${Eo}:${oi}`}return 0},[ir]),qo=Rr=>{const yr=[];if(Ii){let Eo=-1;Rr=Rr.replace(/(@▁▁@|@▁@)/g,function(oi,Na,qa){yr.push({multiLine:oi!==Tr})})}return yr};function gs(){window.sessionStorage.removeItem(qr),tn(!1),cr(0)}function Ps(){tn(!1),cr(0),vi.setValue(window.sessionStorage.getItem(qr))}(0,ce.useEffect)(()=>{ci[zt]&&zt!==In&&zt!==Bn&&setTimeout(()=>{const Rr=document.getElementsByClassName("markdown-popup-form")[0],yr=window.innerWidth/2-Rr.offsetWidth/2,Eo=window.innerHeight/2-Rr.offsetHeight/2;Tn(yr),Or(Eo)},0)},[zt]);const Ro=Rr=>{Rr.preventDefault();const yr=Rr.clientX-Jr,Eo=Rr.clientY-zr;document.body.onmousemove=oi=>{let Na=oi.clientX-yr,qa=oi.clientY-Eo;const tl=document.getElementsByClassName("markdown-popup-form")[0],Ta=window.innerWidth-tl.offsetWidth,sa=window.innerHeight-tl.offsetHeight;Na=Math.max(0,Math.min(Na,Ta)),qa=Math.max(0,Math.min(qa,sa)),Ho(oi.clientX,oi.clientY,yr,Eo)&&(Tn(Na),Or(qa))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ho=(Rr,yr,Eo,oi)=>{const Na=document.body.clientHeight,qa=document.body.clientWidth;return Rr<20&&Eo>Rr||Rr>qa-20&&Eo<Rr||yr<20&&oi>yr||yr>Na-20&&oi<yr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"markdown-editor-wrapper",ref:ko},ce.createElement("div",{className:`markdown-editor-container ${Sr} ${Ir?"on-preview":""} ${Hi?"mini":""} ${Ht?"full-screen":""}`,style:Xi},ce.createElement(dt,{insertTemp:Rn,watch:Ir,fullScreen:Ht,showNullButton:Ot,showNullProgramButton:Ii,onActionCallback:Fn,hidetoolBar:xn,extraUse:no}),ce.createElement("div",{className:"markdown-editor-body"},ce.createElement("div",{className:"codemirror-container"},ce.createElement("textarea",{ref:ur,placeholder:Wi})),Ir?ce.createElement("div",{ref:Gi,className:"preview-container"},Ti==="stex"&&ce.createElement(Gt,{value:Aa}),Ti!=="stex"&&ce.createElement(xt.Z,{disabledFill:qn,showProgramFill:Ii,value:Aa})):null))),_r?ce.createElement("a",{ref:Zr,className:"editor-resize"}):null,zt===In&&ce.createElement(Ai,{callback:ti,onCancel:fo}),zt===Bn&&ce.createElement(rt,{callback:ti,onCancel:fo}),ce.createElement(yt.Z,null,ci[zt]&&zt!==In&&zt!==Bn?ce.createElement(gn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Jr,top:zr},title:ce.createElement("div",{style:{cursor:"move"},onMouseDown:Ro},ci[zt]),open:!0,onCancel:fo,footer:null,destroyOnClose:!0,width:zt===Bn?"1200px":null,height:zt===Bn?"80vh":null,className:"markdown-popup-form"},Ue):null))}},56701:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return xe},I:function(){return ke}});var ce=we(78241),at=we(8591),Lt=we(92832),kt=we(3113),Dt=we(58788),jt=we(59301),Ge=we(59301),Mt=Object.defineProperty,Ct=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Re=(Me,ot,dt)=>ot in Me?Mt(Me,ot,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Me[ot]=dt,te=(Me,ot)=>{for(var dt in ot||(ot={}))Gt.call(ot,dt)&&Re(Me,dt,ot[dt]);if(xt)for(var dt of xt(ot))Ut.call(ot,dt)&&Re(Me,dt,ot[dt]);return Me},ne=(Me,ot)=>Ct(Me,Et(ot));const{useForm:de}=ce.default,le={width:280,marginRight:10},pe={labelCol:{span:5},wrapperCol:{span:19}};var xe=({callback:Me,onCancel:ot})=>{const[dt]=de();let yt=(0,jt.useRef)();function vt(It){Me(It,yt.current)}function Kt(It,Yt){if(It.status===-1){at.ZP.error(It.message);return}dt.setFieldsValue({src:`/api/attachments/${It.id}`,type:Yt.type})}function wt(It){let Yt=It.target.files[0];yt.current=Yt,ke(Yt,Kt)}return Ge.createElement(ce.default,ne(te({form:dt},pe),{className:"upload-image-panel",onFinish:vt,style:{width:470,overflow:"hidden"}}),Ge.createElement(ce.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ge.createElement("div",{className:"flex-container"},Ge.createElement(ce.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ge.createElement(Lt.default,{style:le})),Ge.createElement(Ae,{onFileChange:wt}))),Ge.createElement(ce.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ge.createElement(Lt.default,{style:{width:264}})),Ge.createElement(ce.default.Item,{style:{textAlign:"right"}},Ge.createElement(kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ge.createElement(kt.ZP,{type:"default",onClick:ot},"\u53D6\u6D88")))};function Ae({onFileChange:Me}){return Ge.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ge.createElement("input",{type:"file",onChange:Me}))}function ke(Me,ot){if(!Me)throw new String("\u6CA1\u6709\u6587\u4EF6");let dt=new FormData;dt.append("editormd-image-file",Me),dt.append("file_param_name","editormd-image-file"),dt.append("byxhr","true");var yt=new window.XMLHttpRequest;yt.withCredentials=!0,yt.addEventListener("load",function(vt){ot(JSON.parse(vt.target.responseText),Me)},!1),yt.addEventListener("error",function(vt){console.error(vt)},!1),yt.open("POST",`${Dt.KI}/api/attachments.json`),yt.send(dt)}},50474:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Lt}});var ce=we(59301),at=we(4676);class Lt extends ce.Component{constructor(Dt){super(Dt);const jt=window.document;this.node=jt.createElement("div"),jt.body.appendChild(this.node)}render(){const{children:Dt}=this.props;return(0,at.createPortal)(Dt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function($t,zn,we){"use strict";we.d(zn,{SV:function(){return hn},ZP:function(){return Di}});var ce=we(59301),at=we(76374);const Lt={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"]},kt={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"]},Dt={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(`
|
|
`)}]},jt={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(`
|
|
`)}]},Ge={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 Mt=we(86061),Ct=we.n(Mt),Et=Object.defineProperty,xt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(rt,Pt,_t)=>Pt in rt?Et(rt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):rt[Pt]=_t,de=(rt,Pt)=>{for(var _t in Pt||(Pt={}))Re.call(Pt,_t)&&ne(rt,_t,Pt[_t]);if(Ut)for(var _t of Ut(Pt))te.call(Pt,_t)&&ne(rt,_t,Pt[_t]);return rt},le=(rt,Pt)=>xt(rt,Gt(Pt)),pe=(rt,Pt,_t)=>new Promise((We,Ce)=>{var Ee=Le=>{try{Ke(_t.next(Le))}catch(st){Ce(st)}},Ie=Le=>{try{Ke(_t.throw(Le))}catch(st){Ce(st)}},Ke=Le=>Le.done?We(Le.value):Promise.resolve(Le.value).then(Ee,Ie);Ke((_t=_t.apply(rt,Pt)).next())});const xe={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"]}},Ae=(rt,Pt)=>Pt.map(_t=>({label:_t,kind:rt.languages.CompletionItemKind.Keyword,insertText:_t})),ke=rt=>Object.keys(xe.tables).map(Pt=>({label:Pt,kind:rt.languages.CompletionItemKind.Variable,insertText:Pt})),Me=(rt,Pt)=>{const _t=xe.tables[rt];return _t?_t.map(We=>({label:We,kind:Pt.languages.CompletionItemKind.Field,insertText:We})):[]};function ot(rt,Pt,_t,We,Ce){let Ee=Pt.getWordUntilPosition(_t),Ie={startLineNumber:_t.lineNumber,endLineNumber:_t.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Ke=We.map(Le=>({label:Le,kind:rt.languages.CompletionItemKind.Keyword,insertText:Le,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ie}));return Ce.map(Le=>{Ke.push(le(de({},Le),{range:Ie}))}),Ke}var dt=rt=>{xe.languages.map(Ce=>(rt.languages.registerDocumentFormattingEditProvider(Ce,{provideDocumentFormattingEdits(Ee,Ie,Ke){return pe(this,null,function*(){const Le=Ct()(Ee.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:Ee.getFullModelRange(),text:Le}]})}}),Ce));const Pt=Dt.quickKey.map(Ce=>({label:Ce.label,kind:rt.languages.CompletionItemKind.Method,insertText:Ce.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),_t=jt.quickKey.map(Ce=>({label:Ce.label,kind:rt.languages.CompletionItemKind.Method,insertText:Ce.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),We=kt.quickKey.map(Ce=>({label:Ce.label,kind:rt.languages.CompletionItemKind.Method,insertText:Ce.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));rt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ce,Ee){var Ie=Ce.getWordUntilPosition(Ee),Ke={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Le=Ce.getLineContent(Ee.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...Dt.keywords.map(st=>({label:st,kind:rt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...Dt.quickKey.map(st=>({label:st.label,kind:rt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),rt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ce,Ee){var Ie=Ce.getWordUntilPosition(Ee),Ke={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn};return{suggestions:[...Lt.keywords.map(Le=>({label:Le,kind:rt.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),rt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ce,Ee){var Ie=Ce.getWordUntilPosition(Ee),Ke={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Le=Ce.getLineContent(Ee.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...kt.keywords.map(st=>({label:st,kind:rt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...kt.quickKey.map(st=>({label:st.label,kind:rt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),rt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ce,Ee){var Ie=Ce.getWordUntilPosition(Ee),Ke={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Le=Ce.getLineContent(Ee.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...Ge.keywords.map(st=>({label:st,kind:rt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...Ge.quickKey.map(st=>({label:st.label,kind:rt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),rt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ce,Ee){var Ie=Ce.getWordUntilPosition(Ee),Ke={startLineNumber:Ee.lineNumber,endLineNumber:Ee.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Le=Ce.getLineContent(Ee.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...jt.keywords.map(st=>({label:st,kind:rt.languages.CompletionItemKind.Function,documentation:st,insertText:st,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...jt.quickKey.map(st=>({label:st.label,kind:rt.languages.CompletionItemKind.Function,documentation:st.content,insertText:Le.startsWith("#")?st.content.replace(/#/,""):st.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}})};const yt="\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,Kt=(rt,Pt,_t)=>Pt in rt?vt(rt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):rt[Pt]=_t,wt=(rt,Pt,_t)=>Kt(rt,typeof Pt!="symbol"?Pt+"":Pt,_t);const It=class bx{constructor(Pt,_t,We){this.placeholder=Pt,this.editor=_t,this.monaco=We,_t.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return bx.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)}};wt(It,"ID","editor.widget.placeholderHint");var yn=It,Mi=we(96236),wi=we(8591),Nn=we(6848),ui=we(89392),tt=we(86766),He=we(56102),mn=Object.defineProperty,Zn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,yi=(rt,Pt,_t)=>Pt in rt?mn(rt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):rt[Pt]=_t,Yn=(rt,Pt)=>{for(var _t in Pt||(Pt={}))gn.call(Pt,_t)&&yi(rt,_t,Pt[_t]);if(nn)for(var _t of nn(Pt))Ln.call(Pt,_t)&&yi(rt,_t,Pt[_t]);return rt},Ai=(rt,Pt)=>Zn(rt,Qn(Pt)),mt=(rt,Pt)=>{var _t={};for(var We in rt)gn.call(rt,We)&&Pt.indexOf(We)<0&&(_t[We]=rt[We]);if(rt!=null&&nn)for(var We of nn(rt))Pt.indexOf(We)<0&&Ln.call(rt,We)&&(_t[We]=rt[We]);return _t},ht=(rt,Pt,_t)=>new Promise((We,Ce)=>{var Ee=Le=>{try{Ke(_t.next(Le))}catch(st){Ce(st)}},Ie=Le=>{try{Ke(_t.throw(Le))}catch(st){Ce(st)}},Ke=Le=>Le.done?We(Le.value):Promise.resolve(Le.value).then(Ee,Ie);Ke((_t=_t.apply(rt,Pt)).next())});function un(rt){return/^\d+$/.test(rt)?`${rt}px`:rt}function Sn(){}let Dn=!1;const kn={"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 ii(rt=[]){let Pt=rt;if(Array.isArray(rt)){for(let _t=0;_t<rt.length;_t++){let We=kn[rt[_t]];if(We)return We}return Pt[0]}return kn[Pt]||Pt}let Hn=null;var Di=rt=>{var Pt=rt,{width:_t="100%",height:We="100%",value:Ce,language:Ee="javascript",style:Ie={},options:Ke={},overrideServices:Le={},theme:st="vs-dark",onEditBlur:dn,isCopy:sn=!1,onSave:en,autoHeight:Xt=!1,forbidCopy:ai=!1,onChange:Bn=Sn,editorDidMount:In=Sn,onFocus:Yi=Sn,onBreakPoint:fi=Sn,breakPointValue:ar=[],filename:io="educoder.txt",errorLine:jo,errorContent:bo="",highlightLine:Mr,openBreakPoint:_o=!1,placeholder:Bo=""}=Pt,yo=mt(Pt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const ho=(0,ce.useRef)(),Tr=(0,ce.useRef)({}),Be=(0,ce.useRef)(),ua=(0,ce.useRef)(),eo=(0,ce.useRef)([]),Wn=(0,ce.useRef)(!1),Oi=(0,ce.useRef)(),Ri=(0,ce.useRef)(),ci=(0,ce.useRef)(!1),[Un,Zt]=(0,ce.useState)(!1);function ln(){let Ft;return ho.current&&(Ft=new at.Z(bt=>{for(let rn of bt)(rn.target.offsetHeight>0||rn.target.offsetWidth>0)&&Tr.current.instance.layout()}),Ft.observe(ho.current)),Ft}function Tt(){wi.ZP.warning({content:decodeURIComponent(yt),key:"monaco-editor-tip"})}const An=()=>{let Ft=Tr.current.instance;if(Ce!=null&&Ft&&Un){const bt=Ft.getModel();bt&&Ce!==bt.getValue()&&(Dn=!0,bt.setValue(Ce),Ft.layout(),Dn=!1)}};(0,ce.useEffect)(()=>{const Ft=tt.Z.subscribe("formatDocument",bt=>{var rn;let Sr=Tr.current.instance;(rn=Sr==null?void 0:Sr.getAction)==null||rn.call(Sr,"editor.action.formatDocument").run()});return window.updateMonacoValue=bt=>{Bn(bt)},Ft},[]),(0,ce.useEffect)(()=>{var Ft;let bt=Tr.current.instance;ua.current&&clearTimeout(ua.current),ua.current=setTimeout(()=>{An()},500),Ce&&(Ce!=null&&Ce.length)&&((Ft=bt==null?void 0:bt.updateOptions)==null||Ft.call(bt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ce.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ce,Un,Tr.current]),(0,ce.useEffect)(()=>{if(jo&&Tr.current&&Tr.current.instance){let bt=Tr.current.instance;bt.changeViewZones(function(rn){var Sr=document.createElement("div");Sr.style.padding="10px 20px",Sr.style.width="calc(100% - 20px)",Sr.className="my-error-line-wrp",Sr.innerHTML=bo,rn.addZone({afterLineNumber:jo||11,heightInLines:3,domNode:Sr})});var Ft={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}};bt.addOverlayWidget(Ft),bt.revealPositionInCenter({lineNumber:20,column:1})}},[jo,Tr.current,Un]);const Hi=(Ft="",bt)=>{if(!Ft||Ft.trim()==="")return!0;const Sr=Tr.current.instance.getModel().getLineTokens(bt);let ki=!1;for(let Ni=0;Ni<2;Ni++)Sr.getStandardTokenType(Ni)===1&&(ki=!0);return ki};(0,ce.useEffect)(()=>{var Ft;const bt=(Ft=Tr.current)==null?void 0:Ft.instance;if(bt&&Un&&ai){const rn=bt.onDidBlurEditorWidget(()=>{ci.current=!1}),Sr=bt.onDidFocusEditorText(()=>{ci.current=!0});return()=>{rn.dispose(),Sr.dispose()}}},[Tr.current,Un,ai]),(0,ce.useEffect)(()=>{var Ft;if((Ft=Tr.current)!=null&&Ft.instance&&Un&&_o){let bt=Tr.current.instance,rn=bt.getModel();if(!rn)return;(()=>{var Ir;let Bt=[],Ht=[];const pn=rn.getAllDecorations();for(let li of pn)li.options.className==="highlighted-line"&&(Bt.push((Ir=li==null?void 0:li.range)==null?void 0:Ir.startLineNumber),Ht.push(li==null?void 0:li.id));if(Mr===Bt[0])return;rn.deltaDecorations(Ht,[]);const zt=rn.getLineCount();Mr&&Mr<=zt&&(bt.deltaDecorations([],[{range:new Hn.Range(Mr,1,Mr,rn.getLineMaxColumn(Mr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),bt.revealLineInCenter(Mr))})();const ki=(Ir=!1)=>{var Bt;let Ht=[],pn=[];const zt=rn.getAllDecorations();for(let li of zt)li.options.linesDecorationsClassName==="breakpoints-select"&&(Ht.push((Bt=li==null?void 0:li.range)==null?void 0:Bt.startLineNumber),pn.push(li==null?void 0:li.id));if(Ir)return{lines:Ht,ids:pn};fi(Ht)},Ni=Ir=>ht(void 0,null,function*(){let Bt={range:new Hn.Range(Ir,1,Ir,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rn.deltaDecorations([],[Bt]),ki()}),qn=Ir=>ht(void 0,null,function*(){let Bt=[];const Ht=bt.getLineDecorations(Ir);for(let pn of Ht)pn.options.linesDecorationsClassName==="breakpoints-select"&&Bt.push(pn.id);yield rn.deltaDecorations(Bt,[]),ki()}),Wi=Ir=>{let Bt=bt.getLineDecorations(Ir);for(let Ht of Bt)if(Ht.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ui.isEqual)(ar,ki(!0).lines)){rn.deltaDecorations(ki(!0).ids,[]);const Ir=ar.map(Bt=>({range:new Hn.Range(Bt,1,Bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rn.deltaDecorations([],Ir)}const Hr=bt.onDidChangeModelContent(Ir=>{let Bt=bt.getPosition();if(Bt){let Ht=Bt.lineNumber;clearTimeout(Ri.current),Ri.current=setTimeout(()=>{Hi(rn.getLineContent(Ht),Ht)?qn(Ht):Wi(Ht)?(qn(Ht),Ni(Ht)):ki()},100)}}),no=bt.onMouseDown(Ir=>{var Bt,Ht,pn;if(Ir.target.detail&&((pn=(Ht=(Bt=Ir.target)==null?void 0:Bt.element)==null?void 0:Ht.className)!=null&&pn.includes("line-numbers"))){let zt=Ir.target.position.lineNumber;if(Hi(rn.getLineContent(zt),zt))return;Wi(zt)?qn(zt):Ni(zt)}}),vi=Ir=>{let Bt={range:new Hn.Range(Ir,1,Ir,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};eo.current=bt.deltaDecorations(eo.current,[Bt])},Ji=()=>{eo.current=bt.deltaDecorations(eo.current,[])},Aa=bt.onMouseMove(Ir=>{var Bt,Ht,pn;if(Ji(),Ir.target.detail&&((pn=(Ht=(Bt=Ir.target)==null?void 0:Bt.element)==null?void 0:Ht.className)!=null&&pn.includes("line-numbers"))){let zt=Ir.target.position.lineNumber;if(Hi(rn.getLineContent(zt),zt))return;vi(zt)}}),uo=bt.onMouseLeave(()=>{Ji()});return()=>{Hr.dispose(),no.dispose(),Aa.dispose(),uo.dispose()}}},[Tr.current,Un,ar,Mr,_o,Ee]),(0,ce.useEffect)(()=>{var Ft;(Ft=Tr.current)!=null&&Ft.instance&&_o&&Tr.current.instance.setPosition({lineNumber:0,column:0})},[Mr]);function gr(){let Ft=Tr.current.instance;if(Ft){const bt=Ft.getSelection(),rn=Tr.current.pastePos||{},Sr=new Hn.Range(rn.startLineNumber||bt.endLineNumber,rn.startColumn||bt.endColumn,rn.endLineNumber||bt.endLineNumber,rn.endColumn||bt.endColumn);setTimeout(()=>{Ft.executeEdits("",[{range:Sr,text:""}])},300)}}function sr(Ft){(window.navigator.platform.match("Mac")?Ft.metaKey:Ft.ctrlKey)&&Ft.keyCode==83&&(Ft.preventDefault(),en())}const Rn=()=>{if(Xt&&Tr.current.instance){const Ft=Tr.current.instance.getContentHeight();xn(Ft<We?We:Ft)}else xn(We)};function Ti(Ft){var bt=document.createEvent("MouseEvents");bt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ft.dispatchEvent(bt)}const qr=Ft=>{if(!ci.current)return;const{keyCode:bt,ctrlKey:rn,metaKey:Sr,target:ki,type:Ni}=Ft;return(Ni==="paste"||(bt===67||bt===86)&&(Sr||rn))&&ki.nodeName==="TEXTAREA"&&(Tt(),Ft.preventDefault()),!1};function _r(Ft,bt){var rn=window.URL||window.webkitURL||window,Sr=new Blob([bt]),ki=document.createElementNS("http://www.w3.org/1999/xhtml","a");ki.href=rn.createObjectURL(Sr),ki.download=Ft,Ti(ki)}(0,ce.useEffect)(()=>{Rn()},[Rn]),(0,ce.useEffect)(()=>{ho.current&&!Un&&Promise.all([we.e(8909),we.e(1810)]).then(we.bind(we,71448)).then(Ft=>{try{Hn=Ft,Tr.current.instance=Hn.editor.create(ho.current,{value:Ce,language:ii(Ee),theme:st,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Le);const bt=Tr.current.instance;let ki=[...Mi.BH._menuItems].find(Hr=>Hr[0]._debugName=="EditorContext")[1],Ni=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],qn=(Hr,no)=>{var vi,Ji;let Aa=Hr._first;do no.includes((Ji=(vi=Aa.element)==null?void 0:vi.command)==null?void 0:Ji.id)&&Hr._remove(Aa);while(Aa=Aa.next)};if(In(bt,Hn),setTimeout(()=>{Rn(),Tr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{_r(io||"educoder.txt",bt.getValue())}})},500),Tr.current.subscription=bt.onDidChangeModelContent(Hr=>{Wn.current?clearTimeout(Oi.current):(Rn(),Bn(bt.getValue(),Hr)),Oi.current=setTimeout(()=>{Wn.current=!1},500)}),window.Monaco||dt(Hn,ii(Ee)),ai&&(qn(ki,Ni),ho.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",qr),window.removeEventListener("paste",qr),window.addEventListener("keydown",qr),window.addEventListener("paste",qr)),window.Monaco=Hn,dn&&bt.onDidBlurEditorWidget(()=>{dn(bt.getValue())}),Yi&&bt.onDidFocusEditorText(()=>{Yi(bt.getValue())}),ai)try{bt.onDidPaste(Hr=>{const no=bt.getSelection(),vi=Tr.current.pastePos||{},Ji=new Hn.Range(vi.startLineNumber||no.endLineNumber,vi.startColumn||no.endColumn,vi.endLineNumber||no.endLineNumber,vi.endColumn||no.endColumn);bt.executeEdits("",[{range:Hr.range,text:""}])})}catch(Hr){}let Wi=ln();return Bo&&typeof Bo=="string"&&new yn(Bo,bt,Hn),Zt(!0),()=>{const Hr=Tr.current.instance;Hr.dispose();const no=Hr.getModel();no&&no.dispose(),Tr.current.subscription&&Tr.current.subscription.dispose(),Wi.unobserve(ho.current)}}catch(bt){}})},[]),(0,ce.useEffect)(()=>{if(Tr.current.instance&&Un)return document.addEventListener("keydown",sr,!1),()=>{document.removeEventListener("keydown",sr)}},[en,Un]),(0,ce.useEffect)(()=>{let Ft=Tr.current.instance;if(Ft&&Un){let bt=ii(Ee);Hn.editor.setModelLanguage(Ft.getModel(),bt)}},[Ee,Un]),(0,ce.useEffect)(()=>{Tr.current.instance&&Un&&Hn.editor.setTheme(st)},[st,Un]),(0,ce.useEffect)(()=>{let Ft=Tr.current.instance;Be.current=Ke,Ft&&Un&&(Ft.updateOptions(Yn({},Ke)),setTimeout(()=>{Ft.getModel().updateOptions(Yn({},Ke))},200))},[JSON.stringify(Ke),Un]),(0,ce.useEffect)(()=>{let Ft=Tr.current.instance;Ft&&Un&&Ft.layout()},[_t,We,Un]);const[di,Ot]=(0,ce.useState)(un(_t)),[Ii,xn]=(0,ce.useState)(un(We)),jn=Ai(Yn({},Ie),{width:di,height:Ii,position:"relative"});return ce.createElement("div",{className:"my-monaco-editor",ref:ho,style:jn},sn&&ce.createElement(He.CopyToClipboard,{text:Ce,onCopy:()=>wi.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Nn.Z,{title:"\u590D\u5236\u4EE3\u7801"},ce.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ce.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function hn({width:rt="100%",height:Pt="100%",original:_t,modified:We,language:Ce,options:Ee={}}){const Ie=(0,ce.useRef)(),[Ke,Le]=(0,ce.useState)(null);function st(Xt){let ai;return Ie.current&&(ai=new at.Z(Bn=>{for(let In of Bn)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&Xt.layout()}),ai.observe(Ie.current)),ai}(0,ce.useEffect)(()=>(Ie.current&&Promise.all([we.e(8909),we.e(9404)]).then(we.bind(we,2550)).then(Xt=>{Hn=Xt;const ai=Hn.editor.createDiffEditor(Ie.current,Ai(Yn({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},Ee),{wordWrap:!0}));Le(ai);let Bn=st(ai);return()=>{ai.dispose();const In=ai.getModel();In&&In.dispose(),Bn.unobserve(Ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ce.useEffect)(()=>{Ke&&Ke.setModel({original:Hn.editor.createModel(_t,Ce),modified:Hn.editor.createModel(We,Ce)})},[_t,We,Ce,Ke]);const dn=un(rt),sn=un(Pt),en={width:dn,height:sn};return ce.createElement("div",{className:"my-diff-editor",ref:Ie,style:en})}},91300:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return at}});var ce=we(59301);function at(Lt,kt){const Dt=(0,ce.useRef)();(0,ce.useEffect)(()=>{Dt.current=Lt}),(0,ce.useEffect)(()=>{function jt(){Dt.current()}if(kt!==null){let Ge=setInterval(jt,kt);return()=>clearInterval(Ge)}},[kt])}},73869:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return ne}});var ce=we(59301),at=we(42203),Lt=we(78241),kt=we(8591),Dt=we(43418),jt=we(92832),Ge={wrap:"wrap___TwY3U",content:"content___Ks95W",mainPathWrap:"mainPathWrap___CrMaa",colorBlue:"colorBlue___dvWbP"},Mt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Gt=(de,le,pe)=>le in de?Mt(de,le,{enumerable:!0,configurable:!0,writable:!0,value:pe}):de[le]=pe,Ut=(de,le)=>{for(var pe in le||(le={}))Et.call(le,pe)&&Gt(de,pe,le[pe]);if(Ct)for(var pe of Ct(le))xt.call(le,pe)&&Gt(de,pe,le[pe]);return de},Re=(de,le,pe)=>new Promise((xe,Ae)=>{var ke=dt=>{try{ot(pe.next(dt))}catch(yt){Ae(yt)}},Me=dt=>{try{ot(pe.throw(dt))}catch(yt){Ae(yt)}},ot=dt=>dt.done?xe(dt.value):Promise.resolve(dt.value).then(ke,Me);ot((pe=pe.apply(de,le)).next())});const te=({shixunsDetail:de,globalSetting:le,loading:pe,dispatch:xe,title:Ae,pathList:ke=[],showInputPath:Me=!1,isMergeSelectFile:ot=!1,onFinish:dt=()=>{}})=>{const[yt]=Lt.default.useForm(),vt=(0,at.useParams)(),Kt=(0,at.useLocation)(),wt=(0,ce.useRef)(),[It,Yt]=(0,ce.useState)(""),[yn,Mi]=(0,ce.useState)(""),[wi,Nn]=(0,ce.useState)([]),[ui,tt]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{var gn,Ln;wt.current=((Ln=(gn=Kt.pathname)==null?void 0:gn.split("/"))==null?void 0:Ln[3])==="repository"},[]),(0,ce.useEffect)(()=>{if(de.actionTabs.key!=="Repository-SelectFilePath")return;const gn=ke.join("/");let Ln=[];ke.map((yi,Yn)=>{Yn===0?Ln.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${yi}`,path:gn}):Ln.push({val:`/${yi}`,path:gn})}),Nn(Ln),Yt(gn),Mi(gn),He(gn)},[de.actionTabs.key]);const He=gn=>Re(void 0,null,function*(){const Ln=yield xe({type:wt.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:vt.id,path:gn}});Ln&&tt(Ln.trees||[])}),mn=gn=>{let Ln=It;gn.type==="tree"&&(wi.length?wi.push({val:`/${gn.name}`,path:gn.name}):wi.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${gn.name}`,path:gn.name}),Nn(wi),Ln=It?`${It}/${gn.name}`:gn.name,Yt(Ln)),He(Ln)},Zn=(gn,Ln)=>{const yi=wi.filter((Ai,mt)=>mt<=Ln);Nn(yi);const Yn=yi.filter((Ai,mt)=>mt!==0).map(Ai=>Ai.val).join("").substr(1);Yt(Yn),He(Yn)},Qn=()=>Re(void 0,null,function*(){const gn=yt==null?void 0:yt.getFieldsValue(),Ln=It?`${It}${gn!=null&&gn.name?`/${gn==null?void 0:gn.name}`:""}`:gn==null?void 0:gn.name;if(ot){dt(Ln),nn();return}if(Me){yield yt.validateFields();const yi=yield xe({type:"shixunsDetail/uploadGitFolder",payload:Ut(Ut({},{id:vt.id,path:Ln}),wt.current?{}:{secret_repository:!0})});dt(yn),yi.status===0&&kt.ZP.info("\u65B0\u5EFA\u6210\u529F")}else dt(Ln),kt.ZP.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");nn()}),nn=()=>{xe({type:"shixunsDetail/setActionTabs",payload:{}}),yt.resetFields()};return ce.createElement(Dt.default,{centered:!0,title:Ae||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,open:de.actionTabs.key==="Repository-SelectFilePath",onOk:Qn,onCancel:nn},ce.createElement("div",{className:Ge.wrap},ce.createElement("div",{className:Ge.content},ce.createElement("div",{className:Ge.mainPathWrap},!!(wi!=null&&wi.length)&&wi.map((gn,Ln)=>ce.createElement("a",{key:Ln,onClick:()=>Zn(gn,Ln)},gn.val))),!!(ui!=null&&ui.length)&&ui.map((gn,Ln)=>gn.type==="tree"&&ce.createElement("a",{key:Ln,onClick:()=>mn(gn)},ce.createElement("i",{className:`iconfont icon-wenjianjia ${Ge.colorBlue}`}),gn.name))),ce.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),ce.createElement("div",{className:"mt5 mb5"},It),Me&&ce.createElement(Lt.default,{form:yt,scrollToFirstError:!0,className:"mt20"},ce.createElement(Lt.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ce.createElement(jt.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};var ne=(0,at.connect)(({shixunsDetail:de,loading:le,globalSetting:pe})=>({shixunsDetail:de,globalSetting:pe,loading:le.models.index}))(te)},4973:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return ui}});var ce=we(59301),at=we(42203),Lt=we(36381),kt=we(92832),Dt=we(78241),jt=we(8591),Ge=we(43418),Mt=we(24905),Ct=we(6848),Et=we(88897),xt=we(5112),Gt=we(81327),Ut=we(95237),Re=we(57809),te=we(78673),ne=we(23744),de=we(94606),le={wrap:"wrap___BgpUe",row:"row___UWxAG",textarea:"textarea___gaLin",btn:"btn___ZpuhS",sub:"sub___Jd_ZS"},pe=we(48551),xe=we(70635),Ae=we(2119),ke=we(59301),Me=Object.defineProperty,ot=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,wt=(tt,He,mn)=>He in tt?Me(tt,He,{enumerable:!0,configurable:!0,writable:!0,value:mn}):tt[He]=mn,It=(tt,He)=>{for(var mn in He||(He={}))vt.call(He,mn)&&wt(tt,mn,He[mn]);if(yt)for(var mn of yt(He))Kt.call(He,mn)&&wt(tt,mn,He[mn]);return tt},Yt=(tt,He)=>ot(tt,dt(He)),yn=(tt,He,mn)=>new Promise((Zn,Qn)=>{var nn=yi=>{try{Ln(mn.next(yi))}catch(Yn){Qn(Yn)}},gn=yi=>{try{Ln(mn.throw(yi))}catch(Yn){Qn(Yn)}},Ln=yi=>yi.done?Zn(yi.value):Promise.resolve(yi.value).then(nn,gn);Ln((mn=mn.apply(tt,He)).next())});const{Panel:Mi}=Lt.default,{TextArea:wi}=kt.default;var ui=({active:tt,type:He="jupyter"})=>{var mn,Zn;const Qn=(0,at.useParams)(),[nn]=Dt.default.useForm(),[gn,Ln]=(0,ce.useState)({}),[yi,Yn]=(0,ce.useState)(!1),[Ai,mt]=(0,ce.useState)(0),[ht,un]=(0,ce.useState)([]),[Sn,Dn]=(0,ce.useState)([]),[kn,ii]=(0,ce.useState)([]),Hn=(Zn=(mn=(0,Ae.eY)())==null?void 0:mn.shixun)==null?void 0:Zn.editable;(0,ce.useEffect)(()=>{tt==="testCase"&&Di()},[tt]),(0,ce.useEffect)(()=>{hn()},[]);const Di=()=>yn(void 0,null,function*(){var Le,st,dn,sn,en,Xt,ai,Bn,In,Yi,fi,ar,io,jo;const bo=[{hidden:0,input:"",output:"",score:100}],Mr=yield(0,xe.ZP)(`/api/shixuns/${Qn==null?void 0:Qn.id}/jupyter_evalute_setting.json`,{method:"get"});if((Mr==null?void 0:Mr.status)===0){ii((Le=Mr==null?void 0:Mr.data)==null?void 0:Le.standard_scripts);const _o={open_evaluate:(st=Mr==null?void 0:Mr.data)==null?void 0:st.open_evaluate,exec_time:((dn=Mr==null?void 0:Mr.data)==null?void 0:dn.exec_time)||3,test_set_score:((sn=Mr==null?void 0:Mr.data)==null?void 0:sn.test_set_score)===null?!1:(en=Mr==null?void 0:Mr.data)==null?void 0:en.test_set_score,test_set_average:((Xt=Mr==null?void 0:Mr.data)==null?void 0:Xt.test_set_average)===null?!0:(ai=Mr==null?void 0:Mr.data)==null?void 0:ai.test_set_average,choice_standard_scripts:((Bn=Mr==null?void 0:Mr.data)==null?void 0:Bn.choice_standard_scripts)||null,evaluate_script:((In=Mr==null?void 0:Mr.data)==null?void 0:In.evaluate_script)||"",evaluate_method:(Yi=Mr==null?void 0:Mr.data)==null?void 0:Yi.evaluate_method,use_jupyter_result:(fi=Mr==null?void 0:Mr.data)==null?void 0:fi.use_jupyter_result};nn.setFieldsValue(_o),Ln(_o),un((io=(ar=Mr==null?void 0:Mr.data)==null?void 0:ar.test_sets)!=null&&io.length?(jo=Mr==null?void 0:Mr.data)==null?void 0:jo.test_sets:bo)}}),hn=()=>yn(void 0,null,function*(){var Le;const st=yield(0,xe.ZP)(`/api/shixuns/${Qn==null?void 0:Qn.id}/get_jupyter_tags.json`,{method:"get"});(st==null?void 0:st.status)===0&&Dn(((Le=st==null?void 0:st.data)==null?void 0:Le.list)||[])}),rt=Le=>yn(void 0,null,function*(){const dn=ht.map(en=>en.score).reduce((en,Xt)=>en+Xt,0);if(Le.test_set_score&&dn!==100){jt.ZP.warning("\u6D4B\u8BD5\u7528\u4F8B\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(Le.evaluate_method===3&&(ht!=null&&ht.some(en=>!en.tags))){jt.ZP.warning("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EE3\u7801\u5757");return}Yn(!0),(yield(0,xe.ZP)(`/api/shixuns/${Qn==null?void 0:Qn.id}/update_jupyter_evaluate_setting.json`,{method:"post",body:Yt(It({},Le),{mirror_script_id:Le==null?void 0:Le.choice_standard_scripts,open_evaluate:Le!=null&&Le.open_evaluate?1:0,test_set:ht.map(en=>Yt(It({},en),{is_file:!1}))})})).status===0&&jt.ZP.success("\u4FDD\u5B58\u6210\u529F"),Yn(!1)}),Pt=Le=>{Ln(It({},nn.getFieldsValue())),"test_set_average"in Le&&(Le!=null&&Le.test_set_average)&&_t(ht),"test_set_score"in Le&&(Le!=null&&Le.test_set_score)&&(nn.setFieldsValue({test_set_average:!0}),Ln(Yt(It({},nn.getFieldsValue()),{test_set_average:!0})),_t(ht)),"choice_standard_scripts"in Le&&Ge.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ke.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",ke.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>yn(void 0,null,function*(){const st=yield(0,xe.ZP)(`/api/shixuns/${Qn==null?void 0:Qn.id}/get_script_contents.json`,{method:"get",params:{id:Qn==null?void 0:Qn.id,script_id:Le==null?void 0:Le.choice_standard_scripts}});st!=null&&st.content&&(Ge.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:ke.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")}),nn.setFieldsValue({evaluate_script:st==null?void 0:st.content}),Ln(Yt(It({},nn.getFieldsValue()),{evaluate_script:st==null?void 0:st.content})))})})},_t=Le=>{let st=0;const dn=Math.floor((100-st)/Le.length),sn=dn+(100-st)%Le.length;Le=Le.map((en,Xt)=>Xt===Le.length-1?Yt(It({},en),{score:sn}):Yt(It({},en),{score:dn})),un(Le)},We=()=>{const Le=[...ht,{hidden:0,input:"",output:"",score:0}];nn.getFieldValue("test_set_average")?_t(Le):un(Le)},{test_set_score:Ce,test_set_average:Ee,choice_standard_scripts:Ie,open_evaluate:Ke}=gn;return ke.createElement("section",{className:le.wrap},ke.createElement(Dt.default,{form:nn,disabled:!Ke,layout:"vertical",onValuesChange:Pt,onFinish:rt},ke.createElement(Dt.default.Item,{name:"open_evaluate",style:{marginTop:10},valuePropName:"checked"},ke.createElement(Mt.default,{disabled:!1},"\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD")),ke.createElement("h4",{className:"font14"},"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),ke.createElement(Ct.Z,{title:!Ke&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},ke.createElement(Dt.default.Item,{label:"\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09\uFF1A",name:"exec_time",className:le.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"}]},ke.createElement(Et.Z,{size:"large",style:{width:400},min:3}))),ke.createElement("h4",{className:"font14 mb10"},"\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219"),ke.createElement(Ct.Z,{title:!Ke&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},ke.createElement(Dt.default.Item,{name:"test_set_score"},ke.createElement(xt.ZP.Group,null,ke.createElement(Gt.Z,{direction:"vertical"},ke.createElement(xt.ZP,{value:!1},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",ke.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")),ke.createElement(xt.ZP,{value:!0},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",ke.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")))))),ke.createElement(Dt.default.Item,{label:ke.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"}]},ke.createElement(xt.ZP.Group,null,ke.createElement(Gt.Z,{direction:"vertical"},ke.createElement(xt.ZP,{value:1},"\u901A\u8FC7\u6240\u6709\u4EE3\u7801\u5757\u8BC4\u6D4B",ke.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")),ke.createElement(xt.ZP,{value:3},"\u901A\u8FC7\u6307\u5B9A\u4EE3\u7801\u5757\u8BC4\u6D4B",ke.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"))))),ke.createElement(Ut.Z,{align:"middle",justify:"space-between",className:"font14"},ke.createElement("div",{style:{fontWeight:500}},ke.createElement("span",{className:le.sub},"*"),"\u6D4B\u8BD5\u7528\u4F8B"),ke.createElement(Ct.Z,{title:!Ke&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},ke.createElement(de.op,{style:{borderRadius:2},onClick:We},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B"))),Ce&&ke.createElement(Dt.default.Item,{name:"test_set_average"},ke.createElement(xt.ZP.Group,null,ke.createElement(xt.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),ke.createElement(xt.ZP,{value:!1,style:{marginLeft:50}},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),ke.createElement(Ct.Z,{title:!Ke&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},ke.createElement("div",null,ht.map((Le,st)=>ke.createElement(Lt.default,{activeKey:Ai,key:st,onChange:()=>{mt(dn=>dn===st?null:st)}},ke.createElement(Mi,{header:ke.createElement("div",{className:"font16"},ke.createElement("span",{className:"mr10"},"\u6D4B\u8BD5\u7528\u4F8B",st+1),gn.test_set_score&&ke.createElement("span",{style:{marginLeft:40}},ke.createElement(Et.Z,{style:{width:120},value:Le.score,onClick:dn=>dn.stopPropagation(),min:0,max:100,precision:0,onBlur:dn=>{if(Number(dn)<0||Number(dn)>100){jt.ZP.info("\u6D4B\u8BD5\u7528\u4F8B\u7684\u6743\u91CD\u6BD4\u4F8B\u503C\u9650\u5236\u4E3A 0-100");const sn=ht.map((Xt,ai)=>ai===st?Yt(It({},Xt),{score:100}):Xt),en={test_set_average:!1};Ln(It(It({},gn),en)),nn.setFieldsValue(en),un(sn)}},disabled:Ee,onChange:dn=>{const sn=ht.map((Xt,ai)=>ai===st?Yt(It({},Xt),{score:dn?Number(dn):0}):Xt),en={test_set_average:!1};Ln(It(It({},gn),en)),nn.setFieldsValue(en),un(sn)}}),ke.createElement("span",{className:"ml10 mr10"},"%")),ke.createElement("span",{className:"tr flex1",style:{float:"right"}},st!==0&&ke.createElement(Ct.Z,{placement:"bottom",title:"\u5220\u9664"},ke.createElement("span",{style:{color:"#c5c5c5"},className:"current iconfont icon-shanchu4",onClick:dn=>{dn.stopPropagation(),Ge.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 sn=ht.filter((en,Xt)=>Xt!==st);_t(sn)}})}})))),key:st},ke.createElement("div",null,gn.evaluate_method===3&&ke.createElement(Ut.Z,{align:"middle",className:"mb20"},ke.createElement("div",null,ke.createElement("span",{className:le.sub},"*"),ke.createElement("span",null,"\u6307\u5B9A\u4EE3\u7801\u5757"),ke.createElement(Ct.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"},ke.createElement("i",{style:{marginLeft:6,marginRight:20,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),ke.createElement(Re.default,{value:Le.tags,size:"large",style:{width:450},onChange:dn=>{const sn=ht.map((en,Xt)=>Xt===st?Yt(It({},en),{tags:dn}):en);un(sn)}},Sn==null?void 0:Sn.map(dn=>ke.createElement(Re.default.Option,{value:dn==null?void 0:dn.tags,key:dn==null?void 0:dn.tags},dn==null?void 0:dn.tags)))),ke.createElement(Ut.Z,{align:"middle"},ke.createElement("div",null," ",ke.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),ke.createElement(wi,{bordered:!1,className:le.textarea,rows:5,placeholder:"\u9884\u671F\u8F93\u51FA",value:Le.output,onChange:dn=>{const sn=ht.map((en,Xt)=>Xt===st?Yt(It({},en),{output:dn.target.value}):en);un(sn)}})),ke.createElement(Ut.Z,{className:"mt20",align:"middle"},ke.createElement("div",null,ke.createElement("span",null,"\u53EF\u89C1\u6027"),ke.createElement(Ct.Z,{title:ke.createElement("div",null,ke.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'),ke.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"),ke.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"))},ke.createElement("i",{style:{marginLeft:6,marginRight:13,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),ke.createElement("div",null,ke.createElement(Mt.default,{className:"font14 ml5",checked:Le.hidden===1,onChange:dn=>{const sn=ht.map((en,Xt)=>{if(Xt===st){let ai={is_invisible:!1,actual_output_visible:!1};return dn.target.checked&&(ai={is_invisible:!0,actual_output_visible:!0}),Yt(It(It({},en),ai),{hidden:dn.target.checked?1:0})}return en});un(sn)}},"\u5168\u90E8\u9690\u85CF")),ke.createElement(Mt.default,{checked:Le.is_invisible,style:{margin:"0 60px"},onChange:dn=>{const sn=ht.map((en,Xt)=>{if(Xt===st){let ai=0;return dn.target.checked&&en.actual_output_visible&&(ai=1),Yt(It({},en),{hidden:ai,is_invisible:dn.target.checked})}return en});un(sn)}},"\u9690\u85CF\u9884\u671F\u8F93\u51FA"),ke.createElement(Mt.default,{checked:Le.actual_output_visible,onChange:dn=>{const sn=ht.map((en,Xt)=>{if(Xt===st){let ai=0;return dn.target.checked&&en.is_invisible&&(ai=1),Yt(It({},en),{hidden:ai,actual_output_visible:dn.target.checked})}return en});un(sn)}},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA")),ke.createElement("div",{className:"mt20"},ke.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),ke.createElement(Mt.default,{checked:Le.last_match_rule,onChange:dn=>{const sn=ht.map((en,Xt)=>Xt===st?Yt(It({},en),{last_match_rule:dn.target.checked}):en);un(sn)}},ke.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",ke.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")))))))))),ke.createElement("h4",{className:"font14 mt20 mb10"},ke.createElement("span",{className:le.sub},"*"),"\u8BC4\u6D4B\u811A\u672C"),ke.createElement(Ct.Z,{title:!Ke&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},ke.createElement(Dt.default.Item,{name:"choice_standard_scripts",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"}]},ke.createElement(Re.default,{getPopupContainer:Le=>Le.parentNode,size:"large",style:{width:400},placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"},kn.map((Le,st)=>ke.createElement(Re.default.Option,{value:Le.id,key:st},Le.scptname))))),ke.createElement(Ct.Z,{title:!Ke&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},ke.createElement(Dt.default.Item,{name:"evaluate_script"},ke.createElement(pe.ZP,{height:450,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light",options:{readOnly:!Ke}}))),(0,Ae.Ny)()&&ke.createElement(Ut.Z,{className:"mb20",align:"middle"},ke.createElement(Dt.default.Item,{name:"use_jupyter_result",className:"mt10",valuePropName:"checked",noStyle:!0},ke.createElement(te.Z,null)),ke.createElement("div",{className:"ml10"},"\u662F\u5426\u6CBF\u7528Jupyter\u8FD0\u884C\u7ED3\u679C"))),ke.createElement(ne.t,{okText:"\u4FDD\u5B58",hasOkBtn:Hn,loading:yi,onCancel:()=>at.history.push(`/shixuns/${Qn==null?void 0:Qn.id}/challenges`),onOk:()=>nn.submit(),className:He==="jupyterLab"?le.btn:""}))}},89480:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Dt}});var ce=we(59301),at={label:"label___CZ1_z",left:"left___ZKFRV",right:"right___zVTRn",error:"error___oNJNo"},Lt=we(6848),Dt=({name:jt,tooltipTitle:Ge,children:Mt,required:Ct,errorKey:Et,errorValue:xt,errorName:Gt,errorStyle:Ut={},nameWidth:Re=112,align:te="center",contentStyle:ne={}})=>ce.createElement(ce.Fragment,null,ce.createElement("div",{className:at.label,style:{alignItems:te}},ce.createElement("div",{className:at.left,style:{width:Re}},Ct&&ce.createElement("span",null,"*"),ce.createElement("div",null,jt),!!Ge&&ce.createElement(Lt.Z,{title:Ge},ce.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),ce.createElement("div",{className:at.right,style:ne},Mt,Gt&&xt===Et&&ce.createElement("div",{className:at.error,style:Ut},Gt))))},99891:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return jt}});var ce=we(59301),at={mirrorModal:"mirrorModal___Pi3tF",right:"right___Hot5f",title:"title___jjMKh",content:"content___BmOkD",des:"des___oGTUM",modal:"modal___yy3VB"},Lt=we(43418),kt=we(25711),jt=({title:Ge,children:Mt,value:Ct})=>{const[Et,xt]=(0,ce.useState)(!1);return ce.createElement(ce.Fragment,null,ce.createElement("span",{onClick:()=>xt(!0)},Mt),ce.createElement(Lt.default,{title:Ge,open:Et,width:1e3,destroyOnClose:!0,centered:!0,onCancel:()=>xt(!1),className:at.modal,footer:null},typeof Ct=="string"&&ce.createElement(kt.Z,{value:Ct||""}),Object.prototype.toString.call(Ct)==="[object Array]"&&ce.createElement(ce.Fragment,null,Ct==null?void 0:Ct.map((Gt,Ut)=>ce.createElement("div",{key:Ut},ce.createElement("b",null,Gt.name||Gt.type_name),ce.createElement(kt.Z,{value:Gt.description||""}))))))}},23139:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Dn}});var ce=we(59301),at=we(43418),Lt=we(8591),kt=we(43428),Dt=we(99313),jt=we(71418),Ge=we(6848),Mt=we(3113),Ct={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"},Et=we(72119),xt=we(86902),Gt=we(13014),Ut=we(93314),Re=we(70635),te=we(76411),ne={lineChart:"lineChart___dCEZW"},de=we(61186),le=we.n(de),pe=we(59301),Ae=({dataInfo:kn,indexKey:ii,valueName:Hn,startAndEndTime:Di,colors:hn=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"],imageTypeName:rt})=>{let Pt=null;(0,ce.useEffect)(()=>{Le()},[kn]),(0,ce.useEffect)(()=>{window.addEventListener("resize",_t(()=>{Pt&&Pt.resize()},200))},[window.onresize]);const _t=(st,dn,sn=!1)=>{let en,Xt;return(...ai)=>{if(sn){st.apply(Xt,ai),sn=!1;return}clearTimeout(en),en=setTimeout(()=>{st.apply(Xt,ai)},dn)}},We=st=>st?st.map(dn=>{const sn=new Date(dn),en=String(sn.getMonth()+1).padStart(2,"0"),Xt=String(sn.getDate()).padStart(2,"0"),ai=String(sn.getHours()).padStart(2,"0"),Bn=String(sn.getMinutes()).padStart(2,"0");return`${en}/${Xt} ${ai}:${Bn}`}):[],Ce=(st,dn)=>st.map(sn=>{const en=dn.timestamps.indexOf(sn);return en!==-1?dn.values[en]:null});function Ee(st){let dn=1/0;for(let en=0;en<st.length-1;en++){let Xt=st[en+1]-st[en];Xt<dn&&(dn=Xt)}return{newArray:Ie(st[0],st[st.length-1],dn),minInterval:dn}}const Ie=(st,dn,sn)=>{let en=[];for(let Xt=st;Xt<=dn;Xt+=sn)en.push(Xt);return en},Ke=()=>{var st;const dn=((st=kn==null?void 0:kn.x)==null?void 0:st.flat())||[];let sn=[...new Set(dn)].sort((ar,io)=>ar-io),en=Ee(sn),Xt=en==null?void 0:en.newArray,ai=en==null?void 0:en.minInterval;sn=[...new Set([...sn,...Xt])].sort((ar,io)=>ar-io);let Bn=le()(Di[0],"YYYY-MM-DD HH:mm").valueOf(),In=Ie(Bn,sn[0]-ai,ai),Yi=le()(Di[1],"YYYY-MM-DD HH:mm").valueOf(),fi=Ie(sn[sn.length-1]+ai,Yi,ai);return sn=[...In,...sn,...fi],[...new Set(sn)].sort((ar,io)=>ar-io)},Le=()=>{var st;Pt=te.init(document.getElementById(`lineChart${ii}`));let dn=Ke(),sn=(st=kn==null?void 0:kn.y)==null?void 0:st.map((Xt,ai)=>{var Bn;let In={timestamps:(Bn=kn==null?void 0:kn.x)==null?void 0:Bn[ai],values:Xt};return Xt=Ce(dn,In),{name:Hn[ai],type:"line",itemStyle:{show:!1},lineStyle:{color:hn[ai]},data:Xt}}),en={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(Xt){var ai;let Bn="";return Xt.forEach((In,Yi)=>{console.log("item",In),Bn+=`<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: ${hn[In==null?void 0:In.componentIndex]}; margin-right: 4px;"></div>
|
|
<span style="width: 144px; color: rgba(43,49,63,0.5); font-size: 12px;">${rt[In==null?void 0:In.componentIndex]}</span>
|
|
</div>
|
|
<div style="color: #393971; font-size: 13px; font-weight: 600;">${In.value>0?In.value.toFixed(5):In.value==0?0:"--"} ${ii==0?"Cores":"MiB"}</div>
|
|
</div>`}),`<div>
|
|
<div style="color: #333333; padding-top: 6px;">${(ai=Xt[0])==null?void 0:ai.name}</div>
|
|
${Bn}
|
|
</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:We(dn)}],yAxis:[{type:"value",gridIndex:0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,color:"#9096A3",formatter:ii==1?"{value} MiB":"{value} Cores"},splitLine:{show:!0,lineStyle:{color:"#EDEDED",type:"dashed"}}}],series:sn};Pt.setOption(en)};return pe.createElement("div",{id:`lineChart${ii}`,className:ne.lineChart})},ke=we(94606),Me={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"},ot=we(57809),dt=we(78550),yt=we(88522);const vt=kn=>{const ii=new Date,Di=(hn=>{const rt=new Date(ii);switch(hn){case"\u6700\u8FD130\u5206\u949F":rt.setMinutes(ii.getMinutes()-30);break;case"\u6700\u8FD13\u5C0F\u65F6":rt.setHours(ii.getHours()-3);break;case"\u6700\u8FD124\u5C0F\u65F6":rt.setDate(ii.getDate()-1);break;case"\u6700\u8FD17\u5929":rt.setDate(ii.getDate()-7);break;case"\u6700\u8FD115\u5929":rt.setDate(ii.getDate()-15);break;default:return null}return rt})(kn);return Di?{startTime:Di,endTime:ii}:null},Kt=(kn,ii,Hn)=>{if(!kn)return!1;const Di=le()(),[hn,rt]=ii;if(kn.isAfter(Di))return!0;if(hn){const Pt=hn.clone().add(Hn,"days");if(rt&&kn.isAfter(Pt))return!0}if(rt){const Pt=rt.clone().subtract(Hn,"days");return kn.isBefore(Pt)||kn.isAfter(Di)}return!1},wt=kn=>kn<=5?"30s":kn<=15?"1m":kn<=30?"2m":kn<=60?"5m":kn<=180?"10m":kn<=360?"30m":kn<=720?"1h":kn<=1440?"2h":kn<=2880?"4h":kn<=4320?"8h":kn<=10080||kn<=14400?"12h":kn<=21600?"1d":"\u6CA1\u6709\u5339\u914D\u7684\u65F6\u95F4\u95F4\u9694",It=kn=>{const[ii,Hn]=kn,Di=moment.isMoment(ii)?ii:moment(ii),hn=moment.isMoment(Hn)?Hn:moment(Hn);if(!Di.isValid()||!hn.isValid())throw new Error("Invalid date provided");const Pt=moment.duration(hn.diff(Di)).asMinutes();return wt(Pt)},Yt=(kn,ii,Hn=20)=>{const Di=new Date(kn).getTime(),hn=new Date(ii).getTime(),rt=Hn*1e3,Pt=[];let _t=Di;for(;_t<=hn;)Pt.push(_t),_t+=rt;return Pt};var yn=we(89392),Mi=we(97267),wi=we(39171),Nn=we(59301),ui=(kn,ii,Hn)=>new Promise((Di,hn)=>{var rt=We=>{try{_t(Hn.next(We))}catch(Ce){hn(Ce)}},Pt=We=>{try{_t(Hn.throw(We))}catch(Ce){hn(Ce)}},_t=We=>We.done?Di(We.value):Promise.resolve(We.value).then(rt,Pt);_t((Hn=Hn.apply(kn,ii)).next())});const tt=ot.default.Option,{RangePicker:He}=dt.default;var Zn=({identifier:kn,data:ii,isFirst:Hn,setIsFirst:Di,info:hn})=>{var rt;const[Pt,_t]=(0,ce.useState)([]),[We,Ce]=(0,ce.useState)([]),[Ee,Ie]=(0,ce.useState)(null),[Ke,Le]=(0,ce.useState)(""),[st,dn]=(0,ce.useState)([null,null]),[sn,en]=(0,ce.useState)([]),[Xt,ai]=(0,ce.useState)(!1),[Bn,In]=(0,ce.useState)([]),[Yi,fi]=(0,ce.useState)(!1),[ar,io]=(0,ce.useState)(!1),[jo,bo]=(0,ce.useState)(""),[Mr,_o]=(0,ce.useState)(1),Bo=["\u6700\u8FD130\u5206\u949F","\u6700\u8FD13\u5C0F\u65F6","\u6700\u8FD124\u5C0F\u65F6","\u6700\u8FD17\u5929","\u6700\u8FD115\u5929"],yo=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"];(0,ce.useEffect)(()=>{var ci,Un,Zt,ln;if(ii&&Hn){Oi(),_t(ii==null?void 0:ii.recent_users),Ce(ii==null?void 0:ii.managers);const Tt=(hn==null?void 0:hn.type)==="\u6311\u6218\u9875\u9762";((ci=ii==null?void 0:ii.managers)==null?void 0:ci.length)>0?Ie(Tt?hn==null?void 0:hn.myshixun_id:(Un=ii==null?void 0:ii.managers[0])==null?void 0:Un.id):((Zt=ii==null?void 0:ii.recent_users)==null?void 0:Zt.length)>0&&Ie(Tt?hn==null?void 0:hn.myshixun_id:(ln=ii==null?void 0:ii.recent_users[0])==null?void 0:ln.id),Le("\u6700\u8FD130\u5206\u949F"),Di(!1)}},[ii]),(0,ce.useEffect)(()=>{if(Ke){let ci=vt(Ke);dn([le()(ci==null?void 0:ci.startTime),le()(ci==null?void 0:ci.endTime)])}},[Ke]),(0,ce.useEffect)(()=>{Ee&&(st!=null&&st[0])&&(st!=null&&st[1])&&ho()},[Ee,st]);const ho=()=>ui(void 0,null,function*(){var ci;ai(!0);let Un={startTimeString:st[0]?st[0].format("YYYY-MM-DD HH:mm"):null,endTimeString:st[1]?st[1].format("YYYY-MM-DD HH:mm"):null,samplingInterval:"20s",isSortBoolean:!1,id:Ee};const Zt=yield(0,Re.ZP)(`/api/shixuns/${kn}/cpu_rank_data.json`,{method:"get",params:Un});(Zt==null?void 0:Zt.status)==0&&(In((ci=Zt==null?void 0:Zt.data)==null?void 0:ci.statisticsList),_o(Mr+1)),ai(!1)}),Tr=(0,ce.useRef)((0,yn.throttle)(ci=>Be(ci),1200,{leading:!0,trailing:!0})).current,Be=ci=>ui(void 0,null,function*(){if(ci=="")return;const Un=yield(0,Re.ZP)(`/api/shixuns/${kn}/cpu_search_data`,{method:"get",params:{search:ci}});(Un==null?void 0:Un.status)==0&&en(Un==null?void 0:Un.data)}),ua=(ci,Un)=>{ci==="CPU"?(Yi?(0,wi.BU)():(0,wi.Dj)(document.getElementById(`tj${Un}`)),fi(!Yi)):(ar?(0,wi.BU)():(0,wi.Dj)(document.getElementById(`tj${Un}`)),io(!ar))},eo=(ci,Un,Zt)=>{const ln=Un==="CPU"?"cpuUsageChart":"memoryUsageChart";let Tt=ci.map(Hi=>{var gr,sr,Rn,Ti;const qr=(gr=Hi.promQueryResult)==null?void 0:gr[ln],_r=`${Hi.envId}-${Hi.myPracticalTrainingId}_${Un}`,di=((Ti=(Rn=(sr=qr==null?void 0:qr.results[_r])==null?void 0:sr.frames[0])==null?void 0:Rn.data)==null?void 0:Ti.values)||[];return di.length>0?di[Zt]:[]});return Tt.some(Hi=>Array.isArray(Hi)&&Hi.length>0)?Tt:[]},Wn=ci=>{Ie(ci),Oi()},Oi=()=>{en([]),bo("")},Ri=ci=>{let Un=!1;for(let Zt=0;Zt<(Bn==null?void 0:Bn.length);Zt++){let ln=eo(Bn,ci,1)[Zt];if(ln&&(ln==null?void 0:ln.length)>0){Un=!0;break}}return(Bn==null?void 0:Bn.length)>0&&Un};return Nn.createElement(Nn.Fragment,null,Nn.createElement("div",{className:`${Me.flex_warp}`},Nn.createElement(yt.Z,{allowClear:!0,showSearch:!0,value:jo,style:{width:280},onSearch:Tr,placeholder:"\u641C\u7D22\u59D3\u540D/\u624B\u673A\u53F7/\u90AE\u7BB1",onChange:(ci,Un)=>{bo(ci),Un!=null&&Un.key&&Ie(Number(Un==null?void 0:Un.key))},onClear:Oi,size:"large"},sn==null?void 0:sn.map((ci,Un)=>Nn.createElement(tt,{key:ci.id,value:ci.name},ci.name.length>4?`${ci.name.slice(0,4)}...`:ci.name,`( ${ci.phone?ci.phone:""} ${ci.mail?` - ${ci.mail}`:""})`))),Nn.createElement("div",null,Nn.createElement(ot.default,{style:{width:130,marginRight:20},placeholder:"\u8BF7\u9009\u62E9",size:"large",value:Ke,onChange:ci=>{Le(ci)}},Bo.map((ci,Un)=>Nn.createElement(ot.default.Option,{key:Un,value:ci},ci))),Nn.createElement(He,{style:{width:320},showTime:!0,size:"large",allowClear:!1,value:st,disabledDate:ci=>Kt(ci,st,15),format:"YYYY-MM-DD HH:mm",onChange:ci=>{dn(ci),Le(void 0)}}))),Nn.createElement(ke.qp,{title:"\u5408\u4F5C\u6210\u5458",style:{marginTop:"24px"},value:Ee,onChange:ci=>Wn(ci),dataSource:We,titleWidth:60,key:1}),Nn.createElement(ke.qp,{title:"\u6700\u8FD1\u5B9E\u9A8C",className:(Pt==null?void 0:Pt.length)==0?"mt0":"",style:{marginBottom:(Pt==null?void 0:Pt.length)>0?"0px":"17px"},value:Ee,onChange:ci=>Wn(ci),dataSource:Pt,titleWidth:60,key:2}),(rt=[{name:"CPU",type:"CPU"},{name:"\u5185\u5B58",type:"MEMORY"}])==null?void 0:rt.map((ci,Un)=>Nn.createElement("div",{className:`${Me.chart_content}`,key:Un,id:`tj${Un}`},Nn.createElement("div",{className:Me.chart_title},Nn.createElement("span",null,ci==null?void 0:ci.name,"\u4F7F\u7528\u91CF"),Nn.createElement("i",{className:`${Me.fullscreen}
|
|
iconfont
|
|
${(ci==null?void 0:ci.type)=="CPU"?Yi?"icon-tuichuquanping2":"icon-quanping2":ar?"icon-tuichuquanping2":"icon-quanping2"}
|
|
`,onClick:()=>ua(ci.type,Un)})),Nn.createElement(jt.Z,{spinning:Xt},Ri(ci.type)?Nn.createElement("div",{style:{marginTop:(ci==null?void 0:ci.type)=="CPU"?Yi?"7%":"":ar?"7%":""}},Nn.createElement(Ae,{dataInfo:{y:eo(Bn,ci==null?void 0:ci.type,1)||[],x:eo(Bn,ci==null?void 0:ci.type,0)||[]},startAndEndTime:st,colors:yo,indexKey:Un,valueName:Bn.map(Zt=>Zt.name),imageTypeName:Bn.map(Zt=>{var ln;return(ln=Zt==null?void 0:Zt.promQueryResult)==null?void 0:ln.imageTypeName}),key:`${Un}-${Mr}`}),Nn.createElement("div",{className:Me.info_con},Nn.createElement("div",{className:Me.info_top},Nn.createElement("div",null,"\u6700\u5927\u503C"),Nn.createElement("div",null,"\u6700\u5C0F\u503C"),Nn.createElement("div",null,"\u5E73\u5747\u503C")),Bn.map((Zt,ln)=>{var Tt;let An=Zt==null?void 0:Zt.promQueryResult;return Nn.createElement("div",{className:Me.listdata,key:ln},Nn.createElement("div",{className:Me.block,style:{backgroundColor:yo[ln],marginRight:10}}),Nn.createElement("div",{className:Me.typename},(Tt=Zt==null?void 0:Zt.promQueryResult)==null?void 0:Tt.imageTypeName),Nn.createElement("div",{className:Me.val},(ci==null?void 0:ci.type)=="CPU"?`${An==null?void 0:An.cpuMaxDoubleValue}Cores`:`${An==null?void 0:An.memoryDoubleMaxValue}MiB`),Nn.createElement("div",{className:Me.val},(ci==null?void 0:ci.type)=="CPU"?`${An==null?void 0:An.cpuMinDoubleValue}Cores`:`${An==null?void 0:An.memoryDoubleMinValue}MiB`),Nn.createElement("div",{className:Me.val},(ci==null?void 0:ci.type)=="CPU"?`${An==null?void 0:An.cpuAvgDoubleValue}Cores`:`${An==null?void 0:An.memoryDoubleAvgValue}MiB`))}))):Nn.createElement(Mi.Z,null)))))},Qn=we(59301),nn=(kn,ii,Hn)=>new Promise((Di,hn)=>{var rt=We=>{try{_t(Hn.next(We))}catch(Ce){hn(Ce)}},Pt=We=>{try{_t(Hn.throw(We))}catch(Ce){hn(Ce)}},_t=We=>We.done?Di(We.value):Promise.resolve(We.value).then(rt,Pt);_t((Hn=Hn.apply(kn,ii)).next())}),Ln=({getApi:kn,identifier:ii,visible:Hn,info:Di})=>{const[hn,rt]=(0,ce.useState)({}),[Pt,_t]=(0,ce.useState)(!0);(0,ce.useEffect)(()=>{_t(!0)},[Hn]),(0,ce.useEffect)(()=>{kn&&Pt&&We()},[kn]);const We=()=>nn(void 0,null,function*(){const Ce=yield(0,Re.ZP)(`/api/shixuns/${ii}/cpu_basic_data.json`,{method:"get"});(Ce==null?void 0:Ce.status)==0&&rt(Ce)});return Qn.createElement("div",null,Qn.createElement(Zn,{isFirst:Pt,setIsFirst:Ce=>_t(Ce),identifier:ii,data:hn,info:Di}))},yi=we(58130),Yn=we(42203),Ai=we(20387),mt=we(18032),ht=we(59301),un=(kn,ii,Hn)=>new Promise((Di,hn)=>{var rt=We=>{try{_t(Hn.next(We))}catch(Ce){hn(Ce)}},Pt=We=>{try{_t(Hn.throw(We))}catch(Ce){hn(Ce)}},_t=We=>We.done?Di(We.value):Promise.resolve(We.value).then(rt,Pt);_t((Hn=Hn.apply(kn,ii)).next())});const Sn=({globalSetting:kn,dispatch:ii,practiceSetting:Hn,shixunsDetail:Di,visible:hn,onCancel:rt,info:Pt,identifier:_t,isJupyter:We,onOk:Ce})=>{const[Ee,Ie]=(0,ce.useState)("1"),[Ke,Le]=(0,ce.useState)("\u63A8\u8350\u914D\u7F6E"),[st,dn]=(0,ce.useState)([]),[sn,en]=(0,ce.useState)(!1),[Xt,ai]=(0,ce.useState)(!1),[Bn,In]=(0,ce.useState)({}),[Yi,fi]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{hn&&(ai(!1),Ie("1"),Le("\u63A8\u8350\u914D\u7F6E"),(Pt==null?void 0:Pt.type)=="\u6311\u6218\u9875\u9762"?dn(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E"]):dn(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E","\u589E\u5F3A\u914D\u7F6E"]),In({}),ar(),(Pt==null?void 0:Pt.type)=="\u6311\u6218\u9875\u9762"&&ii({type:"shixunsDetail/getShixunsDetail",payload:{id:_t}}))},[hn]);const ar=()=>un(void 0,null,function*(){fi(!0);const ho=yield(0,Ai.HS)(_t);[0,-10].includes(ho.status)&&(In(ho),fi(!1))}),io=ho=>{ho=="2"?ai(!0):ai(!1),Ie(ho)},jo=()=>{at.default.info({centered:!0,icon:null,width:424,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:ht.createElement("div",{className:"tc"},ht.createElement("img",{src:Gt,alt:"\u4E8C\u7EF4\u7801",width:182,height:182,style:{pointerEvents:"none",userSelect:"none"}})),okText:"\u6211\u77E5\u9053\u4E86"})},bo=()=>un(void 0,null,function*(){if((0,mt.gy)(ii,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")||Ke=="\u5F53\u524D\u914D\u7F6E")return;en(!0),(yield(0,Re.ZP)(`/api/shixuns/${_t}/apply_recommend_config.json`,{method:"put",body:{data:Ke=="\u63A8\u8350\u914D\u7F6E"?Bn==null?void 0:Bn.recommend:Bn==null?void 0:Bn.high}})).status==0&&(Lt.ZP.success("\u5E94\u7528\u6210\u529F"),en(!1),rt(),Ce())}),Mr=()=>un(void 0,null,function*(){var ho,Tr;if(yield _o(),(0,yi.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),(ho=Di.detail)!=null&&ho.is_jupyter||(Tr=Di.detail)!=null&&Tr.is_jupyter_lab){ii({type:"shixunsDetail/execJupyter",payload:{id:_t}}).then(ua=>{var eo;ua!=null&&ua.identifier&&((eo=Yn.history)==null||eo.push(`/tasks/${ua.identifier}/jupyter`))});return}ii({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const Be=We?yield(0,Ai.BK)({id:_t}):yield(0,Ai.Ir)({id:_t});if(ii({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),Be!=null&&Be.game_identifier||Be!=null&&Be.identifier){(0,yi.xg)(We?`/tasks/${Be==null?void 0:Be.identifier}/jupyter`:`/tasks/${Be.game_identifier}`);return}(Be==null?void 0:Be.status)===-3?(0,yi.eF)():(Be==null?void 0:Be.status)===2?Bo(Be==null?void 0:Be.message):(Be==null?void 0:Be.status)===3&&yo(Be==null?void 0:Be.message)}),_o=()=>new Promise((ho,Tr)=>{var Be;(Be=Hn==null?void 0:Hn.sideBar)!=null&&Be.confirmLeave?at.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:()=>{ii({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ho()},onCancel:()=>{Tr()}}):ho()}),Bo=ho=>{ho=ho!=null&&ho.includes(".json")?ho:`${ho}.json`,at.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ht.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>un(void 0,null,function*(){const Tr=yield(0,Re.ZP)("/api"+ho,{method:"get"});if(!Tr)return;Lt.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const Be=yield(0,Ai.Ir)({id:Tr.shixun_identifier});if(Be!=null&&Be.game_identifier){(0,yi.xg)(`/tasks/${Be.game_identifier}`);return}(Be==null?void 0:Be.status)===2?Bo(Be==null?void 0:Be.message):(Be==null?void 0:Be.status)===3&&yo(Be==null?void 0:Be.message)})})},yo=ho=>{at.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ht.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",ho,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})};return ht.createElement(ht.Fragment,null,ht.createElement(kt.Z,{title:null,placement:"right",open:hn,width:1e3,onClose:rt,closeIcon:null,footer:null},ht.createElement("div",{className:Ct.header_body},ht.createElement("span",null,"\u914D\u7F6E\u4E0E\u76D1\u63A7"),ht.createElement(Et.Z,{className:Ct.close,onClick:rt})),ht.createElement(Dt.default,{activeKey:Ee,onChange:io},ht.createElement(Dt.default.TabPane,{tab:"\u63A8\u8350\u914D\u7F6E",key:1},ht.createElement(jt.Z,{spinning:Yi,size:"large",tip:ht.createElement("div",{style:{color:"#666",fontSize:"14px"}},ht.createElement("div",{style:{color:"#232B40",fontWeight:"bolder",marginBottom:24,marginTop:14}},"\u6B63\u5728\u8BA1\u7B97\u2026"),ht.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",ht.createElement("br",null),"\u8BF7\u8010\u5FC3\u7B49\u5F85\u2026"))},(Bn==null?void 0:Bn.status)==0?ht.createElement(ht.Fragment,null,ht.createElement("div",{className:Ct.recommend_config_introduce},ht.createElement("div",null,"\u5F53\u524D\u914D\u7F6E\uFF1A\u5B9E\u9A8C\u73AF\u5883\u76EE\u524D\u5DF2\u7ECF\u914D\u7F6E\u7684\u8D44\u6E90\u3002"),ht.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"),ht.createElement("div",null,"\u589E\u5F3A\u914D\u7F6E\uFF1A\u9002\u7528\u4E8E\u8D44\u6E90\u6D88\u8017\u8F83\u9AD8\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),ht.createElement("div",{className:Ct.recommend_config},st.map((ho,Tr)=>ht.createElement("div",{className:`${Ct.recommend_config_item} ${ho==Ke?Ct.recommend_config_active_item:""}`,key:ho,onClick:()=>Le(ho)},ht.createElement("div",{className:Ct.item_title},ht.createElement("div",null,ho),Tr==1?ht.createElement("div",{className:Ct.recommend_text},"\u63A8\u8350"):ht.createElement(ht.Fragment,null)),(ho=="\u5F53\u524D\u914D\u7F6E"&&(Bn==null?void 0:Bn.current)||ho=="\u63A8\u8350\u914D\u7F6E"&&(Bn==null?void 0:Bn.recommend)||ho=="\u589E\u5F3A\u914D\u7F6E"&&(Bn==null?void 0:Bn.high)||[]).map((Be,ua)=>ht.createElement("div",{className:Ct.item_content,key:ua},ht.createElement("span",null,Be==null?void 0:Be.image_name),Be!=null&&Be.cpu_limit?ht.createElement("span",null,Be==null?void 0:Be.cpu_limit,"\u6838",Be==null?void 0:Be.memory_limit,"G"):ht.createElement("div",null,ht.createElement("span",null,"\u6682\u65E0\u63A8\u8350"),ht.createElement(Ge.Z,{title:ht.createElement("div",{style:{lineHeight:"22px",padding:5}},"\u5B9E\u9A8C\u73AF\u5883\u4E3A\u7279\u6B8A\u7684\u4E13\u6709\u4E91\u6216\u65E0\u4F7F\u7528\u6570",ht.createElement("br",null),"\u636E\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u7ED9\u51FA\u63A8\u8350\u503C\u3002\u4E00\u952E\u5E94\u7528",ht.createElement("br",null),"\u7684\u65F6\u5019\uFF0C\u5C06\u4F7F\u7528\u539F\u914D\u7F6E\u3002")},ht.createElement(xt.Z,{className:Ct.tooltip})))))))),ht.createElement("div",{className:Ct.recommend_config_footer},ht.createElement("div",null,ht.createElement("span",null,"\u6CA1\u627E\u5230\u5408\u9002\u7684\u914D\u7F6E\uFF1F"),ht.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>jo()},"\u8054\u7CFB\u7BA1\u7406\u5458")),ht.createElement(Mt.ZP,{type:"primary",shape:"round",disabled:Ke=="\u5F53\u524D\u914D\u7F6E",onClick:bo,loading:sn},"\u4E00\u952E\u5E94\u7528"))):Yi?ht.createElement("div",{style:{height:400}}):ht.createElement("div",{className:Ct.no_data},ht.createElement("img",{src:Ut,style:{pointerEvents:"none",userSelect:"none",width:212,height:160}}),ht.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",ht.createElement("br",null),"\u5EFA\u8BAE\u60A8\u5148\u6A21\u62DF\u5B9E\u6218\u5E76\u901A\u5173~"),(Pt==null?void 0:Pt.type)!="\u6311\u6218\u9875\u9762"&&ht.createElement("div",{className:Ct.application,onClick:()=>{Mr(),rt()}},"\u6A21\u62DF\u5B9E\u6218")))),ht.createElement(Dt.default.TabPane,{tab:"\u8D44\u6E90\u76D1\u63A7",key:2},ht.createElement(Ln,{getApi:Xt,identifier:_t,visible:hn,info:Pt})))))};var Dn=(0,Yn.connect)(({globalSetting:kn,practiceSetting:ii,shixunsDetail:Hn})=>({globalSetting:kn,practiceSetting:ii,shixunsDetail:Hn}))(Sn)},11415:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return vt}});var ce=we(59301),at=we(43418),Lt=we(3113),kt=we(8591),Dt=we(99313),jt=we(71418),Ge=we(10311),Mt=we(88897),Ct=we(2595),Et={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"},xt=we(1301),Gt=we(72528),Ut=we(70635),Re=we(97267),te=we(59301),ne=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ke=(Kt,wt,It)=>wt in Kt?ne(Kt,wt,{enumerable:!0,configurable:!0,writable:!0,value:It}):Kt[wt]=It,Me=(Kt,wt)=>{for(var It in wt||(wt={}))xe.call(wt,It)&&ke(Kt,It,wt[It]);if(pe)for(var It of pe(wt))Ae.call(wt,It)&&ke(Kt,It,wt[It]);return Kt},ot=(Kt,wt)=>de(Kt,le(wt)),dt=(Kt,wt,It)=>new Promise((Yt,yn)=>{var Mi=ui=>{try{Nn(It.next(ui))}catch(tt){yn(tt)}},wi=ui=>{try{Nn(It.throw(ui))}catch(tt){yn(tt)}},Nn=ui=>ui.done?Yt(ui.value):Promise.resolve(ui.value).then(Mi,wi);Nn((It=It.apply(Kt,wt)).next())}),vt=({visible:Kt,onOk:wt,onCancel:It,info:Yt})=>{var yn,Mi,wi,Nn,ui;const[tt,He]=(0,ce.useState)("1"),[mn,Zn]=(0,ce.useState)([]),[Qn,nn]=(0,ce.useState)([]),[gn,Ln]=(0,ce.useState)(0),[yi,Yn]=(0,ce.useState)(null),[Ai,mt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{Kt&&(ht(),un(),Sn())},[Kt]);const ht=()=>{He("1"),Zn([]),Yn(null),Ln(0)};(0,ce.useEffect)(()=>{var Pt,_t;((_t=(Pt=Qn==null?void 0:Qn[gn])==null?void 0:Pt.content)==null?void 0:_t.length)>0&&Yn(ot(Me({},Qn[gn].content[0]),{index:0}))},[tt,gn,Qn]);const un=()=>dt(void 0,null,function*(){mt(!0),yield(0,Ut.ZP)("/api/home/cpu_memory_limit.json",{method:"GET"}).then(Pt=>{let{max_cpu:_t,max_memory:We,min_cpu:Ce,min_memory:Ee}=Pt,{cpu:Ie,memory:Ke}=Yt;Zn([{name:"CPU",value:Ie,min:Ce,max:_t,typeName:"\u6838"},{name:"\u5185\u5B58",value:Ke,min:Ee,max:We,typeName:"GB"}])}),mt(!1)}),Sn=()=>dt(void 0,null,function*(){yield(0,Ut.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(Pt=>{var _t;if(nn(Pt),(Pt==null?void 0:Pt.length)>0){let We=ot(Me({},(_t=Pt==null?void 0:Pt[0])==null?void 0:_t.content[0]),{index:0});Yn(We)}})}),Dn=Pt=>{He(Pt),Pt==="2"&&Ln(0)},kn=(Pt,_t)=>{Zn(mn.map(We=>We.name===Pt?_t(We):We))},ii=(Pt,_t)=>{isNaN(Pt)||kn(_t,We=>ot(Me({},We),{value:Pt}))},Hn=Pt=>{var _t;if(console.log("decline",Pt.value),Pt.value=Number(Pt.value),Pt.value<=((_t=Pt.min)!=null?_t:-1/0))return;let We=Pt.value-.5<Pt.min?Pt.min:Pt.value-.5;kn(Pt.name,Ce=>ot(Me({},Ce),{value:We}))},Di=Pt=>{var _t;if(Pt.value=Number(Pt.value),Pt.value>=((_t=Pt.max)!=null?_t:1/0))return;let We=Pt.value+.5>Pt.max?Pt.max:Pt.value+.5;kn(Pt.name,Ce=>ot(Me({},Ce),{value:We}))},hn=(Pt,_t)=>{isNaN(Pt)||kn(_t,We=>ot(Me({},We),{value:Pt}))},rt=Pt=>{if(Pt==null||Number.isInteger(Pt))return Pt;const _t=Pt%1;return _t===.5?Pt:Math.floor(Pt)+(_t<.5?.5:1)};return te.createElement(te.Fragment,null,te.createElement(at.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:Kt,width:752,destroyOnClose:!0,centered:!0,onCancel:It,className:Et.modal,footer:[te.createElement("div",{className:Et.btn_warp,key:"1"},te.createElement(Lt.ZP,{onClick:It},"\u53D6\u6D88"),te.createElement(Lt.ZP,{type:"primary",onClick:()=>{let Pt=Me({},Yt);if(tt=="1")Pt.cpu=mn[0].value,Pt.memory=mn[1].value;else if(tt=="2"){if(!yi){kt.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}Pt=ot(Me({},Pt),{cpu:yi.cpu,memory:yi.memory})}wt(Pt)}},"\u4FDD\u5B58"))]},te.createElement(Dt.default,{activeKey:tt,onChange:Dn},te.createElement(Dt.default.TabPane,{tab:"\u81EA\u5B9A\u4E49\u914D\u7F6E",key:1},te.createElement(jt.Z,{spinning:Ai},mn==null?void 0:mn.map(Pt=>te.createElement("div",{className:Et.con_warp,key:Pt==null?void 0:Pt.name},te.createElement("div",null,Pt==null?void 0:Pt.name),te.createElement("div",null,te.createElement(Ge.Z,{min:Pt==null?void 0:Pt.min,max:Pt==null?void 0:Pt.max,onChange:_t=>ii(_t,Pt==null?void 0:Pt.name),value:Pt==null?void 0:Pt.value,step:.5,style:{width:482,height:6,margin:"0 20px 0 12px"}})),te.createElement("div",{className:`${Et.config_Warp} ${Et.flex}`},te.createElement("div",{className:`${Et.config_btn} ${Et.flex}`,onClick:()=>Hn(Pt)},te.createElement(xt.Z,null)),te.createElement(Mt.Z,{min:Pt==null?void 0:Pt.min,max:Pt==null?void 0:Pt.max,size:"large",step:"0.1",controls:!1,style:{width:50},value:Pt==null?void 0:Pt.value,onChange:_t=>{const We=rt(_t);hn(We,Pt==null?void 0:Pt.name)}}),te.createElement("div",{className:`${Et.config_btn} ${Et.flex}`,onClick:()=>Di(Pt)},te.createElement(Gt.Z,null))),te.createElement("div",null,Pt==null?void 0:Pt.typeName))))),(Qn==null?void 0:Qn.length)>0&&te.createElement(Dt.default.TabPane,{tab:"\u6309\u573A\u666F\u9009\u62E9",key:2},te.createElement("div",{className:Et.sceneList},Qn==null?void 0:Qn.map((Pt,_t)=>te.createElement("div",{className:`${Et.sceneItem} ${gn==_t&&Et.sceneItemActive}`,key:Pt==null?void 0:Pt.id,onClick:()=>{Ln(_t)}},Pt==null?void 0:Pt.name))),((Mi=(yn=Qn==null?void 0:Qn[gn])==null?void 0:yn.content)==null?void 0:Mi.length)>0?te.createElement(Ct.default,{rowSelection:{type:"radio",selectedRowKeys:[yi==null?void 0:yi.index],onChange:(Pt,_t)=>{Yn(_t[0])}},columns:[{title:"CPU",dataIndex:"cpu",align:"center",render:(Pt,_t)=>te.createElement("div",null,Pt,"\u6838")},{title:"\u5185\u5B58",dataIndex:"memory",align:"center",render:(Pt,_t)=>te.createElement("div",null,Pt,"GB")}],dataSource:(wi=Qn==null?void 0:Qn[gn])==null?void 0:wi.content.map((Pt,_t)=>ot(Me({},Pt),{index:_t})),rowKey:"index",pagination:!1,scroll:((ui=(Nn=Qn==null?void 0:Qn[gn])==null?void 0:Nn.content)==null?void 0:ui.length)>3?{y:148}:{}}):te.createElement(Re.Z,null)))))}},35727:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return yt}});var ce=we(59301),at=we(42203),Lt=we(43418),kt=we(8591),Dt=we(3113),jt=we(24905),Ge=we(5112),Mt=we(88522),Ct=we(49127),Et=we(78550),xt=we(88897),Gt=we(10527),Ut=we(23744),Re=we(18032),te=we(61186),ne=we.n(te),de={wrap:"wrap___LhoYE",labelWrap:"labelWrap___kKVu_",label:"label___we33R",labelContent:"labelContent___RWgKj",flexRow:"flexRow___WhVXT",color999:"color999___R1ot6",radio:"radio___S0Uhc",selectSchool:"selectSchool___egsX3",dataPicker:"dataPicker___zNtLB",modal:"modal___J1s9f",colorOrange:"colorOrange___NDyE2",colorYellow:"colorYellow___Ijswi",bottomButton:"bottomButton___sODGQ"},le=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ae=(vt,Kt)=>{var wt={};for(var It in vt)pe.call(vt,It)&&Kt.indexOf(It)<0&&(wt[It]=vt[It]);if(vt!=null&&le)for(var It of le(vt))Kt.indexOf(It)<0&&xe.call(vt,It)&&(wt[It]=vt[It]);return wt},ke=(vt,Kt,wt)=>new Promise((It,Yt)=>{var yn=Nn=>{try{wi(wt.next(Nn))}catch(ui){Yt(ui)}},Mi=Nn=>{try{wi(wt.throw(Nn))}catch(ui){Yt(ui)}},wi=Nn=>Nn.done?It(Nn.value):Promise.resolve(Nn.value).then(yn,Mi);wi((wt=wt.apply(vt,Kt)).next())});const Me=vt=>{if(!vt)return vt;const Kt=vt.split(":");if(Kt[1]=="00"||Kt[1]=="30")return vt;const wt=parseInt(Kt[1]);if(wt<30||wt==60)return[Kt[0],"30"].join(":");if(wt<60){const It=[Kt[0],"00"].join(":"),Yt="YYYY-MM-DD HH:mm",yn=ne()(It,Yt);return yn.add(1,"hours"),yn.format(Yt)}return vt},ot="YYYY-MM-DD HH:mm",dt=vt=>{var Kt=vt,{shixunsDetail:wt,globalSetting:It,loading:Yt,user:yn,dispatch:Mi}=Kt,wi=Ae(Kt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Nn,ui,tt,He,mn,Zn,Qn,nn,gn;const Ln=(0,ce.useRef)(),[yi,Yn]=(0,ce.useState)(),[Ai,mt]=(0,ce.useState)(),[ht,un]=(0,ce.useState)([]),[Sn,Dn]=(0,ce.useState)([]),[kn,ii]=(0,ce.useState)(""),[Hn,Di]=(0,ce.useState)(),[hn,rt]=(0,ce.useState)(),[Pt,_t]=(0,ce.useState)(),We=(ui=(Nn=yn.userInfo)==null?void 0:Nn.shixun)==null?void 0:ui.editable;(0,ce.useEffect)(()=>{var st,dn;Ln.current=(dn=(st=location.pathname)==null?void 0:st.split("/"))==null?void 0:dn[2],Ce()},[]),(0,ce.useEffect)(()=>{var st,dn,sn,en,Xt,ai,Bn,In,Yi,fi,ar,io;wt.setting&&(Yn((dn=(st=wt.setting)==null?void 0:st.shixun)==null?void 0:dn.can_copy),mt((en=(sn=wt.setting)==null?void 0:sn.shixun)==null?void 0:en.use_scope),Di(!!((ai=(Xt=wt.setting)==null?void 0:Xt.shixun)!=null&&ai.opening_time)),rt((In=(Bn=wt.setting)==null?void 0:Bn.shixun)==null?void 0:In.opening_time),un((fi=(Yi=wt.setting)==null?void 0:Yi.shixun)==null?void 0:fi.scope_partment),_t((io=(ar=wt.setting)==null?void 0:ar.shixun)==null?void 0:io.git_size))},[wt.setting]);const Ce=st=>ke(void 0,null,function*(){const dn=yield Mi({type:"shixunsDetail/getDepartments",payload:{q:st}});dn&&Dn(dn.shools_name||[])}),Ee=()=>ke(void 0,null,function*(){var st,dn,sn,en,Xt,ai;const Bn=(yield Mi({type:"shixunsDetail/getShixunQuote",payload:{id:Ln.current}}))||{};Lt.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:ce.createElement("div",{className:`tc font14 ${de.modal}`},!!((st=Bn.subjects)!=null&&st.length)&&ce.createElement(ce.Fragment,null,ce.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230 ",(sn=(dn=Bn.subjects)==null?void 0:dn.splice(0,2))==null?void 0:sn.map(In=>`\u300A${In}\u300B`),"\u7B49",ce.createElement("span",{className:de.colorOrange},Bn==null?void 0:Bn.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),ce.createElement("br",null)),!!((en=Bn.courses)!=null&&en.length)&&ce.createElement(ce.Fragment,null,ce.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(ai=(Xt=Bn.courses)==null?void 0:Xt.splice(0,2))==null?void 0:ai.map(In=>`\u300A${In}\u300B`),"\u7B49",ce.createElement("span",{className:de.colorOrange},Bn==null?void 0:Bn.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),ce.createElement("br",null)),ce.createElement("span",{className:`${de.colorYellow} mt30`},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:()=>ke(void 0,null,function*(){(yield Mi({type:"shixunsDetail/deleteShixun",payload:{id:Ln.current}})).status===1&&(kt.ZP.success("\u64CD\u4F5C\u6210\u529F"),at.history.push("/shixuns"))})})}),Ie=()=>{(0,Re.gy)(Mi,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664")},Ke=st=>{if(ht.includes(st)){kt.ZP.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}ii(null),un([...ht,st])},Le=()=>ke(void 0,null,function*(){if(Hn&&!hn){kt.ZP.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4");return}if(Ai===1&&!ht.length){kt.ZP.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00");return}(yield Mi({type:"shixunsDetail/updatePermissionSetting",payload:{id:Ln.current,scope_partment:Ai===0?null:ht,shixun:{can_copy:yi,use_scope:Ai,opening_time:hn,git_size:Pt}}})).status!==-1&&(kt.ZP.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),Mi({type:"shixunsDetail/getSettingsData",payload:{id:Ln.current}}),Mi({type:"shixunsDetail/getShixunsDetail",payload:{id:Ln.current}}))});return ce.createElement("div",null,ce.createElement("section",{className:de.wrap},ce.createElement("div",{style:{position:"absolute",top:"25px",right:"25px"}},((tt=wt==null?void 0:wt.detail)==null?void 0:tt.shixun_status)!==2?ce.createElement(Dt.ZP,{danger:!0,onClick:Ee},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):ce.createElement(Dt.ZP,{danger:!0,onClick:Ie},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),ce.createElement("div",{className:de.labelWrap},ce.createElement("label",{className:de.label},"\u590D\u5236\uFF1A"),ce.createElement("div",{className:de.labelContent},ce.createElement("div",null,ce.createElement(jt.default,{checked:yi,onChange:st=>Yn(st.target.checked),disabled:!We}),ce.createElement("span",{className:`${de.color999}`},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((He=wt.detail)==null?void 0:He.shixun_status)>1||((mn=wt.detail)==null?void 0:mn.public)===2)&&((Qn=(Zn=wt.setting)==null?void 0:Zn.shixun)==null?void 0:Qn.use_scope)===0&&((nn=wt.detail)==null?void 0:nn.identity)>2)&&ce.createElement("div",{className:de.labelWrap},ce.createElement("label",{className:de.label},"\u516C\u5F00\u7A0B\u5EA6\uFF1A"),ce.createElement("div",{className:de.labelContent},ce.createElement(Ge.ZP.Group,{value:Ai,onChange:st=>mt(st.target.value),disabled:!We},ce.createElement(Ge.ZP,{className:de.radio,value:0},ce.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),ce.createElement("span",{className:de.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),ce.createElement(Ge.ZP,{className:de.radio,value:1},ce.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),ce.createElement("span",{className:de.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),Ai===1&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"mt10"},ce.createElement(Mt.Z,{showSearch:!0,className:de.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:kn,onChange:st=>{ii(st),Ce(st)},disabled:!We,onSelect:Ke,options:Sn==null?void 0:Sn.map(st=>({value:st}))}),ce.createElement("span",{className:de.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),ce.createElement("div",{className:"mt10"},ht==null?void 0:ht.map(st=>We?ce.createElement(Ct.Z,{count:"x",className:"mr20 current",onClick:()=>un(ht.filter(dn=>dn!==st))},ce.createElement(Dt.ZP,{type:"primary",ghost:!0},st)):ce.createElement(Dt.ZP,{type:"primary",ghost:!0,className:"mr20"},st)))))),ce.createElement("div",{className:de.labelWrap},ce.createElement("label",{className:de.label},"\u5F00\u542F\u65F6\u95F4\uFF1A"),ce.createElement("div",{className:de.labelContent},ce.createElement("div",null,ce.createElement(jt.default,{checked:Hn,onChange:st=>Di(st.target.checked),disabled:!We}),ce.createElement("span",{className:`${de.color999} ml10`},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\uFF0C\u624D\u80FD\u5F00\u542F\u5B66\u4E60\uFF1B\u4E0D\u9009\u4E2D\u5219\u5B66\u5458\u5728\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u80FD\u7ACB\u5373\u5F00\u542F\u5B66\u4E60\uFF09")),Hn&&ce.createElement(Et.default,{className:`${de.dataPicker} mt10`,format:ot,locale:Gt.Z,disabled:!We,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:st=>st&&st<ne()().endOf("day").subtract(1,"days"),showTime:{minuteStep:30},value:hn&&ne()(hn,ot),onChange:(st,dn)=>rt(Me(dn))}))),((gn=yn==null?void 0:yn.userInfo)==null?void 0:gn.role)===1&&ce.createElement("div",{className:de.labelWrap,style:{alignItems:"center"}},ce.createElement("label",{className:de.label},"\u4EE3\u7801\u4ED3\u5E93\u5BB9\u91CF\uFF1A"),ce.createElement("div",{className:de.labelContent},ce.createElement("div",null,ce.createElement(xt.Z,{style:{width:150},placeholder:"\u8BF7\u8F93\u5165\u4EE3\u7801\u4ED3\u5E93\u5BB9\u91CF",min:1,max:10240,value:Pt,onChange:st=>{_t(st)}}),ce.createElement("span",{className:"c-grey-999"}," M "))))),ce.createElement(Ut.t,{okText:"\u4FDD\u5B58",hasOkBtn:We,loading:Yt.effects["shixunsDetail/updatePermissionSetting"],onCancel:()=>at.history.push(`/shixuns/${Ln.current}/challenges`),onOk:Le,className:de.bottomButton}))};var yt=(0,at.connect)(({shixunsDetail:vt,loading:Kt,globalSetting:wt,user:It})=>({shixunsDetail:vt,globalSetting:wt,user:It,loading:Kt}))(dt)},56408:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59301),antd__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8591),antd__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(43418),antd__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(20834),antd__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3113),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(24905),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(5112),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(81327),antd__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(88522),antd__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(49127),antd__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6848),antd__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(78550),antd__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(78673),antd__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(88897),umi__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(42203),_index_less_modules__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52525),moment__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(10527),_components_Permission__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(35727),_utils_env__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(10148),_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(18032),_utils_authority__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2119),_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(54517),React=__webpack_require__(59301),__async=($t,zn,we)=>new Promise((ce,at)=>{var Lt=jt=>{try{Dt(we.next(jt))}catch(Ge){at(Ge)}},kt=jt=>{try{Dt(we.throw(jt))}catch(Ge){at(Ge)}},Dt=jt=>jt.done?ce(jt.value):Promise.resolve(jt.value).then(Lt,kt);Dt((we=we.apply($t,zn)).next())});const timeFormat="YYYY-MM-DD HH:mm",handleDateString=$t=>{if(!$t)return $t;const zn=$t.split(":");if(zn[1]=="00"||zn[1]=="30")return $t;const we=parseInt(zn[1]);if(we<30||we==60)return[zn[0],"30"].join(":");if(we<60){const ce=[zn[0],"00"].join(":"),at="YYYY-MM-DD HH:mm",Lt=moment__WEBPACK_IMPORTED_MODULE_3___default()(ce,at);return Lt.add(1,"hours"),Lt.format(at)}return $t};function Setting({user,dispatch,shixunsDetail,practiceSetting}){var _a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n;const[MenuSelectKey,setMenuSelectKey]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("1"),[isShowSetting,setIsShowSetting]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[taskPass,setTaskPass]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[testSetPermission,setTestSetPermission]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[isCopy,setIsCopy]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[openValue,setOpenValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[openAnswer,setOpenAnswer]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[selectDepartmentList,setSelectDepartmentList]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),[departmentList,setDepartmentList]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),[departmentValue,setDepartmentValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),[isOpenTime,setIsOpenTime]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[openTime,setOpenTime]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[codeEditPermission,setCodeEditPermission]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[allowFileUpload,setAllowFileUpload]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[codeHidden,setCodeHidden]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[forbidCopy,setForbidCopy]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[display_git_address,set_display_git_address]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[disableDiscuss,setDisableDiscuss]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[disableAI,setdisableAI]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[openCodeDebugger,setOpenCodeDebugger]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[startPermanent,setStartPermanent]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[openSelfRun,setOpenSelfRun]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[gitSize,setgitSize]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[course_workspace_file_time,setcourse_workspace_file_time]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),[podSwitch,setPodSwitch]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[ai_user,setai_user]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("1"),[openLocalEvaluate,setOpenLocalEvaluate]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[resource_recommend,setresource_recommend]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1);let params=(0,umi__WEBPACK_IMPORTED_MODULE_1__.useParams)();const diffObj={forbid_copy:"forbidCopy",task_pass:"taskPass",test_set_permission:"testSetPermission",code_edit_permission:"codeEditPermission",allow_file_upload:"allowFileUpload",can_copy:"isCopy",use_scope:"openValue",open_answer_and_test:"openAnswer",opening_time:"openTime",is_disable_discuss:"disableDiscuss",display_git_address:"display_git_address",show_code_dir:"codeHidden",ai_reply:"disableAI",open_code_debugger:"openCodeDebugger",start_permanent:"startPermanent",open_self_run:"openSelfRun",exit_delete_pod_switch:"podSwitch",open_local_evaluate:"openLocalEvaluate"},editable=(_b=(_a=user.userInfo)==null?void 0:_a.shixun)==null?void 0:_b.editable,own=(_d=(_c=user.userInfo)==null?void 0:_c.shixun)==null?void 0:_d.own,handleGetDepartments=$t=>__async(this,null,function*(){const zn=yield dispatch({type:"shixunsDetail/getDepartments",payload:{q:$t}});zn&&setDepartmentList(zn.shools_name||[])});(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{var $t,zn;(zn=($t=shixunsDetail.setting)==null?void 0:$t.shixun)!=null&&zn.main_type&&handleInitState()},[shixunsDetail.setting]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{dispatch({type:"shixunsDetail/getSettingsData",payload:params})},[]);const handleSelectDepartment=$t=>{if(selectDepartmentList.includes($t)){antd__WEBPACK_IMPORTED_MODULE_9__.ZP.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([...selectDepartmentList,$t])},handleInitState=()=>{var $t,zn,we,ce,at,Lt,kt,Dt,jt,Ge,Mt,Ct,Et,xt,Gt,Ut,Re,te,ne,de,le,pe,xe,Ae,ke,Me,ot,dt,yt,vt,Kt,wt,It,Yt,yn,Mi,wi,Nn,ui,tt,He,mn,Zn,Qn,nn,gn,Ln;setCodeEditPermission((zn=($t=shixunsDetail.setting)==null?void 0:$t.shixun)==null?void 0:zn.code_edit_permission),setAllowFileUpload((ce=(we=shixunsDetail.setting)==null?void 0:we.shixun)==null?void 0:ce.allow_file_upload),setCodeHidden((Lt=(at=shixunsDetail.setting)==null?void 0:at.shixun)==null?void 0:Lt.show_code_dir),setForbidCopy((Dt=(kt=shixunsDetail.setting)==null?void 0:kt.shixun)==null?void 0:Dt.forbid_copy),setTaskPass((Ge=(jt=shixunsDetail.setting)==null?void 0:jt.shixun)==null?void 0:Ge.task_pass),setTestSetPermission((Ct=(Mt=shixunsDetail.setting)==null?void 0:Mt.shixun)==null?void 0:Ct.test_set_permission),set_display_git_address((Et=shixunsDetail.setting.shixun)==null?void 0:Et.display_git_address),setIsCopy((Gt=(xt=shixunsDetail.setting)==null?void 0:xt.shixun)==null?void 0:Gt.can_copy),setOpenValue((Re=(Ut=shixunsDetail.setting)==null?void 0:Ut.shixun)==null?void 0:Re.use_scope),setOpenAnswer((ne=(te=shixunsDetail.setting)==null?void 0:te.shixun)==null?void 0:ne.open_answer_and_test),setIsOpenTime(!!((le=(de=shixunsDetail.setting)==null?void 0:de.shixun)!=null&&le.opening_time)),setOpenTime((xe=(pe=shixunsDetail.setting)==null?void 0:pe.shixun)==null?void 0:xe.opening_time),setSelectDepartmentList((ke=(Ae=shixunsDetail.setting)==null?void 0:Ae.shixun)==null?void 0:ke.scope_partment),setDisableDiscuss((ot=(Me=shixunsDetail.setting)==null?void 0:Me.shixun)==null?void 0:ot.is_disable_discuss),setdisableAI((yt=(dt=shixunsDetail.setting)==null?void 0:dt.shixun)==null?void 0:yt.ai_reply),setresource_recommend((Kt=(vt=shixunsDetail==null?void 0:shixunsDetail.setting)==null?void 0:vt.shixun)==null?void 0:Kt.resource_recommend),setOpenCodeDebugger((It=(wt=shixunsDetail.setting)==null?void 0:wt.shixun)==null?void 0:It.open_code_debugger),setStartPermanent((yn=(Yt=shixunsDetail.setting)==null?void 0:Yt.shixun)==null?void 0:yn.start_permanent),setOpenSelfRun((wi=(Mi=shixunsDetail.setting)==null?void 0:Mi.shixun)==null?void 0:wi.open_self_run),setgitSize((ui=(Nn=shixunsDetail.setting)==null?void 0:Nn.shixun)==null?void 0:ui.git_size),setcourse_workspace_file_time((He=(tt=shixunsDetail.setting)==null?void 0:tt.shixun)==null?void 0:He.course_workspace_file_time),setPodSwitch((Zn=(mn=shixunsDetail.setting)==null?void 0:mn.shixun)==null?void 0:Zn.exit_delete_pod_switch),setai_user((nn=(Qn=shixunsDetail.setting)==null?void 0:Qn.shixun)==null?void 0:nn.ai_user),setOpenLocalEvaluate((Ln=(gn=shixunsDetail.setting)==null?void 0:gn.shixun)==null?void 0:Ln.open_local_evaluate)};console.log("----",ai_user),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{var _a2,_b2,_c2,_d2;let confirmLeave=!1;(_a2=Object.keys(diffObj).filter(item=>{var _a3;return((_a3=shixunsDetail.setting)==null?void 0:_a3.shixun[item])!=eval(diffObj[item])}))!=null&&_a2.length&&(confirmLeave=!0),selectDepartmentList.length!=((_d2=(_c2=(_b2=shixunsDetail.setting)==null?void 0:_b2.shixun)==null?void 0:_c2.scope_partment)==null?void 0:_d2.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(($t,zn)=>{var we,ce;$t!=((ce=(we=shixunsDetail.setting)==null?void 0:we.shixun)==null?void 0:ce.scope_partment[zn])&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,openAnswer,selectDepartmentList,isOpenTime,openTime,display_git_address,codeHidden,codeEditPermission,allowFileUpload,forbidCopy,disableDiscuss,disableAI,openCodeDebugger,startPermanent,openSelfRun,openLocalEvaluate]);function handSubmeit($t=!1,zn=1){return __async(this,null,function*(){var we,ce;const at=yield dispatch({type:"shixunsDetail/updateSetting",payload:{id:params.id,scope_partment:openValue===0?null:selectDepartmentList,open_answer_and_test:openAnswer,shixun_info:{ai_reply:disableAI,start_permanent:startPermanent,git_size:gitSize,course_workspace_file_time,ai_user,resource_recommend},shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,code_edit_permission:codeEditPermission,allow_file_upload:allowFileUpload,can_copy:isCopy,use_scope:openValue,open_answer_and_test:openAnswer,opening_time:openTime,is_disable_discuss:disableDiscuss,open_code_debugger:openCodeDebugger,open_self_run:openSelfRun,exit_delete_pod_switch:podSwitch,open_local_evaluate:openLocalEvaluate},sync_origin_shixun:$t}});(at==null?void 0:at.status)===0&&((we=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&we.copy_for_exercise||antd__WEBPACK_IMPORTED_MODULE_9__.ZP.success("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}),(ce=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&ce.copy_for_exercise&&(0,_utils__WEBPACK_IMPORTED_MODULE_8__.m)(dispatch,shixunsDetail,params.id,zn))})}const handleDeleteShixun=()=>__async(this,null,function*(){var $t,zn,we,ce,at,Lt;const kt=(yield dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:params.id}}))||{};antd__WEBPACK_IMPORTED_MODULE_10__.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:React.createElement("div",null,!!(($t=kt.subjects)!=null&&$t.length)&&React.createElement(React.Fragment,null,React.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(we=(zn=kt.subjects)==null?void 0:zn.splice(0,2))==null?void 0:we.map(Dt=>`\u300A${Dt}\u300B`),"\u7B49",React.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.colorOrange},kt==null?void 0:kt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),React.createElement("br",null)),!!((ce=kt.courses)!=null&&ce.length)&&React.createElement(React.Fragment,null,React.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(Lt=(at=kt.courses)==null?void 0:at.splice(0,2))==null?void 0:Lt.map(Dt=>`\u300A${Dt}\u300B`),"\u7B49",React.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.colorOrange},kt==null?void 0:kt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),React.createElement("br",null)),React.createElement("span",{className:`${_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.colorYellow} mt30`},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:()=>__async(this,null,function*(){(yield dispatch({type:"shixunsDetail/deleteShixun",payload:{id:params.id}})).status===1&&(antd__WEBPACK_IMPORTED_MODULE_9__.ZP.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_1__.history.push("/shixuns"))})})}),handleDeleteElseShixun=()=>{(0,_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_6__.gy)(dispatch,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664")};function showExitmodel($t){antd__WEBPACK_IMPORTED_MODULE_10__.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:()=>{setMenuSelectKey($t),parseInt($t)===1?(setIsShowSetting(!0),handleInitState()):setIsShowSetting(!1),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return React.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},React.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},React.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),React.createElement(antd__WEBPACK_IMPORTED_MODULE_11__.default,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:$t=>{var zn;if((zn=practiceSetting==null?void 0:practiceSetting.sideBar)!=null&&zn.confirmLeave){showExitmodel($t.key);return}setMenuSelectKey($t.key),parseInt($t.key)===1?(setIsShowSetting(!0),handleInitState()):setIsShowSetting(!1)}},React.createElement(antd__WEBPACK_IMPORTED_MODULE_11__.default.Item,{key:1},"\u8BBE\u7F6E"),React.createElement(antd__WEBPACK_IMPORTED_MODULE_11__.default.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&((_e=shixunsDetail==null?void 0:shixunsDetail.detail)==null?void 0:_e.is_jupyter_lab)&&React.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_4__.Z,null),isShowSetting&&!((_f=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&_f.is_jupyter_lab)&&React.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},React.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},React.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.titlesize,style:{display:"flex"}},React.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),((_g=shixunsDetail==null?void 0:shixunsDetail.detail)==null?void 0:_g.shixun_status)!==2?React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u8DF3\u5173\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:taskPass,disabled:!editable,onChange:$t=>setTaskPass($t.target.checked)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:testSetPermission,disabled:!editable,onChange:$t=>setTestSetPermission($t.target.checked)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),React.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u590D\u5236/\u5408\u5E76/\u62C6\u5206\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:isCopy,onChange:$t=>setIsCopy($t.target.checked),disabled:!editable}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u3001\u5408\u5E76\u548C\u62C6\u5206\u8BE5\u5B9E\u8BAD\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u516C\u5F00\u5B9E\u8BAD\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.Group,{value:openValue,onChange:$t=>setOpenValue($t.target.value),disabled:!editable},React.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{direction:"vertical"},React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP,{value:0},React.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP,{style:{marginTop:"22px"},value:1},React.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")))),openValue===1&&React.createElement(React.Fragment,null,React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.graaytitle},React.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:$t=>{setDepartmentValue($t),handleGetDepartments($t)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map($t=>({value:$t}))})),React.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map($t=>editable?React.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{count:"x",className:"mr20 current",onClick:()=>setSelectDepartmentList(selectDepartmentList.filter(zn=>zn!==$t))},React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{type:"primary",ghost:!0},$t)):React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{type:"primary",ghost:!0,className:"mr20"},$t)))))),!((_i=(_h=shixunsDetail.setting)==null?void 0:_h.shixun)!=null&&_i.is_jupyter)&&!((_k=(_j=shixunsDetail.setting)==null?void 0:_j.shixun)!=null&&_k.is_jupyter_lab)&&React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u516C\u5F00\u7B54\u6848\u548C\u6D4B\u8BD5\u96C6\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.Group,{value:openAnswer,onChange:$t=>setOpenAnswer($t.target.value),disabled:!editable},React.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{direction:"vertical"},React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP,{value:1},React.createElement("span",null,"\u5BF9\u6240\u6709\u8BA4\u8BC1\u6559\u5E08\u516C\u5F00"),((_m=(_l=shixunsDetail.setting)==null?void 0:_l.shixun)==null?void 0:_m.status)!==2&&React.createElement(antd__WEBPACK_IMPORTED_MODULE_18__.Z,{title:"\u8BE5\u9009\u9879\u9700\u5728\u5B9E\u8DF5\u9879\u76EE\u53D1\u5E03\u540E\u751F\u6548"},React.createElement("i",{style:{marginLeft:10,color:"#e9b357",fontSize:14},className:"iconfont icon-jinggao-3"})),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u67E5\u770B\uFF09")),React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP,{style:{marginTop:"22px"},value:2},React.createElement("span",null,"\u4EC5\u5B9E\u8BAD\u5408\u4F5C\u8005\u53EF\u89C1"),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u4EC5\u5141\u8BB8\u5B9E\u8BAD\u5408\u4F5C\u8005\u53EF\u4EE5\u76F4\u63A5\u67E5\u770B\uFF0C\u5176\u4ED6\u7528\u6237\u9700\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\uFF09")))))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u5F00\u542F\u65F6\u95F4\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:isOpenTime,onChange:$t=>{setIsOpenTime($t.target.checked),$t.target.checked||setOpenTime("")},disabled:!editable}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.graaytitle},React.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.default,{className:`${_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.dataPicker}`,format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_20__.Z,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:$t=>$t&&$t<moment__WEBPACK_IMPORTED_MODULE_3___default()().endOf("day").subtract(1,"days"),showTime:{minuteStep:30},value:openTime&&moment__WEBPACK_IMPORTED_MODULE_3___default()(openTime,timeFormat),onChange:($t,zn)=>setOpenTime(handleDateString(zn))})))),React.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.titlesize,style:{marginTop:"20px"}},"\u529F\u80FD"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:display_git_address,disabled:!editable,onChange:$t=>set_display_git_address($t.target.checked)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:codeHidden,disabled:!editable,onChange:$t=>{setCodeHidden($t.target.checked)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&React.createElement("div",{style:{background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},React.createElement("div",{style:{display:"flex",marginTop:"20px"}},React.createElement("label",{style:{width:"150px",textAlign:"right"}},"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent,style:{padding:"0px"}},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:codeEditPermission,disabled:!editable,onChange:$t=>{setCodeEditPermission($t.target.checked),$t.target.checked||setAllowFileUpload($t.target.checked)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09")))),React.createElement("div",{style:{display:"flex",marginTop:"10px",marginBottom:"20px"}},React.createElement("label",{style:{width:"150px",textAlign:"right"}},"\u5141\u8BB8\u4E0A\u4F20\u6587\u4EF6\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent,style:{padding:"0px"}},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:allowFileUpload,disabled:!editable,onChange:$t=>{setAllowFileUpload($t.target.checked),$t.target.checked&&setCodeEditPermission($t.target.checked)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5141\u8BB8\u7528\u6237\u5B9E\u8BAD\u6311\u6218\u65F6\uFF0C\u5728\u4EE3\u7801\u76EE\u5F55\u4E2D\u4E0A\u4F20\u6587\u4EF6\uFF0C\u5426\u5219\u4E0D\u5141\u8BB8\u4E0A\u4F20\uFF09"))))))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.default,{checked:forbidCopy,disabled:!editable,onChange:$t=>setForbidCopy($t.target.checked)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),own&&editable&&React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u8C03\u8BD5\u5668",React.createElement("a",{href:"https://www.educoder.net/forums/36718",target:"_blank",className:"iconfont icon-xiaowenhao2 font14 ml5"}),"\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:openCodeDebugger,onChange:$t=>setOpenCodeDebugger($t)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u5458\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF0C\u53EF\u4EE5\u4F7F\u7528\u4EE3\u7801\u8C03\u8BD5\u5DE5\u5177\u68C0\u67E5\u4EE3\u7801\u8FD0\u884C\u60C5\u51B5\u3002\u76EE\u524D\u4EC5\u652F\u6301Python3, Java, C\u8BED\u8A00\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u81EA\u6D4B\u8FD0\u884C\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:openSelfRun,onChange:$t=>setOpenSelfRun($t)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u5458\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF0C\u53EF\u4EE5\u4F7F\u7528\u81EA\u6D4B\u8FD0\u884C\u529F\u80FD\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u672C\u5730\u8BC4\u6D4B\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:openLocalEvaluate,onChange:$t=>setOpenLocalEvaluate($t)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B9E\u8BAD\u6311\u6218\u7528\u6237\u5728\u4F7F\u7528\u5BA2\u6237\u7AEF\u8FDB\u884C\u8BC4\u6D4B\u65F6\uFF0C\u5C06\u4F7F\u7528\u7528\u6237\u672C\u5730\u7684\u7B97\u529B\u8D44\u6E90\uFF0C\u51CF\u5C11\u7F51\u7EDC\u5E26\u6765\u7684\u5F71\u54CD\u3002\u76EE\u524D\u4EC5\u652F\u6301Python3\u8BED\u8A00 ",React.createElement("a",{target:"_blank",href:"/download"},"\xA0\u4E0B\u8F7D\u5BA2\u6237\u7AEF\xA0"),"\uFF09")))),((_n=user==null?void 0:user.userInfo)==null?void 0:_n.role)===1&&React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap,style:{alignItems:"center"}},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u4EE3\u7801\u4ED3\u5E93\u5BB9\u91CF \uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_22__.Z,{style:{width:150},placeholder:"\u8BF7\u8F93\u5165\u4EE3\u7801\u4ED3\u5E93\u5BB9\u91CF",min:1,max:10240,value:gitSize,onChange:$t=>{setgitSize($t)}}),React.createElement("span",{className:"c-grey-999"}," M ")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap,style:{alignItems:"center"}},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:startPermanent,onChange:$t=>{if(!(0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__.Ny)()){(0,_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_6__.pW)(2);return}setStartPermanent($t)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u5458\u5728\u901A\u7528\u4E91\u5B9E\u9A8C\u73AF\u5883\u4E0B\u7684/data/workspace\u76EE\u5F55\u5C06\u957F\u671F\u4FDD\u5B58\uFF0C\u6559\u5E08\u53D1\u9001\u5B9E\u8DF5\u9879\u76EE\u81F3\u8BFE\u5802\u540E\u53EF\u9009\u62E9\u5BFC\u51FA\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E ",React.createElement("a",{target:"_blank",href:_utils_env__WEBPACK_IMPORTED_MODULE_5__.Z.API_SERVER+"/images/educoder/shixuns/\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u64CD\u4F5C\u6307\u5F15.pdf"},"\xA0\u64CD\u4F5C\u6307\u5F15\xA0"),"\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap,style:{alignItems:"center"}},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u9ED8\u8BA4\u91CA\u653E\u5B9E\u9A8C\u8D44\u6E90\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:podSwitch,onChange:$t=>{setPodSwitch($t)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5728\u9000\u51FA\u5B9E\u8BAD\u65F6\u9ED8\u8BA4\u91CA\u653E\u5B9E\u9A8C\u8D44\u6E90\uFF09")))),React.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.titlesize,style:{marginTop:"20px"}}," ","\u8BC4\u8BBA\u533A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:!disableDiscuss,onChange:$t=>setDisableDiscuss(!$t)}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u667A\u80FD\u63A8\u8350\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:resource_recommend,onChange:$t=>{setresource_recommend($t)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5C06\u5B9E\u9A8C\u5173\u8054\u77E5\u8BC6\u56FE\u8C31\u5E76\u5F00\u542F\u667A\u80FD\u63A8\u8350\u540E\uFF0C\u7CFB\u7EDF\u5C06\u4F1A\u6839\u636E\u5B66\u751F\u7B54\u9898\u548C\u77E5\u8BC6\u70B9\u638C\u63E1\u7684\u60C5\u51B5\uFF0C\u667A\u80FD\u63A8\u8350\u76F8\u5173\u7684\u5B66\u4E60\u8D44\u6E90\uFF09")))),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label},"\u667A\u80FD\u95EE\u7B54\uFF1A"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement("div",null,React.createElement(antd__WEBPACK_IMPORTED_MODULE_21__.Z,{checked:disableAI,onChange:$t=>{setdisableAI($t)}}),React.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u7684\u8BC4\u8BBA\u5C06\u7531\u667A\u80FD\u673A\u5668\u4EBA\u8FDB\u884C\u56DE\u7B54\uFF09")))),disableAI&&React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelWrap},React.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.label}),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.labelContent},React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.Group,{value:ai_user+"",onChange:$t=>{setai_user($t.target.value)}},React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP,{value:"1"},"\u4EE5\u5934\u6B4C\u667A\u80FD\u52A9\u6559\u8EAB\u4EFD\u56DE\u7B54"),React.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.ZP,{value:"2"},"\u4EE5\u5B9E\u8BAD\u521B\u5EFA\u8005\u8EAB\u4EFD\u56DE\u7B54"))))),React.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:()=>{umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/shixuns/${params.id}/challenges`)}},"\u53D6\u6D88"),React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:()=>{var $t,zn;if(isOpenTime&&!openTime){antd__WEBPACK_IMPORTED_MODULE_9__.ZP.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4");return}if(openValue===1&&!selectDepartmentList.length){antd__WEBPACK_IMPORTED_MODULE_9__.ZP.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00");return}($t=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&$t.is_fork_from_creator&&((zn=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&zn.copy_for_exercise)?dispatch({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"setting",fn:(we,ce)=>{handSubmeit(we,ce)}}}):handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&React.createElement("div",{style:{padding:"40px"}},React.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.itemWrap},React.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.img,src:`${_utils_env__WEBPACK_IMPORTED_MODULE_5__.Z.IMG_SERVER}/images/${practiceSetting==null?void 0:practiceSetting.user_image_url}`}),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.itemContent},React.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.nameWrap},React.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.name},practiceSetting==null?void 0:practiceSetting.user_name),React.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.actionGroup})),React.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.schoolWrap},React.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.school},practiceSetting==null?void 0:practiceSetting.user_school)),React.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",practiceSetting==null?void 0:practiceSetting.created_at),React.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",practiceSetting==null?void 0:practiceSetting.updated_at)))))}__webpack_exports__.Z=(0,umi__WEBPACK_IMPORTED_MODULE_1__.connect)(({user:$t,shixunsDetail:zn,practiceSetting:we})=>({user:$t,shixunsDetail:zn,practiceSetting:we}))(Setting)},67669:function($t,zn,we){"use strict";we.r(zn),we.d(zn,{default:function(){return Bt}});var ce=we(59301),at={flex_box_center:"flex_box_center___bPWMH",flex_space_between:"flex_space_between___fjQJK",flex_box_vertical_center:"flex_box_vertical_center___WWAEa",flex_box_center_end:"flex_box_center_end___mQNLW",flex_box_column:"flex_box_column___lOsG0",menu:"menu___szqfh",warehouse:"warehouse___SVzfZ",header:"header___DfoMH",title:"title___y2IOb",content:"content___pGWUf",left:"left___eYHD7",right:"right___RbSHM",loading:"loading___g8ST2",empty:"empty___JqJWS",tabs:"tabs___fuMob",line:"line___Wav7D",footer:"footer___xymfv",commit:"commit___ZwkDv",blueLight:"blueLight___f52KB",filePathWrp:"filePathWrp____p6mm",filePath:"filePath___qkzoJ",bottom0:"bottom0___MrVME"},Lt=we(42203),kt=we(99313),Dt=we(6848),jt=we(8591),Ge=we(20834),Mt=we(95237),Ct=we(43604),Et=we(38854),xt=we(43418),Gt=we(71418),Ut=we(3113),Re=we(86914),te=we(78673),ne=we(56102),de=we(78241),le=we(92832),pe={wrap:"wrap___yTLAj",modal:"modal___B3dwx",title:"title___FHscn",path:"path___o7aJh",colorBlue:"colorBlue___p4I9Y",width240:"width240___UNGpD",filePath:"filePath___uTJLX"},xe=Object.defineProperty,Ae=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ot=(Ht,pn,zt)=>pn in Ht?xe(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,dt=(Ht,pn)=>{for(var zt in pn||(pn={}))ke.call(pn,zt)&&ot(Ht,zt,pn[zt]);if(Ae)for(var zt of Ae(pn))Me.call(pn,zt)&&ot(Ht,zt,pn[zt]);return Ht},yt=(Ht,pn)=>{var zt={};for(var li in Ht)ke.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&Ae)for(var li of Ae(Ht))pn.indexOf(li)<0&&Me.call(Ht,li)&&(zt[li]=Ht[li]);return zt},vt=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const Kt=Ht=>{var pn=Ht,{shixunsDetail:zt,globalSetting:li,loading:ir,user:cr,dispatch:ri,isRepository:Ei}=pn,Xn=yt(pn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const tn=(0,Lt.useLocation)(),Jr=(0,Lt.useParams)(),[Tn,zr]=(0,ce.useState)({}),Or=(0,ce.useRef)(),[ur]=de.default.useForm(),[ko,Zr]=(0,ce.useState)("");(0,ce.useEffect)(()=>{Xn.visible&&ur.resetFields()},[Xn.visible]),(0,ce.useEffect)(()=>{const ro=sessionStorage.getItem("pathArray");if(ro){const Fn=ro.split(",").join("/"),ti=Fn.indexOf("/")===0?Fn.substr(1):Fn;Zr(ti)}},[]),(0,ce.useEffect)(()=>{var ro,Fn;Or.current=(Fn=(ro=tn.pathname)==null?void 0:ro.split("/"))==null?void 0:Fn[2]},[]);const Gi=(...ro)=>vt(void 0,[...ro],function*(Fn={}){const ti=yield ri({type:"shixunsDetail/addRepositoryFile",payload:{id:Jr.id,message:Fn.commitMessage,content:"",path:(Xn.defaultPath?Xn.defaultPath+"/":"")+Fn.path+"/"+(Fn.file||".gitkeep"),secret_repository:Ei?void 0:!0}});ti!=null&&ti.url&&(jt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Xn.onOK({path:(Xn.defaultPath?Xn.defaultPath+"/":"")+Fn.path+"/"+(Fn.file||".gitkeep"),name:Fn.path.split("/")[Fn.path.split("/").length-1]}),Xn.onClose())}),Er=()=>{var ro,Fn;Lt.history.push(`/shixuns/${Or.current}/${(Fn=(ro=tn.pathname)==null?void 0:ro.split("/"))==null?void 0:Fn[3]}${ko?`/master/shixun_show/${ko}`:""}`)};return ce.createElement(xt.default,{width:"60%",centered:!0,open:Xn.visible,wrapClassName:pe.modal,onOk:()=>{ur.submit()},onCancel:Xn.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},ce.createElement("section",{className:pe.bg},ce.createElement("div",{className:pe.wrap},ce.createElement(de.default,{className:"mt10",form:ur,scrollToFirstError:!0,layout:"vertical",onFinish:Gi,onChange:()=>{var ro,Fn,ti,Ue;const fo=dt({},ur.getFieldsValue()),So=(ro=fo==null?void 0:fo.path)==null?void 0:ro.split(""),rr=(Fn=fo==null?void 0:fo.file)==null?void 0:Fn.split("");(ti=So==null?void 0:So.filter(Xi=>Xi=="/"))!=null&&ti.length&&(fo.path=fo.path.substring(0,fo.path.length-1)),(Ue=rr==null?void 0:rr.filter(Xi=>Xi=="/"))!=null&&Ue.length&&(fo.file=fo.file.substring(0,fo.path.length-1)),ur.setFieldsValue(dt({},fo)),zr(fo)}},ce.createElement(de.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},ce.createElement(Mt.Z,null,ce.createElement(Ct.Z,null,ce.createElement("span",{className:pe.filePath},Xn.defaultPath+"/")),ce.createElement(Ct.Z,{flex:"1"},ce.createElement(de.default.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ce.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"middle"}))))),ce.createElement(de.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},ce.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"middle"})),ce.createElement(de.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ce.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"middle"}))))))};var wt=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt,user:li})=>({shixunsDetail:Ht,globalSetting:zt,user:li,loading:pn.models.index}))(Kt),It=we(36866),Yt=we(54517),yn=we(59301),Mi=Object.defineProperty,wi=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,tt=(Ht,pn,zt)=>pn in Ht?Mi(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,He=(Ht,pn)=>{for(var zt in pn||(pn={}))Nn.call(pn,zt)&&tt(Ht,zt,pn[zt]);if(wi)for(var zt of wi(pn))ui.call(pn,zt)&&tt(Ht,zt,pn[zt]);return Ht},mn=(Ht,pn)=>{var zt={};for(var li in Ht)Nn.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&wi)for(var li of wi(Ht))pn.indexOf(li)<0&&ui.call(Ht,li)&&(zt[li]=Ht[li]);return zt},Zn=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const Qn=Ht=>{var pn=Ht,{shixunsDetail:zt,globalSetting:li,loading:ir,user:cr,dispatch:ri,isRepository:Ei}=pn,Xn=mn(pn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const tn=(0,Lt.useLocation)(),Jr=(0,Lt.useParams)(),[Tn,zr]=(0,ce.useState)({}),Or=(0,ce.useRef)(),[ur]=de.default.useForm(),[ko,Zr]=(0,ce.useState)("");(0,ce.useEffect)(()=>{Xn.visible&&ur.resetFields()},[Xn.visible]),(0,ce.useEffect)(()=>{const ro=sessionStorage.getItem("pathArray");if(ro){const Fn=ro.split(",").join("/"),ti=Fn.indexOf("/")===0?Fn.substr(1):Fn;Zr(ti)}},[]),(0,ce.useEffect)(()=>{var ro,Fn;Or.current=(Fn=(ro=tn.pathname)==null?void 0:ro.split("/"))==null?void 0:Fn[2]},[]);const Gi=(...ro)=>Zn(void 0,[...ro],function*(Fn={},ti=!1,Ue=1){var fo,So;const rr=yield ri({type:"shixunsDetail/addRepositoryFile",payload:{id:Jr.id,message:Fn.commitMessage,content:Fn.codeMirror,path:(Xn.defaultPath?Xn.defaultPath+"/":"")+Fn.path,secret_repository:Ei?void 0:!0,sync_origin_shixun:ti}});rr!=null&&rr.url&&((fo=zt==null?void 0:zt.detail)!=null&&fo.copy_for_exercise||jt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Xn.onOK({path:(Xn.defaultPath?Xn.defaultPath+"/":"")+Fn.path,name:Fn.path.split("/")[Fn.path.split("/").length-1]}),Xn.onClose()),(So=zt==null?void 0:zt.detail)!=null&&So.copy_for_exercise&&(0,Yt.m)(ri,zt,Jr.id,Ue)}),Er=()=>{var ro,Fn;Lt.history.push(`/shixuns/${Or.current}/${(Fn=(ro=tn.pathname)==null?void 0:ro.split("/"))==null?void 0:Fn[3]}${ko?`/master/shixun_show/${ko}`:""}`)};return yn.createElement(xt.default,{width:"60%",open:Xn.visible,wrapClassName:pe.modal,destroyOnClose:!0,centered:!0,onOk:()=>{ur.submit()},onCancel:Xn.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},yn.createElement("section",{className:pe.bg},yn.createElement("div",{className:pe.wrap},yn.createElement(de.default,{className:"mt10",form:ur,scrollToFirstError:!0,layout:"vertical",onFinish:ro=>{var Fn,ti;(Fn=zt==null?void 0:zt.detail)!=null&&Fn.is_fork_from_creator&&((ti=zt==null?void 0:zt.detail)!=null&&ti.copy_for_exercise)?(Xn.onClose(),ri({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:ro,type:"wareHouse",fn:(Ue,fo,So)=>{Gi(Ue,fo,So)}}})):Gi(ro)},onChange:()=>{var ro,Fn;const ti=He({},ur.getFieldsValue()),Ue=(ro=ti==null?void 0:ti.path)==null?void 0:ro.split("");((Fn=Ue==null?void 0:Ue.filter(fo=>fo=="/"))==null?void 0:Fn.length)>1&&(ti.path=ti.path.substring(0,ti.path.length-1)),ur.setFieldsValue(He({},ti)),zr(ti)}},yn.createElement(de.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},yn.createElement(Mt.Z,null,yn.createElement(Ct.Z,null,yn.createElement("span",{className:pe.filePath},Xn.defaultPath+"/")),yn.createElement(Ct.Z,{flex:"1"},yn.createElement(de.default.Item,{name:"path",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},yn.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"middle"}))))),yn.createElement(de.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},yn.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"middle"})),yn.createElement("div",{className:"mt10 mb20"},yn.createElement(de.default.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}],style:{marginBottom:0}},yn.createElement(It.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))};var nn=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt,user:li})=>({shixunsDetail:Ht,globalSetting:zt,user:li,loading:pn.models.index}))(Qn),gn=Object.defineProperty,Ln=Object.getOwnPropertySymbols,yi=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,Ai=(Ht,pn,zt)=>pn in Ht?gn(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,mt=(Ht,pn)=>{for(var zt in pn||(pn={}))yi.call(pn,zt)&&Ai(Ht,zt,pn[zt]);if(Ln)for(var zt of Ln(pn))Yn.call(pn,zt)&&Ai(Ht,zt,pn[zt]);return Ht},ht=(Ht,pn)=>{var zt={};for(var li in Ht)yi.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&Ln)for(var li of Ln(Ht))pn.indexOf(li)<0&&Yn.call(Ht,li)&&(zt[li]=Ht[li]);return zt},un=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const Sn=Ht=>{var pn=Ht,{shixunsDetail:zt,globalSetting:li,loading:ir,user:cr,dispatch:ri,isRepository:Ei}=pn,Xn=ht(pn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const tn=(0,Lt.useLocation)(),Jr=(0,Lt.useParams)(),[Tn,zr]=(0,ce.useState)({}),Or=(0,ce.useRef)(),[ur]=de.default.useForm(),[ko,Zr]=(0,ce.useState)(""),[Gi,Er]=(0,ce.useState)("");(0,ce.useEffect)(()=>{Xn.visible&&ur.resetFields()},[Xn.visible]),(0,ce.useEffect)(()=>{const ti=Xn.defaultPath.split("/");ti.length===1?(Zr(""),Er(Xn.defaultPath)):(Er(ti.pop()),Zr(ti.join("/")+"/"))},[Xn.defaultPath]),(0,ce.useEffect)(()=>{var ti,Ue;Or.current=(Ue=(ti=tn.pathname)==null?void 0:ti.split("/"))==null?void 0:Ue[2]},[]);const ro=(...ti)=>un(void 0,[...ti],function*(Ue={}){const fo=yield ri({type:"shixunsDetail/moveGitFile",payload:{id:Jr.id,from:Xn.defaultPath,to:ko+Ue.path,message:Ue.commitMessage||`${Xn.defaultPath} rename to ${ko}${Ue.path} `,secret_repository:Ei}});(fo==null?void 0:fo.status)===0&&(jt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Xn.onOK({path:Ue.path,name:Ue.path}),Xn.onClose())}),Fn=()=>{var ti,Ue;Lt.history.push(`/shixuns/${Or.current}/${(Ue=(ti=tn.pathname)==null?void 0:ti.split("/"))==null?void 0:Ue[3]}${ko?`/master/shixun_show/${ko}`:""}`)};return ce.createElement(xt.default,{width:"40%",open:Xn.visible,wrapClassName:pe.modal,centered:!0,onOk:()=>{ur.submit()},onCancel:Xn.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},ce.createElement("section",{className:pe.bg},ce.createElement("div",{className:pe.wrap},ce.createElement(de.default,{className:"mt10",form:ur,scrollToFirstError:!0,layout:"vertical",onFinish:ro,onChange:()=>{var ti,Ue;const fo=mt({},ur.getFieldsValue()),So=(ti=fo==null?void 0:fo.path)==null?void 0:ti.split("");((Ue=So==null?void 0:So.filter(rr=>rr=="/"))==null?void 0:Ue.length)>1&&(fo.path=fo.path.substring(0,fo.path.length-1)),ur.setFieldsValue(mt({},fo)),zr(fo)}},ce.createElement(de.default.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},ce.createElement(Mt.Z,null,ce.createElement(Ct.Z,{flex:"1"},ce.createElement(de.default.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ce.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"middle",defaultValue:Gi}))))),ce.createElement(de.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},ce.createElement(le.default,{placeholder:`\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08${Xn.defaultPath} rename to \u65B0\u7684\u540D\u79F0 \uFF09`,size:"middle"}))))))};var Dn=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt,user:li})=>({shixunsDetail:Ht,globalSetting:zt,user:li,loading:pn.models.index}))(Sn),kn=we(10148),ii=we(70635),Hn=we(24645),Di=we(73869),hn={wrap:"wrap___T4tjB",title:"title____QnQT",path:"path___PLUeD",colorBlue:"colorBlue___eL7QF"},rt=we(59301),Pt=Object.defineProperty,_t=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ee=(Ht,pn,zt)=>pn in Ht?Pt(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,Ie=(Ht,pn)=>{for(var zt in pn||(pn={}))We.call(pn,zt)&&Ee(Ht,zt,pn[zt]);if(_t)for(var zt of _t(pn))Ce.call(pn,zt)&&Ee(Ht,zt,pn[zt]);return Ht},Ke=(Ht,pn)=>{var zt={};for(var li in Ht)We.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&_t)for(var li of _t(Ht))pn.indexOf(li)<0&&Ce.call(Ht,li)&&(zt[li]=Ht[li]);return zt},Le=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const{Dragger:st}=Hn.default,dn=Ht=>{var pn=Ht,{shixunsDetail:zt,globalSetting:li,loading:ir,user:cr,dispatch:ri,isRepository:Ei}=pn,Xn=Ke(pn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const tn=(0,Lt.useLocation)(),Jr=(0,Lt.useParams)(),[Tn,zr]=(0,ce.useState)({}),Or=(0,ce.useRef)(),[ur]=de.default.useForm(),[ko,Zr]=(0,ce.useState)([]),[Gi,Er]=(0,ce.useState)();let ro;(0,ce.useEffect)(()=>{Xn.visible&&(ur.resetFields(),Zr([]))},[Xn.visible]),(0,ce.useEffect)(()=>{Or.current=Jr.id},[]),(0,ce.useEffect)(()=>{const rr=sessionStorage.getItem("pathArray");if(rr){const Xi=rr.split(",").join("/"),Ui=Xi.indexOf("/")===0?Xi.substr(1):Xi;Er(Ui)}},[]);const Fn=rr=>{var Xi,Ui,qo,gs;if(ro=rr.file.name,rr.file.status==="done"||rr.file.status==="uploading"){if(Zr(rr.fileList),!rr.file.response)return;if(((Xi=rr.file.response)==null?void 0:Xi.status)===0){(Ui=zt==null?void 0:zt.detail)!=null&&Ui.copy_for_exercise||(jt.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),ur.validateFields());return}Zr(ko.filter(Ps=>Ps.uid!==rr.file.uid)),(qo=rr.file.response)!=null&&qo.message&&jt.ZP.info((gs=rr.file.response)==null?void 0:gs.message)}},ti=rr=>Le(void 0,null,function*(){if(!rr.response){jt.ZP.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01");return}(yield ri({type:"shixunsDetail/deleteGitFile",payload:{id:Jr.id,path:Gi?`${Gi}/${rr.name}`:rr.name,message:ur.getFieldValue("commitMessage")||`\u5220\u9664\u4E86${Gi?`${Gi}/${rr.name}`:rr.name}`,secret_repository:Ei?null:!0}})).status===0&&(Zr(ko.filter(Ui=>Ui.uid!==rr.uid)),jt.ZP.info("\u5220\u9664\u6210\u529F"))}),Ue={height:300,multiple:!0,withCredentials:!0,openFileDialogOnClick:!!ur.getFieldValue("commitMessage"),data:()=>Le(void 0,null,function*(){return new Promise((rr,Xi)=>Le(void 0,null,function*(){setTimeout(()=>Le(void 0,null,function*(){const Ui=yield ur.getFieldsValue(),qo=Ie(Ie({},{path:Xn.defaultPath?Xn.defaultPath:"",message:Tn.commitMessage||`\u4E0A\u4F20\u4E86${ro}`}),Ei?{}:{secret_repository:!0});rr(qo)}),200)}))}),fileList:ko,method:"post",action:`${kn.Z.API_SERVER}/api/shixuns/${Or.current}/upload_git_file.json`,onChange:Fn,onRemove:ti,beforeUpload:rr=>(ro=rr.name,rr.size/1024/1024>50?(jt.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0)},fo=(rr=!1,Xi=1)=>Le(void 0,null,function*(){var Ui;const qo=Ie(Ie({},{path:Xn.defaultPath?Xn.defaultPath:"",message:Tn.commitMessage||`\u4E0A\u4F20\u4E86${ro}`}),Ei?{}:{secret_repository:!0});for(let gs=0;gs<ko.length;gs++){const Ps=new FormData;Ps.append("file",ko[gs].originFileObj),Ps.append("sync_origin_shixun",rr.toString()),Object.keys(qo).forEach(Ho=>{Ps.append(Ho,qo[Ho].toString())});const Ro=yield(0,ii.ZP)(`/api/shixuns/${Or.current}/upload_git_file.json`,{method:"post",body:Ps},!0)}Xn.onClose(),Xn.onOK({path:Xn.defaultPath}),So(),(Ui=zt==null?void 0:zt.detail)!=null&&Ui.copy_for_exercise&&(0,Yt.m)(ri,zt,Jr.id,Xi)}),So=()=>{var rr,Xi;Lt.history.push(`/shixuns/${Or.current}/${(Xi=(rr=tn.pathname)==null?void 0:rr.split("/"))==null?void 0:Xi[3]}${Gi?`/master/shixun_show/${Gi}`:""}`)};return rt.createElement(xt.default,{open:Xn.visible,onOk:rr=>{ur.submit()},centered:!0,onCancel:Xn.onClose,width:"70%"},rt.createElement("section",{className:hn.bg},rt.createElement("div",{className:hn.wrap},rt.createElement("div",{className:hn.title},"\u4E0A\u4F20\u6587\u4EF6"),rt.createElement(de.default,{className:"mt10",form:ur,scrollToFirstError:!0,layout:"vertical",onFinish:()=>Le(void 0,null,function*(){var rr,Xi;yield ur.validateFields(),(rr=zt==null?void 0:zt.detail)!=null&&rr.is_fork_from_creator&&((Xi=zt==null?void 0:zt.detail)!=null&&Xi.copy_for_exercise)?(Xn.onClose(),ri({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"wareHouse",fn:(Ui,qo)=>{fo(Ui,qo)}}})):fo()}),onValuesChange:()=>zr(Ie({},ur.getFieldsValue()))},rt.createElement(de.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},rt.createElement(le.default,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),rt.createElement(de.default.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,validator(rr,Xi){return(ko==null?void 0:ko.length)===0?Promise.reject(new Error("\u8BF7\u9009\u62E9\u6587\u4EF6")):Promise.resolve()}}]},rt.createElement("div",{onClick:()=>{if(!ur.getFieldValue("commitMessage")){jt.ZP.warning("\u8BF7\u5148\u586B\u5199\u63D0\u4EA4\u4FE1\u606F");return}}},rt.createElement(st,Ie({},Ue),rt.createElement("div",null,rt.createElement("i",{className:`iconfont icon-shangchuan font50 ${hn.colorBlue}`})),rt.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",rt.createElement("span",{className:`${hn.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20\uFF08\u5982\u679C\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC750MB,\u8BF7\u4E0A\u4F20\u81F3\u6570\u636E\u96C6\uFF09"))))))),rt.createElement(Di.Z,{onFinish:rr=>Er(rr)})))};var sn=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt,user:li})=>({shixunsDetail:Ht,globalSetting:zt,user:li,loading:pn.models.index}))(dn),en={flex_box_center:"flex_box_center___UqJuy",flex_space_between:"flex_space_between___kWKf7",flex_box_vertical_center:"flex_box_vertical_center___nu70j",flex_box_center_end:"flex_box_center_end___NpRXJ",flex_box_column:"flex_box_column___mXaJ7",headLeft:"headLeft___CFA1O",colorBlue:"colorBlue___tdx2e",wrap:"wrap___Q6mHI",nodata:"nodata___f2U7q",nodataText:"nodataText___UUFGT",content:"content___nlH4h",gitCode:"gitCode___jaHbo",ellipsis:"ellipsis___wqs5z",menu:"menu___E01hA",overlayClass:"overlayClass___LrvQr",tips:"tips___XoHVF",gitTree:"gitTree___VsBuj"},Xt={wrap:"wrap___qIbzI",content:"content___cWjqb",mainPathWrap:"mainPathWrap___QP5mq",colorBlue:"colorBlue___zUy77"},ai=Object.defineProperty,Bn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,fi=(Ht,pn,zt)=>pn in Ht?ai(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,ar=(Ht,pn)=>{for(var zt in pn||(pn={}))In.call(pn,zt)&&fi(Ht,zt,pn[zt]);if(Bn)for(var zt of Bn(pn))Yi.call(pn,zt)&&fi(Ht,zt,pn[zt]);return Ht},io=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const jo=({shixunsDetail:Ht,globalSetting:pn,loading:zt,dispatch:li,title:ir,pathList:cr=[],showInputPath:ri=!1,isMergeSelectFile:Ei=!1,onFinish:Xn=()=>{}})=>{const[tn]=de.default.useForm(),Jr=(0,Lt.useParams)(),Tn=(0,Lt.useLocation)(),zr=(0,ce.useRef)(),[Or,ur]=(0,ce.useState)(""),[ko,Zr]=(0,ce.useState)(""),[Gi,Er]=(0,ce.useState)([]),[ro,Fn]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{var Xi,Ui;zr.current=((Ui=(Xi=Tn.pathname)==null?void 0:Xi.split("/"))==null?void 0:Ui[3])==="repository"},[]),(0,ce.useEffect)(()=>{if(Ht.actionTabs.key!=="Repository-SelectFilePath")return;const Xi=cr.join("/");let Ui=[];cr.map((qo,gs)=>{gs===0?Ui.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${qo}`,path:Xi}):Ui.push({val:`/${qo}`,path:Xi})}),Er(Ui),ur(Xi),Zr(Xi),ti(Xi)},[Ht.actionTabs.key]);const ti=Xi=>io(void 0,null,function*(){const Ui=yield li({type:zr.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Jr.id,path:Xi}});Ui&&Fn(Ui.trees||[])}),Ue=Xi=>{let Ui=Or;Xi.type==="tree"&&(Gi.length?Gi.push({val:`/${Xi.name}`,path:Xi.name}):Gi.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${Xi.name}`,path:Xi.name}),Er(Gi),Ui=Or?`${Or}/${Xi.name}`:Xi.name,ur(Ui)),ti(Ui)},fo=(Xi,Ui)=>{const qo=Gi.filter((Ps,Ro)=>Ro<=Ui);Er(qo);const gs=qo.filter((Ps,Ro)=>Ro!==0).map(Ps=>Ps.val).join("").substr(1);ur(gs),ti(gs)},So=()=>io(void 0,null,function*(){const Xi=tn==null?void 0:tn.getFieldsValue(),Ui=Or?`${Or}${Xi!=null&&Xi.name?`/${Xi==null?void 0:Xi.name}`:""}`:Xi==null?void 0:Xi.name;if(Ei){Xn(Ui),rr();return}if(ri){yield tn.validateFields();const qo=yield li({type:"shixunsDetail/uploadGitFolder",payload:ar(ar({},{id:Jr.id,path:Ui}),zr.current?{}:{secret_repository:!0})});Xn(ko),qo.status===0&&jt.ZP.info("\u65B0\u5EFA\u6210\u529F")}else Xn(Ui),jt.ZP.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");rr()}),rr=()=>{li({type:"shixunsDetail/setActionTabs",payload:{}}),tn.resetFields()};return ce.createElement(xt.default,{centered:!0,title:ir||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,open:Ht.actionTabs.key==="Repository-SelectFilePath",onOk:So,onCancel:rr},ce.createElement("div",{className:Xt.wrap},ce.createElement("div",{className:Xt.content},ce.createElement("div",{className:Xt.mainPathWrap},!!(Gi!=null&&Gi.length)&&Gi.map((Xi,Ui)=>ce.createElement("a",{key:Ui,onClick:()=>fo(Xi,Ui)},Xi.val))),!!(ro!=null&&ro.length)&&ro.map((Xi,Ui)=>Xi.type==="tree"&&ce.createElement("a",{key:Ui,onClick:()=>Ue(Xi)},ce.createElement("i",{className:`iconfont icon-wenjianjia ${Xt.colorBlue}`}),Xi.name))),ce.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),ce.createElement("div",{className:"mt5 mb5"},Or),ri&&ce.createElement(de.default,{form:tn,scrollToFirstError:!0,className:"mt20"},ce.createElement(de.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ce.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};var bo=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt})=>({shixunsDetail:Ht,globalSetting:zt,loading:pn.models.index}))(jo),Mr=we(19362),_o=we(18290),Bo=we(20387),yo=we(58130),ho=we(18032),Tr=we(48922),Be=Object.defineProperty,ua=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,Oi=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,ci=(Ht,pn,zt)=>pn in Ht?Be(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,Un=(Ht,pn)=>{for(var zt in pn||(pn={}))Oi.call(pn,zt)&&ci(Ht,zt,pn[zt]);if(Wn)for(var zt of Wn(pn))Ri.call(pn,zt)&&ci(Ht,zt,pn[zt]);return Ht},Zt=(Ht,pn)=>ua(Ht,eo(pn)),ln=(Ht,pn)=>{var zt={};for(var li in Ht)Oi.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&Wn)for(var li of Wn(Ht))pn.indexOf(li)<0&&Ri.call(Ht,li)&&(zt[li]=Ht[li]);return zt},Tt=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const{DirectoryTree:An}=Re.default,Hi=Ht=>{var pn=Ht,{shixunsDetail:zt,globalSetting:li,loading:ir,user:cr,activeKey:ri,dispatch:Ei,practiceSetting:Xn,isRepository:tn,treeData:Jr,setTreeData:Tn}=pn,zr=ln(pn,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Or,ur,ko,Zr,Gi,Er,ro;const Fn=(0,Lt.useParams)(),ti=(0,Lt.useLocation)(),[Ue,fo]=(0,ce.useState)(),[So,rr]=(0,ce.useState)(!1),[Xi,Ui]=(0,ce.useState)(!1),[qo,gs]=(0,ce.useState)(!1),[Ps,Ro]=(0,ce.useState)(!1),[Ho,Rr]=(0,ce.useState)("");let[yr,Eo]=(0,ce.useState)([]),[oi,Na]=(0,ce.useState)([]);const[qa,tl]=(0,ce.useState)([]),[Ta,sa]=(0,ce.useState)(!1),[Oa,nl]=(0,ce.useState)(),[Qt,Su]=(0,ce.useState)(),[Ia,qt]=(0,ce.useState)(""),[ys,Tl]=(0,ce.useState)(),[Ol,ws]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{Tn([]),cu(""),localStorage.warehouseHideTip||sa(!0)},[ti.pathname,tn]);const Ss=(wr="")=>Tt(void 0,null,function*(){(yield(0,Bo.Zt)({id:Fn.id,secret_dir_path:wr}))&&Tl(wr)}),eu=wr=>{var ca;return ce.createElement(Ge.default,{className:en.menu,onClick:pa=>{switch(Rr(wr.path||""),pa.key){case"1":(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),rr(!0);break;case"2":(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),gs(!0);break;case"3":(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Ro(!0);break;case"4":(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),Ui(!0);break;case"5":(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),vd(wr.path,wr.name,wr);break;case"6":(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Dd(wr);break}}},(wr.type==="topTree"||wr.type==="tree")&&ce.createElement(Ge.default.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(wr.type==="topTree"||wr.type==="tree")&&ce.createElement(Ge.default.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(wr.type==="topTree"||wr.type==="tree")&&ce.createElement(Ge.default.Item,{key:"3"},"\u4E0A\u4F20"),wr.type!=="topTree"&&wr.type!=="tree"&&((ca=zt==null?void 0:zt.detail)==null?void 0:ca.public)<2&&ce.createElement(Ge.default.Item,{key:"4"},"\u91CD\u547D\u540D"),wr.type!=="topTree"&&ce.createElement(ne.CopyToClipboard,{text:`/data/workspace/myshixun/${tn?"":"secret/"}${wr==null?void 0:wr.path}`,onCopy:()=>jt.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(Ge.default.Item,{key:"6"},ce.createElement(ce.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),wr.type!=="topTree"&&ce.createElement(Ge.default.Item,{key:"5"},"\u5220\u9664"))},il=(wr,ca)=>wr.map(pa=>(ca==""?pa.path=ca+pa.name:pa.path=ca+"/"+pa.name,pa.title=ce.createElement(Mt.Z,{className:"font14"},ce.createElement(Ct.Z,{flex:"1"},ce.createElement(Mt.Z,null,pa.type==="blob"&&ce.createElement(Ct.Z,{flex:"20px",style:{marginLeft:-20}},ce.createElement("span",{className:"iconfont icon-wenjian11 font12"})),ce.createElement(Ct.Z,{flex:"1"},ce.createElement("span",{className:" multi_ellipsis1"},pa.name)))),ce.createElement(Ct.Z,null,(pa.type==="blob"||pa.type==="tree")&&ce.createElement(Et.Z,{dropdownRender:()=>eu(pa),className:en.ellipsis},ce.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),pa.disableCheckbox=Ue&&Ue!==pa.name,pa.className=pa.type==="tree"?en.pl23:"",pa.checkable=pa.type!=="tree",pa.isLeaf=pa.type!=="tree",pa.children=pa.type==="tree"&&[],pa.key=pa.path,pa)),os=wr=>{Ei({type:"practiceSetting/setSideBarTabs",payload:{selectPath:wr}})},rl=(wr,ca)=>Tt(void 0,null,function*(){const pa=wr.split("/");yield cu(Ho),setTimeout(()=>{os(wr),yr=[pa[0]||""],oi=[wr],Na([...oi]),Eo([...yr])},150)}),ku=(wr,ca)=>{if(ca=="")Jr=[...wr],Tn([...wr]);else{let pa=hc(Jr,ca,wr);Jr=pa,Tn([...pa])}};function hc(wr,ca,pa){return wr.map(Cr=>Cr.key===ca?(Cr.children=[...pa],Un({},Cr)):Cr.children?Zt(Un({},Cr),{children:hc(Cr.children,ca,pa)}):Cr)}const cu=(wr="")=>Tt(void 0,null,function*(){var ca,pa;const Cr=yield Ei({type:tn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Fn.id,path:wr}});if(Cr){if((ca=Cr.trees)!=null&&ca.length){let Al=il([...Cr.trees],wr);ku(Al,wr),tl(Cr.trees||[]),Su(wr||""),console.log("handleGetRepository:",Al,wr),setTimeout(()=>console.log(Jr,Cr.trees,wr,999999),2e3)}else wr==""&&Tn([]);nl(((pa=Cr.commits)==null?void 0:pa[0])||{})}return Cr}),Nu=wr=>Tt(void 0,null,function*(){return new Promise((ca,pa)=>Tt(void 0,null,function*(){wr.children.length&&ca(),qt(wr.path),yield cu(wr.path),ca()}))}),ao=(wr,ca)=>Tt(void 0,null,function*(){var pa;console.log("handleSelectTree",wr,ca.nativeEvent.target.nodeName,ca);const Cr=()=>{os(ca.node.path),wr=[ca.node.path],Na([...wr])};ca.nativeEvent.target.nodeName==="svg"||ca.nativeEvent.target.nodeName==="LI"||ca.nativeEvent.target.nodeName==="I"||ca.node.type==="blob"&&((pa=Xn==null?void 0:Xn.sideBar)!=null&&pa.confirmLeave?xt.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:()=>{Cr(),Ei({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Cr())}),vd=(wr,ca,pa)=>{xt.default.confirm({centered:!0,title:`\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6${pa.children?"\u5939":""}?`,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Tt(void 0,null,function*(){const Cr=yield Ei({type:"shixunsDetail/deleteGitFile",payload:{id:Fn.id,path:wr,message:`\u5220\u9664${wr}`,secret_repository:tn?null:!0}});let Al=wr.split("/");if((Cr==null?void 0:Cr.status)===0){jt.ZP.info("\u5220\u9664\u6210\u529F"),Al.splice(Al.length-1,1);const Bu=yield cu(Al.length>1?Al.join("/"):"");return Bu!=null&&Bu.trees||(Al.splice(Al.length-1,1),yield cu(Al.length>1?Al.join("/"):"")),os(""),!0}else(Cr==null?void 0:Cr.status)===-3?xt.default.confirm({title:"\u5220\u9664\u5931\u8D25",centered:!0,content:ce.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",wr,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:()=>{window.location.href=`/shixuns/${Fn.id}/edit/${Cr==null?void 0:Cr.message}/tab=2`}}):(Cr==null?void 0:Cr.status)===-4&&xt.default.confirm({title:"\u5220\u9664\u5931\u8D25",centered:!0,content:ce.createElement("div",null,Cr==null?void 0:Cr.message),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:()=>{window.location.href=`/shixuns/${Fn.id}/edit?tabId=service`}})})})},Dd=wr=>{console.log(wr,"item")},bc=(wr,ca)=>Tt(void 0,null,function*(){if(console.log("handleExpand",ca),ca.nativeEvent.target.nodeName==="svg"||ca.nativeEvent.target.nodeName==="path"||ca.nativeEvent.target.nodeName==="LI")return!0;yield Nu(ca.node),yr.includes(ca.node.path)?yr.splice(yr.indexOf(ca.node.path),1):yr.push(ca.node.path),Eo([...yr])}),Ld=()=>{sa(!1),localStorage.warehouseHideTip=!0},lh=wr=>Tt(void 0,null,function*(){var ca;let pa,Cr="",Al,Bu;switch(tn){case!0:Cr="\u5F00\u542F\u7248\u672C\u5E93",Al="\u5F00\u542F",Bu="\u4E0D\u5F00\u542F",pa=ce.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002");break;case!1:(ca=zt==null?void 0:zt.detail)!=null&&ca.secret_repository?(Cr="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Al="\u786E\u5B9A",Bu="\u53D6\u6D88",pa=ce.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(Cr="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Al="\u4E0D\u4F7F\u7528",Bu="\u4F7F\u7528",pa=ce.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002"));break}!tn&&(0,ho.gy)(Ei,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93")||xt.default.confirm({title:Cr,okText:Al,cancelText:Bu,content:pa,onOk:()=>{var us;(0,yo.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",Cr]),!tn&&!((us=zt==null?void 0:zt.detail)!=null&&us.secret_repository)||tr(wr)},onCancel:()=>{var us;!tn&&!((us=zt==null?void 0:zt.detail)!=null&&us.secret_repository)&&tr(wr)}})}),tr=wr=>Tt(void 0,null,function*(){tn?(yield(0,Bo.h4)(Un({},Fn)),Ei({type:"practiceSetting/getCommonData",payload:Un({},Fn)})):yield(0,Bo.K0)(Zt(Un({},Fn),{is_secret_repository:wr})),cu(),Ei({type:"shixunsDetail/getShixunsDetail",payload:{id:Fn.id}})}),ll=wr=>{console.log(wr)},Ra=wr=>Tt(void 0,null,function*(){console.log(wr);const ca=wr.node.key,pa=wr.dragNode.key,Cr=wr.node.pos.split("-"),Al=wr.dropPosition-Number(Cr[Cr.length-1]);if(wr.dragNode.type==="tree"){jt.ZP.warning("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55");return}if(wr.node.type!=="tree"){jt.ZP.warning("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E");return}if((yield Ei({type:"shixunsDetail/moveGitFile",payload:Un({id:Fn.id,from:wr.dragNode.path,to:wr.node.path+"/"+wr.dragNode.name,message:`${wr.dragNode.path} move to ${wr.node.path+"/"+wr.dragNode.name} `},tn?{}:{secret_repository:!0})})).status===0){os(""),yield cu("");for(let ps=0;ps<yr.length;ps++)yr[ps]!=""&&(yield cu(yr[ps]))}});return ce.createElement("section",{className:en.bg},ce.createElement("div",{className:en.contentbg},ce.createElement("div",{className:en.wrap},ce.createElement(Mt.Z,{className:en.gitCode},ce.createElement(Ct.Z,{flex:"1"},ce.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),tn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",ce.createElement(te.Z,{className:tn&&((Or=zt==null?void 0:zt.detail)!=null&&Or.init_repository)?"hide":"ml10",checked:tn?(ko=zt==null?void 0:zt.detail)==null?void 0:ko.init_repository:(ur=zt==null?void 0:zt.detail)==null?void 0:ur.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:lh})),ce.createElement(Ct.Z,null,ce.createElement(Et.Z,{dropdownRender:()=>eu({type:"topTree"}),className:"current"},ce.createElement(Dt.Z,{open:Ta,title:ce.createElement("div",{className:"font16"},ce.createElement(Mr.Z,{style:{position:"relative",left:-35},onClick:()=>Ld()}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",ce.createElement("span",{onClick:()=>Ld(),className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:en.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},tn&&((Zr=zt==null?void 0:zt.detail)==null?void 0:Zr.init_repository)&&ce.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!tn&&((Gi=zt==null?void 0:zt.detail)==null?void 0:Gi.secret_repository)&&ce.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!Jr.length&&!tn&&ce.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},ce.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),Jr.length?ce.createElement(ce.Fragment,null,ce.createElement("div",{className:en.content},ri==="1"&&ce.createElement("div",{className:en.tips},"\u63D0\u793A\uFF1A",ce.createElement("br",null),'\u4EE3\u7801\u8FD0\u884C\u5728\u670D\u52A1\u5668/data/workspace/myshixun/\u4E0B\uFF0C\u5982\u679C\u4EE3\u7801 \u9700\u8981\u7528\u5230\u6587\u4EF6\u8DEF\u5F84\u65F6\uFF0C\u60A8\u5C06\u9F20\u6807\u79FB\u5165\u4ED3\u5E93\u6587\u4EF6\u6216\u76EE\u5F55\u53F3\u4FA7\u7684"..." \u56FE\u6807\uFF0C\u9009\u62E9\u590D\u5236\u8DEF\u5F84\u5F97\u5230\u6587\u4EF6\u7684\u7EDD\u5BF9\u8DEF\u5F84\u3002'),ce.createElement(An,{disabled:!!ir.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:Jr,switcherIcon:ce.createElement(_o.Z,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:5,left:-2}}),onExpand:bc,expandedKeys:yr,selectedKeys:oi,onSelect:ao,draggable:!0,onDragEnter:ll,onDrop:Ra,className:en.gitTree}))):"",!Jr.length&&tn&&((Er=zt==null?void 0:zt.detail)==null?void 0:Er.init_repository)&&ce.createElement(gr,null),!Jr.length&&!tn&&((ro=zt==null?void 0:zt.detail)==null?void 0:ro.secret_repository)&&ce.createElement(gr,null))),ce.createElement(Dn,{visible:Xi,defaultPath:Ho,onClose:()=>Ui(!1),isRepository:!tn,onOK:wr=>Tt(void 0,null,function*(){const ca=Ho.split("/");ca.pop(),yield cu(ca.join("/")),os("")})}),ce.createElement(nn,{visible:So,defaultPath:Ho,onClose:()=>rr(!1),isRepository:tn,onOK:wr=>{rl(wr.path,wr.name)}}),ce.createElement(wt,{visible:qo,defaultPath:Ho,onClose:()=>gs(!1),isRepository:tn,onOK:wr=>{rl(wr.path,wr.name)}}),ce.createElement(sn,{defaultPath:Ho,visible:Ps,isRepository:tn,onClose:()=>Ro(!1),onOK:wr=>Tt(void 0,null,function*(){const ca=Ho.split("/");yield cu(Ho),yr=[ca[0]||""],oi=[Ho],Na([...oi]),Eo([...yr])})}),ce.createElement(bo,{pathList:Ho==null?void 0:Ho.split("/"),showInputPath:!0,isMergeSelectFile:Ol,onFinish:wr=>{Ol?Ss(wr):cu(wr),ws(!1)}}))},gr=()=>ce.createElement("div",{className:`mt20 pb50 ${en.nodata}`},ce.createElement("div",{className:en.headLeft},"\u63D0\u793A\uFF1A",ce.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B",ce.createElement("br",null),"\u4E24\u79CD\u65B9\u5F0F\u6765\u4F7F\u7528\uFF1A",ce.createElement("br",null),"1\u3001",ce.createElement("a",{href:"/forums/2784",target:"_blank"},"Git\u5BA2\u6237\u7AEF")," \u4E0A\u4F20\u5DF2\u6709\u6587\u4EF6\u6765\u5F00\u59CB\u4F7F\u7528\u3002",ce.createElement("br",null),"2\u3001\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6\u3002",ce.createElement("br",null),"3\u3001\u5982\u679C\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC750MB,\u8BF7\u4E0A\u4F20\u81F3\u6570\u636E\u96C6\u3002"),ce.createElement("img",{width:"100%",src:Tr.Oe}));var sr=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt,practiceSetting:li,user:ir})=>({shixunsDetail:Ht,globalSetting:zt,user:ir,practiceSetting:li,loading:pn}))(Hi),Rn={flex_box_center:"flex_box_center___JYIA5",flex_space_between:"flex_space_between___OOSa6",flex_box_vertical_center:"flex_box_vertical_center___s1AAj",flex_box_center_end:"flex_box_center_end___Ou9x8",flex_box_column:"flex_box_column___fXhOh",commitWrap:"commitWrap___xJGHF",wrap:"wrap___OEGuw",colorGray:"colorGray___nocDG",content:"content___Cvvjf",itemTime:"itemTime___wIggD",imageUrl:"imageUrl___C3Dsm",blueLight:"blueLight___qEiQB",divider:"divider___G5Y2d",empty:"empty___L1pRU"},Ti=we(28103),qr=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,Ot=(Ht,pn)=>{var zt={};for(var li in Ht)_r.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&qr)for(var li of qr(Ht))pn.indexOf(li)<0&&di.call(Ht,li)&&(zt[li]=Ht[li]);return zt},Ii=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const xn=Ht=>{var pn=Ht,{shixunsDetail:zt,globalSetting:li,loading:ir,user:cr,dispatch:ri,isRepository:Ei}=pn,Xn=Ot(pn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const tn=(0,Lt.useParams)(),[Jr,Tn]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{zr()},[Ei]);const zr=()=>Ii(void 0,null,function*(){const Or=yield ri({type:"shixunsDetail/getRepositoryCommit",payload:{id:tn.id,secret_repository:Ei?void 0:!0}});Or&&Tn(Or.commits||[])});return ce.createElement(ce.Fragment,null,Jr==""&&ce.createElement("div",{className:Rn.empty},ce.createElement("img",{src:Tr.em,width:"258"}),ce.createElement("br",null),ce.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Jr!=""&&ce.createElement("section",{className:Rn.bg},ce.createElement("div",{className:Rn.wrap},ce.createElement("div",{className:Rn.content},Jr==null?void 0:Jr.map(Or=>{var ur,ko;return ce.createElement("div",null,ce.createElement(Mt.Z,{align:"middle",className:"c-white font16"},ce.createElement(Ct.Z,null,Or.title)),ce.createElement(Mt.Z,{align:"middle",className:"mt20 "},ce.createElement(Ct.Z,null,ce.createElement("img",{className:Rn.imageUrl,src:kn.Z.IMG_SERVER+"/"+((ur=Or.author)==null?void 0:ur.image_url)})),ce.createElement(Ct.Z,{className:Rn.blueLight},ce.createElement("span",{className:"ml20"},(ko=Or.author)==null?void 0:ko.username)),ce.createElement(Ct.Z,null,ce.createElement("span",{className:`ml20 ${Rn.blueLight}`},"\u63D0\u4EA4\u4E8E"),ce.createElement("span",{className:`ml20 ${Rn.blueLight}`},Or.time))),ce.createElement(Ti.Z,{className:Rn.divider}))})))))};var jn=(0,Lt.connect)(({shixunsDetail:Ht,loading:pn,globalSetting:zt,user:li})=>({shixunsDetail:Ht,globalSetting:zt,user:li,loading:pn.models.index}))(xn),Ft=we(79646),bt=we(59301),rn=Object.defineProperty,Sr=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable,Hr=(Ht,pn,zt)=>pn in Ht?rn(Ht,pn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ht[pn]=zt,no=(Ht,pn)=>{for(var zt in pn||(pn={}))qn.call(pn,zt)&&Hr(Ht,zt,pn[zt]);if(Ni)for(var zt of Ni(pn))Wi.call(pn,zt)&&Hr(Ht,zt,pn[zt]);return Ht},vi=(Ht,pn)=>Sr(Ht,ki(pn)),Ji=(Ht,pn)=>{var zt={};for(var li in Ht)qn.call(Ht,li)&&pn.indexOf(li)<0&&(zt[li]=Ht[li]);if(Ht!=null&&Ni)for(var li of Ni(Ht))pn.indexOf(li)<0&&Wi.call(Ht,li)&&(zt[li]=Ht[li]);return zt},Aa=(Ht,pn,zt)=>new Promise((li,ir)=>{var cr=Xn=>{try{Ei(zt.next(Xn))}catch(tn){ir(tn)}},ri=Xn=>{try{Ei(zt.throw(Xn))}catch(tn){ir(tn)}},Ei=Xn=>Xn.done?li(Xn.value):Promise.resolve(Xn.value).then(cr,ri);Ei((zt=zt.apply(Ht,pn)).next())});const{TabPane:uo}=kt.default,Ir=Ht=>{var pn=Ht,{globalSetting:zt,loading:li,dispatch:ir,practiceSetting:cr,shixunsDetail:ri}=pn,Ei=Ji(pn,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Xn,tn,Jr,Tn,zr,Or,ur,ko,Zr,Gi,Er,ro,Fn,ti,Ue,fo,So,rr,Xi;const[Ui,qo]=(0,ce.useState)("1"),[gs,Ps]=(0,ce.useState)("1");let[Ro,Ho]=(0,ce.useState)();const Rr=(0,ce.useRef)(),[yr,Eo]=(0,ce.useState)(!0),[oi,Na]=(0,ce.useState)(["2","1"]),[qa,tl]=(0,ce.useState)([]),Ta=(0,ce.useRef)(),sa=(0,Lt.useParams)(),Oa=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:bt.createElement("span",null,bt.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),bt.createElement(Dt.Z,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},bt.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];(0,ce.useEffect)(()=>{var Ia,qt,ys,Tl,Ol,ws,Ss,eu,il,os,rl,ku,hc,cu,Nu,ao,vd,Dd;try{((ys=(qt=(Ia=ri==null?void 0:ri.fileContent)==null?void 0:Ia.content)==null?void 0:qt.content)!=null&&ys.length||((Ol=(Tl=ri==null?void 0:ri.fileContent)==null?void 0:Tl.content)==null?void 0:Ol.content)=="")&&(((ws=ri==null?void 0:ri.fileContent)==null?void 0:ws.file_type)==="txt"?(Rr.current=window.decodeURIComponent(escape(window.atob((eu=(Ss=ri==null?void 0:ri.fileContent)==null?void 0:Ss.content)==null?void 0:eu.content))),Ro=window.decodeURIComponent(escape(window.atob((os=(il=ri==null?void 0:ri.fileContent)==null?void 0:il.content)==null?void 0:os.content))),Ho(Ro)):(Rr.current=(ku=(rl=ri==null?void 0:ri.fileContent)==null?void 0:rl.content)==null?void 0:ku.content,Ro=(cu=(hc=ri==null?void 0:ri.fileContent)==null?void 0:hc.content)==null?void 0:cu.content,Ho(Ro)))}catch(bc){Rr.current=window.atob((ao=(Nu=ri==null?void 0:ri.fileContent)==null?void 0:Nu.content)==null?void 0:ao.content),Ro=window.atob((Dd=(vd=ri==null?void 0:ri.fileContent)==null?void 0:vd.content)==null?void 0:Dd.content),Ho(Ro),jt.ZP.warning("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",ri.fileContent.content)},[(Xn=ri==null?void 0:ri.fileContent)==null?void 0:Xn.content]),(0,ce.useEffect)(()=>{var Ia;const qt=(Ia=cr==null?void 0:cr.sideBar)==null?void 0:Ia.selectPath.split("/");Na(qt)},[(tn=cr==null?void 0:cr.sideBar)==null?void 0:tn.selectPath]);const nl=Ia=>{Ho(Ia);let qt=-1;Ia===Rr.current?qt=0:qt=1,ir({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!qt}})};(0,ce.useEffect)(()=>{new Promise((Ia,qt)=>Aa(void 0,null,function*(){var ys,Tl,Ol;if(((ys=cr==null?void 0:cr.sideBar)==null?void 0:ys.selectPath)!==""&&((Tl=cr==null?void 0:cr.sideBar)!=null&&Tl.selectPath)){const ws=yield ir({type:"shixunsDetail/getFileContent",payload:{id:sa.id,path:(Ol=cr==null?void 0:cr.sideBar)==null?void 0:Ol.selectPath,secret_repository:yr?null:!0}});ws!=null&&ws.content||(ws==null?void 0:ws.content)==""||ir({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}})}}))},[(Jr=cr==null?void 0:cr.sideBar)==null?void 0:Jr.selectPath]);const Qt=bt.createElement(Ge.default,{className:at.menu,style:{background:"#24294b"},onClick:Ia=>{var qt;!((qt=ri==null?void 0:ri.detail)!=null&&qt.secret_repository)&&Ia.key==="2"&&Ps("1"),qo(Ia.key),Ia.key==="1"?Eo(!0):Eo(!1)}},bt.createElement(Ge.default.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Oa.filter(Ia=>{var qt,ys;return!((qt=ri==null?void 0:ri.detail)!=null&&qt.init_repository)||(ys=ri==null?void 0:ri.detail)!=null&&ys.is_jupyter_lab?Ia.id!=="2":Ia}).map((Ia,qt)=>bt.createElement(Ge.default.Item,{className:"leaveClick",key:Ia.id},Ia.name))),Su=(Ia=!1,qt=1)=>Aa(void 0,null,function*(){var ys,Tl,Ol,ws;const Ss=yield ir({type:"shixunsDetail/updateRepositoryFile",payload:{id:sa.id,path:(Tl=(ys=ri==null?void 0:ri.fileContent)==null?void 0:ys.params)==null?void 0:Tl.path,content:Ro,secret_repository:yr?null:!0,sync_origin_shixun:Ia}});Ss!=null&&Ss.content&&((Ol=ri==null?void 0:ri.detail)!=null&&Ol.copy_for_exercise||jt.ZP.success("\u4FDD\u5B58\u6210\u529F"),ir({type:"practiceSetting/setSideBarTabs",payload:vi(no({},cr.sideBar),{confirmLeave:!1})})),(ws=ri==null?void 0:ri.detail)!=null&&ws.copy_for_exercise&&(0,Yt.m)(ir,ri,sa.id,qt)});return bt.createElement("div",{className:at.warehouse},bt.createElement("div",{className:at.header},bt.createElement(Mt.Z,{align:"middle",className:"w100 c-white",style:{height:60}},bt.createElement(Ct.Z,{flex:"1"},bt.createElement(Mt.Z,{align:"middle"},bt.createElement(Ct.Z,null,bt.createElement(Et.Z,{dropdownRender:()=>Qt,className:at.menu},bt.createElement("span",{className:"font16 c-white current ml20"},Oa.find(Ia=>Ia.id===Ui).name," ",bt.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),bt.createElement(Ct.Z,{flex:"81px"},bt.createElement("div",{className:at.line})),bt.createElement(Ct.Z,null,bt.createElement(kt.default,{className:at.tabs,activeKey:gs,onChange:Ia=>{var qt;(qt=cr==null?void 0:cr.sideBar)!=null&&qt.confirmLeave?xt.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:()=>{Ps(Ia),ir({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(Ps(Ia),ir({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},bt.createElement(uo,{tab:bt.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),yr&&((Tn=ri==null?void 0:ri.detail)==null?void 0:Tn.init_repository)&&bt.createElement(uo,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!yr&&((zr=ri==null?void 0:ri.detail)==null?void 0:zr.secret_repository)&&bt.createElement(uo,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(yr&&((Or=ri==null?void 0:ri.repository)==null?void 0:Or.git_url)||!yr&&((ur=ri==null?void 0:ri.secretRepository)==null?void 0:ur.git_url))&&bt.createElement(bt.Fragment,null,bt.createElement(Ct.Z,null,bt.createElement("span",{className:at.title},"\u4ED3\u5E93\u5730\u5740:"),bt.createElement("input",{value:yr?(ko=ri==null?void 0:ri.repository)==null?void 0:ko.git_url:(Zr=ri==null?void 0:ri.secretRepository)==null?void 0:Zr.git_url}),bt.createElement(ne.CopyToClipboard,{text:yr?(Gi=ri==null?void 0:ri.repository)==null?void 0:Gi.git_url:(Er=ri==null?void 0:ri.secretRepository)==null?void 0:Er.git_url,onCopy:()=>jt.ZP.success("\u590D\u5236\u6210\u529F")},bt.createElement(Dt.Z,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},bt.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),bt.createElement("div",{className:at.content,style:{overflow:"auto"}},gs==="1"&&bt.createElement(bt.Fragment,null,bt.createElement("aside",{className:at.left},bt.createElement(Gt.Z,{spinning:!!li.effects["shixunsDetail/getRepository"],wrapperClassName:`${at.loading} ${at.bottom0}`},bt.createElement(sr,{setTreeData:tl,treeData:qa,activeKey:Ui,isRepository:yr}))),bt.createElement("aside",{className:at.right,ref:Ta},((ro=cr==null?void 0:cr.sideBar)==null?void 0:ro.selectPath)!==""&&bt.createElement(bt.Fragment,null,bt.createElement(Gt.Z,{spinning:!!li.effects["shixunsDetail/getFileContent"],wrapperClassName:at.loading},bt.createElement("div",{className:at.filePathWrp},bt.createElement(Mt.Z,{align:"middle",className:"w100"},bt.createElement(Ct.Z,null,bt.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),bt.createElement(Ct.Z,{flex:"40px"},bt.createElement("div",{className:at.line,style:{marginLeft:20}})),bt.createElement(Ct.Z,{className:at.filePath},oi.map((Ia,qt)=>bt.createElement("span",{className:"c-blue"},Ia))))),bt.createElement("div",{className:li.effects["shixunsDetail/getFileContent"]?"hide":"show"},bt.createElement(Ft.Z,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:(Fn=ri==null?void 0:ri.fileContent)==null?void 0:Fn.filename,type:((ti=ri==null?void 0:ri.fileContent)==null?void 0:ti.file_type)==="office"?"download":(Ue=ri==null?void 0:ri.fileContent)==null?void 0:Ue.file_type,data:Ro,monacoEditor:{value:Ro,language:(fo=ri==null?void 0:ri.fileContent)==null?void 0:fo.language,onChange:Ia=>nl(Ia),options:{fontSize:14}}}))),((So=ri==null?void 0:ri.fileContent)==null?void 0:So.file_type)==="txt"&&bt.createElement(Mt.Z,{align:"middle",justify:"center",className:at.footer},bt.createElement(Ct.Z,null,bt.createElement(Ut.ZP,{type:"primary",size:"middle",ghost:!0,onClick:()=>{Lt.history.push(`/shixuns/${sa.id}/challenges`)}},"\u53D6\u6D88"),bt.createElement(Ut.ZP,{type:"primary",size:"middle",className:"ml40",onClick:Ia=>{var qt,ys;(qt=ri==null?void 0:ri.detail)!=null&&qt.is_fork_from_creator&&((ys=ri==null?void 0:ri.detail)!=null&&ys.copy_for_exercise)?ir({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"wareHouse",fn:(Tl,Ol)=>{Su(Tl,Ol)}}}):Su()}},"\u63D0\u4EA4")))),((rr=cr==null?void 0:cr.sideBar)==null?void 0:rr.selectPath)==""&&((Xi=ri==null?void 0:ri.detail)==null?void 0:Xi.init_repository)&&bt.createElement("div",{className:at.empty},bt.createElement("img",{src:Tr.x7,width:"258"}),bt.createElement("br",null),bt.createElement("span",{className:"c-grey-c"},!!(qa!=null&&qa.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(qa!=null&&qa.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),gs==="2"&&bt.createElement("div",{className:at.commit},bt.createElement(jn,{isRepository:yr}))))};var Bt=(0,Lt.connect)(({loading:Ht,globalSetting:pn,practiceSetting:zt,shixunsDetail:li})=>({globalSetting:pn,loading:Ht,practiceSetting:zt,shixunsDetail:li}))(Ir)},2785:function($t,zn,we){"use strict";we.r(zn),we.d(zn,{default:function(){return kh}});var ce=we(59301),at={practiceSetting:"practiceSetting___duHIg",wrapHeader:"wrapHeader___vb3NV",wrapLayout:"wrapLayout___z6EgF",wrapSidebar:"wrapSidebar___TzHq8",wrapContent:"wrapContent___iZrCo"},Lt={flex_box_center:"flex_box_center___XeTw7",flex_space_between:"flex_space_between___Hfc9g",flex_box_vertical_center:"flex_box_vertical_center___JWkfv",flex_box_center_end:"flex_box_center_end___bKF19",flex_box_column:"flex_box_column___XWcdc",header:"header___HkrmL","flex-center":"flex-center___Xqcdj",title:"title___rc2FS",schedule:"schedule___MloKP",clickWarp:"clickWarp___yvMMm",num:"num___etFJa",subject:"subject___ZbcjS",btns:"btns___R7eGw",btn:"btn___NLvn4",simulate:"simulate___kVrJQ",exit:"exit___CTNC5"},kt=we(58130),Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg==",jt=we(20387),Ge=we(43418),Mt=we(8591),Ct=we(70635),Et=we(42203),xt=we(59301),Gt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,te=(nt,ut)=>{var Ne={};for(var En in nt)Ut.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&Gt)for(var En of Gt(nt))ut.indexOf(En)<0&&Re.call(nt,En)&&(Ne[En]=nt[En]);return Ne},ne=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const de=nt=>{var ut=nt,{globalSetting:Ne,loading:En,dispatch:pi,practiceSetting:er,shixunsDetail:Qi}=ut,bi=te(ut,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),bn,Li;const xr=(0,Et.useLocation)(),wo=(0,ce.useRef)(""),Lr=(0,Et.useParams)(),{title:so,base_info_warning:Wr,challenges_warning:ga,service_warning:kr,repository_warning:mr,mirror_warning:Zo}=er;(0,ce.useEffect)(()=>{var xo;wo.current=(xo=xr.pathname.split("/"))==null?void 0:xo[2],pi({type:"practiceSetting/setParams",payload:{id:wo.current}}),pi({type:"practiceSetting/getCommonData",payload:{id:wo.current}})},[xr.pathname]),(0,ce.useEffect)(()=>((0,kt.Dk)(so||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),()=>{(0,kt.Dk)()}));const Yo=()=>ne(void 0,null,function*(){yield Co(),Et.history.push(`/shixuns/${wo.current}/challenges`)}),Co=()=>new Promise((xo,Uo)=>{var Si;(Si=er==null?void 0:er.sideBar)!=null&&Si.confirmLeave?Ge.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:()=>{pi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),xo()},onCancel:()=>{Uo()}}):xo()}),To=xo=>{var Uo;if(xo===(er==null?void 0:er.sideBar.tabsActive))return;const Si=()=>{Et.history.push(`/shixuns/${wo.current}/edit?tabId=${xo}`),pi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:xo,selectPath:"",confirmLeave:!1}})};(Uo=er==null?void 0:er.sideBar)!=null&&Uo.confirmLeave?Ge.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:()=>{Si()}}):Si()},Ar=(xo,Uo=!1)=>{xo=xo!=null&&xo.includes(".json")?xo:`${xo}.json`,Ge.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:xt.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>ne(void 0,null,function*(){const Si=yield(0,Ct.ZP)("/api"+xo,{method:"get"});if(!Si)return;Mt.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const fr=yield(0,jt.Ir)({id:Si.shixun_identifier,jump_challenge_setting:Uo});if(fr!=null&&fr.game_identifier){(0,kt.xg)(`/tasks/${fr.game_identifier}`);return}(fr==null?void 0:fr.status)===2?Ar(fr==null?void 0:fr.message):(fr==null?void 0:fr.status)===3&&vr(fr==null?void 0:fr.message)})})},vr=xo=>{Ge.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:xt.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xo,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Oo=(xo,Uo)=>ne(void 0,null,function*(){var Si,fr,ms,la;if(yield Co(),(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),(Si=Qi.detail)!=null&&Si.is_jupyter||(fr=Qi.detail)!=null&&fr.is_jupyter_lab){pi({type:"shixunsDetail/execJupyter",payload:{id:wo.current}}).then(No=>{var Wo;No!=null&&No.identifier&&((Wo=Et.history)==null||Wo.push(`/tasks/${No.identifier}/jupyter`))});return}pi({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const Vr=Uo?yield(0,jt.BK)({id:xo}):yield(0,jt.Ir)({id:xo});if(pi({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(Vr==null?void 0:Vr.status)==5&&!Uo){Ge.default.confirm({centered:!0,icon:null,width:430,okText:"\u5B8C\u5584\u8BC4\u6D4B\u8BBE\u7F6E",cancelText:"\u76F4\u63A5\u8FDB\u5165\u6A21\u62DF\u5B9E\u6218",title:"\u63D0\u793A",content:xt.createElement("div",{className:"mb10"},"\u68C0\u6D4B\u5230",(la=(ms=Vr==null?void 0:Vr.data)==null?void 0:ms.challenge_errors)==null?void 0:la.map((No,Wo)=>{var mo;return xt.createElement("span",{key:Wo,style:{color:"#3061D0"}},"\u7B2C",No==null?void 0:No.challenge_position,"\u5173",Wo!=((mo=Vr==null?void 0:Vr.data)==null?void 0:mo.challenge_errors)-1&&"\u3001")}),"\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u672A\u5B8C\u6210\uFF0C\u76F4\u63A5\u8FDB\u5165\u6A21\u62DF\u5B9E\u6218\u65E0\u6CD5\u68C0\u6D4B\u6574\u4E2A\u5B9E\u9A8C\u6D41\u7A0B\uFF0C\u5EFA\u8BAE\u5148\u5B8C\u5584\u5173\u5361\u8BC4\u6D4B\u8BBE\u7F6E\u540E\u518D\u8FDB\u5165\u6A21\u62DF\u5B9E\u6218"),onOk:()=>{var No,Wo,mo;window.location.href=`/shixuns/${wo.current}/edit/${(mo=(Wo=(No=Vr==null?void 0:Vr.data)==null?void 0:No.challenge_errors)==null?void 0:Wo[0])==null?void 0:mo.challenge_id}/tab=2`},onCancel:()=>{(0,jt.Ir)({id:wo.current,jump_challenge_setting:!0}).then(No=>{if(No!=null&&No.game_identifier||No!=null&&No.identifier){(0,kt.xg)(`/tasks/${No.game_identifier}`);return}(No==null?void 0:No.status)===-3?(0,kt.eF)():(No==null?void 0:No.status)===2?Ar(No==null?void 0:No.message,!0):(No==null?void 0:No.status)===3&&vr(No==null?void 0:No.message)})}});return}if((Vr==null?void 0:Vr.status)==6&&!Uo){Ge.default.confirm({centered:!0,icon:null,width:430,okText:"\u5B8C\u5584\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E",title:"\u63D0\u793A",content:xt.createElement("div",{className:"mb10"},"\u68C0\u6D4B\u5230\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E\u4E0D\u5B8C\u5584\uFF0C\u65E0\u6CD5\u5F00\u542F\u5B9E\u9A8C\u73AF\u5883\u8FDB\u884C\u6A21\u62DF\u5B9E\u6218\u8BF7\u5B8C\u5584\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E"),cancelButtonProps:{style:{display:"none"}},onOk:()=>{window.location.href=`/shixuns/${wo.current}/edit?tabId=environment`}});return}if(Vr!=null&&Vr.game_identifier||Vr!=null&&Vr.identifier){(0,kt.xg)(Uo?`/tasks/${Vr==null?void 0:Vr.identifier}/jupyter`:`/tasks/${Vr.game_identifier}`);return}(Vr==null?void 0:Vr.status)===-3?(0,kt.eF)():(Vr==null?void 0:Vr.status)===2?Ar(Vr==null?void 0:Vr.message):(Vr==null?void 0:Vr.status)===3&&vr(Vr==null?void 0:Vr.message)}),Fr=()=>ne(void 0,null,function*(){yield Co(),pi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}})}),po=xo=>({borderBottomColor:(er==null?void 0:er.sideBar.tabsActive)===xo?"#0152d9":"transparent"});return xt.createElement("div",{className:Lt.header},xt.createElement("aside",{className:Lt.title},xt.createElement("i",{onClick:Yo,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),xt.createElement("span",{className:Lt.edit},so||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),xt.createElement("i",{onClick:Fr,className:"icon iconfont icon-xiugai1"})),xt.createElement("aside",{className:Lt.schedule},xt.createElement("div",null,xt.createElement("span",{style:po("information"),className:Lt.clickWarp,onClick:()=>To("information")},Wr?xt.createElement("span",{className:Lt.num},"1"):xt.createElement("img",{src:Dt}),xt.createElement("span",{className:Lt.subject},"\u57FA\u672C\u4FE1\u606F")),xt.createElement("i",{className:"iconfont icon-lujing"})),xt.createElement("div",null,xt.createElement("span",{style:po("warehouse"),className:Lt.clickWarp,onClick:()=>To("warehouse")},mr?xt.createElement("span",{className:Lt.num},"2"):xt.createElement("img",{src:Dt}),xt.createElement("span",{className:Lt.subject},"\u4EE3\u7801\u4ED3\u5E93")),xt.createElement("i",{className:"iconfont icon-lujing"})),(Qi==null?void 0:Qi.detail)&&!((bn=Qi==null?void 0:Qi.detail)!=null&&bn.is_jupyter_lab)&&xt.createElement("div",null,xt.createElement("span",{style:po("level"),className:Lt.clickWarp,onClick:()=>To("level")},ga?xt.createElement("span",{className:Lt.num},"3"):xt.createElement("img",{src:Dt}),xt.createElement("span",{className:Lt.subject},"\u4EFB\u52A1\u5173\u5361")),xt.createElement("i",{className:"iconfont icon-lujing"})),(Qi==null?void 0:Qi.detail)&&((Li=Qi==null?void 0:Qi.detail)==null?void 0:Li.is_jupyter_lab)&&xt.createElement("div",null,xt.createElement("span",{style:po("service"),className:Lt.clickWarp,onClick:()=>To("service")},kr?xt.createElement("span",{className:Lt.num},"3"):xt.createElement("img",{src:Dt}),xt.createElement("span",{className:Lt.subject},"\u670D\u52A1")),xt.createElement("i",{className:"iconfont icon-lujing"})),xt.createElement("div",null,xt.createElement("span",{style:po("environment"),className:Lt.clickWarp,onClick:()=>To("environment")},Zo?xt.createElement("span",{className:Lt.num},"4"):xt.createElement("img",{src:Dt}),xt.createElement("span",{className:Lt.subject},"\u5B9E\u9A8C\u73AF\u5883")))),xt.createElement("aside",{className:Lt.btns},xt.createElement("div",{className:Lt.simulate,onClick:()=>Oo(wo.current,!1)},"\u6A21\u62DF\u5B9E\u6218")))};var le=(0,Et.connect)(({loading:nt,globalSetting:ut,practiceSetting:Ne,shixunsDetail:En})=>({globalSetting:ut,loading:nt,practiceSetting:Ne,shixunsDetail:En}))(de),pe={information:"information___HnFAg",scroll:"scroll___SzyY_",formWrap:"formWrap___dlZEW",img:"img___ESi1t"},xe=we(23469),Ae=we(78241),ke=we(3113),Me=we(92832),ot=we(19842),dt=we(95237),yt=we(43604),vt=we(24645),Kt=we(24905),wt={btn:"btn___CiIEf",s1:"s1___JCH7l",s2:"s2___jSyjE"},It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg==",Yt=Object.defineProperty,yn=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,Nn=(nt,ut,Ne)=>ut in nt?Yt(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,ui=(nt,ut)=>{for(var Ne in ut||(ut={}))Mi.call(ut,Ne)&&Nn(nt,Ne,ut[Ne]);if(yn)for(var Ne of yn(ut))wi.call(ut,Ne)&&Nn(nt,Ne,ut[Ne]);return nt},tt=(nt,ut)=>{var Ne={};for(var En in nt)Mi.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&yn)for(var En of yn(nt))ut.indexOf(En)<0&&wi.call(nt,En)&&(Ne[En]=nt[En]);return Ne},mn=nt=>{var ut=nt,{InputRight:Ne,value:En=[],onChange:pi}=ut,er=tt(ut,["InputRight","value","onChange"]);const[Qi,bi]=(0,ce.useState)(),bn=xr=>{const wo=En.filter((Lr,so)=>so!==xr);pi(wo)},Li=xr=>{if(xr.preventDefault(),!!Qi){if(En.findIndex(wo=>wo.name===Qi)>-1){Mt.ZP.warning("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}pi([...En,{id:null,name:Qi}]),bi(null)}};return ce.createElement("div",null,ce.createElement(Me.default,ui({bordered:!1,style:{width:600},value:Qi,onChange:xr=>bi(xr.target.value),onPressEnter:Li,onBlur:Li},er)),Ne||ce.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),ce.createElement("div",{className:"mt20"},En==null?void 0:En.map((xr,wo)=>ce.createElement("div",{key:wo,className:wt.btn},ce.createElement("span",{className:wt.s1},xr.name),ce.createElement("img",{src:It,className:wt.s2,onClick:()=>bn(wo)})))))},Zn=we(89392),Qn=we(10148),nn={flex_box_center:"flex_box_center___hBEA9",flex_space_between:"flex_space_between___rMB3f",flex_box_vertical_center:"flex_box_vertical_center___XT_7U",flex_box_center_end:"flex_box_center_end___ayQhe",flex_box_column:"flex_box_column___Yqif8",complete:"complete___zRKx3",cancel:"cancel___D5r7A",save:"save___sa92o"};const gn=({dispatch:nt,onCancel:ut,onSave:Ne,loading:En=!1})=>ce.createElement("div",{className:nn.complete},ce.createElement("div",{onClick:ut,className:nn.cancel},"\u53D6\u6D88"),ce.createElement(ke.ZP,{type:"primary",loading:En,onClick:Ne,className:nn.save},"\u4FDD\u5B58"));var Ln=(0,Et.connect)()(gn),yi=we(54517),Yn=we(96830),Ai=we(33130),mt=we(25711),ht=we(59301),un=Object.defineProperty,Sn=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,Di=(nt,ut,Ne)=>ut in nt?un(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,hn=(nt,ut)=>{for(var Ne in ut||(ut={}))ii.call(ut,Ne)&&Di(nt,Ne,ut[Ne]);if(kn)for(var Ne of kn(ut))Hn.call(ut,Ne)&&Di(nt,Ne,ut[Ne]);return nt},rt=(nt,ut)=>Sn(nt,Dn(ut)),Pt=(nt,ut)=>{var Ne={};for(var En in nt)ii.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&kn)for(var En of kn(nt))ut.indexOf(En)<0&&Hn.call(nt,En)&&(Ne[En]=nt[En]);return Ne},_t=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const We=nt=>{var ut=nt,{globalSetting:Ne,loading:En,dispatch:pi,practiceSetting:er,problemset:Qi,shixunsDetail:bi}=ut,bn=Pt(ut,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Li,xr;const[wo]=Ae.default.useForm(),[Lr,so]=(0,ce.useState)({}),[Wr,ga]=(0,ce.useState)(!1),[kr,mr]=(0,ce.useState)(!1),[Zo,Yo]=(0,ce.useState)(!1),[Co,To]=(0,ce.useState)(""),[Ar,vr]=(0,ce.useState)(""),[Oo,Fr]=(0,ce.useState)(""),[po,xo]=(0,ce.useState)(),Uo=(0,ce.useRef)({}),Si=(0,ce.useRef)(""),fr=(0,ce.useRef)(""),ms=(0,ce.useRef)(""),la=(0,ce.useRef)(null),Vr=(0,ce.useRef)((0,Zn.throttle)(()=>ns(),2e3,{leading:!0,trailing:!1})).current,{id:No}=er,[Wo,mo]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{No&&Ka()},[No]),(0,ce.useEffect)(()=>(JSON.stringify(Lr)!=="{}"&&Sa(),()=>{clearTimeout(la.current)}),[Lr,Co,Oo,Ar]);const Sa=()=>{clearTimeout(la.current),la.current=setTimeout(()=>{!(0,Zn.isEqual)(Lr,Uo.current)||Co!==Si.current||Oo!==fr.current||Ar!==ms.current?pi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):pi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Ka=()=>_t(void 0,null,function*(){var ha,ta,qi,is,bs,ss,Do;pi({type:"problemset/getEditDisciplines",payload:{source:"shixun"}});const oa=yield(0,Ct.ZP)(`/api/shixuns/${No}/edit_base_info.json`,{method:"get"});if(oa.status===0){const Ga=rt(hn({},oa.data),{description:(0,yi.S)(oa.data.description)}),El={description:Ga.description,shixun_tags:Ga.shixun_tags,name:Ga.name,course:((ha=Ga==null?void 0:Ga.disciplines)==null?void 0:ha.length)>0?[(qi=(ta=Ga==null?void 0:Ga.disciplines)==null?void 0:ta[0])==null?void 0:qi.id,(ss=(bs=(is=Ga==null?void 0:Ga.disciplines)==null?void 0:is[0])==null?void 0:bs.sub_discipline)==null?void 0:ss.id]:[]};(Do=bi.detail)!=null&&Do.is_jupyter_lab&&(El.jupyter_show_description=oa.data.jupyter_show_description),wo.setFieldsValue(El),Uo.current=hn({},El),Si.current=Ga.attachment_id||"",fr.current=Ga.cover_image_id||"",ms.current=Ga.attachment_id_b||"",so(hn({},El)),To(Ga.attachment_id||""),vr(Ga.attachment_id_b||""),Fr(Ga.cover_image_id||""),xo(Ga.cover_image||"")}}),ts=(ha,ta)=>{so(hn({},ta))},as=()=>{xa()},ns=()=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),wo.submit()},Ur=(ha,ta=!1,qi=1)=>{var is;const{name:bs,description:ss,shixun_tags:Do,course:oa,jupyter_show_description:Ga=!1}=ha;let El={name:bs,description:ss,shixun_tags:Do,attachment_id:Co,cover_image_id:Oo,attachment_id_b:Ar,sub_discipline_ids:oa[1]};(is=bi.detail)!=null&&is.is_jupyter_lab&&(El=rt(hn({},El),{jupyter_show_description:Ga})),(0,Ct.ZP)(`/api/shixuns/${No}/base_info_save.json`,{method:"post",body:{shixun:hn({},El),sync_origin_shixun:ta}}).then(cs=>_t(void 0,null,function*(){var Lo,na,ds,$s;if(cs.status===0&&((Lo=bi==null?void 0:bi.detail)!=null&&Lo.copy_for_exercise||Mt.ZP.success("\u4FDD\u5B58\u6210\u529F"),pi({type:"practiceSetting/getCommonData",payload:{id:No}}),pi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Uo.current={description:Lr.description,shixun_tags:Lr.shixun_tags,name:Lr.name},Si.current=Co,fr.current=Oo,ms.current=Ar,(na=bi==null?void 0:bi.detail)!=null&&na.copy_for_exercise)){const Yu=yield pi({type:"shixunsDetail/saveCopyForExercise",payload:{id:No,save_type:qi}});qi===1?(ds=Yu==null?void 0:Yu.data)!=null&&ds.exists_same_shixun_name?pi({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:($s=Yu==null?void 0:Yu.data)==null?void 0:$s.shixun_name,getBaseInfo:()=>{Ka()}}}):(Mt.ZP.info("\u4FDD\u5B58\u6210\u529F"),pi({type:"classroomList/setActionTabs",payload:{}})):(pi({type:"classroomList/setActionTabs",payload:{}}),(Yu==null?void 0:Yu.status)===0&&Ge.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:ht.createElement("div",null,ht.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var pu,oc;(0,kt.xg)(`/shixuns/${(oc=(pu=bi==null?void 0:bi.detail)==null?void 0:pu.fork_from)==null?void 0:oc.fork_identifier}/challenges`)}}))}}))},xa=()=>{var ha;const ta=()=>{Et.history.push(`/shixuns/${No}/challenges`),pi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(ha=er==null?void 0:er.sideBar)!=null&&ha.confirmLeave?Ge.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:()=>{ta()}}):ta()};function Ma(ha){const ta=ha.type==="image/jpeg"||ha.type==="image/png";return ta||Mt.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),ta}const Ko=ht.createElement(ke.ZP,{loading:Wr,icon:ht.createElement(Yn.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),Os=ht.createElement(ke.ZP,{loading:Zo,icon:ht.createElement(Yn.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),hs=ht.createElement(ke.ZP,{loading:kr,icon:ht.createElement(Yn.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function Ys(ha,ta){const qi=new FileReader;qi.addEventListener("load",()=>ta(qi.result)),qi.readAsDataURL(ha)}const Zs=ha=>{var ta,qi;if(ha.file.status==="uploading"){ga(!0);return}ha.file.status==="done"&&(ga(!1),To((qi=(ta=ha==null?void 0:ha.file)==null?void 0:ta.response)==null?void 0:qi.id))},Jl=ha=>{var ta,qi;if(ha.file.status==="uploading"){mr(!0);return}ha.file.status==="done"&&(mr(!1),vr((qi=(ta=ha==null?void 0:ha.file)==null?void 0:ta.response)==null?void 0:qi.id))},$r=()=>ht.createElement("div",{className:pe.img},ht.createElement("img",{src:(0,mt.z)("/api/attachments/"+Co,!0),alt:"avatar",style:{width:"100%"}}),ht.createElement("div",null,ht.createElement(Ai.Z,{onClick:()=>To(""),style:{fontSize:"16px",color:"red"}}))),Wa=()=>ht.createElement("div",{className:pe.img},ht.createElement("img",{src:(0,mt.z)("/api/attachments/"+Ar,!0),alt:"avatar",style:{width:"100%"}}),ht.createElement("div",null,ht.createElement(Ai.Z,{onClick:()=>vr(""),style:{fontSize:"16px",color:"red"}}))),Is=ha=>{var ta,qi;if(ha.file.status==="uploading"){Yo(!0);return}ha.file.status==="done"&&(Yo(!1),Fr((qi=(ta=ha==null?void 0:ha.file)==null?void 0:ta.response)==null?void 0:qi.id),mo(!0))},Hl=()=>ht.createElement("div",{className:pe.img},ht.createElement("img",{src:(0,mt.z)(Wo?"/api/attachments/"+Oo:po,!0),alt:"avatar",style:{width:"100%"}}),ht.createElement("div",null,ht.createElement(Ai.Z,{onClick:()=>{Fr(""),xo("")},style:{fontSize:"16px",color:"red"}})));return ht.createElement("div",{className:pe.information},ht.createElement("section",{className:pe.scroll},ht.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),ht.createElement("div",{className:pe.formWrap}," ",ht.createElement(Ae.default,{form:wo,scrollToFirstError:!0,layout:"vertical",onValuesChange:ts,onFinish:ha=>{var ta,qi;(ta=bi==null?void 0:bi.detail)!=null&&ta.is_fork_from_creator&&((qi=bi==null?void 0:bi.detail)!=null&&qi.copy_for_exercise)?pi({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:ha,type:"information",fn:(is,bs,ss)=>{Ur(is,bs,ss)}}}):Ur(ha)}},ht.createElement(Ae.default.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ht.createElement(Me.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((Li=Lr.name)==null?void 0:Li.length)||0}/60`})),ht.createElement(Ae.default.Item,{className:"customAddTags",name:"shixun_tags",label:ht.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",ht.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},ht.createElement(mn,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),ht.createElement(Ae.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},ht.createElement(ot.Z,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Qi.courseOptions,getPopupContainer:ha=>ha.parentNode})),ht.createElement(dt.Z,null,ht.createElement(yt.Z,null,ht.createElement(Ae.default.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},Co?$r():ht.createElement(vt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${Qn.Z.API_SERVER}/api/attachments.json`,beforeUpload:Ma,onChange:Zs},Ko))),ht.createElement(yt.Z,{className:"c-grey-999"},ht.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),ht.createElement(dt.Z,null,ht.createElement(yt.Z,null,ht.createElement(Ae.default.Item,{label:"\u9876\u90E8\u5185\u5BB9\u56FE:"},Ar?Wa():ht.createElement(vt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${Qn.Z.API_SERVER}/api/attachments.json`,beforeUpload:Ma,onChange:Jl},hs))),ht.createElement(yt.Z,{className:"c-grey-999"},ht.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),ht.createElement(dt.Z,null,ht.createElement(yt.Z,null,ht.createElement(Ae.default.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Oo||po?Hl():ht.createElement(vt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${Qn.Z.API_SERVER}/api/attachments.json`,beforeUpload:Ma,onChange:Is},Os))),ht.createElement(yt.Z,{className:"c-grey-999"},ht.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528290*218\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),ht.createElement(Ae.default.Item,{name:"description",label:"\u7B80\u4ECB:"},ht.createElement(xe.Z,{defaultValue:Lr.description||"",watch:!0})),((xr=bi.detail)==null?void 0:xr.is_jupyter_lab)&&ht.createElement(Ae.default.Item,{name:"jupyter_show_description",valuePropName:"checked"},ht.createElement(Kt.default,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09"))))),ht.createElement(Ln,{onSave:Vr,onCancel:as,loading:Wr||Zo||kr}))};var Ce=(0,Et.connect)(({problemset:nt,loading:ut,globalSetting:Ne,practiceSetting:En,shixunsDetail:pi})=>({globalSetting:Ne,loading:ut,practiceSetting:En,problemset:nt,shixunsDetail:pi}))(We),Ee=we(67669),Ie={flex_box_center:"flex_box_center___eoeVu",flex_space_between:"flex_space_between___f9Khj",flex_box_vertical_center:"flex_box_vertical_center___mDOuj",flex_box_center_end:"flex_box_center_end___q43Rs",flex_box_column:"flex_box_column___lnTOC",level:"level___W39_7",left:"left___xugM0",container:"container___MnoCi",title:"title___HNuSO",listWrap:"listWrap___Oz5IK",list:"list___Fq6dF",s3:"s3___piVr6",s2:"s2___jJaip",listActive:"listActive___e7FOo",os:"os___Zt66K",btns:"btns___mA9Xb",btnsWrap:"btnsWrap___hx2vE",icon:"icon___l26_g",btn:"btn___AF61O",d1:"d1___WyJ4s",d2:"d2___GQq5w",shrink:"shrink___NbOqs",elseShrink:"elseShrink___ZoNE2",right:"right___zgEq_",addIcon:"addIcon___aVZVl"},Ke="data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raeTQDhtKjKEd7wGo0jAaAleapxt/NEDw519OtEg73Xj+Z0FEDuLcRe5T7Luh4tmj/2qV5uYrhZWlzbmFdtSyU1ebXIcTtmMU8tc/Mt175ir15PNK6ry6BNBGUyc/sV2A8J2/jqXAMTawBw+ScoDzxIun+K4GRcMogMAOZUexU+RaaiSV6tCRRp6/s8uVUc0o9qetpL5jAUW5ugpgS4GlFJjLgWukcv0gWc0PtPnp5Uo7eoojlSzD3fYXzJaDOkY6tlSnVdPx5QDilu2WMxIBK6kPO7caMJTrG+EelXCyIG40Unq/yPXSGyCUtSQOA1c1nVFuhFT6vhTxK82nmvhufwQBcLRgq6ZfR1OGP3/hRqsNCP7AgVAJAUfTWZXk92bFLQW8KurzpwWEavSDKjr5DyHp2IDwh9CyiTpW1ANFE3NFySYi/3H1gJiYx6In/HH1xJ94ayaA8CcOAGl+IBCUYzMoNaNgnDHMNkbV7eXy9r8Pil9JHqXa6+Yhcdw2lyvD39hS8YPydtOOpr1FghZTVkI7pf8/eEZf5Vj+hMIAAAAASUVORK5CYII=",Le=we(18032),st=we(71418),dn=we(64165),sn=we(78018),en=Object.defineProperty,Xt=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,fi=(nt,ut,Ne)=>ut in nt?en(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,ar=(nt,ut)=>{for(var Ne in ut||(ut={}))In.call(ut,Ne)&&fi(nt,Ne,ut[Ne]);if(Bn)for(var Ne of Bn(ut))Yi.call(ut,Ne)&&fi(nt,Ne,ut[Ne]);return nt},io=(nt,ut)=>Xt(nt,ai(ut)),jo=(nt,ut)=>{var Ne={};for(var En in nt)In.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&Bn)for(var En of Bn(nt))ut.indexOf(En)<0&&Yi.call(nt,En)&&(Ne[En]=nt[En]);return Ne},bo=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Mr=nt=>{var ut=nt,{globalSetting:Ne,dispatch:En,practiceSetting:pi}=ut,er=jo(ut,["globalSetting","dispatch","practiceSetting"]);const Qi=(0,Et.useLocation)(),[bi]=(0,Et.useSearchParams)(),[bn,Li]=(0,ce.useState)(!1),[xr,wo]=(0,ce.useState)({}),[Lr,so]=(0,ce.useState)(!0),[Wr,ga]=(0,ce.useState)(!1),[kr,mr]=(0,ce.useState)(null),Zo=(0,ce.useRef)(!1),{id:Yo,updateIndex:Co,is_published:To,newQuestion:Ar}=pi,{challenge_list:vr=[]}=xr;(0,ce.useEffect)(()=>{if(Yo)return Fr(),()=>{En({type:"practiceSetting/setParams",payload:{newQuestion:null}})}},[Yo,Co]),(0,ce.useEffect)(()=>{Oo()},[Qi]);const Oo=()=>{const mo=Qi.pathname.split("/");(mo.includes("newquestion")||mo.includes("new")||bi.get("tabId"))&&(Zo.current=!0)},Fr=()=>bo(void 0,null,function*(){var mo,Sa,Ka;so(!0);const ts=yield(0,jt.n5)({id:Yo});if((mo=ts==null?void 0:ts.challenge_list)!=null&&mo.length){const as=Qi.pathname.split("/"),ns=ts.challenge_list.find(Ur=>String(Ur.challenge_id)===as[4]);if(as.includes("newquestion")||as.includes("new")){const Ur=ts.challenge_list[((Sa=ts.challenge_list)==null?void 0:Sa.length)-1];En({type:"practiceSetting/setParams",payload:{newQuestion:{st:as.includes("new")?0:1,name:""}}}),mr(void 0),fr(Ur)}else as[4]&&ns?po(ns,!1):po(ts.challenge_list[0])}(Ka=ts==null?void 0:ts.challenge_list)!=null&&Ka.length||mr(null),wo(ts),so(!1)}),po=(mo,Sa=!0)=>{if(mr(mo.challenge_id),fr(mo),Sa){const Ka=`/shixuns/${Yo}/edit/${mo.challenge_id}/${mo.st===1?"editquestion":"editcheckpoint"}`;Et.history.push(Ka)}},xo=(mo,Sa)=>{Sa.stopPropagation();const{challenge_id:Ka}=mo,ts=()=>bo(void 0,null,function*(){var as,ns;if((yield(0,jt.rO)({id:Yo,challengesId:Ka})).status===1){const xa=yield(0,jt.n5)({id:Yo});if(wo(xa),Ka===kr&&((as=xa.challenge_list)!=null&&as.length)){po(xa.challenge_list[0]);return}(ns=xa.challenge_list)!=null&&ns.length||(mr(null),Zo.current=!0,fr({}),Et.history.push(`/shixuns/${Yo}/edit?tabId=level`))}});Ge.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:ts})},Uo=(mo,Sa,Ka)=>{const ts=Array.from(mo),[as]=ts.splice(Sa,1);return ts.splice(Ka,0,as),ts},Si=(mo,Sa)=>{if(!mo.destination)return;const Ka=Uo(Sa,mo.source.index,mo.destination.index);wo(io(ar({},xr),{challenge_list:Ka}));const ts=Ka.map(as=>as.challenge_id);(0,jt.xg)({id:Yo,ids:ts}).then(as=>{as.status!==0&&wo(io(ar({},xr),{challenge_list:Sa}))})},fr=mo=>{En({type:"practiceSetting/setParams",payload:{selectQuestionParams:mo}})},ms=(mo,Sa)=>bo(void 0,null,function*(){if(mo===kr)return;yield la(),mr(mo),fr(Sa),En({type:"practiceSetting/setParams",payload:{newQuestion:null}});const Ka=`/shixuns/${Yo}/edit/${mo}/${Sa.st===1?"editquestion":"editcheckpoint"}`;Et.history.push(Ka)}),la=()=>new Promise((mo,Sa)=>{var Ka;(Ka=pi==null?void 0:pi.sideBar)!=null&&Ka.confirmLeave?Ge.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:()=>{En({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),mo()},onCancel:()=>{Sa()}}):mo()}),Vr=mo=>ce.createElement(ce.Fragment,null,ce.createElement(sn.Z5,{onDragEnd:Sa=>Si(Sa,mo)},ce.createElement(sn.bK,{droppableId:"droppable"},(Sa,Ka)=>ce.createElement("div",io(ar({ref:Sa.innerRef},Sa.droppableProps),{style:{width:"100%"}}),mo.map((ts,as)=>{const{st:ns,name:Ur,challenge_id:xa}=ts;return ce.createElement(sn._l,{key:xa,draggableId:xa.toString(),index:as,isDragDisabled:To},(Ma,Ko)=>ce.createElement("div",io(ar(ar({ref:Ma.innerRef},Ma.draggableProps),Ma.dragHandleProps),{className:kr===xa?Ie.listActive:Ie.list,onClick:()=>ms(xa,ts)}),ce.createElement("span",{className:Ie.s1},ns===0?ce.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):ce.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),ce.createElement("span",{className:Ie.s2},"\u7B2C",as+1,"\u5173: ",Ur),!To&&ce.createElement("span",{className:Ie.s3,onClick:Os=>xo(ts,Os)},ce.createElement("i",{className:"iconfont icon-shanchu7"}))))})))),Ar&&ce.createElement("div",{className:Ie.listActive},ce.createElement("span",{className:Ie.s1},(Ar==null?void 0:Ar.st)===0?ce.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):ce.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),ce.createElement("span",{className:Ie.s2},"\u7B2C",mo.length+1,"\u5173: ",Ar==null?void 0:Ar.name)),!To&&ce.createElement("div",{className:Ie.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--")),No=mo=>bo(void 0,null,function*(){yield la(),mo==="new"?Et.history.push(`/shixuns/${Yo}/edit/new`):Et.history.push(`/shixuns/${Yo}/edit/newquestion`),Li(!1),mr(void 0),En({type:"practiceSetting/setParams",payload:{newQuestion:{st:mo==="new"?0:1,name:""}}})}),Wo=()=>{(0,Le.gy)(En,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361")||Li(!bn)};return ce.createElement("div",{className:Ie.level},ce.createElement("aside",{className:Ie.left,style:{width:Wr?"0":"25%"}},ce.createElement("div",{className:Ie.container},ce.createElement("div",{className:Ie.title},"\u4EFB\u52A1\u5173\u5361(",vr.length,")"),ce.createElement("div",{className:Ie.listWrap},Lr?ce.createElement(st.Z,{size:"middle"}):vr.length||Ar?Vr(vr):ce.createElement(dn.Z,{image:Ke,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Wr&&ce.createElement("div",{className:Ie.btns},ce.createElement("aside",{className:Ie.btnsWrap},ce.createElement("div",{style:{transform:bn?"rotate(45deg)":"rotate(0deg)"},className:Ie.icon,onClick:Wo},"+"),ce.createElement("div",{className:Ie.btn,style:{left:bn?20:-154}},ce.createElement("div",{className:Ie.d1,onClick:()=>No("new")},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),ce.createElement("div",{className:Ie.d2,onClick:()=>No("newquestion")},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),ce.createElement("div",{className:Wr?Ie.elseShrink:Ie.shrink,onClick:()=>ga(!Wr)},ce.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),ce.createElement("aside",{className:Ie.right,id:"modal-level-question"},kr===null&&Zo.current?ce.createElement("div",{className:Ie.addIcon},ce.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):ce.createElement(Et.Outlet,null)))};var _o=(0,Et.connect)(({globalSetting:nt,practiceSetting:ut})=>({globalSetting:nt,practiceSetting:ut}))(Mr),Bo=we(78485),yo=we(38854),ho=we(20834),Tr=we(25700),Be=we(5112),ua={title:"title___NTpKq",content:"content___oL0Iy",add:"add___L4cbC",colorBlue:"colorBlue___xRARA",radio:"radio___cfwvc"},eo=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable,Ri=(nt,ut)=>{var Ne={};for(var En in nt)Wn.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&eo)for(var En of eo(nt))ut.indexOf(En)<0&&Oi.call(nt,En)&&(Ne[En]=nt[En]);return Ne},ci=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Un=nt=>{var ut=nt,{shixunsDetail:Ne,globalSetting:En,loading:pi,dispatch:er,onReloadData:Qi}=ut,bi=Ri(ut,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]);const[bn,Li]=(0,ce.useState)(),[xr,wo]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{Ne.actionTabs.key==="Collaborators-ChangeManager"&&Lr()},[Ne.actionTabs.key]);const Lr=()=>ci(void 0,null,function*(){var kr;const mr=yield er({type:"shixunsDetail/getChangeManager",payload:{id:(kr=Ne.actionTabs.params)==null?void 0:kr.id}});wo(mr||[])}),so=()=>{var kr;er({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(kr=Ne.actionTabs.params)==null?void 0:kr.id}}})},Wr=()=>ci(void 0,null,function*(){var kr;if(!bn){Mt.ZP.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F");return}const mr=yield er({type:"shixunsDetail/changeManager",payload:{id:(kr=Ne.actionTabs.params)==null?void 0:kr.id,user_id:bn}});ga(),mr&&(Qi(),Mt.ZP.info(mr.message))}),ga=()=>{er({type:"shixunsDetail/setActionTabs",payload:{}}),Li(null)};return ce.createElement(Ge.default,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",open:Ne.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:pi.effects["shixunsDetail/changeManager"],onOk:Wr,onCancel:ga},ce.createElement("div",null,ce.createElement("div",{className:ua.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",ce.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),ce.createElement("div",{className:ua.content},xr.length?ce.createElement(Be.ZP.Group,{value:bn,onChange:kr=>Li(kr.target.value)},xr.map((kr,mr)=>ce.createElement(Be.ZP,{className:ua.radio,key:mr,value:kr.user_id},kr.name))):ce.createElement("div",{className:ua.add},ce.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",ce.createElement("a",{className:ua.colorBlue,onClick:so},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))};var Zt=(0,Et.connect)(({shixunsDetail:nt,loading:ut,globalSetting:Ne})=>({shixunsDetail:nt,globalSetting:Ne,loading:ut}))(Un),ln=we(99313),Tt=we(4194),An=we(84784);const{TabPane:Hi}=ln.default;var gr=({visible:nt,onCancel:ut,onSelectGroup:Ne,shixunId:En,onSelectCollaborator:pi})=>ce.createElement(Ge.default,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",open:nt,width:1100,centered:!0,keyboard:!1,onCancel:ut,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400},footer:null},ce.createElement(ln.default,{defaultActiveKey:"1"},ce.createElement(Hi,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},ce.createElement(Tt.Z,{onCancel:ut,container_type:2,container_id:En,onSelect:pi})),ce.createElement(Hi,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},ce.createElement(An.Z,{onCancel:ut,onSelect:Ne})))),sr={bg:"bg___GzXpp",wrap:"wrap___A40jS",modal:"modal___Zz7dC",content:"content___H5ZN2",head:"head___o5t32",headCount:"headCount___eBMPN",button:"button___YSSGm",itemWrap:"itemWrap___iPWUC",imgWrap:"imgWrap___T70Es",img:"img___oumA5",manager:"manager___VdXG8",itemContent:"itemContent____npAh",nameWrap:"nameWrap___nazId",name:"name___Z48aE",actionGroup:"actionGroup___eScAq",deleteIcon:"deleteIcon___FK_OA",schoolWrap:"schoolWrap___jJuIm",school:"school___kSMwT",countWrap:"countWrap___p7epV",deletetitle:"deletetitle___uVCHi",yseTitle:"yseTitle___L6JF9"},Rn=we(18290),Ti=we(55315),qr=Object.defineProperty,_r=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Ii=(nt,ut,Ne)=>ut in nt?qr(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,xn=(nt,ut)=>{for(var Ne in ut||(ut={}))di.call(ut,Ne)&&Ii(nt,Ne,ut[Ne]);if(_r)for(var Ne of _r(ut))Ot.call(ut,Ne)&&Ii(nt,Ne,ut[Ne]);return nt},jn=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Ft=({shixunsDetail:nt,globalSetting:ut,loading:Ne,user:En,dispatch:pi})=>{var er,Qi,bi,bn,Li,xr;const wo=(0,Et.useParams)(),Lr=(0,ce.useRef)(),[so,Wr]=(0,ce.useState)(0),[ga,kr]=(0,ce.useState)([]),[mr,Zo]=(0,ce.useState)({id:null,page:1}),Yo=(Qi=(er=En.userInfo)==null?void 0:er.shixun)==null?void 0:Qi.editable,Co=((bi=En.userInfo)==null?void 0:bi.role)<=2||((Li=(bn=En.userInfo)==null?void 0:bn.shixun)==null?void 0:Li.is_creator);(0,ce.useEffect)(()=>{Lr.current=wo.id,mr.id=Lr.current,Zo(mr),To(mr)},[]);const To=fr=>jn(void 0,null,function*(){const ms=yield pi({type:"shixunsDetail/getCollaboratorsData",payload:fr});ms&&(kr(ms.members||[]),Wr(ms.member_count))}),Ar=()=>jn(void 0,null,function*(){mr.page=1,Zo(mr);const fr=(0,Ti.g)();yield pi({type:"user/getUserInfo",payload:fr}),yield To(mr)}),vr=fr=>{mr.page=fr,Zo(mr),To(mr)},Oo=fr=>{Ge.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ce.createElement("div",{className:sr.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:()=>jn(void 0,null,function*(){var ms;const la=yield pi({type:"shixunsDetail/deleteCollaborators",payload:{id:Lr.current,userId:fr}});if(((ms=En.userInfo)==null?void 0:ms.user_id)===fr){Et.history.push("/shixuns");return}Mt.ZP.info(la==null?void 0:la.message),mr.page=1,Zo(mr),To(mr)})})},Fr=()=>{pi({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Lr.current}}})};function po(fr,ms,la,Vr){return jn(this,null,function*(){yield pi({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:fr,user_id:ms,editable:la?0:1}}),To(mr)})}const xo=()=>{pi({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Lr.current}}})};function Uo(){pi({type:"shixunsDetail/setActionTabs",payload:{}})}const Si={visible:nt.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Uo,shixunId:Lr.current,onSelectCollaborator:fr=>jn(void 0,null,function*(){Uo(),(yield pi({type:"shixunsDetail/addCollaborator",payload:{id:Lr.current,user_ids:fr}}))&&(Mt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Ar())}),onSelectGroup:fr=>jn(void 0,null,function*(){Uo(),(yield pi({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Lr.current,group_id:fr.group_id}}))&&(Mt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Ar())})};return ce.createElement("section",null,ce.createElement("div",{className:sr.wrap},ce.createElement("div",{className:sr.content},((xr=nt.detail)==null?void 0:xr.identity)<5&&ce.createElement("div",{className:sr.head},ce.createElement("span",{className:sr.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",so,"\u4EBA\uFF09"),ce.createElement("div",null,Co&&ce.createElement(ke.ZP,{type:"primary",ghost:!0,className:sr.button,style:{marginRight:"20px"},onClick:Fr},"\u66F4\u6362\u7BA1\u7406\u5458"),Yo&&ce.createElement(ke.ZP,{type:"primary",className:sr.button,style:{marginRight:"40px"},onClick:xo},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),ce.createElement("div",{className:sr.list},ce.createElement(Bo.Z,{loading:Ne.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},ga.map((fr,ms)=>{var la,Vr,No,Wo,mo,Sa,Ka,ts;return ce.createElement("div",{style:{display:"inline-block",width:"50%"}},ce.createElement("div",{className:sr.itemWrap,key:ms},ce.createElement("a",{href:(la=fr.user)==null?void 0:la.user_url,target:"_blank",className:sr.imgWrap},ce.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:sr.img,src:`${Qn.Z.IMG_SERVER}/images/${(Vr=fr.user)==null?void 0:Vr.image_url}`}),((No=fr.user)==null?void 0:No.shixun_manager)&&ce.createElement("span",{className:sr.manager},"\u521B\u5EFA\u8005")),ce.createElement("div",{className:sr.itemContent},ce.createElement("p",{className:sr.nameWrap},ce.createElement("a",{href:fr.user.user_url,target:"_blank",className:sr.name},(Wo=fr.user)==null?void 0:Wo.name,fr.user.user_id===((mo=En.userInfo)==null?void 0:mo.user_id)?ce.createElement("span",null,"\u6211"):null),ce.createElement("div",{className:sr.actionGroup},Co?(Sa=fr.user)!=null&&Sa.shixun_manager?null:ce.createElement(yo.Z,{dropdownRender:()=>ce.createElement(ho.default,{selectedKeys:[fr.editable?"1":"2"],onClick:()=>{var as;po(nt.detail.identifier,fr.user.user_id,fr.editable,(as=fr.user)==null?void 0:as.name)}},ce.createElement(ho.default.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),ce.createElement(ho.default.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},ce.createElement("div",null,fr.editable?ce.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):ce.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",ce.createElement(Rn.Z,{style:{fontSize:"14px",color:"#888888"}}))):fr.editable?ce.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):ce.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((Ka=fr.user)!=null&&Ka.shixun_manager)&&Yo?ce.createElement("a",{className:sr.deletetitle,onClick:()=>{var as;return Oo((as=fr.user)==null?void 0:as.user_id)}},"\u5220\u9664"):null)),ce.createElement("p",{className:sr.schoolWrap},ce.createElement("span",{className:sr.school},(ts=fr.user)==null?void 0:ts.school_name)))))})))),so>10&&ce.createElement("div",{className:sr.countWrap},ce.createElement(Tr.Z,{showQuickJumper:!1,showSizeChanger:!1,total:so,onChange:fr=>vr(fr),pageSize:10,current:mr.page}))),ce.createElement(Zt,{onReloadData:Ar}),ce.createElement(gr,xn({},Si)))};var bt=(0,Et.connect)(({shixunsDetail:nt,loading:ut,globalSetting:Ne,user:En})=>({shixunsDetail:nt,globalSetting:Ne,user:En,loading:ut}))(Ft),rn=we(56408),Sr=we(57809),ki=we(6848),Ni=we(78673),qn=we(89480),Wi=we(36723),Hr=we(89484),no={mirrorModal:"mirrorModal___z1tEP",right:"right___ZlGrr",title:"title___lWaS3",content:"content___bCC9x",des:"des___ujB5y",btns:"btns___L4vgc",confirm:"confirm___RFRg4",cancel:"cancel___F1WB_",modal:"modal___A5dbG"},vi=we(98949),Ji=we(41648),Aa=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const uo=({newShixuns:nt,user:ut,dispatch:Ne,visible:En,onOk:pi,onCancel:er,useId:Qi=null,identifier:bi,shixun_environment_id:bn,tab_type:Li})=>{var xr,wo;const[Lr,so]=(0,ce.useState)(null),[Wr,ga]=(0,ce.useState)({}),[kr,mr]=(0,ce.useState)(""),{environmentData:Zo}=nt,{frequence_image:Yo=[],environments:Co=[],other_image:To=[]}=Zo,{name:Ar,description:vr}=Wr;(0,ce.useEffect)(()=>{En&&(Ne({type:"newShixuns/getEnvironmentData",payload:{tab_type:Li}}),mr(""),so(Qi))},[En,Qi]),(0,ce.useEffect)(()=>{nt.actionTabs.key==="NewShixuns-Apply"&&er()},[(xr=nt==null?void 0:nt.actionTabs)==null?void 0:xr.key]),(0,ce.useEffect)(()=>{Lr!==null&&Oo()},[Lr]);const Oo=()=>Aa(void 0,null,function*(){const Fr=yield(0,jt.Q1)({mirror_repository_id:Lr,identifier:bi,shixun_environment_id:bn});ga(Fr.data)});return ce.createElement(ce.Fragment,null,ce.createElement(Ge.default,{title:"\u9009\u62E9\u5B9E\u9A8C\u955C\u50CF",open:En,width:1e3,destroyOnClose:!0,centered:!0,onCancel:er,className:no.modal,footer:null},ce.createElement("div",{className:no.mirrorModal},ce.createElement(Hr.Z,{dispatch:Ne,value:Lr,data:Co,otherData:To,tags:Yo,onChange:Fr=>so(Fr),onSearchWord:Fr=>mr(Fr),tab_type:Li}),ce.createElement("div",{className:no.right},ce.createElement("header",null,ce.createElement("div",{className:no.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",ce.createElement("span",{dangerouslySetInnerHTML:{__html:Lr===null?"\u2014 \u2014":(wo=Ar||"")==null?void 0:wo.replace(new RegExp(kr==null?void 0:kr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}}))),ce.createElement("div",{className:no.content},Lr===null&&ce.createElement(dn.Z,{image:Wi,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),Lr!==null&&ce.createElement("div",{className:no.des},ce.createElement(mt.Z,{value:vr,highlightKeywords:kr})),ce.createElement("div",{className:no.btns},ce.createElement(ke.ZP,{onClick:()=>{so(null),ga({}),er()},className:no.cancel},"\u53D6\u6D88 "),ce.createElement(ke.ZP,{onClick:()=>{pi(Wr)},className:no.confirm,type:"primary"},"\u4FDD\u5B58 ")))))),ce.createElement(vi.Z,null),ce.createElement(Ji.Z,null))};var Ir=(0,Et.connect)(({newShixuns:nt,globalSetting:ut,user:Ne})=>({newShixuns:nt,globalSetting:ut,user:Ne}))(uo),Bt={flex_box_center:"flex_box_center___jnFK3",flex_space_between:"flex_space_between___JoMuQ",flex_box_vertical_center:"flex_box_vertical_center___XkWzp",flex_box_center_end:"flex_box_center_end___kfVJX",flex_box_column:"flex_box_column___mfxox",content:"content___ujW8g",explain:"explain___vGa5a",tabs:"tabs___MbGuX",active:"active___SCmkJ",btns:"btns___MiEQa",must:"must___n8wNT",popover:"popover___wqXWh",zybzForm:"zybzForm___m1nC0",graaytitle:"graaytitle___vdUDn",dataPicker:"dataPicker___RiEgz",examineStatus:"examineStatus___OCyYC",contacts:"contacts___MWvKz",contacts_img:"contacts_img___kiMTs",suc_status:"suc_status___p81iO",fail_status:"fail_status___Rv54W",bohui:"bohui___wtuT5",selecticon:"selecticon___AAPZz"},Ht=we(43428),pn=we(46400),zt=we(60324),li=we(88522),ir=we(78550),cr=we(88897),ri=we(48551),Ei={footerWrap:"footerWrap___lXI4I"},Xn=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Tn=(nt,ut)=>{var Ne={};for(var En in nt)tn.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&Xn)for(var En of Xn(nt))ut.indexOf(En)<0&&Jr.call(nt,En)&&(Ne[En]=nt[En]);return Ne},zr=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Or=Me.default.TextArea,ur=nt=>{var ut=nt,{shixunsDetail:Ne,globalSetting:En,loading:pi,dispatch:er,onFinish:Qi=()=>{}}=ut,bi=Tn(ut,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]);const[bn]=Ae.default.useForm(),Li=wo=>zr(void 0,null,function*(){var Lr;const so=yield er({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=Ne.actionTabs.params)==null?void 0:Lr.id,compile:wo.execute,excutive:wo.compile}});xr(),so&&Qi(so==null?void 0:so.shixun_script)}),xr=()=>{er({type:"shixunsDetail/setActionTabs",payload:{}})};return ce.createElement(Ge.default,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",open:Ne.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:xr},ce.createElement(Ae.default,{form:bn,scrollToFirstError:!0,layout:"vertical",onFinish:Li},ce.createElement(Ae.default.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},ce.createElement(Or,{rows:4})),ce.createElement(Ae.default.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},ce.createElement(Or,{rows:4})),ce.createElement("div",{className:Ei.footerWrap},ce.createElement(Ae.default.Item,null,ce.createElement(ke.ZP,{className:"mr5",size:"middle",onClick:xr},"\u53D6\u6D88"),ce.createElement(ke.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:pi.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};var ko=(0,Et.connect)(({shixunsDetail:nt,loading:ut,globalSetting:Ne})=>({shixunsDetail:nt,globalSetting:Ne,loading:ut}))(ur),Zr=we(2119),Gi=we(61186),Er=we.n(Gi),ro=we(79999),Fn=we(59301),ti=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Ue="YYYY-MM-DD HH:mm",fo=({shixunsDetail:nt,visible:ut,onOk:Ne,onCancel:En,dispatch:pi,is_published:er,id:Qi,has_relation:bi,environment:bn=[],verifyModal:Li})=>{var xr,wo,Lr;const so=(0,Et.useParams)(),[Wr,ga]=(0,ce.useState)(1),[kr,mr]=(0,ce.useState)(!0),[Zo,Yo]=(0,ce.useState)(!1),[Co,To]=(0,ce.useState)(null),[Ar,vr]=(0,ce.useState)(),[Oo,Fr]=(0,ce.useState)(),[po,xo]=(0,ce.useState)([]),[Uo,Si]=(0,ce.useState)(!1),[fr,ms]=(0,ce.useState)(""),[la,Vr]=(0,ce.useState)(null),[No]=Ae.default.useForm(),[Wo,mo]=(0,ce.useState)([]),[Sa,Ka]=(0,ce.useState)(""),[ts,as]=(0,ce.useState)([{id:1,name:"\u8BC4\u6D4B\u811A\u672C\u8BBE\u7F6E"},{id:2,name:"\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E"}]),ns=(0,ce.useRef)((0,Zn.throttle)($r=>xa($r),1200,{leading:!0,trailing:!0})).current;(0,ce.useEffect)(()=>{var $r;((0,Zr.Ny)()||($r=nt==null?void 0:nt.detail)!=null&&$r.manager_of_shixun)&&as([{id:1,name:"\u8BC4\u6D4B\u811A\u672C\u8BBE\u7F6E"},{id:2,name:"\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E"},{id:3,name:"\u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C"}])},[]),(0,ce.useEffect)(()=>{Qi&&ut&&Ur()},[Qi,ut]);const Ur=($r=null)=>ti(void 0,null,function*(){var Wa,Is,Hl;$r||mr(!0);const ha=yield(0,Ct.ZP)(`/api/shixuns/${Qi}/get_shixun_env_setting.json`,{method:"get",params:{shixun_environment_id:$r}});if(ha.status===0&&!$r){const{data:ta}=ha;console.log("data",ta),To((ta==null?void 0:ta.shixun_environment_id)||null),vr((ta==null?void 0:ta.evaluate_script)||""),Fr((ta==null?void 0:ta.choice_standard_scripts)||null),xo((ta==null?void 0:ta.standard_scripts)||[]),Si(((Wa=ta.shixun)==null?void 0:Wa.close_internet)||!1),ms((Is=ta.shixun)==null?void 0:Is.survival_time);let qi=(Hl=ta.shixun)==null?void 0:Hl.important_shixun_configs;No.setFieldsValue({identifier:(qi==null?void 0:qi.identifier)||"",people_number:(qi==null?void 0:qi.people_number)||"",school_id:(qi==null?void 0:qi.school_name)||"",times:qi!=null&&qi.start_time&&(qi!=null&&qi.end_time)?[Er()(qi==null?void 0:qi.start_time),Er()(qi==null?void 0:qi.end_time)]:["",""]}),Ka((qi==null?void 0:qi.verify_reason)||""),Vr((qi==null?void 0:qi.process)||null),yield xa(qi==null?void 0:qi.school_name)}if(ha.status===0&&$r){const{data:ta}=ha;vr((ta==null?void 0:ta.evaluate_script)||""),Fr(null),xo((ta==null?void 0:ta.standard_scripts)||[]),yield xa()}mr(!1)}),xa=$r=>ti(void 0,null,function*(){const Wa=yield pi({type:"account/getSchoolOption",payload:{keyword:$r,limit:99999,display_aliases:!0}});mo(Wa==null?void 0:Wa.schools)}),Ma=()=>{Li()||pi({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:so.id}}})},Ko=$r=>ti(void 0,null,function*(){const Wa=yield pi({type:"shixunsDetail/getScriptContent",payload:{id:so.id,script_id:$r}});Wa&&vr(Wa.content)}),Os=$r=>{Ge.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Fn.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",Fn.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>ti(void 0,null,function*(){yield Ko($r),Fr($r),Ge.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:Fn.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")})})})},hs=($r=!1,Wa=1)=>ti(void 0,null,function*(){var Is,Hl,ha;let ta;if(Wr===1&&(Yo(!0),ta=yield(0,Ct.ZP)(`/api/shixuns/${so.id}/update_evaluate_script_setting.json`,{method:"put",body:{shixun_environment_id:Co,mirror_script_id:Oo,evaluate_script:Ar,sync_origin_shixun:$r}})),Wr===2){Yo(!0);let qi={close_internet:Uo,survival_time:fr,sync_origin_shixun:$r};ta=yield(0,Ct.ZP)(`/api/shixuns/${so.id}/update_environment_setting.json`,{method:"put",body:qi})}if(Wr===3){let qi=No.getFieldsValue();yield No.validateFields(),Yo(!0);let is={close_internet:Uo,survival_time:fr,sync_origin_shixun:$r};is.important_shixun_configs={identifier:qi==null?void 0:qi.identifier,people_number:qi==null?void 0:qi.people_number,school_id:(Is=Wo.find(bs=>bs.name===(qi==null?void 0:qi.school_id)))==null?void 0:Is.id,start_time:Er()(qi==null?void 0:qi.times[0]).format("YYYY-MM-DD HH:mm"),end_time:Er()(qi==null?void 0:qi.times[1]).format("YYYY-MM-DD HH:mm")},ta=yield(0,Ct.ZP)(`/api/shixuns/${so.id}/resources_first_ensure.json`,{method:"post",body:is})}ta.status===0&&((!((Hl=nt==null?void 0:nt.detail)!=null&&Hl.copy_for_exercise)||Wr===3)&&Mt.ZP.success(`${Wr==3?"\u63D0\u4EA4\u7533\u8BF7\u6210\u529F":"\u4FDD\u5B58\u6210\u529F"}`),(ha=nt==null?void 0:nt.detail)!=null&&ha.copy_for_exercise&&Wr!=3&&(0,yi.m)(pi,nt,Qi,Wa),Ur(),Ne()),Yo(!1)}),Ys=($r,Wa)=>{const Is=/^[^0-9][a-zA-Z0-9]*$/,Hl=/^.{4,30}$/;return Wa&&!/^[a-zA-Z0-9]+$/.test(Wa)?Promise.reject("\u8F93\u5165\u5185\u5BB9\u53EA\u80FD\u5305\u542B\u6570\u5B57\u548C\u5B57\u6BCD"):Wa&&!Is.test(Wa)?Promise.reject("\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"):Wa&&!Hl.test(Wa)?Promise.reject("\u8F93\u5165\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u57284\u523030\u4E2A\u5B57\u7B26\u4E4B\u95F4"):Promise.resolve()},Zs=$r=>parseInt($r||"0",10),Jl=($r,Wa)=>{if(Wa&&Wa.length===2){const[Is,Hl]=Wa;if(!Is||!Hl)return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8D77\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"))}return Promise.resolve()};return Fn.createElement(Fn.Fragment,null,Fn.createElement(Ht.Z,{title:null,width:1e3,placement:"right",closable:!1,onClose:En,open:ut},Fn.createElement("div",{className:Bt.content},Fn.createElement(Bo.Z,{loading:kr,active:!0},Fn.createElement(dt.Z,{className:"mt10",justify:"space-between"},Fn.createElement("b",{className:"c-grey-333 font16"},"\u8BBE\u7F6E"),Fn.createElement("i",{onClick:En,className:"iconfont icon-guanbi11 current",style:{color:"#979797"}})),Fn.createElement("div",{className:Bt.tabs},ts.map($r=>{const{name:Wa,id:Is}=$r;return Fn.createElement("div",{key:Is,className:Wr===Is?Bt.active:"",onClick:()=>ga(Is)},Wa)})),Wr===1&&Fn.createElement(ce.Fragment,null,Fn.createElement(pn.Z,{className:"mt20",message:"\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883\u4E0B\u7684\u8BC4\u6D4B\u811A\u672C\uFF1A\u5C06\u4F5C\u4E3A\u6574\u4E2A\u5B9E\u8BAD\u6240\u6709\u5B9E\u9A8C\u73AF\u5883\u4E0B\uFF0C\u5B66\u5458\u8BC4\u6D4B\u65F6\u8FD0\u884C\u7684\u811A\u672C\u3002",type:"info",showIcon:!0,closable:!0}),Fn.createElement(dt.Z,{align:"middle",className:"mt20"},Fn.createElement("span",{className:"c-grey-333 font16"},"\u8FD0\u884C\u73AF\u5883"),Fn.createElement(Sr.default,{onClick:Li,getPopupContainer:$r=>$r.parentNode,bordered:!1,className:"ml10",style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},value:Co,onChange:$r=>{To($r),Ur($r)},showArrow:!0,placeholder:"\u5B9E\u9A8C\u73AF\u5883"},(xr=bn.filter($r=>$r.id!==0))==null?void 0:xr.map(($r,Wa)=>Fn.createElement(Sr.default.Option,{value:$r.id,name:$r.name,key:$r.id},$r.name)))),Fn.createElement(dt.Z,{align:"middle",className:"mt20"},Fn.createElement("span",{className:"c-grey-333 font16"},"\u8BC4\u6D4B\u811A\u672C"),Fn.createElement(Sr.default,{onClick:Li,getPopupContainer:$r=>$r.parentNode,bordered:!1,className:"ml10 mr10",style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0,value:Oo,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:$r=>{Os($r)}},(po||[]).map(($r,Wa)=>Fn.createElement(Sr.default.Option,{value:parseInt($r.id),name:$r.scptname,key:Wa},$r.scptname))),Fn.createElement("span",{className:Bt.explain,onClick:Ma},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),Fn.createElement(zt.Z,{className:Bt.popover,content:Fn.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",Fn.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",Fn.createElement("br",null),"challengeProgramNames",Fn.createElement("br",null),"sourceClassNames",Fn.createElement("br",null),Fn.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",Fn.createElement("br",null),Fn.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",Fn.createElement("br",null),"src/step1/HelloWorld.java",Fn.createElement("br",null),"src/step2/Other.java",Fn.createElement("br",null),Fn.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",Fn.createElement("br",null),"step1.HelloWorld",Fn.createElement("br",null),"step2.Other",Fn.createElement("br",null),Fn.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",Fn.createElement("br",null),'ff challengeProgramNames=("src/step1/',Fn.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',Fn.createElement("br",null),'sourceClassNames=("step1.HelloWorld',Fn.createElement("br",null),'" "step2.Other")',Fn.createElement("br",null),Fn.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},Fn.createElement("span",{style:{color:"#999",fontSize:14,marginTop:2,marginLeft:4},className:"iconfont icon-tishi11 c-grey-999"}))),Fn.createElement(ri.ZP,{style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"30px"},language:"shell",theme:"vs-light",value:Ar,options:{readOnly:er},onChange:$r=>{vr($r)}})),Wr===2&&Fn.createElement("div",{style:{flex:1,overflowY:"auto"}},Fn.createElement(dt.Z,{align:"middle",className:"mt20"},Fn.createElement("span",{className:"c-grey-333 font16 ml30 mr10"},"\u5B9E\u8BAD\u5BB9\u5668\u7F51\u7EDC"),Fn.createElement(Kt.default,{checked:Uo,onChange:$r=>Si($r.target.checked)},Fn.createElement("span",{className:"c-grey-333 font14"},"\u5173\u95ED\u5916\u7F51"),Fn.createElement("span",{className:"c-grey-999 font14"},"\uFF08\u9009\u4E2D\uFF0C\u5728\u5B9E\u8BAD\u7F16\u8BD1\u9875\u9762\u4E2D\u4E0D\u53EF\u8BBF\u95EE\u4E92\u8054\u7F51\uFF09"))),Fn.createElement(dt.Z,{align:"middle",className:"mt20"},Fn.createElement("span",{className:"c-grey-333 font16 mr10"},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F"),Fn.createElement(Me.default,{bordered:!1,value:fr,onChange:$r=>ms($r.target.value),style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4}}),Fn.createElement("span",{className:"ml10 c-grey-999 font14"},"\u5206"))),Wr===3&&((0,Zr.Ny)()||((wo=nt==null?void 0:nt.detail)==null?void 0:wo.manager_of_shixun))&&Fn.createElement("div",{style:{flex:1,overflowY:"auto"}},Fn.createElement(dt.Z,{align:"middle",className:"mt20"},Fn.createElement(Ae.default,{form:No,layout:"horizontal",className:Bt.zybzForm},Fn.createElement(dt.Z,{align:"middle"},Fn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:55}},Fn.createElement("span",{className:Bt.must},"*"),"\u4FDD\u969C\u6807\u8BC6"),Fn.createElement(Ae.default.Item,{label:"",name:"identifier",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"},{validator:Ys}]},Fn.createElement(Me.default,{bordered:!1,style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4},minLength:4,maxLength:30,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"})),Fn.createElement("span",{className:"ml10 c-grey-999 font14"},"\u4FDD\u969C\u6807\u8BC6\u53EA\u80FD\u7531\u5B57\u6BCD\u548C\u6570\u5B57\u7EC4\u6210\uFF084~30 \u4F4D\uFF09\uFF0C\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934\u3002",Fn.createElement("br",null),"\u586B\u5199\u4FDD\u969C\u6807\u8BC6\u662F\u4E3A\u4E86\u4FBF\u4E8E\u5E73\u53F0\u4E3A\u6B64\u5B9E\u8DF5\u9879\u76EE\u7279\u522B\u5206\u914D\u8282\u70B9\u3002")),Fn.createElement(dt.Z,{align:"middle",className:"mt25"},Fn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:7}},Fn.createElement("span",{className:Bt.must},"*"),"\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"),Fn.createElement("div",{style:{position:"relative"}},Fn.createElement(Ae.default.Item,{label:"",name:"school_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"}]},Fn.createElement(li.Z,{bordered:!1,style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},onChange:ns,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"},(Lr=Wo==null?void 0:Wo.filter($r=>($r==null?void 0:$r.id)!==0))==null?void 0:Lr.map(($r,Wa)=>Fn.createElement(Sr.default.Option,{key:Wa+1,title:$r==null?void 0:$r.name,value:$r==null?void 0:$r.name},$r==null?void 0:$r.name)))),Fn.createElement("span",{className:Bt.selecticon},Fn.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Fn.createElement("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}))))),Fn.createElement(dt.Z,{align:"middle",className:"mt25"},Fn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:55}},Fn.createElement("span",{className:Bt.must},"*"),"\u4FDD\u969C\u65F6\u95F4"),Fn.createElement("div",{className:Bt.graaytitle},Fn.createElement(Ae.default.Item,{label:"",name:"times",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"},{validator:Jl}]},Fn.createElement(ir.default.RangePicker,{disabledDate:$r=>$r&&$r<Er()().startOf("days"),className:`${Bt.dataPicker}`,format:Ue,showTime:{format:"HH:mm"},bordered:!1,allowClear:!1,onChange:$r=>{if($r&&$r[0]&&$r[1]){const Wa=$r[0].isBefore(Er()())?Er()():$r[0];No.setFieldValue("times",[Wa,$r[1]])}else No.setFieldValue("times",$r)}})))),Fn.createElement(dt.Z,{align:"middle",className:"mt25"},Fn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:55}},Fn.createElement("span",{className:Bt.must},"*"),"\u4FDD\u969C\u4EBA\u6570"),Fn.createElement(Ae.default.Item,{label:"",name:"people_number",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570"}]},Fn.createElement(cr.Z,{parser:Zs,style:{width:200},placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",min:1})))),Fn.createElement("div",{className:`${Bt.examineStatus} mt25`},la>=1&&Fn.createElement("div",null," ",Fn.createElement(ro.Z,{className:Bt.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"),la>=2&&la!=3&&Fn.createElement("div",null," ",Fn.createElement(ro.Z,{className:Bt.suc_status})," \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"),la==3&&Fn.createElement("div",null," ",Fn.createElement(Ai.Z,{className:Bt.fail_status}),"\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ",Fn.createElement("span",{title:Sa,className:Bt.bohui},Sa),") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB",Fn.createElement("span",{className:Bt.contacts},Fn.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Fn.createElement("div",{className:Bt.contacts_img}))),la>=4&&la!=5&&la!=7&&Fn.createElement("div",null," ",Fn.createElement(ro.Z,{className:Bt.suc_status})," \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"),(la==5||la==7)&&Fn.createElement("div",null," ",Fn.createElement(Ai.Z,{className:Bt.fail_status}),"\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB",Fn.createElement("span",{className:Bt.contacts},Fn.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Fn.createElement("div",{className:Bt.contacts_img}))),la>5&&Fn.createElement("div",null," ",Fn.createElement(ro.Z,{className:Bt.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F")))),Fn.createElement("div",{className:Bt.btns},Fn.createElement(ke.ZP,{onClick:En},"\u53D6\u6D88"),Fn.createElement(ke.ZP,{disabled:Wr==3&&[2,4,5].includes(la),onClick:()=>ti(void 0,null,function*(){var $r,Wa;if(Wr===1&&!Co){Mt.ZP.warning("\u8BF7\u9009\u62E9\u8FD0\u884C\u73AF\u5883");return}($r=nt==null?void 0:nt.detail)!=null&&$r.is_fork_from_creator&&((Wa=nt==null?void 0:nt.detail)!=null&&Wa.copy_for_exercise)&&Wr!=3&&(bn.filter(Is=>Is.id===Co)[0].has_relation&&Wr===1||Wr===2)?pi({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"environment",fn:(Is,Hl)=>{hs(Is,Hl)},zIndex:1e4}}):hs()}),loading:Zo,type:"primary",className:"ml20"},Wr==3?"\u63D0\u4EA4\u7533\u8BF7":"\u4FDD\u5B58"))))),Fn.createElement(ko,{onFinish:$r=>vr($r)}))};var So=(0,Et.connect)(({shixunsDetail:nt})=>({shixunsDetail:nt}))(fo),rr=we(99891),Xi=we(25510),Ui={wrap:"wrap___S9yE5",content:"content___xIxOT",head:"head___icGJE",title:"title___NbDBd",add:"add___ntZkv",addDisable:"addDisable___pgd9I",setting:"setting___kQ9Qx",tabs:"tabs___o2qas",name:"name___HUyj5",active:"active___SVp4l",line:"line___DSw6E",resource:"resource___AgLC3",mirror:"mirror___DGr0Q",interface:"interface___xxy5c",disabled:"disabled___GqKcR",port:"port___vGmHQ",grade:"grade___b6Adk",tabsBox:"tabsBox___TnoNw",tabTitle:"tabTitle___i8cO0",more:"more___kbzpa",serverConfig:"serverConfig___BtI29",viewRecommendConfig:"viewRecommendConfig___ODGyC",system:"system___YygCM",explain:"explain___klZ55",btns:"btns___o6xWf",template:"template___AMzZZ",liWrap:"liWrap___tCbB1",li:"li___srrGx",tag:"tag___NcFBh"},qo=we(52222),gs=we(11415),Ps=we(23139),Ro={list:"list___p00l5",head:"head___JcQe0",row:"row___kLpLL"},Ho=we(59301),Rr=Object.defineProperty,yr=Object.defineProperties,Eo=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,tl=(nt,ut,Ne)=>ut in nt?Rr(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Ta=(nt,ut)=>{for(var Ne in ut||(ut={}))Na.call(ut,Ne)&&tl(nt,Ne,ut[Ne]);if(oi)for(var Ne of oi(ut))qa.call(ut,Ne)&&tl(nt,Ne,ut[Ne]);return nt},sa=(nt,ut)=>yr(nt,Eo(ut)),nl=({showError:nt,value:ut,onChange:Ne,optionsLevelList:En})=>{const[pi,er]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{if(!ut.length){er([{command:"",challenge_ids:[]}]);return}er(ut)},[JSON.stringify(ut)]);const Qi=(bi,bn,Li)=>{let xr=JSON.parse(JSON.stringify(pi));bn==="add"?xr.push({command:"",challenge_ids:[-1]}):bn==="delete"?xr.splice(Li,1):xr[Li][bn]=bi,er(xr),Ne(xr)};return console.log(pi,"value2"),Ho.createElement("div",{className:Ro.list},Ho.createElement("div",{className:Ro.head},Ho.createElement("div",{style:{width:400}},"\u547D\u4EE4"),Ho.createElement("div",null,"\u5E94\u7528\u5173\u5361")),pi==null?void 0:pi.map((bi,bn)=>{var Li,xr,wo;let Lr=En.map((so,Wr)=>{const ga=`\u7B2C${Wr+1}\u5173\uFF1A${so.name}`;let kr=ga,mr=!1;return so.st===1&&(kr=Ho.createElement(ki.Z,{placement:"left",title:"\u7406\u8BBA\u9898\u5173\u5361\u65E0\u6CD5\u89E6\u53D1\u547D\u4EE4"},ga),mr=!0),sa(Ta({},so),{value:so.challenge_id,label:kr,disabled:mr})});return Lr=[{label:"\u6240\u6709\u5173\u5361",value:-1},...Lr],Ho.createElement(dt.Z,{wrap:!1,align:"middle",style:{position:"relative"},className:bn<pi.length-1?"mb20":"",key:bn},nt&&Ho.createElement(Ho.Fragment,null,!bi.command&&!!((Li=bi.challenge_ids)!=null&&Li.length)&&Ho.createElement("div",{style:{position:"absolute",zIndex:1,left:0,bottom:-18,color:"#FF0000",fontSize:12}},"\u8BF7\u8F93\u5165\u89E6\u53D1\u547D\u4EE4"),bi.command&&!((xr=bi.challenge_ids)!=null&&xr.length)&&Ho.createElement("div",{style:{position:"absolute",zIndex:1,left:420,bottom:-18,color:"#FF0000",fontSize:12}},"\u8BF7\u9009\u62E9\u5E94\u7528\u5173\u5361")),Ho.createElement(Me.default,{value:bi==null?void 0:bi.command,onChange:so=>Qi(so.target.value,"command",bn),bordered:!1,placeholder:"\u4F8B\u5982\uFF1Amysql -uroot -p123123 -h127.0.0.1",style:{width:400,height:50,background:"#F5F5F5",borderRadius:4}}),Ho.createElement(Sr.default,{options:Lr,getPopupContainer:so=>so.parentNode,value:bi==null?void 0:bi.challenge_ids,onChange:so=>{var Wr,ga;let kr=so;!((Wr=bi==null?void 0:bi.challenge_ids)!=null&&Wr.includes(-1))&&(so!=null&&so.includes(-1))&&(kr=[-1]),(ga=bi==null?void 0:bi.challenge_ids)!=null&&ga.includes(-1)&&(so!=null&&so.includes(-1))&&(kr=so==null?void 0:so.filter(mr=>mr!==-1)),Qi(kr,"challenge_ids",bn)},mode:"multiple",maxTagTextLength:(wo=bi==null?void 0:bi.challenge_ids)!=null&&wo.includes(-1)?4:3,placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528\u5173\u5361",maxTagCount:5,bordered:!1,style:{width:560,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10,margin:"0 20px"}}),Ho.createElement(dt.Z,{wrap:!1},Ho.createElement("i",{onClick:()=>Qi("","add",bn),style:{color:"#3061D0"},className:"iconfont icon-tianjiatimu font20 current ml20"}),bn!==0&&Ho.createElement("i",{onClick:()=>Qi("","delete",bn),style:{color:"#E30000"},className:"iconfont icon-shanjian font20 ml20"})))}))},Qt=we(59301),Su=Object.defineProperty,Ia=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Ol=Object.prototype.propertyIsEnumerable,ws=(nt,ut,Ne)=>ut in nt?Su(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Ss=(nt,ut)=>{for(var Ne in ut||(ut={}))Tl.call(ut,Ne)&&ws(nt,Ne,ut[Ne]);if(ys)for(var Ne of ys(ut))Ol.call(ut,Ne)&&ws(nt,Ne,ut[Ne]);return nt},eu=(nt,ut)=>Ia(nt,qt(ut)),il=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const os=Sr.default.Option,rl=5,ku=({practiceSetting:nt,dispatch:ut,shixunsDetail:Ne,user:En})=>{var pi,er,Qi,bi,bn,Li,xr,wo,Lr,so;const{id:Wr,is_published:ga}=nt,[kr,mr]=(0,ce.useState)([]),[Zo,Yo]=(0,ce.useState)(null),[Co,To]=(0,ce.useState)([]),[Ar,vr]=(0,ce.useState)([]),Oo=(0,ce.useRef)(null),[Fr,po]=(0,ce.useState)({}),xo=(0,ce.useRef)({}),Uo=(0,ce.useRef)({}),{shixun_environment:Si={},mirror_repository:fr={},small_type:ms=[],new_service_configs:la=[],network_mode_list:Vr=[],boosters:No=[]}=Fr,[Wo,mo]=(0,ce.useState)(""),[Sa,Ka]=(0,ce.useState)("\u8BF7\u8F93\u5165\u7AEF\u53E3"),[ts,as]=(0,ce.useState)(!1),[ns,Ur]=(0,ce.useState)(!1),[xa,Ma]=(0,ce.useState)(!0),[Ko,Os]=(0,ce.useState)(!0),[hs,Ys]=(0,ce.useState)(!1),[Zs,Jl]=(0,ce.useState)(!1),[$r,Wa]=(0,ce.useState)(!1),[Is,Hl]=(0,ce.useState)(!1),[ha,ta]=(0,ce.useState)(0),[qi,is]=(0,ce.useState)(!1),[bs,ss]=(0,ce.useState)({}),[Do,oa]=(0,ce.useState)({}),[Ga,El]=(0,ce.useState)({}),[pf,cs]=(0,ce.useState)(""),[Lo,na]=(0,ce.useState)(!1),[ds,$s]=(0,ce.useState)(!1),[Yu,pu]=(0,ce.useState)({}),[oc,yc]=(0,ce.useState)([]),qd=(0,ce.useRef)([]);console.log("--1111-",No,oc);const cd=[{id:1,name:"\u901A\u7528\u4E91"},{id:2,name:"\u4E13\u6709\u4E91"}],Gc=[{id:1,name:"Windows",icon:"iconfont icon-Windows"},{id:2,name:"Linux",icon:"iconfont icon-Linux"},{id:3,name:"\u5176\u4ED6",icon:"iconfont icon-qitaxitong"}],Bs=[{id:1,name:"VNC"},{id:2,name:"RDP"}],gh=[{id:0,name:"\u516C\u5171\u955C\u50CF",type:"public"},{id:1,name:"\u81EA\u5B9A\u4E49\u955C\u50CF",type:"customize"},{id:2,name:"\u5171\u4EAB\u955C\u50CF",type:"share"}],ph=(Ar==null?void 0:Ar.find(Oe=>Oe.id===Si.instance_startup_template_id))||{},{desc:wu,virt_type:Xu}=ph,Nh=((pi=Co==null?void 0:Co.find(Oe=>Oe.id===(Si==null?void 0:Si.private_cloud_id)))==null?void 0:pi.cloud_type)===1,Th=((er=Co==null?void 0:Co.find(Oe=>Oe.id===(Si==null?void 0:Si.private_cloud_id)))==null?void 0:er.cloud_type)===4;(0,ce.useEffect)(()=>(window.addEventListener("click",Df),()=>{window.removeEventListener("click",Df)}),[]),(0,ce.useEffect)(()=>{qh(),Rd(),eg(),tg()},[]),(0,ce.useEffect)(()=>{(0,Zn.isEqual)(Uo.current,Fr)?ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}):ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}),xo.current=Fr},[Fr]);const qf=()=>il(void 0,null,function*(){var Oe,qe,Rt,gt;const Pn=yield(0,Ct.ZP)("/api/shixuns/new.json",{method:"get",params:{tab_type:(Oe=gh[Number(ha)])==null?void 0:Oe.type}});(Pn==null?void 0:Pn.status)===0&&(((Rt=(qe=Pn==null?void 0:Pn.data)==null?void 0:qe.environments)==null?void 0:Rt.length)===0&&((gt=Pn==null?void 0:Pn.data)==null?void 0:gt.other_image.length)===0?is(!0):is(!1))});(0,ce.useEffect)(()=>{qf()},[ha]);const $f=()=>{var Oe;const qe=()=>{Et.history.push(`/shixuns/${Wr}/challenges`),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Oe=nt==null?void 0:nt.sideBar)!=null&&Oe.confirmLeave?Ge.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:()=>{qe()}}):qe()},qh=()=>il(void 0,null,function*(){var Oe;const qe=yield(0,Ct.ZP)(`/api/shixuns/${Wr}/get_shixun_env_tabs.json`,{method:"get"});if(qe.status===0){const Rt=((Oe=qe.data)==null?void 0:Oe.shixun_environments_tabs)||[];Rt.length&&Zo===null&&Yo(Rt[0].id),mr(Rt)}}),eg=()=>il(void 0,null,function*(){var Oe;Os(!0);const qe=yield(0,Ct.ZP)("/api/shixuns/get_private_clouds.json",{method:"get"});qe.status===0&&To((Oe=qe==null?void 0:qe.data)==null?void 0:Oe.list),Os(!1)}),tg=()=>il(void 0,null,function*(){const Oe=yield(0,Ct.ZP)(`/api/shixuns/${Wr}/challenges.json`,{method:"get"});Oe.challenge_list&&yc(Oe.challenge_list||[])}),Ed=(Oe,qe)=>il(void 0,null,function*(){var Rt;const gt=yield(0,Ct.ZP)("/api/shixuns/get_instance_startup_template.json",{method:"get",params:{private_cloud_id:Oe,operating_system:qe}});gt.status===0&&vr((Rt=gt==null?void 0:gt.data)==null?void 0:Rt.list)}),Rd=(Oe=null)=>il(void 0,null,function*(){var qe,Rt,gt,Pn,fn,Ci,Bi,nr,pr,hr,Dr,vo,Qo,Kr,ka;Ma(!0);const rs=yield(0,Ct.ZP)(`/api/shixuns/${Wr}/get_multi_environments.json`,{method:"get",params:{shixun_environment_id:Oe}});if(rs.status===0){Uo.current=(0,Zn.cloneDeep)(rs.data||{}),po(rs.data||{}),ta(Number((Rt=(qe=rs.data)==null?void 0:qe.shixun_environment)==null?void 0:Rt.mirror_tab_type)||0),Number((Pn=(gt=rs.data)==null?void 0:gt.shixun_environment)==null?void 0:Pn.mirror_tab_type)===0?(ss((fn=rs.data)==null?void 0:fn.mirror_repository),oa({}),El({})):Number((Bi=(Ci=rs.data)==null?void 0:Ci.shixun_environment)==null?void 0:Bi.mirror_tab_type)===1?(oa((nr=rs.data)==null?void 0:nr.mirror_repository),ss({}),El({})):Number((hr=(pr=rs.data)==null?void 0:pr.shixun_environment)==null?void 0:hr.mirror_tab_type)===2&&(El((Dr=rs.data)==null?void 0:Dr.mirror_repository),ss({}),El({}));const Ql=(Qo=(vo=rs==null?void 0:rs.data)==null?void 0:vo.shixun_environment)==null?void 0:Qo.private_cloud_id,pl=(ka=(Kr=rs==null?void 0:rs.data)==null?void 0:Kr.shixun_environment)==null?void 0:ka.operating_system;Ql&&pl&&Ed(Ql,pl)}Ma(!1)}),$d=()=>il(void 0,null,function*(){var Oe;const qe=yield(0,Ct.ZP)(`/api/shixuns/${Wr}/check_code_editor.json`,{method:"get",params:{shixun_environment_id:Zo}});return qe.status===0&&qe.is_exist_code_editor?(Ge.default.confirm({icon:null,centered:!0,className:qo.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},width:425,okText:"\u524D\u5F80\u5173\u95ED",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Qt.createElement("div",null,Qt.createElement("div",null,"\u6BCF\u4E2A\u5B9E\u8DF5\u9879\u76EE\u53EA\u80FD\u5F00\u542F\u4E00\u4E2A\u4EE3\u7801\u7F16\u8F91\u5668\u754C\u9762\u3002"),Qt.createElement("div",null,"\u201C",(Oe=qe==null?void 0:qe.shixun_environment)==null?void 0:Oe.name,"\u201D\u5DF2\u5F00\u542F\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u9700\u5148\u5173\u95ED\uFF0C\u7136\u540E\u624D\u80FD\u5728\u5F53\u524D\u5B9E\u9A8C\u73AF\u5883\u9009\u62E9\u4EE3\u7801\u7F16\u8F91\u5668\u3002")),onOk:()=>il(void 0,null,function*(){Yo(qe.shixun_environment.id),Rd(qe.shixun_environment.id),qh()})}),Promise.reject()):Promise.resolve()}),Xs={shixun_environment:{id:0,resource_type:1,command_settings:[],is_support_code_editor:!1,is_support_vnc:!1,is_support_webssh:!1,is_support_thiry_party:!1,disabled_support_vnc:!1,disabled_support_webssh:!1,private_is_support_vnc:!1,private_is_support_webssh:!1,private_is_support_jupyter_lab:!1,disabled2_support_vnc:!1,disabled2_support_webssh:!1,disabled2_support_jupyter_lab:!1,proxy_port:"",web_route:"",private_cloud_id:null,instance_startup_template_id:null,operating_system:1,instance_startup_type:1},mirror_repository:{choice_small_mirrors:[],shixun_service_configs:[]},small_type:[]},Oh=(Oe,qe)=>{var Rt,gt;if(typeof(Oe==null?void 0:Oe.className)=="string"&&((Rt=Oe==null?void 0:Oe.className)!=null&&Rt.includes(qe)))return Oe;for(let Pn=0,fn=Oe;fn=fn.parentNode;Pn++){if(typeof(Oe==null?void 0:Oe.className)=="string"&&((gt=fn==null?void 0:fn.className)!=null&>.includes(qe)))return fn;if(fn==document.documentElement)return!1}},Df=Oe=>{Oh(Oe.target,"editor-scrollable")&&Zl()},Zl=()=>(0,Le.gy)(ut,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"),mh=Oe=>Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u5B9E\u9A8C\u754C\u9762",errorKey:"interface",errorValue:Wo,align:"start",errorName:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u754C\u9762",tooltipTitle:Qt.createElement("div",{className:"p10"},Oe&&Qt.createElement(Qt.Fragment,null,Qt.createElement("b",{className:"font14"},"\u4EE3\u7801\u7F16\u8F91\u5668"),Qt.createElement("br",null),"\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\u3001\u7F16\u8BD1\u5668\u3001\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177\u3002",Qt.createElement("br",null),"\u5F53\u9009\u62E9\u4E86VSCode\u76F8\u5173\u7684\u5B9E\u9A8C\u955C\u50CF\u65F6\uFF0C\u4EE3\u7801\u7F16\u8F91\u5668\u4EE5VSCode\u7684\u5F62\u5F0F\u5C55\u793A\u7ED9\u5B66\u5458\u3002",Qt.createElement("br",null),"\u6BCF\u4E2A\u5B9E\u8DF5\u9879\u76EE",Qt.createElement("b",null,"\u53EA\u80FD\u5F00\u542F\u4E00\u4E2A"),"\u4EE3\u7801\u7F16\u8F91\u5668\u754C\u9762\u3002",Qt.createElement("br",null)),Qt.createElement("div",{className:"mt10 blod font14"},"\u56FE\u5F62\u5316\u684C\u9762"),"\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\u3002",Qt.createElement("br",null),Qt.createElement("div",{className:"mt10 blod font14"},"\u547D\u4EE4\u884C\u7EC8\u7AEF"),"\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3\u3002",Oe&&Qt.createElement(Qt.Fragment,null,Qt.createElement("div",{className:"mt10 blod font14"},"\u5BB9\u5668\u5185\u670D\u52A1"),"\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u53EF\u4EE5\u5728\u5B9E\u9A8C\u9875\u9762\u76F4\u63A5\u9884\u89C8\u5BB9\u5668\u5185\u90E8Web\u670D\u52A1\u3002"))},Qt.createElement("div",{className:Ui.interface},Oe&&Qt.createElement("div",{onClick:()=>fe("shixun_environment","is_support_code_editor",!(Si!=null&&Si.is_support_code_editor)),className:Si!=null&&Si.is_support_code_editor?Ui.active:""},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-daimabianjiqi1"}),Qt.createElement("span",null,"\u4EE3\u7801\u7F16\u8F91\u5668")),Qt.createElement("aside",null," \u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u7F16\u8BD1\u5668\uFF0C\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177")),Si!=null&&Si[Oe?"disabled_support_vnc":"disabled2_support_vnc"]?Qt.createElement(ki.Z,{title:"\u9009\u62E9\u7684\u5B9E\u9A8C\u955C\u50CF\u4E0D\u652F\u6301\u56FE\u5F62\u5316\u684C\u9762"},Qt.createElement("div",{className:Ui.disabled},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-tuxinghuazhuomian"}),Qt.createElement("span",null,"\u56FE\u5F62\u5316\u684C\u9762")),Qt.createElement("aside",null,"\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762"))):Qt.createElement("div",{onClick:()=>fe("shixun_environment",Oe?"is_support_vnc":"private_is_support_vnc",!(Si!=null&&Si[Oe?"is_support_vnc":"private_is_support_vnc"])),className:Si!=null&&Si[Oe?"is_support_vnc":"private_is_support_vnc"]?Ui.active:""},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-tuxinghuazhuomian"}),Qt.createElement("span",null,"\u56FE\u5F62\u5316\u684C\u9762")),Qt.createElement("aside",null,"\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762")),Si!=null&&Si[Oe?"disabled_support_webssh":"disabled2_support_webssh"]?Qt.createElement(ki.Z,{title:"\u9009\u62E9\u7684\u5B9E\u9A8C\u955C\u50CF\u4E0D\u652F\u6301\u547D\u4EE4\u884C\u7EC8\u7AEF"},Qt.createElement("div",{className:Ui.disabled},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-minglinghang"}),Qt.createElement("span",null,"\u547D\u4EE4\u884C\u7EC8\u7AEF")),Qt.createElement("aside",null,"\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3"))):Qt.createElement("div",{onClick:()=>fe("shixun_environment",Oe?"is_support_webssh":"private_is_support_webssh",!(Si!=null&&Si[Oe?"is_support_webssh":"private_is_support_webssh"])),className:Si!=null&&Si[Oe?"is_support_webssh":"private_is_support_webssh"]?Ui.active:""},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-minglinghang"}),Qt.createElement("span",null,"\u547D\u4EE4\u884C\u7EC8\u7AEF")),Qt.createElement("aside",null," \u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3")),Oe&&Qt.createElement("div",{onClick:()=>fe("shixun_environment","is_support_thiry_party",!(Si!=null&&Si.is_support_thiry_party)),className:Si!=null&&Si.is_support_thiry_party?Ui.active:""},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-rongqi1"}),Qt.createElement("span",null,"\u5BB9\u5668\u5185\u670D\u52A1")),Qt.createElement("aside",null," \u76F4\u63A5\u9884\u89C8\u5BB9\u5668\u5185\u90E8Web\u670D\u52A1")),!Oe&&Qt.createElement(Qt.Fragment,null,Si!=null&&Si.disabled2_support_jupyter_lab?Qt.createElement(ki.Z,{title:"\u9009\u62E9\u7684\u5B9E\u9A8C\u955C\u50CF\u4E0D\u652F\u6301jupyterLab"},Qt.createElement("div",{className:Ui.disabled},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-jupyterLab"}),Qt.createElement("span",null,"jupyter Lab")),Qt.createElement("aside",null,"\u63D0\u4F9B\u4EA4\u4E92\u5F0F\u7B14\u8BB0\u64CD\u4F5C\u754C\u9762"))):Qt.createElement("div",{onClick:()=>fe("shixun_environment","private_is_support_jupyter_lab",!(Si!=null&&Si.private_is_support_jupyter_lab)),className:Si!=null&&Si.private_is_support_jupyter_lab?Ui.active:""},Qt.createElement("span",{className:"iconfont icon-xuanzhong9"}),Qt.createElement("div",null,Qt.createElement("i",{className:"iconfont icon-jupyterLab"}),Qt.createElement("span",null,"jupyter Lab")),Qt.createElement("aside",null," \u63D0\u4F9B\u4EA4\u4E92\u5F0F\u7B14\u8BB0\u64CD\u4F5C\u754C\u9762"))))),mf=(Oe,qe,Rt)=>{const gt=Array.from(Oe),[Pn]=gt.splice(qe,1);return gt.splice(Rt,0,Pn),gt},bg=(Oe,qe)=>il(void 0,null,function*(){if(!Oe.destination)return;const Rt=mf(qe,Oe.source.index,Oe.destination.index);mr(Rt),(0,Ct.ZP)(`/api/shixuns/${Wr}/update_environment_position.json`,{method:"put",body:{tabs:Rt}})}),Cu=(Oe,qe)=>{let Rt=qe;Ge.default.confirm({icon:null,centered:!0,className:qo.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},width:460,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",title:"\u91CD\u547D\u540D",content:Qt.createElement("div",null,Qt.createElement("div",{className:"mb5 c-grey-333"},"\u5B9E\u9A8C\u73AF\u5883\u540D\u79F0"),Qt.createElement("div",null,Qt.createElement(Me.default,{defaultValue:Rt,onChange:gt=>Rt=gt.target.value,maxLength:8,style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u73AF\u5883\u540D\u79F0"}),Qt.createElement("span",{className:"c-grey-999 font14 ml10"},"\u6700\u591A8\u4E2A\u5B57"))),onOk:()=>il(void 0,null,function*(){if(!Rt)return Mt.ZP.warning("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const gt=kr.map(fn=>fn.id===Oe?eu(Ss({},fn),{name:Rt}):fn);if(Zo===0){mr(gt);return}(yield(0,Ct.ZP)(`/api/shixuns/${Wr}/update_environment_name.json`,{method:"put",body:{shixun_environment_id:Oe,name:Rt}})).status===0&&mr(gt)})})},Bg=(Oe,qe)=>{Zl()||Ge.default.confirm({icon:null,centered:!0,className:qo.Z.CustomTipsModalCss,width:425,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",title:"\u5220\u9664",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u5B9E\u9A8C\u73AF\u5883\uFF1F",okButtonProps:{type:"primary"},onOk:()=>il(void 0,null,function*(){var Rt;if((Zo===0?{status:0}:yield(0,Ct.ZP)(`/api/shixuns/${Wr}/delete_environment.json`,{method:"delete",body:{shixun_environment_id:Oe}})).status===0){const Pn=kr.filter(fn=>fn.id!==Oe);if(Oe===Zo){const fn=((Rt=Pn==null?void 0:Pn[0])==null?void 0:Rt.id)||null;Yo(fn),Rd(fn),mr(Pn)}else mr(Pn)}})})},vh=Oe=>{var qe;if(Oe===Zo)return;const Rt=()=>{Yo(Oe),Rd(Oe),qh()};(qe=nt==null?void 0:nt.sideBar)!=null&&qe.confirmLeave?Ge.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:()=>{Rt()}}):Rt()},Wd=Oe=>{const qe=eu(Ss({},Fr),{shixun_environment:eu(Ss({},Si),{is_support_code_editor:Oe.no_used_code_editor,is_support_vnc:!1,is_support_webssh:!1,is_support_thiry_party:!1,disabled_support_vnc:Oe.disabled_support_vnc,disabled_support_webssh:Oe.disabled_support_webssh,open_start_command:Oe.open_start_command,start_command:Oe.start_command,open_envs:Oe.open_envs,envs:Oe.envs,privileged:Oe.privileged,add_cap:Oe.add_cap,drop_cap:Oe.drop_cap}),mirror_repository:eu(Ss({},fr),{id:Oe.id,name:Oe.name,choice_small_type:[],choice_small_mirrors:[],shixun_service_configs:Oe.shixun_service_configs||[],description:Oe.description}),small_type:Oe.small_type});ha===0?ss(qe==null?void 0:qe.mirror_repository):ha===1?oa(qe==null?void 0:qe.mirror_repository):ha===2&&El(qe==null?void 0:qe.mirror_repository),po(qe),Hl(!1),mo("")},Ih=Oe=>{Hl(!1)},ie=(Oe=!1,qe=1)=>il(void 0,null,function*(){var Rt,gt,Pn;Ys(!0);const fn=(Rt=kr.find(Bi=>Bi.id===Zo))==null?void 0:Rt.name,Ci=yield(0,Ct.ZP)(`/api/shixuns/${Wr}/update_for_multi.json`,{method:"put",body:{tabs:kr,shixun_environment_id:Zo,sub_type:fr==null?void 0:fr.choice_small_type,main_type:fr.id,shixun_environment:eu(Ss({},Si),{name:fn,mirror_tab_type:ha,network_mode:pf}),shixun_service_configs:fr==null?void 0:fr.shixun_service_configs,new_service_configs:la,sync_origin_shixun:Oe,command_settings:Si==null?void 0:Si.command_settings}});Ci.status===0&&(Rd(Ci.shixun_environment_id),Yo(Ci.shixun_environment_id),qh(),(gt=Ne==null?void 0:Ne.detail)!=null&>.copy_for_exercise||Mt.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Pn=Ne==null?void 0:Ne.detail)!=null&&Pn.copy_for_exercise&&(0,yi.m)(ut,Ne,Wr,qe)),Ys(!1)}),ae=()=>{var Oe;if(Zl())return;if(Zo===0||(Oe=nt==null?void 0:nt.sideBar)!=null&&Oe.confirmLeave){Mt.ZP.warning("\u5F53\u524D\u5B9E\u9A8C\u73AF\u5883\u6B63\u5728\u7F16\u8F91\u4E2D\uFF0C\u4E0D\u80FD\u6DFB\u52A0\u65B0\u7684\u5B9E\u9A8C\u73AF\u5883");return}const qe=(0,Zn.cloneDeep)(Xs);console.log("cloneData---",qe),mr([...kr,{id:0,name:`\u5B9E\u9A8C\u73AF\u5883${kr.length+1}`}]),ta(0),ss({}),oa({}),El({}),Yo(0),po(qe)},fe=(Oe,qe,Rt)=>il(void 0,null,function*(){var gt,Pn,fn,Ci,Bi,nr,pr,hr,Dr,vo,Qo,Kr,ka,rs,Ql,pl,ac,_u,mu,sc,Wu,vu;if(Zl())return;const Mo=(0,Zn.cloneDeep)(xo.current);if(qe==="is_support_code_editor"&&Rt&&(yield $d()),qe==="resource_type"&&(Mo.shixun_environment.instance_startup_type=1,Mo.shixun_environment.command_settings=qd.current,qd.current=xo.current.shixun_environment.command_settings,Rt===2&&!Mo.shixun_environment.private_cloud_id&&(Mo.shixun_environment.private_cloud_id=(gt=Co==null?void 0:Co[0])==null?void 0:gt.id,Mo.shixun_environment.operating_system=1,Ed(Mo.shixun_environment.private_cloud_id,Mo.shixun_environment.operating_system))),qe==="private_cloud_id"&&(Mo.shixun_environment.private_is_support_vnc=!1,Mo.shixun_environment.private_is_support_webssh=!1,Mo.shixun_environment.private_is_support_jupyter_lab=!1,Mo.shixun_environment.operating_system=1,Mo.shixun_environment.instance_startup_template_id=null,Mo.shixun_environment.instance_startup_type=1,Ed(Rt,Mo.shixun_environment.operating_system)),qe==="operating_system"&&Rt&&(Mo.shixun_environment.private_is_support_vnc=!1,Mo.shixun_environment.private_is_support_webssh=!1,Mo.shixun_environment.private_is_support_jupyter_lab=!1,Mo.shixun_environment.instance_startup_template_id=null,Mo.shixun_environment.instance_startup_type=1,Ed(Mo.shixun_environment.private_cloud_id,Rt)),qe==="instance_startup_template_id"){Mo.shixun_environment.private_is_support_vnc=!1,Mo.shixun_environment.private_is_support_webssh=!1,Mo.shixun_environment.private_is_support_jupyter_lab=!1,Mo.shixun_environment.instance_startup_type=1;const Ms=Ar.find(Ul=>Ul.id===Rt);Mo.shixun_environment.disabled2_support_vnc=Ms.disabled_support_vnc,Mo.shixun_environment.disabled2_support_webssh=Ms.disabled_support_webssh,Mo.shixun_environment.disabled2_support_jupyter_lab=Ms.disabled_support_jupyter_lab,Mo.boosters=Ms.boosters,Mo.network_mode_list=Ms.network_mode_list,cs((Ci=(fn=(Pn=Ms.network_mode_list)==null?void 0:Pn.filter(Ul=>Ul.is_default))==null?void 0:fn[0])==null?void 0:Ci.network_mode),Mo.new_service_configs=Ms!=null&&Ms.service_config_info?[Ms.service_config_info]:[]}if((qe==="private_is_support_vnc"||qe==="private_is_support_webssh")&&(Mo.shixun_environment.instance_startup_type=1),qe==="choice_small_type"){Mo.mirror_repository.choice_small_mirrors=ms.filter(ks=>Rt.includes(ks.id));const Ms=Mo.mirror_repository.choice_small_mirrors,Ul=fr.choice_small_mirrors;if(Ms.length>Ul.length){const ks=(0,Zn.differenceBy)(Ms,Ul,"id");if((Bi=ks==null?void 0:ks[0])!=null&&Bi.mirror_name){const Hc={cpu_limit:((hr=(pr=(nr=ks==null?void 0:ks[0])==null?void 0:nr.shixun_service_configs)==null?void 0:pr[0])==null?void 0:hr.cpu_limit)||1,lower_cpu_limit:((Qo=(vo=(Dr=ks==null?void 0:ks[0])==null?void 0:Dr.shixun_service_configs)==null?void 0:vo[0])==null?void 0:Qo.lower_cpu_limit)||.1,memory_limit:((rs=(ka=(Kr=ks==null?void 0:ks[0])==null?void 0:Kr.shixun_service_configs)==null?void 0:ka[0])==null?void 0:rs.memory_limit)||1,mirror_repository_id:(Ql=ks==null?void 0:ks[0])==null?void 0:Ql.id,name:(pl=ks==null?void 0:ks[0])==null?void 0:pl.mirror_name,request_limit:((mu=(_u=(ac=ks==null?void 0:ks[0])==null?void 0:ac.shixun_service_configs)==null?void 0:_u[0])==null?void 0:mu.request_limit)||10,resource_limit:((vu=(Wu=(sc=ks==null?void 0:ks[0])==null?void 0:sc.shixun_service_configs)==null?void 0:Wu[0])==null?void 0:vu.resource_limit)||10};Mo.mirror_repository.shixun_service_configs.push(Hc)}}else{const ks=(0,Zn.differenceBy)(Ul,Ms,"id");Mo.mirror_repository.shixun_service_configs=Mo.mirror_repository.shixun_service_configs.filter(Hc=>{var Ml;return Hc.mirror_repository_id!==((Ml=ks==null?void 0:ks[0])==null?void 0:Ml.id)})}}qe?Mo[Oe][qe]=Rt:Mo[Oe]=Rt,console.log("cloneData",Mo),mo(""),po(Mo)}),he=(Oe,qe,Rt)=>{var gt,Pn;const fn=/^\d*(\.\d*)?$/,Ci=["cpu_limit","lower_cpu_limit","memory_limit","request_limit","resource_limit"],Bi=(0,Zn.cloneDeep)((Pn=(gt=xo.current)==null?void 0:gt.mirror_repository)==null?void 0:Pn.shixun_service_configs);if(Ci.includes(qe)){Rt.match(fn)&&(Bi[Oe][qe]=Rt,fe("mirror_repository","shixun_service_configs",Bi));return}Bi[Oe][qe]=Rt,fe("mirror_repository","shixun_service_configs",Bi)},me=()=>{Ge.default.info({centered:!0,icon:null,width:460,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:Qt.createElement("div",{className:"tc"},Qt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Xi,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"})},De=()=>{var Oe,qe,Rt,gt,Pn,fn,Ci,Bi,nr,pr;if(!Zl()){if((Si==null?void 0:Si.resource_type)===1){if(!(fr!=null&&fr.id)){mo("mirror");return}if(!(Si!=null&&Si.is_support_code_editor)&&!(Si!=null&&Si.is_support_vnc)&&!(Si!=null&&Si.is_support_webssh)&&!(Si!=null&&Si.is_support_thiry_party)){mo("interface");return}if(Si.is_support_thiry_party&&!(Si!=null&&Si.proxy_port)){mo("port"),Ka("\u8BF7\u8F93\u5165\u7AEF\u53E3");return}if(Si.is_support_thiry_party&&(Si!=null&&Si.proxy_port)&&parseInt(Si==null?void 0:Si.proxy_port)>65535||((Oe=Si==null?void 0:Si.proxy_port)==null?void 0:Oe.length)>1&&((qe=Si==null?void 0:Si.proxy_port)==null?void 0:qe[0])==="0"){mo("port"),Ka("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7AEF\u53E3");return}if(!((Rt=fr==null?void 0:fr.shixun_service_configs)!=null&&Rt.length)){mo("shixun_service_configs");return}for(let hr of fr==null?void 0:fr.shixun_service_configs){if(hr!=null&&hr.open_start_command&&!(hr!=null&&hr.start_command)){mo("start_command");return}if(hr!=null&&hr.open_envs&&!(hr!=null&&hr.envs)){mo("envs");return}}if(Si!=null&&Si.webssh_host&&!/^[a-z0-9\-]*$/.test(Si==null?void 0:Si.webssh_host)){Mt.ZP.warning("\u4E3B\u673A\u540D\u53EA\u80FD\u8F93\u5165\u6570\u5B57\u3001\u5C0F\u5199\u5B57\u6BCD\u3001\u8FDE\u5B57\u7B26");return}if((Pn=(gt=fr==null?void 0:fr.shixun_service_configs)==null?void 0:gt[0])!=null&&Pn.webssh_host&&!/^(?![0-9]+$)(?!.*--)[a-z0-9](?:[a-z0-9-]{0,60}[a-z0-9])$/.test((Ci=(fn=fr==null?void 0:fr.shixun_service_configs)==null?void 0:fn[0])==null?void 0:Ci.webssh_host)){Jl(!0);return}}if((Si==null?void 0:Si.resource_type)===2){if(!(Si!=null&&Si.operating_system)){mo("system");return}if(!(Si!=null&&Si.instance_startup_template_id)){mo("template");return}if(!(Si!=null&&Si.private_is_support_vnc)&&!(Si!=null&&Si.private_is_support_webssh)&&!(Si!=null&&Si.private_is_support_jupyter_lab)){mo("interface");return}if((Si==null?void 0:Si.operating_system)===1&&(Si!=null&&Si.private_is_support_vnc)&&Nh&&!(Si!=null&&Si.instance_startup_type)){mo("instance_startup_type");return}}if((Si!=null&&Si.is_support_webssh||Si!=null&&Si.private_is_support_webssh)&&((Bi=Si==null?void 0:Si.command_settings)==null?void 0:Bi.some(Dr=>{var vo,Qo;return!Dr.command&&!!((vo=Dr.challenge_ids)!=null&&vo.length)||Dr.command&&!((Qo=Dr.challenge_ids)!=null&&Qo.length)}))){mo("command_settings");return}(nr=Ne==null?void 0:Ne.detail)!=null&&nr.is_fork_from_creator&&((pr=Ne==null?void 0:Ne.detail)!=null&&pr.copy_for_exercise)&&Zo!=0&&(Si!=null&&Si.has_relation)?ut({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"environment",fn:(hr,Dr)=>{ie(hr,Dr)}}}):ie()}},Ve=Oe=>il(void 0,null,function*(){yield he(Oe.index,"cpu_limit",String(Oe==null?void 0:Oe.cpu)),yield he(Oe.index,"memory_limit",String(Oe==null?void 0:Oe.memory))}),Xe=Oe=>{const qe=(0,Zn.cloneDeep)(la);qe[Oe.index]=eu(Ss({},qe[Oe.index]),{cpu_limit:String(Oe==null?void 0:Oe.cpu),memory_limit:String(Oe==null?void 0:Oe.memory)}),fe("new_service_configs","",qe)};return Qt.createElement("div",{className:Ui.wrap},Qt.createElement("div",{className:Ui.content},Qt.createElement("div",{className:Ui.head},Qt.createElement("div",{className:Ui.title},"\u5B9E\u9A8C\u73AF\u5883"),kr.length<rl?Qt.createElement("div",{onClick:ae,className:Ui.add},"\u6DFB\u52A0\u5B9E\u9A8C\u73AF\u5883"):Qt.createElement(ki.Z,{title:`\u6700\u591A\u53EF\u4EE5\u6DFB\u52A0${rl}\u4E2A\u5B9E\u9A8C\u73AF\u5883`},Qt.createElement("div",{className:Ui.addDisable},"\u6DFB\u52A0\u5B9E\u9A8C\u73AF\u5883")),Qt.createElement("div",{onClick:()=>Wa(!0),className:Ui.setting},"\u8BBE\u7F6E")),!!kr.length&&Qt.createElement(ce.Fragment,null,Qt.createElement(sn.Z5,{onDragEnd:Oe=>bg(Oe,kr)},Qt.createElement(sn.bK,{droppableId:"droppable",direction:"horizontal"},(Oe,qe)=>Qt.createElement("div",eu(Ss({},Oe.droppableProps),{ref:Oe.innerRef,className:Ui.tabs}),kr.map((Rt,gt)=>{const{name:Pn,id:fn}=Rt;return Qt.createElement(sn._l,{key:fn,draggableId:fn.toString(),index:gt},(Ci,Bi)=>Qt.createElement("div",eu(Ss(Ss({},Ci.draggableProps),Ci.dragHandleProps),{ref:Ci.innerRef,className:Zo===fn?Ui.active:"",key:fn}),Qt.createElement("i",{className:"iconfont icon-tuodong"}),Qt.createElement("span",{className:Ui.name,onClick:()=>vh(fn)},Pn),Qt.createElement(yo.Z,{trigger:["click"],dropdownRender:()=>Qt.createElement(ho.default,{style:{width:92}},Qt.createElement(ho.default.Item,{onClick:()=>Cu(fn,Pn),className:"font14"},"\u91CD\u547D\u540D"),Qt.createElement(ho.default.Item,{onClick:()=>Bg(fn,Pn),className:"font14"},"\u5220\u9664")),getPopupContainer:nr=>nr.parentNode},Qt.createElement("i",{className:"iconfont icon-zhankai5 current"}))))}),Oe.placeholder))),Qt.createElement("div",{className:Ui.line})),Qt.createElement(Bo.Z,{loading:xa||Ko,active:!0},!!kr.length&&Qt.createElement(ce.Fragment,null,Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u5B9E\u9A8C\u8D44\u6E90",tooltipTitle:Qt.createElement("div",{className:"p10"},Qt.createElement("b",{className:"font14"},"\u901A\u7528\u4E91"),Qt.createElement("br",null),"\u5E38\u89C4\u573A\u666F\u9009\u7528\uFF0C\u8C03\u7528\u5934\u6B4C\u901A\u7528\u8D44\u6E90\uFF0C\u57FA\u4E8E\u5BB9\u5668\u5F62\u5F0F\u4E3A\u5B9E\u8BAD\u63D0\u4F9B\u865A\u62DF\u5B9E\u9A8C\u73AF\u5883\u3002",Qt.createElement("br",null),Qt.createElement("div",{className:"mt10 blod font14"},"\u4E13\u6709\u4E91"),"\u4E13\u7528\u573A\u666F\uFF0C\u53EF\u9009\u7528\u4E0D\u540C\u4E91\u96C6\u7FA4\u7684\u8D44\u6E90\uFF0C\u5305\u62EC\u963F\u91CC\u4E91\u3001\u534E\u4E3A\u4E91\u3001\u7B97\u80FD\u4E91\u7B49\uFF0C\u5982\u7B97\u80FD\u4E91\u9002\u7528\u4E8E\u9700\u8981\u8C03\u7528TPU\u8D44\u6E90\u8BAD\u7EC3\u7684\u5B9E\u8BAD")},Qt.createElement("div",{className:Ui.resource},cd.map(Oe=>Qt.createElement("div",{key:Oe.id,className:(Si==null?void 0:Si.resource_type)===Oe.id?Ui.active:"",onClick:()=>{(Si==null?void 0:Si.resource_type)!==Oe.id&&fe("shixun_environment","resource_type",Oe.id)}},Oe.name)))),(Si==null?void 0:Si.resource_type)===1&&Qt.createElement(ce.Fragment,null,Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u5B9E\u9A8C\u955C\u50CF"},Qt.createElement("div",{className:Ui.resource,style:{width:300}},gh.map(Oe=>Qt.createElement("div",{key:Oe.id,className:ha===Oe.id?Ui.active:"",onClick:()=>{ha!==Oe.id&&(Zl()||(ta(Oe.id),mo(""),Oe.id===0&&po(eu(Ss({},Fr),{mirror_repository:Ss({},bs)})),Oe.id===1&&po(eu(Ss({},Fr),{mirror_repository:Ss({},Do)})),Oe.id===2&&po(eu(Ss({},Fr),{mirror_repository:Ss({},Ga)}))))}},Oe.name)))),Qt.createElement(qn.Z,{nameWidth:150,errorKey:"mirror",errorValue:Wo,errorName:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u955C\u50CF"},Qt.createElement(dt.Z,{align:"middle"},qi===!1?Qt.createElement(Qt.Fragment,null,!!(fr!=null&&fr.id)&&Qt.createElement(Qt.Fragment,null,Qt.createElement("div",{onClick:()=>{Zl()||Hl(!0)},className:Ui.mirror},Qt.createElement("div",null,fr==null?void 0:fr.name),Qt.createElement("i",{className:"iconfont icon-genghuan"})),Qt.createElement(rr.Z,{value:[{description:fr==null?void 0:fr.description,name:fr==null?void 0:fr.name}],title:"\u5B9E\u9A8C\u955C\u50CF\u8BF4\u660E"},Qt.createElement("span",{className:Ui.explain},"\u5B9E\u9A8C\u955C\u50CF\u8BF4\u660E"))),!(fr!=null&&fr.id)&&Qt.createElement("div",{onClick:()=>{Hl(!0)},className:Ui.mirror},Qt.createElement("i",{className:"iconfont icon-tianjia3 font14 mr10"}),Qt.createElement("div",null,"\u9009\u62E9\u5B9E\u9A8C\u955C\u50CF"))):"\u6682\u65E0\u6570\u636E")),mh(!0),(Si==null?void 0:Si.is_support_webssh)&&Qt.createElement(qn.Z,{nameWidth:150,align:"start",name:"\u5F00\u542F\u65F6\u89E6\u53D1\u547D\u4EE4",tooltipTitle:Qt.createElement("div",null,"\u6BCF\u6B21\u6253\u5F00\u65B0\u7684\u7EC8\u7AEF\u7A97\u53E3\u65F6\uFF0C\u81EA\u52A8\u53D1\u9001\u5E76\u6267\u884C\u6307\u5B9A\u7684\u547D\u4EE4\u6216\u6587\u672C\u3002\u7528\u4E8E\u81EA\u52A8\u5316\u7EC8\u7AEF\u4EFB\u52A1\u6216\u521D\u59CB\u5316\u5DE5\u4F5C\u73AF\u5883")},Qt.createElement(nl,{showError:Wo==="command_settings",value:Si==null?void 0:Si.command_settings,onChange:Oe=>fe("shixun_environment","command_settings",Oe),optionsLevelList:oc})),(Si==null?void 0:Si.is_support_thiry_party)&&Qt.createElement(qn.Z,{required:!0,nameWidth:150,align:"start",name:"\u7AEF\u53E3\u914D\u7F6E",errorKey:"port",errorValue:Wo,errorName:Sa},Qt.createElement(dt.Z,null,Qt.createElement("div",{className:"font14",style:{lineHeight:"14px"}},Qt.createElement("div",null,"\u5BB9\u5668\u7AEF\u53E3"),Qt.createElement(Me.default,{onClick:Zl,value:Si==null?void 0:Si.proxy_port,onChange:Oe=>{const qe=Oe.target.value;(qe===""||/^[0-9]\d*$/.test(qe))&&fe("shixun_environment","proxy_port",Oe.target.value)},bordered:!1,style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:6}})),Qt.createElement("div",{className:"ml20"},Qt.createElement("div",{className:"font14",style:{lineHeight:"14px"}},"\u8DEF\u7531\uFF08\u9009\u586B\uFF09"),Qt.createElement(Me.default,{onClick:Zl,value:Si==null?void 0:Si.web_route,onChange:Oe=>fe("shixun_environment","web_route",Oe.target.value),bordered:!1,style:{width:450,height:50,background:"#F5F5F5",borderRadius:4,marginTop:6}})))),Qt.createElement(qn.Z,{name:"\u9644\u5E26\u73AF\u5883",nameWidth:150},Qt.createElement(dt.Z,{align:"middle"},Qt.createElement(Sr.default,{getPopupContainer:Oe=>Oe.parentNode,onClick:Zl,mode:"multiple",bordered:!1,className:"mr10",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{minWidth:400,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},value:fr==null?void 0:fr.choice_small_type,onChange:Oe=>fe("mirror_repository","choice_small_type",Oe),showArrow:!0,maxTagCount:5},ms.map((Oe,qe)=>Qt.createElement(os,{key:Oe.id,value:Oe.id},Oe.type_name))),!!((Qi=fr==null?void 0:fr.choice_small_mirrors)!=null&&Qi.length)&&Qt.createElement(rr.Z,{value:(fr==null?void 0:fr.choice_small_mirrors)||[],title:"\u9644\u5E26\u73AF\u5883\u8BF4\u660E"},Qt.createElement("span",{className:Ui.explain},"\u9644\u5E26\u73AF\u5883\u8BF4\u660E")))),(0,Zr.Ny)()&&Qt.createElement(ce.Fragment,null,Qt.createElement("div",{onClick:()=>as(!ts),className:Ui.grade},"\u9AD8\u7EA7\u8BBE\u7F6E",Qt.createElement("i",{className:`iconfont ${ts?"icon-shouqi4":"icon-a-xialazhankai"}`})),ts&&Qt.createElement(ce.Fragment,null,Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u955C\u50CF\u914D\u7F6E",align:"start",errorKey:"shixun_service_configs",errorValue:Wo,errorName:"\u8BF7\u6DFB\u52A0\u955C\u50CF\u914D\u7F6E",contentStyle:{overflow:(bi=fr==null?void 0:fr.shixun_service_configs)!=null&&bi.length?"hidden":"initial"}},Qt.createElement("div",{className:Ui.tabsBox},!((bn=fr==null?void 0:fr.shixun_service_configs)!=null&&bn.length)&&Qt.createElement(dn.Z,{image:Wi,imageStyle:{height:180,marginTop:67},description:""}),!!((Li=fr==null?void 0:fr.shixun_service_configs)!=null&&Li.length)&&Qt.createElement(ln.default,{destroyInactiveTabPane:!0,moreIcon:Qt.createElement("span",{className:Ui.more},"\u66F4\u591A ",Qt.createElement("i",{className:"iconfont icon-xiala1"}))},(xr=fr==null?void 0:fr.shixun_service_configs)==null?void 0:xr.map((Oe,qe)=>{var Rt;const{cpu_limit:gt,lower_cpu_limit:Pn,memory_limit:fn,request_limit:Ci,resource_limit:Bi,name:nr,shixun_update_logs:pr}=Oe;return Qt.createElement(ln.default.TabPane,{className:"p20",tab:Qt.createElement("div",{title:nr,className:Ui.tabTitle},nr),key:qe},(pr==null?void 0:pr.user_name)&&Qt.createElement("div",{style:{margin:"-15px 0 15px 0"}},"\u6700\u8FD1\u4FEE\u6539\u4EBA\uFF1A ",pr==null?void 0:pr.user_name,"\uFF08",pr==null?void 0:pr.user_login,"\uFF09 \u4FEE\u6539\u65F6\u95F4\uFF1A",pr!=null&&pr.created_at?Er()(pr==null?void 0:pr.created_at).format("YYYY-MM-DD HH:mm:ss"):"--"),Qt.createElement(qn.Z,{nameWidth:150,name:"\u8D44\u6E90\u914D\u7F6E",align:"center"},Qt.createElement(dt.Z,{align:"middle"},Qt.createElement(dt.Z,{align:"middle",className:"mr20",wrap:!1},Qt.createElement("div",{className:Ui.serverConfig,onClick:()=>{Zl()||(pu({index:qe,cpu:gt,memory:fn}),na(!0))}},Qt.createElement("div",null,Qt.createElement("span",null,gt,"\u6838")," ",Qt.createElement("span",null,fn,"GB")),Qt.createElement("i",{className:"iconfont icon-bianji21"}))),qe==0&&Qt.createElement(dt.Z,{align:"middle",wrap:!1},Qt.createElement("div",{className:Ui.viewRecommendConfig,onClick:()=>$s(!0)},"\u67E5\u770B\u63A8\u8350\u914D\u7F6E")))),Qt.createElement(qn.Z,{nameWidth:150,name:"\u6587\u4EF6\u5927\u5C0F\u9650\u5236",align:"center"},Qt.createElement(dt.Z,{align:"middle"},Qt.createElement(dt.Z,{align:"middle",wrap:!1},Qt.createElement(Me.default,{onClick:Zl,style:{width:400},value:Bi,maxLength:5,onChange:hr=>{const{value:Dr}=hr.target,vo=/^\d*(\.\d*)?$/;Dr.match(vo)&&he(qe,"resource_limit",hr.target.value)},addonAfter:"M"}),Qt.createElement("span",{style:{marginLeft:10,color:"#999"}},"File size limit\u53C2\u6570\uFF0C\u8868\u793A\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u7684\u5927\u5C0F\u9650\u5236")))),Qt.createElement(qn.Z,{nameWidth:150,name:"\u542F\u52A8\u8BBE\u7F6E",align:"start",required:Oe==null?void 0:Oe.open_start_command,errorKey:"start_command",errorValue:Wo,errorName:"\u8BF7\u8F93\u5165\u542F\u52A8\u547D\u4EE4"},Qt.createElement("div",{className:"font14 mb5"},"\u7528\u6237\u540D",Qt.createElement("span",{className:"c-grey-999"},"\uFF08\u767B\u5F55\u5BB9\u5668\u65F6\u53EF\u4F7F\u7528\u7684\u7528\u6237\u540D\uFF09")),Qt.createElement(Sr.default,{getPopupContainer:hr=>hr.parentNode,onClick:Zl,bordered:!1,fieldNames:{label:"name",value:"id"},options:(Rt=Fr==null?void 0:Fr.mirror_repository)==null?void 0:Rt.webssh_user_arr,value:(Oe==null?void 0:Oe.webssh_user)||"root",onChange:hr=>he(qe,"webssh_user",hr),style:{minWidth:400,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10,marginBottom:20}}),Qt.createElement("div",{className:"font14 mb5"},"\u4E3B\u673A\u540D",Qt.createElement("span",{className:"c-grey-999"},"\uFF08\u767B\u5F55\u5BB9\u5668\u65F6\u53EF\u6307\u5B9A\u4E3B\u673A\u540D\uFF09")),Qt.createElement(dt.Z,{className:"mb20"},Qt.createElement(Me.default,{bordered:!1,onClick:Zl,value:Oe==null?void 0:Oe.webssh_host,maxLength:255,placeholder:"\u9009\u586B\uFF0C\u64CD\u4F5C\u7CFB\u7EDF\u5185\u90E8\u7684\u8BA1\u7B97\u673A\u540D",onChange:hr=>{he(qe,"webssh_host",hr.target.value),hr.target.value?/^(?![0-9]+$)(?!.*--)[a-z0-9](?:[a-z0-9-]{0,60}[a-z0-9])$/.test(hr.target.value)?Jl(!1):Jl(!0):Jl(!1)},style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:5,marginRight:10}}),Qt.createElement("div",{style:{marginTop:8,maxWidth:575},className:"c-grey-999"},"\u957F\u5EA6\u4E3A2~64\u4E2A\u5B57\u7B26\uFF0C\u53EA\u80FD\u5305\u542B\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u8FDE\u5B57\u7B26 \u201C-\u201D\uFF0C\u5FC5\u987B\u4EE5\u5B57\u6BCD\u6216\u6570\u5B57\u5F00\u5934\u548C\u7ED3\u5C3E",Qt.createElement("br",null),"\u4E0D\u80FD\u8FDE\u7EED\u4F7F\u7528 \u201C-\u201D\uFF0C\u4E0D\u80FD\u4F7F\u7528\u7EAF\u6570\u5B57")),Zs&&Qt.createElement("div",{style:{color:"#E53333",marginTop:"-15px",marginBottom:"5px"}},"\u8BF7\u8F93\u5165\u89C4\u8303\u7684\u4E3B\u673A\u540D"),Qt.createElement(Kt.default,{checked:Oe==null?void 0:Oe.open_start_command,onChange:hr=>he(qe,"open_start_command",hr.target.checked),style:{marginTop:-4},className:"font14"},"\u542F\u52A8\u547D\u4EE4",Qt.createElement("span",{className:"c-grey-999"},"\uFF08\u542F\u52A8\u5BB9\u5668\u65F6\u8FD0\u884C\u7684\u547D\u4EE4\u6216\u811A\u672C\uFF0C\u586B\u5199\u5C06\u8986\u76D6\u5BB9\u5668\u9ED8\u8BA4\u7684\u542F\u52A8\u6307\u4EE4\u3002\uFF09")),(Oe==null?void 0:Oe.open_start_command)&&Qt.createElement(ri.ZP,{width:"90%",height:250,placeholder:"\u4F8B\u5982\uFF1Aecho helloworld > /data/workspace/01.txt",style:{border:"1px solid #ccc",background:"#dedede",marginTop:"20px"},value:Oe==null?void 0:Oe.start_command,language:"shell",theme:"vs-light",onChange:hr=>he(qe,"start_command",hr)})),Qt.createElement(qn.Z,{required:Oe==null?void 0:Oe.open_envs,nameWidth:150,name:"\u73AF\u5883\u53D8\u91CF",align:"start",errorKey:"envs",errorValue:Wo,errorName:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF"},Qt.createElement(Kt.default,{checked:Oe==null?void 0:Oe.open_envs,onChange:hr=>he(qe,"open_envs",hr.target.checked),style:{marginTop:-4},className:"font14"},"\u73AF\u5883\u53D8\u91CF",Qt.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u5BB9\u5668\u6DFB\u52A0\u73AF\u5883\u53D8\u91CF\uFF09")),(Oe==null?void 0:Oe.open_envs)&&Qt.createElement(ri.ZP,{width:"90%",height:250,placeholder:"\u4F8B\u5982\uFF1AMY_VARIABLE=my_value",style:{border:"1px solid #ccc",background:"#dedede",marginTop:"20px"},language:"shell",theme:"vs-light",value:Oe==null?void 0:Oe.envs,onChange:hr=>he(qe,"envs",hr)})),Qt.createElement(qn.Z,{name:"\u8BBF\u95EE\u6A21\u5F0F",nameWidth:150},Qt.createElement(dt.Z,{align:"middle"},Qt.createElement(Ni.Z,{checked:Oe==null?void 0:Oe.privileged,onChange:hr=>he(qe,"privileged",hr)}),Qt.createElement("span",{className:"ml10 c-grey-333 font14"},"\u7279\u6743\u6A21\u5F0F"),Qt.createElement("span",{className:"c-grey-999 font14"},"\uFF08\u8D4B\u4E88\u5BB9\u5668\u8BBF\u95EE\u5BBF\u4E3B\u673A\u5185\u6838\u7279\u6027\u548C\u8BBE\u5907\u7684\u80FD\u529B\uFF09"))),Qt.createElement(qn.Z,{name:"\u6743\u9650\u63A7\u5236",nameWidth:150,align:"start"},Qt.createElement("div",{className:"font14"},"\u6DFB\u52A0\u6743\u9650",Qt.createElement("span",{className:"c-grey-999"},"\uFF08\u6DFB\u52A0\u591A\u4E2A\u6743\u9650\u7528\u82F1\u6587 , \u5206\u9694\uFF09")),Qt.createElement(Me.default,{onClick:Zl,value:Oe==null?void 0:Oe.add_cap,onChange:hr=>he(qe,"add_cap",hr.target.value),bordered:!1,placeholder:"\u4F8B\u5982\uFF1ANET_ADMIN",style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:5}}),Qt.createElement("div",{className:"font14 mt20"},"\u79FB\u9664\u6743\u9650",Qt.createElement("span",{className:"c-grey-999"},"\uFF08\u79FB\u9664\u591A\u4E2A\u6743\u9650\u7528\u82F1\u6587 , \u5206\u9694\uFF09")),Qt.createElement(Me.default,{onClick:Zl,value:Oe==null?void 0:Oe.drop_cap,onChange:hr=>he(qe,"drop_cap",hr.target.value),bordered:!1,placeholder:"\u4F8B\u5982\uFF1ASYS_PTRACE",style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:5}})))}))))))),(Si==null?void 0:Si.resource_type)===2&&Qt.createElement(ce.Fragment,null,Qt.createElement(qn.Z,{nameWidth:150},Qt.createElement(Sr.default,{getPopupContainer:Oe=>Oe.parentNode,bordered:!1,onClick:Zl,className:"mr10",style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0,value:Si==null?void 0:Si.private_cloud_id,onChange:Oe=>fe("shixun_environment","private_cloud_id",Oe)},Co.map((Oe,qe)=>Qt.createElement(os,{key:Oe.id,value:Oe.id},Oe.name)))),Qt.createElement(qn.Z,{name:"\u64CD\u4F5C\u7CFB\u7EDF",nameWidth:150,required:!0,errorKey:"system",errorValue:Wo,errorName:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7CFB\u7EDF"},Qt.createElement("div",{className:Ui.system},Gc.map(Oe=>Qt.createElement("div",{onClick:()=>{Si.operating_system!==Oe.id&&fe("shixun_environment","operating_system",Oe.id)},key:Oe.id,className:(Si==null?void 0:Si.operating_system)===Oe.id?Ui.active:""},Qt.createElement("i",{className:Oe.icon}),Qt.createElement("span",null,Oe.name))))),Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248",errorKey:"template",errorValue:Wo,errorName:"\u8BF7\u9009\u62E9\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248"},Qt.createElement(dt.Z,{align:"middle"},Qt.createElement(Sr.default,{getPopupContainer:Oe=>Oe.parentNode,bordered:!1,className:"mr10",placeholder:"\u8BF7\u9009\u62E9\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248",style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},onClick:Zl,ref:Oo,showArrow:!0,dropdownRender:Oe=>Qt.createElement("div",{className:Ui.template},Qt.createElement("div",{className:Ui.liWrap},Ar.map(qe=>Qt.createElement("div",{className:Ui.li,key:qe.id,onClick:()=>{Oo.current.blur(),fe("shixun_environment","instance_startup_template_id",qe.id)}},Qt.createElement("span",{title:qe.name,style:{color:(Si==null?void 0:Si.instance_startup_template_id)===qe.id?"#0152d9":"initial"}},qe.name),!qe.is_public&&Qt.createElement("b",{className:Ui.tag},"\u79C1\u6709")))),Qt.createElement("div",{style:{padding:12}},!Ar.length&&Qt.createElement(dn.Z,{image:Wi,imageStyle:{height:120,marginTop:20},description:"\u6682\u65E0\u6570\u636E"}),Qt.createElement("div",{style:{marginTop:Ar!=null&&Ar.length?0:20},className:"c-grey-999 font14"},"\u672A\u627E\u5230\u5408\u9002\u7684\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1F",Qt.createElement("span",{onClick:me,className:"c-light-primary current"},"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458")))),options:Ar==null?void 0:Ar.map(Oe=>({label:Oe.name,value:Oe.id})),value:Si==null?void 0:Si.instance_startup_template_id}),!!wu&&Qt.createElement(rr.Z,{value:wu,title:"\u6A21\u7248\u63CF\u8FF0"},Qt.createElement("span",{className:Ui.explain},"\u6A21\u7248\u63CF\u8FF0")))),mh(!1),(Si==null?void 0:Si.private_is_support_webssh)&&Qt.createElement(qn.Z,{align:"start",nameWidth:150,name:"\u5F00\u542F\u65F6\u89E6\u53D1\u547D\u4EE4",tooltipTitle:Qt.createElement("div",null,"\u6BCF\u6B21\u6253\u5F00\u65B0\u7684\u7EC8\u7AEF\u7A97\u53E3\u65F6\uFF0C\u81EA\u52A8\u53D1\u9001\u5E76\u6267\u884C\u6307\u5B9A\u7684\u547D\u4EE4\u6216\u6587\u672C\u3002\u7528\u4E8E\u81EA\u52A8\u5316\u7EC8\u7AEF\u4EFB\u52A1\u6216\u521D\u59CB\u5316\u5DE5\u4F5C\u73AF\u5883")},Qt.createElement(nl,{showError:Wo==="command_settings",value:Si==null?void 0:Si.command_settings,onChange:Oe=>fe("shixun_environment","command_settings",Oe),optionsLevelList:oc})),(Si==null?void 0:Si.operating_system)===1&&(Si==null?void 0:Si.private_is_support_vnc)&&(Nh||Th&&Xu===1)&&Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F",errorKey:"instance_startup_type",errorValue:Wo,errorName:"\u8BF7\u9009\u62E9\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248"},Qt.createElement("div",{className:Ui.resource},Bs.map(Oe=>Qt.createElement("div",{key:Oe.id,className:(Si==null?void 0:Si.instance_startup_type)===Oe.id?Ui.active:"",onClick:()=>fe("shixun_environment","instance_startup_type",Oe.id)},Oe.name)))),(0,Zr.Ny)()&&Xu===1&&Qt.createElement(ce.Fragment,null,Qt.createElement("div",{onClick:()=>Ur(!ns),className:Ui.grade},"\u9AD8\u7EA7\u8BBE\u7F6E",Qt.createElement("i",{className:`iconfont ${ns?"icon-shouqi4":"icon-a-xialazhankai"}`})),ns&&Qt.createElement(ce.Fragment,null,Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u8D44\u6E90\u914D\u7F6E",align:"start",errorKey:"shixun_service_configs",errorValue:Wo,errorName:"\u8BF7\u6DFB\u52A0\u8D44\u6E90\u914D\u7F6E",contentStyle:{overflow:la!=null&&la.length?"hidden":"initial"}},Qt.createElement("div",{className:Ui.tabsBox},!(la!=null&&la.length)&&Qt.createElement(dn.Z,{image:Wi,imageStyle:{height:180,marginTop:67},description:""}),!!(la!=null&&la.length)&&Qt.createElement(ln.default,{destroyInactiveTabPane:!0,moreIcon:Qt.createElement("span",{className:Ui.more},"\u66F4\u591A ",Qt.createElement("i",{className:"iconfont icon-xiala1"}))},la==null?void 0:la.map((Oe,qe)=>{const{cpu_limit:Rt,lower_cpu_limit:gt,memory_limit:Pn,request_limit:fn,resource_limit:Ci,name:Bi}=Oe;return Qt.createElement(ln.default.TabPane,{className:"p20",tab:Qt.createElement("div",{title:Bi,className:Ui.tabTitle},Bi),key:qe},Qt.createElement(dt.Z,{align:"middle"},Qt.createElement(dt.Z,{align:"middle",className:"mr20",wrap:!1},Qt.createElement("div",{className:Ui.serverConfig,onClick:()=>{pu({index:qe,cpu:Rt,memory:Pn}),na(!0)}},Qt.createElement("div",null,Qt.createElement("span",null,Rt,"\u6838")," ",Qt.createElement("span",null,Pn,"GB")),Qt.createElement("i",{className:"iconfont icon-bianji21"}))),qe==0&&Qt.createElement(dt.Z,{align:"middle",wrap:!1},Qt.createElement("div",{className:Ui.viewRecommendConfig,onClick:()=>$s(!0)},"\u67E5\u770B\u63A8\u8350\u914D\u7F6E"))))})))),(0,Zr.Ny)()&&(No==null?void 0:No.length)>0&&Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"GPU\u52A0\u901F\u5668",align:"center"},Qt.createElement(Sr.default,{disabled:!0,getPopupContainer:Oe=>Oe.parentNode,bordered:!1,className:"mr10",value:No[0],style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0},No.map(Oe=>Qt.createElement(Sr.default.Option,{key:Oe,value:Oe},Oe)))),(0,Zr.Ny)()&&(Vr==null?void 0:Vr.length)>0&&Qt.createElement(qn.Z,{required:!0,nameWidth:150,name:"\u7F51\u7EDC\u6A21\u5F0F",align:"center",tooltipTitle:Qt.createElement("div",{className:"p10"},Qt.createElement("p",null,"NAT\u6A21\u5F0F\uFF1A\u865A\u62DF\u673A\u901A\u8FC7\u4E3B\u673A\u7684\u7F51\u7EDC\u8FDE\u63A5\u5171\u4EABIP\u5730\u5740\u3002\u865A\u62DF\u673A\u7684IP\u56FA\u5B9A\u4E3A10.0.2.2"),Qt.createElement("p",null,"passt\u6A21\u5F0F\uFF1A\u5141\u8BB8\u865A\u62DF\u673A\u76F4\u63A5\u8BBF\u95EE\u4E3B\u673A\u4E0A\u7684\u786C\u4EF6\u8BBE\u5907\u3002\u865A\u62DF\u673A\u7684IP\u4E3Apod\u7684IP"))},Qt.createElement(Sr.default,{disabled:!0,getPopupContainer:Oe=>Oe.parentNode,bordered:!1,className:"mr10",value:(Lr=(wo=Vr==null?void 0:Vr.filter(Oe=>Oe.is_default))==null?void 0:wo[0])==null?void 0:Lr.network_mode,onChange:Oe=>{cs(Oe)},style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0},Vr==null?void 0:Vr.map(Oe=>Qt.createElement(Sr.default.Option,{key:Oe==null?void 0:Oe.network_mode,value:Oe==null?void 0:Oe.network_mode},Oe.name)))))))),!kr.length&&Qt.createElement(dn.Z,{image:Wi,imageStyle:{height:180,marginTop:100},description:"\u8BF7\u6DFB\u52A0\u5B9E\u9A8C\u73AF\u5883"}))),Qt.createElement("div",{className:Ui.btns},Qt.createElement(ke.ZP,{onClick:$f,style:{marginRight:40}},"\u53D6\u6D88"),Qt.createElement(ke.ZP,{loading:hs,type:"primary",disabled:!(kr!=null&&kr.length),onClick:()=>{De()}},"\u4FDD\u5B58")),Qt.createElement(Ir,{identifier:Wr,shixun_environment_id:Zo,useId:fr==null?void 0:fr.id,visible:Is,onCancel:()=>Hl(!1),onOk:Oe=>Wd(Oe),tab_type:(so=gh[Number(ha)])==null?void 0:so.type}),Qt.createElement(So,{verifyModal:Zl,id:Wr,environment:kr,is_published:ga,dispatch:ut,visible:$r,onCancel:()=>Wa(!1),onOk:Oe=>Ih(Oe)}),Qt.createElement(gs.Z,{visible:Lo,onOk:Oe=>{let qe=Si==null?void 0:Si.resource_type;qe==1&&Ve(Oe),qe==2&&Xe(Oe),na(!1)},onCancel:()=>na(!1),info:Yu}),Qt.createElement(Ps.Z,{onOk:()=>{Rd(Si==null?void 0:Si.id)},identifier:Wr,visible:ds,onCancel:()=>$s(!1),info:null,isJupyter:!1}))};var hc=(0,Et.connect)(({practiceSetting:nt,globalSetting:ut,shixunsDetail:Ne,user:En})=>({practiceSetting:nt,globalSetting:ut,shixunsDetail:Ne,user:En}))(ku),cu=we(80205),Nu={footerWrap:"footerWrap___Qaahm"},ao=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,Dd=Object.prototype.propertyIsEnumerable,bc=(nt,ut)=>{var Ne={};for(var En in nt)vd.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&ao)for(var En of ao(nt))ut.indexOf(En)<0&&Dd.call(nt,En)&&(Ne[En]=nt[En]);return Ne},Ld=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const lh=Me.default.TextArea,tr=nt=>{var ut=nt,{shixunsDetail:Ne,globalSetting:En,loading:pi,dispatch:er,onFinish:Qi=()=>{}}=ut,bi=bc(ut,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]);const[bn]=Ae.default.useForm(),Li=wo=>Ld(void 0,null,function*(){var Lr;const so=yield er({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=Ne.actionTabs.params)==null?void 0:Lr.id,compile:wo.execute,excutive:wo.compile}});xr(),so&&Qi(so==null?void 0:so.shixun_script)}),xr=()=>{er({type:"shixunsDetail/setActionTabs",payload:{}})};return ce.createElement(Ge.default,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",open:Ne.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:xr},ce.createElement(Ae.default,{form:bn,scrollToFirstError:!0,layout:"vertical",onFinish:Li},ce.createElement(Ae.default.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},ce.createElement(lh,{rows:4})),ce.createElement(Ae.default.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},ce.createElement(lh,{rows:4})),ce.createElement("div",{className:Nu.footerWrap},ce.createElement(Ae.default.Item,null,ce.createElement(ke.ZP,{className:"mr5",size:"middle",onClick:xr},"\u53D6\u6D88"),ce.createElement(ke.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:pi.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};var ll=(0,Et.connect)(({shixunsDetail:nt,loading:ut,globalSetting:Ne})=>({shixunsDetail:nt,globalSetting:Ne,loading:ut}))(tr),Ra={practice:"practice___g43Av",right:"right___plViv",title:"title___fJJJd",content:"content___Aiv2H",des:"des___kaZig",mainBody:"mainBody___fTSjs",selectBox:"selectBox___omezm",smallType:"smallType___NU4X3",evaluating:"evaluating___YaR_r",evaluatingLabel:"evaluatingLabel___Cy_Vk",mask:"mask___ewIvw",evaluatingS1:"evaluatingS1___oKt4O",serviceSettingWrap:"serviceSettingWrap___Haz9b",serviceBox:"serviceBox___Oc9DS",serviceSetLeft:"serviceSetLeft___ek9V_",serviceSetTip:"serviceSetTip___t8Vpy",btns:"btns___E8bN3",popover:"popover___s3ipd",serverConfig:"serverConfig___tirr2",viewRecommendConfig:"viewRecommendConfig___vFIgu"},wr=Object.defineProperty,ca=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,Bu=Object.prototype.propertyIsEnumerable,us=(nt,ut,Ne)=>ut in nt?wr(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,tu=(nt,ut)=>{for(var Ne in ut||(ut={}))Al.call(ut,Ne)&&us(nt,Ne,ut[Ne]);if(Cr)for(var Ne of Cr(ut))Bu.call(ut,Ne)&&us(nt,Ne,ut[Ne]);return nt},Qu=(nt,ut)=>ca(nt,pa(ut)),ps=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Bl=Sr.default.Option,Kl=({practiceSetting:nt,dispatch:ut,shixunsDetail:Ne,user:En})=>{var pi,er;const[Qi,bi]=(0,ce.useState)(null),[bn,Li]=(0,ce.useState)([]),[xr,wo]=(0,ce.useState)(!0),[Lr,so]=(0,ce.useState)({}),[Wr,ga]=(0,ce.useState)([]),[kr,mr]=(0,ce.useState)(),[Zo,Yo]=(0,ce.useState)(),[Co,To]=(0,ce.useState)([]),[Ar,vr]=(0,ce.useState)({}),Oo=(0,ce.useRef)(null),Fr=(0,ce.useRef)(!0),po=(0,ce.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),xo=(0,ce.useRef)(null),[Uo,Si]=(0,ce.useState)(!1),[fr,ms]=(0,ce.useState)(!1),[la,Vr]=(0,ce.useState)({}),{id:No,is_published:Wo}=nt,{frequence_image:mo=[],environments:Sa=[],choice_small_type:Ka=[],other_image:ts=[]}=Ar,{name:as,description:ns,authorization:Ur,small_type:xa=[]}=Lr;(0,ce.useEffect)(()=>{Qi!==null&&(Os(),Oo.current.scrollTop=0)},[Qi]),(0,ce.useEffect)(()=>{No&&Ko()},[No]),(0,ce.useEffect)(()=>{if(Qi!==null)return Ma(),()=>{clearTimeout(xo.current)}},[Qi,bn,Wr,kr,Zo]);const Ma=()=>{clearTimeout(xo.current),xo.current=setTimeout(()=>{!(0,Zn.isEqual)(po.current.activeId,Qi)||!(0,Zn.isEqual)(po.current.selectId,bn)||!(0,Zn.isEqual)(po.current.serviceConfigList,Wr)||!(0,Zn.isEqual)(po.current.evaluateScript,kr)||!(0,Zn.isEqual)(po.current.evaluationScript,Zo)?ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Ko=()=>ps(void 0,null,function*(){var qi,is,bs;wo(!0);const ss=yield(0,Ct.ZP)(`/api/shixuns/${No}/edit_environment_info.json`,{method:"get"});ss.status===0&&(vr(tu({},ss.data)),wo(!1),(qi=ss==null?void 0:ss.data)!=null&&qi.id?(po.current.activeId=(is=ss==null?void 0:ss.data)==null?void 0:is.id,bi((bs=ss==null?void 0:ss.data)==null?void 0:bs.id)):bi(null))}),Os=()=>ps(void 0,null,function*(){var qi,is,bs,ss;const Do=yield(0,Ct.ZP)(`/api/shixuns/${No}/edit_environment_info.json`,{method:"get",params:{mirror_repository_id:Qi}});so(Do.data),po.current.selectId=(qi=Do.data)==null?void 0:qi.choice_small_type,Li((is=Do.data)==null?void 0:is.choice_small_type),po.current.serviceConfigList=(bs=Do.data)==null?void 0:bs.shixun_service_configs,ga((ss=Do.data)==null?void 0:ss.shixun_service_configs),po.current.evaluateScript=Do.data.evaluate_script,mr(Do.data.evaluate_script),po.current.evaluationScript=Do.data.choice_standard_scripts,Yo(Do.data.choice_standard_scripts),To(Do.data.standard_scripts)}),hs=()=>{var qi;const is=()=>{Et.history.push(`/shixuns/${No}/challenges`),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(qi=nt==null?void 0:nt.sideBar)!=null&&qi.confirmLeave?Ge.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:()=>{is()}}):is()},Ys=(qi=!1)=>ps(void 0,null,function*(){if((0,Le.gy)(ut,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;const is={sub_type:bn,main_type:Qi,shixun:{mirror_script_id:Zo},shixun_info:{evaluate_script:kr},shixun_service_configs:Wr.map(ss=>({mirror_repository_id:ss.mirror_repository_id,cpu_limit:ss.cpu_limit,lower_cpu_limit:ss.lower_cpu_limit,memory_limit:ss.memory_limit,request_limit:ss.request_limit,resource_limit:ss.resource_limit}))};(yield(0,Ct.ZP)(`/api/shixuns/${No}`,{method:"put",body:is})).status===0&&(Mt.ZP.success("\u7F16\u8F91\u6210\u529F"),po.current={activeId:Qi,selectId:bn,serviceConfigList:Wr,evaluateScript:kr,evaluationScript:Zo},ut({type:"practiceSetting/getCommonData",payload:{id:No}}),ut({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}))}),Zs=xa.filter(qi=>bn.includes(qi.id)),Jl=()=>{hs()},$r=(qi,is,bs)=>{ga(ss=>ss.map((Do,oa)=>oa===bs?Qu(tu({},Do),{[is]:qi}):Do))},Wa=()=>{(0,Le.gy)(ut,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")||ut({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:No}}})},Is=qi=>ps(void 0,null,function*(){const is=yield ut({type:"shixunsDetail/getScriptContent",payload:{id:No,script_id:qi}});is&&mr(is.content)}),Hl=qi=>{Ge.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ce.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",ce.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>ps(void 0,null,function*(){yield Is(qi),Ge.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:ce.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")})})})},ha=(qi,is)=>{const bs=Wr[0]?[Wr[0]]:[];is.forEach(ss=>{const Do=Wr.find(oa=>oa.mirror_repository_id===Number(ss.key));if(Do)bs.push(Do);else{const oa=xa.find(Ga=>Ga.id===Number(ss.key));if(oa.mirror_name){const Ga={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1,mirror_repository_id:Number(ss.key),name:oa.mirror_name,request_limit:10};bs.push(Ga)}}}),ga(bs),Li(qi)},ta=qi=>{$r(String(qi==null?void 0:qi.cpu),"cpu_limit",qi.index),$r(String(qi==null?void 0:qi.memory),"memory_limit",qi.index),Si(!1)};return ce.createElement("div",{className:Ra.practice},ce.createElement(Hr.Z,{loading:xr,skin:"night",className:Ra.left,dispatch:ut,value:Qi,data:Sa,otherData:ts,tags:mo,onChange:qi=>bi(qi),onSearchWord:()=>{}}),ce.createElement("div",{className:Ra.right},ce.createElement("header",null,ce.createElement("div",{className:Ra.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",Qi===null?"\u2014 \u2014":as)),ce.createElement("div",{className:Ra.content,ref:Oo},Qi===null&&ce.createElement(dn.Z,{image:Wi,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),Qi!==null&&ce.createElement("div",{className:Ra.des},ce.createElement("div",{className:Ra.mainBody},ce.createElement(mt.Z,{value:ns})),ce.createElement("div",{className:Ra.title},"\u9644\u5E26\u73AF\u5883"),ce.createElement("div",{className:Ra.selectBox},ce.createElement(Sr.default,{onChange:(qi,is)=>ha(qi,is),getPopupContainer:qi=>qi.parentNode,mode:"multiple",bordered:!1,value:bn,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},xa.map((qi,is)=>ce.createElement(Bl,{key:qi.id,value:qi.id},qi.type_name))),ce.createElement("div",{className:Ra.smallType},Zs.map(qi=>qi.description?ce.createElement("span",{key:qi.id},qi.description):null))),!((pi=Ne==null?void 0:Ne.detail)!=null&&pi.is_jupyter_lab)&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:Ra.title},"\u8BC4\u6D4B\u811A\u672C"),ce.createElement("div",{className:Ra.evaluating},ce.createElement("div",{className:Ra.evaluatingLabel},Wo&&ce.createElement("div",{onClick:()=>{(0,Le.gy)(ut,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")},className:Ra.mask}),ce.createElement(Sr.default,{style:{width:400},bordered:!1,getPopupContainer:qi=>qi.parentNode,value:Zo,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:qi=>{Hl(qi),Yo(qi)}},(Co||[]).map((qi,is)=>ce.createElement(Bl,{value:parseInt(qi.id),name:qi.scptname,key:is},qi.scptname))),ce.createElement("span",{className:Ra.evaluatingS1,onClick:Wa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),ce.createElement(zt.Z,{overlayClassName:Ra.popover,placement:"bottomLeft",content:ce.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",ce.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",ce.createElement("br",null),"challengeProgramNames",ce.createElement("br",null),"sourceClassNames",ce.createElement("br",null),ce.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",ce.createElement("br",null),ce.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",ce.createElement("br",null),"src/step1/HelloWorld.java",ce.createElement("br",null),"src/step2/Other.java",ce.createElement("br",null),ce.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",ce.createElement("br",null),"step1.HelloWorld",ce.createElement("br",null),"step2.Other",ce.createElement("br",null),ce.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",ce.createElement("br",null),'ff challengeProgramNames=("src/step1/',ce.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',ce.createElement("br",null),'sourceClassNames=("step1.HelloWorld',ce.createElement("br",null),'" "step2.Other")',ce.createElement("br",null),ce.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},ce.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},ce.createElement(cu.Z,null)))),ce.createElement(ri.ZP,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:kr,onChange:qi=>{if(Fr.current){Fr.current=!1;return}mr(qi),(0,Le.gy)(ut,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(()=>{Fr.current=!0,mr(po.current.evaluateScript)},200)}}))),((er=Ne.detail)==null?void 0:er.identity)<3&&!!Wr.length&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:Ra.title},"\u8D44\u6E90\u914D\u7F6E"),ce.createElement("div",{className:Ra.serviceSettingWrap},Wr==null?void 0:Wr.map((qi,is)=>ce.createElement("div",{key:is,className:"mb30"},ce.createElement("div",{className:"mb20"},ce.createElement("span",{className:"font16"},qi.name)),ce.createElement("div",{style:{color:"#333",marginBottom:4}},"CPU\u548C\u5185\u5B58"),ce.createElement(dt.Z,{align:"middle"},ce.createElement(dt.Z,{align:"middle",wrap:!1},ce.createElement("div",{className:Ra.serverConfig,style:Wo?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{},onClick:()=>{Wo||(Vr({index:is,cpu:qi==null?void 0:qi.cpu_limit,memory:qi==null?void 0:qi.memory_limit}),Si(!0))}},ce.createElement("div",null,ce.createElement("span",null,qi==null?void 0:qi.cpu_limit,"\u6838")," ",ce.createElement("span",null,qi==null?void 0:qi.memory_limit,"GB")),ce.createElement("i",{className:"iconfont icon-bianji21",style:Wo?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{}}))),ce.createElement(dt.Z,{align:"middle",wrap:!1},ce.createElement("div",{className:Ra.viewRecommendConfig,onClick:()=>ms(!0)},"\u67E5\u770B\u63A8\u8350\u914D\u7F6E"))),ce.createElement("div",{className:Ra.serviceBox},ce.createElement("div",{className:Ra.serviceSetLeft},"\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),ce.createElement(Me.default,{value:qi.resource_limit,style:{width:400,height:50},disabled:Wo,maxLength:5,onChange:bs=>{const{value:ss}=bs.target,Do=/^\d*(\.\d*)?$/;ss.match(Do)&&$r(bs.target.value,"resource_limit",is)},addonAfter:"M"}),ce.createElement("label",{className:Ra.serviceSetTip},"File size limit\u53C2\u6570\uFF0C\u8868\u793A\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u7684\u5927\u5C0F\u9650\u5236")))))))),ce.createElement("div",{className:Ra.btns},ce.createElement(ke.ZP,{size:"middle",style:{marginRight:20},onClick:Jl},"\u53D6\u6D88"),ce.createElement(ke.ZP,{size:"middle",type:"primary",disabled:Qi===null,onClick:()=>Ys()},"\u4FDD\u5B58"))),ce.createElement(vi.Z,null),ce.createElement(ll,{onFinish:qi=>mr(qi)}),ce.createElement(Ji.Z,null),ce.createElement(gs.Z,{visible:Uo,onOk:qi=>ta(qi),onCancel:()=>Si(!1),info:la}),ce.createElement(Ps.Z,{identifier:No,visible:fr,onCancel:()=>ms(!1),info:null,isJupyter:!0}))};var Hu=(0,Et.connect)(({practiceSetting:nt,globalSetting:ut,shixunsDetail:Ne,user:En})=>({practiceSetting:nt,globalSetting:ut,shixunsDetail:Ne,user:En}))(Kl);const Kd=({shixunsDetail:nt})=>{var ut,Ne,En,pi;const[er,Qi]=(0,ce.useState)(!0);return(0,ce.useEffect)(()=>{var bi;typeof((bi=nt==null?void 0:nt.detail)==null?void 0:bi.is_jupyter_lab)=="boolean"&&er&&Qi(!1)},[(ut=nt==null?void 0:nt.detail)==null?void 0:ut.is_jupyter_lab,er]),console.log((Ne=nt==null?void 0:nt.detail)==null?void 0:Ne.is_jupyter_lab,er),ce.createElement(Bo.Z,{loading:er,active:!0},((En=nt==null?void 0:nt.detail)==null?void 0:En.is_jupyter_lab)===!1&&ce.createElement(hc,null),((pi=nt==null?void 0:nt.detail)==null?void 0:pi.is_jupyter_lab)===!0&&ce.createElement(Hu,null))};var uh=(0,Et.connect)(({shixunsDetail:nt})=>({shixunsDetail:nt}))(Kd),ch=we(2595),dh=we(56102),ol={flex_box_center:"flex_box_center___l5eTc",flex_space_between:"flex_space_between___k0OR7",flex_box_vertical_center:"flex_box_vertical_center___OKlIC",flex_box_center_end:"flex_box_center_end___hN9A6",flex_box_column:"flex_box_column___ijTq_",dataset:"dataset___dSWAV",header:"header___BzxI4",title:"title___cPEyN",dataPath:"dataPath___wJ6mR",pathTitle:"pathTitle___TOS2Z",btns:"btns___jGE8o",content:"content___s4ep8",customTable:"customTable___OG3_9",row:"row___ONd7r",empty:"empty___CgtTE",path:"path___Cg5rX",text:"text___SCLRV",actionsBtns:"actionsBtns___L5tdC",customModal:"customModal___qVeG3",shareModal:"shareModal___HedYo",fileName:"fileName___x56US",renameModal:"renameModal___SmCAd",errorDes:"errorDes___VLR_5",uploadFileModal:"uploadFileModal___pYYDB",selectBtn:"selectBtn___m_hrR",leftButton:"leftButton___F0fvG",rightButton:"rightButton___oCK81",centerText:"centerText___jpgrt"},ul={wrap:"wrap___EmsVa",colorBlue:"colorBlue___XqtfP",repeatedName:"repeatedName___yMQsm"},fc=we(9168),Zh=Object.defineProperty,od=Object.defineProperties,yd=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,hf=Object.prototype.propertyIsEnumerable,Sd=(nt,ut,Ne)=>ut in nt?Zh(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,gc=(nt,ut)=>{for(var Ne in ut||(ut={}))Uh.call(ut,Ne)&&Sd(nt,Ne,ut[Ne]);if(Dl)for(var Ne of Dl(ut))hf.call(ut,Ne)&&Sd(nt,Ne,ut[Ne]);return nt},nu=(nt,ut)=>od(nt,yd(ut)),Tu=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const{Dragger:du}=vt.default;var Kh=({dispatch:nt,id:ut,onClose:Ne,onOK:En,visible:pi,wrapClassName:er,local:Qi,containerId:bi,rootIdentifier:bn})=>{var Li;const[xr,wo]=(0,ce.useState)({}),[Lr,so]=(0,ce.useState)([]),[Wr,ga]=(0,ce.useState)([]),[kr,mr]=(0,ce.useState)(0),[Zo,Yo]=(0,ce.useState)(!1),[Co,To]=(0,ce.useState)(!1),[Ar]=Ae.default.useForm(),[vr,Oo]=(0,ce.useState)([]),Fr=(0,ce.useRef)([]);(0,ce.useEffect)(()=>{pi&&(Ar.resetFields(),Oo([]),ga([]),so([]),mr(0),To(!1),Yo(!1))},[pi]);const po=Ur=>{var xa,Ma,Ko;if(Ur.file.status==="done"||Ur.file.status==="uploading"){if(Oo(Ur.fileList),!Ur.file.response)return;if((xa=Ur.file.response)!=null&&xa.id){Mt.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Oo(vr.filter(Os=>Os.uid!==Ur.file.uid)),(Ma=Ur.file.response)!=null&&Ma.message&&Mt.ZP.info((Ko=Ur.file.response)==null?void 0:Ko.message)}},xo=Ur=>Tu(void 0,null,function*(){var xa;if(!kr){const Ko=vr.filter(Os=>Os.uid!==Ur.uid);Oo(Ko),Fr.current=[...Ko],so(Lr.filter(Os=>Os!==Ur.name)),Mt.ZP.info("\u5220\u9664\u6210\u529F"),Ko.length||(Ar.setFieldsValue({file:void 0}),Ar.validateFields());return}if(!Ur.response){Mt.ZP.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01");return}(yield(0,Ct.ZP)(`/api/shixuns/${ut}/destroy_data_sets.json`,{method:"Delete",body:{id:[(xa=Ur==null?void 0:Ur.response)==null?void 0:xa.id]}})).status===0&&(Oo(vr.filter(Ko=>Ko.uid!==Ur.uid)),Mt.ZP.info("\u5220\u9664\u6210\u529F"))}),Uo=Ur=>{if(vr!=null&&vr.some(Ma=>Ma.name===Ur.name))return Mt.ZP.info(`${Ur.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(Ur.size/1024/1024>500)return Mt.ZP.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;const xa={name:Ur.name,uid:Ur.uid,file:Ur,percent:0};return vr.push(xa),Fr.current=[...vr],Oo([...vr]),!1},Si={height:300,multiple:!0,disabled:kr>0,withCredentials:!0,fileList:vr,action:`${Qn.Z.API_SERVER}/api/attachments.json`,onChange:po,onRemove:xo,beforeUpload:Uo},fr=(Ur,xa,Ma,Ko,Os)=>{const hs=new FormData;Object.keys(Ur).forEach(Zs=>{hs.append(Zs,Ur[Zs])});const Ys=new window.XMLHttpRequest;return Ys.withCredentials=!0,Ys.addEventListener("load",function(Zs){var Jl;Ma(JSON.parse((Jl=Zs==null?void 0:Zs.target)==null?void 0:Jl.response))},!1),Ys.addEventListener("error",function(Zs){Os&&Os(Zs)},!1),Ys.upload.onprogress=Zs=>{Ko&&Ko(Zs)},Ys.open("POST",xa),Ys.send(hs),Ys},ms=(Ur,xa)=>{if(Ur.lengthComputable){const Ma=Math.floor(Ur.loaded/Ur.total*100),Ko=nu(gc({},xa),{percent:Ma,status:Ma===100?"done":"uploading"});console.log(Fr.current,333),Fr.current=Fr.current.map(Os=>Os.uid===xa.uid?Ko:Os),Oo(Fr.current)}},la=(Ur,xa)=>{const Ma=nu(gc({},xa),{status:"error"});Mt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Fr.current=Fr.current.map(Ko=>Ko.uid===xa.uid?Ma:Ko),Fr.current.every(Ko=>Ko.status==="done"||Ko.status==="error")&&(To(!1),mr(2)),Oo(Fr.current)},Vr=(Ur,xa)=>{let Ma=nu(gc({},xa),{status:"done"});if(Ur.status===0||(Ma=nu(gc({},xa),{status:"error"}),Mt.ZP.error("\u4E0A\u4F20\u5931\u8D25!")),Fr.current=Fr.current.map(Ko=>Ko.uid===xa.uid?Ma:Ko),Fr.current.every(Ko=>Ko.status==="done")){Mt.ZP.success("\u4E0A\u4F20\u5B8C\u6210!"),Ka(!0);return}Fr.current.every(Ko=>Ko.status==="done"||Ko.status==="error")&&(To(!1),mr(2)),Oo(Fr.current)},No=()=>{let Ur=!0;return window.navigator.onLine==!0?Ur=!0:Ur=!1,Ur},Wo=Ur=>Tu(void 0,null,function*(){if(To(!0),kr===3){mr(2);return}if(kr===2||kr===1){mo();return}const{commitMessage:xa="",fileOss:Ma=[]}=Ur||{},Os=(Qi?vr:Ma).map(Ys=>Ys.name);if(Os.filter(Ys=>Ys.indexOf("\u3001")!=-1||Ys.indexOf(" ")!=-1).length>0){Mt.ZP.info("\u6570\u636E\u96C6\u540D\u79F0\u7981\u6B62\u6709\u7A7A\u683C\u4E0E\u3001"),To(!1);return}const hs=yield(0,Ct.ZP)(`/api/shixuns/${ut}/check_data_sets`,{method:"post",body:{files_name:Os}});if(hs.status===-3){so(hs==null?void 0:hs.exist_files),To(!1);return}if(JSON.stringify(hs)==="{}"){To(!1),Mt.ZP.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!");return}hs.status===0&&(vr.forEach(Ys=>{const Zs=fr({file:Ys.file,description:xa},`${Qn.Z.API_SERVER}/api/shixuns/${ut}/upload_data_sets.json`,Jl=>Vr(Jl,Ys),Jl=>ms(Jl,Ys),Jl=>la(Jl,Ys));Wr.push(Zs)}),mr(1))}),mo=()=>{const{commitMessage:Ur=""}=gc({},Ar.getFieldsValue())||{},xa=Fr.current.filter(Ko=>Ko.status==="error"),Ma=Fr.current.map(Ko=>nu(gc({},Ko),{status:Ko.status==="error"?"uploading":Ko.status}));Oo(Ma),xa.forEach(Ko=>{const Os=fr({file:Ko.file,description:Ur},`${Qn.Z.API_SERVER}/api/shixuns/${ut}/upload_data_sets.json`,hs=>Vr(hs,Ko),hs=>ms(hs,Ko),hs=>la(hs,Ko));Wr.push(Os)})},Sa=Ur=>{var xa,Ma;if(console.log(Ur,"changedValues"),"fileOss"in Ur){if(Ur!=null&&Ur.fileOss.every(Ko=>Ko.status==="done")&&((xa=Ur==null?void 0:Ur.fileOss)!=null&&xa.length)){Mt.ZP.success("\u4E0A\u4F20\u5B8C\u6210!"),Ka(!0);return}if(Ur!=null&&Ur.fileOss.every(Ko=>Ko.status==="done"||Ko.status==="error")&&((Ma=Ur==null?void 0:Ur.fileOss)!=null&&Ma.length)){mr(3),To(!1);return}so(Lr.filter(Ko=>{var Os;return(Os=Ur==null?void 0:Ur.fileOss)==null?void 0:Os.some(hs=>hs.name===Ko)}))}wo(gc({},Ar.getFieldsValue()))},Ka=Ur=>{Ur||(Yo(!0),Wr.forEach(xa=>{xa.abort()})),En(),Ne()},ts=()=>{const{fileOss:Ur=[]}=gc({},Ar.getFieldsValue())||{},xa=vr==null?void 0:vr.every(Ko=>Ko.status==="done"),Ma=Ur==null?void 0:Ur.every(Ko=>Ko.status==="done");if(!xa||!Ma){Ge.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Ka()}});return}Ka()},as=()=>ce.createElement(ce.Fragment,null,ce.createElement("div",null,ce.createElement("i",{className:`iconfont icon-shangchuan font50 ${ul.colorBlue}`})),ce.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",ce.createElement("span",{className:`${ul.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20"))),ns=Ur=>{console.log(Ur,444)};return ce.createElement(Ge.default,{open:pi,onOk:()=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),Ar.submit()},centered:!0,okText:kr===0?"\u786E\u5B9A":kr===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Co},onCancel:ts,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},ce.createElement("div",{className:ul.wrap},ce.createElement(Ae.default,{className:"mt10",form:Ar,scrollToFirstError:!0,layout:"vertical",onFinish:Wo,onValuesChange:Sa},Qi?ce.createElement(Ae.default.Item,{label:ce.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",ce.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},ce.createElement(du,gc({},Si)," ",as())):ce.createElement(Ae.default.Item,{label:ce.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",ce.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},ce.createElement(fc.ZP,{identifier:bn,cancelUpload:Zo,container_type:"Shixun",container_id:bi,uploading:kr<3?kr:0,disabled:kr>0,height:300,maxSize:100*1024*1024*1024,description:xr.commitMessage||"",text:as(),onComplete:ns,realFileName:!0})),!!Lr.length&&ce.createElement("span",{className:ul.repeatedName},Lr.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),ce.createElement(Ae.default.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ce.createElement(Me.default,{bordered:!1,disabled:kr>0,maxLength:100,suffix:`${((Li=xr.commitMessage)==null?void 0:Li.length)||0}/100`,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))},Md=we(48922),cl=we(40118),Yh=we(1498),hh=Object.defineProperty,kd=Object.defineProperties,Qr=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Bf=(nt,ut,Ne)=>ut in nt?hh(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Bc=(nt,ut)=>{for(var Ne in ut||(ut={}))At.call(ut,Ne)&&Bf(nt,Ne,ut[Ne]);if(Nd)for(var Ne of Nd(ut))ni.call(ut,Ne)&&Bf(nt,Ne,ut[Ne]);return nt},Vu=(nt,ut)=>kd(nt,Qr(ut)),Dc=(nt,ut)=>{var Ne={};for(var En in nt)At.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&Nd)for(var En of Nd(nt))ut.indexOf(En)<0&&ni.call(nt,En)&&(Ne[En]=nt[En]);return Ne},Lc=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const{Fragment:ff}=ce,{TabPane:gf}=ln.default,dl=nt=>{var ut=nt,{globalSetting:Ne,dispatch:En,practiceSetting:pi,shixunsDetail:er,user:Qi}=ut,bi=Dc(ut,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),bn,Li,xr,wo,Lr,so;const{id:Wr}=pi,[ga,kr]=(0,ce.useState)([]),[mr,Zo]=(0,ce.useState)({}),[Yo,Co]=(0,ce.useState)([]),[To,Ar]=(0,ce.useState)(!1),[vr,Oo]=(0,ce.useState)(!0),[Fr,po]=(0,ce.useState)(!1),[xo,Uo]=(0,ce.useState)(!1),[Si,fr]=(0,ce.useState)(!1),[ms,la]=(0,ce.useState)(!1),[Vr,No]=(0,ce.useState)("all"),[Wo,mo]=(0,ce.useState)([]),[Sa,Ka]=(0,ce.useState)([]),[ts,as]=(0,ce.useState)(!1),[ns,Ur]=(0,ce.useState)({}),[xa,Ma]=(0,ce.useState)(!1),[Ko,Os]=(0,ce.useState)([]),[hs,Ys]=(0,ce.useState)({page:1,limit:10,total:0}),[Zs,Jl]=(0,ce.useState)({page:1,limit:10,search:"",order:"mine"});(0,ce.useEffect)(()=>{Wr&&Wa()},[Wr]);const $r=Do=>{const oa=Vu(Bc({},hs),{page:Do});Ka([]),Ys(oa),Wa(oa)},Wa=Do=>Lc(void 0,null,function*(){const Ga=Do||{page:1,limit:10,total:0};Ar(!0);const El=yield En({type:"shixunsDetail/getSetData",payload:Vu(Bc({},Ga),{id:Wr})});El!=null&&El.data_sets&&(Ar(!1),kr([...El.data_sets]),Ys(Vu(Bc({},Ga),{total:El==null?void 0:El.data_sets_count})),Oo(!1),Zo(Bc({},El)))}),Is=()=>ce.createElement("div",{className:ol.empty},ce.createElement("img",{src:Md.x7,width:"258"}),ce.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~")),ha={selectedRowKeys:Sa,columnWidth:70,onChange:Do=>{console.log("selectedRowKeys changed: ",Do),Ka(Do)}},ta=Do=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);const oa=Do?[Do]:Sa;Ge.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Lc(void 0,null,function*(){if((yield(0,Ct.ZP)(`/api/shixuns/${Wr}/destroy_data_sets.json`,{method:"Delete",body:{id:oa}})).status===0){const El=oa.length===ga.length&&hs.page>1?hs.page-1:hs.page;Mt.ZP.success("\u5220\u9664\u6210\u529F"),Wa(Vu(Bc({},hs),{page:El})),Ka([])}})})},qi=()=>Lc(void 0,null,function*(){const{title:Do}=ns;let oa=null;if(console.log(Do,"title"),Do===""){oa="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",Ur(Vu(Bc({},ns),{errorDes:oa}));return}if(Do.includes(" ")){oa="\u6587\u4EF6\u540D\u4E0D\u80FD\u6709\u7A7A\u683C",Ur(Vu(Bc({},ns),{errorDes:oa}));return}const Ga=ga.find(cs=>cs.id===(ns==null?void 0:ns.id)).title;if(Do===Ga.substring(0,Ga.lastIndexOf("."))||Do===Ga){oa="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",Ur(Vu(Bc({},ns),{errorDes:oa}));return}const El=Ga.includes(".")?Ga.substring(Ga.lastIndexOf("."),Ga.length):"";(yield(0,Ct.ZP)(`/api/shixuns/${Wr}/rename_data_sets.json`,{method:"post",body:{id:ns==null?void 0:ns.id,new_file_name:Do+El}})).status===0&&(Mt.ZP.success("\u91CD\u547D\u540D\u6210\u529F"),Wa(hs),po(!1),Ur({}))}),is=()=>{const{download_url:Do}=ns;bs(Do),Mt.ZP.success("\u590D\u5236\u6210\u529F"),Uo(!1),Ur({})},bs=Do=>{const oa=Do,Ga=document.createElement("input");Ga.value=oa,document.body.appendChild(Ga),Ga.select(),document.execCommand("Copy"),Ga.style.display="none"},ss=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:Do=>ce.createElement(ki.Z,{title:Do},ce.createElement("span",null,Do))},{title:"\u6570\u636E\u96C6\u6765\u6E90",dataIndex:"data_set_title",key:"data_set_title",align:"left",ellipsis:!0,render:(Do,oa)=>oa!=null&&oa.data_set_id?ce.createElement(ki.Z,{title:Do},ce.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{(0,kt.xg)(`/dataset/${oa==null?void 0:oa.data_set_id}/detail?tabId=public`)}},Do)):"--"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:Do=>ce.createElement(ki.Z,{title:Do},ce.createElement("span",null,Do||"--"))},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:(Do,oa)=>Er()(oa.created_on).format("YYYY-MM-DD HH:mm")},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:(Do,oa)=>ce.createElement("div",{className:ol.path},ce.createElement(ki.Z,{title:Do},ce.createElement("span",{className:ol.text},Do)),ce.createElement(dh.CopyToClipboard,{text:Do,onCopy:()=>Mt.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(ki.Z,{title:"\u590D\u5236"},ce.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:200,render:(Do,oa)=>ce.createElement("div",{className:ol.actionsBtns},ce.createElement(ki.Z,{title:"\u91CD\u547D\u540D"},ce.createElement("span",{className:"iconfont icon-zhongmingming",onClick:()=>{var Ga;Ur((0,Zn.clone)(Vu(Bc({},oa),{title:oa!=null&&oa.title.includes(".")?(Ga=oa==null?void 0:oa.title)==null?void 0:Ga.substring(0,oa.title.lastIndexOf(".")):oa==null?void 0:oa.title}))),po(!0),(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),ce.createElement(ki.Z,{title:"\u5206\u4EAB"},ce.createElement("span",{className:"iconfont icon-fenxiang",onClick:()=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),Ur((0,Zn.clone)(oa)),Uo(!0)}})),ce.createElement(ki.Z,{title:"\u4E0B\u8F7D"},ce.createElement("span",{className:"iconfont icon-xiazai3",onClick:()=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),(0,kt.Nd)(oa.title,oa==null?void 0:oa.download_url)}})),ce.createElement(ki.Z,{title:"\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6\u4E2D"},ce.createElement("span",{className:"iconfont icon-tongbushuju",onClick:()=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u540C\u6B65"]),la(!0),Os([oa]),mo([oa.id])}})),ce.createElement(ki.Z,{title:"\u5220\u9664"},ce.createElement("span",{className:"iconfont icon-shanchu8",onClick:()=>{(0,kt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),ta(oa.id)}})))}];return ce.createElement("div",{className:ol.dataset},ce.createElement("div",{className:ol.header},ce.createElement("div",{className:ol.title},"\u6570\u636E\u96C6(",hs.total,")"),ce.createElement("div",{className:ol.dataPath},ce.createElement("span",{className:ol.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),ce.createElement("input",{value:mr==null?void 0:mr.folder_name,disabled:!0}),ce.createElement(dh.CopyToClipboard,{text:mr==null?void 0:mr.folder_name,onCopy:()=>Mt.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement(ki.Z,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},ce.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),ce.createElement("div",{className:ol.btns},ce.createElement(ke.ZP,{type:"primary",ghost:!0,onClick:()=>ta(),disabled:!Sa.length,style:{width:"60px"}},"\u5220\u9664"),ce.createElement(ke.ZP,{type:"primary",className:"ml10",style:{width:"60px"},ghost:!0,onClick:()=>{la(!0),mo(Sa),Os(ga.filter(Do=>Sa.includes(Do.id)))},disabled:!Sa.length},"\u540C\u6B65"),ce.createElement(yo.Z,{className:"ml10",disabled:((bn=Qi==null?void 0:Qi.userInfo)==null?void 0:bn.user_status)===2,dropdownRender:()=>ce.createElement(ho.default,null,ce.createElement(ho.default.Item,{key:1,onClick:()=>{as(!0)}},"\u4E0A\u4F20\u6570\u636E\u96C6"),ce.createElement(ho.default.Item,{key:2,onClick:()=>{fr(!0),No("all")}},"\u9009\u62E9\u6570\u636E\u96C6"))},ce.createElement("span",{className:ol.selectBtn},ce.createElement("span",null,"\u589E\u52A0\u6570\u636E\u96C6"))))),ce.createElement("div",{className:ol.content},ce.createElement(Bo.Z,{loading:vr,active:!0,paragraph:{rows:5}},hs.total?ce.createElement(ch.default,{rowSelection:ha,className:ol.customTable,dataSource:ga,bordered:!1,rowKey:Do=>Do.id,rowClassName:ol.row,columns:ss,loading:To,pagination:{pageSize:hs.limit,total:hs.total,current:hs.page,onChange:$r,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):Is())),ce.createElement(Kh,{rootIdentifier:(Li=er==null?void 0:er.detail)==null?void 0:Li.root_identifier,wrapClassName:ol.uploadFileModal,id:Wr,containerId:(xr=er==null?void 0:er.detail)==null?void 0:xr.id,local:(wo=Ne==null?void 0:Ne.setting)==null?void 0:wo.is_local,dispatch:En,visible:ts,onClose:()=>as(!1),onOK:Wa}),ce.createElement(Ge.default,{title:"\u91CD\u547D\u540D",open:Fr,onOk:qi,centered:!0,wrapClassName:ol.renameModal,onCancel:()=>{po(!1),Ur({})},width:"1000px"},ce.createElement("div",null,ce.createElement("div",{className:ol.fileName},ce.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),ce.createElement(Me.default,{value:ns==null?void 0:ns.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:Do=>{Ur(Vu(Bc({},ns),{title:Do.target.value,errorDes:null}))},maxLength:60,suffix:`${((Lr=ns==null?void 0:ns.title)==null?void 0:Lr.length)||0}/60`}),(ns==null?void 0:ns.errorDes)&&ce.createElement("div",{className:ol.errorDes},ns==null?void 0:ns.errorDes))),ce.createElement(Ge.default,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",open:xo,onOk:is,centered:!0,wrapClassName:ol.shareModal,onCancel:()=>{Uo(!1),Ur({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},ce.createElement("div",null,ce.createElement("div",{className:ol.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",ce.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),ce.createElement(Me.default,{bordered:!1,addonBefore:"\u94FE\u63A5",value:ns==null?void 0:ns.download_url}))),ce.createElement(cl.Z,{setVisible:fr,visible:Si,recordId:Wo,type:Vr,updateData:Wa,identifier:(so=er.detail)==null?void 0:so.identifier}),ce.createElement(Ge.default,{title:"\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6",open:ms,width:400,centered:!0,keyboard:!1,onCancel:()=>la(!1),maskClosable:!1,footer:ce.createElement("div",{style:{display:"flex",justifyContent:"center"}},ce.createElement("div",{className:ol.leftButton,onClick:()=>{Ma(!0)}},"\u751F\u6210\u65B0\u7684\u6570\u636E\u96C6"),ce.createElement("div",{className:ol.rightButton,onClick:()=>{la(!1),fr(!0),No("my")}},"\u53D1\u9001\u5230\u5DF2\u6709\u6570\u636E\u96C6\u4E2D"))},ce.createElement("div",{className:ol.centerText},"\u5C06\u8BE5\u6570\u636E\u96C6\u6587\u4EF6\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6\u4E2D\uFF0C\u8BF7\u9009\u62E9\u540C\u6B65\u65B9\u5F0F\uFF1A")),ce.createElement(Yh.Z,{visible:xa,attachmentInfo:Ko,onClose:()=>Ma(!1),onSuccess:Do=>{Ma(!1),Et.history.push(`/dataset/${Do}/detail?tabId=mine`)}}))};var zo=(0,Et.connect)(({globalSetting:nt,shixunsDetail:ut,practiceSetting:Ne,user:En})=>({globalSetting:nt,shixunsDetail:ut,user:En,practiceSetting:Ne}))(dl),zl=we(31797),hu={wrap:"wrap___VIvSS",content:"content___pqoZT",mainPathWrap:"mainPathWrap___v3uSU",colorBlue:"colorBlue___AjQlz"},Qs=Object.defineProperty,Da=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ye=(nt,ut,Ne)=>ut in nt?Qs(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Qe=(nt,ut)=>{for(var Ne in ut||(ut={}))Vl.call(ut,Ne)&&Ye(nt,Ne,ut[Ne]);if(Da)for(var Ne of Da(ut))ze.call(ut,Ne)&&Ye(nt,Ne,ut[Ne]);return nt},Nt=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const Wt=nt=>nt!=null&&nt.length?nt.filter((ut,Ne)=>Ne!==0).map(ut=>ut.val).join("").substr(1):"",vn=({shixunsDetail:nt,globalSetting:ut,loading:Ne,dispatch:En,fileType:pi,path:er,onFinish:Qi=()=>{}})=>{const bi=(0,Et.useParams)(),[bn,Li]=(0,ce.useState)(""),[xr,wo]=(0,ce.useState)([]),[Lr,so]=(0,ce.useState)([]),ga=[xs.OriginalPicturePath,xs.ExpectPicturePath,xs.PicturePath].includes(pi);(0,ce.useEffect)(()=>{nt.actionTabs.key==="EditPracticeSetting-SelectFilePath"&&(Li(er||""),kr())},[nt.actionTabs.key]);const kr=(vr="")=>Nt(void 0,null,function*(){var Oo;const Fr=yield En({type:"shixunsDetail/getRepository",payload:{id:bi.id,path:vr}});if(vr===""&&!((Oo=Fr==null?void 0:Fr.trees)!=null&&Oo.length)&&Mt.ZP.warning("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Fr!=null&&Fr.trees){const po=Fr.trees.map(xo=>Qe(Qe({},xo),{name:xo.name,val:xo.name}));so(po||[])}}),mr=vr=>{const Oo=Wt(xr),Fr=`${Oo&&`${Oo}/`}${vr}`;pi===xs.Path?!(bn!=null&&bn.includes(`${Fr}\uFF1B`))&&Li(`${bn}${Fr}\uFF1B`):pi===xs.ExecPath&&Li(Fr)},Zo=vr=>{if(vr.type==="tree"){xr.length?xr.push({val:`/${vr.val}`,path:vr.val}):xr.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${vr.val}`,path:vr.val}),wo(xr);const Oo=Wt(xr);ga&&Li(Oo),kr(Oo)}},Yo=(vr,Oo)=>{const Fr=xr.filter((xo,Uo)=>Uo<=Oo);wo(Fr);const po=Wt(Fr);ga&&Li(po),kr(po)},Co=()=>Nt(void 0,null,function*(){Qi(bn),To()}),To=()=>{Li(""),wo([]),so([]),En({type:"shixunsDetail/setActionTabs",payload:{}})},Ar=Wt(xr);return ce.createElement(Ge.default,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,open:nt.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:Co,onCancel:To},ce.createElement("div",{className:hu.wrap},ce.createElement("div",{className:hu.content},ce.createElement("div",{className:hu.mainPathWrap},!!(xr!=null&&xr.length)&&xr.map((vr,Oo)=>ce.createElement("a",{key:Oo,onClick:()=>Yo(vr,Oo)},vr.val))),!!(Lr!=null&&Lr.length)&&Lr.map((vr,Oo)=>vr.type==="tree"?ce.createElement("a",{key:Oo,onClick:()=>Zo(vr)},ce.createElement("i",{className:`iconfont icon-wenjianjia ${hu.colorBlue}`}),Ar&&`${Ar}/`,vr.name):ce.createElement("a",{key:Oo,onClick:()=>mr(`${vr.name}`)},ce.createElement("i",{className:`iconfont icon-zuoye ${hu.colorBlue}`}),Ar&&`${Ar}/`,vr.name))),ce.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),ce.createElement(Me.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:bn,onChange:vr=>Li(vr.target.value)})))};var wn=(0,Et.connect)(({shixunsDetail:nt,loading:ut,globalSetting:Ne})=>({shixunsDetail:nt,globalSetting:Ne,loading:ut.models.index}))(vn),Gn={wrap:"wrap___AnxZp",fixBtn:"fixBtn___sQhsA"},Jn=we(23744),gi=Object.defineProperty,Ki=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,si=(nt,ut,Ne)=>ut in nt?gi(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,dr=(nt,ut)=>{for(var Ne in ut||(ut={}))hi.call(ut,Ne)&&si(nt,Ne,ut[Ne]);if(Ki)for(var Ne of Ki(ut))ji.call(ut,Ne)&&si(nt,Ne,ut[Ne]);return nt},Vn=(nt,ut)=>{var Ne={};for(var En in nt)hi.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&Ki)for(var En of Ki(nt))ut.indexOf(En)<0&&ji.call(nt,En)&&(Ne[En]=nt[En]);return Ne},zi=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const lr=nt=>{var ut=nt,{shixunsDetail:Ne,globalSetting:En,user:pi,dispatch:er}=ut,Qi=Vn(ut,["shixunsDetail","globalSetting","user","dispatch"]),bi,bn;const Li=(0,Et.useLocation)(),xr=(0,ce.useRef)((bn=(bi=Li.pathname)==null?void 0:bi.split("/"))==null?void 0:bn[2]),[wo]=Ae.default.useForm(),[Lr,so]=(0,ce.useState)(""),[Wr,ga]=(0,ce.useState)(!1),[kr,mr]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{xr.current&&Zo()},[xr.current]);const Zo=()=>zi(void 0,null,function*(){ga(!0);const Co=yield(0,Ct.ZP)(`/api/shixuns/${xr.current}/get_standard_answer.json`,{method:"get",params:{from:"edit"}});Co.status===0&&(so((Co==null?void 0:Co.standard_answer)||""),wo.setFieldsValue({hide_answer:Co==null?void 0:Co.hide_answer,disable_copy:Co==null?void 0:Co.disable_copy}),ga(!1))}),Yo=Co=>zi(void 0,null,function*(){mr(!0),(yield(0,Ct.ZP)(`/api/shixuns/${xr.current}/set_standard_answer.json`,{method:"post",body:dr({},Co)})).status===0&&Mt.ZP.success("\u4FDD\u5B58\u6210\u529F"),mr(!1)});return ce.createElement("section",{className:Gn.wrap},ce.createElement(Bo.Z,{loading:Wr},ce.createElement(Ae.default,{form:wo,scrollToFirstError:!0,layout:"vertical",onFinish:Yo},ce.createElement(Ae.default.Item,{name:"hide_answer",valuePropName:"checked"},ce.createElement(Kt.default,null,"\u9690\u85CF\u53C2\u8003\u7B54\u6848\u6A21\u5757")),ce.createElement(Ae.default.Item,{name:"disable_copy",valuePropName:"checked"},ce.createElement(Kt.default,null,"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848")),ce.createElement(Ae.default.Item,{name:"standard_answer",label:"\u53C2\u8003\u7B54\u6848:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8003\u7B54\u6848"}]},ce.createElement(xe.Z,{defaultValue:Lr})),ce.createElement(Ae.default.Item,null,ce.createElement(Jn.t,{okText:"\u4FDD\u5B58",loading:kr,hasCancelBtn:!1,className:Gn.fixBtn,okButtonProps:{htmlType:"submit"}})))))};var oo=(0,Et.connect)(({shixunsDetail:nt,globalSetting:ut,user:Ne})=>({shixunsDetail:nt,globalSetting:ut,user:Ne}))(lr),Yr=we(86766),lo=we(86902),co=we(4973),Pr=we(59301),$i=Object.defineProperty,Ea=Object.defineProperties,$o=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,ja=(nt,ut,Ne)=>ut in nt?$i(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,js=(nt,ut)=>{for(var Ne in ut||(ut={}))$a.call(ut,Ne)&&ja(nt,Ne,ut[Ne]);if(Pa)for(var Ne of Pa(ut))Ha.call(ut,Ne)&&ja(nt,Ne,ut[Ne]);return nt},Za=(nt,ut)=>Ea(nt,$o(ut)),ma=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const{Countdown:es}=zl.default;var zs=(nt=>(nt[nt.LoadingFail=1]="LoadingFail",nt[nt.Loading=2]="Loading",nt[nt.Finish=3]="Finish",nt))(zs||{}),xs=(nt=>(nt.Path="path",nt.ExecPath="exec_path",nt.OriginalPicturePath="original_picture_path",nt.ExpectPicturePath="expect_picture_path",nt.PicturePath="picture_path",nt))(xs||{});const Cs=({globalSetting:nt,loading:ut,dispatch:Ne,practiceSetting:En,shixunsDetail:pi})=>{var er;const[Qi,bi]=(0,ce.useState)(),[bn,Li]=(0,ce.useState)(),xr=(0,ce.useRef)(),[wo,Lr]=(0,ce.useState)(),[so,Wr]=(0,ce.useState)(),[ga,kr]=(0,ce.useState)(!0),[mr,Zo]=(0,ce.useState)(700),[Yo,Co]=(0,ce.useState)(""),[To,Ar]=(0,ce.useState)("1"),vr=(0,Et.useParams)();(0,ce.useEffect)(()=>{Fr()},[]);const Oo=()=>ma(void 0,null,function*(){var Vr,No;const Wo=yield Ne({type:"shixunsDetail/updateRepositoryFile",payload:{id:vr.id,path:(No=(Vr=pi==null?void 0:pi.fileContent)==null?void 0:Vr.params)==null?void 0:No.path,content:Qi,secret_repository:ga?null:!0}});Wo!=null&&Wo.content&&(Mt.ZP.info("\u4FDD\u5B58\u6210\u529F"),Ne({type:"practiceSetting/setSideBarTabs",payload:Za(js({},En.sideBar),{confirmLeave:!1})}))}),Fr=()=>ma(void 0,null,function*(){var Vr,No,Wo,mo;const Sa=yield(0,jt.Ui)({identifier:vr.id});if((No=(Vr=Sa==null?void 0:Sa.data)==null?void 0:Vr.data_list)!=null&&No.length){Yr.Z.publish("pod-restrict-data",{identifier:(Wo=Sa==null?void 0:Sa.data)==null?void 0:Wo.identifier,data_list:(mo=Sa==null?void 0:Sa.data)==null?void 0:mo.data_list});return}Sa!=null&&Sa.url&&Co(Sa==null?void 0:Sa.url)}),po=()=>ma(void 0,null,function*(){const Vr=yield(0,jt.K_)({identifier:vr.id});(Vr==null?void 0:Vr.status)===0&&(Vr!=null&&Vr.remainingSeconds?(Lr(Date.now()+Vr.remainingSeconds*1e3),Wr(Vr.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(Vr.remainingSeconds-300)*1e3)):xo())}),xo=()=>{Ge.default.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:Pr.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:()=>ma(void 0,null,function*(){Uo()})})},Uo=()=>ma(void 0,null,function*(){Li(2);const Vr=yield(0,jt.zH)({identifier:vr.id});(Vr==null?void 0:Vr.status)===0&&(Li(3),Co(Vr.url),xr.current=Vr.port,Mt.ZP.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!"))}),Si=()=>{Ge.default.destroyAll(),Ge.default.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:Pr.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",Pr.createElement("span",null,Pr.createElement(es,{value:wo,format:"HH:mm:ss",onFinish:fr})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:()=>ma(void 0,null,function*(){(yield(0,jt.q9)({identifier:vr.id})).status===0&&(yield po(),Mt.ZP.success("\u5EF6\u957F\u6210\u529F!"))})})},fr=()=>{Ge.default.destroyAll(),Ge.default.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:Pr.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>{Uo()}})},ms=Vr=>{Ne({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},la=Vr=>ma(void 0,null,function*(){yield(0,jt.QA)({id:vr.id,startup_file:Vr}),Fr(),Ne({type:"practiceSetting/getCommonData",payload:js({},vr)})});return Pr.createElement(ln.default,{activeKey:To,onChange:Vr=>Ar(Vr),tabBarStyle:{paddingLeft:20},items:[{key:"1",label:"\u670D\u52A1\u8BBE\u7F6E",children:Pr.createElement("div",null,Pr.createElement(dt.Z,{className:"mt20 ml20 font14",align:"middle"},Pr.createElement(yt.Z,null,Pr.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),Pr.createElement(yt.Z,{className:"mr10"},Pr.createElement(ki.Z,{title:"\u5F00\u542FJupyterLab\u8BC4\u6D4B\u529F\u80FD\uFF0C\u5219\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\u540C\u65F6\u4E5F\u4F5C\u4E3A\u8BC4\u6D4B\u7684\u6267\u884C\u6587\u4EF6\u3002",placement:"bottom"},Pr.createElement(lo.Z,{style:{cursor:"pointer"}}))),Pr.createElement(yt.Z,{flex:"300px",onClick:()=>ms("exec_path")},Pr.createElement(Me.default,{value:Yo})),Pr.createElement(yt.Z,{flex:"1"},Pr.createElement(ke.ZP,{type:"primary",className:"ml10",onClick:()=>ms("exec_path")},"\u8BBE\u7F6E"))),Pr.createElement("iframe",{onLoad:Vr=>{},src:Yo,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),Pr.createElement(wn,{fileType:"path",path:(er=pi==null?void 0:pi.detail)==null?void 0:er.startup_file,onFinish:Vr=>la(Vr)}))},{key:"2",label:"\u8BC4\u6D4B\u8BBE\u7F6E",children:To==="2"?Pr.createElement(co.Z,{active:"testCase",type:"jupyterLab"}):null},{key:"3",label:"\u53C2\u8003\u7B54\u6848",children:Pr.createElement(oo,null)}]})};var Vs=(0,Et.connect)(({loading:nt,globalSetting:ut,practiceSetting:Ne,shixunsDetail:En})=>({globalSetting:ut,loading:nt,practiceSetting:Ne,shixunsDetail:En}))(Cs),hl={catechism:"catechism___lS6Ml",tab:"tab___vw6iE"},Fl=we(94606),xu={collect:"collect___pxqYO",head:"head___WuH5D"},qs=we(59301),Eu=Object.defineProperty,Ba=Object.getOwnPropertySymbols,al=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable,As=(nt,ut,Ne)=>ut in nt?Eu(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Es=(nt,ut)=>{for(var Ne in ut||(ut={}))al.call(ut,Ne)&&As(nt,Ne,ut[Ne]);if(Ba)for(var Ne of Ba(ut))va.call(ut,Ne)&&As(nt,Ne,ut[Ne]);return nt},_s=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())}),ea=({onOk:nt,onCancel:ut,visible:Ne,modalParams:En,forceIn:pi})=>{const[er]=Ae.default.useForm(),[Qi,bi]=(0,ce.useState)(!1),bn=pi?!1:typeof Ne=="number";(0,ce.useEffect)(()=>{Ne?er.setFieldsValue(Es({},En)):er.resetFields()},[Ne]);const Li=xr=>_s(void 0,null,function*(){bi(!0),yield nt(xr),bi(!1)});return qs.createElement(Ge.default,{centered:!0,destroyOnClose:!0,onCancel:()=>ut(),onOk:()=>er.submit(),open:!!Ne,confirmLoading:Qi,title:bn?"\u7F16\u8F91\u95EE\u7B54":"\u65B0\u589E\u95EE\u7B54",width:900,okText:bn?"\u786E\u5B9A":"\u52A0\u5165\u95EE\u9898\u96C6"},qs.createElement(Ae.default,{form:er,size:"large",onFinish:Li},qs.createElement(Ae.default.Item,{name:"title",label:"\u95EE\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"}]},qs.createElement(Me.default,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"})),qs.createElement(Ae.default.Item,{className:"mb0",name:"content",label:"\u56DE\u7B54",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54"}]},qs.createElement(xe.Z,{className:"mb0",placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54",watch:!0,defaultValue:En==null?void 0:En.content}))))},da=we(59301),vl=Object.defineProperty,Yl=Object.getOwnPropertySymbols,Ks=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,Fa=(nt,ut,Ne)=>ut in nt?vl(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Xl=(nt,ut)=>{for(var Ne in ut||(ut={}))Ks.call(ut,Ne)&&Fa(nt,Ne,ut[Ne]);if(Yl)for(var Ne of Yl(ut))yl.call(ut,Ne)&&Fa(nt,Ne,ut[Ne]);return nt},Iu=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())}),qu=({})=>{const nt=(0,Et.useParams)(),[ut,Ne]=(0,ce.useState)(!1),[En,pi]=(0,ce.useState)(0),[er,Qi]=(0,ce.useState)([]),[bi,bn]=(0,ce.useState)(!1),[Li,xr]=(0,ce.useState)({title:"",content:""}),[wo,Lr]=(0,ce.useState)(!1),[so,Wr]=(0,ce.useState)(!1),[ga,kr]=(0,ce.useState)([]),[mr,Zo]=(0,ce.useState)({keywords:"",page:1,limit:10});(0,ce.useEffect)(()=>{Yo(mr)},[]);const Yo=po=>Iu(void 0,null,function*(){var xo,Uo;Ne(!0);const Si=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_sets.json`,{method:"get",params:po});Si.status===0&&(Qi(((xo=Si==null?void 0:Si.data)==null?void 0:xo.qna_sets)||[]),pi((Uo=Si==null?void 0:Si.data)==null?void 0:Uo.total_count)),Ne(!1)}),Co=po=>{mr.keywords=po,mr.page=1,Zo(Xl({},mr)),Yo(mr)},To=(po,xo)=>{mr.page=po,mr.limit=xo,Zo(Xl({},mr)),Yo(mr)},Ar=po=>Iu(void 0,null,function*(){if(typeof bi=="number"){const xo=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_sets/${bi}.json`,{method:"put",body:po});(xo==null?void 0:xo.status)===0&&(Mt.ZP.success("\u7F16\u8F91\u6210\u529F"),Yo(mr),bn(!1))}else{const xo=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_sets.json`,{method:"post",body:po});(xo==null?void 0:xo.status)===0&&(Mt.ZP.success("\u6DFB\u52A0\u6210\u529F"),mr.page=1,mr.keywords="",Zo(Xl({},mr)),Yo(mr),bn(!1))}}),vr=po=>Iu(void 0,null,function*(){Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",onOk:()=>Iu(void 0,null,function*(){const xo=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_sets/${po.id}.json`,{method:"delete"});if((xo==null?void 0:xo.status)===0){const Uo=er.length===1&&mr.page>1?mr.page-1:mr.page;mr.page=Uo,Zo(Xl({},mr)),Yo(mr),Mt.ZP.success("\u5220\u9664\u6210\u529F")}})})}),Oo=[{title:"\u95EE\u9898",dataIndex:"title",ellipsis:!0,render:po=>da.createElement(ki.Z,{placement:"topLeft",title:po},da.createElement("span",{className:"c-black"},po||"--"))},{title:"\u56DE\u7B54",dataIndex:"content",ellipsis:!0,render:po=>da.createElement(ki.Z,{placement:"topLeft",title:po},da.createElement("span",{className:"c-black"},po||"--"))},{title:"\u64CD\u4F5C",width:104,align:"right",dataIndex:"id",ellipsis:!0,render:(po,xo)=>da.createElement("span",null,da.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{bn(po),xr({title:xo==null?void 0:xo.title,content:xo==null?void 0:xo.content})}},"\u7F16\u8F91"),da.createElement("span",{className:"current c-red",onClick:()=>vr(xo)},"\u5220\u9664"))}],Fr={onRemove:()=>{kr([])},beforeUpload:po=>{if((po==null?void 0:po.size)>1024*1024*50)return Mt.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!(po.type==="application/vnd.ms-excel"||po.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))return Mt.ZP.info("\u8BF7\u4E0A\u4F20 .xls \u6216 .xlsx \u6587\u4EF6\uFF01"),!1;let Uo=[];return Uo.push(po),kr([...Uo]),!1},fileList:ga,accept:".xls,.xlsx"};return da.createElement("div",{className:xu.collect},da.createElement("div",{className:xu.head},da.createElement(Fl.t7,{style:{width:480},placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898",value:mr.keywords,onChange:Co}),da.createElement(Fl.op,{className:"ml40 mr20",shape:"default",onClick:()=>{bn(!0),xr({title:"",content:""})}},"\u65B0\u589E\u95EE\u7B54"),da.createElement(Fl.op,{type:"primary",shape:"default",onClick:()=>Lr(!0)},"\u5BFC\u5165\u95EE\u7B54")),da.createElement(ch.default,{columns:Oo,style:{marginTop:33},dataSource:er,loading:ut,rowKey:"id",pagination:{current:mr.page,hideOnSinglePage:!En,showQuickJumper:!0,showSizeChanger:!0,pageSize:mr.limit,pageSizeOptions:["10","20","50","100","200"],total:En,size:"default",showTotal:kt.rU,onChange:To}}),da.createElement(Ge.default,{title:"\u5BFC\u5165\u95EE\u7B54",open:wo,centered:!0,confirmLoading:so,onCancel:()=>{Lr(!1),kr([])},onOk:()=>Iu(void 0,null,function*(){var po;const xo=new FormData;if(ga.length>0)xo.append("file",ga[0]);else{Mt.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}Wr(!0);let Uo=yield(0,Ct.ZP)(`/api/shixuns/${nt==null?void 0:nt.id}/qna_sets/import.json`,{method:"post",body:xo},!0);(Uo==null?void 0:Uo.status)===0&&((po=Uo==null?void 0:Uo.fail)!=null&&po.length?Ge.default.confirm({icon:null,width:485,title:"\u5BFC\u5165\u5931\u8D25",centered:!0,content:da.createElement("span",null,"\u68C0\u6D4B\u5230\u672C\u6B21\u5BFC\u5165\u5B58\u5728\u4E0D\u7B26\u5408\u8981\u6C42\u7684\u6570\u636E\uFF0C\u70B9\u51FB\u4E0B\u8F7D",da.createElement("a",{href:`${Qn.Z.API_SERVER}/api/shixuns/${nt==null?void 0:nt.id}/qna_sets/down_error_import_file.json`},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}):(Mt.ZP.success("\u5BFC\u5165\u6210\u529F"),mr.page=1,mr.keywords="",Zo(Xl({},mr)),Yo(mr),Lr(!1),kr([]))),Wr(!1)})},da.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E00\uFF1A",da.createElement("span",{className:"ml15 mr5"},"\u4E0B\u8F7D"),da.createElement("a",{href:`${Qn.Z.API_SERVER}/api/shixuns/${nt==null?void 0:nt.id}/qna_sets/down_template.json`},"\u5BFC\u5165\u95EE\u7B54\u96C6\u6A21\u677F"),"\uFF0C\u5E76\u586B\u5199\u5BF9\u5E94\u5185\u5BB9"),da.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E8C\uFF1A",da.createElement("span",{className:"ml15"},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u5BFC\u5165\u95EE\u7B54\u6A21\u677F\u300B")),da.createElement("div",{style:{marginLeft:74}},da.createElement(vt.default,Xl({},Fr),da.createElement(Fl.op,{shape:"default",icon:da.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6")))),da.createElement(ea,{visible:bi,onCancel:()=>bn(!1),onOk:Ar,modalParams:Li}))},ad={record:"record___Ueu3j",head:"head___UOVq4"},ya=we(59301),Ns=Object.defineProperty,Ru=Object.defineProperties,fl=Object.getOwnPropertyDescriptors,$u=Object.getOwnPropertySymbols,Gl=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable,Ts=(nt,ut,Ne)=>ut in nt?Ns(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Js=(nt,ut)=>{for(var Ne in ut||(ut={}))Gl.call(ut,Ne)&&Ts(nt,Ne,ut[Ne]);if($u)for(var Ne of $u(ut))Ds.call(ut,Ne)&&Ts(nt,Ne,ut[Ne]);return nt},gl=(nt,ut)=>Ru(nt,fl(ut)),Ll=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())}),Il=({})=>{const nt=(0,Et.useParams)(),[ut]=Ae.default.useForm(),[Ne,En]=(0,ce.useState)(!1),[pi,er]=(0,ce.useState)(0),[Qi,bi]=(0,ce.useState)([]),[bn,Li]=(0,ce.useState)(!1),[xr,wo]=(0,ce.useState)({title:"",content:""});let[Lr,so]=(0,ce.useState)({page:1,limit:10});(0,ce.useEffect)(()=>{kr(Lr)},[]);const Wr=[{value:"ai",label:"AI\u6A21\u578B"},{value:"qna_set",label:"\u5B9E\u8BAD\u95EE\u7B54\u96C6"}],ga=[{value:"added_to_set",label:"\u5DF2\u52A0\u5165\u95EE\u7B54\u96C6"},{value:"skipped",label:"\u65E0\u9700\u5904\u7406"},{value:"pending",label:"\u5F85\u5904\u7406"},{value:"ignored",label:"\u5DF2\u5FFD\u7565"}],kr=Ar=>Ll(void 0,null,function*(){var vr,Oo;En(!0);const Fr=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_records.json`,{method:"get",params:Ar});Fr.status===0&&(bi(((vr=Fr==null?void 0:Fr.data)==null?void 0:vr.qna_records)||[]),er((Oo=Fr==null?void 0:Fr.data)==null?void 0:Oo.total_count)),En(!1)}),mr=Ar=>{Lr.page=1,Lr=Js(Js({},Lr),Ar),so(Js({},Lr)),kr(Lr)},Zo=(Ar,vr)=>{Lr.page=Ar,Lr.limit=vr,so(Js({},Lr)),kr(Lr)},Yo=Ar=>Ll(void 0,null,function*(){const vr=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_sets.json`,{method:"post",body:gl(Js({},Ar),{qna_record_id:bn})});(vr==null?void 0:vr.status)===0&&(Mt.ZP.success("\u6DFB\u52A0\u6210\u529F"),kr(Lr),Li(!1))}),Co=Ar=>Ll(void 0,null,function*(){Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5FFD\u7565\u5417\uFF1F",onOk:()=>Ll(void 0,null,function*(){const vr=yield(0,Ct.ZP)(`/api/shixuns/${nt.id}/qna_records/${Ar.id}/update_status.json`,{method:"post",body:{status:"ignored"}});(vr==null?void 0:vr.status)===0&&kr(Lr)})})}),To=[{title:"\u95EE\u9898",dataIndex:"question",ellipsis:!0,render:Ar=>ya.createElement(ki.Z,{placement:"topLeft",title:Ar},ya.createElement("span",{className:"c-black"},Ar||"--"))},{title:"\u56DE\u7B54",dataIndex:"answer",ellipsis:!0,render:Ar=>ya.createElement(ki.Z,{placement:"topLeft",title:Ar},ya.createElement("span",{className:"c-black"},Ar||"--"))},{title:"\u56DE\u7B54\u6765\u6E90",dataIndex:"answer_source",width:110,render:Ar=>{var vr;return ya.createElement("span",{className:"c-black"},(vr=Wr==null?void 0:Wr.find(Oo=>Oo.value===Ar))==null?void 0:vr.label)}},{title:"\u72B6\u6001",dataIndex:"status",width:120,render:Ar=>{var vr;return ya.createElement("span",{className:"c-black"},(vr=ga==null?void 0:ga.find(Oo=>Oo.value===Ar))==null?void 0:vr.label)}},{title:"\u64CD\u4F5C",width:140,align:"right",dataIndex:"id",ellipsis:!0,render:(Ar,vr)=>ya.createElement("span",null,["pending","ignored"].includes(vr.status)&&ya.createElement(ya.Fragment,null,ya.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{Li(Ar),wo({title:vr==null?void 0:vr.question,content:vr==null?void 0:vr.answer})}},"\u52A0\u5165\u95EE\u7B54\u96C6"),ya.createElement("span",{className:"current c-light-primary",onClick:()=>Co(vr)},"\u5FFD\u7565")),["skipped"].includes(vr.status)&&ya.createElement(ki.Z,{placement:"topRight",title:"\u56DE\u7B54\u6765\u81EA\u95EE\u9898\u96C6\uFF0C\u65E0\u9700\u518D\u6B21\u52A0\u5165"},ya.createElement("span",{style:{cursor:"not-allowed",color:"#CCCCCC"}},"\u52A0\u5165\u95EE\u7B54\u96C6")),["added_to_set"].includes(vr.status)&&ya.createElement(ki.Z,{placement:"topRight",title:"\u5DF2\u7ECF\u52A0\u5165\u95EE\u7B54\u96C6\uFF0C\u65E0\u9700\u518D\u6B21\u52A0\u5165"},ya.createElement("span",{style:{cursor:"not-allowed",color:"#CCCCCC"}},"\u52A0\u5165\u95EE\u7B54\u96C6")))}];return ya.createElement("div",{className:ad.record},ya.createElement("div",{className:ad.head},ya.createElement(Ae.default,{layout:"inline",form:ut,colon:!1,size:"large",onFinish:mr},ya.createElement(Ae.default.Item,{name:"keywords",label:"\u95EE\u9898"},ya.createElement(Me.default,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898",style:{width:300}})),ya.createElement(Ae.default.Item,{name:"answer_source",label:"\u56DE\u7B54\u6765\u6E90"},ya.createElement(Sr.default,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u56DE\u7B54\u6765\u6E90",options:Wr,style:{width:200}})),ya.createElement(Ae.default.Item,{name:"status",label:"\u72B6\u6001"},ya.createElement(Sr.default,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",options:ga,style:{width:200}})),ya.createElement(Ae.default.Item,{style:{marginRight:0}},ya.createElement(ke.ZP,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))),ya.createElement(ch.default,{columns:To,style:{marginTop:33},dataSource:Qi,loading:Ne,rowKey:"id",pagination:{current:Lr.page,hideOnSinglePage:!pi,showQuickJumper:!0,showSizeChanger:!0,pageSize:Lr.limit,pageSizeOptions:["10","20","50","100","200"],total:pi,size:"default",showTotal:kt.rU,onChange:Zo}}),ya.createElement(ea,{visible:bn,onCancel:()=>Li(!1),onOk:Yo,modalParams:xr,forceIn:!0}))},ru=we(59301);const Sl=({dispatch:nt,practiceSetting:ut,shixunsDetail:Ne})=>{const[En,pi]=(0,ce.useState)("1");return ru.createElement("div",{className:hl.catechism},ru.createElement(Fl.tp,{dataSource:[{id:"1",name:"\u95EE\u7B54\u96C6"},{id:"2",name:"\u95EE\u7B54\u8BB0\u5F55"}],value:En,onChange:er=>pi(er),className:hl.tab}),En==="1"&&ru.createElement(qu,null),En==="2"&&ru.createElement(Il,null))};var ou=(0,Et.connect)(({practiceSetting:nt,shixunsDetail:ut})=>({practiceSetting:nt,shixunsDetail:ut}))(Sl),Mc=Object.defineProperty,Ls=Object.getOwnPropertySymbols,Pu=Object.prototype.hasOwnProperty,aa=Object.prototype.propertyIsEnumerable,Fs=(nt,ut,Ne)=>ut in nt?Mc(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Zu=(nt,ut)=>{for(var Ne in ut||(ut={}))Pu.call(ut,Ne)&&Fs(nt,Ne,ut[Ne]);if(Ls)for(var Ne of Ls(ut))aa.call(ut,Ne)&&Fs(nt,Ne,ut[Ne]);return nt},Uu=(nt,ut)=>{var Ne={};for(var En in nt)Pu.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&Ls)for(var En of Ls(nt))ut.indexOf(En)<0&&aa.call(nt,En)&&(Ne[En]=nt[En]);return Ne},sd=nt=>{var ut=nt,{tabsActive:Ne}=ut,En=Uu(ut,["tabsActive"]);return ce.createElement(ce.Fragment,null,Ne==="information"&&ce.createElement(Ce,null),Ne==="warehouse"&&ce.createElement(Ee.default,null),Ne==="level"&&ce.createElement(_o,Zu({},En)),Ne==="collaborate"&&ce.createElement(bt,Zu({},En)),Ne==="setting"&&ce.createElement(rn.Z,null),Ne==="environment"&&ce.createElement(uh,Zu({},En)),Ne==="dataset"&&ce.createElement(zo,null),Ne==="service"&&ce.createElement(Vs,Zu({},En)),Ne==="catechism"&&ce.createElement(ou,Zu({},En)))},Du={flex_box_center:"flex_box_center___FN240",flex_space_between:"flex_space_between___wjShI",flex_box_vertical_center:"flex_box_vertical_center___HbcwC",flex_box_center_end:"flex_box_center_end___gj_ks",flex_box_column:"flex_box_column___zxJPU",sidebar:"sidebar___OW5LG",items:"items___j856O",item:"item___Zn_qr",name:"name___ZfhoC",itemActive:"itemActive___sW_Ri",question:"question___yfIcY"},Yd=Object.defineProperty,pc=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable,Va=(nt,ut,Ne)=>ut in nt?Yd(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,sl=(nt,ut)=>{for(var Ne in ut||(ut={}))La.call(ut,Ne)&&Va(nt,Ne,ut[Ne]);if(pc)for(var Ne of pc(ut))Po.call(ut,Ne)&&Va(nt,Ne,ut[Ne]);return nt};const mc=nt=>React.createElement("svg",sl({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},nt),React.createElement("title",null,"\u63D0\u793A\u4FE1\u606F"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M8 0a8 8 0 1 1-8 8 8.01 8.01 0 0 1 8-8Z",fill:"#FEB300"}),React.createElement("path",{d:"M8.111 12a.78.78 0 1 0 .006-1.56.78.78 0 0 0-.006 1.56ZM7.556 4a.21.21 0 0 0-.212.218l.244 5.133a.117.117 0 0 0 .116.11h.815a.118.118 0 0 0 .117-.11l.243-5.133A.208.208 0 0 0 8.666 4h-1.11Z",fill:"#FFF"})));var kc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOCAwYTggOCAwIDEgMS04IDggOC4wMSA4LjAxIDAgMCAxIDgtOFoiIGZpbGw9IiNGRUIzMDAiLz48cGF0aCBkPSJNOC4xMTEgMTJhLjc4Ljc4IDAgMSAwIC4wMDYtMS41Ni43OC43OCAwIDAgMC0uMDA2IDEuNTZaTTcuNTU2IDRhLjIxLjIxIDAgMCAwLS4yMTIuMjE4bC4yNDQgNS4xMzNhLjExNy4xMTcgMCAwIDAgLjExNi4xMWguODE1YS4xMTguMTE4IDAgMCAwIC4xMTctLjExbC4yNDMtNS4xMzNBLjIwOC4yMDggMCAwIDAgOC42NjYgNGgtMS4xMVoiIGZpbGw9IiNGRkYiLz48L2c+PC9zdmc+",Hs=we(59301),Nc=Object.defineProperty,su=Object.defineProperties,xl=Object.getOwnPropertyDescriptors,ba=Object.getOwnPropertySymbols,ec=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable,Td=(nt,ut,Ne)=>ut in nt?Nc(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Xh=(nt,ut)=>{for(var Ne in ut||(ut={}))ec.call(ut,Ne)&&Td(nt,Ne,ut[Ne]);if(ba)for(var Ne of ba(ut))Ku.call(ut,Ne)&&Td(nt,Ne,ut[Ne]);return nt},tc=(nt,ut)=>su(nt,xl(ut)),nc=(nt,ut)=>{var Ne={};for(var En in nt)ec.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&ba)for(var En of ba(nt))ut.indexOf(En)<0&&Ku.call(nt,En)&&(Ne[En]=nt[En]);return Ne};const qc=[{name:"\u57FA\u672C\u4FE1\u606F",icon:Hs.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:Hs.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:Hs.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:Hs.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:Hs.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1\u4E0E\u8BC4\u6D4B",icon:Hs.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:Hs.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:Hs.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"},{name:"\u95EE\u7B54\u96C6",icon:Hs.createElement("i",{className:"icon iconfont icon-wendaji"}),tabId:"catechism"}],Xd=nt=>{var ut=nt,{globalSetting:Ne,loading:En,dispatch:pi,shixunsDetail:er,practiceSetting:Qi}=ut,bi=nc(ut,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),bn;const{base_info_warning:Li,challenges_warning:xr,id:wo,repository_warning:Lr,sideBar:so,service_warning:Wr}=Qi,ga=(0,Et.useLocation)(),kr=(0,Et.useParams)(),[mr]=(0,Et.useSearchParams)();(0,ce.useEffect)(()=>{var Co;const To=mr.get("tabId"),Ar=ga.pathname.split("/").length,Oo=((Co=er==null?void 0:er.detail)!=null&&Co.windows_vnc?qc.filter(Fr=>Fr.tabId!=="dataset"):qc).map(Fr=>Fr.tabId).includes(To);if(To&&Oo){pi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:To}});return}if(Ar>4){pi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!To||To&&!Oo){pi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[(bn=er==null?void 0:er.detail)==null?void 0:bn.windows_vnc]),(0,ce.useEffect)(()=>()=>{pi({type:"practiceSetting/setSideBarTabs",payload:tc(Xh({},Qi.sideBar),{selectPath:""})})},[kr.id]);const Zo=Co=>{var To;if(Co===so.tabsActive)return;const Ar=()=>{Et.history.push(`/shixuns/${wo}/edit?tabId=${Co}`),pi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Co,selectPath:"",confirmLeave:!1}})};(To=Qi==null?void 0:Qi.sideBar)!=null&&To.confirmLeave?Ge.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:()=>{Ar()}}):Ar()},Yo=()=>{var Co;return((Co=er==null?void 0:er.detail)!=null&&Co.windows_vnc?qc.filter(Ar=>Ar.tabId!=="dataset"):qc).filter(Ar=>{var vr;return(vr=er==null?void 0:er.detail)!=null&&vr.is_jupyter_lab?Ar.tabId!=="level":Ar.tabId!=="service"}).map(Ar=>{const{name:vr,icon:Oo,tabId:Fr}=Ar;return Hs.createElement("div",{key:Fr,className:`${Qi.sideBar.tabsActive===Fr?Du.itemActive:Du.item} font12`,onClick:()=>Zo(Fr)},Oo,Hs.createElement("span",{className:Du.name},vr),Fr==="information"&&Li&&Hs.createElement(ki.Z,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},Hs.createElement("img",{src:kc,alt:""})),Fr==="level"&&xr&&Hs.createElement(ki.Z,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},Hs.createElement("img",{src:kc,alt:""})),Fr==="service"&&Wr&&Hs.createElement(ki.Z,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},Hs.createElement("img",{src:kc,alt:""})),Fr==="warehouse"&&Lr&&Hs.createElement(ki.Z,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},Hs.createElement("img",{src:kc,alt:""})))})};return Hs.createElement("div",{className:Du.sidebar},Hs.createElement("div",{className:Du.items},Yo()),Hs.createElement("div",{className:Du.question},Hs.createElement(ki.Z,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},Hs.createElement("span",{style:{cursor:"pointer"},onClick:()=>window.open("https://www.educoder.net/forums/4692")},Hs.createElement("img",{src:Md.Pt,height:44,width:44,alt:""})))))};var fu=(0,Et.connect)(({loading:nt,globalSetting:ut,shixunsDetail:Ne,practiceSetting:En})=>({globalSetting:ut,loading:nt,practiceSetting:En,shixunsDetail:Ne}))(Xd),Vc={bottom:"bottom___AZ7c_",yes:"yes___iDEVN",no:"no___E02he"},Ua=we(59301),ra=Object.defineProperty,gu=Object.getOwnPropertySymbols,Gs=Object.prototype.hasOwnProperty,Jd=Object.prototype.propertyIsEnumerable,fh=(nt,ut,Ne)=>ut in nt?ra(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,Rl=(nt,ut)=>{for(var Ne in ut||(ut={}))Gs.call(ut,Ne)&&fh(nt,Ne,ut[Ne]);if(gu)for(var Ne of gu(ut))Jd.call(ut,Ne)&&fh(nt,Ne,ut[Ne]);return nt},ld=(nt,ut,Ne)=>new Promise((En,pi)=>{var er=bn=>{try{bi(Ne.next(bn))}catch(Li){pi(Li)}},Qi=bn=>{try{bi(Ne.throw(bn))}catch(Li){pi(Li)}},bi=bn=>bn.done?En(bn.value):Promise.resolve(bn.value).then(er,Qi);bi((Ne=Ne.apply(nt,ut)).next())});const ic=({classroomList:nt,loading:ut,dispatch:Ne,shixunsDetail:En})=>{var pi,er;const Qi=(0,Et.useParams)(),bi=(0,Et.useLocation)(),[bn,Li]=(0,ce.useState)(!1),[xr,wo]=(0,ce.useState)(!1),{actionTabs:Lr}=nt,[so]=Ae.default.useForm(),[Wr,ga]=(0,ce.useState)({name:"string"}),kr=Co=>Co&&Co<Er()().startOf("day"),[mr,Zo]=(0,ce.useState)();(0,ce.useEffect)(()=>{console.log(Qi),nt.actionTabs.key==="\u91CD\u540D\u4FEE\u6539"&&(Wr.name=Lr==null?void 0:Lr.name),ga(Rl({},Wr)),so.setFieldsValue({name:Lr==null?void 0:Lr.name})},[nt.actionTabs.key]);const Yo={information:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u6B21\u4FEE\u6539\u7684\u57FA\u672C\u4FE1\u606F\u540C\u6B65\u81F3\u539F\u5B9E\u8BAD\u4E2D",wareHouse:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u6B21\u4EE3\u7801\u4ED3\u5E93\u4FEE\u6539\u5185\u5BB9\u540C\u6B65\u5230\u539F\u5B9E\u8BAD\u4E2D",environment:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u6B21\u4FEE\u6539\u7684\u5B9E\u9A8C\u73AF\u5883\u540C\u6B65\u81F3\u539F\u5B9E\u8BAD\u4E2D",taskLevel:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u6B21\u4FEE\u6539\u7684\u4EFB\u52A1\u5173\u5361\u540C\u6B65\u81F3\u539F\u5B9E\u8BAD\u4E2D",setting:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u6B21\u4FEE\u6539\u7684\u8BBE\u7F6E\u540C\u6B65\u81F3\u539F\u5B9E\u8BAD\u4E2D"};return Ua.createElement(Ua.Fragment,null,Ua.createElement(Ge.default,{centered:!0,title:"\u63D0\u793A",open:nt.actionTabs.key==="\u540C\u6B65\u4FEE\u6539",width:460,zIndex:((pi=nt==null?void 0:nt.actionTabs)==null?void 0:pi.zIndex)||1e3,footer:null,onOk:()=>ld(void 0,null,function*(){console.log(123123)}),onCancel:()=>{Ne({type:"classroomList/setActionTabs",payload:{}})}},Ua.createElement("div",null,Ua.createElement("p",null,"\u672C\u5B9E\u8BAD\u4E3A\u521B\u5EFA\u4F5C\u4E1A/\u8003\u8BD5\u65F6\u590D\u5236\u751F\u6210\u7684\uFF0C",Yo[nt.actionTabs.type],"\uFF1F")),Ua.createElement("div",{className:Vc.bottom},Ua.createElement(ke.ZP,{loading:ut["shixunsDetail/saveCopyForExercise"]&&xr,className:Vc.no,onClick:()=>ld(void 0,null,function*(){var Co;wo(!0),(Co=nt.actionTabs)!=null&&Co.value?nt.actionTabs.fn(nt.actionTabs.value,!0,2):nt.actionTabs.fn(!0,2)})},"\u540C\u6B65\u4FEE\u6539\u539F\u5B9E\u8BAD"),Ua.createElement(ke.ZP,{loading:ut["shixunsDetail/saveCopyForExercise"]&&!xr,className:Vc.yes,onClick:()=>ld(void 0,null,function*(){var Co;wo(!1),(Co=nt.actionTabs)!=null&&Co.value?nt.actionTabs.fn(nt.actionTabs.value,!1,1):nt.actionTabs.fn(!1,1)})},"\u4EC5\u4FDD\u5B58\u672C\u5B9E\u8BAD"))),Ua.createElement(Ge.default,{centered:!0,title:"\u63D0\u793A",open:nt.actionTabs.key==="\u91CD\u540D\u4FEE\u6539",okText:"\u4FDD\u5B58\u540D\u79F0",cancelText:"\u4E0D\u66F4\u6362\u540D\u79F0",destroyOnClose:!0,width:550,confirmLoading:bn,onOk:()=>ld(void 0,null,function*(){var Co,To;yield so.validateFields();const Ar=so.getFieldValue();Li(!0);const vr=yield(0,Ct.ZP)(`/api/shixuns/${Qi==null?void 0:Qi.id}/update_shixun_name.json`,{method:"post",body:{shixun_name:Ar.name}});Li(!1),vr.status===0&&(Mt.ZP.success("\u4FEE\u6539\u6210\u529F"),Ne({type:"practiceSetting/getCommonData",payload:{id:Qi.id}}),(Co=nt.actionTabs)!=null&&Co.getBaseInfo&&((To=nt.actionTabs)==null||To.getBaseInfo())),Ne({type:"classroomList/setActionTabs",payload:{}})}),onCancel:()=>{Ne({type:"classroomList/setActionTabs",payload:{}})}},Ua.createElement("div",null,Ua.createElement("p",null,"\u4F60\u7BA1\u7406\u7684\u5B9E\u8BAD\u4E2D\u6709\u540C\u540D\u5B9E\u8BAD\uFF0C\u5EFA\u8BAE\u66F4\u6362\u5B9E\u8BAD\u540D\u79F0\uFF08\u5982\uFF1A\u6DFB\u52A0\u65E5\u671F\u3001\u7528\u9014\u7B49\u6587\u6848\uFF09"),Ua.createElement(Ae.default,{form:so,initialValues:{name:mr},onChange:()=>{ga(so.getFieldValue())}},Ua.createElement(Ae.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0"}]},Ua.createElement(dt.Z,{className:"mt30",align:"middle"},Ua.createElement(yt.Z,{className:"font14"},"\u5B9E\u8BAD\u540D\u79F0\uFF1A"),Ua.createElement(yt.Z,{flex:"1"},Ua.createElement(Me.default,{maxLength:60,defaultValue:Lr==null?void 0:Lr.name,suffix:Ua.createElement("span",null,((er=Wr==null?void 0:Wr.name)==null?void 0:er.length)||0,"/",60)}))))))))};var Od=(0,Et.connect)(({classroomList:nt,loading:ut,shixunsDetail:Ne})=>({classroomList:nt,loading:ut.effects,shixunsDetail:Ne}))(ic),Tc=we(59301),Jh=Object.defineProperty,xd=Object.defineProperties,Qh=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,vc=Object.prototype.hasOwnProperty,Mh=Object.prototype.propertyIsEnumerable,Qd=(nt,ut,Ne)=>ut in nt?Jh(nt,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):nt[ut]=Ne,ud=(nt,ut)=>{for(var Ne in ut||(ut={}))vc.call(ut,Ne)&&Qd(nt,Ne,ut[Ne]);if(rc)for(var Ne of rc(ut))Mh.call(ut,Ne)&&Qd(nt,Ne,ut[Ne]);return nt},Id=(nt,ut)=>xd(nt,Qh(ut)),bl=(nt,ut)=>{var Ne={};for(var En in nt)vc.call(nt,En)&&ut.indexOf(En)<0&&(Ne[En]=nt[En]);if(nt!=null&&rc)for(var En of rc(nt))ut.indexOf(En)<0&&Mh.call(nt,En)&&(Ne[En]=nt[En]);return Ne};const Oc=nt=>{var ut=nt,{globalSetting:Ne,loading:En,dispatch:pi,practiceSetting:er}=ut,Qi=bl(ut,["globalSetting","loading","dispatch","practiceSetting"]);const{sideBar:bi}=er,{tabsActive:bn}=bi;let Li=(0,Et.useParams)();return(0,ce.useEffect)(()=>(pi({type:"globalSetting/headerFooterToggle",payload:!1}),pi({type:"shixunsDetail/getShixunsDetail",payload:Id(ud({},Li),{shixun_managed:!0})}),()=>{pi({type:"globalSetting/headerFooterToggle",payload:!0}),pi({type:"practiceSetting/setParams",payload:{id:""}})}),[]),Tc.createElement("div",{className:at.practiceSetting},Tc.createElement("div",{className:at.wrapHeader},Tc.createElement(le,null)),Tc.createElement("div",{className:at.wrapLayout},Tc.createElement("div",{className:at.wrapSidebar},Tc.createElement(fu,null)),Tc.createElement("div",{className:at.wrapContent},Tc.createElement(sd,Id(ud({},Qi),{tabsActive:er.sideBar.tabsActive})))),Tc.createElement(Od,null))};var kh=(0,Et.connect)(({loading:nt,globalSetting:ut,practiceSetting:Ne})=>({globalSetting:ut,loading:nt,practiceSetting:Ne}))(Oc)},54517:function($t,zn,we){"use strict";we.d(zn,{S:function(){return jt},m:function(){return Ge}});var ce=we(58130),at=we(8591),Lt=we(43418),kt=we(59301),Dt=(Mt,Ct,Et)=>new Promise((xt,Gt)=>{var Ut=ne=>{try{te(Et.next(ne))}catch(de){Gt(de)}},Re=ne=>{try{te(Et.throw(ne))}catch(de){Gt(de)}},te=ne=>ne.done?xt(ne.value):Promise.resolve(ne.value).then(Ut,Re);te((Et=Et.apply(Mt,Ct)).next())});const jt=Mt=>{let Ct=document.createElement("textarea");return Ct.value=Mt,Ct.value},Ge=(Mt,Ct,Et,xt,Gt)=>Dt(void 0,null,function*(){var Ut,Re;const te=yield Mt({type:"shixunsDetail/saveCopyForExercise",payload:{id:Et,save_type:xt}});xt===1?((te==null?void 0:te.status)==0&&at.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Ut=te==null?void 0:te.data)!=null&&Ut.exists_same_shixun_name?Mt({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(Re=te==null?void 0:te.data)==null?void 0:Re.shixun_name}}):Mt({type:"classroomList/setActionTabs",payload:{}})):(Mt({type:"classroomList/setActionTabs",payload:{}}),(te==null?void 0:te.status)===0&&Lt.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:kt.createElement("div",null,kt.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var ne,de;(0,ce.xg)(`/shixuns/${(de=(ne=Ct==null?void 0:Ct.detail)==null?void 0:ne.fork_from)==null?void 0:de.fork_identifier}/challenges`)}}))})},98949:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return pe}});var ce=we(59301),at=we(42203),Lt=we(92832),kt=we(78241),Dt=we(43418),jt=we(8591),Ge=we(24645),Mt=we(3113),Ct=we(10148),Et=we(55351),xt={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"},Gt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,te=(xe,Ae)=>{var ke={};for(var Me in xe)Ut.call(xe,Me)&&Ae.indexOf(Me)<0&&(ke[Me]=xe[Me]);if(xe!=null&&Gt)for(var Me of Gt(xe))Ae.indexOf(Me)<0&&Re.call(xe,Me)&&(ke[Me]=xe[Me]);return ke},ne=(xe,Ae,ke)=>new Promise((Me,ot)=>{var dt=Kt=>{try{vt(ke.next(Kt))}catch(wt){ot(wt)}},yt=Kt=>{try{vt(ke.throw(Kt))}catch(wt){ot(wt)}},vt=Kt=>Kt.done?Me(Kt.value):Promise.resolve(Kt.value).then(dt,yt);vt((ke=ke.apply(xe,Ae)).next())});const de=Lt.default.TextArea,le=xe=>{var Ae=xe,{newShixuns:ke,globalSetting:Me,loading:ot,dispatch:dt}=Ae,yt=te(Ae,["newShixuns","globalSetting","loading","dispatch"]);const[vt]=kt.default.useForm(),[Kt,wt]=(0,ce.useState)([]),It=Nn=>{["uploading","done","removed"].includes(Nn.file.status)&&wt(Nn.fileList)},Yt=Nn=>{var ui;if(!Nn.percent||Nn.percent==100){const tt=(ui=Nn.response)==null?void 0:ui.id;return Dt.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ne(void 0,null,function*(){(yield dt({type:"newShixuns/deleteAttachment",payload:{id:tt}}))&&wt(Kt.filter(mn=>{var Zn;return((Zn=mn.response)==null?void 0:Zn.id)!==tt}))})}),!1}},yn=Nn=>Kt.length?!1:Nn.size/1024/1024>50?(jt.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0,Mi=Nn=>ne(void 0,null,function*(){var ui,tt;const{language:He,env:mn,mode:Zn,code:Qn}=Nn||{},nn=yield dt({type:"newShixuns/applyShixunMirror",payload:{language:He,runtime:mn,run_method:Zn,attachment_id:(tt=(ui=Kt==null?void 0:Kt[0])==null?void 0:ui.response)==null?void 0:tt.id}});dt({type:"newShixuns/setActionTabs",payload:{}}),nn&&jt.ZP.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002")}),wi=()=>{vt.resetFields(),wt([])};return ce.createElement(Dt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:ke.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:wi},ce.createElement("section",{className:xt.qrCode},ce.createElement("aside",{className:xt.a1},ce.createElement("div",{className:xt.code},ce.createElement("img",{width:120,height:120,src:Et,alt:"\u4E8C\u7EF4\u7801"})),ce.createElement("div",{className:xt.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),ce.createElement("div",{className:xt.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),ce.createElement("aside",{className:xt.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",ce.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")),ce.createElement(kt.default,{className:xt.formWrap,form:vt,labelCol:{span:4},wrapperCol:{span:20},onFinish:Mi},ce.createElement(kt.default.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},ce.createElement(de,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),ce.createElement(kt.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"}]},ce.createElement(de,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),ce.createElement(kt.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"}]},ce.createElement(de,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),ce.createElement(kt.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},ce.createElement("div",{className:xt.upload},ce.createElement(Ge.default,{fileList:Kt,action:`${Ct.Z.API_SERVER}/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a`,onChange:It,onRemove:Yt,beforeUpload:yn,withCredentials:!0},ce.createElement("span",{className:`${xt.color0152d9} current`},"\u4E0A\u4F20\u9644\u4EF6"),ce.createElement("span",{className:`${xt.colorCCC} ml10`},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),ce.createElement("div",{className:xt.footerWrap},ce.createElement(kt.default.Item,null,ce.createElement(Mt.ZP,{className:"mr5",size:"middle",onClick:()=>{dt({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),ce.createElement(Mt.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:ot["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};var pe=(0,at.connect)(({newShixuns:xe,loading:Ae,globalSetting:ke})=>({newShixuns:xe,globalSetting:ke,loading:Ae.effects}))(le)},41648:function($t,zn,we){"use strict";var ce=we(59301),at=we(42203),Lt=we(43418),kt=we(55351);const Dt=({newShixuns:jt,dispatch:Ge,user:Mt})=>{var Ct;const[Et,xt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{jt.actionTabs.key==="Create-Environment"&&Ut()},[(Ct=jt==null?void 0:jt.actionTabs)==null?void 0:Ct.key]);const Gt=()=>{Ge({type:"newShixuns/setActionTabs",payload:{}})},Ut=()=>{var Re,te,ne,de;Gt(),((Re=Mt.userInfo)==null?void 0:Re.mirror_marker_status)===0?xt(!0):((te=Mt.userInfo)==null?void 0:te.mirror_marker_status)===1?at.history.push(`/users/${(ne=Mt.userInfo)==null?void 0:ne.login}/experiment-img/add`):((de=Mt.userInfo)==null?void 0:de.mirror_marker_status)===2&&Lt.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 le;at.history.push(`/users/${(le=Mt.userInfo)==null?void 0:le.login}/experiment-img`)}})};return ce.createElement(Lt.default,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",open:Et,footer:null,onCancel:()=>{xt(!1)}},ce.createElement("div",{style:{textAlign:"center"}},ce.createElement("br",null),ce.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:kt,alt:"\u4E8C\u7EF4\u7801"})),ce.createElement("img",null))};zn.Z=(0,at.connect)(({newShixuns:jt,user:Ge,globalSetting:Mt})=>({newShixuns:jt,globalSetting:Mt,user:Ge}))(Dt)},39171:function($t,zn,we){"use strict";we.d(zn,{BU:function(){return at},Dj:function(){return ce},gH:function(){return Lt},vp:function(){return kt}});function ce(Dt){try{Dt.mozRequestFullScreen?Dt.mozRequestFullScreen():Dt.webkitRequestFullScreen&&Dt.webkitRequestFullScreen()}catch(jt){console.log(jt,":e")}}function at(){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 Lt=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function kt(){var Dt=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,jt=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Dt),window.isFullScreen?window.isFullScreen:Dt!=null}},31087:function($t,zn,we){"use strict";we.d(zn,{AL:function(){return Ae},Iy:function(){return xt},Qv:function(){return Re},ez:function(){return xe},jb:function(){return Gt}});var ce=we(32834),at=we.n(ce),Lt=we(11690),kt=we.n(Lt);let Dt=1;function jt(yt,vt){const Kt=yt.match(/^(\s+)(?:```)/);if(Kt===null)return vt;const wt=Kt[1];return vt.split(`
|
|
`).map(It=>{const Yt=It.match(/^\s+/);if(Yt===null)return It;const[yn]=Yt;return yn.length>=wt.length?It.slice(wt.length):It}).join(`
|
|
`)}let Ge=[],Mt=["<ul>"];const Ct=new(at()).Renderer,Et=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function xt(){Ge.length=0,Mt=["<ul>"]}const Gt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ut(yt,vt,Kt,wt){if(vt>=yt.length||yt[vt].level<=Kt)return vt;var It=yt[vt];wt.push("<li><a href='#"+Dt+It.anchor+"'>"+It.text+"</a>"),vt++;var Yt=[];return vt=Ut(yt,vt,It.level,Yt),Yt.length>0&&(wt.push("<ul>"),Yt.forEach(function(yn){wt.push(yn)}),wt.push("</ul>")),wt.push("</li>"),vt=Ut(yt,vt,Kt,wt),vt}function Re(){return Ut(Ge,0,0,Mt),Mt.push("</ul>"),Mt.join("")}const te={heading(yt){const vt=Et.exec(yt);if(Dt+=1,vt)return{type:"heading",raw:vt[0],depth:vt[1].length,text:vt[2]}},fences(yt){const vt=this.rules.block.fences.exec(yt);if(vt){const Kt=vt[0];let wt=jt(Kt,vt[3]||"");const It=vt[2]?vt[2].trim():vt[2];if(["latex","katex","math"].indexOf(It)>=0){const Yt=le(),yn=wt;wt=Yt,pe[Yt]={type:"block",expression:yn}}return{type:"code",raw:Kt,lang:It,text:wt}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let de=0;const le=()=>`__special_katext_id_${de++}__`;let pe={};function xe(){return pe}function Ae(){de=0,pe={}}function ke(yt){return yt=yt.replace(ne,(vt,Kt)=>{const wt=le();return pe[wt]={type:"inline",expression:Kt},wt}),yt}const Me=Ct.listitem;Ct.listitem=function(yt){return Me(ke(yt))};const ot=Ct.paragraph;Ct.paragraph=function(yt){return ot(ke(yt))};const dt=Ct.tablecell;Ct.tablecell=function(yt,vt){return dt(ke(yt),vt)},Ct.code=function(yt,vt,Kt){const wt=(vt||"").match(/\S*/)[0];return wt?["latex","katex","math"].indexOf(wt)>=0?`<p class='editormd-tex'>${yt}</p>`:`<pre class="prettyprint linenums"><code class="language-${vt}">${Kt?yt:(0,Lt.escape)(yt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Kt?yt:(0,Lt.escape)(yt,!0))+"</code></pre>"},Ct.heading=function(yt,vt,Kt){let wt=this.options.headerPrefix+Kt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ge.push({anchor:wt,level:vt,text:yt}),"<h"+vt+' id="'+Dt+wt+'">'+yt+"</h"+vt+">"},at().setOptions({silent:!0,gfm:!0,pedantic:!1}),at().use({tokenizer:te,renderer:Ct}),zn.ZP=at()},18032:function($t,zn,we){"use strict";we.d(zn,{rX:function(){return Ae},pW:function(){return ke},gy:function(){return Me},xY:function(){return xe},O5:function(){return pe},tJ:function(){return Re},o1:function(){return te},Rd:function(){return le}});var ce=we(42203),at=we(43418),Lt=we(28103),kt=we(8591),Dt=we(2119),jt=we(58130),Ge=we(80205),Mt=we(25510),Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z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QBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Et=we.p+"static/newqrcode.a8740efb.png",xt=we(32637),Gt=we(59301),Ut=(ot,dt,yt)=>new Promise((vt,Kt)=>{var wt=yn=>{try{Yt(yt.next(yn))}catch(Mi){Kt(Mi)}},It=yn=>{try{Yt(yt.throw(yn))}catch(Mi){Kt(Mi)}},Yt=yn=>yn.done?vt(yn.value):Promise.resolve(yn.value).then(wt,It);Yt((yt=yt.apply(ot,dt)).next())});const Re=(ot,dt=!1)=>!!(te(ot)&&ne(dt)),te=ot=>(0,Dt.bg)()?!0:(ot({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=(ot=!1)=>{var dt;const{user:yt}=(0,ce.getDvaApp)()._store.getState();return(dt=yt.userInfo)!=null&&dt.profile_completed?!0:(at.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,jt.xg)("/account/profile/edit"),de()}}),!1)},de=()=>{at.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()}})},le=()=>{at.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Gt.createElement("div",{style:{textAlign:"center"}},Gt.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"),Gt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:xt}),Gt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},pe=()=>{var ot;const{user:dt}=(0,ce.getDvaApp)()._store.getState();return(ot=dt.userInfo)!=null&&ot.professional_certification?!0:(at.default.confirm({title:"\u63D0\u793A",centered:!0,content:Gt.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,jt.xg)("/account/certification")}}),!1)},xe=()=>(0,Dt.V9)()?!0:(at.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Gt.createElement("div",{className:"tc",style:{marginLeft:-38}},Gt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Gt.createElement("img",{src:Et,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Ae=(ot,dt)=>ot?!0:(at.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Gt.createElement("div",null,Gt.createElement("p",null,dt||"\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"),Gt.createElement("div",{style:{marginLeft:"110px"}},Gt.createElement("img",{src:Ct,width:200}),Gt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,jt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ke=ot=>{at.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Gt.createElement("div",null,Gt.createElement("div",null,Gt.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"),Gt.createElement(Lt.Z,null),Gt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Gt.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 ",Gt.createElement("a",null,ot),"\u5929\u3002"),Gt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Gt.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")),Gt.createElement("div",{style:{textAlign:"center",marginTop:30}},Gt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Mt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Me=(ot,dt="")=>{const{shixunsDetail:{detail:yt}}=(0,ce.getDvaApp)()._store.getState();if((yt==null?void 0:yt.public)===2||(yt==null?void 0:yt.public)===1||(yt==null?void 0:yt.shixun_status)===3){let vt="";return(yt==null?void 0:yt.public)===2&&(vt="\u5DF2\u516C\u5F00"),(yt==null?void 0:yt.public)===1&&(vt="\u5F85\u5BA1\u6838"),(yt==null?void 0:yt.shixun_status)===3&&(vt="\u5DF2\u5173\u95ED"),at.default.info({centered:!0,icon:Gt.createElement(Ge.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Gt.createElement("div",{className:"tc",style:{marginLeft:-38}},Gt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Gt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",vt,"\uFF0C",dt,"\u3002"),Gt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Gt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Mt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(yt==null?void 0:yt.shixun_status)===2?(at.default.confirm({centered:!0,icon:Gt.createElement(Ge.Z,null),title:"\u63D0\u793A",content:Gt.createElement("div",null,Gt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",dt,"\u3002"),Gt.createElement("br",null),Gt.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:()=>{at.default.confirm({width:440,centered:!0,icon:Gt.createElement(Ge.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:()=>Ut(void 0,null,function*(){(yield ot({type:"shixunsDetail/cancelRelease",payload:{id:yt==null?void 0:yt.identifier}})).status!==401&&(kt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ot({type:"shixunsDetail/getShixunsDetail",payload:{id:yt==null?void 0:yt.identifier}}),ot({type:"practiceSetting/getCommonData",payload:{id:yt==null?void 0:yt.identifier}}))})})}}),!0):!1}},77578:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return ce}});const ce=at=>at?typeof at=="function"?at():at:null},46400:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return wi}});var ce=we(79999),at=we(33130),Lt=we(72119),kt=we(85404),Dt=we(35973),jt=we(92310),Ge=we.n(jt),Mt=we(43469),Ct=we(36994),Et=we(59301),xt=we(92343),Gt=we(36355),Ut=we(17313),Re=we(83116);const te=(Nn,ui,tt,He,mn)=>({backgroundColor:Nn,border:`${He.lineWidth}px ${He.lineType} ${ui}`,[`${mn}-icon`]:{color:tt}}),ne=Nn=>{const{componentCls:ui,motionDurationSlow:tt,marginXS:He,marginSM:mn,fontSize:Zn,fontSizeLG:Qn,lineHeight:nn,borderRadiusLG:gn,motionEaseInOutCirc:Ln,withDescriptionIconSize:yi,colorText:Yn,colorTextHeading:Ai,withDescriptionPadding:mt,defaultPadding:ht}=Nn;return{[ui]:Object.assign(Object.assign({},(0,Ut.Wf)(Nn)),{position:"relative",display:"flex",alignItems:"center",padding:ht,wordWrap:"break-word",borderRadius:gn,[`&${ui}-rtl`]:{direction:"rtl"},[`${ui}-content`]:{flex:1,minWidth:0},[`${ui}-icon`]:{marginInlineEnd:He,lineHeight:0},"&-description":{display:"none",fontSize:Zn,lineHeight:nn},"&-message":{color:Ai},[`&${ui}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${tt} ${Ln}, opacity ${tt} ${Ln},
|
|
padding-top ${tt} ${Ln}, padding-bottom ${tt} ${Ln},
|
|
margin-bottom ${tt} ${Ln}`},[`&${ui}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${ui}-with-description`]:{alignItems:"flex-start",padding:mt,[`${ui}-icon`]:{marginInlineEnd:mn,fontSize:yi,lineHeight:0},[`${ui}-message`]:{display:"block",marginBottom:He,color:Ai,fontSize:Qn},[`${ui}-description`]:{display:"block",color:Yn}},[`${ui}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},de=Nn=>{const{componentCls:ui,colorSuccess:tt,colorSuccessBorder:He,colorSuccessBg:mn,colorWarning:Zn,colorWarningBorder:Qn,colorWarningBg:nn,colorError:gn,colorErrorBorder:Ln,colorErrorBg:yi,colorInfo:Yn,colorInfoBorder:Ai,colorInfoBg:mt}=Nn;return{[ui]:{"&-success":te(mn,He,tt,Nn,ui),"&-info":te(mt,Ai,Yn,Nn,ui),"&-warning":te(nn,Qn,Zn,Nn,ui),"&-error":Object.assign(Object.assign({},te(yi,Ln,gn,Nn,ui)),{[`${ui}-description > pre`]:{margin:0,padding:0}})}}},le=Nn=>{const{componentCls:ui,iconCls:tt,motionDurationMid:He,marginXS:mn,fontSizeIcon:Zn,colorIcon:Qn,colorIconHover:nn}=Nn;return{[ui]:{"&-action":{marginInlineStart:mn},[`${ui}-close-icon`]:{marginInlineStart:mn,padding:0,overflow:"hidden",fontSize:Zn,lineHeight:`${Zn}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${tt}-close`]:{color:Qn,transition:`color ${He}`,"&:hover":{color:nn}}},"&-close-text":{color:Qn,transition:`color ${He}`,"&:hover":{color:nn}}}}},pe=Nn=>[ne(Nn),de(Nn),le(Nn)];var xe=(0,Re.Z)("Alert",Nn=>[pe(Nn)],Nn=>({withDescriptionIconSize:Nn.fontSizeHeading3,defaultPadding:`${Nn.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${Nn.paddingMD}px ${Nn.paddingContentHorizontalLG}px`})),Ae=function(Nn,ui){var tt={};for(var He in Nn)Object.prototype.hasOwnProperty.call(Nn,He)&&ui.indexOf(He)<0&&(tt[He]=Nn[He]);if(Nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,He=Object.getOwnPropertySymbols(Nn);mn<He.length;mn++)ui.indexOf(He[mn])<0&&Object.prototype.propertyIsEnumerable.call(Nn,He[mn])&&(tt[He[mn]]=Nn[He[mn]]);return tt};const ke={success:ce.Z,info:Dt.Z,error:at.Z,warning:kt.Z},Me=Nn=>{const{icon:ui,prefixCls:tt,type:He}=Nn,mn=ke[He]||null;return ui?(0,xt.wm)(ui,Et.createElement("span",{className:`${tt}-icon`},ui),()=>({className:Ge()(`${tt}-icon`,{[ui.props.className]:ui.props.className})})):Et.createElement(mn,{className:`${tt}-icon`})},ot=Nn=>{const{isClosable:ui,prefixCls:tt,closeIcon:He,handleClose:mn}=Nn,Zn=He===!0||He===void 0?Et.createElement(Lt.Z,null):He;return ui?Et.createElement("button",{type:"button",onClick:mn,className:`${tt}-close-icon`,tabIndex:0},Zn):null};var yt=Nn=>{const{description:ui,prefixCls:tt,message:He,banner:mn,className:Zn,rootClassName:Qn,style:nn,onMouseEnter:gn,onMouseLeave:Ln,onClick:yi,afterClose:Yn,showIcon:Ai,closable:mt,closeText:ht,closeIcon:un,action:Sn}=Nn,Dn=Ae(Nn,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[kn,ii]=Et.useState(!1),Hn=Et.useRef(null),{getPrefixCls:Di,direction:hn,alert:rt}=Et.useContext(Gt.E_),Pt=Di("alert",tt),[_t,We]=xe(Pt),Ce=dn=>{var sn;ii(!0),(sn=Nn.onClose)===null||sn===void 0||sn.call(Nn,dn)},Ee=Et.useMemo(()=>Nn.type!==void 0?Nn.type:mn?"warning":"info",[Nn.type,mn]),Ie=Et.useMemo(()=>ht?!0:typeof mt=="boolean"?mt:un!==!1&&un!==null&&un!==void 0,[ht,un,mt]),Ke=mn&&Ai===void 0?!0:Ai,Le=Ge()(Pt,`${Pt}-${Ee}`,{[`${Pt}-with-description`]:!!ui,[`${Pt}-no-icon`]:!Ke,[`${Pt}-banner`]:!!mn,[`${Pt}-rtl`]:hn==="rtl"},rt==null?void 0:rt.className,Zn,Qn,We),st=(0,Ct.Z)(Dn,{aria:!0,data:!0});return _t(Et.createElement(Mt.default,{visible:!kn,motionName:`${Pt}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:dn=>({maxHeight:dn.offsetHeight}),onLeaveEnd:Yn},dn=>{let{className:sn,style:en}=dn;return Et.createElement("div",Object.assign({ref:Hn,"data-show":!kn,className:Ge()(Le,sn),style:Object.assign(Object.assign(Object.assign({},rt==null?void 0:rt.style),nn),en),onMouseEnter:gn,onMouseLeave:Ln,onClick:yi,role:"alert"},st),Ke?Et.createElement(Me,{description:ui,icon:Nn.icon,prefixCls:Pt,type:Ee}):null,Et.createElement("div",{className:`${Pt}-content`},He?Et.createElement("div",{className:`${Pt}-message`},He):null,ui?Et.createElement("div",{className:`${Pt}-description`},ui):null),Sn?Et.createElement("div",{className:`${Pt}-action`},Sn):null,Et.createElement(ot,{isClosable:Ie,prefixCls:Pt,closeIcon:ht||un,handleClose:Ce}))}))},vt=we(79545),Kt=we(68550),wt=we(17928),It=we(7711),yn=function(Nn){(0,wt.Z)(tt,Nn);var ui=(0,It.Z)(tt);function tt(){var He;return(0,vt.Z)(this,tt),He=ui.apply(this,arguments),He.state={error:void 0,info:{componentStack:""}},He}return(0,Kt.Z)(tt,[{key:"componentDidCatch",value:function(mn,Zn){this.setState({error:mn,info:Zn})}},{key:"render",value:function(){const{message:mn,description:Zn,children:Qn}=this.props,{error:nn,info:gn}=this.state,Ln=gn&&gn.componentStack?gn.componentStack:null,yi=typeof mn=="undefined"?(nn||"").toString():mn,Yn=typeof Zn=="undefined"?Ln:Zn;return nn?Et.createElement(yt,{type:"error",message:yi,description:Et.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Yn)}):Qn}}]),tt}(Et.Component);const Mi=yt;Mi.ErrorBoundary=yn;var wi=Mi},88522:function($t,zn,we){"use strict";var ce=we(92310),at=we.n(ce),Lt=we(38298),kt=we(64002),Dt=we(59301),jt=we(53487),Ge=we(92343),Mt=we(36355),Ct=we(57809);const{Option:Et}=Ct.default;function xt(te){return te&&te.type&&(te.type.isSelectOption||te.type.isSelectOptGroup)}const Gt=(te,ne)=>{const{prefixCls:de,className:le,popupClassName:pe,dropdownClassName:xe,children:Ae,dataSource:ke}=te,Me=(0,Lt.Z)(Ae);let ot;Me.length===1&&(0,Ge.l$)(Me[0])&&!xt(Me[0])&&([ot]=Me);const dt=ot?()=>ot:void 0;let yt;Me.length&&xt(Me[0])?yt=Ae:yt=ke?ke.map(wt=>{if((0,Ge.l$)(wt))return wt;switch(typeof wt){case"string":return Dt.createElement(Et,{key:wt,value:wt},wt);case"object":{const{value:It}=wt;return Dt.createElement(Et,{key:It,value:It},wt.text)}default:return}}):[];const{getPrefixCls:vt}=Dt.useContext(Mt.E_),Kt=vt("select",de);return Dt.createElement(Ct.default,Object.assign({ref:ne,suffixIcon:null},(0,kt.Z)(te,["dataSource","dropdownClassName"]),{prefixCls:Kt,popupClassName:pe||xe,className:at()(`${Kt}-auto-complete`,le),mode:Ct.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:dt}),yt)},Ut=Dt.forwardRef(Gt),Re=(0,jt.Z)(Ut);Ut.Option=Et,Ut._InternalPanelDoNotUseOrYouWillBeFired=Re,zn.Z=Ut},49127:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return ui}});var ce=we(92310),at=we.n(ce),Lt=we(43469),kt=we(59301),Dt=we(36785),jt=we(92343),Ge=we(36355),Mt=we(9792),Ct=we(17313),Et=we(45157),xt=we(37613),Gt=we(83116);const Ut=new Mt.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Re=new Mt.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),te=new Mt.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),ne=new Mt.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),de=new Mt.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),le=new Mt.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pe=tt=>{const{componentCls:He,iconCls:mn,antCls:Zn,badgeShadowSize:Qn,motionDurationSlow:nn,textFontSize:gn,textFontSizeSM:Ln,statusSize:yi,dotSize:Yn,textFontWeight:Ai,indicatorHeight:mt,indicatorHeightSM:ht,marginXS:un}=tt,Sn=`${Zn}-scroll-number`,Dn=(0,Et.Z)(tt,(kn,ii)=>{let{darkColor:Hn}=ii;return{[`&${He} ${He}-color-${kn}`]:{background:Hn,[`&:not(${He}-count)`]:{color:Hn}}}});return{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(tt)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${He}-count`]:{zIndex:tt.indicatorZIndex,minWidth:mt,height:mt,color:tt.badgeTextColor,fontWeight:Ai,fontSize:gn,lineHeight:`${mt}px`,whiteSpace:"nowrap",textAlign:"center",background:tt.badgeColor,borderRadius:mt/2,boxShadow:`0 0 0 ${Qn}px ${tt.badgeShadowColor}`,transition:`background ${tt.motionDurationMid}`,a:{color:tt.badgeTextColor},"a:hover":{color:tt.badgeTextColor},"a:hover &":{background:tt.badgeColorHover}},[`${He}-count-sm`]:{minWidth:ht,height:ht,fontSize:Ln,lineHeight:`${ht}px`,borderRadius:ht/2},[`${He}-multiple-words`]:{padding:`0 ${tt.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${He}-dot`]:{zIndex:tt.indicatorZIndex,width:Yn,minWidth:Yn,height:Yn,background:tt.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Qn}px ${tt.badgeShadowColor}`},[`${He}-dot${Sn}`]:{transition:`background ${nn}`},[`${He}-count, ${He}-dot, ${Sn}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${mn}-spin`]:{animationName:le,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${He}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${He}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:yi,height:yi,verticalAlign:"middle",borderRadius:"50%"},[`${He}-status-success`]:{backgroundColor:tt.colorSuccess},[`${He}-status-processing`]:{overflow:"visible",color:tt.colorPrimary,backgroundColor:tt.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:Qn,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Ut,animationDuration:tt.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${He}-status-default`]:{backgroundColor:tt.colorTextPlaceholder},[`${He}-status-error`]:{backgroundColor:tt.colorError},[`${He}-status-warning`]:{backgroundColor:tt.colorWarning},[`${He}-status-text`]:{marginInlineStart:un,color:tt.colorText,fontSize:tt.fontSize}}}),Dn),{[`${He}-zoom-appear, ${He}-zoom-enter`]:{animationName:Re,animationDuration:tt.motionDurationSlow,animationTimingFunction:tt.motionEaseOutBack,animationFillMode:"both"},[`${He}-zoom-leave`]:{animationName:te,animationDuration:tt.motionDurationSlow,animationTimingFunction:tt.motionEaseOutBack,animationFillMode:"both"},[`&${He}-not-a-wrapper`]:{[`${He}-zoom-appear, ${He}-zoom-enter`]:{animationName:ne,animationDuration:tt.motionDurationSlow,animationTimingFunction:tt.motionEaseOutBack},[`${He}-zoom-leave`]:{animationName:de,animationDuration:tt.motionDurationSlow,animationTimingFunction:tt.motionEaseOutBack},[`&:not(${He}-status)`]:{verticalAlign:"middle"},[`${Sn}-custom-component, ${He}-count`]:{transform:"none"},[`${Sn}-custom-component, ${Sn}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${Sn}`]:{overflow:"hidden",[`${Sn}-only`]:{position:"relative",display:"inline-block",height:mt,transition:`all ${tt.motionDurationSlow} ${tt.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${Sn}-only-unit`]:{height:mt,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${Sn}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${He}-count, ${He}-dot, ${Sn}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},xe=tt=>{const{fontSize:He,lineHeight:mn,lineWidth:Zn,marginXS:Qn,colorBorderBg:nn}=tt,gn=Math.round(He*mn),Ln=Zn,yi=tt.colorBgContainer,Yn=tt.colorError,Ai=tt.colorErrorHover;return(0,xt.TS)(tt,{badgeFontHeight:gn,badgeShadowSize:Ln,badgeTextColor:yi,badgeColor:Yn,badgeColorHover:Ai,badgeShadowColor:nn,badgeProcessingDuration:"1.2s",badgeRibbonOffset:Qn,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ae=tt=>{const{fontSize:He,lineHeight:mn,fontSizeSM:Zn,lineWidth:Qn}=tt;return{indicatorZIndex:"auto",indicatorHeight:Math.round(He*mn)-2*Qn,indicatorHeightSM:He,dotSize:Zn/2,textFontSize:Zn,textFontSizeSM:Zn,textFontWeight:"normal",statusSize:Zn/2}};var ke=(0,Gt.Z)("Badge",tt=>{const He=xe(tt);return[pe(He)]},Ae);const Me=tt=>{const{antCls:He,badgeFontHeight:mn,marginXS:Zn,badgeRibbonOffset:Qn}=tt,nn=`${He}-ribbon`,gn=`${He}-ribbon-wrapper`,Ln=(0,Et.Z)(tt,(yi,Yn)=>{let{darkColor:Ai}=Yn;return{[`&${nn}-color-${yi}`]:{background:Ai,color:Ai}}});return{[`${gn}`]:{position:"relative"},[`${nn}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(tt)),{position:"absolute",top:Zn,padding:`0 ${tt.paddingXS}px`,color:tt.colorPrimary,lineHeight:`${mn}px`,whiteSpace:"nowrap",backgroundColor:tt.colorPrimary,borderRadius:tt.borderRadiusSM,[`${nn}-text`]:{color:tt.colorTextLightSolid},[`${nn}-corner`]:{position:"absolute",top:"100%",width:Qn,height:Qn,color:"currentcolor",border:`${Qn/2}px solid`,transform:tt.badgeRibbonCornerTransform,transformOrigin:"top",filter:tt.badgeRibbonCornerFilter}}),Ln),{[`&${nn}-placement-end`]:{insetInlineEnd:-Qn,borderEndEndRadius:0,[`${nn}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${nn}-placement-start`]:{insetInlineStart:-Qn,borderEndStartRadius:0,[`${nn}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var ot=(0,Gt.Z)(["Badge","Ribbon"],tt=>{const He=xe(tt);return[Me(He)]},Ae),yt=tt=>{const{className:He,prefixCls:mn,style:Zn,color:Qn,children:nn,text:gn,placement:Ln="end",rootClassName:yi}=tt,{getPrefixCls:Yn,direction:Ai}=kt.useContext(Ge.E_),mt=Yn("ribbon",mn),ht=(0,Dt.o2)(Qn,!1),un=at()(mt,`${mt}-placement-${Ln}`,{[`${mt}-rtl`]:Ai==="rtl",[`${mt}-color-${Qn}`]:ht},He),[Sn,Dn]=ot(mt),kn={},ii={};return Qn&&!ht&&(kn.background=Qn,ii.color=Qn),Sn(kt.createElement("div",{className:at()(`${mt}-wrapper`,yi,Dn)},nn,kt.createElement("div",{className:at()(un,Dn),style:Object.assign(Object.assign({},kn),Zn)},kt.createElement("span",{className:`${mt}-text`},gn),kt.createElement("div",{className:`${mt}-corner`,style:ii}))))};function vt(tt){let{prefixCls:He,value:mn,current:Zn,offset:Qn=0}=tt,nn;return Qn&&(nn={position:"absolute",top:`${Qn}00%`,left:0}),kt.createElement("span",{style:nn,className:at()(`${He}-only-unit`,{current:Zn})},mn)}function Kt(tt,He,mn){let Zn=tt,Qn=0;for(;(Zn+10)%10!==He;)Zn+=mn,Qn+=mn;return Qn}function wt(tt){const{prefixCls:He,count:mn,value:Zn}=tt,Qn=Number(Zn),nn=Math.abs(mn),[gn,Ln]=kt.useState(Qn),[yi,Yn]=kt.useState(nn),Ai=()=>{Ln(Qn),Yn(nn)};kt.useEffect(()=>{const un=setTimeout(()=>{Ai()},1e3);return()=>{clearTimeout(un)}},[Qn]);let mt,ht;if(gn===Qn||Number.isNaN(Qn)||Number.isNaN(gn))mt=[kt.createElement(vt,Object.assign({},tt,{key:Qn,current:!0}))],ht={transition:"none"};else{mt=[];const un=Qn+10,Sn=[];for(let ii=Qn;ii<=un;ii+=1)Sn.push(ii);const Dn=Sn.findIndex(ii=>ii%10===gn);mt=Sn.map((ii,Hn)=>{const Di=ii%10;return kt.createElement(vt,Object.assign({},tt,{key:ii,value:Di,offset:Hn-Dn,current:Hn===Dn}))});const kn=yi<nn?1:-1;ht={transform:`translateY(${-Kt(gn,Qn,kn)}00%)`}}return kt.createElement("span",{className:`${He}-only`,style:ht,onTransitionEnd:Ai},mt)}var It=function(tt,He){var mn={};for(var Zn in tt)Object.prototype.hasOwnProperty.call(tt,Zn)&&He.indexOf(Zn)<0&&(mn[Zn]=tt[Zn]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Zn=Object.getOwnPropertySymbols(tt);Qn<Zn.length;Qn++)He.indexOf(Zn[Qn])<0&&Object.prototype.propertyIsEnumerable.call(tt,Zn[Qn])&&(mn[Zn[Qn]]=tt[Zn[Qn]]);return mn},yn=kt.forwardRef((tt,He)=>{const{prefixCls:mn,count:Zn,className:Qn,motionClassName:nn,style:gn,title:Ln,show:yi,component:Yn="sup",children:Ai}=tt,mt=It(tt,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:ht}=kt.useContext(Ge.E_),un=ht("scroll-number",mn),Sn=Object.assign(Object.assign({},mt),{"data-show":yi,style:gn,className:at()(un,Qn,nn),title:Ln});let Dn=Zn;if(Zn&&Number(Zn)%1===0){const kn=String(Zn).split("");Dn=kt.createElement("bdi",null,kn.map((ii,Hn)=>kt.createElement(wt,{prefixCls:un,count:Number(Zn),value:ii,key:kn.length-Hn})))}return gn&&gn.borderColor&&(Sn.style=Object.assign(Object.assign({},gn),{boxShadow:`0 0 0 1px ${gn.borderColor} inset`})),Ai?(0,jt.Tm)(Ai,kn=>({className:at()(`${un}-custom-component`,kn==null?void 0:kn.className,nn)})):kt.createElement(Yn,Object.assign({},Sn,{ref:He}),Dn)}),Mi=function(tt,He){var mn={};for(var Zn in tt)Object.prototype.hasOwnProperty.call(tt,Zn)&&He.indexOf(Zn)<0&&(mn[Zn]=tt[Zn]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Zn=Object.getOwnPropertySymbols(tt);Qn<Zn.length;Qn++)He.indexOf(Zn[Qn])<0&&Object.prototype.propertyIsEnumerable.call(tt,Zn[Qn])&&(mn[Zn[Qn]]=tt[Zn[Qn]]);return mn};const wi=(tt,He)=>{var mn,Zn,Qn,nn,gn;const{prefixCls:Ln,scrollNumberPrefixCls:yi,children:Yn,status:Ai,text:mt,color:ht,count:un=null,overflowCount:Sn=99,dot:Dn=!1,size:kn="default",title:ii,offset:Hn,style:Di,className:hn,rootClassName:rt,classNames:Pt,styles:_t,showZero:We=!1}=tt,Ce=Mi(tt,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:Ee,direction:Ie,badge:Ke}=kt.useContext(Ge.E_),Le=Ee("badge",Ln),[st,dn]=ke(Le),sn=un>Sn?`${Sn}+`:un,en=sn==="0"||sn===0,Xt=un===null||en&&!We,ai=(Ai!=null||ht!=null)&&Xt,Bn=Dn&&!en,In=Bn?"":sn,Yi=(0,kt.useMemo)(()=>(In==null||In===""||en&&!We)&&!Bn,[In,en,We,Bn]),fi=(0,kt.useRef)(un);Yi||(fi.current=un);const ar=fi.current,io=(0,kt.useRef)(In);Yi||(io.current=In);const jo=io.current,bo=(0,kt.useRef)(Bn);Yi||(bo.current=Bn);const Mr=(0,kt.useMemo)(()=>{if(!Hn)return Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Di);const eo={marginTop:Hn[1]};return Ie==="rtl"?eo.left=parseInt(Hn[0],10):eo.right=-parseInt(Hn[0],10),Object.assign(Object.assign(Object.assign({},eo),Ke==null?void 0:Ke.style),Di)},[Ie,Hn,Di,Ke==null?void 0:Ke.style]),_o=ii!=null?ii:typeof ar=="string"||typeof ar=="number"?ar:void 0,Bo=Yi||!mt?null:kt.createElement("span",{className:`${Le}-status-text`},mt),yo=!ar||typeof ar!="object"?void 0:(0,jt.Tm)(ar,eo=>({style:Object.assign(Object.assign({},Mr),eo.style)})),ho=(0,Dt.o2)(ht,!1),Tr=at()(Pt==null?void 0:Pt.indicator,(mn=Ke==null?void 0:Ke.classNames)===null||mn===void 0?void 0:mn.indicator,{[`${Le}-status-dot`]:ai,[`${Le}-status-${Ai}`]:!!Ai,[`${Le}-color-${ht}`]:ho}),Be={};ht&&!ho&&(Be.color=ht,Be.background=ht);const ua=at()(Le,{[`${Le}-status`]:ai,[`${Le}-not-a-wrapper`]:!Yn,[`${Le}-rtl`]:Ie==="rtl"},hn,rt,Ke==null?void 0:Ke.className,(Zn=Ke==null?void 0:Ke.classNames)===null||Zn===void 0?void 0:Zn.root,Pt==null?void 0:Pt.root,dn);if(!Yn&&ai){const eo=Mr.color;return st(kt.createElement("span",Object.assign({},Ce,{className:ua,style:Object.assign(Object.assign(Object.assign({},_t==null?void 0:_t.root),(Qn=Ke==null?void 0:Ke.styles)===null||Qn===void 0?void 0:Qn.root),Mr)}),kt.createElement("span",{className:Tr,style:Object.assign(Object.assign(Object.assign({},_t==null?void 0:_t.indicator),(nn=Ke==null?void 0:Ke.styles)===null||nn===void 0?void 0:nn.indicator),Be)}),mt&&kt.createElement("span",{style:{color:eo},className:`${Le}-status-text`},mt)))}return st(kt.createElement("span",Object.assign({ref:He},Ce,{className:ua,style:Object.assign(Object.assign({},(gn=Ke==null?void 0:Ke.styles)===null||gn===void 0?void 0:gn.root),_t==null?void 0:_t.root)}),Yn,kt.createElement(Lt.default,{visible:!Yi,motionName:`${Le}-zoom`,motionAppear:!1,motionDeadline:1e3},eo=>{let{className:Wn,ref:Oi}=eo;var Ri,ci;const Un=Ee("scroll-number",yi),Zt=bo.current,ln=at()(Pt==null?void 0:Pt.indicator,(Ri=Ke==null?void 0:Ke.classNames)===null||Ri===void 0?void 0:Ri.indicator,{[`${Le}-dot`]:Zt,[`${Le}-count`]:!Zt,[`${Le}-count-sm`]:kn==="small",[`${Le}-multiple-words`]:!Zt&&jo&&jo.toString().length>1,[`${Le}-status-${Ai}`]:!!Ai,[`${Le}-color-${ht}`]:ho});let Tt=Object.assign(Object.assign(Object.assign({},_t==null?void 0:_t.indicator),(ci=Ke==null?void 0:Ke.styles)===null||ci===void 0?void 0:ci.indicator),Mr);return ht&&!ho&&(Tt=Tt||{},Tt.background=ht),kt.createElement(yn,{prefixCls:Un,show:!Yi,motionClassName:Wn,className:ln,count:jo,title:_o,style:Tt,key:"scrollNumber",ref:Oi},yo)}),Bo))},Nn=kt.forwardRef(wi);Nn.Ribbon=yt;var ui=Nn},19842:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return eo}});var ce=we(26390),at=we(59301),Lt=we(16537),kt=we(50023),Dt=we(53878),jt=we(92310),Ge=we.n(jt),Mt=we(5891),Ct=we(29043),Et=we(19149),xt=we(77861),Gt=we(17115),Ut=we(90782),Re=we(8107),te=we(35788),ne=at.createContext(null),de=ne,le=we(80665),pe=we(80962),xe=we(57259),Ae="__rc_cascader_search_mark__",ke=function(Oi,Ri,ci){var Un=ci.label;return Ri.some(function(Zt){return String(Zt[Un]).toLowerCase().includes(Oi.toLowerCase())})},Me=function(Oi,Ri,ci,Un){return Ri.map(function(Zt){return Zt[Un.label]}).join(" / ")},ot=function(Wn,Oi,Ri,ci,Un,Zt){var ln=Un.filter,Tt=ln===void 0?ke:ln,An=Un.render,Hi=An===void 0?Me:An,gr=Un.limit,sr=gr===void 0?50:gr,Rn=Un.sort;return at.useMemo(function(){var Ti=[];if(!Wn)return[];function qr(_r,di){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_r.forEach(function(Ii){if(!(!Rn&&sr!==!1&&sr>0&&Ti.length>=sr)){var xn=[].concat((0,ce.Z)(di),[Ii]),jn=Ii[Ri.children],Ft=Ot||Ii.disabled;if((!jn||jn.length===0||Zt)&&Tt(Wn,xn,{label:Ri.label})){var bt;Ti.push((0,xe.Z)((0,xe.Z)({},Ii),{},(bt={disabled:Ft},(0,pe.Z)(bt,Ri.label,Hi(Wn,xn,ci,Ri)),(0,pe.Z)(bt,Ae,xn),(0,pe.Z)(bt,Ri.children,void 0),bt)))}jn&&qr(Ii[Ri.children],xn,Ft)}})}return qr(Oi,[]),Rn&&Ti.sort(function(_r,di){return Rn(_r[Ae],di[Ae],Wn,Ri)}),sr!==!1&&sr>0?Ti.slice(0,sr):Ti},[Wn,Oi,Ri,ci,Hi,Zt,Tt,Rn,sr])},dt="__RC_CASCADER_SPLIT__",yt="SHOW_PARENT",vt="SHOW_CHILD";function Kt(Wn){return Wn.join(dt)}function wt(Wn){return Wn.map(Kt)}function It(Wn){return Wn.split(dt)}function Yt(Wn){var Oi=Wn||{},Ri=Oi.label,ci=Oi.value,Un=Oi.children,Zt=ci||"value";return{label:Ri||"label",value:Zt,key:Zt,children:Un||"children"}}function yn(Wn,Oi){var Ri,ci;return(Ri=Wn.isLeaf)!==null&&Ri!==void 0?Ri:!((ci=Wn[Oi.children])!==null&&ci!==void 0&&ci.length)}function Mi(Wn){var Oi=Wn.parentElement;if(Oi){var Ri=Wn.offsetTop-Oi.offsetTop;Ri-Oi.scrollTop<0?Oi.scrollTo({top:Ri}):Ri+Wn.offsetHeight-Oi.scrollTop>Oi.offsetHeight&&Oi.scrollTo({top:Ri+Wn.offsetHeight-Oi.offsetHeight})}}function wi(Wn,Oi){return Wn.map(function(Ri){var ci;return(ci=Ri[Ae])===null||ci===void 0?void 0:ci.map(function(Un){return Un[Oi.value]})})}function Nn(Wn,Oi,Ri){var ci=new Set(Wn),Un=Oi();return Wn.filter(function(Zt){var ln=Un[Zt],Tt=ln?ln.parent:null,An=ln?ln.children:null;return ln&&ln.node.disabled?!0:Ri===vt?!(An&&An.some(function(Hi){return Hi.key&&ci.has(Hi.key)})):!(Tt&&!Tt.node.disabled&&ci.has(Tt.key))})}function ui(Wn,Oi,Ri){for(var ci=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Un=Oi,Zt=[],ln=function(){var Hi,gr,sr,Rn=Wn[Tt],Ti=(Hi=Un)===null||Hi===void 0?void 0:Hi.findIndex(function(_r){var di=_r[Ri.value];return ci?String(di)===String(Rn):di===Rn}),qr=Ti!==-1?(gr=Un)===null||gr===void 0?void 0:gr[Ti]:null;Zt.push({value:(sr=qr==null?void 0:qr[Ri.value])!==null&&sr!==void 0?sr:Rn,index:Ti,option:qr}),Un=qr==null?void 0:qr[Ri.children]},Tt=0;Tt<Wn.length;Tt+=1)ln();return Zt}var tt=function(Wn,Oi,Ri,ci,Un){return at.useMemo(function(){var Zt=Un||function(ln){var Tt=ci?ln.slice(-1):ln,An=" / ";return Tt.every(function(Hi){return["string","number"].includes((0,le.Z)(Hi))})?Tt.join(An):Tt.reduce(function(Hi,gr,sr){var Rn=at.isValidElement(gr)?at.cloneElement(gr,{key:sr}):gr;return sr===0?[Rn]:[].concat((0,ce.Z)(Hi),[An,Rn])},[])};return Wn.map(function(ln){var Tt,An,Hi=ui(ln,Oi,Ri),gr=Zt(Hi.map(function(Rn){var Ti,qr=Rn.option,_r=Rn.value;return(Ti=qr==null?void 0:qr[Ri.label])!==null&&Ti!==void 0?Ti:_r}),Hi.map(function(Rn){var Ti=Rn.option;return Ti})),sr=Kt(ln);return{label:gr,value:sr,key:sr,valueCells:ln,disabled:(Tt=Hi[Hi.length-1])===null||Tt===void 0||(An=Tt.option)===null||An===void 0?void 0:An.disabled}})},[Wn,Oi,Ri,Un,ci])},He=we(71430),mn=function(Wn,Oi){var Ri=at.useRef({options:null,info:null}),ci=at.useCallback(function(){return Ri.current.options!==Wn&&(Ri.current.options=Wn,Ri.current.info=(0,He.I8)(Wn,{fieldNames:Oi,initWrapper:function(Zt){return(0,xe.Z)((0,xe.Z)({},Zt),{},{pathKeyEntities:{}})},processEntity:function(Zt,ln){var Tt=Zt.nodes.map(function(An){return An[Oi.value]}).join(dt);ln.pathKeyEntities[Tt]=Zt,Zt.key=Tt}})),Ri.current.info.pathKeyEntities},[Oi,Wn]);return ci},Zn=function(Wn,Oi){return at.useCallback(function(Ri){var ci=[],Un=[];return Ri.forEach(function(Zt){var ln=ui(Zt,Wn,Oi);ln.every(function(Tt){return Tt.option})?Un.push(Zt):ci.push(Zt)}),[Un,ci]},[Wn,Oi])},Qn=we(51395);function nn(Wn){return at.useMemo(function(){if(!Wn)return[!1,{}];var Oi={matchInputWidth:!0,limit:50};return Wn&&(0,le.Z)(Wn)==="object"&&(Oi=(0,xe.Z)((0,xe.Z)({},Oi),Wn)),Oi.limit<=0&&delete Oi.limit,[!0,Oi]},[Wn])}var gn=at.memo(function(Wn){var Oi=Wn.children;return Oi},function(Wn,Oi){return!Oi.open}),Ln=gn;function yi(Wn){var Oi,Ri=Wn.prefixCls,ci=Wn.checked,Un=Wn.halfChecked,Zt=Wn.disabled,ln=Wn.onClick,Tt=Wn.disableCheckbox,An=at.useContext(de),Hi=An.checkable,gr=typeof Hi!="boolean"?Hi:null;return at.createElement("span",{className:Ge()("".concat(Ri),(Oi={},(0,pe.Z)(Oi,"".concat(Ri,"-checked"),ci),(0,pe.Z)(Oi,"".concat(Ri,"-indeterminate"),!ci&&Un),(0,pe.Z)(Oi,"".concat(Ri,"-disabled"),Zt||Tt),Oi)),onClick:ln},gr)}var Yn="__cascader_fix_label__";function Ai(Wn){var Oi=Wn.prefixCls,Ri=Wn.multiple,ci=Wn.options,Un=Wn.activeValue,Zt=Wn.prevValuePath,ln=Wn.onToggleOpen,Tt=Wn.onSelect,An=Wn.onActive,Hi=Wn.checkedSet,gr=Wn.halfCheckedSet,sr=Wn.loadingKeys,Rn=Wn.isSelectable,Ti=Wn.searchValue,qr="".concat(Oi,"-menu"),_r="".concat(Oi,"-menu-item"),di=at.useContext(de),Ot=di.fieldNames,Ii=di.changeOnSelect,xn=di.expandTrigger,jn=di.expandIcon,Ft=di.loadingIcon,bt=di.dropdownMenuColumnStyle,rn=xn==="hover",Sr=at.useMemo(function(){return ci.map(function(ki){var Ni,qn=ki.disabled,Wi=ki.disableCheckbox,Hr=ki[Ae],no=(Ni=ki[Yn])!==null&&Ni!==void 0?Ni:ki[Ot.label],vi=ki[Ot.value],Ji=yn(ki,Ot),Aa=Hr?Hr.map(function(pn){return pn[Ot.value]}):[].concat((0,ce.Z)(Zt),[vi]),uo=Kt(Aa),Ir=sr.includes(uo),Bt=Hi.has(uo),Ht=gr.has(uo);return{disabled:qn,label:no,value:vi,isLeaf:Ji,isLoading:Ir,checked:Bt,halfChecked:Ht,option:ki,disableCheckbox:Wi,fullPath:Aa,fullPathKey:uo}})},[ci,Hi,Ot,gr,sr,Zt]);return at.createElement("ul",{className:qr,role:"menu"},Sr.map(function(ki){var Ni,qn=ki.disabled,Wi=ki.label,Hr=ki.value,no=ki.isLeaf,vi=ki.isLoading,Ji=ki.checked,Aa=ki.halfChecked,uo=ki.option,Ir=ki.fullPath,Bt=ki.fullPathKey,Ht=ki.disableCheckbox,pn=function(){if(!(qn||Ti)){var cr=(0,ce.Z)(Ir);rn&&no&&cr.pop(),An(cr)}},zt=function(){Rn(uo)&&Tt(Ir,no)},li;return typeof uo.title=="string"?li=uo.title:typeof Wi=="string"&&(li=Wi),at.createElement("li",{key:Bt,className:Ge()(_r,(Ni={},(0,pe.Z)(Ni,"".concat(_r,"-expand"),!no),(0,pe.Z)(Ni,"".concat(_r,"-active"),Un===Hr||Un===Bt),(0,pe.Z)(Ni,"".concat(_r,"-disabled"),qn),(0,pe.Z)(Ni,"".concat(_r,"-loading"),vi),Ni)),style:bt,role:"menuitemcheckbox",title:li,"aria-checked":Ji,"data-path-key":Bt,onClick:function(){pn(),!Ht&&(!Ri||no)&&zt()},onDoubleClick:function(){Ii&&ln(!1)},onMouseEnter:function(){rn&&pn()},onMouseDown:function(cr){cr.preventDefault()}},Ri&&at.createElement(yi,{prefixCls:"".concat(Oi,"-checkbox"),checked:Ji,halfChecked:Aa,disabled:qn||Ht,disableCheckbox:Ht,onClick:function(cr){Ht||(cr.stopPropagation(),zt())}}),at.createElement("div",{className:"".concat(_r,"-content")},Wi),!vi&&jn&&!no&&at.createElement("div",{className:"".concat(_r,"-expand-icon")},jn),vi&&Ft&&at.createElement("div",{className:"".concat(_r,"-loading-icon")},Ft))}))}var mt=function(){var Wn=(0,xt.lk)(),Oi=Wn.multiple,Ri=Wn.open,ci=at.useContext(de),Un=ci.values,Zt=at.useState([]),ln=(0,Ct.Z)(Zt,2),Tt=ln[0],An=ln[1];return at.useEffect(function(){if(Ri&&!Oi){var Hi=Un[0];An(Hi||[])}},[Ri]),[Tt,An]},ht=we(85108),un=function(Wn,Oi,Ri,ci,Un,Zt){var ln=(0,xt.lk)(),Tt=ln.direction,An=ln.searchValue,Hi=ln.toggleOpen,gr=ln.open,sr=Tt==="rtl",Rn=at.useMemo(function(){for(var bt=-1,rn=Oi,Sr=[],ki=[],Ni=ci.length,qn=wi(Oi,Ri),Wi=function(uo){var Ir=rn.findIndex(function(Bt,Ht){return(qn[Ht]?Kt(qn[Ht]):Bt[Ri.value])===ci[uo]});if(Ir===-1)return"break";bt=Ir,Sr.push(bt),ki.push(ci[uo]),rn=rn[bt][Ri.children]},Hr=0;Hr<Ni&&rn;Hr+=1){var no=Wi(Hr);if(no==="break")break}for(var vi=Oi,Ji=0;Ji<Sr.length-1;Ji+=1)vi=vi[Sr[Ji]][Ri.children];return[ki,bt,vi,qn]},[ci,Ri,Oi]),Ti=(0,Ct.Z)(Rn,4),qr=Ti[0],_r=Ti[1],di=Ti[2],Ot=Ti[3],Ii=function(rn){Un(rn)},xn=function(rn){var Sr=di.length,ki=_r;ki===-1&&rn<0&&(ki=Sr);for(var Ni=0;Ni<Sr;Ni+=1){ki=(ki+rn+Sr)%Sr;var qn=di[ki];if(qn&&!qn.disabled){var Wi=qr.slice(0,-1).concat(Ot[ki]?Kt(Ot[ki]):qn[Ri.value]);Ii(Wi);return}}},jn=function(){if(qr.length>1){var rn=qr.slice(0,-1);Ii(rn)}else Hi(!1)},Ft=function(){var rn,Sr=((rn=di[_r])===null||rn===void 0?void 0:rn[Ri.children])||[],ki=Sr.find(function(qn){return!qn.disabled});if(ki){var Ni=[].concat((0,ce.Z)(qr),[ki[Ri.value]]);Ii(Ni)}};at.useImperativeHandle(Wn,function(){return{onKeyDown:function(rn){var Sr=rn.which;switch(Sr){case ht.Z.UP:case ht.Z.DOWN:{var ki=0;Sr===ht.Z.UP?ki=-1:Sr===ht.Z.DOWN&&(ki=1),ki!==0&&xn(ki);break}case ht.Z.LEFT:{if(An)break;sr?Ft():jn();break}case ht.Z.RIGHT:{if(An)break;sr?jn():Ft();break}case ht.Z.BACKSPACE:{An||jn();break}case ht.Z.ENTER:{if(qr.length){var Ni=di[_r],qn=(Ni==null?void 0:Ni[Ae])||[];qn.length?Zt(qn.map(function(Wi){return Wi[Ri.value]}),qn[qn.length-1]):Zt(qr,di[_r])}break}case ht.Z.ESC:Hi(!1),gr&&rn.stopPropagation()}},onKeyUp:function(){}}})},Sn=at.forwardRef(function(Wn,Oi){var Ri,ci,Un,Zt,ln=(0,xt.lk)(),Tt=ln.prefixCls,An=ln.multiple,Hi=ln.searchValue,gr=ln.toggleOpen,sr=ln.notFoundContent,Rn=ln.direction,Ti=ln.open,qr=at.useRef(),_r=Rn==="rtl",di=at.useContext(de),Ot=di.options,Ii=di.values,xn=di.halfValues,jn=di.fieldNames,Ft=di.changeOnSelect,bt=di.onSelect,rn=di.searchOptions,Sr=di.dropdownPrefixCls,ki=di.loadData,Ni=di.expandTrigger,qn=Sr||Tt,Wi=at.useState([]),Hr=(0,Ct.Z)(Wi,2),no=Hr[0],vi=Hr[1],Ji=function(ur){if(!(!ki||Hi)){var ko=ui(ur,Ot,jn),Zr=ko.map(function(ro){var Fn=ro.option;return Fn}),Gi=Zr[Zr.length-1];if(Gi&&!yn(Gi,jn)){var Er=Kt(ur);vi(function(ro){return[].concat((0,ce.Z)(ro),[Er])}),ki(Zr)}}};at.useEffect(function(){no.length&&no.forEach(function(Or){var ur=It(Or),ko=ui(ur,Ot,jn,!0).map(function(Gi){var Er=Gi.option;return Er}),Zr=ko[ko.length-1];(!Zr||Zr[jn.children]||yn(Zr,jn))&&vi(function(Gi){return Gi.filter(function(Er){return Er!==Or})})})},[Ot,no,jn]);var Aa=at.useMemo(function(){return new Set(wt(Ii))},[Ii]),uo=at.useMemo(function(){return new Set(wt(xn))},[xn]),Ir=mt(),Bt=(0,Ct.Z)(Ir,2),Ht=Bt[0],pn=Bt[1],zt=function(ur){pn(ur),Ji(ur)},li=function(ur){var ko=ur.disabled,Zr=yn(ur,jn);return!ko&&(Zr||Ft||An)},ir=function(ur,ko){var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;bt(ur),!An&&(ko||Ft&&(Ni==="hover"||Zr))&&gr(!1)},cr=at.useMemo(function(){return Hi?rn:Ot},[Hi,rn,Ot]),ri=at.useMemo(function(){for(var Or=[{options:cr}],ur=cr,ko=wi(ur,jn),Zr=function(){var Fn=Ht[Gi],ti=ur.find(function(fo,So){return(ko[So]?Kt(ko[So]):fo[jn.value])===Fn}),Ue=ti==null?void 0:ti[jn.children];if(!(Ue!=null&&Ue.length))return"break";ur=Ue,Or.push({options:Ue})},Gi=0;Gi<Ht.length;Gi+=1){var Er=Zr();if(Er==="break")break}return Or},[cr,Ht,jn]),Ei=function(ur,ko){li(ko)&&ir(ur,yn(ko,jn),!0)};un(Oi,cr,jn,Ht,zt,Ei),at.useEffect(function(){for(var Or=0;Or<Ht.length;Or+=1){var ur,ko=Ht.slice(0,Or+1),Zr=Kt(ko),Gi=(ur=qr.current)===null||ur===void 0?void 0:ur.querySelector('li[data-path-key="'.concat(Zr.replace(/\\{0,2}"/g,'\\"'),'"]'));Gi&&Mi(Gi)}},[Ht]);var Xn=!((Ri=ri[0])!==null&&Ri!==void 0&&(ci=Ri.options)!==null&&ci!==void 0&&ci.length),tn=[(Un={},(0,pe.Z)(Un,jn.value,"__EMPTY__"),(0,pe.Z)(Un,Yn,sr),(0,pe.Z)(Un,"disabled",!0),Un)],Jr=(0,xe.Z)((0,xe.Z)({},Wn),{},{multiple:!Xn&&An,onSelect:ir,onActive:zt,onToggleOpen:gr,checkedSet:Aa,halfCheckedSet:uo,loadingKeys:no,isSelectable:li}),Tn=Xn?[{options:tn}]:ri,zr=Tn.map(function(Or,ur){var ko=Ht.slice(0,ur),Zr=Ht[ur];return at.createElement(Ai,(0,Mt.Z)({key:ur},Jr,{searchValue:Hi,prefixCls:qn,options:Or.options,prevValuePath:ko,activeValue:Zr}))});return at.createElement(Ln,{open:Ti},at.createElement("div",{className:Ge()("".concat(qn,"-menus"),(Zt={},(0,pe.Z)(Zt,"".concat(qn,"-menu-empty"),Xn),(0,pe.Z)(Zt,"".concat(qn,"-rtl"),_r),Zt)),ref:qr},zr))}),Dn=Sn;function kn(Wn){var Oi=Wn.onPopupVisibleChange,Ri=Wn.popupVisible,ci=Wn.popupClassName,Un=Wn.popupPlacement;warning(!Oi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ri===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(ci===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Un===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ii(Wn,Oi){if(Wn){var Ri=function ci(Un){for(var Zt=0;Zt<Un.length;Zt++){var ln=Un[Zt];if(ln[Oi==null?void 0:Oi.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(ln[Oi==null?void 0:Oi.children])&&ci(ln[Oi==null?void 0:Oi.children]))return!0}};Ri(Wn)}}var Hn=null,Di=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function hn(Wn){return Array.isArray(Wn)&&Array.isArray(Wn[0])}function rt(Wn){return Wn?hn(Wn)?Wn:(Wn.length===0?[]:[Wn]).map(function(Oi){return Array.isArray(Oi)?Oi:[Oi]}):[]}var Pt=at.forwardRef(function(Wn,Oi){var Ri=Wn.id,ci=Wn.prefixCls,Un=ci===void 0?"rc-cascader":ci,Zt=Wn.fieldNames,ln=Wn.defaultValue,Tt=Wn.value,An=Wn.changeOnSelect,Hi=Wn.onChange,gr=Wn.displayRender,sr=Wn.checkable,Rn=Wn.autoClearSearchValue,Ti=Rn===void 0?!0:Rn,qr=Wn.searchValue,_r=Wn.onSearch,di=Wn.showSearch,Ot=Wn.expandTrigger,Ii=Wn.options,xn=Wn.dropdownPrefixCls,jn=Wn.loadData,Ft=Wn.popupVisible,bt=Wn.open,rn=Wn.popupClassName,Sr=Wn.dropdownClassName,ki=Wn.dropdownMenuColumnStyle,Ni=Wn.popupPlacement,qn=Wn.placement,Wi=Wn.onDropdownVisibleChange,Hr=Wn.onPopupVisibleChange,no=Wn.expandIcon,vi=no===void 0?">":no,Ji=Wn.loadingIcon,Aa=Wn.children,uo=Wn.dropdownMatchSelectWidth,Ir=uo===void 0?!1:uo,Bt=Wn.showCheckedStrategy,Ht=Bt===void 0?yt:Bt,pn=(0,Et.Z)(Wn,Di),zt=(0,Gt.ZP)(Ri),li=!!sr,ir=(0,te.Z)(ln,{value:Tt,postState:rt}),cr=(0,Ct.Z)(ir,2),ri=cr[0],Ei=cr[1],Xn=at.useMemo(function(){return Yt(Zt)},[JSON.stringify(Zt)]),tn=at.useMemo(function(){return Ii||[]},[Ii]),Jr=mn(tn,Xn),Tn=at.useCallback(function(Ta){var sa=Jr();return Ta.map(function(Oa){var nl=sa[Oa].nodes;return nl.map(function(Qt){return Qt[Xn.value]})})},[Jr,Xn]),zr=(0,te.Z)("",{value:qr,postState:function(sa){return sa||""}}),Or=(0,Ct.Z)(zr,2),ur=Or[0],ko=Or[1],Zr=function(sa,Oa){ko(sa),Oa.source!=="blur"&&_r&&_r(sa)},Gi=nn(di),Er=(0,Ct.Z)(Gi,2),ro=Er[0],Fn=Er[1],ti=ot(ur,tn,Xn,xn||Un,Fn,An),Ue=Zn(tn,Xn),fo=at.useMemo(function(){var Ta=Ue(ri),sa=(0,Ct.Z)(Ta,2),Oa=sa[0],nl=sa[1];if(!li||!ri.length)return[Oa,[],nl];var Qt=wt(Oa),Su=Jr(),Ia=(0,Ut.S)(Qt,!0,Su),qt=Ia.checkedKeys,ys=Ia.halfCheckedKeys;return[Tn(qt),Tn(ys),nl]},[li,ri,Jr,Tn,Ue]),So=(0,Ct.Z)(fo,3),rr=So[0],Xi=So[1],Ui=So[2],qo=at.useMemo(function(){var Ta=wt(rr),sa=Nn(Ta,Jr,Ht);return[].concat((0,ce.Z)(Ui),(0,ce.Z)(Tn(sa)))},[rr,Jr,Tn,Ui,Ht]),gs=tt(qo,tn,Xn,li,gr),Ps=(0,Re.Z)(function(Ta){if(Ei(Ta),Hi){var sa=rt(Ta),Oa=sa.map(function(Su){return ui(Su,tn,Xn).map(function(Ia){return Ia.option})}),nl=li?sa:sa[0],Qt=li?Oa:Oa[0];Hi(nl,Qt)}}),Ro=(0,Re.Z)(function(Ta){if((!li||Ti)&&ko(""),!li)Ps(Ta);else{var sa=Kt(Ta),Oa=wt(rr),nl=wt(Xi),Qt=Oa.includes(sa),Su=Ui.some(function(il){return Kt(il)===sa}),Ia=rr,qt=Ui;if(Su&&!Qt)qt=Ui.filter(function(il){return Kt(il)!==sa});else{var ys=Qt?Oa.filter(function(il){return il!==sa}):[].concat((0,ce.Z)(Oa),[sa]),Tl=Jr(),Ol;if(Qt){var ws=(0,Ut.S)(ys,{checked:!1,halfCheckedKeys:nl},Tl);Ol=ws.checkedKeys}else{var Ss=(0,Ut.S)(ys,!0,Tl);Ol=Ss.checkedKeys}var eu=Nn(Ol,Jr,Ht);Ia=Tn(eu)}Ps([].concat((0,ce.Z)(qt),(0,ce.Z)(Ia)))}}),Ho=function(sa,Oa){if(Oa.type==="clear"){Ps([]);return}var nl=Oa.values[0],Qt=nl.valueCells;Ro(Qt)},Rr=bt!==void 0?bt:Ft,yr=Sr||rn,Eo=qn||Ni,oi=function(sa){Wi==null||Wi(sa),Hr==null||Hr(sa)},Na=at.useMemo(function(){return{options:tn,fieldNames:Xn,values:rr,halfValues:Xi,changeOnSelect:An,onSelect:Ro,checkable:sr,searchOptions:ti,dropdownPrefixCls:xn,loadData:jn,expandTrigger:Ot,expandIcon:vi,loadingIcon:Ji,dropdownMenuColumnStyle:ki}},[tn,Xn,rr,Xi,An,Ro,sr,ti,xn,jn,Ot,vi,Ji,ki]),qa=!(ur?ti:tn).length,tl=ur&&Fn.matchInputWidth||qa?{}:{minWidth:"auto"};return at.createElement(de.Provider,{value:Na},at.createElement(xt.Ac,(0,Mt.Z)({},pn,{ref:Oi,id:zt,prefixCls:Un,autoClearSearchValue:Ti,dropdownMatchSelectWidth:Ir,dropdownStyle:tl,displayValues:gs,onDisplayValuesChange:Ho,mode:li?"multiple":void 0,searchValue:ur,onSearch:Zr,showSearch:ro,OptionList:Dn,emptyOptions:qa,open:Rr,dropdownClassName:yr,placement:Eo,onDropdownVisibleChange:oi,getRawInputElement:function(){return Aa}})))});Pt.SHOW_PARENT=yt,Pt.SHOW_CHILD=vt;var _t=Pt,We=_t,Ce=we(64002),Ee=we(62892),Ie=we(53487),Ke=we(19080),Le=we(36355),st=we(93891),dn=we(1684),sn=we(19716),en=we(32441),Xt=we(14154),ai=we(58582),Bn=we(84443),In=we(66339),Yi=we(33234),fi=we(98447),ar=we(17313),io=we(74207),jo=we(83116);const bo=Wn=>{const{prefixCls:Oi,componentCls:Ri,antCls:ci}=Wn,Un=`${Ri}-menu-item`,Zt=`
|
|
&${Un}-expand ${Un}-expand-icon,
|
|
${Un}-loading-icon
|
|
`;return[{[Ri]:{width:Wn.controlWidth}},{[`${Ri}-dropdown`]:[(0,fi.C2)(`${Oi}-checkbox`,Wn),{[`&${ci}-select-dropdown`]:{padding:0}},{[Ri]:{"&-checkbox":{top:0,marginInlineEnd:Wn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ri}-menu-empty`]:{[`${Ri}-menu`]:{width:"100%",height:"auto",[Un]:{color:Wn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Wn.controlItemWidth,height:Wn.dropdownHeight,margin:0,padding:Wn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Wn.lineWidth}px ${Wn.lineType} ${Wn.colorSplit}`},"&-item":Object.assign(Object.assign({},ar.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Wn.optionPadding,lineHeight:Wn.lineHeight,cursor:"pointer",transition:`all ${Wn.motionDurationMid}`,borderRadius:Wn.borderRadiusSM,"&:hover":{background:Wn.controlItemBgHover},"&-disabled":{color:Wn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Zt]:{color:Wn.colorTextDisabled}},[`&-active:not(${Un}-disabled)`]:{"&, &:hover":{fontWeight:Wn.optionSelectedFontWeight,backgroundColor:Wn.optionSelectedBg}},"&-content":{flex:"auto"},[Zt]:{marginInlineStart:Wn.paddingXXS,color:Wn.colorTextDescription,fontSize:Wn.fontSizeIcon},"&-keyword":{color:Wn.colorHighlight}})}}}]},{[`${Ri}-dropdown-rtl`]:{direction:"rtl"}},(0,io.c)(Wn)]};var Mr=(0,jo.Z)("Cascader",Wn=>[bo(Wn)],Wn=>{const Oi=Math.round((Wn.controlHeight-Wn.fontSize*Wn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Wn.controlItemBgActive,optionSelectedFontWeight:Wn.fontWeightStrong,optionPadding:`${Oi}px ${Wn.paddingSM}px`,menuPadding:Wn.paddingXXS}}),_o=function(Wn,Oi){var Ri={};for(var ci in Wn)Object.prototype.hasOwnProperty.call(Wn,ci)&&Oi.indexOf(ci)<0&&(Ri[ci]=Wn[ci]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Un=0,ci=Object.getOwnPropertySymbols(Wn);Un<ci.length;Un++)Oi.indexOf(ci[Un])<0&&Object.prototype.propertyIsEnumerable.call(Wn,ci[Un])&&(Ri[ci[Un]]=Wn[ci[Un]]);return Ri};const{SHOW_CHILD:Bo,SHOW_PARENT:yo}=We;function ho(Wn,Oi,Ri){const ci=Wn.toLowerCase().split(Oi).reduce((ln,Tt,An)=>An===0?[Tt]:[].concat((0,ce.Z)(ln),[Oi,Tt]),[]),Un=[];let Zt=0;return ci.forEach((ln,Tt)=>{const An=Zt+ln.length;let Hi=Wn.slice(Zt,An);Zt=An,Tt%2===1&&(Hi=at.createElement("span",{className:`${Ri}-menu-item-keyword`,key:`separator-${Tt}`},Hi)),Un.push(Hi)}),Un}const Tr=(Wn,Oi,Ri,ci)=>{const Un=[],Zt=Wn.toLowerCase();return Oi.forEach((ln,Tt)=>{Tt!==0&&Un.push(" / ");let An=ln[ci.label];const Hi=typeof An;(Hi==="string"||Hi==="number")&&(An=ho(String(An),Zt,Ri)),Un.push(An)}),Un},Be=at.forwardRef((Wn,Oi)=>{const{prefixCls:Ri,size:ci,disabled:Un,className:Zt,rootClassName:ln,multiple:Tt,bordered:An=!0,transitionName:Hi,choiceTransitionName:gr="",popupClassName:sr,dropdownClassName:Rn,expandIcon:Ti,placement:qr,showSearch:_r,allowClear:di=!0,notFoundContent:Ot,direction:Ii,getPopupContainer:xn,status:jn,showArrow:Ft,builtinPlacements:bt,style:rn}=Wn,Sr=_o(Wn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),ki=(0,Ce.Z)(Sr,["suffixIcon"]),{getPopupContainer:Ni,getPrefixCls:qn,renderEmpty:Wi,direction:Hr,popupOverflow:no,cascader:vi}=at.useContext(Le.E_),Ji=Ii||Hr,Aa=Ji==="rtl",{status:uo,hasFeedback:Ir,isFormItemInput:Bt,feedbackIcon:Ht}=at.useContext(en.aM),pn=(0,Ke.F)(uo,jn),zt=Ot||(Wi==null?void 0:Wi("Cascader"))||at.createElement(st.Z,{componentName:"Cascader"}),li=qn(),ir=qn("select",Ri),cr=qn("cascader",Ri),[ri,Ei]=(0,Xt.Z)(ir),[Xn]=Mr(cr),{compactSize:tn,compactItemClassnames:Jr}=(0,Yi.ri)(ir,Ii),Tn=Ge()(sr||Rn,`${cr}-dropdown`,{[`${cr}-dropdown-rtl`]:Ji==="rtl"},ln,Ei),zr=at.useMemo(()=>{if(!_r)return _r;let Ui={render:Tr};return typeof _r=="object"&&(Ui=Object.assign(Object.assign({},Ui),_r)),Ui},[_r]),Or=(0,sn.Z)(Ui=>{var qo;return(qo=ci!=null?ci:tn)!==null&&qo!==void 0?qo:Ui}),ur=at.useContext(dn.Z),ko=Un!=null?Un:ur;let Zr=Ti;Ti||(Zr=Aa?at.createElement(Lt.Z,null):at.createElement(Dt.Z,null));const Gi=at.createElement("span",{className:`${ir}-menu-item-loading-icon`},at.createElement(kt.Z,{spin:!0})),Er=at.useMemo(()=>Tt?at.createElement("span",{className:`${cr}-checkbox-inner`}):!1,[Tt]),ro=(0,Bn.Z)(Wn.suffixIcon,Ft),{suffixIcon:Fn,removeIcon:ti,clearIcon:Ue}=(0,In.Z)(Object.assign(Object.assign({},Wn),{hasFeedback:Ir,feedbackIcon:Ht,showSuffixIcon:ro,multiple:Tt,prefixCls:ir,componentName:"Cascader"})),fo=at.useMemo(()=>qr!==void 0?qr:Aa?"bottomRight":"bottomLeft",[qr,Aa]),So=(0,ai.Z)(bt,no),rr=di===!0?{clearIcon:Ue}:di,Xi=at.createElement(We,Object.assign({prefixCls:ir,className:Ge()(!Ri&&cr,{[`${ir}-lg`]:Or==="large",[`${ir}-sm`]:Or==="small",[`${ir}-rtl`]:Aa,[`${ir}-borderless`]:!An,[`${ir}-in-form-item`]:Bt},(0,Ke.Z)(ir,pn,Ir),Jr,vi==null?void 0:vi.className,Zt,ln,Ei),disabled:ko,style:Object.assign(Object.assign({},vi==null?void 0:vi.style),rn)},ki,{builtinPlacements:So,direction:Ji,placement:fo,notFoundContent:zt,allowClear:rr,showSearch:zr,expandIcon:Zr,suffixIcon:Fn,removeIcon:ti,loadingIcon:Gi,checkable:Er,dropdownClassName:Tn,dropdownPrefixCls:Ri||cr,choiceTransitionName:(0,Ee.m)(li,"",gr),transitionName:(0,Ee.m)(li,"slide-up",Hi),getPopupContainer:xn||Ni,ref:Oi}));return Xn(ri(Xi))}),ua=(0,Ie.Z)(Be);Be.SHOW_PARENT=yo,Be.SHOW_CHILD=Bo,Be._InternalPanelDoNotUseOrYouWillBeFired=ua;var eo=Be},36381:function($t,zn,we){"use strict";we.d(zn,{default:function(){return un}});var ce=we(53878),at=we(92310),Lt=we.n(at),kt=we(5891),Dt=we(26390),jt=we(29043),Ge=we(80665),Mt=we(35788),Ct=we(51395),Et=we(59301),xt=we(19149),Gt=we(38298),Ut=we(80962),Re=we(43469),te=we(85108),ne=Et.forwardRef(function(Sn,Dn){var kn=Sn.prefixCls,ii=Sn.forceRender,Hn=Sn.className,Di=Sn.style,hn=Sn.children,rt=Sn.isActive,Pt=Sn.role,_t=Et.useState(rt||ii),We=(0,jt.Z)(_t,2),Ce=We[0],Ee=We[1];return Et.useEffect(function(){(ii||rt)&&Ee(!0)},[ii,rt]),Ce?Et.createElement("div",{ref:Dn,className:Lt()("".concat(kn,"-content"),(0,Ut.Z)((0,Ut.Z)({},"".concat(kn,"-content-active"),rt),"".concat(kn,"-content-inactive"),!rt),Hn),style:Di,role:Pt},Et.createElement("div",{className:"".concat(kn,"-content-box")},hn)):null});ne.displayName="PanelContent";var de=ne,le=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],pe=Et.forwardRef(function(Sn,Dn){var kn=Sn.showArrow,ii=kn===void 0?!0:kn,Hn=Sn.headerClass,Di=Sn.isActive,hn=Sn.onItemClick,rt=Sn.forceRender,Pt=Sn.className,_t=Sn.prefixCls,We=Sn.collapsible,Ce=Sn.accordion,Ee=Sn.panelKey,Ie=Sn.extra,Ke=Sn.header,Le=Sn.expandIcon,st=Sn.openMotion,dn=Sn.destroyInactivePanel,sn=Sn.children,en=(0,xt.Z)(Sn,le),Xt=We==="disabled",ai=We==="header",Bn=We==="icon",In=Ie!=null&&typeof Ie!="boolean",Yi=function(){hn==null||hn(Ee)},fi=function(_o){(_o.key==="Enter"||_o.keyCode===te.Z.ENTER||_o.which===te.Z.ENTER)&&Yi()},ar=typeof Le=="function"?Le(Sn):Et.createElement("i",{className:"arrow"});ar&&(ar=Et.createElement("div",{className:"".concat(_t,"-expand-icon"),onClick:["header","icon"].includes(We)?Yi:void 0},ar));var io=Lt()((0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},"".concat(_t,"-item"),!0),"".concat(_t,"-item-active"),Di),"".concat(_t,"-item-disabled"),Xt),Pt),jo=Lt()(Hn,(0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},"".concat(_t,"-header"),!0),"".concat(_t,"-header-collapsible-only"),ai),"".concat(_t,"-icon-collapsible-only"),Bn)),bo={className:jo,"aria-expanded":Di,"aria-disabled":Xt,onKeyDown:fi};return!ai&&!Bn&&(bo.onClick=Yi,bo.role=Ce?"tab":"button",bo.tabIndex=Xt?-1:0),Et.createElement("div",(0,kt.Z)({},en,{ref:Dn,className:io}),Et.createElement("div",bo,ii&&ar,Et.createElement("span",{className:"".concat(_t,"-header-text"),onClick:We==="header"?Yi:void 0},Ke),In&&Et.createElement("div",{className:"".concat(_t,"-extra")},Ie)),Et.createElement(Re.default,(0,kt.Z)({visible:Di,leavedClassName:"".concat(_t,"-content-hidden")},st,{forceRender:rt,removeOnLeave:dn}),function(Mr,_o){var Bo=Mr.className,yo=Mr.style;return Et.createElement(de,{ref:_o,prefixCls:_t,className:Bo,style:yo,isActive:Di,forceRender:rt,role:Ce?"tabpanel":void 0},sn)}))}),xe=pe,Ae=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ke=function(Dn,kn){var ii=kn.prefixCls,Hn=kn.accordion,Di=kn.collapsible,hn=kn.destroyInactivePanel,rt=kn.onItemClick,Pt=kn.activeKey,_t=kn.openMotion,We=kn.expandIcon;return Dn.map(function(Ce,Ee){var Ie=Ce.children,Ke=Ce.label,Le=Ce.key,st=Ce.collapsible,dn=Ce.onItemClick,sn=Ce.destroyInactivePanel,en=(0,xt.Z)(Ce,Ae),Xt=String(Le!=null?Le:Ee),ai=st!=null?st:Di,Bn=sn!=null?sn:hn,In=function(ar){ai!=="disabled"&&(rt(ar),dn==null||dn(ar))},Yi=!1;return Hn?Yi=Pt[0]===Xt:Yi=Pt.indexOf(Xt)>-1,Et.createElement(xe,(0,kt.Z)({},en,{prefixCls:ii,key:Xt,panelKey:Xt,isActive:Yi,accordion:Hn,openMotion:_t,expandIcon:We,header:Ke,collapsible:ai,onItemClick:In,destroyInactivePanel:Bn}),Ie)})},Me=function(Dn,kn,ii){if(!Dn)return null;var Hn=ii.prefixCls,Di=ii.accordion,hn=ii.collapsible,rt=ii.destroyInactivePanel,Pt=ii.onItemClick,_t=ii.activeKey,We=ii.openMotion,Ce=ii.expandIcon,Ee=Dn.key||String(kn),Ie=Dn.props,Ke=Ie.header,Le=Ie.headerClass,st=Ie.destroyInactivePanel,dn=Ie.collapsible,sn=Ie.onItemClick,en=!1;Di?en=_t[0]===Ee:en=_t.indexOf(Ee)>-1;var Xt=dn!=null?dn:hn,ai=function(Yi){Xt!=="disabled"&&(Pt(Yi),sn==null||sn(Yi))},Bn={key:Ee,panelKey:Ee,header:Ke,headerClass:Le,isActive:en,prefixCls:Hn,destroyInactivePanel:st!=null?st:rt,openMotion:We,accordion:Di,children:Dn.props.children,onItemClick:ai,expandIcon:Ce,collapsible:Xt};return typeof Dn.type=="string"?Dn:(Object.keys(Bn).forEach(function(In){typeof Bn[In]=="undefined"&&delete Bn[In]}),Et.cloneElement(Dn,Bn))};function ot(Sn,Dn,kn){return Array.isArray(Sn)?ke(Sn,kn):(0,Gt.Z)(Dn).map(function(ii,Hn){return Me(ii,Hn,kn)})}var dt=ot,yt=we(36994);function vt(Sn){var Dn=Sn;if(!Array.isArray(Dn)){var kn=(0,Ge.Z)(Dn);Dn=kn==="number"||kn==="string"?[Dn]:[]}return Dn.map(function(ii){return String(ii)})}var Kt=Et.forwardRef(function(Sn,Dn){var kn=Sn.prefixCls,ii=kn===void 0?"rc-collapse":kn,Hn=Sn.destroyInactivePanel,Di=Hn===void 0?!1:Hn,hn=Sn.style,rt=Sn.accordion,Pt=Sn.className,_t=Sn.children,We=Sn.collapsible,Ce=Sn.openMotion,Ee=Sn.expandIcon,Ie=Sn.activeKey,Ke=Sn.defaultActiveKey,Le=Sn.onChange,st=Sn.items,dn=Lt()(ii,Pt),sn=(0,Mt.Z)([],{value:Ie,onChange:function(fi){return Le==null?void 0:Le(fi)},defaultValue:Ke,postState:vt}),en=(0,jt.Z)(sn,2),Xt=en[0],ai=en[1],Bn=function(fi){return ai(function(){if(rt)return Xt[0]===fi?[]:[fi];var ar=Xt.indexOf(fi),io=ar>-1;return io?Xt.filter(function(jo){return jo!==fi}):[].concat((0,Dt.Z)(Xt),[fi])})};(0,Ct.ZP)(!_t,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var In=dt(st,_t,{prefixCls:ii,accordion:rt,openMotion:Ce,expandIcon:Ee,collapsible:We,destroyInactivePanel:Di,onItemClick:Bn,activeKey:Xt});return Et.createElement("div",(0,kt.Z)({ref:Dn,className:dn,style:hn,role:rt?"tablist":void 0},(0,yt.Z)(Sn,{aria:!0,data:!0})),In)}),wt=Object.assign(Kt,{Panel:xe}),It=wt,Yt=wt.Panel,yn=we(64002),Mi=we(62892),wi=we(92343),Nn=we(36355),ui=we(19716),He=Et.forwardRef((Sn,Dn)=>{const{getPrefixCls:kn}=Et.useContext(Nn.E_),{prefixCls:ii,className:Hn,showArrow:Di=!0}=Sn,hn=kn("collapse",ii),rt=Lt()({[`${hn}-no-arrow`]:!Di},Hn);return Et.createElement(It.Panel,Object.assign({ref:Dn},Sn,{prefixCls:hn,className:rt}))}),mn=we(17313),Zn=we(8378),Qn=we(83116),nn=we(37613);const gn=Sn=>{const{componentCls:Dn,contentBg:kn,padding:ii,headerBg:Hn,headerPadding:Di,collapseHeaderPaddingSM:hn,collapseHeaderPaddingLG:rt,collapsePanelBorderRadius:Pt,lineWidth:_t,lineType:We,colorBorder:Ce,colorText:Ee,colorTextHeading:Ie,colorTextDisabled:Ke,fontSize:Le,fontSizeLG:st,lineHeight:dn,marginSM:sn,paddingSM:en,paddingLG:Xt,paddingXS:ai,motionDurationSlow:Bn,fontSizeIcon:In,contentPadding:Yi}=Sn,fi=`${_t}px ${We} ${Ce}`;return{[Dn]:Object.assign(Object.assign({},(0,mn.Wf)(Sn)),{backgroundColor:Hn,border:fi,borderBottom:0,borderRadius:`${Pt}px`,"&-rtl":{direction:"rtl"},[`& > ${Dn}-item`]:{borderBottom:fi,"&:last-child":{[`
|
|
&,
|
|
& > ${Dn}-header`]:{borderRadius:`0 0 ${Pt}px ${Pt}px`}},[`> ${Dn}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Di,color:Ie,lineHeight:dn,cursor:"pointer",transition:`all ${Bn}, visibility 0s`,[`> ${Dn}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Dn}-expand-icon`]:{height:Le*dn,display:"flex",alignItems:"center",paddingInlineEnd:sn},[`${Dn}-arrow`]:Object.assign(Object.assign({},(0,mn.Ro)()),{fontSize:In,svg:{transition:`transform ${Bn}`}}),[`${Dn}-header-text`]:{marginInlineEnd:"auto"}},[`${Dn}-header-collapsible-only`]:{cursor:"default",[`${Dn}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Dn}-icon-collapsible-only`]:{cursor:"default",[`${Dn}-expand-icon`]:{cursor:"pointer"}}},[`${Dn}-content`]:{color:Ee,backgroundColor:kn,borderTop:fi,[`& > ${Dn}-content-box`]:{padding:Yi},"&-hidden":{display:"none"}},"&-small":{[`> ${Dn}-item`]:{[`> ${Dn}-header`]:{padding:hn,paddingInlineStart:ai,[`> ${Dn}-expand-icon`]:{marginInlineStart:en-ai}},[`> ${Dn}-content > ${Dn}-content-box`]:{padding:en}}},"&-large":{[`> ${Dn}-item`]:{fontSize:st,[`> ${Dn}-header`]:{padding:rt,paddingInlineStart:ii,[`> ${Dn}-expand-icon`]:{height:st*dn,marginInlineStart:Xt-ii}},[`> ${Dn}-content > ${Dn}-content-box`]:{padding:Xt}}},[`${Dn}-item:last-child`]:{[`> ${Dn}-content`]:{borderRadius:`0 0 ${Pt}px ${Pt}px`}},[`& ${Dn}-item-disabled > ${Dn}-header`]:{"\n &,\n & > .arrow\n ":{color:Ke,cursor:"not-allowed"}},[`&${Dn}-icon-position-end`]:{[`& > ${Dn}-item`]:{[`> ${Dn}-header`]:{[`${Dn}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:sn}}}}})}},Ln=Sn=>{const{componentCls:Dn}=Sn,kn=`> ${Dn}-item > ${Dn}-header ${Dn}-arrow svg`;return{[`${Dn}-rtl`]:{[kn]:{transform:"rotate(180deg)"}}}},yi=Sn=>{const{componentCls:Dn,headerBg:kn,paddingXXS:ii,colorBorder:Hn}=Sn;return{[`${Dn}-borderless`]:{backgroundColor:kn,border:0,[`> ${Dn}-item`]:{borderBottom:`1px solid ${Hn}`},[`
|
|
> ${Dn}-item:last-child,
|
|
> ${Dn}-item:last-child ${Dn}-header
|
|
`]:{borderRadius:0},[`> ${Dn}-item:last-child`]:{borderBottom:0},[`> ${Dn}-item > ${Dn}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Dn}-item > ${Dn}-content > ${Dn}-content-box`]:{paddingTop:ii}}}},Yn=Sn=>{const{componentCls:Dn,paddingSM:kn}=Sn;return{[`${Dn}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Dn}-item`]:{borderBottom:0,[`> ${Dn}-content`]:{backgroundColor:"transparent",border:0,[`> ${Dn}-content-box`]:{paddingBlock:kn}}}}}};var Ai=(0,Qn.Z)("Collapse",Sn=>{const Dn=(0,nn.TS)(Sn,{collapseHeaderPaddingSM:`${Sn.paddingXS}px ${Sn.paddingSM}px`,collapseHeaderPaddingLG:`${Sn.padding}px ${Sn.paddingLG}px`,collapsePanelBorderRadius:Sn.borderRadiusLG});return[gn(Dn),yi(Dn),Yn(Dn),Ln(Dn),(0,Zn.Z)(Dn)]},Sn=>({headerPadding:`${Sn.paddingSM}px ${Sn.padding}px`,headerBg:Sn.colorFillAlter,contentPadding:`${Sn.padding}px 16px`,contentBg:Sn.colorBgContainer})),ht=Object.assign(Et.forwardRef((Sn,Dn)=>{const{getPrefixCls:kn,direction:ii,collapse:Hn}=Et.useContext(Nn.E_),{prefixCls:Di,className:hn,rootClassName:rt,style:Pt,bordered:_t=!0,ghost:We,size:Ce,expandIconPosition:Ee="start",children:Ie,expandIcon:Ke}=Sn,Le=(0,ui.Z)(fi=>{var ar;return(ar=Ce!=null?Ce:fi)!==null&&ar!==void 0?ar:"middle"}),st=kn("collapse",Di),dn=kn(),[sn,en]=Ai(st),Xt=Et.useMemo(()=>Ee==="left"?"start":Ee==="right"?"end":Ee,[Ee]),ai=function(){let fi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ar=Ke?Ke(fi):Et.createElement(ce.Z,{rotate:fi.isActive?90:void 0});return(0,wi.Tm)(ar,()=>({className:Lt()(ar.props.className,`${st}-arrow`)}))},Bn=Lt()(`${st}-icon-position-${Xt}`,{[`${st}-borderless`]:!_t,[`${st}-rtl`]:ii==="rtl",[`${st}-ghost`]:!!We,[`${st}-${Le}`]:Le!=="middle"},Hn==null?void 0:Hn.className,hn,rt,en),In=Object.assign(Object.assign({},(0,Mi.Z)(dn)),{motionAppear:!1,leavedClassName:`${st}-content-hidden`}),Yi=Et.useMemo(()=>Ie?(0,Gt.Z)(Ie).map((fi,ar)=>{var io,jo;if(!((io=fi.props)===null||io===void 0)&&io.disabled){const bo=(jo=fi.key)!==null&&jo!==void 0?jo:String(ar),{disabled:Mr,collapsible:_o}=fi.props,Bo=Object.assign(Object.assign({},(0,yn.Z)(fi.props,["disabled"])),{key:bo,collapsible:_o!=null?_o:Mr?"disabled":void 0});return(0,wi.Tm)(fi,Bo)}return fi}):null,[Ie]);return sn(Et.createElement(It,Object.assign({ref:Dn,openMotion:In},(0,yn.Z)(Sn,["rootClassName"]),{expandIcon:ai,prefixCls:st,className:Bn,style:Object.assign(Object.assign({},Hn==null?void 0:Hn.style),Pt)}),Yi))}),{Panel:He}),un=ht},78550:function($t,zn,we){"use strict";we.d(zn,{default:function(){return Vl}});var ce=we(61186),at=we.n(ce),Lt=we(51395),kt=we(90111),Dt=we.n(kt),jt=we(58319),Ge=we.n(jt),Mt=we(23250),Ct=we.n(Mt),Et=we(74959),xt=we.n(Et),Gt=we(10238),Ut=we.n(Gt),Re=we(33656),te=we.n(Re);at().extend(te()),at().extend(Ut()),at().extend(Dt()),at().extend(Ge()),at().extend(Ct()),at().extend(xt()),at().extend(function(ze,Ye){var Qe=Ye.prototype,Nt=Qe.format;Qe.format=function(vn){var wn=(vn||"").replace("Wo","wo");return Nt.bind(this)(wn)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},de=function(Ye){var Qe=ne[Ye];return Qe||Ye.split("_")[0]},le=function(){(0,Lt.ET)(!1,"Not match any format. Please help to fire a issue about this.")},pe={getNow:function(){return at()()},getFixedDate:function(Ye){return at()(Ye,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ye){return Ye.endOf("month")},getWeekDay:function(Ye){var Qe=Ye.locale("en");return Qe.weekday()+Qe.localeData().firstDayOfWeek()},getYear:function(Ye){return Ye.year()},getMonth:function(Ye){return Ye.month()},getDate:function(Ye){return Ye.date()},getHour:function(Ye){return Ye.hour()},getMinute:function(Ye){return Ye.minute()},getSecond:function(Ye){return Ye.second()},addYear:function(Ye,Qe){return Ye.add(Qe,"year")},addMonth:function(Ye,Qe){return Ye.add(Qe,"month")},addDate:function(Ye,Qe){return Ye.add(Qe,"day")},setYear:function(Ye,Qe){return Ye.year(Qe)},setMonth:function(Ye,Qe){return Ye.month(Qe)},setDate:function(Ye,Qe){return Ye.date(Qe)},setHour:function(Ye,Qe){return Ye.hour(Qe)},setMinute:function(Ye,Qe){return Ye.minute(Qe)},setSecond:function(Ye,Qe){return Ye.second(Qe)},isAfter:function(Ye,Qe){return Ye.isAfter(Qe)},isValidate:function(Ye){return Ye.isValid()},locale:{getWeekFirstDay:function(Ye){return at()().locale(de(Ye)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ye,Qe){return Qe.locale(de(Ye)).weekday(0)},getWeek:function(Ye,Qe){return Qe.locale(de(Ye)).week()},getShortWeekDays:function(Ye){return at()().locale(de(Ye)).localeData().weekdaysMin()},getShortMonths:function(Ye){return at()().locale(de(Ye)).localeData().monthsShort()},format:function(Ye,Qe,Nt){return Qe.locale(de(Ye)).format(Nt)},parse:function(Ye,Qe,Nt){for(var Wt=de(Ye),vn=0;vn<Nt.length;vn+=1){var wn=Nt[vn],Gn=Qe;if(wn.includes("wo")||wn.includes("Wo")){for(var Jn=Gn.split("-")[0],gi=Gn.split("-")[1],Ki=at()(Jn,"YYYY").startOf("year").locale(Wt),hi=0;hi<=52;hi+=1){var ji=Ki.add(hi,"week");if(ji.format("Wo")===gi)return ji}return le(),null}var si=at()(Gn,wn,!0).locale(Wt);if(si.isValid())return si}return Qe&&le(),null}}},xe=pe,Ae=we(53487),ke=we(5891),Me=we(59301),ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},dt=ot,yt=we(88853),vt=function(Ye,Qe){return Me.createElement(yt.Z,(0,ke.Z)({},Ye,{ref:Qe,icon:dt}))},Kt=Me.forwardRef(vt),wt=Kt,It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Yt=It,yn=function(Ye,Qe){return Me.createElement(yt.Z,(0,ke.Z)({},Ye,{ref:Qe,icon:Yt}))},Mi=Me.forwardRef(yn),wi=Mi,Nn=we(33130),ui={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},tt=ui,He=function(Ye,Qe){return Me.createElement(yt.Z,(0,ke.Z)({},Ye,{ref:Qe,icon:tt}))},mn=Me.forwardRef(He),Zn=mn,Qn=we(92310),nn=we.n(Qn),gn=we(79545),Ln=we(68550),yi=we(21882),Yn=we(17928),Ai=we(7711),mt=we(80962),ht=we(57259),un=we(29043),Sn=we(35788),Dn=we(36994),kn=we(79722),ii=we(51346),Hn=10,Di=Hn*10,hn=7;function rt(ze,Ye){if(!ze&&!Ye)return!0;if(!ze||!Ye)return!1}function Pt(ze,Ye,Qe){var Nt=rt(Ye,Qe);if(typeof Nt=="boolean")return Nt;var Wt=Math.floor(ze.getYear(Ye)/10),vn=Math.floor(ze.getYear(Qe)/10);return Wt===vn}function _t(ze,Ye,Qe){var Nt=rt(Ye,Qe);return typeof Nt=="boolean"?Nt:ze.getYear(Ye)===ze.getYear(Qe)}function We(ze,Ye){var Qe=Math.floor(ze.getMonth(Ye)/3);return Qe+1}function Ce(ze,Ye,Qe){var Nt=rt(Ye,Qe);return typeof Nt=="boolean"?Nt:_t(ze,Ye,Qe)&&We(ze,Ye)===We(ze,Qe)}function Ee(ze,Ye,Qe){var Nt=rt(Ye,Qe);return typeof Nt=="boolean"?Nt:_t(ze,Ye,Qe)&&ze.getMonth(Ye)===ze.getMonth(Qe)}function Ie(ze,Ye,Qe){var Nt=rt(Ye,Qe);return typeof Nt=="boolean"?Nt:ze.getYear(Ye)===ze.getYear(Qe)&&ze.getMonth(Ye)===ze.getMonth(Qe)&&ze.getDate(Ye)===ze.getDate(Qe)}function Ke(ze,Ye,Qe){var Nt=rt(Ye,Qe);return typeof Nt=="boolean"?Nt:ze.getHour(Ye)===ze.getHour(Qe)&&ze.getMinute(Ye)===ze.getMinute(Qe)&&ze.getSecond(Ye)===ze.getSecond(Qe)}function Le(ze,Ye,Qe,Nt){var Wt=rt(Qe,Nt);return typeof Wt=="boolean"?Wt:_t(ze,Qe,Nt)&&ze.locale.getWeek(Ye,Qe)===ze.locale.getWeek(Ye,Nt)}function st(ze,Ye,Qe){return Ie(ze,Ye,Qe)&&Ke(ze,Ye,Qe)}function dn(ze,Ye,Qe,Nt){return!Ye||!Qe||!Nt?!1:!Ie(ze,Ye,Nt)&&!Ie(ze,Qe,Nt)&&ze.isAfter(Nt,Ye)&&ze.isAfter(Qe,Nt)}function sn(ze,Ye,Qe){var Nt=Ye.locale.getWeekFirstDay(ze),Wt=Ye.setDate(Qe,1),vn=Ye.getWeekDay(Wt),wn=Ye.addDate(Wt,Nt-vn);return Ye.getMonth(wn)===Ye.getMonth(Qe)&&Ye.getDate(wn)>1&&(wn=Ye.addDate(wn,-7)),wn}function en(ze,Ye,Qe){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ye){case"year":return Qe.addYear(ze,Nt*10);case"quarter":case"month":return Qe.addYear(ze,Nt);default:return Qe.addMonth(ze,Nt)}}function Xt(ze,Ye){var Qe=Ye.generateConfig,Nt=Ye.locale,Wt=Ye.format;return typeof Wt=="function"?Wt(ze):Qe.locale.format(Nt.locale,ze,Wt)}function ai(ze,Ye){var Qe=Ye.generateConfig,Nt=Ye.locale,Wt=Ye.formatList;return!ze||typeof Wt[0]=="function"?null:Qe.locale.parse(Nt.locale,ze,Wt)}function Bn(ze){var Ye=ze.cellDate,Qe=ze.mode,Nt=ze.disabledDate,Wt=ze.generateConfig;if(!Nt)return!1;var vn=function(dr,Vn,zi){for(var lr=Vn;lr<=zi;){var oo=void 0;switch(dr){case"date":{if(oo=Wt.setDate(Ye,lr),!Nt(oo))return!1;break}case"month":{if(oo=Wt.setMonth(Ye,lr),!Bn({cellDate:oo,mode:"month",generateConfig:Wt,disabledDate:Nt}))return!1;break}case"year":{if(oo=Wt.setYear(Ye,lr),!Bn({cellDate:oo,mode:"year",generateConfig:Wt,disabledDate:Nt}))return!1;break}}lr+=1}return!0};switch(Qe){case"date":case"week":return Nt(Ye);case"month":{var wn=1,Gn=Wt.getDate(Wt.getEndDate(Ye));return vn("date",wn,Gn)}case"quarter":{var Jn=Math.floor(Wt.getMonth(Ye)/3)*3,gi=Jn+2;return vn("month",Jn,gi)}case"year":return vn("month",0,11);case"decade":{var Ki=Wt.getYear(Ye),hi=Math.floor(Ki/Hn)*Hn,ji=hi+Hn-1;return vn("year",hi,ji)}}}function In(ze,Ye){var Qe=Ye.formatList,Nt=Ye.generateConfig,Wt=Ye.locale;return(0,kn.Z)(function(){if(!ze)return[[""],""];for(var vn="",wn=[],Gn=0;Gn<Qe.length;Gn+=1){var Jn=Qe[Gn],gi=Xt(ze,{generateConfig:Nt,locale:Wt,format:Jn});wn.push(gi),Gn===0&&(vn=gi)}return[wn,vn]},[ze,Qe,Wt],function(vn,wn){return!st(Nt,vn[0],wn[0])||!(0,ii.Z)(vn[1],wn[1],!0)||!(0,ii.Z)(vn[2],wn[2],!0)})}function Yi(ze,Ye){var Qe=Ye.formatList,Nt=Ye.generateConfig,Wt=Ye.locale,vn=(0,Me.useState)(null),wn=(0,un.Z)(vn,2),Gn=wn[0],Jn=wn[1],gi=(0,Me.useRef)(null);function Ki(zi){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gi.current),lr){Jn(zi);return}gi.current=requestAnimationFrame(function(){Jn(zi)})}var hi=In(Gn,{formatList:Qe,generateConfig:Nt,locale:Wt}),ji=(0,un.Z)(hi,2),si=ji[1];function dr(zi){Ki(zi)}function Vn(){var zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ki(null,zi)}return(0,Me.useEffect)(function(){Vn(!0)},[ze]),(0,Me.useEffect)(function(){return function(){return cancelAnimationFrame(gi.current)}},[]),[si,dr,Vn]}var fi=we(85108),ar=we(23073),io=we(26390),jo=we(48886),bo=new Map;function Mr(ze,Ye){var Qe;function Nt(){(0,jo.Z)(ze)?Ye():Qe=(0,ar.Z)(function(){Nt()})}return Nt(),function(){ar.Z.cancel(Qe)}}function _o(ze,Ye,Qe){if(bo.get(ze)&&cancelAnimationFrame(bo.get(ze)),Qe<=0){bo.set(ze,requestAnimationFrame(function(){ze.scrollTop=Ye}));return}var Nt=Ye-ze.scrollTop,Wt=Nt/Qe*10;bo.set(ze,requestAnimationFrame(function(){ze.scrollTop+=Wt,ze.scrollTop!==Ye&&_o(ze,Ye,Qe-10)}))}function Bo(ze,Ye){var Qe=Ye.onLeftRight,Nt=Ye.onCtrlLeftRight,Wt=Ye.onUpDown,vn=Ye.onPageUpDown,wn=Ye.onEnter,Gn=ze.which,Jn=ze.ctrlKey,gi=ze.metaKey;switch(Gn){case fi.Z.LEFT:if(Jn||gi){if(Nt)return Nt(-1),!0}else if(Qe)return Qe(-1),!0;break;case fi.Z.RIGHT:if(Jn||gi){if(Nt)return Nt(1),!0}else if(Qe)return Qe(1),!0;break;case fi.Z.UP:if(Wt)return Wt(-1),!0;break;case fi.Z.DOWN:if(Wt)return Wt(1),!0;break;case fi.Z.PAGE_UP:if(vn)return vn(-1),!0;break;case fi.Z.PAGE_DOWN:if(vn)return vn(1),!0;break;case fi.Z.ENTER:if(wn)return wn(),!0;break}return!1}function yo(ze,Ye,Qe,Nt){var Wt=ze;if(!Wt)switch(Ye){case"time":Wt=Nt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Wt="gggg-wo";break;case"month":Wt="YYYY-MM";break;case"quarter":Wt="YYYY-[Q]Q";break;case"year":Wt="YYYY";break;default:Wt=Qe?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Wt}function ho(ze,Ye,Qe){var Nt=ze==="time"?8:10,Wt=typeof Ye=="function"?Ye(Qe.getNow()).length:Ye.length;return Math.max(Nt,Wt)+2}var Tr=null,Be=new Set;function ua(ze){return!Tr&&typeof window!="undefined"&&window.addEventListener&&(Tr=function(Qe){(0,io.Z)(Be).forEach(function(Nt){Nt(Qe)})},window.addEventListener("mousedown",Tr)),Be.add(ze),function(){Be.delete(ze),Be.size===0&&(window.removeEventListener("mousedown",Tr),Tr=null)}}function eo(ze){var Ye=ze.target;if(ze.composed&&Ye.shadowRoot){var Qe;return((Qe=ze.composedPath)===null||Qe===void 0?void 0:Qe.call(ze)[0])||Ye}return Ye}var Wn=function(Ye){return Ye==="month"||Ye==="date"?"year":Ye},Oi=function(Ye){return Ye==="date"?"month":Ye},Ri=function(Ye){return Ye==="month"||Ye==="date"?"quarter":Ye},ci=function(Ye){return Ye==="date"?"week":Ye},Un={year:Wn,month:Oi,quarter:Ri,week:ci,time:null,date:null};function Zt(ze,Ye){return ze.some(function(Qe){return Qe&&Qe.contains(Ye)})}function ln(ze){var Ye=ze.open,Qe=ze.value,Nt=ze.isClickOutside,Wt=ze.triggerOpen,vn=ze.forwardKeyDown,wn=ze.onKeyDown,Gn=ze.blurToCancel,Jn=ze.onSubmit,gi=ze.onCancel,Ki=ze.onFocus,hi=ze.onBlur,ji=ze.changeOnBlur,si=(0,Me.useState)(!1),dr=(0,un.Z)(si,2),Vn=dr[0],zi=dr[1],lr=(0,Me.useState)(!1),oo=(0,un.Z)(lr,2),Yr=oo[0],lo=oo[1],co=(0,Me.useRef)(!1),Pr=(0,Me.useRef)(!1),$i=(0,Me.useRef)(!1),Ea={onMouseDown:function(){zi(!0),Wt(!0)},onKeyDown:function(Pa){var $a=function(){$i.current=!0};if(wn(Pa,$a),!$i.current){switch(Pa.which){case fi.Z.ENTER:{Ye?Jn()!==!1&&zi(!0):Wt(!0),Pa.preventDefault();return}case fi.Z.TAB:{Vn&&Ye&&!Pa.shiftKey?(zi(!1),Pa.preventDefault()):!Vn&&Ye&&!vn(Pa)&&Pa.shiftKey&&(zi(!0),Pa.preventDefault());return}case fi.Z.ESC:{zi(!0),gi();return}}!Ye&&![fi.Z.SHIFT].includes(Pa.which)?Wt(!0):Vn||vn(Pa)}},onFocus:function(Pa){zi(!0),lo(!0),Ki&&Ki(Pa)},onBlur:function(Pa){if(co.current||!Nt(document.activeElement)){co.current=!1;return}Gn?setTimeout(function(){for(var $a=document,Ha=$a.activeElement;Ha&&Ha.shadowRoot;)Ha=Ha.shadowRoot.activeElement;Nt(Ha)&&gi()},0):Ye&&(Wt(!1),Pr.current&&Jn()),lo(!1),hi==null||hi(Pa)}};return(0,Me.useEffect)(function(){Pr.current=!1},[Ye]),(0,Me.useEffect)(function(){Pr.current=!0},[Qe]),(0,Me.useEffect)(function(){return ua(function($o){var Pa=eo($o),$a=Nt(Pa);Ye&&($a?!ji&&(!Yr||$a)&&Wt(!1):(co.current=!0,(0,ar.Z)(function(){co.current=!1})))})}),[Ea,{focused:Yr,typing:Vn}]}function Tt(ze,Ye){return Me.useMemo(function(){return ze||(Ye?((0,Lt.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ye).map(function(Qe){var Nt=(0,un.Z)(Qe,2),Wt=Nt[0],vn=Nt[1];return{label:Wt,value:vn}})):[])},[ze,Ye])}var An=we(28800);function Hi(ze){var Ye=ze.valueTexts,Qe=ze.onTextChange,Nt=Me.useState(""),Wt=(0,un.Z)(Nt,2),vn=Wt[0],wn=Wt[1],Gn=Me.useRef([]);Gn.current=Ye;function Jn(Ki){wn(Ki),Qe(Ki)}function gi(){wn(Gn.current[0])}return(0,An.Z)(function(){Ye.every(function(Ki){return Ki!==vn})&&gi()},[Ye.join("||")]),[vn,Jn,gi]}var gr=Me.createContext({}),sr=gr,Rn=we(80665);function Ti(ze){var Ye=ze.cellRender,Qe=ze.monthCellRender,Nt=ze.dateRender,Wt=Me.useMemo(function(){if(Ye)return Ye;if(!(!Qe&&!Nt))return function(vn,wn){var Gn=vn;return Nt&&wn.type==="date"?Nt(Gn,wn.today):Qe&&wn.type==="month"?Qe(Gn,wn.locale):wn.originNode}},[Ye,Qe,Nt]);return Wt}function qr(ze,Ye){for(var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Nt=String(ze);Nt.length<Ye;)Nt="".concat(Qe).concat(ze);return Nt}var _r=function(){for(var Ye=arguments.length,Qe=new Array(Ye),Nt=0;Nt<Ye;Nt++)Qe[Nt]=arguments[Nt];return Qe};function di(ze){return ze==null?[]:Array.isArray(ze)?ze:[ze]}function Ot(ze,Ye){return ze?ze[Ye]:null}function Ii(ze,Ye,Qe){var Nt=[Ot(ze,0),Ot(ze,1)];return Nt[Qe]=typeof Ye=="function"?Ye(Nt[Qe]):Ye,!Nt[0]&&!Nt[1]?null:Nt}function xn(ze){return typeof ze=="function"?ze():ze}function jn(ze){var Ye=ze.cellPrefixCls,Qe=ze.generateConfig,Nt=ze.rangedValue,Wt=ze.hoverRangedValue,vn=ze.isInView,wn=ze.isSameCell,Gn=ze.offsetCell,Jn=ze.today,gi=ze.value;function Ki(hi){var ji,si=Gn(hi,-1),dr=Gn(hi,1),Vn=Ot(Nt,0),zi=Ot(Nt,1),lr=Ot(Wt,0),oo=Ot(Wt,1),Yr=dn(Qe,lr,oo,hi);function lo(Pa){return wn(Vn,Pa)}function co(Pa){return wn(zi,Pa)}var Pr=wn(lr,hi),$i=wn(oo,hi),Ea=(Yr||$i)&&(!vn(si)||co(si)),$o=(Yr||Pr)&&(!vn(dr)||lo(dr));return ji={},(0,mt.Z)(ji,"".concat(Ye,"-in-view"),vn(hi)),(0,mt.Z)(ji,"".concat(Ye,"-in-range"),dn(Qe,Vn,zi,hi)),(0,mt.Z)(ji,"".concat(Ye,"-range-start"),lo(hi)),(0,mt.Z)(ji,"".concat(Ye,"-range-end"),co(hi)),(0,mt.Z)(ji,"".concat(Ye,"-range-start-single"),lo(hi)&&!zi),(0,mt.Z)(ji,"".concat(Ye,"-range-end-single"),co(hi)&&!Vn),(0,mt.Z)(ji,"".concat(Ye,"-range-start-near-hover"),lo(hi)&&(wn(si,lr)||dn(Qe,lr,oo,si))),(0,mt.Z)(ji,"".concat(Ye,"-range-end-near-hover"),co(hi)&&(wn(dr,oo)||dn(Qe,lr,oo,dr))),(0,mt.Z)(ji,"".concat(Ye,"-range-hover"),Yr),(0,mt.Z)(ji,"".concat(Ye,"-range-hover-start"),Pr),(0,mt.Z)(ji,"".concat(Ye,"-range-hover-end"),$i),(0,mt.Z)(ji,"".concat(Ye,"-range-hover-edge-start"),Ea),(0,mt.Z)(ji,"".concat(Ye,"-range-hover-edge-end"),$o),(0,mt.Z)(ji,"".concat(Ye,"-range-hover-edge-start-near-range"),Ea&&wn(si,zi)),(0,mt.Z)(ji,"".concat(Ye,"-range-hover-edge-end-near-range"),$o&&wn(dr,Vn)),(0,mt.Z)(ji,"".concat(Ye,"-today"),wn(Jn,hi)),(0,mt.Z)(ji,"".concat(Ye,"-selected"),wn(gi,hi)),ji}return Ki}var Ft=Me.createContext({}),bt=Ft;function rn(ze,Ye,Qe,Nt,Wt){var vn=ze.setHour(Ye,Qe);return vn=ze.setMinute(vn,Nt),vn=ze.setSecond(vn,Wt),vn}function Sr(ze,Ye,Qe){if(!Qe)return Ye;var Nt=Ye;return Nt=ze.setHour(Nt,ze.getHour(Qe)),Nt=ze.setMinute(Nt,ze.getMinute(Qe)),Nt=ze.setSecond(Nt,ze.getSecond(Qe)),Nt}function ki(ze,Ye,Qe,Nt,Wt,vn){var wn=Math.floor(ze/Nt)*Nt;if(wn<ze)return[wn,60-Wt,60-vn];var Gn=Math.floor(Ye/Wt)*Wt;if(Gn<Ye)return[wn,Gn,60-vn];var Jn=Math.floor(Qe/vn)*vn;return[wn,Gn,Jn]}function Ni(ze,Ye){var Qe=ze.getYear(Ye),Nt=ze.getMonth(Ye)+1,Wt=ze.getEndDate(ze.getFixedDate("".concat(Qe,"-").concat(Nt,"-01"))),vn=ze.getDate(Wt),wn=Nt<10?"0".concat(Nt):"".concat(Nt);return"".concat(Qe,"-").concat(wn,"-").concat(vn)}function qn(ze){for(var Ye=ze.prefixCls,Qe=ze.disabledDate,Nt=ze.onSelect,Wt=ze.picker,vn=ze.rowNum,wn=ze.colNum,Gn=ze.prefixColumn,Jn=ze.rowClassName,gi=ze.baseDate,Ki=ze.getCellClassName,hi=ze.getCellText,ji=ze.getCellNode,si=ze.getCellDate,dr=ze.generateConfig,Vn=ze.titleCell,zi=ze.headerCells,lr=Me.useContext(sr),oo=lr.onDateMouseEnter,Yr=lr.onDateMouseLeave,lo=lr.mode,co="".concat(Ye,"-cell"),Pr=[],$i=0;$i<vn;$i+=1){for(var Ea=[],$o=void 0,Pa=function(){var ja,js=$i*wn+$a,Za=si(gi,js),ma=Bn({cellDate:Za,mode:lo,disabledDate:Qe,generateConfig:dr});$a===0&&($o=Za,Gn&&Ea.push(Gn($o)));var es=Vn&&Vn(Za),zs=Me.createElement("div",{className:"".concat(co,"-inner")},hi(Za));Ea.push(Me.createElement("td",{key:$a,title:es,className:nn()(co,(0,ht.Z)((ja={},(0,mt.Z)(ja,"".concat(co,"-disabled"),ma),(0,mt.Z)(ja,"".concat(co,"-start"),hi(Za)===1||Wt==="year"&&Number(es)%10===0),(0,mt.Z)(ja,"".concat(co,"-end"),es===Ni(dr,Za)||Wt==="year"&&Number(es)%10===9),ja),Ki(Za))),onClick:function(){ma||Nt(Za)},onMouseEnter:function(){!ma&&oo&&oo(Za)},onMouseLeave:function(){!ma&&Yr&&Yr(Za)}},ji?ji(Za,zs):zs))},$a=0;$a<wn;$a+=1)Pa();Pr.push(Me.createElement("tr",{key:$i,className:Jn&&Jn($o)},Ea))}return Me.createElement("div",{className:"".concat(Ye,"-body")},Me.createElement("table",{className:"".concat(Ye,"-content")},zi&&Me.createElement("thead",null,Me.createElement("tr",null,zi)),Me.createElement("tbody",null,Pr)))}function Wi(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.prefixColumn,Wt=ze.locale,vn=ze.rowCount,wn=ze.viewDate,Gn=ze.value,Jn=ze.cellRender,gi=ze.isSameCell,Ki=Me.useContext(bt),hi=Ki.rangedValue,ji=Ki.hoverRangedValue,si=sn(Wt.locale,Qe,wn),dr="".concat(Ye,"-cell"),Vn=Qe.locale.getWeekFirstDay(Wt.locale),zi=Qe.getNow(),lr=[],oo=Wt.shortWeekDays||(Qe.locale.getShortWeekDays?Qe.locale.getShortWeekDays(Wt.locale):[]);Nt&&lr.push(Me.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Yr=0;Yr<hn;Yr+=1)lr.push(Me.createElement("th",{key:Yr},oo[(Yr+Vn)%hn]));var lo=jn({cellPrefixCls:dr,today:zi,value:Gn,generateConfig:Qe,rangedValue:Nt?null:hi,hoverRangedValue:Nt?null:ji,isSameCell:gi||function(Pr,$i){return Ie(Qe,Pr,$i)},isInView:function($i){return Ee(Qe,$i,wn)},offsetCell:function($i,Ea){return Qe.addDate($i,Ea)}}),co=Jn?function(Pr,$i){return Jn(Pr,{originNode:$i,today:zi,type:"date",locale:Wt})}:void 0;return Me.createElement(qn,(0,ke.Z)({},ze,{rowNum:vn,colNum:hn,baseDate:si,getCellNode:co,getCellText:Qe.getDate,getCellClassName:lo,getCellDate:Qe.addDate,titleCell:function($i){return Xt($i,{locale:Wt,format:"YYYY-MM-DD",generateConfig:Qe})},headerCells:lr}))}var Hr=Wi,no={visibility:"hidden"};function vi(ze){var Ye=ze.prefixCls,Qe=ze.prevIcon,Nt=Qe===void 0?"\u2039":Qe,Wt=ze.nextIcon,vn=Wt===void 0?"\u203A":Wt,wn=ze.superPrevIcon,Gn=wn===void 0?"\xAB":wn,Jn=ze.superNextIcon,gi=Jn===void 0?"\xBB":Jn,Ki=ze.onSuperPrev,hi=ze.onSuperNext,ji=ze.onPrev,si=ze.onNext,dr=ze.children,Vn=Me.useContext(sr),zi=Vn.hideNextBtn,lr=Vn.hidePrevBtn;return Me.createElement("div",{className:Ye},Ki&&Me.createElement("button",{type:"button",onClick:Ki,tabIndex:-1,className:"".concat(Ye,"-super-prev-btn"),style:lr?no:{}},Gn),ji&&Me.createElement("button",{type:"button",onClick:ji,tabIndex:-1,className:"".concat(Ye,"-prev-btn"),style:lr?no:{}},Nt),Me.createElement("div",{className:"".concat(Ye,"-view")},dr),si&&Me.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Ye,"-next-btn"),style:zi?no:{}},vn),hi&&Me.createElement("button",{type:"button",onClick:hi,tabIndex:-1,className:"".concat(Ye,"-super-next-btn"),style:zi?no:{}},gi))}var Ji=vi;function Aa(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.locale,Wt=ze.viewDate,vn=ze.onNextMonth,wn=ze.onPrevMonth,Gn=ze.onNextYear,Jn=ze.onPrevYear,gi=ze.onYearClick,Ki=ze.onMonthClick,hi=Me.useContext(sr),ji=hi.hideHeader;if(ji)return null;var si="".concat(Ye,"-header"),dr=Nt.shortMonths||(Qe.locale.getShortMonths?Qe.locale.getShortMonths(Nt.locale):[]),Vn=Qe.getMonth(Wt),zi=Me.createElement("button",{type:"button",key:"year",onClick:gi,tabIndex:-1,className:"".concat(Ye,"-year-btn")},Xt(Wt,{locale:Nt,format:Nt.yearFormat,generateConfig:Qe})),lr=Me.createElement("button",{type:"button",key:"month",onClick:Ki,tabIndex:-1,className:"".concat(Ye,"-month-btn")},Nt.monthFormat?Xt(Wt,{locale:Nt,format:Nt.monthFormat,generateConfig:Qe}):dr[Vn]),oo=Nt.monthBeforeYear?[lr,zi]:[zi,lr];return Me.createElement(Ji,(0,ke.Z)({},ze,{prefixCls:si,onSuperPrev:Jn,onPrev:wn,onNext:vn,onSuperNext:Gn}),oo)}var uo=Aa,Ir=6;function Bt(ze){var Ye=ze.prefixCls,Qe=ze.panelName,Nt=Qe===void 0?"date":Qe,Wt=ze.keyboardConfig,vn=ze.active,wn=ze.operationRef,Gn=ze.generateConfig,Jn=ze.value,gi=ze.viewDate,Ki=ze.onViewDateChange,hi=ze.onPanelChange,ji=ze.onSelect,si="".concat(Ye,"-").concat(Nt,"-panel");wn.current={onKeyDown:function(lr){return Bo(lr,(0,ht.Z)({onLeftRight:function(Yr){ji(Gn.addDate(Jn||gi,Yr),"key")},onCtrlLeftRight:function(Yr){ji(Gn.addYear(Jn||gi,Yr),"key")},onUpDown:function(Yr){ji(Gn.addDate(Jn||gi,Yr*hn),"key")},onPageUpDown:function(Yr){ji(Gn.addMonth(Jn||gi,Yr),"key")}},Wt))}};var dr=function(lr){var oo=Gn.addYear(gi,lr);Ki(oo),hi(null,oo)},Vn=function(lr){var oo=Gn.addMonth(gi,lr);Ki(oo),hi(null,oo)};return Me.createElement("div",{className:nn()(si,(0,mt.Z)({},"".concat(si,"-active"),vn))},Me.createElement(uo,(0,ke.Z)({},ze,{prefixCls:Ye,value:Jn,viewDate:gi,onPrevYear:function(){dr(-1)},onNextYear:function(){dr(1)},onPrevMonth:function(){Vn(-1)},onNextMonth:function(){Vn(1)},onMonthClick:function(){hi("month",gi)},onYearClick:function(){hi("year",gi)}})),Me.createElement(Hr,(0,ke.Z)({},ze,{onSelect:function(lr){return ji(lr,"mouse")},prefixCls:Ye,value:Jn,viewDate:gi,rowCount:Ir})))}var Ht=Bt;function pn(ze){var Ye=Me.useContext(sr),Qe=Ye.hideHeader;if(Qe)return null;var Nt=ze.prefixCls,Wt=ze.generateConfig,vn=ze.locale,wn=ze.value,Gn=ze.format,Jn="".concat(Nt,"-header");return Me.createElement(Ji,{prefixCls:Jn},wn?Xt(wn,{locale:vn,format:Gn,generateConfig:Wt}):"\xA0")}var zt=pn;function li(ze){var Ye=ze.value,Qe=ze.generateConfig,Nt=ze.disabledMinutes,Wt=ze.disabledSeconds,vn=ze.minutes,wn=ze.seconds,Gn=ze.use12Hours,Jn=function(Ki,hi,ji,si){var dr=Qe.getNow(),Vn=Ye||dr,zi=hi<0?Qe.getHour(dr):hi,lr=ji<0?Qe.getMinute(dr):ji,oo=si<0?Qe.getSecond(dr):si,Yr=Nt&&Nt(zi);if(Yr!=null&&Yr.includes(lr)){var lo=vn.find(function($i){return!Yr.includes($i.value)});if(lo)lr=lo.value;else return null}var co=Wt&&Wt(zi,lr);if(co!=null&&co.includes(oo)){var Pr=wn.find(function($i){return!co.includes($i.value)});if(Pr)oo=Pr.value;else return null}return Vn=rn(Qe,Vn,!Gn||!Ki?zi:zi+12,lr,oo),Vn};return Jn}function ir(ze){var Ye=ze.prefixCls,Qe=ze.units,Nt=ze.onSelect,Wt=ze.value,vn=ze.active,wn=ze.hideDisabledOptions,Gn=ze.info,Jn=ze.type,gi="".concat(Ye,"-cell"),Ki=Me.useContext(sr),hi=Ki.open,ji=(0,Me.useRef)(null),si=(0,Me.useRef)(new Map),dr=(0,Me.useRef)();return(0,Me.useLayoutEffect)(function(){var Vn=si.current.get(Wt);Vn&&hi!==!1&&_o(ji.current,Vn.offsetTop,120)},[Wt]),(0,Me.useLayoutEffect)(function(){if(hi){var Vn=si.current.get(Wt);Vn&&(dr.current=Mr(Vn,function(){_o(ji.current,Vn.offsetTop,0)}))}return function(){var zi;(zi=dr.current)===null||zi===void 0||zi.call(dr)}},[hi]),Me.createElement("ul",{className:nn()("".concat(Ye,"-column"),(0,mt.Z)({},"".concat(Ye,"-column-active"),vn)),ref:ji,style:{position:"relative"}},Qe.map(function(Vn){var zi;return wn&&Vn.disabled?null:Me.createElement("li",{key:Vn.value,ref:function(oo){si.current.set(Vn.value,oo)},className:nn()(gi,(zi={},(0,mt.Z)(zi,"".concat(gi,"-disabled"),Vn.disabled),(0,mt.Z)(zi,"".concat(gi,"-selected"),Wt===Vn.value),zi)),onClick:function(){Vn.disabled||Nt(Vn.value)}},Gn.cellRender?Gn.cellRender(Vn.value,{today:Gn.today,locale:Gn.locale,originNode:Me.createElement("div",{className:"".concat(gi,"-inner")},Vn.label),type:"time",subType:Jn}):Me.createElement("div",{className:"".concat(gi,"-inner")},Vn.label))}))}var cr=ir;function ri(ze,Ye){if(ze.length!==Ye.length)return!0;for(var Qe=0;Qe<ze.length;Qe+=1)if(ze[Qe].disabled!==Ye[Qe].disabled)return!0;return!1}function Ei(ze,Ye,Qe,Nt){for(var Wt=[],vn=Qe>=1?Qe|0:1,wn=ze;wn<=Ye;wn+=vn)Wt.push({label:qr(wn,2),value:wn,disabled:(Nt||[]).includes(wn)});return Wt}function Xn(ze){var Ye=ze.generateConfig,Qe=ze.prefixCls,Nt=ze.operationRef,Wt=ze.activeColumnIndex,vn=ze.value,wn=ze.showHour,Gn=ze.showMinute,Jn=ze.showSecond,gi=ze.use12Hours,Ki=ze.hourStep,hi=Ki===void 0?1:Ki,ji=ze.minuteStep,si=ji===void 0?1:ji,dr=ze.secondStep,Vn=dr===void 0?1:dr,zi=ze.disabledHours,lr=ze.disabledMinutes,oo=ze.disabledSeconds,Yr=ze.disabledTime,lo=ze.hideDisabledOptions,co=ze.onSelect,Pr=ze.cellRender,$i=ze.locale,Ea=[],$o="".concat(Qe,"-content"),Pa="".concat(Qe,"-time-panel"),$a,Ha=vn?Ye.getHour(vn):-1,ja=Ha,js=vn?Ye.getMinute(vn):-1,Za=vn?Ye.getSecond(vn):-1,ma=Ye.getNow(),es=Me.useMemo(function(){if(Yr){var ea=Yr(ma);return[ea.disabledHours,ea.disabledMinutes,ea.disabledSeconds]}return[zi,lr,oo]},[zi,lr,oo,Yr,ma]),zs=(0,un.Z)(es,3),xs=zs[0],Cs=zs[1],Vs=zs[2],hl=Ei(0,23,hi,xs&&xs()),Fl=(0,kn.Z)(function(){return hl},hl,ri);gi&&($a=ja>=12,ja%=12);var xu=Me.useMemo(function(){if(!gi)return[!1,!1];var ea=[!0,!0];return Fl.forEach(function(da){var vl=da.disabled,Yl=da.value;vl||(Yl>=12?ea[1]=!1:ea[0]=!1)}),ea},[gi,Fl]),qs=(0,un.Z)(xu,2),Eu=qs[0],Ba=qs[1],al=Me.useMemo(function(){return gi?Fl.filter($a?function(ea){return ea.value>=12}:function(ea){return ea.value<12}).map(function(ea){var da=ea.value%12,vl=da===0?"12":qr(da,2);return(0,ht.Z)((0,ht.Z)({},ea),{},{label:vl,value:da})}):Fl},[gi,$a,Fl]),va=Ei(0,59,si,Cs&&Cs(Ha)),As=Ei(0,59,Vn,Vs&&Vs(Ha,js)),Es=li({value:vn,generateConfig:Ye,disabledMinutes:Cs,disabledSeconds:Vs,minutes:va,seconds:As,use12Hours:gi});Nt.current={onUpDown:function(da){var vl=Ea[Wt];if(vl)for(var Yl=vl.units.findIndex(function(Xl){return Xl.value===vl.value}),Ks=vl.units.length,yl=1;yl<Ks;yl+=1){var Fa=vl.units[(Yl+da*yl+Ks)%Ks];if(Fa.disabled!==!0){vl.onSelect(Fa.value);break}}}};function _s(ea,da,vl,Yl,Ks){ea!==!1&&Ea.push({node:Me.cloneElement(da,{prefixCls:Pa,value:vl,active:Wt===Ea.length,onSelect:Ks,units:Yl,hideDisabledOptions:lo}),onSelect:Ks,value:vl,units:Yl})}_s(wn,Me.createElement(cr,{key:"hour",type:"hour",info:{today:ma,locale:$i,cellRender:Pr}}),ja,al,function(ea){co(Es($a,ea,js,Za),"mouse")}),_s(Gn,Me.createElement(cr,{key:"minute",type:"minute",info:{today:ma,locale:$i,cellRender:Pr}}),js,va,function(ea){co(Es($a,ja,ea,Za),"mouse")}),_s(Jn,Me.createElement(cr,{key:"second",type:"second",info:{today:ma,locale:$i,cellRender:Pr}}),Za,As,function(ea){co(Es($a,ja,js,ea),"mouse")});var Gu=-1;return typeof $a=="boolean"&&(Gu=$a?1:0),_s(gi===!0,Me.createElement(cr,{key:"meridiem",type:"meridiem",info:{today:ma,locale:$i,cellRender:Pr}}),Gu,[{label:"AM",value:0,disabled:Eu},{label:"PM",value:1,disabled:Ba}],function(ea){co(Es(!!ea,ja,js,Za),"mouse")}),Me.createElement("div",{className:$o},Ea.map(function(ea){var da=ea.node;return da}))}var tn=Xn,Jr=function(Ye){return Ye.filter(function(Qe){return Qe!==!1}).length};function Tn(ze){var Ye=ze.generateConfig,Qe=ze.format,Nt=Qe===void 0?"HH:mm:ss":Qe,Wt=ze.prefixCls,vn=ze.active,wn=ze.operationRef,Gn=ze.showHour,Jn=ze.showMinute,gi=ze.showSecond,Ki=ze.use12Hours,hi=Ki===void 0?!1:Ki,ji=ze.onSelect,si=ze.value,dr="".concat(Wt,"-time-panel"),Vn=Me.useRef(),zi=Me.useState(-1),lr=(0,un.Z)(zi,2),oo=lr[0],Yr=lr[1],lo=Jr([Gn,Jn,gi,hi]);return wn.current={onKeyDown:function(Pr){return Bo(Pr,{onLeftRight:function(Ea){Yr((oo+Ea+lo)%lo)},onUpDown:function(Ea){oo===-1?Yr(0):Vn.current&&Vn.current.onUpDown(Ea)},onEnter:function(){ji(si||Ye.getNow(),"key"),Yr(-1)}})},onBlur:function(){Yr(-1)}},Me.createElement("div",{className:nn()(dr,(0,mt.Z)({},"".concat(dr,"-active"),vn))},Me.createElement(zt,(0,ke.Z)({},ze,{format:Nt,prefixCls:Wt})),Me.createElement(tn,(0,ke.Z)({},ze,{prefixCls:Wt,activeColumnIndex:oo,operationRef:Vn})))}var zr=Tn,Or=_r("date","time");function ur(ze){var Ye=ze.prefixCls,Qe=ze.operationRef,Nt=ze.generateConfig,Wt=ze.value,vn=ze.defaultValue,wn=ze.disabledTime,Gn=ze.showTime,Jn=ze.onSelect,gi=ze.cellRender,Ki="".concat(Ye,"-datetime-panel"),hi=Me.useState(null),ji=(0,un.Z)(hi,2),si=ji[0],dr=ji[1],Vn=Me.useRef({}),zi=Me.useRef({}),lr=(0,Rn.Z)(Gn)==="object"?(0,ht.Z)({},Gn):{};function oo(Pr){var $i=Or.indexOf(si)+Pr,Ea=Or[$i]||null;return Ea}var Yr=function($i){zi.current.onBlur&&zi.current.onBlur($i),dr(null)};Qe.current={onKeyDown:function($i){if($i.which===fi.Z.TAB){var Ea=oo($i.shiftKey?-1:1);return dr(Ea),Ea&&$i.preventDefault(),!0}if(si){var $o=si==="date"?Vn:zi;return $o.current&&$o.current.onKeyDown&&$o.current.onKeyDown($i),!0}return[fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN].includes($i.which)?(dr("date"),!0):!1},onBlur:Yr,onClose:Yr};var lo=function($i,Ea){var $o=$i;Ea==="date"&&!Wt&&lr.defaultValue?($o=Nt.setHour($o,Nt.getHour(lr.defaultValue)),$o=Nt.setMinute($o,Nt.getMinute(lr.defaultValue)),$o=Nt.setSecond($o,Nt.getSecond(lr.defaultValue))):Ea==="time"&&!Wt&&vn&&($o=Nt.setYear($o,Nt.getYear(vn)),$o=Nt.setMonth($o,Nt.getMonth(vn)),$o=Nt.setDate($o,Nt.getDate(vn))),Jn&&Jn($o,"mouse")},co=wn?wn(Wt||null):{};return Me.createElement("div",{className:nn()(Ki,(0,mt.Z)({},"".concat(Ki,"-active"),si))},Me.createElement(Ht,(0,ke.Z)({},ze,{cellRender:gi,operationRef:Vn,active:si==="date",onSelect:function($i){lo(Sr(Nt,$i,!Wt&&(0,Rn.Z)(Gn)==="object"?Gn.defaultValue:null),"date")}})),Me.createElement(zr,(0,ke.Z)({},ze,{cellRender:gi?function(Pr,$i){return gi(Pr,(0,ht.Z)((0,ht.Z)({},$i),{},{type:"time"}))}:void 0,format:void 0},lr,co,{disabledTime:null,defaultValue:void 0,operationRef:zi,active:si==="time",onSelect:function($i){lo($i,"time")}})))}var ko=ur;function Zr(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.viewDate,Wt=ze.onPrevDecades,vn=ze.onNextDecades,wn=Me.useContext(sr),Gn=wn.hideHeader;if(Gn)return null;var Jn="".concat(Ye,"-header"),gi=Qe.getYear(Nt),Ki=Math.floor(gi/Di)*Di,hi=Ki+Di-1;return Me.createElement(Ji,(0,ke.Z)({},ze,{prefixCls:Jn,onSuperPrev:Wt,onSuperNext:vn}),Ki,"-",hi)}var Gi=Zr,Er=3,ro=4;function Fn(ze){var Ye=Hn-1,Qe=ze.prefixCls,Nt=ze.viewDate,Wt=ze.generateConfig,vn=ze.cellRender,wn=ze.locale,Gn="".concat(Qe,"-cell"),Jn=Wt.getYear(Nt),gi=Math.floor(Jn/Hn)*Hn,Ki=Math.floor(Jn/Di)*Di,hi=Ki+Di-1,ji=Wt.setYear(Nt,Ki-Math.ceil((Er*ro*Hn-Di)/2)),si=function(zi){var lr,oo=Wt.getYear(zi),Yr=oo+Ye;return lr={},(0,mt.Z)(lr,"".concat(Gn,"-in-view"),Ki<=oo&&Yr<=hi),(0,mt.Z)(lr,"".concat(Gn,"-selected"),oo===gi),lr},dr=vn?function(Vn,zi){return vn(Vn,{originNode:zi,today:Wt.getNow(),type:"decade",locale:wn})}:void 0;return Me.createElement(qn,(0,ke.Z)({},ze,{rowNum:ro,colNum:Er,baseDate:ji,getCellNode:dr,getCellText:function(zi){var lr=Wt.getYear(zi);return"".concat(lr,"-").concat(lr+Ye)},getCellClassName:si,getCellDate:function(zi,lr){return Wt.addYear(zi,lr*Hn)}}))}var ti=Fn;function Ue(ze){var Ye=ze.prefixCls,Qe=ze.onViewDateChange,Nt=ze.generateConfig,Wt=ze.viewDate,vn=ze.operationRef,wn=ze.onSelect,Gn=ze.onPanelChange,Jn="".concat(Ye,"-decade-panel");vn.current={onKeyDown:function(ji){return Bo(ji,{onLeftRight:function(dr){wn(Nt.addYear(Wt,dr*Hn),"key")},onCtrlLeftRight:function(dr){wn(Nt.addYear(Wt,dr*Di),"key")},onUpDown:function(dr){wn(Nt.addYear(Wt,dr*Hn*Er),"key")},onEnter:function(){Gn("year",Wt)}})}};var gi=function(ji){var si=Nt.addYear(Wt,ji*Di);Qe(si),Gn(null,si)},Ki=function(ji){wn(ji,"mouse"),Gn("year",ji)};return Me.createElement("div",{className:Jn},Me.createElement(Gi,(0,ke.Z)({},ze,{prefixCls:Ye,onPrevDecades:function(){gi(-1)},onNextDecades:function(){gi(1)}})),Me.createElement(ti,(0,ke.Z)({},ze,{prefixCls:Ye,onSelect:Ki})))}var fo=Ue;function So(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.locale,Wt=ze.viewDate,vn=ze.onNextYear,wn=ze.onPrevYear,Gn=ze.onYearClick,Jn=Me.useContext(sr),gi=Jn.hideHeader;if(gi)return null;var Ki="".concat(Ye,"-header");return Me.createElement(Ji,(0,ke.Z)({},ze,{prefixCls:Ki,onSuperPrev:wn,onSuperNext:vn}),Me.createElement("button",{type:"button",onClick:Gn,className:"".concat(Ye,"-year-btn")},Xt(Wt,{locale:Nt,format:Nt.yearFormat,generateConfig:Qe})))}var rr=So,Xi=3,Ui=4;function qo(ze){var Ye=ze.prefixCls,Qe=ze.locale,Nt=ze.value,Wt=ze.viewDate,vn=ze.generateConfig,wn=ze.cellRender,Gn=Me.useContext(bt),Jn=Gn.rangedValue,gi=Gn.hoverRangedValue,Ki="".concat(Ye,"-cell"),hi=jn({cellPrefixCls:Ki,value:Nt,generateConfig:vn,rangedValue:Jn,hoverRangedValue:gi,isSameCell:function(zi,lr){return Ee(vn,zi,lr)},isInView:function(){return!0},offsetCell:function(zi,lr){return vn.addMonth(zi,lr)}}),ji=Qe.shortMonths||(vn.locale.getShortMonths?vn.locale.getShortMonths(Qe.locale):[]),si=vn.setMonth(Wt,0),dr=wn?function(Vn,zi){return wn(Vn,{originNode:zi,locale:Qe,today:vn.getNow(),type:"month"})}:void 0;return Me.createElement(qn,(0,ke.Z)({},ze,{rowNum:Ui,colNum:Xi,baseDate:si,getCellNode:dr,getCellText:function(zi){return Qe.monthFormat?Xt(zi,{locale:Qe,format:Qe.monthFormat,generateConfig:vn}):ji[vn.getMonth(zi)]},getCellClassName:hi,getCellDate:vn.addMonth,titleCell:function(zi){return Xt(zi,{locale:Qe,format:"YYYY-MM",generateConfig:vn})}}))}var gs=qo;function Ps(ze){var Ye=ze.prefixCls,Qe=ze.operationRef,Nt=ze.onViewDateChange,Wt=ze.generateConfig,vn=ze.value,wn=ze.viewDate,Gn=ze.onPanelChange,Jn=ze.onSelect,gi="".concat(Ye,"-month-panel");Qe.current={onKeyDown:function(ji){return Bo(ji,{onLeftRight:function(dr){Jn(Wt.addMonth(vn||wn,dr),"key")},onCtrlLeftRight:function(dr){Jn(Wt.addYear(vn||wn,dr),"key")},onUpDown:function(dr){Jn(Wt.addMonth(vn||wn,dr*Xi),"key")},onEnter:function(){Gn("date",vn||wn)}})}};var Ki=function(ji){var si=Wt.addYear(wn,ji);Nt(si),Gn(null,si)};return Me.createElement("div",{className:gi},Me.createElement(rr,(0,ke.Z)({},ze,{prefixCls:Ye,onPrevYear:function(){Ki(-1)},onNextYear:function(){Ki(1)},onYearClick:function(){Gn("year",wn)}})),Me.createElement(gs,(0,ke.Z)({},ze,{prefixCls:Ye,onSelect:function(ji){Jn(ji,"mouse"),Gn("date",ji)}})))}var Ro=Ps;function Ho(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.locale,Wt=ze.viewDate,vn=ze.onNextYear,wn=ze.onPrevYear,Gn=ze.onYearClick,Jn=Me.useContext(sr),gi=Jn.hideHeader;if(gi)return null;var Ki="".concat(Ye,"-header");return Me.createElement(Ji,(0,ke.Z)({},ze,{prefixCls:Ki,onSuperPrev:wn,onSuperNext:vn}),Me.createElement("button",{type:"button",onClick:Gn,className:"".concat(Ye,"-year-btn")},Xt(Wt,{locale:Nt,format:Nt.yearFormat,generateConfig:Qe})))}var Rr=Ho,yr=4,Eo=1;function oi(ze){var Ye=ze.prefixCls,Qe=ze.locale,Nt=ze.value,Wt=ze.viewDate,vn=ze.generateConfig,wn=ze.cellRender,Gn=Me.useContext(bt),Jn=Gn.rangedValue,gi=Gn.hoverRangedValue,Ki="".concat(Ye,"-cell"),hi=jn({cellPrefixCls:Ki,value:Nt,generateConfig:vn,rangedValue:Jn,hoverRangedValue:gi,isSameCell:function(Vn,zi){return Ce(vn,Vn,zi)},isInView:function(){return!0},offsetCell:function(Vn,zi){return vn.addMonth(Vn,zi*3)}}),ji=vn.setDate(vn.setMonth(Wt,0),1),si=wn?function(dr,Vn){return wn(dr,{originNode:Vn,locale:Qe,today:vn.getNow(),type:"quarter"})}:void 0;return Me.createElement(qn,(0,ke.Z)({},ze,{rowNum:Eo,colNum:yr,baseDate:ji,getCellNode:si,getCellText:function(Vn){return Xt(Vn,{locale:Qe,format:Qe.quarterFormat||"[Q]Q",generateConfig:vn})},getCellClassName:hi,getCellDate:function(Vn,zi){return vn.addMonth(Vn,zi*3)},titleCell:function(Vn){return Xt(Vn,{locale:Qe,format:"YYYY-[Q]Q",generateConfig:vn})}}))}var Na=oi;function qa(ze){var Ye=ze.prefixCls,Qe=ze.operationRef,Nt=ze.onViewDateChange,Wt=ze.generateConfig,vn=ze.value,wn=ze.viewDate,Gn=ze.onPanelChange,Jn=ze.onSelect,gi="".concat(Ye,"-quarter-panel");Qe.current={onKeyDown:function(ji){return Bo(ji,{onLeftRight:function(dr){Jn(Wt.addMonth(vn||wn,dr*3),"key")},onCtrlLeftRight:function(dr){Jn(Wt.addYear(vn||wn,dr),"key")},onUpDown:function(dr){Jn(Wt.addYear(vn||wn,dr),"key")}})}};var Ki=function(ji){var si=Wt.addYear(wn,ji);Nt(si),Gn(null,si)};return Me.createElement("div",{className:gi},Me.createElement(Rr,(0,ke.Z)({},ze,{prefixCls:Ye,onPrevYear:function(){Ki(-1)},onNextYear:function(){Ki(1)},onYearClick:function(){Gn("year",wn)}})),Me.createElement(Na,(0,ke.Z)({},ze,{prefixCls:Ye,onSelect:function(ji){Jn(ji,"mouse")}})))}var tl=qa;function Ta(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.locale,Wt=ze.value,vn=ze.disabledDate,wn=ze.onSelect,Gn=Me.useContext(bt),Jn=Gn.rangedValue,gi=Gn.hoverRangedValue,Ki=Me.useContext(sr),hi=Ki.onDateMouseEnter,ji=Ki.onDateMouseLeave,si=(gi==null?void 0:gi[0])||(Jn==null?void 0:Jn[0]),dr=(gi==null?void 0:gi[1])||(Jn==null?void 0:Jn[1]),Vn="".concat(Ye,"-cell"),zi=function(lo){var co=Bn({cellDate:lo,mode:"week",disabledDate:vn,generateConfig:Qe});return Me.createElement("td",{key:"week",className:nn()(Vn,"".concat(Vn,"-week")),onClick:function(){co||wn(lo,"mouse")},onMouseEnter:function(){!co&&hi&&hi(lo)},onMouseLeave:function(){!co&&ji&&ji(lo)}},Me.createElement("div",{className:"".concat(Vn,"-inner")},Qe.locale.getWeek(Nt.locale,lo)))},lr="".concat(Ye,"-week-panel-row"),oo=function(lo){var co,Pr=Le(Qe,Nt.locale,si,lo),$i=Le(Qe,Nt.locale,dr,lo);return nn()(lr,(co={},(0,mt.Z)(co,"".concat(lr,"-selected"),!Jn&&Le(Qe,Nt.locale,Wt,lo)),(0,mt.Z)(co,"".concat(lr,"-range-start"),Pr),(0,mt.Z)(co,"".concat(lr,"-range-end"),$i),(0,mt.Z)(co,"".concat(lr,"-range-hover"),!Pr&&!$i&&dn(Qe,si,dr,lo)),co))};return Me.createElement(Ht,(0,ke.Z)({},ze,{panelName:"week",prefixColumn:zi,rowClassName:oo,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var sa=Ta,Oa=10;function nl(ze){var Ye=ze.prefixCls,Qe=ze.generateConfig,Nt=ze.viewDate,Wt=ze.onPrevDecade,vn=ze.onNextDecade,wn=ze.onDecadeClick,Gn=Me.useContext(sr),Jn=Gn.hideHeader;if(Jn)return null;var gi="".concat(Ye,"-header"),Ki=Qe.getYear(Nt),hi=Math.floor(Ki/Oa)*Oa,ji=hi+Oa-1;return Me.createElement(Ji,(0,ke.Z)({},ze,{prefixCls:gi,onSuperPrev:Wt,onSuperNext:vn}),Me.createElement("button",{type:"button",onClick:wn,className:"".concat(Ye,"-decade-btn")},hi,"-",ji))}var Qt=nl,Su=3,Ia=4;function qt(ze){var Ye=ze.prefixCls,Qe=ze.value,Nt=ze.viewDate,Wt=ze.locale,vn=ze.generateConfig,wn=ze.cellRender,Gn=Me.useContext(bt),Jn=Gn.rangedValue,gi=Gn.hoverRangedValue,Ki="".concat(Ye,"-cell"),hi=vn.getYear(Nt),ji=Math.floor(hi/Oa)*Oa,si=ji+Oa-1,dr=vn.setYear(Nt,ji-Math.ceil((Su*Ia-Oa)/2)),Vn=vn.getNow(),zi=function(lo){var co=vn.getYear(lo);return ji<=co&&co<=si},lr=jn({cellPrefixCls:Ki,value:Qe,generateConfig:vn,rangedValue:Jn,hoverRangedValue:gi,isSameCell:function(lo,co){return _t(vn,lo,co)},isInView:zi,offsetCell:function(lo,co){return vn.addYear(lo,co)}}),oo=wn?function(Yr,lo){return wn(Yr,{originNode:lo,today:Vn,type:"year",locale:Wt})}:void 0;return Me.createElement(qn,(0,ke.Z)({},ze,{rowNum:Ia,colNum:Su,baseDate:dr,getCellNode:oo,getCellText:vn.getYear,getCellClassName:lr,getCellDate:vn.addYear,titleCell:function(lo){return Xt(lo,{locale:Wt,format:"YYYY",generateConfig:vn})}}))}var ys=qt;function Tl(ze){var Ye=ze.prefixCls,Qe=ze.operationRef,Nt=ze.onViewDateChange,Wt=ze.generateConfig,vn=ze.value,wn=ze.viewDate,Gn=ze.sourceMode,Jn=ze.onSelect,gi=ze.onPanelChange,Ki="".concat(Ye,"-year-panel");Qe.current={onKeyDown:function(si){return Bo(si,{onLeftRight:function(Vn){Jn(Wt.addYear(vn||wn,Vn),"key")},onCtrlLeftRight:function(Vn){Jn(Wt.addYear(vn||wn,Vn*Oa),"key")},onUpDown:function(Vn){Jn(Wt.addYear(vn||wn,Vn*Su),"key")},onEnter:function(){gi(Gn==="date"?"date":"month",vn||wn)}})}};var hi=function(si){var dr=Wt.addYear(wn,si*10);Nt(dr),gi(null,dr)};return Me.createElement("div",{className:Ki},Me.createElement(Qt,(0,ke.Z)({},ze,{prefixCls:Ye,onPrevDecade:function(){hi(-1)},onNextDecade:function(){hi(1)},onDecadeClick:function(){gi("decade",wn)}})),Me.createElement(ys,(0,ke.Z)({},ze,{prefixCls:Ye,onSelect:function(si){gi(Gn==="date"?"date":"month",si),Jn(si,"mouse")}})))}var Ol=Tl;function ws(ze,Ye,Qe){return Qe?Me.createElement("div",{className:"".concat(ze,"-footer-extra")},Qe(Ye)):null}function Ss(ze){var Ye=ze.prefixCls,Qe=ze.components,Nt=Qe===void 0?{}:Qe,Wt=ze.needConfirmButton,vn=ze.onNow,wn=ze.onOk,Gn=ze.okDisabled,Jn=ze.showNow,gi=ze.locale,Ki,hi;if(Wt){var ji=Nt.button||"button";vn&&Jn!==!1&&(Ki=Me.createElement("li",{className:"".concat(Ye,"-now")},Me.createElement("a",{className:"".concat(Ye,"-now-btn"),onClick:vn},gi.now))),hi=Wt&&Me.createElement("li",{className:"".concat(Ye,"-ok")},Me.createElement(ji,{disabled:Gn,onClick:wn},gi.ok))}return!Ki&&!hi?null:Me.createElement("ul",{className:"".concat(Ye,"-ranges")},Ki,hi)}var eu=["date","month"];function il(ze){var Ye,Qe=ze,Nt=Qe.prefixCls,Wt=Nt===void 0?"rc-picker":Nt,vn=Qe.className,wn=Qe.style,Gn=Qe.locale,Jn=Qe.generateConfig,gi=Qe.value,Ki=Qe.defaultValue,hi=Qe.pickerValue,ji=Qe.defaultPickerValue,si=Qe.disabledDate,dr=Qe.mode,Vn=Qe.picker,zi=Vn===void 0?"date":Vn,lr=Qe.tabIndex,oo=lr===void 0?0:lr,Yr=Qe.showNow,lo=Qe.showTime,co=Qe.showToday,Pr=Qe.renderExtraFooter,$i=Qe.hideHeader,Ea=Qe.onSelect,$o=Qe.onChange,Pa=Qe.onPanelChange,$a=Qe.onMouseDown,Ha=Qe.onPickerValueChange,ja=Qe.onOk,js=Qe.components,Za=Qe.direction,ma=Qe.hourStep,es=ma===void 0?1:ma,zs=Qe.minuteStep,xs=zs===void 0?1:zs,Cs=Qe.secondStep,Vs=Cs===void 0?1:Cs,hl=Qe.dateRender,Fl=Qe.monthCellRender,xu=Qe.cellRender,qs=zi==="date"&&!!lo||zi==="time",Eu=24%es===0,Ba=60%xs===0,al=60%Vs===0,va=Me.useContext(sr),As=va.operationRef,Es=va.onSelect,_s=va.hideRanges,Gu=va.defaultOpenValue,ea=Me.useContext(bt),da=ea.inRange,vl=ea.panelPosition,Yl=ea.rangedValue,Ks=ea.hoverRangedValue,yl=Me.useRef({}),Fa=Me.useRef(!0),Xl=(0,Sn.Z)(null,{value:gi,defaultValue:Ki,postState:function(Po){return!Po&&Gu&&zi==="time"?Gu:Po}}),Iu=(0,un.Z)(Xl,2),iu=Iu[0],qu=Iu[1],ad=(0,Sn.Z)(null,{value:hi,defaultValue:ji||iu,postState:function(Po){var Va=Jn.getNow();if(!Po)return Va;if(!iu&&lo){var sl=(0,Rn.Z)(lo)==="object"?lo.defaultValue:Ki;return Sr(Jn,Array.isArray(Po)?Po[0]:Po,sl||Va)}return Array.isArray(Po)?Po[0]:Po}}),ya=(0,un.Z)(ad,2),Ns=ya[0],Ru=ya[1],fl=function(Po){Ru(Po),Ha&&Ha(Po)},$u=function(Po){var Va=Un[zi];return Va?Va(Po):Po},Gl=(0,Sn.Z)(function(){return zi==="time"?"time":$u("date")},{value:dr}),Ds=(0,un.Z)(Gl,2),Ts=Ds[0],Js=Ds[1];Me.useEffect(function(){Js(zi)},[zi]);var gl=Me.useState(function(){return Ts}),Ll=(0,un.Z)(gl,2),Xa=Ll[0],Il=Ll[1],ru=function(Po,Va){var sl=$u(Po||Ts);Il(Ts),Js(sl),Pa&&(Ts!==sl||st(Jn,Ns,Ns))&&Pa(Va,sl)},Sl=function(Po,Va){var sl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Ts===zi||sl)&&(qu(Po),Ea&&Ea(Po),Es&&Es(Po,Va),$o&&!st(Jn,Po,iu)&&!(si!=null&&si(Po))&&$o(Po))},ou=function(Po){if(eu.includes(Ts)){var Va,sl,mc=Ts==="date";switch(Po===fi.Z.PAGE_UP||Po===fi.Z.PAGE_DOWN?sl=mc?Jn.addMonth:Jn.addYear:sl=mc?Jn.addDate:Jn.addMonth,Po){case fi.Z.LEFT:case fi.Z.PAGE_UP:Va=sl(Ns,-1);break;case fi.Z.RIGHT:case fi.Z.PAGE_DOWN:Va=sl(Ns,1);break;case fi.Z.UP:case fi.Z.DOWN:Va=sl(Ns,Number("".concat(Po===fi.Z.UP?"-":"").concat(mc?hn:Xi)));break}if(Va)return!(si!=null&&si(Va))}return!0},Mc=function(Po){if(yl.current&&yl.current.onKeyDown){var Va=!0,sl=Po.which;if([fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN,fi.Z.PAGE_UP,fi.Z.PAGE_DOWN,fi.Z.ENTER].includes(sl)&&(Po.preventDefault(),sl!==fi.Z.ENTER&&oo===0&&(Va=ou(sl))),Va)return yl.current.onKeyDown(Po)}return(0,Lt.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Ls=function(Po){yl.current&&yl.current.onBlur&&yl.current.onBlur(Po)};As&&vl!=="right"&&(As.current={onKeyDown:Mc,onClose:function(){yl.current&&yl.current.onClose&&yl.current.onClose()}}),Me.useEffect(function(){gi&&!Fa.current&&Ru(gi)},[gi]),Me.useEffect(function(){Fa.current=!1},[]);var Pu,aa=Ti({cellRender:xu,monthCellRender:Fl,dateRender:hl}),Fs=(0,ht.Z)((0,ht.Z)({},ze),{},{cellRender:aa,operationRef:yl,prefixCls:Wt,viewDate:Ns,value:iu,onViewDateChange:fl,sourceMode:Xa,onPanelChange:ru,disabledDate:si});switch(delete Fs.onChange,delete Fs.onSelect,Ts){case"decade":Pu=Me.createElement(fo,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}));break;case"year":Pu=Me.createElement(Ol,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}));break;case"month":Pu=Me.createElement(Ro,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}));break;case"quarter":Pu=Me.createElement(tl,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}));break;case"week":Pu=Me.createElement(sa,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}));break;case"time":delete Fs.showTime,Pu=Me.createElement(zr,(0,ke.Z)({},Fs,(0,Rn.Z)(lo)==="object"?lo:null,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}));break;default:lo?Pu=Me.createElement(ko,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}})):Pu=Me.createElement(Ht,(0,ke.Z)({},Fs,{onSelect:function(Po,Va){fl(Po),Sl(Po,Va)}}))}var Zu,Uu,au=function(){var Po=Jn.getNow(),Va=ki(Jn.getHour(Po),Jn.getMinute(Po),Jn.getSecond(Po),Eu?es:1,Ba?xs:1,al?Vs:1),sl=rn(Jn,Po,Va[0],Va[1],Va[2]);Sl(sl,"submit")};_s||(Zu=ws(Wt,Ts,Pr),lo&&Ts!=="date"?Uu=null:Uu=Ss({prefixCls:Wt,components:js,needConfirmButton:qs,okDisabled:!iu||si&&si(iu),locale:Gn,showNow:Yr,onNow:qs&&au,onOk:function(){iu&&(Sl(iu,"submit",!0),ja&&ja(iu))}}));var sd;if(co&&Ts==="date"&&zi==="date"&&!lo){var Du=Jn.getNow(),Yd="".concat(Wt,"-today-btn"),pc=si&&si(Du);sd=Me.createElement("a",{className:nn()(Yd,pc&&"".concat(Yd,"-disabled")),"aria-disabled":pc,onClick:function(){pc||Sl(Du,"mouse",!0)}},Gn.today)}return Me.createElement(sr.Provider,{value:(0,ht.Z)((0,ht.Z)({},va),{},{mode:Ts,hideHeader:"hideHeader"in ze?$i:va.hideHeader,hidePrevBtn:da&&vl==="right",hideNextBtn:da&&vl==="left"})},Me.createElement("div",{tabIndex:oo,className:nn()("".concat(Wt,"-panel"),vn,(Ye={},(0,mt.Z)(Ye,"".concat(Wt,"-panel-has-range"),Yl&&Yl[0]&&Yl[1]),(0,mt.Z)(Ye,"".concat(Wt,"-panel-has-range-hover"),Ks&&Ks[0]&&Ks[1]),(0,mt.Z)(Ye,"".concat(Wt,"-panel-rtl"),Za==="rtl"),Ye)),style:wn,onKeyDown:Mc,onBlur:Ls,onMouseDown:$a},Pu,Zu||Uu||sd?Me.createElement("div",{className:"".concat(Wt,"-footer")},Zu,Uu,sd):null))}var os=il,rl=we(35593),ku={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 hc(ze){var Ye,Qe=ze.prefixCls,Nt=ze.popupElement,Wt=ze.popupStyle,vn=ze.visible,wn=ze.dropdownClassName,Gn=ze.dropdownAlign,Jn=ze.transitionName,gi=ze.getPopupContainer,Ki=ze.children,hi=ze.range,ji=ze.popupPlacement,si=ze.direction,dr="".concat(Qe,"-dropdown"),Vn=function(){return ji!==void 0?ji:si==="rtl"?"bottomRight":"bottomLeft"};return Me.createElement(rl.Z,{showAction:[],hideAction:[],popupPlacement:Vn(),builtinPlacements:ku,prefixCls:dr,popupTransitionName:Jn,popup:Nt,popupAlign:Gn,popupVisible:vn,popupClassName:nn()(wn,(Ye={},(0,mt.Z)(Ye,"".concat(dr,"-range"),hi),(0,mt.Z)(Ye,"".concat(dr,"-rtl"),si==="rtl"),Ye)),popupStyle:Wt,getPopupContainer:gi},Ki)}var cu=hc;function Nu(ze){var Ye=ze.prefixCls,Qe=ze.presets,Nt=ze.onClick,Wt=ze.onHover;return Qe.length?Me.createElement("div",{className:"".concat(Ye,"-presets")},Me.createElement("ul",null,Qe.map(function(vn,wn){var Gn=vn.label,Jn=vn.value;return Me.createElement("li",{key:wn,onClick:function(){return Nt==null?void 0:Nt(xn(Jn))},onMouseEnter:function(){return Wt==null?void 0:Wt(xn(Jn))},onMouseLeave:function(){return Wt==null?void 0:Wt(null)}},Gn)}))):null}function ao(ze){var Ye=ze.picker,Qe=ze.disabledHours,Nt=ze.disabledMinutes,Wt=ze.disabledSeconds;Ye==="time"&&(Qe||Nt||Wt)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function vd(ze,Ye,Qe){var Nt=(0,Rn.Z)(Ye)==="object"?Ye.clearIcon:Qe;return Nt||Me.createElement("span",{className:"".concat(ze,"-clear-btn")})}function Dd(ze){var Ye,Qe=ze,Nt=Qe.prefixCls,Wt=Nt===void 0?"rc-picker":Nt,vn=Qe.id,wn=Qe.name,Gn=Qe.tabIndex,Jn=Qe.style,gi=Qe.className,Ki=Qe.dropdownClassName,hi=Qe.dropdownAlign,ji=Qe.popupStyle,si=Qe.transitionName,dr=Qe.generateConfig,Vn=Qe.locale,zi=Qe.inputReadOnly,lr=Qe.allowClear,oo=Qe.autoFocus,Yr=Qe.showTime,lo=Qe.picker,co=lo===void 0?"date":lo,Pr=Qe.format,$i=Qe.use12Hours,Ea=Qe.value,$o=Qe.defaultValue,Pa=Qe.presets,$a=Qe.open,Ha=Qe.defaultOpen,ja=Qe.defaultOpenValue,js=Qe.suffixIcon,Za=Qe.clearIcon,ma=Qe.disabled,es=Qe.disabledDate,zs=Qe.placeholder,xs=Qe.getPopupContainer,Cs=Qe.pickerRef,Vs=Qe.panelRender,hl=Qe.onChange,Fl=Qe.onOpenChange,xu=Qe.onFocus,qs=Qe.onBlur,Eu=Qe.onMouseDown,Ba=Qe.onMouseUp,al=Qe.onMouseEnter,va=Qe.onMouseLeave,As=Qe.onContextMenu,Es=Qe.onClick,_s=Qe.onKeyDown,Gu=Qe.onSelect,ea=Qe.direction,da=Qe.autoComplete,vl=da===void 0?"off":da,Yl=Qe.inputRender,Ks=Qe.changeOnBlur,yl=Me.useRef(null),Fa=co==="date"&&!!Yr||co==="time",Xl=Tt(Pa),Iu=di(yo(Pr,co,Yr,$i)),iu=Me.useRef(null),qu=Me.useRef(null),ad=Me.useRef(null),ya=(0,Sn.Z)(null,{value:Ea,defaultValue:$o}),Ns=(0,un.Z)(ya,2),Ru=Ns[0],fl=Ns[1],$u=Me.useState(Ru),Gl=(0,un.Z)($u,2),Ds=Gl[0],Ts=Gl[1],Js=Me.useRef(null),gl=(0,Sn.Z)(!1,{value:$a,defaultValue:Ha,postState:function(ra){return ma?!1:ra},onChange:function(ra){Fl&&Fl(ra),!ra&&Js.current&&Js.current.onClose&&Js.current.onClose()}}),Ll=(0,un.Z)(gl,2),Xa=Ll[0],Il=Ll[1],ru=In(Ds,{formatList:Iu,generateConfig:dr,locale:Vn}),Sl=(0,un.Z)(ru,2),ou=Sl[0],Mc=Sl[1],Ls=Hi({valueTexts:ou,onTextChange:function(ra){var gu=ai(ra,{locale:Vn,formatList:Iu,generateConfig:dr});gu&&(!es||!es(gu))&&Ts(gu)}}),Pu=(0,un.Z)(Ls,3),aa=Pu[0],Fs=Pu[1],Zu=Pu[2],Uu=function(ra){Ts(ra),fl(ra),hl&&!st(dr,Ru,ra)&&hl(ra,ra?Xt(ra,{generateConfig:dr,locale:Vn,format:Iu[0]}):"")},au=function(ra){ma&&ra||Il(ra)},sd=function(ra){return Xa&&Js.current&&Js.current.onKeyDown?Js.current.onKeyDown(ra):((0,Lt.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Du=function(){for(var ra=arguments.length,gu=new Array(ra),Gs=0;Gs<ra;Gs++)gu[Gs]=arguments[Gs];Es==null||Es.apply(void 0,gu),yl.current&&(yl.current.focus(),au(!0))},Yd=function(ra){Ks&&Uu(Ds),qs==null||qs(ra)},pc=ln({blurToCancel:Fa,open:Xa,value:aa,triggerOpen:au,forwardKeyDown:sd,isClickOutside:function(ra){return!Zt([iu.current,qu.current,ad.current],ra)},onSubmit:function(){return!Ds||es&&es(Ds)?!1:(Uu(Ds),au(!1),Zu(),!0)},onCancel:function(){au(!1),Ts(Ru),Zu()},onKeyDown:function(ra,gu){_s==null||_s(ra,gu)},onFocus:xu,onBlur:Yd,changeOnBlur:Ks}),La=(0,un.Z)(pc,2),Po=La[0],Va=La[1],sl=Va.focused,mc=Va.typing;Me.useEffect(function(){Xa||(Ts(Ru),!ou.length||ou[0]===""?Fs(""):Mc!==aa&&Zu())},[Xa,ou]),Me.useEffect(function(){Xa||Zu()},[co]),Me.useEffect(function(){Ts(Ru)},[Ru]),Cs&&(Cs.current={focus:function(){var ra;(ra=yl.current)===null||ra===void 0||ra.focus()},blur:function(){var ra;(ra=yl.current)===null||ra===void 0||ra.blur()}});var kc=Yi(aa,{formatList:Iu,generateConfig:dr,locale:Vn}),Hs=(0,un.Z)(kc,3),Nc=Hs[0],su=Hs[1],xl=Hs[2],ba=(0,ht.Z)((0,ht.Z)({},ze),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),ec=Me.createElement("div",{className:"".concat(Wt,"-panel-layout")},Me.createElement(Nu,{prefixCls:Wt,presets:Xl,onClick:function(ra){Uu(ra),au(!1)}}),Me.createElement(os,(0,ke.Z)({},ba,{generateConfig:dr,className:nn()((0,mt.Z)({},"".concat(Wt,"-panel-focused"),!mc)),value:Ds,locale:Vn,tabIndex:-1,onSelect:function(ra){Gu==null||Gu(ra),Ts(ra)},direction:ea,onPanelChange:function(ra,gu){var Gs=ze.onPanelChange;xl(!0),Gs==null||Gs(ra,gu)}})));Vs&&(ec=Vs(ec));var Ku=Me.createElement("div",{className:"".concat(Wt,"-panel-container"),ref:iu,onMouseDown:function(ra){ra.preventDefault()}},ec),Td;js&&(Td=Me.createElement("span",{className:"".concat(Wt,"-suffix"),onMouseDown:function(ra){ra.preventDefault()}},js));var Xh=vd(Wt,lr,Za),tc=Me.createElement("span",{onMouseDown:function(ra){ra.preventDefault(),ra.stopPropagation()},onMouseUp:function(ra){ra.preventDefault(),ra.stopPropagation(),Uu(null),au(!1)},className:"".concat(Wt,"-clear"),role:"button"},Xh),nc=!!lr&&Ru&&!ma,qc=(0,ht.Z)((0,ht.Z)((0,ht.Z)({id:vn,tabIndex:Gn,disabled:ma,readOnly:zi||typeof Iu[0]=="function"||!mc,value:Nc||aa,onChange:function(ra){Fs(ra.target.value)},autoFocus:oo,placeholder:zs,ref:yl,title:aa},Po),{},{size:ho(co,Iu[0],dr),name:wn},(0,Dn.Z)(ze,{aria:!0,data:!0})),{},{autoComplete:vl}),Xd=Yl?Yl(qc):Me.createElement("input",qc),fu=function(ra,gu){(gu==="submit"||gu!=="key"&&!Fa)&&(Uu(ra),au(!1))},Vc=ea==="rtl"?"bottomRight":"bottomLeft";return Me.createElement(sr.Provider,{value:{operationRef:Js,hideHeader:co==="time",onSelect:fu,open:Xa,defaultOpenValue:ja,onDateMouseEnter:su,onDateMouseLeave:xl}},Me.createElement(cu,{visible:Xa,popupElement:Ku,popupStyle:ji,prefixCls:Wt,dropdownClassName:Ki,dropdownAlign:hi,getPopupContainer:xs,transitionName:si,popupPlacement:Vc,direction:ea},Me.createElement("div",{ref:ad,className:nn()(Wt,gi,(Ye={},(0,mt.Z)(Ye,"".concat(Wt,"-disabled"),ma),(0,mt.Z)(Ye,"".concat(Wt,"-focused"),sl),(0,mt.Z)(Ye,"".concat(Wt,"-rtl"),ea==="rtl"),Ye)),style:Jn,onMouseDown:Eu,onMouseUp:Ba,onMouseEnter:al,onMouseLeave:va,onContextMenu:As,onClick:Du},Me.createElement("div",{className:nn()("".concat(Wt,"-input"),(0,mt.Z)({},"".concat(Wt,"-input-placeholder"),!!Nc)),ref:qu},Xd,Td,nc&&tc))))}var bc=function(ze){(0,Yn.Z)(Qe,ze);var Ye=(0,Ai.Z)(Qe);function Qe(){var Nt;(0,gn.Z)(this,Qe);for(var Wt=arguments.length,vn=new Array(Wt),wn=0;wn<Wt;wn++)vn[wn]=arguments[wn];return Nt=Ye.call.apply(Ye,[this].concat(vn)),(0,mt.Z)((0,yi.Z)(Nt),"pickerRef",Me.createRef()),(0,mt.Z)((0,yi.Z)(Nt),"focus",function(){Nt.pickerRef.current&&Nt.pickerRef.current.focus()}),(0,mt.Z)((0,yi.Z)(Nt),"blur",function(){Nt.pickerRef.current&&Nt.pickerRef.current.blur()}),Nt}return(0,Ln.Z)(Qe,[{key:"render",value:function(){return Me.createElement(Dd,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),Qe}(Me.Component),Ld=bc;function lh(ze,Ye){var Qe=ze.picker,Nt=ze.locale,Wt=ze.selectedValue,vn=ze.disabledDate,wn=ze.disabled,Gn=ze.generateConfig,Jn=Ot(Wt,0),gi=Ot(Wt,1);function Ki(Vn){return Gn.locale.getWeekFirstDate(Nt.locale,Vn)}function hi(Vn){var zi=Gn.getYear(Vn),lr=Gn.getMonth(Vn);return zi*100+lr}function ji(Vn){var zi=Gn.getYear(Vn),lr=We(Gn,Vn);return zi*10+lr}var si=Me.useCallback(function(Vn){if(wn[0]||vn&&vn(Vn))return!0;if(wn[1]&&gi)return!Ie(Gn,Vn,gi)&&Gn.isAfter(Vn,gi);if(!Ye&&gi)switch(Qe){case"quarter":return ji(Vn)>ji(gi);case"month":return hi(Vn)>hi(gi);case"week":return Ki(Vn)>Ki(gi);default:return!Ie(Gn,Vn,gi)&&Gn.isAfter(Vn,gi)}return!1},[vn,wn[1],gi,Ye]),dr=Me.useCallback(function(Vn){if(wn[1]||vn&&vn(Vn))return!0;if(wn[0]&&Jn)return!Ie(Gn,Vn,gi)&&Gn.isAfter(Jn,Vn);if(!Ye&&Jn)switch(Qe){case"quarter":return ji(Vn)<ji(Jn);case"month":return hi(Vn)<hi(Jn);case"week":return Ki(Vn)<Ki(Jn);default:return!Ie(Gn,Vn,Jn)&&Gn.isAfter(Jn,Vn)}return!1},[vn,wn[0],Jn,Ye]);return[si,dr]}var tr=we(80764),ll=we(8107);function Ra(ze,Ye,Qe,Nt,Wt,vn,wn,Gn,Jn,gi){var Ki=Me.useState(!1),hi=(0,un.Z)(Ki,2),ji=hi[0],si=hi[1],dr=(0,tr.useMergedState)(ze||!1,{value:Ye}),Vn=(0,un.Z)(dr,2),zi=Vn[0],lr=Vn[1],oo=(0,tr.useMergedState)(ze||!1,{value:Ye,onChange:function(es){gi==null||gi(es)}}),Yr=(0,un.Z)(oo,2),lo=Yr[0],co=Yr[1],Pr=(0,tr.useMergedState)(0,{value:Qe}),$i=(0,un.Z)(Pr,2),Ea=$i[0],$o=$i[1],Pa=Me.useState(null),$a=(0,un.Z)(Pa,2),Ha=$a[0],ja=$a[1];Me.useEffect(function(){lo&&si(!0)},[lo]);var js=function(es){return es===0?1:0},Za=(0,ll.Z)(function(ma,es,zs){if(es===!1)co(ma);else if(ma){$o(es),co(ma);var xs=js(es);!lo||![wn,Gn][xs]?ja(xs):(si(!1),Ha!==null&&ja(null))}else if(zs==="confirm"||zs==="blur"&&Nt){var Cs=zi?js(es):Ha;Cs!==null&&(si(!1),$o(Cs)),ja(null),Cs!==null&&!Jn[Cs]?(0,ar.Z)(function(){var Vs,hl=[Wt,vn][Cs];(Vs=hl.current)===null||Vs===void 0||Vs.focus()}):co(!1)}else co(!1),lr(!1)});return[lo,Ea,ji,Za]}function wr(ze,Ye,Qe,Nt){var Wt=en(ze,Qe,Nt,1);function vn(wn){return wn(ze,Ye)?"same":wn(Wt,Ye)?"closing":"far"}switch(Qe){case"year":return vn(function(wn,Gn){return Pt(Nt,wn,Gn)});case"quarter":case"month":return vn(function(wn,Gn){return _t(Nt,wn,Gn)});default:return vn(function(wn,Gn){return Ee(Nt,wn,Gn)})}}function ca(ze,Ye,Qe,Nt){var Wt=Ot(ze,0),vn=Ot(ze,1);if(Ye===0)return Wt;if(Wt&&vn){var wn=wr(Wt,vn,Qe,Nt);switch(wn){case"same":return Wt;case"closing":return Wt;default:return en(vn,Qe,Nt,-1)}}return Wt}function pa(ze){var Ye=ze.values,Qe=ze.picker,Nt=ze.defaultDates,Wt=ze.generateConfig,vn=Me.useState(function(){return[Ot(Nt,0),Ot(Nt,1)]}),wn=(0,un.Z)(vn,2),Gn=wn[0],Jn=wn[1],gi=Me.useState(null),Ki=(0,un.Z)(gi,2),hi=Ki[0],ji=Ki[1],si=Ot(Ye,0),dr=Ot(Ye,1);function Vn(lr){return Gn[lr]?Gn[lr]:Ot(hi,lr)||ca(Ye,lr,Qe,Wt)||si||dr||Wt.getNow()}function zi(lr,oo){if(lr){var Yr=Ii(hi,lr,oo);Jn(Ii(Gn,null,oo)||[null,null]);var lo=(oo+1)%2;Ot(Ye,lo)||(Yr=Ii(Yr,lr,lo)),ji(Yr)}else(si||dr)&&ji(null)}return[Vn,zi]}function Cr(ze,Ye){return ze&&ze[0]&&ze[1]&&Ye.isAfter(ze[0],ze[1])?[ze[1],ze[0]]:ze}function Al(ze,Ye,Qe,Nt){return!!(ze||Nt&&Nt[Ye]||Qe[(Ye+1)%2])}function Bu(ze){var Ye,Qe,Nt,Wt=ze,vn=Wt.prefixCls,wn=vn===void 0?"rc-picker":vn,Gn=Wt.id,Jn=Wt.style,gi=Wt.className,Ki=Wt.popupStyle,hi=Wt.dropdownClassName,ji=Wt.transitionName,si=Wt.dropdownAlign,dr=Wt.getPopupContainer,Vn=Wt.generateConfig,zi=Wt.locale,lr=Wt.placeholder,oo=Wt.autoFocus,Yr=Wt.disabled,lo=Wt.format,co=Wt.picker,Pr=co===void 0?"date":co,$i=Wt.showTime,Ea=Wt.use12Hours,$o=Wt.separator,Pa=$o===void 0?"~":$o,$a=Wt.value,Ha=Wt.defaultValue,ja=Wt.defaultPickerValue,js=Wt.open,Za=Wt.defaultOpen,ma=Wt.disabledDate,es=Wt.disabledTime,zs=Wt.dateRender,xs=Wt.monthCellRender,Cs=Wt.cellRender,Vs=Wt.panelRender,hl=Wt.presets,Fl=Wt.ranges,xu=Wt.allowEmpty,qs=Wt.allowClear,Eu=Wt.suffixIcon,Ba=Wt.clearIcon,al=Wt.pickerRef,va=Wt.inputReadOnly,As=Wt.mode,Es=Wt.renderExtraFooter,_s=Wt.onChange,Gu=Wt.onOpenChange,ea=Wt.onPanelChange,da=Wt.onCalendarChange,vl=Wt.onFocus,Yl=Wt.onBlur,Ks=Wt.onMouseDown,yl=Wt.onMouseUp,Fa=Wt.onMouseEnter,Xl=Wt.onMouseLeave,Iu=Wt.onClick,iu=Wt.onOk,qu=Wt.onKeyDown,ad=Wt.components,ya=Wt.order,Ns=Wt.direction,Ru=Wt.activePickerIndex,fl=Wt.autoComplete,$u=fl===void 0?"off":fl,Gl=Wt.changeOnBlur,Ds=Pr==="date"&&!!$i||Pr==="time",Ts=(0,Me.useRef)(null),Js=(0,Me.useRef)(null),gl=(0,Me.useRef)(null),Ll=(0,Me.useRef)(null),Xa=(0,Me.useRef)(null),Il=(0,Me.useRef)(null),ru=(0,Me.useRef)(null),Sl=(0,Me.useRef)(null),ou=di(yo(lo,Pr,$i,Ea)),Mc=(0,Me.useRef)(null),Ls=Me.useMemo(function(){return Array.isArray(Yr)?Yr:[Yr||!1,Yr||!1]},[Yr]),Pu=(0,Sn.Z)(null,{value:$a,defaultValue:Ha,postState:function(Lo){return Pr==="time"&&!ya?Lo:Cr(Lo,Vn)}}),aa=(0,un.Z)(Pu,2),Fs=aa[0],Zu=aa[1],Uu=pa({values:Fs,picker:Pr,defaultDates:ja,generateConfig:Vn}),au=(0,un.Z)(Uu,2),sd=au[0],Du=au[1],Yd=(0,Sn.Z)(Fs,{postState:function(Lo){var na=Lo;if(Ls[0]&&Ls[1])return na;for(var ds=0;ds<2;ds+=1)Ls[ds]&&!na&&!Ot(na,ds)&&!Ot(xu,ds)&&(na=Ii(na,Vn.getNow(),ds));return na}}),pc=(0,un.Z)(Yd,2),La=pc[0],Po=pc[1],Va=(0,Sn.Z)([Pr,Pr],{value:As}),sl=(0,un.Z)(Va,2),mc=sl[0],kc=sl[1];(0,Me.useEffect)(function(){kc([Pr,Pr])},[Pr]);var Hs=function(Lo,na){kc(Lo),ea&&ea(na,Lo)},Nc=Ra(Za,js,Ru,Gl,Il,ru,Ot(La,0),Ot(La,1),Ls,Gu),su=(0,un.Z)(Nc,4),xl=su[0],ba=su[1],ec=su[2],Ku=su[3],Td=xl&&ba===0,Xh=xl&&ba===1,tc=lh({picker:Pr,selectedValue:La,locale:zi,disabled:Ls,disabledDate:ma,generateConfig:Vn},!xl||ec),nc=(0,un.Z)(tc,2),qc=nc[0],Xd=nc[1],fu=(0,Me.useState)(0),Vc=(0,un.Z)(fu,2),Ua=Vc[0],ra=Vc[1];(0,Me.useEffect)(function(){!xl&&Ts.current&&ra(Ts.current.offsetWidth)},[xl]);function gu(cs){Ku(!0,cs,"open"),(0,ar.Z)(function(){var Lo,na=[Il,ru][cs];(Lo=na.current)===null||Lo===void 0||Lo.focus()},0)}function Gs(cs,Lo){var na=cs,ds=Ot(na,0),$s=Ot(na,1);ds&&$s&&Vn.isAfter(ds,$s)&&(Pr==="week"&&!Le(Vn,zi.locale,ds,$s)||Pr==="quarter"&&!Ce(Vn,ds,$s)||Pr!=="week"&&Pr!=="quarter"&&Pr!=="time"&&!Ie(Vn,ds,$s)?Lo===0?(na=[ds,null],$s=null):(ds=null,na=[null,$s]):(Pr!=="time"||ya!==!1)&&(na=Cr(na,Vn))),Po(na);var Yu=na&&na[0]?Xt(na[0],{generateConfig:Vn,locale:zi,format:ou[0]}):"",pu=na&&na[1]?Xt(na[1],{generateConfig:Vn,locale:zi,format:ou[0]}):"";if(da){var oc={range:Lo===0?"start":"end"};da(na,[Yu,pu],oc)}var yc=Al(ds,0,Ls,xu),qd=Al($s,1,Ls,xu),cd=na===null||yc&&qd;cd&&(Zu(na),_s&&(!st(Vn,Ot(Fs,0),ds)||!st(Vn,Ot(Fs,1),$s))&&_s(na,[Yu,pu]))}var Jd=function(Lo){return xl&&Mc.current&&Mc.current.onKeyDown?Mc.current.onKeyDown(Lo):((0,Lt.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},fh={formatList:ou,generateConfig:Vn,locale:zi},Rl=In(Ot(La,0),fh),ld=(0,un.Z)(Rl,2),ic=ld[0],Od=ld[1],Tc=In(Ot(La,1),fh),Jh=(0,un.Z)(Tc,2),xd=Jh[0],Qh=Jh[1],rc=function(Lo,na){var ds=ai(Lo,{locale:zi,formatList:ou,generateConfig:Vn}),$s=na===0?qc:Xd;ds&&!$s(ds)&&(Po(Ii(La,ds,na)),Du(ds,na))},vc=Hi({valueTexts:ic,onTextChange:function(Lo){return rc(Lo,0)}}),Mh=(0,un.Z)(vc,3),Qd=Mh[0],ud=Mh[1],Id=Mh[2],bl=Hi({valueTexts:xd,onTextChange:function(Lo){return rc(Lo,1)}}),Oc=(0,un.Z)(bl,3),kh=Oc[0],nt=Oc[1],ut=Oc[2],Ne=(0,Me.useState)(null),En=(0,un.Z)(Ne,2),pi=En[0],er=En[1],Qi=(0,Me.useState)(null),bi=(0,un.Z)(Qi,2),bn=bi[0],Li=bi[1],xr=Yi(Qd,{formatList:ou,generateConfig:Vn,locale:zi}),wo=(0,un.Z)(xr,3),Lr=wo[0],so=wo[1],Wr=wo[2],ga=Yi(kh,{formatList:ou,generateConfig:Vn,locale:zi}),kr=(0,un.Z)(ga,3),mr=kr[0],Zo=kr[1],Yo=kr[2],Co=function(Lo){Li(Ii(La,Lo,ba)),ba===0?so(Lo):Zo(Lo)},To=function(){Li(Ii(La,null,ba)),ba===0?Wr():Yo()},Ar=Me.useState(xl),vr=(0,un.Z)(Ar,2),Oo=vr[0],Fr=vr[1];Me.useEffect(function(){Fr(xl)},[xl]);var po=function(Lo){if(Gl&&Oo){var na=Ot(La,ba);na&&Gs(La,ba)}return Yl==null?void 0:Yl(Lo)},xo=function(Lo,na){return{blurToCancel:!Gl&&Ds,forwardKeyDown:Jd,onBlur:po,isClickOutside:function($s){return!Zt([Js.current,gl.current,Ll.current,Ts.current],$s)},onFocus:function($s){vl&&vl($s)},triggerOpen:function($s){$s?Ku($s,Lo,"open"):Ku($s,Ot(La,Lo)?Lo:!1,"blur")},onSubmit:function(){if(!La||ma&&ma(La[Lo]))return!1;Gs(La,Lo),na(),Ku(!1,ba,"confirm")},onCancel:function(){Ku(!1,Lo,"cancel"),Po(Fs),na()}}},Uo={onKeyDown:function(Lo,na){qu==null||qu(Lo,na)},changeOnBlur:Gl},Si=ln((0,ht.Z)((0,ht.Z)({},xo(0,Id)),{},{open:Td,value:Qd},Uo)),fr=(0,un.Z)(Si,2),ms=fr[0],la=fr[1],Vr=la.focused,No=la.typing,Wo=ln((0,ht.Z)((0,ht.Z)({},xo(1,ut)),{},{open:Xh,value:kh},Uo)),mo=(0,un.Z)(Wo,2),Sa=mo[0],Ka=mo[1],ts=Ka.focused,as=Ka.typing,ns=function(Lo){Iu&&Iu(Lo),!xl&&!Il.current.contains(Lo.target)&&!ru.current.contains(Lo.target)&&(Ls[0]?Ls[1]||gu(1):gu(0))},Ur=function(Lo){Ks&&Ks(Lo),xl&&(Vr||ts)&&!Il.current.contains(Lo.target)&&!ru.current.contains(Lo.target)&&Lo.preventDefault()},xa=Fs&&Fs[0]?Xt(Fs[0],{locale:zi,format:"YYYYMMDDHHmmss",generateConfig:Vn}):"",Ma=Fs&&Fs[1]?Xt(Fs[1],{locale:zi,format:"YYYYMMDDHHmmss",generateConfig:Vn}):"";(0,Me.useEffect)(function(){xl||(Po(Fs),!ic.length||ic[0]===""?ud(""):Od!==Qd&&Id(),!xd.length||xd[0]===""?nt(""):Qh!==kh&&ut())},[xl,ic,xd]),(0,Me.useEffect)(function(){Po(Fs)},[xa,Ma]);var Ko=Ti({cellRender:Cs,monthCellRender:xs,dateRender:zs}),Os=Me.useMemo(function(){if(Ko)return function(cs,Lo){return Ko(cs,(0,ht.Z)((0,ht.Z)({},Lo),{},{range:ba?"end":"start"}))}},[ba,Ko]);al&&(al.current={focus:function(){Il.current&&Il.current.focus()},blur:function(){Il.current&&Il.current.blur(),ru.current&&ru.current.blur()}});var hs=Tt(hl,Fl);function Ys(){var cs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Lo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},na=null;xl&&bn&&bn[0]&&bn[1]&&Vn.isAfter(bn[1],bn[0])&&(na=bn);var ds=$i;if($i&&(0,Rn.Z)($i)==="object"&&$i.defaultValue){var $s=$i.defaultValue;ds=(0,ht.Z)((0,ht.Z)({},$i),{},{defaultValue:Ot($s,ba)||void 0})}return Me.createElement(bt.Provider,{value:{inRange:!0,panelPosition:cs,rangedValue:pi||La,hoverRangedValue:na}},Me.createElement(os,(0,ke.Z)({},ze,Lo,{cellRender:Os,showTime:ds,mode:mc[ba],generateConfig:Vn,style:void 0,direction:Ns,disabledDate:ba===0?qc:Xd,disabledTime:function(pu){return es?es(pu,ba===0?"start":"end"):!1},className:nn()((0,mt.Z)({},"".concat(wn,"-panel-focused"),ba===0?!No:!as)),value:Ot(La,ba),locale:zi,tabIndex:-1,onPanelChange:function(pu,oc){ba===0&&Wr(!0),ba===1&&Yo(!0),Hs(Ii(mc,oc,ba),Ii(La,pu,ba));var yc=pu;cs==="right"&&mc[ba]===oc&&(yc=en(yc,oc,Vn,-1)),Du(yc,ba)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:ba===0?Ot(La,1):Ot(La,0)})))}var Zs=0,Jl=0;if(ba&&gl.current&&Xa.current&&Js.current&&Sl.current){Zs=gl.current.offsetWidth+Xa.current.offsetWidth;var $r=Sl.current.offsetLeft>Zs?Sl.current.offsetLeft-Zs:Sl.current.offsetLeft,Wa=Js.current.offsetWidth,Is=Sl.current.offsetWidth;Wa&&Is&&Zs>Wa-Is-(Ns==="rtl"?0:$r)&&(Jl=Zs)}var Hl=Ns==="rtl"?{right:Zs}:{left:Zs};function ha(){var cs,Lo=ws(wn,mc[ba],Es),na=Ss({prefixCls:wn,components:ad,needConfirmButton:Ds,okDisabled:!Ot(La,ba)||ma&&ma(La[ba]),locale:zi,onOk:function(){var Gc=Ot(La,ba);Gc&&(Gs(La,ba),iu==null||iu(La),Ku(!1,ba,"confirm"))}});if(Pr!=="time"&&!$i){var ds=sd(ba),$s=en(ds,Pr,Vn),Yu=mc[ba],pu=Yu===Pr,oc=Ys(pu?"left":!1,{pickerValue:ds,onPickerValueChange:function(Gc){Du(Gc,ba)}}),yc=Ys("right",{pickerValue:$s,onPickerValueChange:function(Gc){Du(en(Gc,Pr,Vn,-1),ba)}});Ns==="rtl"?cs=Me.createElement(Me.Fragment,null,yc,pu&&oc):cs=Me.createElement(Me.Fragment,null,oc,pu&&yc)}else cs=Ys();var qd=Me.createElement("div",{className:"".concat(wn,"-panel-layout")},Me.createElement(Nu,{prefixCls:wn,presets:hs,onClick:function(Gc){Gs(Gc,null),Ku(!1,ba,"preset")},onHover:function(Gc){er(Gc)}}),Me.createElement("div",null,Me.createElement("div",{className:"".concat(wn,"-panels")},cs),(Lo||na)&&Me.createElement("div",{className:"".concat(wn,"-footer")},Lo,na)));return Vs&&(qd=Vs(qd)),Me.createElement("div",{className:"".concat(wn,"-panel-container"),style:{marginLeft:Jl},ref:Js,onMouseDown:function(Gc){Gc.preventDefault()}},qd)}var ta=Me.createElement("div",{className:nn()("".concat(wn,"-range-wrapper"),"".concat(wn,"-").concat(Pr,"-range-wrapper")),style:{minWidth:Ua}},Me.createElement("div",{ref:Sl,className:"".concat(wn,"-range-arrow"),style:Hl}),ha()),qi;Eu&&(qi=Me.createElement("span",{className:"".concat(wn,"-suffix"),onMouseDown:function(Lo){Lo.preventDefault()}},Eu));var is=vd(wn,qs,Ba),bs=Me.createElement("span",{onMouseDown:function(Lo){Lo.preventDefault(),Lo.stopPropagation()},onMouseUp:function(Lo){Lo.preventDefault(),Lo.stopPropagation();var na=Fs;Ls[0]||(na=Ii(na,null,0)),Ls[1]||(na=Ii(na,null,1)),Gs(na,null),Ku(!1,ba,"clear")},className:"".concat(wn,"-clear"),role:"button"},is),ss=qs&&(Ot(Fs,0)&&!Ls[0]||Ot(Fs,1)&&!Ls[1]),Do={size:ho(Pr,ou[0],Vn)},oa=0,Ga=0;gl.current&&Ll.current&&Xa.current&&(ba===0?Ga=gl.current.offsetWidth:(oa=Zs,Ga=Ll.current.offsetWidth));var El=Ns==="rtl"?{right:oa}:{left:oa},pf=function(Lo,na){var ds=Ii(La,Lo,ba);if(na==="submit"||na!=="key"&&!Ds){Gs(ds,ba),ba===0?Wr():Yo();var $s=ba===0?1:0;Ls[$s]?Ku(!1,!1,"confirm"):Ku(!1,ba,"confirm")}else Po(ds)};return Me.createElement(sr.Provider,{value:{operationRef:Mc,hideHeader:Pr==="time",onDateMouseEnter:Co,onDateMouseLeave:To,hideRanges:!0,onSelect:pf,open:xl}},Me.createElement(cu,{visible:xl,popupElement:ta,popupStyle:Ki,prefixCls:wn,dropdownClassName:hi,dropdownAlign:si,getPopupContainer:dr,transitionName:ji,range:!0,direction:Ns},Me.createElement("div",(0,ke.Z)({ref:Ts,className:nn()(wn,"".concat(wn,"-range"),gi,(Ye={},(0,mt.Z)(Ye,"".concat(wn,"-disabled"),Ls[0]&&Ls[1]),(0,mt.Z)(Ye,"".concat(wn,"-focused"),ba===0?Vr:ts),(0,mt.Z)(Ye,"".concat(wn,"-rtl"),Ns==="rtl"),Ye)),style:Jn,onClick:ns,onMouseEnter:Fa,onMouseLeave:Xl,onMouseDown:Ur,onMouseUp:yl},(0,Dn.Z)(ze,{aria:!0,data:!0})),Me.createElement("div",{className:nn()("".concat(wn,"-input"),(Qe={},(0,mt.Z)(Qe,"".concat(wn,"-input-active"),ba===0),(0,mt.Z)(Qe,"".concat(wn,"-input-placeholder"),!!Lr),Qe)),ref:gl},Me.createElement("input",(0,ke.Z)({id:Gn,disabled:Ls[0],readOnly:va||typeof ou[0]=="function"||!No,value:Lr||Qd,onChange:function(Lo){ud(Lo.target.value)},autoFocus:oo,placeholder:Ot(lr,0)||"",ref:Il},ms,Do,{autoComplete:$u}))),Me.createElement("div",{className:"".concat(wn,"-range-separator"),ref:Xa},Pa),Me.createElement("div",{className:nn()("".concat(wn,"-input"),(Nt={},(0,mt.Z)(Nt,"".concat(wn,"-input-active"),ba===1),(0,mt.Z)(Nt,"".concat(wn,"-input-placeholder"),!!mr),Nt)),ref:Ll},Me.createElement("input",(0,ke.Z)({disabled:Ls[1],readOnly:va||typeof ou[0]=="function"||!as,value:mr||kh,onChange:function(Lo){nt(Lo.target.value)},placeholder:Ot(lr,1)||"",ref:ru},Sa,Do,{autoComplete:$u}))),Me.createElement("div",{className:"".concat(wn,"-active-bar"),style:(0,ht.Z)((0,ht.Z)({},El),{},{width:Ga,position:"absolute"})}),qi,ss&&bs)))}var us=function(ze){(0,Yn.Z)(Qe,ze);var Ye=(0,Ai.Z)(Qe);function Qe(){var Nt;(0,gn.Z)(this,Qe);for(var Wt=arguments.length,vn=new Array(Wt),wn=0;wn<Wt;wn++)vn[wn]=arguments[wn];return Nt=Ye.call.apply(Ye,[this].concat(vn)),(0,mt.Z)((0,yi.Z)(Nt),"pickerRef",Me.createRef()),(0,mt.Z)((0,yi.Z)(Nt),"focus",function(){Nt.pickerRef.current&&Nt.pickerRef.current.focus()}),(0,mt.Z)((0,yi.Z)(Nt),"blur",function(){Nt.pickerRef.current&&Nt.pickerRef.current.blur()}),Nt}return(0,Ln.Z)(Qe,[{key:"render",value:function(){return Me.createElement(Bu,(0,ke.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),Qe}(Me.Component),tu=us,Qu=Ld,ps=we(19080),Bl=we(36355),Kl=we(1684),Hu=we(19716),Kd=we(32441),uh=we(9763),ch=we(33234),dh=we(48183),ol=we(64993),ul=we(9937),fc=we(17313),Zh=we(47585),od=we(74207),yd=we(13826),Dl=we(92899),Uh=we(37613),hf=we(83116);const Sd=(ze,Ye,Qe,Nt)=>{const{lineHeight:Wt}=ze,vn=Math.floor(Qe*Wt)+2,wn=Math.max((Ye-vn)/2,0),Gn=Math.max(Ye-vn-wn,0);return{padding:`${wn}px ${Nt}px ${Gn}px`}},gc=ze=>{const{componentCls:Ye,pickerCellCls:Qe,pickerCellInnerCls:Nt,cellHeight:Wt,motionDurationSlow:vn,borderRadiusSM:wn,motionDurationMid:Gn,cellHoverBg:Jn,lineWidth:gi,lineType:Ki,colorPrimary:hi,cellActiveWithRangeBg:ji,colorTextLightSolid:si,controlHeightSM:dr,cellRangeBorderColor:Vn,pickerCellBorderGap:zi,cellHoverWithRangeBg:lr,cellWidth:oo,colorTextDisabled:Yr,cellBgDisabled:lo}=ze;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Wt,transform:"translateY(-50%)",transition:`all ${vn}`,content:'""'},[Nt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Wt,height:Wt,lineHeight:`${Wt}px`,borderRadius:wn,transition:`background ${Gn}, border ${Gn}`},"&-range-hover-start, &-range-hover-end":{[Nt]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${Qe}-in-view),
|
|
&:hover:not(${Qe}-selected):not(${Qe}-range-start):not(${Qe}-range-end):not(${Qe}-range-hover-start):not(${Qe}-range-hover-end)`]:{[Nt]:{background:Jn}},[`&-in-view${Qe}-today ${Nt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${gi}px ${Ki} ${hi}`,borderRadius:wn,content:'""'}},[`&-in-view${Qe}-in-range`]:{position:"relative","&::before":{background:ji}},[`&-in-view${Qe}-selected ${Nt},
|
|
&-in-view${Qe}-range-start ${Nt},
|
|
&-in-view${Qe}-range-end ${Nt}`]:{color:si,background:hi},[`&-in-view${Qe}-range-start:not(${Qe}-range-start-single),
|
|
&-in-view${Qe}-range-end:not(${Qe}-range-end-single)`]:{"&::before":{background:ji}},[`&-in-view${Qe}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${Qe}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${Qe}-range-hover-start:not(${Qe}-in-range):not(${Qe}-range-start):not(${Qe}-range-end),
|
|
&-in-view${Qe}-range-hover-end:not(${Qe}-in-range):not(${Qe}-range-start):not(${Qe}-range-end),
|
|
&-in-view${Qe}-range-hover-start${Qe}-range-start-single,
|
|
&-in-view${Qe}-range-hover-start${Qe}-range-start${Qe}-range-end${Qe}-range-end-near-hover,
|
|
&-in-view${Qe}-range-hover-end${Qe}-range-start${Qe}-range-end${Qe}-range-start-near-hover,
|
|
&-in-view${Qe}-range-hover-end${Qe}-range-end-single,
|
|
&-in-view${Qe}-range-hover:not(${Qe}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:dr,borderTop:`${gi}px dashed ${Vn}`,borderBottom:`${gi}px dashed ${Vn}`,transform:"translateY(-50%)",transition:`all ${vn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:zi},[`&-in-view${Qe}-in-range${Qe}-range-hover::before,
|
|
&-in-view${Qe}-in-range${Qe}-range-hover-start::before,
|
|
&-in-view${Qe}-in-range${Qe}-range-hover-end::before,
|
|
&-in-view${Qe}-range-start${Qe}-range-hover::before,
|
|
&-in-view${Qe}-range-end${Qe}-range-hover::before,
|
|
&-in-view${Qe}-range-start:not(${Qe}-range-start-single)${Qe}-range-hover-start::before,
|
|
&-in-view${Qe}-range-end:not(${Qe}-range-end-single)${Qe}-range-hover-end::before,
|
|
${Ye}-panel
|
|
> :not(${Ye}-date-panel)
|
|
&-in-view${Qe}-in-range${Qe}-range-hover-start::before,
|
|
${Ye}-panel
|
|
> :not(${Ye}-date-panel)
|
|
&-in-view${Qe}-in-range${Qe}-range-hover-end::before`]:{background:lr},[`&-in-view${Qe}-range-start:not(${Qe}-range-start-single):not(${Qe}-range-end) ${Nt}`]:{borderStartStartRadius:wn,borderEndStartRadius:wn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${Qe}-range-end:not(${Qe}-range-end-single):not(${Qe}-range-start) ${Nt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:wn,borderEndEndRadius:wn},[`&-range-hover${Qe}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${Qe}-range-hover:first-child::after,
|
|
tr > &-in-view${Qe}-range-hover-end:first-child::after,
|
|
&-in-view${Qe}-start${Qe}-range-hover-edge-start${Qe}-range-hover-edge-start-near-range::after,
|
|
&-in-view${Qe}-range-hover-edge-start:not(${Qe}-range-hover-edge-start-near-range)::after,
|
|
&-in-view${Qe}-range-hover-start::after`]:{insetInlineStart:(oo-Wt)/2,borderInlineStart:`${gi}px dashed ${Vn}`,borderStartStartRadius:wn,borderEndStartRadius:wn},[`tr > &-in-view${Qe}-range-hover:last-child::after,
|
|
tr > &-in-view${Qe}-range-hover-start:last-child::after,
|
|
&-in-view${Qe}-end${Qe}-range-hover-edge-end${Qe}-range-hover-edge-end-near-range::after,
|
|
&-in-view${Qe}-range-hover-edge-end:not(${Qe}-range-hover-edge-end-near-range)::after,
|
|
&-in-view${Qe}-range-hover-end::after`]:{insetInlineEnd:(oo-Wt)/2,borderInlineEnd:`${gi}px dashed ${Vn}`,borderStartEndRadius:wn,borderEndEndRadius:wn},"&-disabled":{color:Yr,pointerEvents:"none",[Nt]:{background:"transparent"},"&::before":{background:lo}},[`&-disabled${Qe}-today ${Nt}::before`]:{borderColor:Yr}}},nu=ze=>{const{componentCls:Ye,pickerCellCls:Qe,pickerCellInnerCls:Nt,pickerYearMonthCellWidth:Wt,pickerControlIconSize:vn,cellWidth:wn,paddingSM:Gn,paddingXS:Jn,paddingXXS:gi,colorBgContainer:Ki,lineWidth:hi,lineType:ji,borderRadiusLG:si,colorPrimary:dr,colorTextHeading:Vn,colorSplit:zi,pickerControlIconBorderWidth:lr,colorIcon:oo,textHeight:Yr,motionDurationMid:lo,colorIconHover:co,fontWeightStrong:Pr,cellHeight:$i,pickerCellPaddingVertical:Ea,colorTextDisabled:$o,colorText:Pa,fontSize:$a,cellHoverWithRangeBg:Ha,motionDurationSlow:ja,withoutTimeCellHeight:js,pickerQuarterPanelContentHeight:Za,colorLink:ma,colorLinkActive:es,colorLinkHover:zs,cellRangeBorderColor:xs,borderRadiusSM:Cs,colorTextLightSolid:Vs,cellHoverBg:hl,timeColumnHeight:Fl,timeColumnWidth:xu,timeCellHeight:qs,controlItemBgActive:Eu,marginXXS:Ba,pickerDatePanelPaddingHorizontal:al}=ze,va=wn*7+al*2,As=(va-Jn*2)/3-Wt-Gn,Es=(va-Jn*2)/4-Wt;return{[Ye]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ki,border:`${hi}px ${ji} ${zi}`,borderRadius:si,outline:"none","&-focused":{borderColor:dr},"&-rtl":{direction:"rtl",[`${Ye}-prev-icon,
|
|
${Ye}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Ye}-next-icon,
|
|
${Ye}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:va},"&-header":{display:"flex",padding:`0 ${Jn}px`,color:Vn,borderBottom:`${hi}px ${ji} ${zi}`,"> *":{flex:"none"},button:{padding:0,color:oo,lineHeight:`${Yr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${lo}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:$a,"&:hover":{color:co}},"&-view":{flex:"auto",fontWeight:Pr,lineHeight:`${Yr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Jn},"&:hover":{color:dr}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:vn,height:vn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:vn,height:vn,border:"0 solid currentcolor",borderBlockStartWidth:lr,borderBlockEndWidth:0,borderInlineStartWidth:lr,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(vn/2),insetInlineStart:Math.ceil(vn/2),display:"inline-block",width:vn,height:vn,border:"0 solid currentcolor",borderBlockStartWidth:lr,borderBlockEndWidth:0,borderInlineStartWidth:lr,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:$i,fontWeight:"normal"},th:{height:$i+Ea*2,color:Pa,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ea}px 0`,color:$o,cursor:"pointer","&-in-view":{color:Pa}},gc(ze)),[`&-date-panel ${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-start ${Nt},
|
|
&-date-panel ${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-end ${Nt}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Ha,transition:`all ${ja}`,content:'""'}},[`&-date-panel
|
|
${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-start
|
|
${Nt}::after`]:{insetInlineEnd:-(wn-$i)/2,insetInlineStart:0},[`&-date-panel ${Ye}-cell-in-view${Ye}-cell-in-range${Ye}-cell-range-hover-end ${Nt}::after`]:{insetInlineEnd:0,insetInlineStart:-(wn-$i)/2},[`&-range-hover${Ye}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ye}-content`]:{height:js*4},[Nt]:{padding:`0 ${Jn}px`}},"&-quarter-panel":{[`${Ye}-content`]:{height:Za},[`${Ye}-cell-range-hover-start::after`]:{insetInlineStart:Es,borderInlineStart:`${hi}px dashed ${xs}`,[`${Ye}-panel-rtl &`]:{insetInlineEnd:Es,borderInlineEnd:`${hi}px dashed ${xs}`}},[`${Ye}-cell-range-hover-end::after`]:{insetInlineEnd:Es,borderInlineEnd:`${hi}px dashed ${xs}`,[`${Ye}-panel-rtl &`]:{insetInlineStart:Es,borderInlineStart:`${hi}px dashed ${xs}`}}},[`&-panel ${Ye}-footer`]:{borderTop:`${hi}px ${ji} ${zi}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Yr-2*hi}px`,textAlign:"center","&-extra":{padding:`0 ${Gn}px`,lineHeight:`${Yr-2*hi}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${hi}px ${ji} ${zi}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:ma,"&:hover":{color:zs},"&:active":{color:es},[`&${Ye}-today-btn-disabled`]:{color:$o,cursor:"not-allowed"}},"&-decade-panel":{[Nt]:{padding:`0 ${Jn/2}px`},[`${Ye}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ye}-body`]:{padding:`0 ${Jn}px`},[Nt]:{width:Wt},[`${Ye}-cell-range-hover-start::after`]:{borderStartStartRadius:Cs,borderEndStartRadius:Cs,borderStartEndRadius:0,borderEndEndRadius:0,[`${Ye}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Cs,borderEndEndRadius:Cs}},[`${Ye}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Cs,borderEndEndRadius:Cs,[`${Ye}-panel-rtl &`]:{borderStartStartRadius:Cs,borderEndStartRadius:Cs,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Ye}-cell-range-hover-start::after`]:{insetInlineStart:As,borderInlineStart:`${hi}px dashed ${xs}`,[`${Ye}-panel-rtl &`]:{insetInlineEnd:As,borderInlineEnd:`${hi}px dashed ${xs}`}},[`${Ye}-cell-range-hover-end::after`]:{insetInlineEnd:As,borderInlineEnd:`${hi}px dashed ${xs}`,[`${Ye}-panel-rtl &`]:{insetInlineStart:As,borderInlineStart:`${hi}px dashed ${xs}`}}},"&-week-panel":{[`${Ye}-body`]:{padding:`${Jn}px ${Gn}px`},[`${Ye}-cell`]:{[`&:hover ${Nt},
|
|
&-selected ${Nt},
|
|
${Nt}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${lo}`},"&:first-child:before":{borderStartStartRadius:Cs,borderEndStartRadius:Cs},"&:last-child:before":{borderStartEndRadius:Cs,borderEndEndRadius:Cs}},"&:hover td":{"&:before":{background:hl}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${Qe}`]:{"&:before":{background:dr},[`&${Ye}-cell-week`]:{color:new ol.C(Vs).setAlpha(.5).toHexString()},[Nt]:{color:Vs}}},"&-range-hover td:before":{background:Eu}}},"&-date-panel":{[`${Ye}-body`]:{padding:`${Jn}px ${al}px`},[`${Ye}-content`]:{width:wn*7,th:{width:wn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Ye}-time-panel`]:{borderInlineStart:`${hi}px ${ji} ${zi}`},[`${Ye}-date-panel,
|
|
${Ye}-time-panel`]:{transition:`opacity ${ja}`},"&-active":{[`${Ye}-date-panel,
|
|
${Ye}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Ye}-content`]:{display:"flex",flex:"auto",height:Fl},"&-column":{flex:"1 0 auto",width:xu,margin:`${gi}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${lo}`,overflowX:"hidden","&::after":{display:"block",height:Fl-qs,content:'""'},"&:not(:first-child)":{borderInlineStart:`${hi}px ${ji} ${zi}`},"&-active":{background:new ol.C(Eu).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Ye}-time-panel-cell`]:{marginInline:Ba,[`${Ye}-time-panel-cell-inner`]:{display:"block",width:xu-2*Ba,height:qs,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(xu-qs)/2,color:Pa,lineHeight:`${qs}px`,borderRadius:Cs,cursor:"pointer",transition:`background ${lo}`,"&:hover":{background:hl}},"&-selected":{[`${Ye}-time-panel-cell-inner`]:{background:Eu}},"&-disabled":{[`${Ye}-time-panel-cell-inner`]:{color:$o,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Ye}-time-panel-column:after`]:{height:Fl-qs+gi*2}}}},Tu=ze=>{const{componentCls:Ye,colorBgContainer:Qe,colorError:Nt,errorActiveShadow:Wt,colorWarning:vn,warningActiveShadow:wn}=ze;return{[`${Ye}:not(${Ye}-disabled)`]:{[`&${Ye}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:Qe,borderColor:Nt},[`&${Ye}-focused, &:focus`]:Object.assign({},(0,ul.M1)((0,Uh.TS)(ze,{activeBorderColor:Nt,activeShadow:Wt}))),[`${Ye}-active-bar`]:{background:Nt}},[`&${Ye}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:Qe,borderColor:vn},[`&${Ye}-focused, &:focus`]:Object.assign({},(0,ul.M1)((0,Uh.TS)(ze,{activeBorderColor:vn,activeShadow:wn}))),[`${Ye}-active-bar`]:{background:vn}}}}},du=ze=>{const{componentCls:Ye,antCls:Qe,controlHeight:Nt,fontSize:Wt,paddingInline:vn,colorBgContainer:wn,lineWidth:Gn,lineType:Jn,colorBorder:gi,borderRadius:Ki,motionDurationMid:hi,colorBgContainerDisabled:ji,colorTextDisabled:si,colorTextPlaceholder:dr,controlHeightLG:Vn,fontSizeLG:zi,controlHeightSM:lr,paddingInlineSM:oo,paddingXS:Yr,marginXS:lo,colorTextDescription:co,lineWidthBold:Pr,lineHeight:$i,colorPrimary:Ea,motionDurationSlow:$o,zIndexPopup:Pa,paddingXXS:$a,paddingSM:Ha,textHeight:ja,cellActiveWithRangeBg:js,colorPrimaryBorder:Za,sizePopupArrow:ma,borderRadiusXS:es,borderRadiusOuter:zs,colorBgElevated:xs,borderRadiusLG:Cs,boxShadowSecondary:Vs,borderRadiusSM:hl,colorSplit:Fl,cellHoverBg:xu,presetsWidth:qs,presetsMaxWidth:Eu,boxShadowPopoverArrow:Ba,colorTextQuaternary:al}=ze;return[{[Ye]:Object.assign(Object.assign(Object.assign({},(0,fc.Wf)(ze)),Sd(ze,Nt,Wt,vn)),{position:"relative",display:"inline-flex",alignItems:"center",background:wn,lineHeight:1,border:`${Gn}px ${Jn} ${gi}`,borderRadius:Ki,transition:`border ${hi}, box-shadow ${hi}`,"&:hover, &-focused":Object.assign({},(0,ul.pU)(ze)),"&-focused":Object.assign({},(0,ul.M1)(ze)),[`&${Ye}-disabled`]:{background:ji,borderColor:gi,cursor:"not-allowed",[`${Ye}-suffix`]:{color:al}},[`&${Ye}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Ye}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,ul.ik)(ze)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Ye}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:dr}}},"&-large":Object.assign(Object.assign({},Sd(ze,Vn,zi,vn)),{[`${Ye}-input > input`]:{fontSize:zi}}),"&-small":Object.assign({},Sd(ze,lr,Wt,oo)),[`${Ye}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Yr/2,color:si,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:lo}}},[`${Ye}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:si,lineHeight:1,background:wn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${hi}, color ${hi}`,"> *":{verticalAlign:"top"},"&:hover":{color:co}},[`${Ye}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:zi,color:si,fontSize:zi,verticalAlign:"top",cursor:"default",[`${Ye}-focused &`]:{color:co},[`${Ye}-range-separator &`]:{[`${Ye}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Ye}-clear`]:{insetInlineEnd:vn},"&:hover":{[`${Ye}-clear`]:{opacity:1}},[`${Ye}-active-bar`]:{bottom:-Gn,height:Pr,marginInlineStart:vn,background:Ea,opacity:0,transition:`all ${$o} ease-out`,pointerEvents:"none"},[`&${Ye}-focused`]:{[`${Ye}-active-bar`]:{opacity:1}},[`${Ye}-range-separator`]:{alignItems:"center",padding:`0 ${Yr}px`,lineHeight:1},[`&${Ye}-small`]:{[`${Ye}-clear`]:{insetInlineEnd:oo},[`${Ye}-active-bar`]:{marginInlineStart:oo}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,fc.Wf)(ze)),nu(ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Pa,[`&${Ye}-dropdown-hidden`]:{display:"none"},[`&${Ye}-dropdown-placement-bottomLeft`]:{[`${Ye}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Ye}-dropdown-placement-topLeft`]:{[`${Ye}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ye}-dropdown-placement-topLeft,
|
|
&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ye}-dropdown-placement-topRight,
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ye}-dropdown-placement-topLeft,
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ye}-dropdown-placement-topRight`]:{animationName:yd.Qt},[`&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ye}-dropdown-placement-bottomLeft,
|
|
&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ye}-dropdown-placement-bottomRight,
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ye}-dropdown-placement-bottomLeft,
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ye}-dropdown-placement-bottomRight`]:{animationName:yd.fJ},[`&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ye}-dropdown-placement-topLeft,
|
|
&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ye}-dropdown-placement-topRight`]:{animationName:yd.ly},[`&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ye}-dropdown-placement-bottomLeft,
|
|
&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ye}-dropdown-placement-bottomRight`]:{animationName:yd.Uw},[`${Ye}-panel > ${Ye}-time-panel`]:{paddingTop:$a},[`${Ye}-ranges`]:{marginBottom:0,padding:`${$a}px ${Ha}px`,overflow:"hidden",lineHeight:`${ja-2*Gn-Yr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Ye}-preset > ${Qe}-tag-blue`]:{color:Ea,background:js,borderColor:Za,cursor:"pointer"},[`${Ye}-ok`]:{marginInlineStart:"auto"}},[`${Ye}-range-wrapper`]:{display:"flex",position:"relative"},[`${Ye}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:vn*1.5,transition:`left ${$o} ease-out`},(0,Zh.r)(ma,es,zs,xs,Ba)),[`${Ye}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:xs,borderRadius:Cs,boxShadow:Vs,transition:`margin ${$o}`,[`${Ye}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Ye}-presets`]:{display:"flex",flexDirection:"column",minWidth:qs,maxWidth:Eu,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Yr,borderInlineEnd:`${Gn}px ${Jn} ${Fl}`,li:Object.assign(Object.assign({},fc.vS),{borderRadius:hl,paddingInline:Yr,paddingBlock:(lr-Math.round(Wt*$i))/2,cursor:"pointer",transition:`all ${$o}`,"+ li":{marginTop:lo},"&:hover":{background:xu}})}},[`${Ye}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Ye}-panel`]:{borderWidth:`0 0 ${Gn}px`},"&:last-child":{[`${Ye}-panel`]:{borderWidth:0}}},[`${Ye}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Ye}-content,
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:gi}}}}),"&-dropdown-range":{padding:`${ma*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ye}-separator`]:{transform:"rotate(180deg)"},[`${Ye}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,yd.oN)(ze,"slide-up"),(0,yd.oN)(ze,"slide-down"),(0,Dl.Fm)(ze,"move-up"),(0,Dl.Fm)(ze,"move-down")]},Ou=ze=>{const{componentCls:Ye,controlHeightLG:Qe,paddingXXS:Nt,padding:Wt}=ze;return{pickerCellCls:`${Ye}-cell`,pickerCellInnerCls:`${Ye}-cell-inner`,pickerYearMonthCellWidth:Qe*1.5,pickerQuarterPanelContentHeight:Qe*1.4,pickerCellPaddingVertical:Nt+Nt/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Wt+Nt/2}},Kh=ze=>({cellHoverBg:ze.controlItemBgHover,cellActiveWithRangeBg:ze.controlItemBgActive,cellHoverWithRangeBg:new ol.C(ze.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ol.C(ze.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ze.colorBgContainerDisabled,timeColumnWidth:ze.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:ze.controlHeightSM*1.5,cellHeight:ze.controlHeightSM,textHeight:ze.controlHeightLG,withoutTimeCellHeight:ze.controlHeightLG*1.65});var Md=(0,hf.Z)("DatePicker",ze=>{const Ye=(0,Uh.TS)((0,ul.e5)(ze),Ou(ze));return[du(Ye),Tu(Ye),(0,od.c)(ze,{focusElCls:`${ze.componentCls}-focused`})]},ze=>Object.assign(Object.assign(Object.assign({},(0,ul.TM)(ze)),Kh(ze)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:ze.zIndexPopupBase+50}));function cl(ze,Ye,Qe){return Qe!==void 0?Qe:Ye==="year"&&ze.lang.yearPlaceholder?ze.lang.yearPlaceholder:Ye==="quarter"&&ze.lang.quarterPlaceholder?ze.lang.quarterPlaceholder:Ye==="month"&&ze.lang.monthPlaceholder?ze.lang.monthPlaceholder:Ye==="week"&&ze.lang.weekPlaceholder?ze.lang.weekPlaceholder:Ye==="time"&&ze.timePickerLocale.placeholder?ze.timePickerLocale.placeholder:ze.lang.placeholder}function Yh(ze,Ye,Qe){return Qe!==void 0?Qe:Ye==="year"&&ze.lang.yearPlaceholder?ze.lang.rangeYearPlaceholder:Ye==="quarter"&&ze.lang.quarterPlaceholder?ze.lang.rangeQuarterPlaceholder:Ye==="month"&&ze.lang.monthPlaceholder?ze.lang.rangeMonthPlaceholder:Ye==="week"&&ze.lang.weekPlaceholder?ze.lang.rangeWeekPlaceholder:Ye==="time"&&ze.timePickerLocale.placeholder?ze.timePickerLocale.rangePlaceholder:ze.lang.rangePlaceholder}function hh(ze,Ye){const Qe={adjustX:1,adjustY:1};switch(Ye){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:Qe};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:Qe};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:Qe};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:Qe};default:return{points:ze==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:Qe}}}function kd(ze){return ze?Array.isArray(ze)?ze:[ze]:[]}function Qr(ze){const{format:Ye,picker:Qe,showHour:Nt,showMinute:Wt,showSecond:vn,use12Hours:wn}=ze,Gn=kd(Ye)[0],Jn=Object.assign({},ze);return Ye&&Array.isArray(Ye)&&(Jn.format=Gn),Gn&&typeof Gn=="string"&&(!Gn.includes("s")&&vn===void 0&&(Jn.showSecond=!1),!Gn.includes("m")&&Wt===void 0&&(Jn.showMinute=!1),!Gn.includes("H")&&!Gn.includes("h")&&!Gn.includes("K")&&!Gn.includes("k")&&Nt===void 0&&(Jn.showHour=!1),(Gn.includes("a")||Gn.includes("A"))&&wn===void 0&&(Jn.use12Hours=!0)),Qe==="time"?Jn:(typeof Gn=="function"&&delete Jn.format,{showTime:Jn})}function Nd(ze,Ye,Qe){if(ze===!1)return!1;const Nt={clearIcon:Ye!=null?Ye:Qe};return typeof ze=="object"?Object.assign(Object.assign({},Nt),ze):Nt}var At=we(3113);function ni(ze){return Me.createElement(At.ZP,Object.assign({size:"small",type:"primary"},ze))}var Bc={button:ni},Vu=function(ze,Ye){var Qe={};for(var Nt in ze)Object.prototype.hasOwnProperty.call(ze,Nt)&&Ye.indexOf(Nt)<0&&(Qe[Nt]=ze[Nt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Nt=Object.getOwnPropertySymbols(ze);Wt<Nt.length;Wt++)Ye.indexOf(Nt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(ze,Nt[Wt])&&(Qe[Nt[Wt]]=ze[Nt[Wt]]);return Qe};function Dc(ze){return(0,Me.forwardRef)((Qe,Nt)=>{const{prefixCls:Wt,getPopupContainer:vn,className:wn,placement:Gn,size:Jn,disabled:gi,bordered:Ki=!0,placeholder:hi,popupClassName:ji,dropdownClassName:si,status:dr,clearIcon:Vn,allowClear:zi,rootClassName:lr}=Qe,oo=Vu(Qe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Yr=Me.useRef(null),{getPrefixCls:lo,direction:co,getPopupContainer:Pr}=(0,Me.useContext)(Bl.E_),$i=lo("picker",Wt),{compactSize:Ea,compactItemClassnames:$o}=(0,ch.ri)($i,co),{format:Pa,showTime:$a,picker:Ha}=Qe,ja=lo(),[js,Za]=Md($i),ma=Object.assign(Object.assign({},$a?Qr(Object.assign({format:Pa,picker:Ha},$a)):{}),Ha==="time"?Qr(Object.assign(Object.assign({format:Pa},Qe),{picker:Ha})):{}),es=(0,Hu.Z)(Ba=>{var al;return(al=Jn!=null?Jn:Ea)!==null&&al!==void 0?al:Ba}),zs=Me.useContext(Kl.Z),xs=gi!=null?gi:zs,Cs=(0,Me.useContext)(Kd.aM),{hasFeedback:Vs,status:hl,feedbackIcon:Fl}=Cs,xu=Me.createElement(Me.Fragment,null,Ha==="time"?Me.createElement(wi,null):Me.createElement(wt,null),Vs&&Fl);(0,Me.useImperativeHandle)(Nt,()=>({focus:()=>{var Ba;return(Ba=Yr.current)===null||Ba===void 0?void 0:Ba.focus()},blur:()=>{var Ba;return(Ba=Yr.current)===null||Ba===void 0?void 0:Ba.blur()}}));const[qs]=(0,uh.Z)("Calendar",dh.Z),Eu=Object.assign(Object.assign({},qs),Qe.locale);return js(Me.createElement(tu,Object.assign({separator:Me.createElement("span",{"aria-label":"to",className:`${$i}-separator`},Me.createElement(Zn,null)),disabled:xs,ref:Yr,dropdownAlign:hh(co,Gn),placeholder:Yh(Eu,Ha,hi),suffixIcon:xu,prevIcon:Me.createElement("span",{className:`${$i}-prev-icon`}),nextIcon:Me.createElement("span",{className:`${$i}-next-icon`}),superPrevIcon:Me.createElement("span",{className:`${$i}-super-prev-icon`}),superNextIcon:Me.createElement("span",{className:`${$i}-super-next-icon`}),transitionName:`${ja}-slide-up`},oo,ma,{className:nn()({[`${$i}-${es}`]:es,[`${$i}-borderless`]:!Ki},(0,ps.Z)($i,(0,ps.F)(hl,dr),Vs),Za,$o,wn,lr),locale:Eu.lang,prefixCls:$i,getPopupContainer:vn||Pr,generateConfig:ze,components:Bc,direction:co,dropdownClassName:nn()(Za,ji||si,lr),allowClear:Nd(zi,Vn,Me.createElement(Nn.Z,null))})))})}var Lc=function(ze,Ye){var Qe={};for(var Nt in ze)Object.prototype.hasOwnProperty.call(ze,Nt)&&Ye.indexOf(Nt)<0&&(Qe[Nt]=ze[Nt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Nt=Object.getOwnPropertySymbols(ze);Wt<Nt.length;Wt++)Ye.indexOf(Nt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(ze,Nt[Wt])&&(Qe[Nt[Wt]]=ze[Nt[Wt]]);return Qe};function ff(ze){function Ye(Jn,gi){const Ki=gi==="TimePicker"?"timePicker":"datePicker",hi=(0,Me.forwardRef)((ji,si)=>{const{prefixCls:dr,getPopupContainer:Vn,style:zi,className:lr,rootClassName:oo,size:Yr,bordered:lo=!0,placement:co,placeholder:Pr,popupClassName:$i,dropdownClassName:Ea,disabled:$o,status:Pa,clearIcon:$a,allowClear:Ha}=ji,ja=Lc(ji,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:js,direction:Za,getPopupContainer:ma,[Ki]:es}=(0,Me.useContext)(Bl.E_),zs=js("picker",dr),{compactSize:xs,compactItemClassnames:Cs}=(0,ch.ri)(zs,Za),Vs=Me.useRef(null),{format:hl,showTime:Fl}=ji,[xu,qs]=Md(zs);(0,Me.useImperativeHandle)(si,()=>({focus:()=>{var Fa;return(Fa=Vs.current)===null||Fa===void 0?void 0:Fa.focus()},blur:()=>{var Fa;return(Fa=Vs.current)===null||Fa===void 0?void 0:Fa.blur()}}));const Eu={showToday:!0};let Ba={};Jn&&(Ba.picker=Jn);const al=Jn||ji.picker;Ba=Object.assign(Object.assign(Object.assign({},Ba),Fl?Qr(Object.assign({format:hl,picker:al},Fl)):{}),al==="time"?Qr(Object.assign(Object.assign({format:hl},ji),{picker:al})):{});const va=js(),As=(0,Hu.Z)(Fa=>{var Xl;return(Xl=Yr!=null?Yr:xs)!==null&&Xl!==void 0?Xl:Fa}),Es=Me.useContext(Kl.Z),_s=$o!=null?$o:Es,Gu=(0,Me.useContext)(Kd.aM),{hasFeedback:ea,status:da,feedbackIcon:vl}=Gu,Yl=Me.createElement(Me.Fragment,null,al==="time"?Me.createElement(wi,null):Me.createElement(wt,null),ea&&vl),[Ks]=(0,uh.Z)("DatePicker",dh.Z),yl=Object.assign(Object.assign({},Ks),ji.locale);return xu(Me.createElement(Qu,Object.assign({ref:Vs,placeholder:cl(yl,al,Pr),suffixIcon:Yl,dropdownAlign:hh(Za,co),prevIcon:Me.createElement("span",{className:`${zs}-prev-icon`}),nextIcon:Me.createElement("span",{className:`${zs}-next-icon`}),superPrevIcon:Me.createElement("span",{className:`${zs}-super-prev-icon`}),superNextIcon:Me.createElement("span",{className:`${zs}-super-next-icon`}),transitionName:`${va}-slide-up`},Eu,ja,Ba,{locale:yl.lang,className:nn()({[`${zs}-${As}`]:As,[`${zs}-borderless`]:!lo},(0,ps.Z)(zs,(0,ps.F)(da,Pa),ea),qs,Cs,es==null?void 0:es.className,lr,oo),style:Object.assign(Object.assign({},es==null?void 0:es.style),zi),prefixCls:zs,getPopupContainer:Vn||ma,generateConfig:ze,components:Bc,direction:Za,disabled:_s,dropdownClassName:nn()(qs,oo,$i||Ea),allowClear:Nd(Ha,$a,Me.createElement(Nn.Z,null))})))});return gi&&(hi.displayName=gi),hi}const Qe=Ye(),Nt=Ye("week","WeekPicker"),Wt=Ye("month","MonthPicker"),vn=Ye("year","YearPicker"),wn=Ye("time","TimePicker"),Gn=Ye("quarter","QuarterPicker");return{DatePicker:Qe,WeekPicker:Nt,MonthPicker:Wt,YearPicker:vn,TimePicker:wn,QuarterPicker:Gn}}const gf=null;function dl(ze){const{DatePicker:Ye,WeekPicker:Qe,MonthPicker:Nt,YearPicker:Wt,TimePicker:vn,QuarterPicker:wn}=ff(ze),Gn=Dc(ze),Jn=Ye;return Jn.WeekPicker=Qe,Jn.MonthPicker=Nt,Jn.YearPicker=Wt,Jn.RangePicker=Gn,Jn.TimePicker=vn,Jn.QuarterPicker=wn,Jn}var zo=dl;const zl=zo(xe);function hu(ze){const Ye=hh(ze.direction,ze.placement);return Ye.overflow.adjustY=!1,Ye.overflow.adjustX=!1,Object.assign(Object.assign({},ze),{dropdownAlign:Ye})}const Qs=(0,Ae.Z)(zl,"picker",null,hu);zl._InternalPanelDoNotUseOrYouWillBeFired=Qs;const Da=(0,Ae.Z)(zl.RangePicker,"picker",null,hu);zl._InternalRangePanelDoNotUseOrYouWillBeFired=Da,zl.generatePicker=zo;var Vl=zl},28103:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return Gt}});var ce=we(92310),at=we.n(ce),Lt=we(59301),kt=we(36355),Dt=we(17313),jt=we(83116),Ge=we(37613);const Mt=Ut=>{const{componentCls:Re,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:de,textPaddingInline:le,orientationMargin:pe,verticalMarginInline:xe}=Ut;return{[Re]:Object.assign(Object.assign({},(0,Dt.Wf)(Ut)),{borderBlockStart:`${de}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:xe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${de}px solid ${ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ut.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Re}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ut.dividerHorizontalWithTextGutterMargin}px 0`,color:Ut.colorTextHeading,fontWeight:500,fontSize:Ut.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${de}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Re}-with-text-left`]:{"&::before":{width:`${pe*100}%`},"&::after":{width:`${100-pe*100}%`}},[`&-horizontal${Re}-with-text-right`]:{"&::before":{width:`${100-pe*100}%`},"&::after":{width:`${pe*100}%`}},[`${Re}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:le},"&-dashed":{background:"none",borderColor:ne,borderStyle:"dashed",borderWidth:`${de}px 0 0`},[`&-horizontal${Re}-with-text${Re}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Re}-dashed`]:{borderInlineStartWidth:de,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Re}-with-text`]:{color:Ut.colorText,fontWeight:"normal",fontSize:Ut.fontSize},[`&-horizontal${Re}-with-text-left${Re}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Re}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Re}-with-text-right${Re}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Re}-inner-text`]:{paddingInlineEnd:te}}})}};var Ct=(0,jt.Z)("Divider",Ut=>{const Re=(0,Ge.TS)(Ut,{dividerHorizontalWithTextGutterMargin:Ut.margin,dividerHorizontalGutterMargin:Ut.marginLG,sizePaddingEdgeHorizontal:0});return[Mt(Re)]},Ut=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ut.marginXS})),Et=function(Ut,Re){var te={};for(var ne in Ut)Object.prototype.hasOwnProperty.call(Ut,ne)&&Re.indexOf(ne)<0&&(te[ne]=Ut[ne]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ne=Object.getOwnPropertySymbols(Ut);de<ne.length;de++)Re.indexOf(ne[de])<0&&Object.prototype.propertyIsEnumerable.call(Ut,ne[de])&&(te[ne[de]]=Ut[ne[de]]);return te},Gt=Ut=>{const{getPrefixCls:Re,direction:te,divider:ne}=Lt.useContext(kt.E_),{prefixCls:de,type:le="horizontal",orientation:pe="center",orientationMargin:xe,className:Ae,rootClassName:ke,children:Me,dashed:ot,plain:dt,style:yt}=Ut,vt=Et(Ut,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Kt=Re("divider",de),[wt,It]=Ct(Kt),Yt=pe.length>0?`-${pe}`:pe,yn=!!Me,Mi=pe==="left"&&xe!=null,wi=pe==="right"&&xe!=null,Nn=at()(Kt,ne==null?void 0:ne.className,It,`${Kt}-${le}`,{[`${Kt}-with-text`]:yn,[`${Kt}-with-text${Yt}`]:yn,[`${Kt}-dashed`]:!!ot,[`${Kt}-plain`]:!!dt,[`${Kt}-rtl`]:te==="rtl",[`${Kt}-no-default-orientation-margin-left`]:Mi,[`${Kt}-no-default-orientation-margin-right`]:wi},Ae,ke),ui=Lt.useMemo(()=>typeof xe=="number"?xe:/^\d+$/.test(xe)?Number(xe):xe,[xe]),tt=Object.assign(Object.assign({},Mi&&{marginLeft:ui}),wi&&{marginRight:ui});return wt(Lt.createElement("div",Object.assign({className:Nn,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),yt)},vt,{role:"separator"}),Me&&le!=="vertical"&&Lt.createElement("span",{className:`${Kt}-inner-text`,style:tt},Me)))}},43428:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return mt}});var ce=we(92310),at=we.n(ce),Lt=we(57259),kt=we(29043),Dt=we(43403),jt=we(28800),Ge=we(59301),Mt=Ge.createContext(null),Ct=Ge.createContext({}),Et=Mt,xt=we(80962),Gt=we(5891),Ut=we(43469),Re=we(85108),te=we(36994),ne=we(80764),de=function(un){var Sn=un.prefixCls,Dn=un.className,kn=un.style,ii=un.children,Hn=un.containerRef,Di=un.id,hn=un.onMouseEnter,rt=un.onMouseOver,Pt=un.onMouseLeave,_t=un.onClick,We=un.onKeyDown,Ce=un.onKeyUp,Ee={onMouseEnter:hn,onMouseOver:rt,onMouseLeave:Pt,onClick:_t,onKeyDown:We,onKeyUp:Ce},Ie=Ge.useContext(Ct),Ke=Ie.panel,Le=(0,ne.useComposeRef)(Ke,Hn);return Ge.createElement(Ge.Fragment,null,Ge.createElement("div",(0,Gt.Z)({id:Di,className:at()("".concat(Sn,"-content"),Dn),style:(0,Lt.Z)({},kn),"aria-modal":"true",role:"dialog",ref:Le},Ee),ii))},le=de,pe=we(51395);function xe(ht){return typeof ht=="string"&&String(Number(ht))===ht?((0,pe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ht)):ht}function Ae(ht){warning(!("wrapperClassName"in ht),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ht.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Me(ht,un){var Sn,Dn,kn,ii,Hn=ht.prefixCls,Di=ht.open,hn=ht.placement,rt=ht.inline,Pt=ht.push,_t=ht.forceRender,We=ht.autoFocus,Ce=ht.keyboard,Ee=ht.rootClassName,Ie=ht.rootStyle,Ke=ht.zIndex,Le=ht.className,st=ht.id,dn=ht.style,sn=ht.motion,en=ht.width,Xt=ht.height,ai=ht.children,Bn=ht.contentWrapperStyle,In=ht.mask,Yi=ht.maskClosable,fi=ht.maskMotion,ar=ht.maskClassName,io=ht.maskStyle,jo=ht.afterOpenChange,bo=ht.onClose,Mr=ht.onMouseEnter,_o=ht.onMouseOver,Bo=ht.onMouseLeave,yo=ht.onClick,ho=ht.onKeyDown,Tr=ht.onKeyUp,Be=Ge.useRef(),ua=Ge.useRef(),eo=Ge.useRef();Ge.useImperativeHandle(un,function(){return Be.current});var Wn=function(di){var Ot=di.keyCode,Ii=di.shiftKey;switch(Ot){case Re.Z.TAB:{if(Ot===Re.Z.TAB){if(!Ii&&document.activeElement===eo.current){var xn;(xn=ua.current)===null||xn===void 0||xn.focus({preventScroll:!0})}else if(Ii&&document.activeElement===ua.current){var jn;(jn=eo.current)===null||jn===void 0||jn.focus({preventScroll:!0})}}break}case Re.Z.ESC:{bo&&Ce&&(di.stopPropagation(),bo(di));break}}};Ge.useEffect(function(){if(Di&&We){var _r;(_r=Be.current)===null||_r===void 0||_r.focus({preventScroll:!0})}},[Di]);var Oi=Ge.useState(!1),Ri=(0,kt.Z)(Oi,2),ci=Ri[0],Un=Ri[1],Zt=Ge.useContext(Et),ln;Pt===!1?ln={distance:0}:Pt===!0?ln={}:ln=Pt||{};var Tt=(Sn=(Dn=(kn=ln)===null||kn===void 0?void 0:kn.distance)!==null&&Dn!==void 0?Dn:Zt==null?void 0:Zt.pushDistance)!==null&&Sn!==void 0?Sn:180,An=Ge.useMemo(function(){return{pushDistance:Tt,push:function(){Un(!0)},pull:function(){Un(!1)}}},[Tt]);Ge.useEffect(function(){if(Di){var _r;Zt==null||(_r=Zt.push)===null||_r===void 0||_r.call(Zt)}else{var di;Zt==null||(di=Zt.pull)===null||di===void 0||di.call(Zt)}},[Di]),Ge.useEffect(function(){return function(){var _r;Zt==null||(_r=Zt.pull)===null||_r===void 0||_r.call(Zt)}},[]);var Hi=In&&Ge.createElement(Ut.default,(0,Gt.Z)({key:"mask"},fi,{visible:Di}),function(_r,di){var Ot=_r.className,Ii=_r.style;return Ge.createElement("div",{className:at()("".concat(Hn,"-mask"),Ot,ar),style:(0,Lt.Z)((0,Lt.Z)({},Ii),io),onClick:Yi&&Di?bo:void 0,ref:di})}),gr=typeof sn=="function"?sn(hn):sn,sr={};if(ci&&Tt)switch(hn){case"top":sr.transform="translateY(".concat(Tt,"px)");break;case"bottom":sr.transform="translateY(".concat(-Tt,"px)");break;case"left":sr.transform="translateX(".concat(Tt,"px)");break;default:sr.transform="translateX(".concat(-Tt,"px)");break}hn==="left"||hn==="right"?sr.width=xe(en):sr.height=xe(Xt);var Rn={onMouseEnter:Mr,onMouseOver:_o,onMouseLeave:Bo,onClick:yo,onKeyDown:ho,onKeyUp:Tr},Ti=Ge.createElement(Ut.default,(0,Gt.Z)({key:"panel"},gr,{visible:Di,forceRender:_t,onVisibleChanged:function(di){jo==null||jo(di)},removeOnLeave:!1,leavedClassName:"".concat(Hn,"-content-wrapper-hidden")}),function(_r,di){var Ot=_r.className,Ii=_r.style;return Ge.createElement("div",(0,Gt.Z)({className:at()("".concat(Hn,"-content-wrapper"),Ot),style:(0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},sr),Ii),Bn)},(0,te.Z)(ht,{data:!0})),Ge.createElement(le,(0,Gt.Z)({id:st,containerRef:di,prefixCls:Hn,className:Le,style:dn},Rn),ai))}),qr=(0,Lt.Z)({},Ie);return Ke&&(qr.zIndex=Ke),Ge.createElement(Et.Provider,{value:An},Ge.createElement("div",{className:at()(Hn,"".concat(Hn,"-").concat(hn),Ee,(ii={},(0,xt.Z)(ii,"".concat(Hn,"-open"),Di),(0,xt.Z)(ii,"".concat(Hn,"-inline"),rt),ii)),style:qr,tabIndex:-1,ref:Be,onKeyDown:Wn},Hi,Ge.createElement("div",{tabIndex:0,ref:ua,style:ke,"aria-hidden":"true","data-sentinel":"start"}),Ti,Ge.createElement("div",{tabIndex:0,ref:eo,style:ke,"aria-hidden":"true","data-sentinel":"end"})))}var ot=Ge.forwardRef(Me),dt=ot,yt=function(un){var Sn=un.open,Dn=Sn===void 0?!1:Sn,kn=un.prefixCls,ii=kn===void 0?"rc-drawer":kn,Hn=un.placement,Di=Hn===void 0?"right":Hn,hn=un.autoFocus,rt=hn===void 0?!0:hn,Pt=un.keyboard,_t=Pt===void 0?!0:Pt,We=un.width,Ce=We===void 0?378:We,Ee=un.mask,Ie=Ee===void 0?!0:Ee,Ke=un.maskClosable,Le=Ke===void 0?!0:Ke,st=un.getContainer,dn=un.forceRender,sn=un.afterOpenChange,en=un.destroyOnClose,Xt=un.onMouseEnter,ai=un.onMouseOver,Bn=un.onMouseLeave,In=un.onClick,Yi=un.onKeyDown,fi=un.onKeyUp,ar=un.panelRef,io=Ge.useState(!1),jo=(0,kt.Z)(io,2),bo=jo[0],Mr=jo[1],_o=Ge.useState(!1),Bo=(0,kt.Z)(_o,2),yo=Bo[0],ho=Bo[1];(0,jt.Z)(function(){ho(!0)},[]);var Tr=yo?Dn:!1,Be=Ge.useRef(),ua=Ge.useRef();(0,jt.Z)(function(){Tr&&(ua.current=document.activeElement)},[Tr]);var eo=function(Un){var Zt;if(Mr(Un),sn==null||sn(Un),!Un&&ua.current&&!((Zt=Be.current)!==null&&Zt!==void 0&&Zt.contains(ua.current))){var ln;(ln=ua.current)===null||ln===void 0||ln.focus({preventScroll:!0})}},Wn=Ge.useMemo(function(){return{panel:ar}},[ar]);if(!dn&&!bo&&!Tr&&en)return null;var Oi={onMouseEnter:Xt,onMouseOver:ai,onMouseLeave:Bn,onClick:In,onKeyDown:Yi,onKeyUp:fi},Ri=(0,Lt.Z)((0,Lt.Z)({},un),{},{open:Tr,prefixCls:ii,placement:Di,autoFocus:rt,keyboard:_t,width:Ce,mask:Ie,maskClosable:Le,inline:st===!1,afterOpenChange:eo,ref:Be},Oi);return Ge.createElement(Ct.Provider,{value:Wn},Ge.createElement(Dt.Z,{open:Tr||dn||bo,autoDestroy:!1,getContainer:st,autoLock:Ie&&(Tr||bo)},Ge.createElement(dt,Ri)))},vt=yt,Kt=vt,wt=we(62892),It=we(36355),Yt=we(32441),yn=we(47729),wi=ht=>{const{prefixCls:un,title:Sn,footer:Dn,extra:kn,closeIcon:ii,closable:Hn,onClose:Di,headerStyle:hn,drawerStyle:rt,bodyStyle:Pt,footerStyle:_t,children:We}=ht,Ce=Ge.useCallback(st=>Ge.createElement("button",{type:"button",onClick:Di,"aria-label":"Close",className:`${un}-close`},st),[Di]),[Ee,Ie]=(0,yn.Z)(Hn,ii,Ce,void 0,!0),Ke=Ge.useMemo(()=>!Sn&&!Ee?null:Ge.createElement("div",{style:hn,className:at()(`${un}-header`,{[`${un}-header-close-only`]:Ee&&!Sn&&!kn})},Ge.createElement("div",{className:`${un}-header-title`},Ie,Sn&&Ge.createElement("div",{className:`${un}-title`},Sn)),kn&&Ge.createElement("div",{className:`${un}-extra`},kn)),[Ee,Ie,kn,hn,un,Sn]),Le=Ge.useMemo(()=>{if(!Dn)return null;const st=`${un}-footer`;return Ge.createElement("div",{className:st,style:_t},Dn)},[Dn,_t,un]);return Ge.createElement("div",{className:`${un}-wrapper-body`,style:rt},Ke,Ge.createElement("div",{className:`${un}-body`,style:Pt},We),Le)},Nn=we(33234),ui=we(83116),tt=we(37613),mn=ht=>{const{componentCls:un,motionDurationSlow:Sn}=ht,Dn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Sn}`}}};return{[un]:{[`${un}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Sn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${un}-panel-motion`]:{"&-left":[Dn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Dn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Dn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Dn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Zn=ht=>{const{componentCls:un,zIndexPopup:Sn,colorBgMask:Dn,colorBgElevated:kn,motionDurationSlow:ii,motionDurationMid:Hn,padding:Di,paddingLG:hn,fontSizeLG:rt,lineHeightLG:Pt,lineWidth:_t,lineType:We,colorSplit:Ce,marginSM:Ee,colorIcon:Ie,colorIconHover:Ke,colorText:Le,fontWeightStrong:st,footerPaddingBlock:dn,footerPaddingInline:sn}=ht,en=`${un}-content-wrapper`;return{[un]:{position:"fixed",inset:0,zIndex:Sn,pointerEvents:"none","&-pure":{position:"relative",background:kn,[`&${un}-left`]:{boxShadow:ht.boxShadowDrawerLeft},[`&${un}-right`]:{boxShadow:ht.boxShadowDrawerRight},[`&${un}-top`]:{boxShadow:ht.boxShadowDrawerUp},[`&${un}-bottom`]:{boxShadow:ht.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${un}-mask`]:{position:"absolute",inset:0,zIndex:Sn,background:Dn,pointerEvents:"auto"},[en]:{position:"absolute",zIndex:Sn,maxWidth:"100vw",transition:`all ${ii}`,"&-hidden":{display:"none"}},[`&-left > ${en}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ht.boxShadowDrawerLeft},[`&-right > ${en}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ht.boxShadowDrawerRight},[`&-top > ${en}`]:{top:0,insetInline:0,boxShadow:ht.boxShadowDrawerUp},[`&-bottom > ${en}`]:{bottom:0,insetInline:0,boxShadow:ht.boxShadowDrawerDown},[`${un}-content`]:{width:"100%",height:"100%",overflow:"auto",background:kn,pointerEvents:"auto"},[`${un}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${un}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Di}px ${hn}px`,fontSize:rt,lineHeight:Pt,borderBottom:`${_t}px ${We} ${Ce}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${un}-extra`]:{flex:"none"},[`${un}-close`]:{display:"inline-block",marginInlineEnd:Ee,color:Ie,fontWeight:st,fontSize:rt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Hn}`,textRendering:"auto","&:focus, &:hover":{color:Ke,textDecoration:"none"}},[`${un}-title`]:{flex:1,margin:0,color:Le,fontWeight:ht.fontWeightStrong,fontSize:rt,lineHeight:Pt},[`${un}-body`]:{flex:1,minWidth:0,minHeight:0,padding:hn,overflow:"auto"},[`${un}-footer`]:{flexShrink:0,padding:`${dn}px ${sn}px`,borderTop:`${_t}px ${We} ${Ce}`},"&-rtl":{direction:"rtl"}}}};var Qn=(0,ui.Z)("Drawer",ht=>{const un=(0,tt.TS)(ht,{});return[Zn(un),mn(un)]},ht=>({zIndexPopup:ht.zIndexPopupBase,footerPaddingBlock:ht.paddingXS,footerPaddingInline:ht.padding})),nn=we(11575),gn=function(ht,un){var Sn={};for(var Dn in ht)Object.prototype.hasOwnProperty.call(ht,Dn)&&un.indexOf(Dn)<0&&(Sn[Dn]=ht[Dn]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,Dn=Object.getOwnPropertySymbols(ht);kn<Dn.length;kn++)un.indexOf(Dn[kn])<0&&Object.prototype.propertyIsEnumerable.call(ht,Dn[kn])&&(Sn[Dn[kn]]=ht[Dn[kn]]);return Sn};const Ln=null,yi={distance:180},Yn=ht=>{var un;const{rootClassName:Sn,width:Dn,height:kn,size:ii="default",mask:Hn=!0,push:Di=yi,open:hn,afterOpenChange:rt,onClose:Pt,prefixCls:_t,getContainer:We,style:Ce,className:Ee,visible:Ie,afterVisibleChange:Ke}=ht,Le=gn(ht,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:st,getPrefixCls:dn,direction:sn,drawer:en}=Ge.useContext(It.E_),Xt=dn("drawer",_t),[ai,Bn]=Qn(Xt),In=We===void 0&&st?()=>st(document.body):We,Yi=at()({"no-mask":!Hn,[`${Xt}-rtl`]:sn==="rtl"},Sn,Bn),fi=Ge.useMemo(()=>Dn!=null?Dn:ii==="large"?736:378,[Dn,ii]),ar=Ge.useMemo(()=>kn!=null?kn:ii==="large"?736:378,[kn,ii]),io={motionName:(0,wt.m)(Xt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},jo=Mr=>({motionName:(0,wt.m)(Xt,`panel-motion-${Mr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),bo=(0,nn.H)();return ai(Ge.createElement(Nn.BR,null,Ge.createElement(Yt.Ux,{status:!0,override:!0},Ge.createElement(Kt,Object.assign({prefixCls:Xt,onClose:Pt,maskMotion:io,motion:jo},Le,{open:hn!=null?hn:Ie,mask:Hn,push:Di,width:fi,height:ar,style:Object.assign(Object.assign({},en==null?void 0:en.style),Ce),className:at()(en==null?void 0:en.className,Ee),rootClassName:Yi,getContainer:In,afterOpenChange:rt!=null?rt:Ke,panelRef:bo}),Ge.createElement(wi,Object.assign({prefixCls:Xt},Le,{onClose:Pt}))))))},Ai=ht=>{const{prefixCls:un,style:Sn,className:Dn,placement:kn="right"}=ht,ii=gn(ht,["prefixCls","style","className","placement"]),{getPrefixCls:Hn}=Ge.useContext(It.E_),Di=Hn("drawer",un),[hn,rt]=Qn(Di),Pt=at()(Di,`${Di}-pure`,`${Di}-${kn}`,rt,Dn);return hn(Ge.createElement("div",{className:Pt,style:Sn},Ge.createElement(wi,Object.assign({prefixCls:Di},ii))))};Yn._InternalPanelDoNotUseOrYouWillBeFired=Ai;var mt=Yn},44e3:function($t,zn,we){"use strict";var ce=we(84966),at=we(99580);const Lt=ce.ZP;Lt.Header=ce.h4,Lt.Footer=ce.$_,Lt.Content=ce.VY,Lt.Sider=at.Z,zn.default=Lt},39722:function($t,zn,we){"use strict";we.d(zn,{t5:function(){return Et}});var ce=we(92310),at=we.n(ce),Lt=we(55477),kt=we(59301),Dt=we(36355),jt=we(77578),Ge=we(17356),Mt=function(Gt,Ut){var Re={};for(var te in Gt)Object.prototype.hasOwnProperty.call(Gt,te)&&Ut.indexOf(te)<0&&(Re[te]=Gt[te]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,te=Object.getOwnPropertySymbols(Gt);ne<te.length;ne++)Ut.indexOf(te[ne])<0&&Object.prototype.propertyIsEnumerable.call(Gt,te[ne])&&(Re[te[ne]]=Gt[te[ne]]);return Re};const Ct=(Gt,Ut,Re)=>{if(!(!Ut&&!Re))return kt.createElement(kt.Fragment,null,Ut&&kt.createElement("div",{className:`${Gt}-title`},(0,jt.Z)(Ut)),kt.createElement("div",{className:`${Gt}-inner-content`},(0,jt.Z)(Re)))},Et=Gt=>{const{hashId:Ut,prefixCls:Re,className:te,style:ne,placement:de="top",title:le,content:pe,children:xe}=Gt;return kt.createElement("div",{className:at()(Ut,Re,`${Re}-pure`,`${Re}-placement-${de}`,te),style:ne},kt.createElement("div",{className:`${Re}-arrow`}),kt.createElement(Lt.G,Object.assign({},Gt,{className:Ut,prefixCls:Re}),xe||Ct(Re,le,pe)))},xt=Gt=>{const{prefixCls:Ut}=Gt,Re=Mt(Gt,["prefixCls"]),{getPrefixCls:te}=kt.useContext(Dt.E_),ne=te("popover",Ut),[de,le]=(0,Ge.Z)(ne);return de(kt.createElement(Et,Object.assign({},Re,{prefixCls:ne,hashId:le})))};zn.ZP=xt},60324:function($t,zn,we){"use strict";var ce=we(92310),at=we.n(ce),Lt=we(59301),kt=we(77578),Dt=we(62892),jt=we(36355),Ge=we(6848),Mt=we(39722),Ct=we(17356),Et=function(Ut,Re){var te={};for(var ne in Ut)Object.prototype.hasOwnProperty.call(Ut,ne)&&Re.indexOf(ne)<0&&(te[ne]=Ut[ne]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ne=Object.getOwnPropertySymbols(Ut);de<ne.length;de++)Re.indexOf(ne[de])<0&&Object.prototype.propertyIsEnumerable.call(Ut,ne[de])&&(te[ne[de]]=Ut[ne[de]]);return te};const xt=Ut=>{let{title:Re,content:te,prefixCls:ne}=Ut;return Lt.createElement(Lt.Fragment,null,Re&&Lt.createElement("div",{className:`${ne}-title`},(0,kt.Z)(Re)),Lt.createElement("div",{className:`${ne}-inner-content`},(0,kt.Z)(te)))},Gt=Lt.forwardRef((Ut,Re)=>{const{prefixCls:te,title:ne,content:de,overlayClassName:le,placement:pe="top",trigger:xe="hover",mouseEnterDelay:Ae=.1,mouseLeaveDelay:ke=.1,overlayStyle:Me={}}=Ut,ot=Et(Ut,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:dt}=Lt.useContext(jt.E_),yt=dt("popover",te),[vt,Kt]=(0,Ct.Z)(yt),wt=dt(),It=at()(le,Kt);return vt(Lt.createElement(Ge.Z,Object.assign({placement:pe,trigger:xe,mouseEnterDelay:Ae,mouseLeaveDelay:ke,overlayStyle:Me},ot,{prefixCls:yt,overlayClassName:It,ref:Re,overlay:ne||de?Lt.createElement(xt,{prefixCls:yt,title:ne,content:de}):null,transitionName:(0,Dt.m)(wt,"zoom-big",ot.transitionName),"data-popover-inject":!0})))});Gt._InternalPanelDoNotUseOrYouWillBeFired=Mt.ZP,zn.Z=Gt},17356:function($t,zn,we){"use strict";var ce=we(17313),at=we(29878),Lt=we(19447),kt=we(33166),Dt=we(83116),jt=we(37613);const Ge=Et=>{const{componentCls:xt,popoverColor:Gt,minWidth:Ut,fontWeightStrong:Re,popoverPadding:te,boxShadowSecondary:ne,colorTextHeading:de,borderRadiusLG:le,zIndexPopup:pe,marginXS:xe,colorBgElevated:Ae,popoverBg:ke}=Et;return[{[xt]:Object.assign(Object.assign({},(0,ce.Wf)(Et)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ae,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${xt}-content`]:{position:"relative"},[`${xt}-inner`]:{backgroundColor:ke,backgroundClip:"padding-box",borderRadius:le,boxShadow:ne,padding:te},[`${xt}-title`]:{minWidth:Ut,marginBottom:xe,color:de,fontWeight:Re},[`${xt}-inner-content`]:{color:Gt}})},(0,Lt.ZP)(Et,{colorBg:"var(--antd-arrow-background-color)"}),{[`${xt}-pure`]:{position:"relative",maxWidth:"none",margin:Et.sizePopupArrow,display:"inline-block",[`${xt}-content`]:{display:"inline-block"}}}]},Mt=Et=>{const{componentCls:xt}=Et;return{[xt]:kt.i.map(Gt=>{const Ut=Et[`${Gt}6`];return{[`&${xt}-${Gt}`]:{"--antd-arrow-background-color":Ut,[`${xt}-inner`]:{backgroundColor:Ut},[`${xt}-arrow`]:{background:"transparent"}}}})}},Ct=Et=>{const{componentCls:xt,lineWidth:Gt,lineType:Ut,colorSplit:Re,paddingSM:te,controlHeight:ne,fontSize:de,lineHeight:le,padding:pe}=Et,xe=ne-Math.round(de*le),Ae=xe/2,ke=xe/2-Gt,Me=pe;return{[xt]:{[`${xt}-inner`]:{padding:0},[`${xt}-title`]:{margin:0,padding:`${Ae}px ${Me}px ${ke}px`,borderBottom:`${Gt}px ${Ut} ${Re}`},[`${xt}-inner-content`]:{padding:`${te}px ${Me}px`}}}};zn.Z=(0,Dt.Z)("Popover",Et=>{const{colorBgElevated:xt,colorText:Gt,wireframe:Ut}=Et,Re=(0,jt.TS)(Et,{popoverPadding:12,popoverBg:xt,popoverColor:Gt});return[Ge(Re),Mt(Re),Ut&&Ct(Re),(0,at._y)(Re,"zoom-big")]},Et=>({width:177,minWidth:177,zIndexPopup:Et.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},10311:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return hn}});var ce=we(92310),at=we.n(ce),Lt=we(80962),kt=we(26390),Dt=we(29043),jt=we(80665),Ge=we(59301),Mt=we(51346),Ct=we(35788),Et=we(5891),xt=we(19149),Gt=we(57259),Ut=we(85108),Re=Ge.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),te=Re;function ne(rt,Pt,_t){return(rt-Pt)/(_t-Pt)}function de(rt,Pt,_t,We){var Ce=ne(Pt,_t,We),Ee={};switch(rt){case"rtl":Ee.right="".concat(Ce*100,"%"),Ee.transform="translateX(50%)";break;case"btt":Ee.bottom="".concat(Ce*100,"%"),Ee.transform="translateY(50%)";break;case"ttb":Ee.top="".concat(Ce*100,"%"),Ee.transform="translateY(-50%)";break;default:Ee.left="".concat(Ce*100,"%"),Ee.transform="translateX(-50%)";break}return Ee}function le(rt,Pt){return Array.isArray(rt)?rt[Pt]:rt}var pe=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],xe=Ge.forwardRef(function(rt,Pt){var _t,We,Ce=rt.prefixCls,Ee=rt.value,Ie=rt.valueIndex,Ke=rt.onStartMove,Le=rt.style,st=rt.render,dn=rt.dragging,sn=rt.onOffsetChange,en=(0,xt.Z)(rt,pe),Xt=Ge.useContext(te),ai=Xt.min,Bn=Xt.max,In=Xt.direction,Yi=Xt.disabled,fi=Xt.keyboard,ar=Xt.range,io=Xt.tabIndex,jo=Xt.ariaLabelForHandle,bo=Xt.ariaLabelledByForHandle,Mr=Xt.ariaValueTextFormatterForHandle,_o="".concat(Ce,"-handle"),Bo=function(ua){Yi||Ke(ua,Ie)},yo=function(ua){if(!Yi&&fi){var eo=null;switch(ua.which||ua.keyCode){case Ut.Z.LEFT:eo=In==="ltr"||In==="btt"?-1:1;break;case Ut.Z.RIGHT:eo=In==="ltr"||In==="btt"?1:-1;break;case Ut.Z.UP:eo=In!=="ttb"?1:-1;break;case Ut.Z.DOWN:eo=In!=="ttb"?-1:1;break;case Ut.Z.HOME:eo="min";break;case Ut.Z.END:eo="max";break;case Ut.Z.PAGE_UP:eo=2;break;case Ut.Z.PAGE_DOWN:eo=-2;break}eo!==null&&(ua.preventDefault(),sn(eo,Ie))}},ho=de(In,Ee,ai,Bn),Tr=Ge.createElement("div",(0,Et.Z)({ref:Pt,className:at()(_o,(_t={},(0,Lt.Z)(_t,"".concat(_o,"-").concat(Ie+1),ar),(0,Lt.Z)(_t,"".concat(_o,"-dragging"),dn),_t)),style:(0,Gt.Z)((0,Gt.Z)({},ho),Le),onMouseDown:Bo,onTouchStart:Bo,onKeyDown:yo,tabIndex:Yi?null:le(io,Ie),role:"slider","aria-valuemin":ai,"aria-valuemax":Bn,"aria-valuenow":Ee,"aria-disabled":Yi,"aria-label":le(jo,Ie),"aria-labelledby":le(bo,Ie),"aria-valuetext":(We=le(Mr,Ie))===null||We===void 0?void 0:We(Ee),"aria-orientation":In==="ltr"||In==="rtl"?"horizontal":"vertical"},en));return st&&(Tr=st(Tr,{index:Ie,prefixCls:Ce,value:Ee,dragging:dn})),Tr}),Ae=xe,ke=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Me=Ge.forwardRef(function(rt,Pt){var _t=rt.prefixCls,We=rt.style,Ce=rt.onStartMove,Ee=rt.onOffsetChange,Ie=rt.values,Ke=rt.handleRender,Le=rt.draggingIndex,st=(0,xt.Z)(rt,ke),dn=Ge.useRef({});return Ge.useImperativeHandle(Pt,function(){return{focus:function(en){var Xt;(Xt=dn.current[en])===null||Xt===void 0||Xt.focus()}}}),Ge.createElement(Ge.Fragment,null,Ie.map(function(sn,en){return Ge.createElement(Ae,(0,Et.Z)({ref:function(ai){ai?dn.current[en]=ai:delete dn.current[en]},dragging:Le===en,prefixCls:_t,style:le(We,en),key:en,value:sn,valueIndex:en,onStartMove:Ce,onOffsetChange:Ee,render:Ke},st))}))}),ot=Me;function dt(rt){var Pt="touches"in rt?rt.touches[0]:rt;return{pageX:Pt.pageX,pageY:Pt.pageY}}function yt(rt,Pt,_t,We,Ce,Ee,Ie,Ke,Le){var st=Ge.useState(null),dn=(0,Dt.Z)(st,2),sn=dn[0],en=dn[1],Xt=Ge.useState(-1),ai=(0,Dt.Z)(Xt,2),Bn=ai[0],In=ai[1],Yi=Ge.useState(_t),fi=(0,Dt.Z)(Yi,2),ar=fi[0],io=fi[1],jo=Ge.useState(_t),bo=(0,Dt.Z)(jo,2),Mr=bo[0],_o=bo[1],Bo=Ge.useRef(null),yo=Ge.useRef(null);Ge.useEffect(function(){Bn===-1&&io(_t)},[_t,Bn]),Ge.useEffect(function(){return function(){document.removeEventListener("mousemove",Bo.current),document.removeEventListener("mouseup",yo.current),document.removeEventListener("touchmove",Bo.current),document.removeEventListener("touchend",yo.current)}},[]);var ho=function(Oi,Ri){ar.some(function(ci,Un){return ci!==Oi[Un]})&&(Ri!==void 0&&en(Ri),io(Oi),Ie(Oi))},Tr=function(Oi,Ri){if(Oi===-1){var ci=Mr[0],Un=Mr[Mr.length-1],Zt=We-ci,ln=Ce-Un,Tt=Ri*(Ce-We);Tt=Math.max(Tt,Zt),Tt=Math.min(Tt,ln);var An=Ee(ci+Tt);Tt=An-ci;var Hi=Mr.map(function(Ti){return Ti+Tt});ho(Hi)}else{var gr=(Ce-We)*Ri,sr=(0,kt.Z)(ar);sr[Oi]=Mr[Oi];var Rn=Le(sr,gr,Oi,"dist");ho(Rn.values,Rn.value)}},Be=Ge.useRef(Tr);Be.current=Tr;var ua=function(Oi,Ri){Oi.stopPropagation();var ci=_t[Ri];In(Ri),en(ci),_o(_t);var Un=dt(Oi),Zt=Un.pageX,ln=Un.pageY,Tt=function(gr){gr.preventDefault();var sr=dt(gr),Rn=sr.pageX,Ti=sr.pageY,qr=Rn-Zt,_r=Ti-ln,di=rt.current.getBoundingClientRect(),Ot=di.width,Ii=di.height,xn;switch(Pt){case"btt":xn=-_r/Ii;break;case"ttb":xn=_r/Ii;break;case"rtl":xn=-qr/Ot;break;default:xn=qr/Ot}Be.current(Ri,xn)},An=function Hi(gr){gr.preventDefault(),document.removeEventListener("mouseup",Hi),document.removeEventListener("mousemove",Tt),document.removeEventListener("touchend",Hi),document.removeEventListener("touchmove",Tt),Bo.current=null,yo.current=null,In(-1),Ke()};document.addEventListener("mouseup",An),document.addEventListener("mousemove",Tt),document.addEventListener("touchend",An),document.addEventListener("touchmove",Tt),Bo.current=Tt,yo.current=An},eo=Ge.useMemo(function(){var Wn=(0,kt.Z)(_t).sort(function(Ri,ci){return Ri-ci}),Oi=(0,kt.Z)(ar).sort(function(Ri,ci){return Ri-ci});return Wn.every(function(Ri,ci){return Ri===Oi[ci]})?ar:_t},[_t,ar]);return[Bn,sn,eo,ua]}function vt(rt){var Pt,_t=rt.prefixCls,We=rt.style,Ce=rt.start,Ee=rt.end,Ie=rt.index,Ke=rt.onStartMove,Le=Ge.useContext(te),st=Le.direction,dn=Le.min,sn=Le.max,en=Le.disabled,Xt=Le.range,ai="".concat(_t,"-track"),Bn=ne(Ce,dn,sn),In=ne(Ee,dn,sn),Yi=function(io){!en&&Ke&&Ke(io,-1)},fi={};switch(st){case"rtl":fi.right="".concat(Bn*100,"%"),fi.width="".concat(In*100-Bn*100,"%");break;case"btt":fi.bottom="".concat(Bn*100,"%"),fi.height="".concat(In*100-Bn*100,"%");break;case"ttb":fi.top="".concat(Bn*100,"%"),fi.height="".concat(In*100-Bn*100,"%");break;default:fi.left="".concat(Bn*100,"%"),fi.width="".concat(In*100-Bn*100,"%")}return Ge.createElement("div",{className:at()(ai,(Pt={},(0,Lt.Z)(Pt,"".concat(ai,"-").concat(Ie+1),Xt),(0,Lt.Z)(Pt,"".concat(_t,"-track-draggable"),Ke),Pt)),style:(0,Gt.Z)((0,Gt.Z)({},fi),We),onMouseDown:Yi,onTouchStart:Yi})}function Kt(rt){var Pt=rt.prefixCls,_t=rt.style,We=rt.values,Ce=rt.startPoint,Ee=rt.onStartMove,Ie=Ge.useContext(te),Ke=Ie.included,Le=Ie.range,st=Ie.min,dn=Ge.useMemo(function(){if(!Le){if(We.length===0)return[];var sn=Ce!=null?Ce:st,en=We[0];return[{start:Math.min(sn,en),end:Math.max(sn,en)}]}for(var Xt=[],ai=0;ai<We.length-1;ai+=1)Xt.push({start:We[ai],end:We[ai+1]});return Xt},[We,Le,Ce,st]);return Ke?dn.map(function(sn,en){var Xt=sn.start,ai=sn.end;return Ge.createElement(vt,{index:en,prefixCls:Pt,style:le(_t,en),start:Xt,end:ai,key:en,onStartMove:Ee})}):null}function wt(rt){var Pt=rt.prefixCls,_t=rt.style,We=rt.children,Ce=rt.value,Ee=rt.onClick,Ie=Ge.useContext(te),Ke=Ie.min,Le=Ie.max,st=Ie.direction,dn=Ie.includedStart,sn=Ie.includedEnd,en=Ie.included,Xt="".concat(Pt,"-text"),ai=de(st,Ce,Ke,Le);return Ge.createElement("span",{className:at()(Xt,(0,Lt.Z)({},"".concat(Xt,"-active"),en&&dn<=Ce&&Ce<=sn)),style:(0,Gt.Z)((0,Gt.Z)({},ai),_t),onMouseDown:function(In){In.stopPropagation()},onClick:function(){Ee(Ce)}},We)}function It(rt){var Pt=rt.prefixCls,_t=rt.marks,We=rt.onClick,Ce="".concat(Pt,"-mark");return _t.length?Ge.createElement("div",{className:Ce},_t.map(function(Ee){var Ie=Ee.value,Ke=Ee.style,Le=Ee.label;return Ge.createElement(wt,{key:Ie,prefixCls:Ce,style:Ke,value:Ie,onClick:We},Le)})):null}function Yt(rt){var Pt=rt.prefixCls,_t=rt.value,We=rt.style,Ce=rt.activeStyle,Ee=Ge.useContext(te),Ie=Ee.min,Ke=Ee.max,Le=Ee.direction,st=Ee.included,dn=Ee.includedStart,sn=Ee.includedEnd,en="".concat(Pt,"-dot"),Xt=st&&dn<=_t&&_t<=sn,ai=(0,Gt.Z)((0,Gt.Z)({},de(Le,_t,Ie,Ke)),typeof We=="function"?We(_t):We);return Xt&&(ai=(0,Gt.Z)((0,Gt.Z)({},ai),typeof Ce=="function"?Ce(_t):Ce)),Ge.createElement("span",{className:at()(en,(0,Lt.Z)({},"".concat(en,"-active"),Xt)),style:ai})}function yn(rt){var Pt=rt.prefixCls,_t=rt.marks,We=rt.dots,Ce=rt.style,Ee=rt.activeStyle,Ie=Ge.useContext(te),Ke=Ie.min,Le=Ie.max,st=Ie.step,dn=Ge.useMemo(function(){var sn=new Set;if(_t.forEach(function(Xt){sn.add(Xt.value)}),We&&st!==null)for(var en=Ke;en<=Le;)sn.add(en),en+=st;return Array.from(sn)},[Ke,Le,st,We,_t]);return Ge.createElement("div",{className:"".concat(Pt,"-step")},dn.map(function(sn){return Ge.createElement(Yt,{prefixCls:Pt,key:sn,value:sn,style:Ce,activeStyle:Ee})}))}function Mi(rt,Pt,_t,We,Ce,Ee){var Ie=Ge.useCallback(function(Xt){var ai=isFinite(Xt)?Xt:rt;return ai=Math.min(Pt,Xt),ai=Math.max(rt,ai),ai},[rt,Pt]),Ke=Ge.useCallback(function(Xt){if(_t!==null){var ai=rt+Math.round((Ie(Xt)-rt)/_t)*_t,Bn=function(ar){return(String(ar).split(".")[1]||"").length},In=Math.max(Bn(_t),Bn(Pt),Bn(rt)),Yi=Number(ai.toFixed(In));return rt<=Yi&&Yi<=Pt?Yi:null}return null},[_t,rt,Pt,Ie]),Le=Ge.useCallback(function(Xt){var ai=Ie(Xt),Bn=We.map(function(fi){return fi.value});_t!==null&&Bn.push(Ke(Xt)),Bn.push(rt,Pt);var In=Bn[0],Yi=Pt-rt;return Bn.forEach(function(fi){var ar=Math.abs(ai-fi);ar<=Yi&&(In=fi,Yi=ar)}),In},[rt,Pt,We,_t,Ie,Ke]),st=function Xt(ai,Bn,In){var Yi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Bn=="number"){var fi,ar=ai[In],io=ar+Bn,jo=[];We.forEach(function(yo){jo.push(yo.value)}),jo.push(rt,Pt),jo.push(Ke(ar));var bo=Bn>0?1:-1;Yi==="unit"?jo.push(Ke(ar+bo*_t)):jo.push(Ke(io)),jo=jo.filter(function(yo){return yo!==null}).filter(function(yo){return Bn<0?yo<=ar:yo>=ar}),Yi==="unit"&&(jo=jo.filter(function(yo){return yo!==ar}));var Mr=Yi==="unit"?ar:io;fi=jo[0];var _o=Math.abs(fi-Mr);if(jo.forEach(function(yo){var ho=Math.abs(yo-Mr);ho<_o&&(fi=yo,_o=ho)}),fi===void 0)return Bn<0?rt:Pt;if(Yi==="dist")return fi;if(Math.abs(Bn)>1){var Bo=(0,kt.Z)(ai);return Bo[In]=fi,Xt(Bo,Bn-bo,In,Yi)}return fi}else{if(Bn==="min")return rt;if(Bn==="max")return Pt}},dn=function(ai,Bn,In){var Yi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",fi=ai[In],ar=st(ai,Bn,In,Yi);return{value:ar,changed:ar!==fi}},sn=function(ai){return Ee===null&&ai===0||typeof Ee=="number"&&ai<Ee},en=function(ai,Bn,In){var Yi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",fi=ai.map(Le),ar=fi[In],io=st(fi,Bn,In,Yi);if(fi[In]=io,Ce===!1){var jo=Ee||0;In>0&&fi[In-1]!==ar&&(fi[In]=Math.max(fi[In],fi[In-1]+jo)),In<fi.length-1&&fi[In+1]!==ar&&(fi[In]=Math.min(fi[In],fi[In+1]-jo))}else if(typeof Ee=="number"||Ee===null){for(var bo=In+1;bo<fi.length;bo+=1)for(var Mr=!0;sn(fi[bo]-fi[bo-1])&&Mr;){var _o=dn(fi,1,bo);fi[bo]=_o.value,Mr=_o.changed}for(var Bo=In;Bo>0;Bo-=1)for(var yo=!0;sn(fi[Bo]-fi[Bo-1])&&yo;){var ho=dn(fi,-1,Bo-1);fi[Bo-1]=ho.value,yo=ho.changed}for(var Tr=fi.length-1;Tr>0;Tr-=1)for(var Be=!0;sn(fi[Tr]-fi[Tr-1])&&Be;){var ua=dn(fi,-1,Tr-1);fi[Tr-1]=ua.value,Be=ua.changed}for(var eo=0;eo<fi.length-1;eo+=1)for(var Wn=!0;sn(fi[eo+1]-fi[eo])&&Wn;){var Oi=dn(fi,1,eo+1);fi[eo+1]=Oi.value,Wn=Oi.changed}}return{value:fi[In],values:fi}};return[Le,en]}var wi=we(51395),Nn=Ge.forwardRef(function(rt,Pt){var _t,We=rt.prefixCls,Ce=We===void 0?"rc-slider":We,Ee=rt.className,Ie=rt.style,Ke=rt.disabled,Le=Ke===void 0?!1:Ke,st=rt.keyboard,dn=st===void 0?!0:st,sn=rt.autoFocus,en=rt.onFocus,Xt=rt.onBlur,ai=rt.min,Bn=ai===void 0?0:ai,In=rt.max,Yi=In===void 0?100:In,fi=rt.step,ar=fi===void 0?1:fi,io=rt.value,jo=rt.defaultValue,bo=rt.range,Mr=rt.count,_o=rt.onChange,Bo=rt.onBeforeChange,yo=rt.onAfterChange,ho=rt.allowCross,Tr=ho===void 0?!0:ho,Be=rt.pushable,ua=Be===void 0?!1:Be,eo=rt.draggableTrack,Wn=rt.reverse,Oi=rt.vertical,Ri=rt.included,ci=Ri===void 0?!0:Ri,Un=rt.startPoint,Zt=rt.trackStyle,ln=rt.handleStyle,Tt=rt.railStyle,An=rt.dotStyle,Hi=rt.activeDotStyle,gr=rt.marks,sr=rt.dots,Rn=rt.handleRender,Ti=rt.tabIndex,qr=Ti===void 0?0:Ti,_r=rt.ariaLabelForHandle,di=rt.ariaLabelledByForHandle,Ot=rt.ariaValueTextFormatterForHandle,Ii=Ge.useRef(),xn=Ge.useRef(),jn=Ge.useMemo(function(){return Oi?Wn?"ttb":"btt":Wn?"rtl":"ltr"},[Wn,Oi]),Ft=Ge.useMemo(function(){return isFinite(Bn)?Bn:0},[Bn]),bt=Ge.useMemo(function(){return isFinite(Yi)?Yi:100},[Yi]),rn=Ge.useMemo(function(){return ar!==null&&ar<=0?1:ar},[ar]),Sr=Ge.useMemo(function(){return typeof ua=="boolean"?ua?rn:!1:ua>=0?ua:!1},[ua,rn]),ki=Ge.useMemo(function(){var So=Object.keys(gr||{});return So.map(function(rr){var Xi=gr[rr],Ui={value:Number(rr)};return Xi&&(0,jt.Z)(Xi)==="object"&&!Ge.isValidElement(Xi)&&("label"in Xi||"style"in Xi)?(Ui.style=Xi.style,Ui.label=Xi.label):Ui.label=Xi,Ui}).filter(function(rr){var Xi=rr.label;return Xi||typeof Xi=="number"}).sort(function(rr,Xi){return rr.value-Xi.value})},[gr]),Ni=Mi(Ft,bt,rn,ki,Tr,Sr),qn=(0,Dt.Z)(Ni,2),Wi=qn[0],Hr=qn[1],no=(0,Ct.Z)(jo,{value:io}),vi=(0,Dt.Z)(no,2),Ji=vi[0],Aa=vi[1],uo=Ge.useMemo(function(){var So=Ji==null?[]:Array.isArray(Ji)?Ji:[Ji],rr=(0,Dt.Z)(So,1),Xi=rr[0],Ui=Xi===void 0?Ft:Xi,qo=Ji===null?[]:[Ui];if(bo){if(qo=(0,kt.Z)(So),Mr||Ji===void 0){var gs=Mr>=0?Mr+1:2;for(qo=qo.slice(0,gs);qo.length<gs;){var Ps;qo.push((Ps=qo[qo.length-1])!==null&&Ps!==void 0?Ps:Ft)}}qo.sort(function(Ro,Ho){return Ro-Ho})}return qo.forEach(function(Ro,Ho){qo[Ho]=Wi(Ro)}),qo},[Ji,bo,Ft,Mr,Wi]),Ir=Ge.useRef(uo);Ir.current=uo;var Bt=function(rr){return bo?rr:rr[0]},Ht=function(rr){var Xi=(0,kt.Z)(rr).sort(function(Ui,qo){return Ui-qo});_o&&!(0,Mt.Z)(Xi,Ir.current,!0)&&_o(Bt(Xi)),Aa(Xi)},pn=function(rr){if(!Le){var Xi=0,Ui=bt-Ft;uo.forEach(function(gs,Ps){var Ro=Math.abs(rr-gs);Ro<=Ui&&(Ui=Ro,Xi=Ps)});var qo=(0,kt.Z)(uo);qo[Xi]=rr,bo&&!uo.length&&Mr===void 0&&qo.push(rr),Bo==null||Bo(Bt(qo)),Ht(qo),yo==null||yo(Bt(qo))}},zt=function(rr){rr.preventDefault();var Xi=xn.current.getBoundingClientRect(),Ui=Xi.width,qo=Xi.height,gs=Xi.left,Ps=Xi.top,Ro=Xi.bottom,Ho=Xi.right,Rr=rr.clientX,yr=rr.clientY,Eo;switch(jn){case"btt":Eo=(Ro-yr)/qo;break;case"ttb":Eo=(yr-Ps)/qo;break;case"rtl":Eo=(Ho-Rr)/Ui;break;default:Eo=(Rr-gs)/Ui}var oi=Ft+Eo*(bt-Ft);pn(Wi(oi))},li=Ge.useState(null),ir=(0,Dt.Z)(li,2),cr=ir[0],ri=ir[1],Ei=function(rr,Xi){if(!Le){var Ui=Hr(uo,rr,Xi);Bo==null||Bo(Bt(uo)),Ht(Ui.values),yo==null||yo(Bt(Ui.values)),ri(Ui.value)}};Ge.useEffect(function(){if(cr!==null){var So=uo.indexOf(cr);So>=0&&Ii.current.focus(So)}ri(null)},[cr]);var Xn=Ge.useMemo(function(){return eo&&rn===null?!1:eo},[eo,rn]),tn=function(){yo==null||yo(Bt(Ir.current))},Jr=yt(xn,jn,uo,Ft,bt,Wi,Ht,tn,Hr),Tn=(0,Dt.Z)(Jr,4),zr=Tn[0],Or=Tn[1],ur=Tn[2],ko=Tn[3],Zr=function(rr,Xi){ko(rr,Xi),Bo==null||Bo(Bt(Ir.current))},Gi=zr!==-1;Ge.useEffect(function(){if(!Gi){var So=uo.lastIndexOf(Or);Ii.current.focus(So)}},[Gi]);var Er=Ge.useMemo(function(){return(0,kt.Z)(ur).sort(function(So,rr){return So-rr})},[ur]),ro=Ge.useMemo(function(){return bo?[Er[0],Er[Er.length-1]]:[Ft,Er[0]]},[Er,bo,Ft]),Fn=(0,Dt.Z)(ro,2),ti=Fn[0],Ue=Fn[1];Ge.useImperativeHandle(Pt,function(){return{focus:function(){Ii.current.focus(0)},blur:function(){var rr=document,Xi=rr.activeElement;xn.current.contains(Xi)&&(Xi==null||Xi.blur())}}}),Ge.useEffect(function(){sn&&Ii.current.focus(0)},[]);var fo=Ge.useMemo(function(){return{min:Ft,max:bt,direction:jn,disabled:Le,keyboard:dn,step:rn,included:ci,includedStart:ti,includedEnd:Ue,range:bo,tabIndex:qr,ariaLabelForHandle:_r,ariaLabelledByForHandle:di,ariaValueTextFormatterForHandle:Ot}},[Ft,bt,jn,Le,dn,rn,ci,ti,Ue,bo,qr,_r,di,Ot]);return Ge.createElement(te.Provider,{value:fo},Ge.createElement("div",{ref:xn,className:at()(Ce,Ee,(_t={},(0,Lt.Z)(_t,"".concat(Ce,"-disabled"),Le),(0,Lt.Z)(_t,"".concat(Ce,"-vertical"),Oi),(0,Lt.Z)(_t,"".concat(Ce,"-horizontal"),!Oi),(0,Lt.Z)(_t,"".concat(Ce,"-with-marks"),ki.length),_t)),style:Ie,onMouseDown:zt},Ge.createElement("div",{className:"".concat(Ce,"-rail"),style:Tt}),Ge.createElement(Kt,{prefixCls:Ce,style:Zt,values:Er,startPoint:Un,onStartMove:Xn?Zr:null}),Ge.createElement(yn,{prefixCls:Ce,marks:ki,dots:sr,style:An,activeStyle:Hi}),Ge.createElement(ot,{ref:Ii,prefixCls:Ce,style:ln,values:ur,draggingIndex:zr,onStartMove:Zr,onOffsetChange:Ei,onFocus:en,onBlur:Xt,handleRender:Rn}),Ge.createElement(It,{prefixCls:Ce,marks:ki,onClick:pn})))}),ui=Nn,tt=ui,He=we(36355),mn=we(1684),Zn=we(23073),Qn=we(20475),nn=we(6848),Ln=Ge.forwardRef((rt,Pt)=>{const{open:_t}=rt,We=(0,Ge.useRef)(null),Ce=(0,Ge.useRef)(null);function Ee(){Zn.Z.cancel(Ce.current),Ce.current=null}function Ie(){Ce.current=(0,Zn.Z)(()=>{var Ke;(Ke=We.current)===null||Ke===void 0||Ke.forceAlign(),Ce.current=null})}return Ge.useEffect(()=>(_t?Ie():Ee(),Ee),[_t,rt.title]),Ge.createElement(nn.Z,Object.assign({ref:(0,Qn.sQ)(We,Pt)},rt))}),yi=we(64993),Yn=we(17313),Ai=we(83116),mt=we(37613);const ht=rt=>{const{componentCls:Pt,antCls:_t,controlSize:We,dotSize:Ce,marginFull:Ee,marginPart:Ie,colorFillContentHover:Ke}=rt;return{[Pt]:Object.assign(Object.assign({},(0,Yn.Wf)(rt)),{position:"relative",height:We,margin:`${Ie}px ${Ee}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ee}px ${Ie}px`},[`${Pt}-rail`]:{position:"absolute",backgroundColor:rt.railBg,borderRadius:rt.borderRadiusXS,transition:`background-color ${rt.motionDurationMid}`},[`${Pt}-track`]:{position:"absolute",backgroundColor:rt.trackBg,borderRadius:rt.borderRadiusXS,transition:`background-color ${rt.motionDurationMid}`},[`${Pt}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${Pt}-rail`]:{backgroundColor:rt.railHoverBg},[`${Pt}-track`]:{backgroundColor:rt.trackHoverBg},[`${Pt}-dot`]:{borderColor:Ke},[`${Pt}-handle::after`]:{boxShadow:`0 0 0 ${rt.handleLineWidth}px ${rt.colorPrimaryBorderHover}`},[`${Pt}-dot-active`]:{borderColor:rt.dotActiveBorderColor}},[`${Pt}-handle`]:{position:"absolute",width:rt.handleSize,height:rt.handleSize,outline:"none",[`${Pt}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-rt.handleLineWidth,insetBlockStart:-rt.handleLineWidth,width:rt.handleSize+rt.handleLineWidth*2,height:rt.handleSize+rt.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:rt.handleSize,height:rt.handleSize,backgroundColor:rt.colorBgElevated,boxShadow:`0 0 0 ${rt.handleLineWidth}px ${rt.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`
|
|
inset-inline-start ${rt.motionDurationMid},
|
|
inset-block-start ${rt.motionDurationMid},
|
|
width ${rt.motionDurationMid},
|
|
height ${rt.motionDurationMid},
|
|
box-shadow ${rt.motionDurationMid}
|
|
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((rt.handleSizeHover-rt.handleSize)/2+rt.handleLineWidthHover),insetBlockStart:-((rt.handleSizeHover-rt.handleSize)/2+rt.handleLineWidthHover),width:rt.handleSizeHover+rt.handleLineWidthHover*2,height:rt.handleSizeHover+rt.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${rt.handleLineWidthHover}px ${rt.handleActiveColor}`,width:rt.handleSizeHover,height:rt.handleSizeHover,insetInlineStart:(rt.handleSize-rt.handleSizeHover)/2,insetBlockStart:(rt.handleSize-rt.handleSizeHover)/2}}},[`${Pt}-mark`]:{position:"absolute",fontSize:rt.fontSize},[`${Pt}-mark-text`]:{position:"absolute",display:"inline-block",color:rt.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:rt.colorText}},[`${Pt}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${Pt}-dot`]:{position:"absolute",width:Ce,height:Ce,backgroundColor:rt.colorBgElevated,border:`${rt.handleLineWidth}px solid ${rt.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${rt.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:rt.dotActiveBorderColor}},[`&${Pt}-disabled`]:{cursor:"not-allowed",[`${Pt}-rail`]:{backgroundColor:`${rt.railBg} !important`},[`${Pt}-track`]:{backgroundColor:`${rt.trackBgDisabled} !important`},[`
|
|
${Pt}-dot
|
|
`]:{backgroundColor:rt.colorBgElevated,borderColor:rt.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${Pt}-handle::after`]:{backgroundColor:rt.colorBgElevated,cursor:"not-allowed",width:rt.handleSize,height:rt.handleSize,boxShadow:`0 0 0 ${rt.handleLineWidth}px ${new yi.C(rt.colorTextDisabled).onBackground(rt.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
${Pt}-mark-text,
|
|
${Pt}-dot
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${_t}-tooltip-inner`]:{minWidth:"unset"}})}},un=(rt,Pt)=>{const{componentCls:_t,railSize:We,handleSize:Ce,dotSize:Ee}=rt,Ie=Pt?"paddingBlock":"paddingInline",Ke=Pt?"width":"height",Le=Pt?"height":"width",st=Pt?"insetBlockStart":"insetInlineStart",dn=Pt?"top":"insetInlineStart",sn=(We*3-Ce)/2,en=(Ce-We)/2,Xt=Pt?{borderWidth:`${en}px 0`,transform:`translateY(-${en}px)`}:{borderWidth:`0 ${en}px`,transform:`translateX(-${en}px)`};return{[Ie]:We,[Le]:We*3,[`${_t}-rail`]:{[Ke]:"100%",[Le]:We},[`${_t}-track`]:{[Le]:We},[`${_t}-track-draggable`]:Object.assign({},Xt),[`${_t}-handle`]:{[st]:sn},[`${_t}-mark`]:{insetInlineStart:0,top:0,[dn]:We*3+(Pt?0:rt.marginFull),[Ke]:"100%"},[`${_t}-step`]:{insetInlineStart:0,top:0,[dn]:We,[Ke]:"100%",[Le]:We},[`${_t}-dot`]:{position:"absolute",[st]:(We-Ee)/2}}},Sn=rt=>{const{componentCls:Pt,marginPartWithMark:_t}=rt;return{[`${Pt}-horizontal`]:Object.assign(Object.assign({},un(rt,!0)),{[`&${Pt}-with-marks`]:{marginBottom:_t}})}},Dn=rt=>{const{componentCls:Pt}=rt;return{[`${Pt}-vertical`]:Object.assign(Object.assign({},un(rt,!1)),{height:"100%"})}};var kn=(0,Ai.Z)("Slider",rt=>{const Pt=(0,mt.TS)(rt,{marginPart:(rt.controlHeight-rt.controlSize)/2,marginFull:rt.controlSize/2,marginPartWithMark:rt.controlHeightLG-rt.controlSize});return[ht(Pt),Sn(Pt),Dn(Pt)]},rt=>{const _t=rt.controlHeightLG/4,We=rt.controlHeightSM/2,Ce=rt.lineWidth+1,Ee=rt.lineWidth+1*3;return{controlSize:_t,railSize:4,handleSize:_t,handleSizeHover:We,dotSize:8,handleLineWidth:Ce,handleLineWidthHover:Ee,railBg:rt.colorFillTertiary,railHoverBg:rt.colorFillSecondary,trackBg:rt.colorPrimaryBorder,trackHoverBg:rt.colorPrimaryBorderHover,handleColor:rt.colorPrimaryBorder,handleActiveColor:rt.colorPrimary,dotBorderColor:rt.colorBorderSecondary,dotActiveBorderColor:rt.colorPrimaryBorder,trackBgDisabled:rt.colorBgContainerDisabled}}),ii=function(rt,Pt){var _t={};for(var We in rt)Object.prototype.hasOwnProperty.call(rt,We)&&Pt.indexOf(We)<0&&(_t[We]=rt[We]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,We=Object.getOwnPropertySymbols(rt);Ce<We.length;Ce++)Pt.indexOf(We[Ce])<0&&Object.prototype.propertyIsEnumerable.call(rt,We[Ce])&&(_t[We[Ce]]=rt[We[Ce]]);return _t};const Hn=rt=>typeof rt=="number"?rt.toString():"";var hn=Ge.forwardRef((rt,Pt)=>{const{prefixCls:_t,range:We,className:Ce,rootClassName:Ee,style:Ie,disabled:Ke,tooltipPrefixCls:Le,tipFormatter:st,tooltipVisible:dn,getTooltipPopupContainer:sn,tooltipPlacement:en}=rt,Xt=ii(rt,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:ai,slider:Bn,getPrefixCls:In,getPopupContainer:Yi}=Ge.useContext(He.E_),fi=Ge.useContext(mn.Z),ar=Ke!=null?Ke:fi,[io,jo]=Ge.useState({}),bo=(Wn,Oi)=>{jo(Ri=>Object.assign(Object.assign({},Ri),{[Wn]:Oi}))},Mr=(Wn,Oi)=>Wn||(Oi?ai==="rtl"?"left":"right":"top"),_o=In("slider",_t),[Bo,yo]=kn(_o),ho=at()(Ce,Bn==null?void 0:Bn.className,Ee,{[`${_o}-rtl`]:ai==="rtl"},yo);ai==="rtl"&&!Xt.vertical&&(Xt.reverse=!Xt.reverse);const[Tr,Be]=Ge.useMemo(()=>We?typeof We=="object"?[!0,We.draggableTrack]:[!0,!1]:[!1],[We]),ua=(Wn,Oi)=>{var Ri;const{index:ci,dragging:Un}=Oi,{tooltip:Zt={},vertical:ln}=rt,Tt=Object.assign({},Zt),{open:An,placement:Hi,getPopupContainer:gr,prefixCls:sr,formatter:Rn}=Tt;let Ti;Rn||Rn===null?Ti=Rn:st||st===null?Ti=st:Ti=Hn;const qr=Ti?io[ci]||Un:!1,_r=(Ri=An!=null?An:dn)!==null&&Ri!==void 0?Ri:An===void 0&&qr,di=Object.assign(Object.assign({},Wn.props),{onMouseEnter:()=>bo(ci,!0),onMouseLeave:()=>bo(ci,!1)}),Ot=In("tooltip",sr!=null?sr:Le);return Ge.createElement(Ln,Object.assign({},Tt,{prefixCls:Ot,title:Ti?Ti(Oi.value):"",open:_r,placement:Mr(Hi!=null?Hi:en,ln),key:ci,overlayClassName:`${_o}-tooltip`,getPopupContainer:gr||sn||Yi}),Ge.cloneElement(Wn,di))},eo=Object.assign(Object.assign({},Bn==null?void 0:Bn.style),Ie);return Bo(Ge.createElement(tt,Object.assign({},Xt,{step:Xt.step,range:Tr,draggableTrack:Be,className:ho,style:eo,disabled:ar,ref:Pt,prefixCls:_o,handleRender:ua})))})},78673:function($t,zn,we){"use strict";we.d(zn,{Z:function(){return It}});var ce=we(50023),at=we(92310),Lt=we.n(at),kt=we(5891),Dt=we(80962),jt=we(29043),Ge=we(19149),Mt=we(59301),Ct=we(35788),Et=we(85108),xt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Gt=Mt.forwardRef(function(Yt,yn){var Mi,wi=Yt.prefixCls,Nn=wi===void 0?"rc-switch":wi,ui=Yt.className,tt=Yt.checked,He=Yt.defaultChecked,mn=Yt.disabled,Zn=Yt.loadingIcon,Qn=Yt.checkedChildren,nn=Yt.unCheckedChildren,gn=Yt.onClick,Ln=Yt.onChange,yi=Yt.onKeyDown,Yn=(0,Ge.Z)(Yt,xt),Ai=(0,Ct.Z)(!1,{value:tt,defaultValue:He}),mt=(0,jt.Z)(Ai,2),ht=mt[0],un=mt[1];function Sn(Hn,Di){var hn=ht;return mn||(hn=Hn,un(hn),Ln==null||Ln(hn,Di)),hn}function Dn(Hn){Hn.which===Et.Z.LEFT?Sn(!1,Hn):Hn.which===Et.Z.RIGHT&&Sn(!0,Hn),yi==null||yi(Hn)}function kn(Hn){var Di=Sn(!ht,Hn);gn==null||gn(Di,Hn)}var ii=Lt()(Nn,ui,(Mi={},(0,Dt.Z)(Mi,"".concat(Nn,"-checked"),ht),(0,Dt.Z)(Mi,"".concat(Nn,"-disabled"),mn),Mi));return Mt.createElement("button",(0,kt.Z)({},Yn,{type:"button",role:"switch","aria-checked":ht,disabled:mn,className:ii,ref:yn,onKeyDown:Dn,onClick:kn}),Zn,Mt.createElement("span",{className:"".concat(Nn,"-inner")},Mt.createElement("span",{className:"".concat(Nn,"-inner-checked")},Qn),Mt.createElement("span",{className:"".concat(Nn,"-inner-unchecked")},nn)))});Gt.displayName="Switch";var Ut=Gt,Re=we(14088),te=we(36355),ne=we(1684),de=we(19716),le=we(64993),pe=we(17313),xe=we(83116),Ae=we(37613);const ke=Yt=>{const{componentCls:yn,trackHeightSM:Mi,trackPadding:wi,trackMinWidthSM:Nn,innerMinMarginSM:ui,innerMaxMarginSM:tt,handleSizeSM:He}=Yt,mn=`${yn}-inner`;return{[yn]:{[`&${yn}-small`]:{minWidth:Nn,height:Mi,lineHeight:`${Mi}px`,[`${yn}-inner`]:{paddingInlineStart:tt,paddingInlineEnd:ui,[`${mn}-checked`]:{marginInlineStart:`calc(-100% + ${He+wi*2}px - ${tt*2}px)`,marginInlineEnd:`calc(100% - ${He+wi*2}px + ${tt*2}px)`},[`${mn}-unchecked`]:{marginTop:-Mi,marginInlineStart:0,marginInlineEnd:0}},[`${yn}-handle`]:{width:He,height:He},[`${yn}-loading-icon`]:{top:(He-Yt.switchLoadingIconSize)/2,fontSize:Yt.switchLoadingIconSize},[`&${yn}-checked`]:{[`${yn}-inner`]:{paddingInlineStart:ui,paddingInlineEnd:tt,[`${mn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${mn}-unchecked`]:{marginInlineStart:`calc(100% - ${He+wi*2}px + ${tt*2}px)`,marginInlineEnd:`calc(-100% + ${He+wi*2}px - ${tt*2}px)`}},[`${yn}-handle`]:{insetInlineStart:`calc(100% - ${He+wi}px)`}},[`&:not(${yn}-disabled):active`]:{[`&:not(${yn}-checked) ${mn}`]:{[`${mn}-unchecked`]:{marginInlineStart:Yt.marginXXS/2,marginInlineEnd:-Yt.marginXXS/2}},[`&${yn}-checked ${mn}`]:{[`${mn}-checked`]:{marginInlineStart:-Yt.marginXXS/2,marginInlineEnd:Yt.marginXXS/2}}}}}}},Me=Yt=>{const{componentCls:yn,handleSize:Mi}=Yt;return{[yn]:{[`${yn}-loading-icon${Yt.iconCls}`]:{position:"relative",top:(Mi-Yt.fontSize)/2,color:Yt.switchLoadingIconColor,verticalAlign:"top"},[`&${yn}-checked ${yn}-loading-icon`]:{color:Yt.switchColor}}}},ot=Yt=>{const{componentCls:yn,motion:Mi,trackPadding:wi,handleBg:Nn,handleShadow:ui,handleSize:tt}=Yt,He=`${yn}-handle`;return{[yn]:{[He]:{position:"absolute",top:wi,insetInlineStart:wi,width:tt,height:tt,transition:`all ${Yt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Nn,borderRadius:tt/2,boxShadow:ui,transition:`all ${Yt.switchDuration} ease-in-out`,content:'""'}},[`&${yn}-checked ${He}`]:{insetInlineStart:`calc(100% - ${tt+wi}px)`},[`&:not(${yn}-disabled):active`]:Mi?{[`${He}::before`]:{insetInlineEnd:Yt.switchHandleActiveInset,insetInlineStart:0},[`&${yn}-checked ${He}::before`]:{insetInlineEnd:0,insetInlineStart:Yt.switchHandleActiveInset}}:{}}}},dt=Yt=>{const{componentCls:yn,trackHeight:Mi,trackPadding:wi,innerMinMargin:Nn,innerMaxMargin:ui,handleSize:tt}=Yt,He=`${yn}-inner`;return{[yn]:{[He]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ui,paddingInlineEnd:Nn,transition:`padding-inline-start ${Yt.switchDuration} ease-in-out, padding-inline-end ${Yt.switchDuration} ease-in-out`,[`${He}-checked, ${He}-unchecked`]:{display:"block",color:Yt.colorTextLightSolid,fontSize:Yt.fontSizeSM,transition:`margin-inline-start ${Yt.switchDuration} ease-in-out, margin-inline-end ${Yt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${He}-checked`]:{marginInlineStart:`calc(-100% + ${tt+wi*2}px - ${ui*2}px)`,marginInlineEnd:`calc(100% - ${tt+wi*2}px + ${ui*2}px)`},[`${He}-unchecked`]:{marginTop:-Mi,marginInlineStart:0,marginInlineEnd:0}},[`&${yn}-checked ${He}`]:{paddingInlineStart:Nn,paddingInlineEnd:ui,[`${He}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${He}-unchecked`]:{marginInlineStart:`calc(100% - ${tt+wi*2}px + ${ui*2}px)`,marginInlineEnd:`calc(-100% + ${tt+wi*2}px - ${ui*2}px)`}},[`&:not(${yn}-disabled):active`]:{[`&:not(${yn}-checked) ${He}`]:{[`${He}-unchecked`]:{marginInlineStart:wi*2,marginInlineEnd:-wi*2}},[`&${yn}-checked ${He}`]:{[`${He}-checked`]:{marginInlineStart:-wi*2,marginInlineEnd:wi*2}}}}}},yt=Yt=>{const{componentCls:yn,trackHeight:Mi,trackMinWidth:wi}=Yt;return{[yn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Yt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:wi,height:Mi,lineHeight:`${Mi}px`,verticalAlign:"middle",background:Yt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Yt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${yn}-disabled)`]:{background:Yt.colorTextTertiary}}),(0,pe.Qy)(Yt)),{[`&${yn}-checked`]:{background:Yt.switchColor,[`&:hover:not(${yn}-disabled)`]:{background:Yt.colorPrimaryHover}},[`&${yn}-loading, &${yn}-disabled`]:{cursor:"not-allowed",opacity:Yt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${yn}-rtl`]:{direction:"rtl"}})}};var vt=(0,xe.Z)("Switch",Yt=>{const yn=(0,Ae.TS)(Yt,{switchDuration:Yt.motionDurationMid,switchColor:Yt.colorPrimary,switchDisabledOpacity:Yt.opacityLoading,switchLoadingIconSize:Yt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Yt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[yt(yn),dt(yn),ot(yn),Me(yn),ke(yn)]},Yt=>{const{fontSize:yn,lineHeight:Mi,controlHeight:wi,colorWhite:Nn}=Yt,ui=yn*Mi,tt=wi/2,He=2,mn=ui-He*2,Zn=tt-He*2;return{trackHeight:ui,trackHeightSM:tt,trackMinWidth:mn*2+He*4,trackMinWidthSM:Zn*2+He*2,trackPadding:He,handleBg:Nn,handleSize:mn,handleSizeSM:Zn,handleShadow:`0 2px 4px 0 ${new le.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:mn/2,innerMaxMargin:mn+He+He*2,innerMinMarginSM:Zn/2,innerMaxMarginSM:Zn+He+He*2}}),Kt=function(Yt,yn){var Mi={};for(var wi in Yt)Object.prototype.hasOwnProperty.call(Yt,wi)&&yn.indexOf(wi)<0&&(Mi[wi]=Yt[wi]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,wi=Object.getOwnPropertySymbols(Yt);Nn<wi.length;Nn++)yn.indexOf(wi[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Yt,wi[Nn])&&(Mi[wi[Nn]]=Yt[wi[Nn]]);return Mi};const wt=Mt.forwardRef((Yt,yn)=>{const{prefixCls:Mi,size:wi,disabled:Nn,loading:ui,className:tt,rootClassName:He,style:mn}=Yt,Zn=Kt(Yt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Qn,direction:nn,switch:gn}=Mt.useContext(te.E_),Ln=Mt.useContext(ne.Z),yi=(Nn!=null?Nn:Ln)||ui,Yn=Qn("switch",Mi),Ai=Mt.createElement("div",{className:`${Yn}-handle`},ui&&Mt.createElement(ce.Z,{className:`${Yn}-loading-icon`})),[mt,ht]=vt(Yn),un=(0,de.Z)(wi),Sn=Lt()(gn==null?void 0:gn.className,{[`${Yn}-small`]:un==="small",[`${Yn}-loading`]:ui,[`${Yn}-rtl`]:nn==="rtl"},tt,He,ht),Dn=Object.assign(Object.assign({},gn==null?void 0:gn.style),mn);return mt(Mt.createElement(Re.Z,{component:"Switch"},Mt.createElement(Ut,Object.assign({},Zn,{prefixCls:Yn,className:Sn,style:Dn,disabled:yi,ref:yn,loadingIcon:Ai}))))});wt.__ANT_SWITCH=!0;var It=wt},10527:function($t,zn,we){"use strict";var ce,at=we(54297).default;ce={value:!0},zn.Z=void 0;var Lt=at(we(65835)),kt=at(we(6432));const Dt={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"]},Lt.default),timePickerLocale:Object.assign({},kt.default)};Dt.lang.ok="\u786E\u5B9A";var jt=Dt;zn.Z=jt},6432:function($t,zn){"use strict";Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=void 0;var ce={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};zn.default=ce},99498:function($t,zn,we){(function(ce){ce(we(89780))})(function(ce){ce.defineOption("placeholder","",function(Mt,Ct,Et){var xt=Et&&Et!=ce.Init;if(Ct&&!xt)Mt.on("blur",Dt),Mt.on("change",jt),Mt.on("swapDoc",jt),ce.on(Mt.getInputField(),"compositionupdate",Mt.state.placeholderCompose=function(){kt(Mt)}),jt(Mt);else if(!Ct&&xt){Mt.off("blur",Dt),Mt.off("change",jt),Mt.off("swapDoc",jt),ce.off(Mt.getInputField(),"compositionupdate",Mt.state.placeholderCompose),at(Mt);var Gt=Mt.getWrapperElement();Gt.className=Gt.className.replace(" CodeMirror-empty","")}Ct&&!Mt.hasFocus()&&Dt(Mt)});function at(Mt){Mt.state.placeholder&&(Mt.state.placeholder.parentNode.removeChild(Mt.state.placeholder),Mt.state.placeholder=null)}function Lt(Mt){at(Mt);var Ct=Mt.state.placeholder=document.createElement("pre");Ct.style.cssText="height: 0; overflow: visible",Ct.style.direction=Mt.getOption("direction"),Ct.className="CodeMirror-placeholder CodeMirror-line-like";var Et=Mt.getOption("placeholder");typeof Et=="string"&&(Et=document.createTextNode(Et)),Ct.appendChild(Et),Mt.display.lineSpace.insertBefore(Ct,Mt.display.lineSpace.firstChild)}function kt(Mt){setTimeout(function(){var Ct=!1,Et=Mt.getInputField();Et.nodeName=="TEXTAREA"?Ct=!Et.value:Mt.lineCount()==1&&(Ct=!/[^\u200b]/.test(Et.querySelector(".CodeMirror-line").textContent)),Ct?Lt(Mt):at(Mt)},20)}function Dt(Mt){Ge(Mt)&&Lt(Mt)}function jt(Mt){var Ct=Mt.getWrapperElement(),Et=Ge(Mt);Ct.className=Ct.className.replace(" CodeMirror-empty","")+(Et?" CodeMirror-empty":""),Et?Lt(Mt):at(Mt)}function Ge(Mt){return Mt.lineCount()===1&&Mt.getLine(0)===""}})},25717:function($t,zn,we){(function(ce){ce(we(89780))})(function(ce){var at={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Lt=ce.Pos;ce.defineOption("autoCloseBrackets",!1,function(te,ne,de){de&&de!=ce.Init&&(te.removeKeyMap(Dt),te.state.closeBrackets=null),ne&&(jt(kt(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Dt))});function kt(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:at[ne]}var Dt={Backspace:Ct,Enter:Et};function jt(te){for(var ne=0;ne<te.length;ne++){var de=te.charAt(ne),le="'"+de+"'";Dt[le]||(Dt[le]=Ge(de))}}jt(at.pairs+"`");function Ge(te){return function(ne){return Gt(ne,te)}}function Mt(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var de=te.getModeAt(te.getCursor());return de.closeBrackets||ne}function Ct(te){var ne=Mt(te);if(!ne||te.getOption("disableInput"))return ce.Pass;for(var de=kt(ne,"pairs"),le=te.listSelections(),pe=0;pe<le.length;pe++){if(!le[pe].empty())return ce.Pass;var xe=Ut(te,le[pe].head);if(!xe||de.indexOf(xe)%2!=0)return ce.Pass}for(var pe=le.length-1;pe>=0;pe--){var Ae=le[pe].head;te.replaceRange("",Lt(Ae.line,Ae.ch-1),Lt(Ae.line,Ae.ch+1),"+delete")}}function Et(te){var ne=Mt(te),de=ne&&kt(ne,"explode");if(!de||te.getOption("disableInput"))return ce.Pass;for(var le=te.listSelections(),pe=0;pe<le.length;pe++){if(!le[pe].empty())return ce.Pass;var xe=Ut(te,le[pe].head);if(!xe||de.indexOf(xe)%2!=0)return ce.Pass}te.operation(function(){var Ae=te.lineSeparator()||`
|
|
`;te.replaceSelection(Ae+Ae,null),te.execCommand("goCharLeft"),le=te.listSelections();for(var ke=0;ke<le.length;ke++){var Me=le[ke].head.line;te.indentLine(Me,null,!0),te.indentLine(Me+1,null,!0)}})}function xt(te){var ne=ce.cmpPos(te.anchor,te.head)>0;return{anchor:new Lt(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new Lt(te.head.line,te.head.ch+(ne?1:-1))}}function Gt(te,ne){var de=Mt(te);if(!de||te.getOption("disableInput"))return ce.Pass;var le=kt(de,"pairs"),pe=le.indexOf(ne);if(pe==-1)return ce.Pass;for(var xe=kt(de,"closeBefore"),Ae=kt(de,"triples"),ke=le.charAt(pe+1)==ne,Me=te.listSelections(),ot=pe%2==0,dt,yt=0;yt<Me.length;yt++){var vt=Me[yt],Kt=vt.head,wt,It=te.getRange(Kt,Lt(Kt.line,Kt.ch+1));if(ot&&!vt.empty())wt="surround";else if((ke||!ot)&&It==ne)ke&&Re(te,Kt)?wt="both":Ae.indexOf(ne)>=0&&te.getRange(Kt,Lt(Kt.line,Kt.ch+3))==ne+ne+ne?wt="skipThree":wt="skip";else if(ke&&Kt.ch>1&&Ae.indexOf(ne)>=0&&te.getRange(Lt(Kt.line,Kt.ch-2),Kt)==ne+ne){if(Kt.ch>2&&/\bstring/.test(te.getTokenTypeAt(Lt(Kt.line,Kt.ch-2))))return ce.Pass;wt="addFour"}else if(ke){var Yt=Kt.ch==0?" ":te.getRange(Lt(Kt.line,Kt.ch-1),Kt);if(!ce.isWordChar(It)&&Yt!=ne&&!ce.isWordChar(Yt))wt="both";else return ce.Pass}else if(ot&&(It.length===0||/\s/.test(It)||xe.indexOf(It)>-1))wt="both";else return ce.Pass;if(!dt)dt=wt;else if(dt!=wt)return ce.Pass}var yn=pe%2?le.charAt(pe-1):ne,Mi=pe%2?ne:le.charAt(pe+1);te.operation(function(){if(dt=="skip")te.execCommand("goCharRight");else if(dt=="skipThree")for(var wi=0;wi<3;wi++)te.execCommand("goCharRight");else if(dt=="surround"){for(var Nn=te.getSelections(),wi=0;wi<Nn.length;wi++)Nn[wi]=yn+Nn[wi]+Mi;te.replaceSelections(Nn,"around"),Nn=te.listSelections().slice();for(var wi=0;wi<Nn.length;wi++)Nn[wi]=xt(Nn[wi]);te.setSelections(Nn)}else dt=="both"?(te.replaceSelection(yn+Mi,null),te.triggerElectric(yn+Mi),te.execCommand("goCharLeft")):dt=="addFour"&&(te.replaceSelection(yn+yn+yn+yn,"before"),te.execCommand("goCharRight"))})}function Ut(te,ne){var de=te.getRange(Lt(ne.line,ne.ch-1),Lt(ne.line,ne.ch+1));return de.length==2?de:null}function Re(te,ne){var de=te.getTokenAt(Lt(ne.line,ne.ch+1));return/\bstring/.test(de.type)&&de.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function($t,zn,we){(function(ce){ce(we(89780),we(32855))})(function(ce){ce.defineOption("autoCloseTags",!1,function(Ct,Et,xt){if(xt!=ce.Init&&xt&&Ct.removeKeyMap("autoCloseTags"),!!Et){var Gt={name:"autoCloseTags"};(typeof Et!="object"||Et.whenClosing!==!1)&&(Gt["'/'"]=function(Ut){return jt(Ut)}),(typeof Et!="object"||Et.whenOpening!==!1)&&(Gt["'>'"]=function(Ut){return kt(Ut)}),Ct.addKeyMap(Gt)}});var at=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Lt=["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 kt(Ct){if(Ct.getOption("disableInput"))return ce.Pass;for(var Et=Ct.listSelections(),xt=[],Gt=Ct.getOption("autoCloseTags"),Ut=0;Ut<Et.length;Ut++){if(!Et[Ut].empty())return ce.Pass;var Re=Et[Ut].head,te=Ct.getTokenAt(Re),ne=ce.innerMode(Ct.getMode(),te.state),de=ne.state,le=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(de),pe=le&&le.name;if(!pe)return ce.Pass;var xe=ne.mode.configuration=="html",Ae=typeof Gt=="object"&&Gt.dontCloseTags||xe&&at,ke=typeof Gt=="object"&&Gt.indentTags||xe&≪te.end>Re.ch&&(pe=pe.slice(0,pe.length-te.end+Re.ch));var Me=pe.toLowerCase();if(!pe||te.type=="string"&&(te.end!=Re.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&le.close||te.string.indexOf("/")==Re.ch-te.start-1||Ae&&Ge(Ae,Me)>-1||Mt(Ct,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(de)||[],pe,Re,!0))return ce.Pass;var ot=typeof Gt=="object"&&Gt.emptyTags;if(ot&&Ge(ot,pe)>-1){xt[Ut]={text:"/>",newPos:ce.Pos(Re.line,Re.ch+2)};continue}var dt=ke&&Ge(ke,Me)>-1;xt[Ut]={indent:dt,text:">"+(dt?`
|
|
|
|
`:"")+"</"+pe+">",newPos:dt?ce.Pos(Re.line+1,0):ce.Pos(Re.line,Re.ch+1)}}for(var yt=typeof Gt=="object"&&Gt.dontIndentOnAutoClose,Ut=Et.length-1;Ut>=0;Ut--){var vt=xt[Ut];Ct.replaceRange(vt.text,Et[Ut].head,Et[Ut].anchor,"+insert");var Kt=Ct.listSelections().slice(0);Kt[Ut]={head:vt.newPos,anchor:vt.newPos},Ct.setSelections(Kt),!yt&&vt.indent&&(Ct.indentLine(vt.newPos.line,null,!0),Ct.indentLine(vt.newPos.line+1,null,!0))}}function Dt(Ct,Et){for(var xt=Ct.listSelections(),Gt=[],Ut=Et?"/":"</",Re=Ct.getOption("autoCloseTags"),te=typeof Re=="object"&&Re.dontIndentOnSlash,ne=0;ne<xt.length;ne++){if(!xt[ne].empty())return ce.Pass;var de=xt[ne].head,le=Ct.getTokenAt(de),pe=ce.innerMode(Ct.getMode(),le.state),xe=pe.state;if(Et&&(le.type=="string"||le.string.charAt(0)!="<"||le.start!=de.ch-1))return ce.Pass;var Ae,ke=pe.mode.name!="xml"&&Ct.getMode().name=="htmlmixed";if(ke&&pe.mode.name=="javascript")Ae=Ut+"script";else if(ke&&pe.mode.name=="css")Ae=Ut+"style";else{var Me=pe.mode.xmlCurrentContext&&pe.mode.xmlCurrentContext(xe);if(!Me||Me.length&&Mt(Ct,Me,Me[Me.length-1],de))return ce.Pass;Ae=Ut+Me[Me.length-1]}Ct.getLine(de.line).charAt(le.end)!=">"&&(Ae+=">"),Gt[ne]=Ae}if(Ct.replaceSelections(Gt),xt=Ct.listSelections(),!te)for(var ne=0;ne<xt.length;ne++)(ne==xt.length-1||xt[ne].head.line<xt[ne+1].head.line)&&Ct.indentLine(xt[ne].head.line)}function jt(Ct){return Ct.getOption("disableInput")?ce.Pass:Dt(Ct,!0)}ce.commands.closeTag=function(Ct){return Dt(Ct)};function Ge(Ct,Et){if(Ct.indexOf)return Ct.indexOf(Et);for(var xt=0,Gt=Ct.length;xt<Gt;++xt)if(Ct[xt]==Et)return xt;return-1}function Mt(Ct,Et,xt,Gt,Ut){if(!ce.scanForClosingTag)return!1;var Re=Math.min(Ct.lastLine()+1,Gt.line+500),te=ce.scanForClosingTag(Ct,Gt,null,Re);if(!te||te.tag!=xt)return!1;for(var ne=Ut?1:0,de=Et.length-1;de>=0&&Et[de]==xt;de--)++ne;Gt=te.to;for(var de=1;de<ne;de++){var le=ce.scanForClosingTag(Ct,Gt,null,Re);if(!le||le.tag!=xt)return!1;Gt=le.to}return!0}})},32855:function($t,zn,we){(function(ce){ce(we(89780))})(function(ce){"use strict";var at=ce.Pos;function Lt(de,le){return de.line-le.line||de.ch-le.ch}var kt="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",Dt=kt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",jt=new RegExp("<(/?)(["+kt+"]["+Dt+"]*)","g");function Ge(de,le,pe,xe){this.line=le,this.ch=pe,this.cm=de,this.text=de.getLine(le),this.min=xe?Math.max(xe.from,de.firstLine()):de.firstLine(),this.max=xe?Math.min(xe.to-1,de.lastLine()):de.lastLine()}function Mt(de,le){var pe=de.cm.getTokenTypeAt(at(de.line,le));return pe&&/\btag\b/.test(pe)}function Ct(de){if(!(de.line>=de.max))return de.ch=0,de.text=de.cm.getLine(++de.line),!0}function Et(de){if(!(de.line<=de.min))return de.text=de.cm.getLine(--de.line),de.ch=de.text.length,!0}function xt(de){for(;;){var le=de.text.indexOf(">",de.ch);if(le==-1){if(Ct(de))continue;return}if(!Mt(de,le+1)){de.ch=le+1;continue}var pe=de.text.lastIndexOf("/",le),xe=pe>-1&&!/\S/.test(de.text.slice(pe+1,le));return de.ch=le+1,xe?"selfClose":"regular"}}function Gt(de){for(;;){var le=de.ch?de.text.lastIndexOf("<",de.ch-1):-1;if(le==-1){if(Et(de))continue;return}if(!Mt(de,le+1)){de.ch=le;continue}jt.lastIndex=le,de.ch=le;var pe=jt.exec(de.text);if(pe&&pe.index==le)return pe}}function Ut(de){for(;;){jt.lastIndex=de.ch;var le=jt.exec(de.text);if(!le){if(Ct(de))continue;return}if(!Mt(de,le.index+1)){de.ch=le.index+1;continue}return de.ch=le.index+le[0].length,le}}function Re(de){for(;;){var le=de.ch?de.text.lastIndexOf(">",de.ch-1):-1;if(le==-1){if(Et(de))continue;return}if(!Mt(de,le+1)){de.ch=le;continue}var pe=de.text.lastIndexOf("/",le),xe=pe>-1&&!/\S/.test(de.text.slice(pe+1,le));return de.ch=le+1,xe?"selfClose":"regular"}}function te(de,le){for(var pe=[];;){var xe=Ut(de),Ae,ke=de.line,Me=de.ch-(xe?xe[0].length:0);if(!xe||!(Ae=xt(de)))return;if(Ae!="selfClose")if(xe[1]){for(var ot=pe.length-1;ot>=0;--ot)if(pe[ot]==xe[2]){pe.length=ot;break}if(ot<0&&(!le||le==xe[2]))return{tag:xe[2],from:at(ke,Me),to:at(de.line,de.ch)}}else pe.push(xe[2])}}function ne(de,le){for(var pe=[];;){var xe=Re(de);if(!xe)return;if(xe=="selfClose"){Gt(de);continue}var Ae=de.line,ke=de.ch,Me=Gt(de);if(!Me)return;if(Me[1])pe.push(Me[2]);else{for(var ot=pe.length-1;ot>=0;--ot)if(pe[ot]==Me[2]){pe.length=ot;break}if(ot<0&&(!le||le==Me[2]))return{tag:Me[2],from:at(de.line,de.ch),to:at(Ae,ke)}}}}ce.registerHelper("fold","xml",function(de,le){for(var pe=new Ge(de,le.line,0);;){var xe=Ut(pe);if(!xe||pe.line!=le.line)return;var Ae=xt(pe);if(!Ae)return;if(!xe[1]&&Ae!="selfClose"){var ke=at(pe.line,pe.ch),Me=te(pe,xe[2]);return Me&&Lt(Me.from,ke)>0?{from:ke,to:Me.from}:null}}}),ce.findMatchingTag=function(de,le,pe){var xe=new Ge(de,le.line,le.ch,pe);if(!(xe.text.indexOf(">")==-1&&xe.text.indexOf("<")==-1)){var Ae=xt(xe),ke=Ae&&at(xe.line,xe.ch),Me=Ae&&Gt(xe);if(!(!Ae||!Me||Lt(xe,le)>0)){var ot={from:at(xe.line,xe.ch),to:ke,tag:Me[2]};return Ae=="selfClose"?{open:ot,close:null,at:"open"}:Me[1]?{open:ne(xe,Me[2]),close:ot,at:"close"}:(xe=new Ge(de,ke.line,ke.ch,pe),{open:ot,close:te(xe,Me[2]),at:"open"})}}},ce.findEnclosingTag=function(de,le,pe,xe){for(var Ae=new Ge(de,le.line,le.ch,pe);;){var ke=ne(Ae,xe);if(!ke)break;var Me=new Ge(de,le.line,le.ch,pe),ot=te(Me,ke.tag);if(ot)return{open:ke,close:ot}}},ce.scanForClosingTag=function(de,le,pe,xe){var Ae=new Ge(de,le.line,le.ch,xe?{from:0,to:xe}:null);return te(Ae,pe)}})},89780:function($t){(function(zn,we){$t.exports=we()})(this,function(){"use strict";var zn=navigator.userAgent,we=navigator.platform,ce=/gecko\/\d/i.test(zn),at=/MSIE \d/.test(zn),Lt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zn),kt=/Edge\/(\d+)/.exec(zn),Dt=at||Lt||kt,jt=Dt&&(at?document.documentMode||6:+(kt||Lt)[1]),Ge=!kt&&/WebKit\//.test(zn),Mt=Ge&&/Qt\/\d+\.\d+/.test(zn),Ct=!kt&&/Chrome\//.test(zn),Et=/Opera\//.test(zn),xt=/Apple Computer/.test(navigator.vendor),Gt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zn),Ut=/PhantomJS/.test(zn),Re=!kt&&/AppleWebKit/.test(zn)&&/Mobile\/\w+/.test(zn),te=/Android/.test(zn),ne=Re||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zn),de=Re||/Mac/.test(we),le=/\bCrOS\b/.test(zn),pe=/win/i.test(we),xe=Et&&zn.match(/Version\/(\d*\.\d*)/);xe&&(xe=Number(xe[1])),xe&&xe>=15&&(Et=!1,Ge=!0);var Ae=de&&(Mt||Et&&(xe==null||xe<12.11)),ke=ce||Dt&&jt>=9;function Me(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var ot=function(ie,ae){var fe=ie.className,he=Me(ae).exec(fe);if(he){var me=fe.slice(he.index+he[0].length);ie.className=fe.slice(0,he.index)+(me?he[1]+me:"")}};function dt(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function yt(ie,ae){return dt(ie).appendChild(ae)}function vt(ie,ae,fe,he){var me=document.createElement(ie);if(fe&&(me.className=fe),he&&(me.style.cssText=he),typeof ae=="string")me.appendChild(document.createTextNode(ae));else if(ae)for(var De=0;De<ae.length;++De)me.appendChild(ae[De]);return me}function Kt(ie,ae,fe,he){var me=vt(ie,ae,fe,he);return me.setAttribute("role","presentation"),me}var wt;document.createRange?wt=function(ie,ae,fe,he){var me=document.createRange();return me.setEnd(he||ie,fe),me.setStart(ie,ae),me}:wt=function(ie,ae,fe){var he=document.body.createTextRange();try{he.moveToElementText(ie.parentNode)}catch(me){return he}return he.collapse(!0),he.moveEnd("character",fe),he.moveStart("character",ae),he};function It(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function Yt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function yn(ie,ae){var fe=ie.className;Me(ae).test(fe)||(ie.className+=(fe?" ":"")+ae)}function Mi(ie,ae){for(var fe=ie.split(" "),he=0;he<fe.length;he++)fe[he]&&!Me(fe[he]).test(ae)&&(ae+=" "+fe[he]);return ae}var wi=function(ie){ie.select()};Re?wi=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Dt&&(wi=function(ie){try{ie.select()}catch(ae){}});function Nn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function ui(ie,ae,fe){ae||(ae={});for(var he in ie)ie.hasOwnProperty(he)&&(fe!==!1||!ae.hasOwnProperty(he))&&(ae[he]=ie[he]);return ae}function tt(ie,ae,fe,he,me){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var De=he||0,Ve=me||0;;){var Xe=ie.indexOf(" ",De);if(Xe<0||Xe>=ae)return Ve+(ae-De);Ve+=Xe-De,Ve+=fe-Ve%fe,De=Xe+1}}var He=function(){this.id=null,this.f=null,this.time=0,this.handler=Nn(this.onTimeout,this)};He.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},He.prototype.set=function(ie,ae){this.f=ae;var fe=+new Date+ie;(!this.id||fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=fe)};function mn(ie,ae){for(var fe=0;fe<ie.length;++fe)if(ie[fe]==ae)return fe;return-1}var Zn=50,Qn={toString:function(){return"CodeMirror.Pass"}},nn={scroll:!1},gn={origin:"*mouse"},Ln={origin:"+move"};function yi(ie,ae,fe){for(var he=0,me=0;;){var De=ie.indexOf(" ",he);De==-1&&(De=ie.length);var Ve=De-he;if(De==ie.length||me+Ve>=ae)return he+Math.min(Ve,ae-me);if(me+=De-he,me+=fe-me%fe,he=De+1,me>=ae)return he}}var Yn=[""];function Ai(ie){for(;Yn.length<=ie;)Yn.push(mt(Yn)+" ");return Yn[ie]}function mt(ie){return ie[ie.length-1]}function ht(ie,ae){for(var fe=[],he=0;he<ie.length;he++)fe[he]=ae(ie[he],he);return fe}function un(ie,ae,fe){for(var he=0,me=fe(ae);he<ie.length&&fe(ie[he])<=me;)he++;ie.splice(he,0,ae)}function Sn(){}function Dn(ie,ae){var fe;return Object.create?fe=Object.create(ie):(Sn.prototype=ie,fe=new Sn),ae&&ui(ae,fe),fe}var kn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ii(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||kn.test(ie))}function Hn(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&ii(ie)?!0:ae.test(ie):ii(ie)}function Di(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var hn=/[\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 rt(ie){return ie.charCodeAt(0)>=768&&hn.test(ie)}function Pt(ie,ae,fe){for(;(fe<0?ae>0:ae<ie.length)&&rt(ie.charAt(ae));)ae+=fe;return ae}function _t(ie,ae,fe){for(var he=ae>fe?-1:1;;){if(ae==fe)return ae;var me=(ae+fe)/2,De=he<0?Math.ceil(me):Math.floor(me);if(De==ae)return ie(De)?ae:fe;ie(De)?fe=De:ae=De+he}}function We(ie,ae,fe,he){if(!ie)return he(ae,fe,"ltr",0);for(var me=!1,De=0;De<ie.length;++De){var Ve=ie[De];(Ve.from<fe&&Ve.to>ae||ae==fe&&Ve.to==ae)&&(he(Math.max(Ve.from,ae),Math.min(Ve.to,fe),Ve.level==1?"rtl":"ltr",De),me=!0)}me||he(ae,fe,"ltr")}var Ce=null;function Ee(ie,ae,fe){var he;Ce=null;for(var me=0;me<ie.length;++me){var De=ie[me];if(De.from<ae&&De.to>ae)return me;De.to==ae&&(De.from!=De.to&&fe=="before"?he=me:Ce=me),De.from==ae&&(De.from!=De.to&&fe!="before"?he=me:Ce=me)}return he!=null?he:Ce}var Ie=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(qe){return qe<=247?ie.charAt(qe):1424<=qe&&qe<=1524?"R":1536<=qe&&qe<=1785?ae.charAt(qe-1536):1774<=qe&&qe<=2220?"r":8192<=qe&&qe<=8203?"w":qe==8204?"b":"L"}var he=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,De=/[LRr]/,Ve=/[Lb1n]/,Xe=/[1n]/;function Oe(qe,Rt,gt){this.level=qe,this.from=Rt,this.to=gt}return function(qe,Rt){var gt=Rt=="ltr"?"L":"R";if(qe.length==0||Rt=="ltr"&&!he.test(qe))return!1;for(var Pn=qe.length,fn=[],Ci=0;Ci<Pn;++Ci)fn.push(fe(qe.charCodeAt(Ci)));for(var Bi=0,nr=gt;Bi<Pn;++Bi){var pr=fn[Bi];pr=="m"?fn[Bi]=nr:nr=pr}for(var hr=0,Dr=gt;hr<Pn;++hr){var vo=fn[hr];vo=="1"&&Dr=="r"?fn[hr]="n":De.test(vo)&&(Dr=vo,vo=="r"&&(fn[hr]="R"))}for(var Qo=1,Kr=fn[0];Qo<Pn-1;++Qo){var ka=fn[Qo];ka=="+"&&Kr=="1"&&fn[Qo+1]=="1"?fn[Qo]="1":ka==","&&Kr==fn[Qo+1]&&(Kr=="1"||Kr=="n")&&(fn[Qo]=Kr),Kr=ka}for(var rs=0;rs<Pn;++rs){var Ql=fn[rs];if(Ql==",")fn[rs]="N";else if(Ql=="%"){var pl=void 0;for(pl=rs+1;pl<Pn&&fn[pl]=="%";++pl);for(var ac=rs&&fn[rs-1]=="!"||pl<Pn&&fn[pl]=="1"?"1":"N",_u=rs;_u<pl;++_u)fn[_u]=ac;rs=pl-1}}for(var mu=0,sc=gt;mu<Pn;++mu){var Wu=fn[mu];sc=="L"&&Wu=="1"?fn[mu]="L":De.test(Wu)&&(sc=Wu)}for(var vu=0;vu<Pn;++vu)if(me.test(fn[vu])){var Mo=void 0;for(Mo=vu+1;Mo<Pn&&me.test(fn[Mo]);++Mo);for(var Ms=(vu?fn[vu-1]:gt)=="L",Ul=(Mo<Pn?fn[Mo]:gt)=="L",ks=Ms==Ul?Ms?"L":"R":gt,Hc=vu;Hc<Mo;++Hc)fn[Hc]=ks;vu=Mo-1}for(var Ml=[],dd,ve=0;ve<Pn;)if(Ve.test(fn[ve])){var Se=ve;for(++ve;ve<Pn&&Ve.test(fn[ve]);++ve);Ml.push(new Oe(0,Se,ve))}else{var be=ve,je=Ml.length,et=Rt=="rtl"?1:0;for(++ve;ve<Pn&&fn[ve]!="L";++ve);for(var $e=be;$e<ve;)if(Xe.test(fn[$e])){be<$e&&(Ml.splice(je,0,new Oe(1,be,$e)),je+=et);var ct=$e;for(++$e;$e<ve&&Xe.test(fn[$e]);++$e);Ml.splice(je,0,new Oe(2,ct,$e)),je+=et,be=$e}else++$e;be<ve&&Ml.splice(je,0,new Oe(1,be,ve))}return Rt=="ltr"&&(Ml[0].level==1&&(dd=qe.match(/^\s+/))&&(Ml[0].from=dd[0].length,Ml.unshift(new Oe(0,0,dd[0].length))),mt(Ml).level==1&&(dd=qe.match(/\s+$/))&&(mt(Ml).to-=dd[0].length,Ml.push(new Oe(0,Pn-dd[0].length,Pn)))),Rt=="rtl"?Ml.reverse():Ml}}();function Ke(ie,ae){var fe=ie.order;return fe==null&&(fe=ie.order=Ie(ie.text,ae)),fe}var Le=[],st=function(ie,ae,fe){if(ie.addEventListener)ie.addEventListener(ae,fe,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,fe);else{var he=ie._handlers||(ie._handlers={});he[ae]=(he[ae]||Le).concat(fe)}};function dn(ie,ae){return ie._handlers&&ie._handlers[ae]||Le}function sn(ie,ae,fe){if(ie.removeEventListener)ie.removeEventListener(ae,fe,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,fe);else{var he=ie._handlers,me=he&&he[ae];if(me){var De=mn(me,fe);De>-1&&(he[ae]=me.slice(0,De).concat(me.slice(De+1)))}}}function en(ie,ae){var fe=dn(ie,ae);if(fe.length)for(var he=Array.prototype.slice.call(arguments,2),me=0;me<fe.length;++me)fe[me].apply(null,he)}function Xt(ie,ae,fe){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),en(ie,fe||ae.type,ie,ae),ar(ae)||ae.codemirrorIgnore}function ai(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var fe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),he=0;he<ae.length;++he)mn(fe,ae[he])==-1&&fe.push(ae[he])}function Bn(ie,ae){return dn(ie,ae).length>0}function In(ie){ie.prototype.on=function(ae,fe){st(this,ae,fe)},ie.prototype.off=function(ae,fe){sn(this,ae,fe)}}function Yi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function fi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function ar(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function io(ie){Yi(ie),fi(ie)}function jo(ie){return ie.target||ie.srcElement}function bo(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),de&&ie.ctrlKey&&ae==1&&(ae=3),ae}var Mr=function(){if(Dt&&jt<9)return!1;var ie=vt("div");return"draggable"in ie||"dragDrop"in ie}(),_o;function Bo(ie){if(_o==null){var ae=vt("span","\u200B");yt(ie,vt("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(_o=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Dt&&jt<8))}var fe=_o?vt("span","\u200B"):vt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var yo;function ho(ie){if(yo!=null)return yo;var ae=yt(ie,document.createTextNode("A\u062EA")),fe=wt(ae,0,1).getBoundingClientRect(),he=wt(ae,1,2).getBoundingClientRect();return dt(ie),!fe||fe.left==fe.right?!1:yo=he.right-fe.right<3}var Tr=`
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,fe=[],he=ie.length;ae<=he;){var me=ie.indexOf(`
|
|
`,ae);me==-1&&(me=ie.length);var De=ie.slice(ae,ie.charAt(me-1)=="\r"?me-1:me),Ve=De.indexOf("\r");Ve!=-1?(fe.push(De.slice(0,Ve)),ae+=Ve+1):(fe.push(De),ae=me+1)}return fe}:function(ie){return ie.split(/\r\n?|\n/)},Be=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(fe){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},ua=function(){var ie=vt("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),eo=null;function Wn(ie){if(eo!=null)return eo;var ae=yt(ie,vt("span","x")),fe=ae.getBoundingClientRect(),he=wt(ae,0,1).getBoundingClientRect();return eo=Math.abs(fe.left-he.left)>1}var Oi={},Ri={};function ci(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Oi[ie]=ae}function Un(ie,ae){Ri[ie]=ae}function Zt(ie){if(typeof ie=="string"&&Ri.hasOwnProperty(ie))ie=Ri[ie];else if(ie&&typeof ie.name=="string"&&Ri.hasOwnProperty(ie.name)){var ae=Ri[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Dn(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Zt("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Zt("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function ln(ie,ae){ae=Zt(ae);var fe=Oi[ae.name];if(!fe)return ln(ie,"text/plain");var he=fe(ie,ae);if(Tt.hasOwnProperty(ae.name)){var me=Tt[ae.name];for(var De in me)me.hasOwnProperty(De)&&(he.hasOwnProperty(De)&&(he["_"+De]=he[De]),he[De]=me[De])}if(he.name=ae.name,ae.helperType&&(he.helperType=ae.helperType),ae.modeProps)for(var Ve in ae.modeProps)he[Ve]=ae.modeProps[Ve];return he}var Tt={};function An(ie,ae){var fe=Tt.hasOwnProperty(ie)?Tt[ie]:Tt[ie]={};ui(ae,fe)}function Hi(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var fe={};for(var he in ae){var me=ae[he];me instanceof Array&&(me=me.concat([])),fe[he]=me}return fe}function gr(ie,ae){for(var fe;ie.innerMode&&(fe=ie.innerMode(ae),!(!fe||fe.mode==ie));)ae=fe.state,ie=fe.mode;return fe||{mode:ie,state:ae}}function sr(ie,ae,fe){return ie.startState?ie.startState(ae,fe):!0}var Rn=function(ie,ae,fe){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=fe};Rn.prototype.eol=function(){return this.pos>=this.string.length},Rn.prototype.sol=function(){return this.pos==this.lineStart},Rn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rn.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),fe;if(typeof ie=="string"?fe=ae==ie:fe=ae&&(ie.test?ie.test(ae):ie(ae)),fe)return++this.pos,ae},Rn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Rn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Rn.prototype.skipToEnd=function(){this.pos=this.string.length},Rn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Rn.prototype.backUp=function(ie){this.pos-=ie},Rn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=tt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?tt(this.string,this.lineStart,this.tabSize):0)},Rn.prototype.indentation=function(){return tt(this.string,null,this.tabSize)-(this.lineStart?tt(this.string,this.lineStart,this.tabSize):0)},Rn.prototype.match=function(ie,ae,fe){if(typeof ie=="string"){var he=function(Ve){return fe?Ve.toLowerCase():Ve},me=this.string.substr(this.pos,ie.length);if(he(me)==he(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var De=this.string.slice(this.pos).match(ie);return De&&De.index>0?null:(De&&ae!==!1&&(this.pos+=De[0].length),De)}},Rn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Rn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Rn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Ti(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var fe=ie;!fe.lines;)for(var he=0;;++he){var me=fe.children[he],De=me.chunkSize();if(ae<De){fe=me;break}ae-=De}return fe.lines[ae]}function qr(ie,ae,fe){var he=[],me=ae.line;return ie.iter(ae.line,fe.line+1,function(De){var Ve=De.text;me==fe.line&&(Ve=Ve.slice(0,fe.ch)),me==ae.line&&(Ve=Ve.slice(ae.ch)),he.push(Ve),++me}),he}function _r(ie,ae,fe){var he=[];return ie.iter(ae,fe,function(me){he.push(me.text)}),he}function di(ie,ae){var fe=ae-ie.height;if(fe)for(var he=ie;he;he=he.parent)he.height+=fe}function Ot(ie){if(ie.parent==null)return null;for(var ae=ie.parent,fe=mn(ae.lines,ie),he=ae.parent;he;ae=he,he=he.parent)for(var me=0;he.children[me]!=ae;++me)fe+=he.children[me].chunkSize();return fe+ae.first}function Ii(ie,ae){var fe=ie.first;e:do{for(var he=0;he<ie.children.length;++he){var me=ie.children[he],De=me.height;if(ae<De){ie=me;continue e}ae-=De,fe+=me.chunkSize()}return fe}while(!ie.lines);for(var Ve=0;Ve<ie.lines.length;++Ve){var Xe=ie.lines[Ve],Oe=Xe.height;if(ae<Oe)break;ae-=Oe}return fe+Ve}function xn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function jn(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Ft(ie,ae,fe){if(fe===void 0&&(fe=null),!(this instanceof Ft))return new Ft(ie,ae,fe);this.line=ie,this.ch=ae,this.sticky=fe}function bt(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function rn(ie,ae){return ie.sticky==ae.sticky&&bt(ie,ae)==0}function Sr(ie){return Ft(ie.line,ie.ch)}function ki(ie,ae){return bt(ie,ae)<0?ae:ie}function Ni(ie,ae){return bt(ie,ae)<0?ie:ae}function qn(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Wi(ie,ae){if(ae.line<ie.first)return Ft(ie.first,0);var fe=ie.first+ie.size-1;return ae.line>fe?Ft(fe,Ti(ie,fe).text.length):Hr(ae,Ti(ie,ae.line).text.length)}function Hr(ie,ae){var fe=ie.ch;return fe==null||fe>ae?Ft(ie.line,ae):fe<0?Ft(ie.line,0):ie}function no(ie,ae){for(var fe=[],he=0;he<ae.length;he++)fe[he]=Wi(ie,ae[he]);return fe}var vi=function(ie,ae){this.state=ie,this.lookAhead=ae},Ji=function(ie,ae,fe,he){this.state=ae,this.doc=ie,this.line=fe,this.maxLookAhead=he||0,this.baseTokens=null,this.baseTokenPos=1};Ji.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Ji.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Ji.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ji.fromSaved=function(ie,ae,fe){return ae instanceof vi?new Ji(ie,Hi(ie.mode,ae.state),fe,ae.lookAhead):new Ji(ie,Hi(ie.mode,ae),fe)},Ji.prototype.save=function(ie){var ae=ie!==!1?Hi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vi(ae,this.maxLookAhead):ae};function Aa(ie,ae,fe,he){var me=[ie.state.modeGen],De={};cr(ie,ae.text,ie.doc.mode,fe,function(qe,Rt){return me.push(qe,Rt)},De,he);for(var Ve=fe.state,Xe=function(qe){fe.baseTokens=me;var Rt=ie.state.overlays[qe],gt=1,Pn=0;fe.state=!0,cr(ie,ae.text,Rt.mode,fe,function(fn,Ci){for(var Bi=gt;Pn<fn;){var nr=me[gt];nr>fn&&me.splice(gt,1,fn,me[gt+1],nr),gt+=2,Pn=Math.min(fn,nr)}if(Ci)if(Rt.opaque)me.splice(Bi,gt-Bi,fn,"overlay "+Ci),gt=Bi+2;else for(;Bi<gt;Bi+=2){var pr=me[Bi+1];me[Bi+1]=(pr?pr+" ":"")+"overlay "+Ci}},De),fe.state=Ve,fe.baseTokens=null,fe.baseTokenPos=1},Oe=0;Oe<ie.state.overlays.length;++Oe)Xe(Oe);return{styles:me,classes:De.bgClass||De.textClass?De:null}}function uo(ie,ae,fe){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var he=Ir(ie,Ot(ae)),me=ae.text.length>ie.options.maxHighlightLength&&Hi(ie.doc.mode,he.state),De=Aa(ie,ae,he);me&&(he.state=me),ae.stateAfter=he.save(!me),ae.styles=De.styles,De.classes?ae.styleClasses=De.classes:ae.styleClasses&&(ae.styleClasses=null),fe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Ir(ie,ae,fe){var he=ie.doc,me=ie.display;if(!he.mode.startState)return new Ji(he,!0,ae);var De=ri(ie,ae,fe),Ve=De>he.first&&Ti(he,De-1).stateAfter,Xe=Ve?Ji.fromSaved(he,Ve,De):new Ji(he,sr(he.mode),De);return he.iter(De,ae,function(Oe){Bt(ie,Oe.text,Xe);var qe=Xe.line;Oe.stateAfter=qe==ae-1||qe%5==0||qe>=me.viewFrom&&qe<me.viewTo?Xe.save():null,Xe.nextLine()}),fe&&(he.modeFrontier=Xe.line),Xe}function Bt(ie,ae,fe,he){var me=ie.doc.mode,De=new Rn(ae,ie.options.tabSize,fe);for(De.start=De.pos=he||0,ae==""&&Ht(me,fe.state);!De.eol();)pn(me,De,fe.state),De.start=De.pos}function Ht(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var fe=gr(ie,ae);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function pn(ie,ae,fe,he){for(var me=0;me<10;me++){he&&(he[0]=gr(ie,fe).mode);var De=ie.token(ae,fe);if(ae.pos>ae.start)return De}throw new Error("Mode "+ie.name+" failed to advance stream.")}var zt=function(ie,ae,fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=fe};function li(ie,ae,fe,he){var me=ie.doc,De=me.mode,Ve;ae=Wi(me,ae);var Xe=Ti(me,ae.line),Oe=Ir(ie,ae.line,fe),qe=new Rn(Xe.text,ie.options.tabSize,Oe),Rt;for(he&&(Rt=[]);(he||qe.pos<ae.ch)&&!qe.eol();)qe.start=qe.pos,Ve=pn(De,qe,Oe.state),he&&Rt.push(new zt(qe,Ve,Hi(me.mode,Oe.state)));return he?Rt:new zt(qe,Ve,Oe.state)}function ir(ie,ae){if(ie)for(;;){var fe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!fe)break;ie=ie.slice(0,fe.index)+ie.slice(fe.index+fe[0].length);var he=fe[1]?"bgClass":"textClass";ae[he]==null?ae[he]=fe[2]:new RegExp("(?:^|\\s)"+fe[2]+"(?:$|\\s)").test(ae[he])||(ae[he]+=" "+fe[2])}return ie}function cr(ie,ae,fe,he,me,De,Ve){var Xe=fe.flattenSpans;Xe==null&&(Xe=ie.options.flattenSpans);var Oe=0,qe=null,Rt=new Rn(ae,ie.options.tabSize,he),gt,Pn=ie.options.addModeClass&&[null];for(ae==""&&ir(Ht(fe,he.state),De);!Rt.eol();){if(Rt.pos>ie.options.maxHighlightLength?(Xe=!1,Ve&&Bt(ie,ae,he,Rt.pos),Rt.pos=ae.length,gt=null):gt=ir(pn(fe,Rt,he.state,Pn),De),Pn){var fn=Pn[0].name;fn&&(gt="m-"+(gt?fn+" "+gt:fn))}if(!Xe||qe!=gt){for(;Oe<Rt.start;)Oe=Math.min(Rt.start,Oe+5e3),me(Oe,qe);qe=gt}Rt.start=Rt.pos}for(;Oe<Rt.pos;){var Ci=Math.min(Rt.pos,Oe+5e3);me(Ci,qe),Oe=Ci}}function ri(ie,ae,fe){for(var he,me,De=ie.doc,Ve=fe?-1:ae-(ie.doc.mode.innerMode?1e3:100),Xe=ae;Xe>Ve;--Xe){if(Xe<=De.first)return De.first;var Oe=Ti(De,Xe-1),qe=Oe.stateAfter;if(qe&&(!fe||Xe+(qe instanceof vi?qe.lookAhead:0)<=De.modeFrontier))return Xe;var Rt=tt(Oe.text,null,ie.options.tabSize);(me==null||he>Rt)&&(me=Xe-1,he=Rt)}return me}function Ei(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var fe=ie.first,he=ae-1;he>fe;he--){var me=Ti(ie,he).stateAfter;if(me&&(!(me instanceof vi)||he+me.lookAhead<ae)){fe=he+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,fe)}}var Xn=!1,tn=!1;function Jr(){Xn=!0}function Tn(){tn=!0}function zr(ie,ae,fe){this.marker=ie,this.from=ae,this.to=fe}function Or(ie,ae){if(ie)for(var fe=0;fe<ie.length;++fe){var he=ie[fe];if(he.marker==ae)return he}}function ur(ie,ae){for(var fe,he=0;he<ie.length;++he)ie[he]!=ae&&(fe||(fe=[])).push(ie[he]);return fe}function ko(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Zr(ie,ae,fe){var he;if(ie)for(var me=0;me<ie.length;++me){var De=ie[me],Ve=De.marker,Xe=De.from==null||(Ve.inclusiveLeft?De.from<=ae:De.from<ae);if(Xe||De.from==ae&&Ve.type=="bookmark"&&(!fe||!De.marker.insertLeft)){var Oe=De.to==null||(Ve.inclusiveRight?De.to>=ae:De.to>ae);(he||(he=[])).push(new zr(Ve,De.from,Oe?null:De.to))}}return he}function Gi(ie,ae,fe){var he;if(ie)for(var me=0;me<ie.length;++me){var De=ie[me],Ve=De.marker,Xe=De.to==null||(Ve.inclusiveRight?De.to>=ae:De.to>ae);if(Xe||De.from==ae&&Ve.type=="bookmark"&&(!fe||De.marker.insertLeft)){var Oe=De.from==null||(Ve.inclusiveLeft?De.from<=ae:De.from<ae);(he||(he=[])).push(new zr(Ve,Oe?null:De.from-ae,De.to==null?null:De.to-ae))}}return he}function Er(ie,ae){if(ae.full)return null;var fe=xn(ie,ae.from.line)&&Ti(ie,ae.from.line).markedSpans,he=xn(ie,ae.to.line)&&Ti(ie,ae.to.line).markedSpans;if(!fe&&!he)return null;var me=ae.from.ch,De=ae.to.ch,Ve=bt(ae.from,ae.to)==0,Xe=Zr(fe,me,Ve),Oe=Gi(he,De,Ve),qe=ae.text.length==1,Rt=mt(ae.text).length+(qe?me:0);if(Xe)for(var gt=0;gt<Xe.length;++gt){var Pn=Xe[gt];if(Pn.to==null){var fn=Or(Oe,Pn.marker);fn?qe&&(Pn.to=fn.to==null?null:fn.to+Rt):Pn.to=me}}if(Oe)for(var Ci=0;Ci<Oe.length;++Ci){var Bi=Oe[Ci];if(Bi.to!=null&&(Bi.to+=Rt),Bi.from==null){var nr=Or(Xe,Bi.marker);nr||(Bi.from=Rt,qe&&(Xe||(Xe=[])).push(Bi))}else Bi.from+=Rt,qe&&(Xe||(Xe=[])).push(Bi)}Xe&&(Xe=ro(Xe)),Oe&&Oe!=Xe&&(Oe=ro(Oe));var pr=[Xe];if(!qe){var hr=ae.text.length-2,Dr;if(hr>0&&Xe)for(var vo=0;vo<Xe.length;++vo)Xe[vo].to==null&&(Dr||(Dr=[])).push(new zr(Xe[vo].marker,null,null));for(var Qo=0;Qo<hr;++Qo)pr.push(Dr);pr.push(Oe)}return pr}function ro(ie){for(var ae=0;ae<ie.length;++ae){var fe=ie[ae];fe.from!=null&&fe.from==fe.to&&fe.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Fn(ie,ae,fe){var he=null;if(ie.iter(ae.line,fe.line+1,function(fn){if(fn.markedSpans)for(var Ci=0;Ci<fn.markedSpans.length;++Ci){var Bi=fn.markedSpans[Ci].marker;Bi.readOnly&&(!he||mn(he,Bi)==-1)&&(he||(he=[])).push(Bi)}}),!he)return null;for(var me=[{from:ae,to:fe}],De=0;De<he.length;++De)for(var Ve=he[De],Xe=Ve.find(0),Oe=0;Oe<me.length;++Oe){var qe=me[Oe];if(!(bt(qe.to,Xe.from)<0||bt(qe.from,Xe.to)>0)){var Rt=[Oe,1],gt=bt(qe.from,Xe.from),Pn=bt(qe.to,Xe.to);(gt<0||!Ve.inclusiveLeft&&!gt)&&Rt.push({from:qe.from,to:Xe.from}),(Pn>0||!Ve.inclusiveRight&&!Pn)&&Rt.push({from:Xe.to,to:qe.to}),me.splice.apply(me,Rt),Oe+=Rt.length-3}}return me}function ti(ie){var ae=ie.markedSpans;if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.detachLine(ie);ie.markedSpans=null}}function Ue(ie,ae){if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.attachLine(ie);ie.markedSpans=ae}}function fo(ie){return ie.inclusiveLeft?-1:0}function So(ie){return ie.inclusiveRight?1:0}function rr(ie,ae){var fe=ie.lines.length-ae.lines.length;if(fe!=0)return fe;var he=ie.find(),me=ae.find(),De=bt(he.from,me.from)||fo(ie)-fo(ae);if(De)return-De;var Ve=bt(he.to,me.to)||So(ie)-So(ae);return Ve||ae.id-ie.id}function Xi(ie,ae){var fe=tn&&ie.markedSpans,he;if(fe)for(var me=void 0,De=0;De<fe.length;++De)me=fe[De],me.marker.collapsed&&(ae?me.from:me.to)==null&&(!he||rr(he,me.marker)<0)&&(he=me.marker);return he}function Ui(ie){return Xi(ie,!0)}function qo(ie){return Xi(ie,!1)}function gs(ie,ae){var fe=tn&&ie.markedSpans,he;if(fe)for(var me=0;me<fe.length;++me){var De=fe[me];De.marker.collapsed&&(De.from==null||De.from<ae)&&(De.to==null||De.to>ae)&&(!he||rr(he,De.marker)<0)&&(he=De.marker)}return he}function Ps(ie,ae,fe,he,me){var De=Ti(ie,ae),Ve=tn&&De.markedSpans;if(Ve)for(var Xe=0;Xe<Ve.length;++Xe){var Oe=Ve[Xe];if(Oe.marker.collapsed){var qe=Oe.marker.find(0),Rt=bt(qe.from,fe)||fo(Oe.marker)-fo(me),gt=bt(qe.to,he)||So(Oe.marker)-So(me);if(!(Rt>=0&><=0||Rt<=0&>>=0)&&(Rt<=0&&(Oe.marker.inclusiveRight&&me.inclusiveLeft?bt(qe.to,fe)>=0:bt(qe.to,fe)>0)||Rt>=0&&(Oe.marker.inclusiveRight&&me.inclusiveLeft?bt(qe.from,he)<=0:bt(qe.from,he)<0)))return!0}}}function Ro(ie){for(var ae;ae=Ui(ie);)ie=ae.find(-1,!0).line;return ie}function Ho(ie){for(var ae;ae=qo(ie);)ie=ae.find(1,!0).line;return ie}function Rr(ie){for(var ae,fe;ae=qo(ie);)ie=ae.find(1,!0).line,(fe||(fe=[])).push(ie);return fe}function yr(ie,ae){var fe=Ti(ie,ae),he=Ro(fe);return fe==he?ae:Ot(he)}function Eo(ie,ae){if(ae>ie.lastLine())return ae;var fe=Ti(ie,ae),he;if(!oi(ie,fe))return ae;for(;he=qo(fe);)fe=he.find(1,!0).line;return Ot(fe)+1}function oi(ie,ae){var fe=tn&&ae.markedSpans;if(fe){for(var he=void 0,me=0;me<fe.length;++me)if(he=fe[me],!!he.marker.collapsed){if(he.from==null)return!0;if(!he.marker.widgetNode&&he.from==0&&he.marker.inclusiveLeft&&Na(ie,ae,he))return!0}}}function Na(ie,ae,fe){if(fe.to==null){var he=fe.marker.find(1,!0);return Na(ie,he.line,Or(he.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==ae.text.length)return!0;for(var me=void 0,De=0;De<ae.markedSpans.length;++De)if(me=ae.markedSpans[De],me.marker.collapsed&&!me.marker.widgetNode&&me.from==fe.to&&(me.to==null||me.to!=fe.from)&&(me.marker.inclusiveLeft||fe.marker.inclusiveRight)&&Na(ie,ae,me))return!0}function qa(ie){ie=Ro(ie);for(var ae=0,fe=ie.parent,he=0;he<fe.lines.length;++he){var me=fe.lines[he];if(me==ie)break;ae+=me.height}for(var De=fe.parent;De;fe=De,De=fe.parent)for(var Ve=0;Ve<De.children.length;++Ve){var Xe=De.children[Ve];if(Xe==fe)break;ae+=Xe.height}return ae}function tl(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,fe,he=ie;fe=Ui(he);){var me=fe.find(0,!0);he=me.from.line,ae+=me.from.ch-me.to.ch}for(he=ie;fe=qo(he);){var De=fe.find(0,!0);ae-=he.text.length-De.from.ch,he=De.to.line,ae+=he.text.length-De.to.ch}return ae}function Ta(ie){var ae=ie.display,fe=ie.doc;ae.maxLine=Ti(fe,fe.first),ae.maxLineLength=tl(ae.maxLine),ae.maxLineChanged=!0,fe.iter(function(he){var me=tl(he);me>ae.maxLineLength&&(ae.maxLineLength=me,ae.maxLine=he)})}var sa=function(ie,ae,fe){this.text=ie,Ue(this,ae),this.height=fe?fe(this):1};sa.prototype.lineNo=function(){return Ot(this)},In(sa);function Oa(ie,ae,fe,he){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),ti(ie),Ue(ie,fe);var me=he?he(ie):1;me!=ie.height&&di(ie,me)}function nl(ie){ie.parent=null,ti(ie)}var Qt={},Su={};function Ia(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var fe=ae.addModeClass?Su:Qt;return fe[ie]||(fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function qt(ie,ae){var fe=Kt("span",null,null,Ge?"padding-right: .1px":null),he={pre:Kt("pre",[fe],"CodeMirror-line"),content:fe,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var me=0;me<=(ae.rest?ae.rest.length:0);me++){var De=me?ae.rest[me-1]:ae.line,Ve=void 0;he.pos=0,he.addToken=Tl,ho(ie.display.measure)&&(Ve=Ke(De,ie.doc.direction))&&(he.addToken=ws(he.addToken,Ve)),he.map=[];var Xe=ae!=ie.display.externalMeasured&&Ot(De);eu(De,he,uo(ie,De,Xe)),De.styleClasses&&(De.styleClasses.bgClass&&(he.bgClass=Mi(De.styleClasses.bgClass,he.bgClass||"")),De.styleClasses.textClass&&(he.textClass=Mi(De.styleClasses.textClass,he.textClass||""))),he.map.length==0&&he.map.push(0,0,he.content.appendChild(Bo(ie.display.measure))),me==0?(ae.measure.map=he.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(he.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ge){var Oe=he.content.lastChild;(/\bcm-tab\b/.test(Oe.className)||Oe.querySelector&&Oe.querySelector(".cm-tab"))&&(he.content.className="cm-tab-wrap-hack")}return en(ie,"renderLine",ie,ae.line,he.pre),he.pre.className&&(he.textClass=Mi(he.pre.className,he.textClass||"")),he}function ys(ie){var ae=vt("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function Tl(ie,ae,fe,he,me,De,Ve){if(ae){var Xe=ie.splitSpaces?Ol(ae,ie.trailingSpace):ae,Oe=ie.cm.state.specialChars,qe=!1,Rt;if(!Oe.test(ae))ie.col+=ae.length,Rt=document.createTextNode(Xe),ie.map.push(ie.pos,ie.pos+ae.length,Rt),Dt&&jt<9&&(qe=!0),ie.pos+=ae.length;else{Rt=document.createDocumentFragment();for(var gt=0;;){Oe.lastIndex=gt;var Pn=Oe.exec(ae),fn=Pn?Pn.index-gt:ae.length-gt;if(fn){var Ci=document.createTextNode(Xe.slice(gt,gt+fn));Dt&&jt<9?Rt.appendChild(vt("span",[Ci])):Rt.appendChild(Ci),ie.map.push(ie.pos,ie.pos+fn,Ci),ie.col+=fn,ie.pos+=fn}if(!Pn)break;gt+=fn+1;var Bi=void 0;if(Pn[0]==" "){var nr=ie.cm.options.tabSize,pr=nr-ie.col%nr;Bi=Rt.appendChild(vt("span",Ai(pr),"cm-tab")),Bi.setAttribute("role","presentation"),Bi.setAttribute("cm-text"," "),ie.col+=pr}else Pn[0]=="\r"||Pn[0]==`
|
|
`?(Bi=Rt.appendChild(vt("span",Pn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bi.setAttribute("cm-text",Pn[0]),ie.col+=1):(Bi=ie.cm.options.specialCharPlaceholder(Pn[0]),Bi.setAttribute("cm-text",Pn[0]),Dt&&jt<9?Rt.appendChild(vt("span",[Bi])):Rt.appendChild(Bi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Bi),ie.pos++}}if(ie.trailingSpace=Xe.charCodeAt(ae.length-1)==32,fe||he||me||qe||De||Ve){var hr=fe||"";he&&(hr+=he),me&&(hr+=me);var Dr=vt("span",[Rt],hr,De);if(Ve)for(var vo in Ve)Ve.hasOwnProperty(vo)&&vo!="style"&&vo!="class"&&Dr.setAttribute(vo,Ve[vo]);return ie.content.appendChild(Dr)}ie.content.appendChild(Rt)}}function Ol(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var fe=ae,he="",me=0;me<ie.length;me++){var De=ie.charAt(me);De==" "&&fe&&(me==ie.length-1||ie.charCodeAt(me+1)==32)&&(De="\xA0"),he+=De,fe=De==" "}return he}function ws(ie,ae){return function(fe,he,me,De,Ve,Xe,Oe){me=me?me+" cm-force-border":"cm-force-border";for(var qe=fe.pos,Rt=qe+he.length;;){for(var gt=void 0,Pn=0;Pn<ae.length&&(gt=ae[Pn],!(gt.to>qe&>.from<=qe));Pn++);if(gt.to>=Rt)return ie(fe,he,me,De,Ve,Xe,Oe);ie(fe,he.slice(0,gt.to-qe),me,De,null,Xe,Oe),De=null,he=he.slice(gt.to-qe),qe=gt.to}}}function Ss(ie,ae,fe,he){var me=!he&&fe.widgetNode;me&&ie.map.push(ie.pos,ie.pos+ae,me),!he&&ie.cm.display.input.needsContentAttribute&&(me||(me=ie.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",fe.id)),me&&(ie.cm.display.input.setUneditable(me),ie.content.appendChild(me)),ie.pos+=ae,ie.trailingSpace=!1}function eu(ie,ae,fe){var he=ie.markedSpans,me=ie.text,De=0;if(!he){for(var Ve=1;Ve<fe.length;Ve+=2)ae.addToken(ae,me.slice(De,De=fe[Ve]),Ia(fe[Ve+1],ae.cm.options));return}for(var Xe=me.length,Oe=0,qe=1,Rt="",gt,Pn,fn=0,Ci,Bi,nr,pr,hr;;){if(fn==Oe){Ci=Bi=nr=Pn="",hr=null,pr=null,fn=1/0;for(var Dr=[],vo=void 0,Qo=0;Qo<he.length;++Qo){var Kr=he[Qo],ka=Kr.marker;if(ka.type=="bookmark"&&Kr.from==Oe&&ka.widgetNode)Dr.push(ka);else if(Kr.from<=Oe&&(Kr.to==null||Kr.to>Oe||ka.collapsed&&Kr.to==Oe&&Kr.from==Oe)){if(Kr.to!=null&&Kr.to!=Oe&&fn>Kr.to&&(fn=Kr.to,Bi=""),ka.className&&(Ci+=" "+ka.className),ka.css&&(Pn=(Pn?Pn+";":"")+ka.css),ka.startStyle&&Kr.from==Oe&&(nr+=" "+ka.startStyle),ka.endStyle&&Kr.to==fn&&(vo||(vo=[])).push(ka.endStyle,Kr.to),ka.title&&((hr||(hr={})).title=ka.title),ka.attributes)for(var rs in ka.attributes)(hr||(hr={}))[rs]=ka.attributes[rs];ka.collapsed&&(!pr||rr(pr.marker,ka)<0)&&(pr=Kr)}else Kr.from>Oe&&fn>Kr.from&&(fn=Kr.from)}if(vo)for(var Ql=0;Ql<vo.length;Ql+=2)vo[Ql+1]==fn&&(Bi+=" "+vo[Ql]);if(!pr||pr.from==Oe)for(var pl=0;pl<Dr.length;++pl)Ss(ae,0,Dr[pl]);if(pr&&(pr.from||0)==Oe){if(Ss(ae,(pr.to==null?Xe+1:pr.to)-Oe,pr.marker,pr.from==null),pr.to==null)return;pr.to==Oe&&(pr=!1)}}if(Oe>=Xe)break;for(var ac=Math.min(Xe,fn);;){if(Rt){var _u=Oe+Rt.length;if(!pr){var mu=_u>ac?Rt.slice(0,ac-Oe):Rt;ae.addToken(ae,mu,gt?gt+Ci:Ci,nr,Oe+mu.length==fn?Bi:"",Pn,hr)}if(_u>=ac){Rt=Rt.slice(ac-Oe),Oe=ac;break}Oe=_u,nr=""}Rt=me.slice(De,De=fe[qe++]),gt=Ia(fe[qe++],ae.cm.options)}}}function il(ie,ae,fe){this.line=ae,this.rest=Rr(ae),this.size=this.rest?Ot(mt(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=oi(ie,ae)}function os(ie,ae,fe){for(var he=[],me,De=ae;De<fe;De=me){var Ve=new il(ie.doc,Ti(ie.doc,De),De);me=De+Ve.size,he.push(Ve)}return he}var rl=null;function ku(ie){rl?rl.ops.push(ie):ie.ownsGroup=rl={ops:[ie],delayedCallbacks:[]}}function hc(ie){var ae=ie.delayedCallbacks,fe=0;do{for(;fe<ae.length;fe++)ae[fe].call(null);for(var he=0;he<ie.ops.length;he++){var me=ie.ops[he];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(fe<ae.length)}function cu(ie,ae){var fe=ie.ownsGroup;if(fe)try{hc(fe)}finally{rl=null,ae(fe)}}var Nu=null;function ao(ie,ae){var fe=dn(ie,ae);if(fe.length){var he=Array.prototype.slice.call(arguments,2),me;rl?me=rl.delayedCallbacks:Nu?me=Nu:(me=Nu=[],setTimeout(vd,0));for(var De=function(Xe){me.push(function(){return fe[Xe].apply(null,he)})},Ve=0;Ve<fe.length;++Ve)De(Ve)}}function vd(){var ie=Nu;Nu=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Dd(ie,ae,fe,he){for(var me=0;me<ae.changes.length;me++){var De=ae.changes[me];De=="text"?tr(ie,ae):De=="gutter"?Ra(ie,ae,fe,he):De=="class"?ll(ie,ae):De=="widget"&&wr(ie,ae,he)}ae.changes=null}function bc(ie){return ie.node==ie.text&&(ie.node=vt("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Dt&&jt<8&&(ie.node.style.zIndex=2)),ie.node}function Ld(ie,ae){var fe=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(fe&&(fe+=" CodeMirror-linebackground"),ae.background)fe?ae.background.className=fe:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(fe){var he=bc(ae);ae.background=he.insertBefore(vt("div",null,fe),he.firstChild),ie.display.input.setUneditable(ae.background)}}function lh(ie,ae){var fe=ie.display.externalMeasured;return fe&&fe.line==ae.line?(ie.display.externalMeasured=null,ae.measure=fe.measure,fe.built):qt(ie,ae)}function tr(ie,ae){var fe=ae.text.className,he=lh(ie,ae);ae.text==ae.node&&(ae.node=he.pre),ae.text.parentNode.replaceChild(he.pre,ae.text),ae.text=he.pre,he.bgClass!=ae.bgClass||he.textClass!=ae.textClass?(ae.bgClass=he.bgClass,ae.textClass=he.textClass,ll(ie,ae)):fe&&(ae.text.className=fe)}function ll(ie,ae){Ld(ie,ae),ae.line.wrapClass?bc(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var fe=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=fe||""}function Ra(ie,ae,fe,he){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var me=bc(ae);ae.gutterBackground=vt("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?he.fixedPos:-he.gutterTotalWidth)+"px; width: "+he.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),me.insertBefore(ae.gutterBackground,ae.text)}var De=ae.line.gutterMarkers;if(ie.options.lineNumbers||De){var Ve=bc(ae),Xe=ae.gutter=vt("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?he.fixedPos:-he.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Xe),Ve.insertBefore(Xe,ae.text),ae.line.gutterClass&&(Xe.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!De||!De["CodeMirror-linenumbers"])&&(ae.lineNumber=Xe.appendChild(vt("div",jn(ie.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+he.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),De)for(var Oe=0;Oe<ie.display.gutterSpecs.length;++Oe){var qe=ie.display.gutterSpecs[Oe].className,Rt=De.hasOwnProperty(qe)&&De[qe];Rt&&Xe.appendChild(vt("div",[Rt],"CodeMirror-gutter-elt","left: "+he.gutterLeft[qe]+"px; width: "+he.gutterWidth[qe]+"px"))}}}function wr(ie,ae,fe){ae.alignable&&(ae.alignable=null);for(var he=Me("CodeMirror-linewidget"),me=ae.node.firstChild,De=void 0;me;me=De)De=me.nextSibling,he.test(me.className)&&ae.node.removeChild(me);pa(ie,ae,fe)}function ca(ie,ae,fe,he){var me=lh(ie,ae);return ae.text=ae.node=me.pre,me.bgClass&&(ae.bgClass=me.bgClass),me.textClass&&(ae.textClass=me.textClass),ll(ie,ae),Ra(ie,ae,fe,he),pa(ie,ae,he),ae.node}function pa(ie,ae,fe){if(Cr(ie,ae.line,ae,fe,!0),ae.rest)for(var he=0;he<ae.rest.length;he++)Cr(ie,ae.rest[he],ae,fe,!1)}function Cr(ie,ae,fe,he,me){if(ae.widgets)for(var De=bc(fe),Ve=0,Xe=ae.widgets;Ve<Xe.length;++Ve){var Oe=Xe[Ve],qe=vt("div",[Oe.node],"CodeMirror-linewidget"+(Oe.className?" "+Oe.className:""));Oe.handleMouseEvents||qe.setAttribute("cm-ignore-events","true"),Al(Oe,qe,fe,he),ie.display.input.setUneditable(qe),me&&Oe.above?De.insertBefore(qe,fe.gutter||fe.text):De.appendChild(qe),ao(Oe,"redraw")}}function Al(ie,ae,fe,he){if(ie.noHScroll){(fe.alignable||(fe.alignable=[])).push(ae);var me=he.wrapperWidth;ae.style.left=he.fixedPos+"px",ie.coverGutter||(me-=he.gutterTotalWidth,ae.style.paddingLeft=he.gutterTotalWidth+"px"),ae.style.width=me+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-he.gutterTotalWidth+"px"))}function Bu(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!It(document.body,ie.node)){var fe="position: relative;";ie.coverGutter&&(fe+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(fe+="width: "+ae.display.wrapper.clientWidth+"px;"),yt(ae.display.measure,vt("div",[ie.node],null,fe))}return ie.height=ie.node.parentNode.offsetHeight}function us(ie,ae){for(var fe=jo(ae);fe!=ie.wrapper;fe=fe.parentNode)if(!fe||fe.nodeType==1&&fe.getAttribute("cm-ignore-events")=="true"||fe.parentNode==ie.sizer&&fe!=ie.mover)return!0}function tu(ie){return ie.lineSpace.offsetTop}function Qu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function ps(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=yt(ie.measure,vt("pre","x","CodeMirror-line-like")),fe=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,he={left:parseInt(fe.paddingLeft),right:parseInt(fe.paddingRight)};return!isNaN(he.left)&&!isNaN(he.right)&&(ie.cachedPaddingH=he),he}function Bl(ie){return Zn-ie.display.nativeBarWidth}function Kl(ie){return ie.display.scroller.clientWidth-Bl(ie)-ie.display.barWidth}function Hu(ie){return ie.display.scroller.clientHeight-Bl(ie)-ie.display.barHeight}function Kd(ie,ae,fe){var he=ie.options.lineWrapping,me=he&&Kl(ie);if(!ae.measure.heights||he&&ae.measure.width!=me){var De=ae.measure.heights=[];if(he){ae.measure.width=me;for(var Ve=ae.text.firstChild.getClientRects(),Xe=0;Xe<Ve.length-1;Xe++){var Oe=Ve[Xe],qe=Ve[Xe+1];Math.abs(Oe.bottom-qe.bottom)>2&&De.push((Oe.bottom+qe.top)/2-fe.top)}}De.push(fe.bottom-fe.top)}}function uh(ie,ae,fe){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var he=0;he<ie.rest.length;he++)if(ie.rest[he]==ae)return{map:ie.measure.maps[he],cache:ie.measure.caches[he]};for(var me=0;me<ie.rest.length;me++)if(Ot(ie.rest[me])>fe)return{map:ie.measure.maps[me],cache:ie.measure.caches[me],before:!0}}function ch(ie,ae){ae=Ro(ae);var fe=Ot(ae),he=ie.display.externalMeasured=new il(ie.doc,ae,fe);he.lineN=fe;var me=he.built=qt(ie,he);return he.text=me.pre,yt(ie.display.lineMeasure,me.pre),he}function dh(ie,ae,fe,he){return fc(ie,ul(ie,ae),fe,he)}function ol(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[hu(ie,ae)];var fe=ie.display.externalMeasured;if(fe&&ae>=fe.lineN&&ae<fe.lineN+fe.size)return fe}function ul(ie,ae){var fe=Ot(ae),he=ol(ie,fe);he&&!he.text?he=null:he&&he.changes&&(Dd(ie,he,fe,ff(ie)),ie.curOp.forceUpdate=!0),he||(he=ch(ie,ae));var me=uh(he,ae,fe);return{line:ae,view:he,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function fc(ie,ae,fe,he,me){ae.before&&(fe=-1);var De=fe+(he||""),Ve;return ae.cache.hasOwnProperty(De)?Ve=ae.cache[De]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Kd(ie,ae.view,ae.rect),ae.hasHeights=!0),Ve=Dl(ie,ae,fe,he),Ve.bogus||(ae.cache[De]=Ve)),{left:Ve.left,right:Ve.right,top:me?Ve.rtop:Ve.top,bottom:me?Ve.rbottom:Ve.bottom}}var Zh={left:0,right:0,top:0,bottom:0};function od(ie,ae,fe){for(var he,me,De,Ve,Xe,Oe,qe=0;qe<ie.length;qe+=3)if(Xe=ie[qe],Oe=ie[qe+1],ae<Xe?(me=0,De=1,Ve="left"):ae<Oe?(me=ae-Xe,De=me+1):(qe==ie.length-3||ae==Oe&&ie[qe+3]>ae)&&(De=Oe-Xe,me=De-1,ae>=Oe&&(Ve="right")),me!=null){if(he=ie[qe+2],Xe==Oe&&fe==(he.insertLeft?"left":"right")&&(Ve=fe),fe=="left"&&me==0)for(;qe&&ie[qe-2]==ie[qe-3]&&ie[qe-1].insertLeft;)he=ie[(qe-=3)+2],Ve="left";if(fe=="right"&&me==Oe-Xe)for(;qe<ie.length-3&&ie[qe+3]==ie[qe+4]&&!ie[qe+5].insertLeft;)he=ie[(qe+=3)+2],Ve="right";break}return{node:he,start:me,end:De,collapse:Ve,coverStart:Xe,coverEnd:Oe}}function yd(ie,ae){var fe=Zh;if(ae=="left")for(var he=0;he<ie.length&&(fe=ie[he]).left==fe.right;he++);else for(var me=ie.length-1;me>=0&&(fe=ie[me]).left==fe.right;me--);return fe}function Dl(ie,ae,fe,he){var me=od(ae.map,fe,he),De=me.node,Ve=me.start,Xe=me.end,Oe=me.collapse,qe;if(De.nodeType==3){for(var Rt=0;Rt<4;Rt++){for(;Ve&&rt(ae.line.text.charAt(me.coverStart+Ve));)--Ve;for(;me.coverStart+Xe<me.coverEnd&&rt(ae.line.text.charAt(me.coverStart+Xe));)++Xe;if(Dt&&jt<9&&Ve==0&&Xe==me.coverEnd-me.coverStart?qe=De.parentNode.getBoundingClientRect():qe=yd(wt(De,Ve,Xe).getClientRects(),he),qe.left||qe.right||Ve==0)break;Xe=Ve,Ve=Ve-1,Oe="right"}Dt&&jt<11&&(qe=Uh(ie.display.measure,qe))}else{Ve>0&&(Oe=he="right");var gt;ie.options.lineWrapping&&(gt=De.getClientRects()).length>1?qe=gt[he=="right"?gt.length-1:0]:qe=De.getBoundingClientRect()}if(Dt&&jt<9&&!Ve&&(!qe||!qe.left&&!qe.right)){var Pn=De.parentNode.getClientRects()[0];Pn?qe={left:Pn.left,right:Pn.left+Lc(ie.display),top:Pn.top,bottom:Pn.bottom}:qe=Zh}for(var fn=qe.top-ae.rect.top,Ci=qe.bottom-ae.rect.top,Bi=(fn+Ci)/2,nr=ae.view.measure.heights,pr=0;pr<nr.length-1&&!(Bi<nr[pr]);pr++);var hr=pr?nr[pr-1]:0,Dr=nr[pr],vo={left:(Oe=="right"?qe.right:qe.left)-ae.rect.left,right:(Oe=="left"?qe.left:qe.right)-ae.rect.left,top:hr,bottom:Dr};return!qe.left&&!qe.right&&(vo.bogus=!0),ie.options.singleCursorHeightPerLine||(vo.rtop=fn,vo.rbottom=Ci),vo}function Uh(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wn(ie))return ae;var fe=screen.logicalXDPI/screen.deviceXDPI,he=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*fe,right:ae.right*fe,top:ae.top*he,bottom:ae.bottom*he}}function hf(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Sd(ie){ie.display.externalMeasure=null,dt(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)hf(ie.display.view[ae])}function gc(ie){Sd(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function nu(){return Ct&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Tu(){return Ct&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function du(ie){var ae=0;if(ie.widgets)for(var fe=0;fe<ie.widgets.length;++fe)ie.widgets[fe].above&&(ae+=Bu(ie.widgets[fe]));return ae}function Ou(ie,ae,fe,he,me){if(!me){var De=du(ae);fe.top+=De,fe.bottom+=De}if(he=="line")return fe;he||(he="local");var Ve=qa(ae);if(he=="local"?Ve+=tu(ie.display):Ve-=ie.display.viewOffset,he=="page"||he=="window"){var Xe=ie.display.lineSpace.getBoundingClientRect();Ve+=Xe.top+(he=="window"?0:Tu());var Oe=Xe.left+(he=="window"?0:nu());fe.left+=Oe,fe.right+=Oe}return fe.top+=Ve,fe.bottom+=Ve,fe}function Kh(ie,ae,fe){if(fe=="div")return ae;var he=ae.left,me=ae.top;if(fe=="page")he-=nu(),me-=Tu();else if(fe=="local"||!fe){var De=ie.display.sizer.getBoundingClientRect();he+=De.left,me+=De.top}var Ve=ie.display.lineSpace.getBoundingClientRect();return{left:he-Ve.left,top:me-Ve.top}}function Md(ie,ae,fe,he,me){return he||(he=Ti(ie.doc,ae.line)),Ou(ie,he,dh(ie,he,ae.ch,me),fe)}function cl(ie,ae,fe,he,me,De){he=he||Ti(ie.doc,ae.line),me||(me=ul(ie,he));function Ve(Ci,Bi){var nr=fc(ie,me,Ci,Bi?"right":"left",De);return Bi?nr.left=nr.right:nr.right=nr.left,Ou(ie,he,nr,fe)}var Xe=Ke(he,ie.doc.direction),Oe=ae.ch,qe=ae.sticky;if(Oe>=he.text.length?(Oe=he.text.length,qe="before"):Oe<=0&&(Oe=0,qe="after"),!Xe)return Ve(qe=="before"?Oe-1:Oe,qe=="before");function Rt(Ci,Bi,nr){var pr=Xe[Bi],hr=pr.level==1;return Ve(nr?Ci-1:Ci,hr!=nr)}var gt=Ee(Xe,Oe,qe),Pn=Ce,fn=Rt(Oe,gt,qe=="before");return Pn!=null&&(fn.other=Rt(Oe,Pn,qe!="before")),fn}function Yh(ie,ae){var fe=0;ae=Wi(ie.doc,ae),ie.options.lineWrapping||(fe=Lc(ie.display)*ae.ch);var he=Ti(ie.doc,ae.line),me=qa(he)+tu(ie.display);return{left:fe,right:fe,top:me,bottom:me+he.height}}function hh(ie,ae,fe,he,me){var De=Ft(ie,ae,fe);return De.xRel=me,he&&(De.outside=he),De}function kd(ie,ae,fe){var he=ie.doc;if(fe+=ie.display.viewOffset,fe<0)return hh(he.first,0,null,-1,-1);var me=Ii(he,fe),De=he.first+he.size-1;if(me>De)return hh(he.first+he.size-1,Ti(he,De).text.length,null,1,1);ae<0&&(ae=0);for(var Ve=Ti(he,me);;){var Xe=ni(ie,Ve,me,ae,fe),Oe=gs(Ve,Xe.ch+(Xe.xRel>0||Xe.outside>0?1:0));if(!Oe)return Xe;var qe=Oe.find(1);if(qe.line==me)return qe;Ve=Ti(he,me=qe.line)}}function Qr(ie,ae,fe,he){he-=du(ae);var me=ae.text.length,De=_t(function(Ve){return fc(ie,fe,Ve-1).bottom<=he},me,0);return me=_t(function(Ve){return fc(ie,fe,Ve).top>he},De,me),{begin:De,end:me}}function Nd(ie,ae,fe,he){fe||(fe=ul(ie,ae));var me=Ou(ie,ae,fc(ie,fe,he),"line").top;return Qr(ie,ae,fe,me)}function At(ie,ae,fe,he){return ie.bottom<=fe?!1:ie.top>fe?!0:(he?ie.left:ie.right)>ae}function ni(ie,ae,fe,he,me){me-=qa(ae);var De=ul(ie,ae),Ve=du(ae),Xe=0,Oe=ae.text.length,qe=!0,Rt=Ke(ae,ie.doc.direction);if(Rt){var gt=(ie.options.lineWrapping?Bc:Bf)(ie,ae,fe,De,Rt,he,me);qe=gt.level!=1,Xe=qe?gt.from:gt.to-1,Oe=qe?gt.to:gt.from-1}var Pn=null,fn=null,Ci=_t(function(Qo){var Kr=fc(ie,De,Qo);return Kr.top+=Ve,Kr.bottom+=Ve,At(Kr,he,me,!1)?(Kr.top<=me&&Kr.left<=he&&(Pn=Qo,fn=Kr),!0):!1},Xe,Oe),Bi,nr,pr=!1;if(fn){var hr=he-fn.left<fn.right-he,Dr=hr==qe;Ci=Pn+(Dr?0:1),nr=Dr?"after":"before",Bi=hr?fn.left:fn.right}else{!qe&&(Ci==Oe||Ci==Xe)&&Ci++,nr=Ci==0?"after":Ci==ae.text.length?"before":fc(ie,De,Ci-(qe?1:0)).bottom+Ve<=me==qe?"after":"before";var vo=cl(ie,Ft(fe,Ci,nr),"line",ae,De);Bi=vo.left,pr=me<vo.top?-1:me>=vo.bottom?1:0}return Ci=Pt(ae.text,Ci,1),hh(fe,Ci,nr,pr,he-Bi)}function Bf(ie,ae,fe,he,me,De,Ve){var Xe=_t(function(gt){var Pn=me[gt],fn=Pn.level!=1;return At(cl(ie,Ft(fe,fn?Pn.to:Pn.from,fn?"before":"after"),"line",ae,he),De,Ve,!0)},0,me.length-1),Oe=me[Xe];if(Xe>0){var qe=Oe.level!=1,Rt=cl(ie,Ft(fe,qe?Oe.from:Oe.to,qe?"after":"before"),"line",ae,he);At(Rt,De,Ve,!0)&&Rt.top>Ve&&(Oe=me[Xe-1])}return Oe}function Bc(ie,ae,fe,he,me,De,Ve){var Xe=Qr(ie,ae,he,Ve),Oe=Xe.begin,qe=Xe.end;/\s/.test(ae.text.charAt(qe-1))&&qe--;for(var Rt=null,gt=null,Pn=0;Pn<me.length;Pn++){var fn=me[Pn];if(!(fn.from>=qe||fn.to<=Oe)){var Ci=fn.level!=1,Bi=fc(ie,he,Ci?Math.min(qe,fn.to)-1:Math.max(Oe,fn.from)).right,nr=Bi<De?De-Bi+1e9:Bi-De;(!Rt||gt>nr)&&(Rt=fn,gt=nr)}}return Rt||(Rt=me[me.length-1]),Rt.from<Oe&&(Rt={from:Oe,to:Rt.to,level:Rt.level}),Rt.to>qe&&(Rt={from:Rt.from,to:qe,level:Rt.level}),Rt}var Vu;function Dc(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Vu==null){Vu=vt("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Vu.appendChild(document.createTextNode("x")),Vu.appendChild(vt("br"));Vu.appendChild(document.createTextNode("x"))}yt(ie.measure,Vu);var fe=Vu.offsetHeight/50;return fe>3&&(ie.cachedTextHeight=fe),dt(ie.measure),fe||1}function Lc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=vt("span","xxxxxxxxxx"),fe=vt("pre",[ae],"CodeMirror-line-like");yt(ie.measure,fe);var he=ae.getBoundingClientRect(),me=(he.right-he.left)/10;return me>2&&(ie.cachedCharWidth=me),me||10}function ff(ie){for(var ae=ie.display,fe={},he={},me=ae.gutters.clientLeft,De=ae.gutters.firstChild,Ve=0;De;De=De.nextSibling,++Ve){var Xe=ie.display.gutterSpecs[Ve].className;fe[Xe]=De.offsetLeft+De.clientLeft+me,he[Xe]=De.clientWidth}return{fixedPos:gf(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:fe,gutterWidth:he,wrapperWidth:ae.wrapper.clientWidth}}function gf(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function dl(ie){var ae=Dc(ie.display),fe=ie.options.lineWrapping,he=fe&&Math.max(5,ie.display.scroller.clientWidth/Lc(ie.display)-3);return function(me){if(oi(ie.doc,me))return 0;var De=0;if(me.widgets)for(var Ve=0;Ve<me.widgets.length;Ve++)me.widgets[Ve].height&&(De+=me.widgets[Ve].height);return fe?De+(Math.ceil(me.text.length/he)||1)*ae:De+ae}}function zo(ie){var ae=ie.doc,fe=dl(ie);ae.iter(function(he){var me=fe(he);me!=he.height&&di(he,me)})}function zl(ie,ae,fe,he){var me=ie.display;if(!fe&&jo(ae).getAttribute("cm-not-content")=="true")return null;var De,Ve,Xe=me.lineSpace.getBoundingClientRect();try{De=ae.clientX-Xe.left,Ve=ae.clientY-Xe.top}catch(gt){return null}var Oe=kd(ie,De,Ve),qe;if(he&&Oe.xRel>0&&(qe=Ti(ie.doc,Oe.line).text).length==Oe.ch){var Rt=tt(qe,qe.length,ie.options.tabSize)-qe.length;Oe=Ft(Oe.line,Math.max(0,Math.round((De-ps(ie.display).left)/Lc(ie.display))-Rt))}return Oe}function hu(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var fe=ie.display.view,he=0;he<fe.length;he++)if(ae-=fe[he].size,ae<0)return he}function Qs(ie,ae,fe,he){ae==null&&(ae=ie.doc.first),fe==null&&(fe=ie.doc.first+ie.doc.size),he||(he=0);var me=ie.display;if(he&&fe<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>ae)&&(me.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=me.viewTo)tn&&yr(ie.doc,ae)<me.viewTo&&Vl(ie);else if(fe<=me.viewFrom)tn&&Eo(ie.doc,fe+he)>me.viewFrom?Vl(ie):(me.viewFrom+=he,me.viewTo+=he);else if(ae<=me.viewFrom&&fe>=me.viewTo)Vl(ie);else if(ae<=me.viewFrom){var De=ze(ie,fe,fe+he,1);De?(me.view=me.view.slice(De.index),me.viewFrom=De.lineN,me.viewTo+=he):Vl(ie)}else if(fe>=me.viewTo){var Ve=ze(ie,ae,ae,-1);Ve?(me.view=me.view.slice(0,Ve.index),me.viewTo=Ve.lineN):Vl(ie)}else{var Xe=ze(ie,ae,ae,-1),Oe=ze(ie,fe,fe+he,1);Xe&&Oe?(me.view=me.view.slice(0,Xe.index).concat(os(ie,Xe.lineN,Oe.lineN)).concat(me.view.slice(Oe.index)),me.viewTo+=he):Vl(ie)}var qe=me.externalMeasured;qe&&(fe<qe.lineN?qe.lineN+=he:ae<qe.lineN+qe.size&&(me.externalMeasured=null))}function Da(ie,ae,fe){ie.curOp.viewChanged=!0;var he=ie.display,me=ie.display.externalMeasured;if(me&&ae>=me.lineN&&ae<me.lineN+me.size&&(he.externalMeasured=null),!(ae<he.viewFrom||ae>=he.viewTo)){var De=he.view[hu(ie,ae)];if(De.node!=null){var Ve=De.changes||(De.changes=[]);mn(Ve,fe)==-1&&Ve.push(fe)}}}function Vl(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function ze(ie,ae,fe,he){var me=hu(ie,ae),De,Ve=ie.display.view;if(!tn||fe==ie.doc.first+ie.doc.size)return{index:me,lineN:fe};for(var Xe=ie.display.viewFrom,Oe=0;Oe<me;Oe++)Xe+=Ve[Oe].size;if(Xe!=ae){if(he>0){if(me==Ve.length-1)return null;De=Xe+Ve[me].size-ae,me++}else De=Xe-ae;ae+=De,fe+=De}for(;yr(ie.doc,fe)!=fe;){if(me==(he<0?0:Ve.length-1))return null;fe+=he*Ve[me-(he<0?1:0)].size,me+=he}return{index:me,lineN:fe}}function Ye(ie,ae,fe){var he=ie.display,me=he.view;me.length==0||ae>=he.viewTo||fe<=he.viewFrom?(he.view=os(ie,ae,fe),he.viewFrom=ae):(he.viewFrom>ae?he.view=os(ie,ae,he.viewFrom).concat(he.view):he.viewFrom<ae&&(he.view=he.view.slice(hu(ie,ae))),he.viewFrom=ae,he.viewTo<fe?he.view=he.view.concat(os(ie,he.viewTo,fe)):he.viewTo>fe&&(he.view=he.view.slice(0,hu(ie,fe)))),he.viewTo=fe}function Qe(ie){for(var ae=ie.display.view,fe=0,he=0;he<ae.length;he++){var me=ae[he];!me.hidden&&(!me.node||me.changes)&&++fe}return fe}function Nt(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Wt(ie,ae){ae===void 0&&(ae=!0);for(var fe=ie.doc,he={},me=he.cursors=document.createDocumentFragment(),De=he.selection=document.createDocumentFragment(),Ve=0;Ve<fe.sel.ranges.length;Ve++)if(!(!ae&&Ve==fe.sel.primIndex)){var Xe=fe.sel.ranges[Ve];if(!(Xe.from().line>=ie.display.viewTo||Xe.to().line<ie.display.viewFrom)){var Oe=Xe.empty();(Oe||ie.options.showCursorWhenSelecting)&&vn(ie,Xe.head,me),Oe||Gn(ie,Xe,De)}}return he}function vn(ie,ae,fe){var he=cl(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),me=fe.appendChild(vt("div","\xA0","CodeMirror-cursor"));if(me.style.left=he.left+"px",me.style.top=he.top+"px",me.style.height=Math.max(0,he.bottom-he.top)*ie.options.cursorHeight+"px",he.other){var De=fe.appendChild(vt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));De.style.display="",De.style.left=he.other.left+"px",De.style.top=he.other.top+"px",De.style.height=(he.other.bottom-he.other.top)*.85+"px"}}function wn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Gn(ie,ae,fe){var he=ie.display,me=ie.doc,De=document.createDocumentFragment(),Ve=ps(ie.display),Xe=Ve.left,Oe=Math.max(he.sizerWidth,Kl(ie)-he.sizer.offsetLeft)-Ve.right,qe=me.direction=="ltr";function Rt(Dr,vo,Qo,Kr){vo<0&&(vo=0),vo=Math.round(vo),Kr=Math.round(Kr),De.appendChild(vt("div",null,"CodeMirror-selected","position: absolute; left: "+Dr+`px;
|
|
top: `+vo+"px; width: "+(Qo==null?Oe-Dr:Qo)+`px;
|
|
height: `+(Kr-vo)+"px"))}function gt(Dr,vo,Qo){var Kr=Ti(me,Dr),ka=Kr.text.length,rs,Ql;function pl(mu,sc){return Md(ie,Ft(Dr,mu),"div",Kr,sc)}function ac(mu,sc,Wu){var vu=Nd(ie,Kr,null,mu),Mo=sc=="ltr"==(Wu=="after")?"left":"right",Ms=Wu=="after"?vu.begin:vu.end-(/\s/.test(Kr.text.charAt(vu.end-1))?2:1);return pl(Ms,Mo)[Mo]}var _u=Ke(Kr,me.direction);return We(_u,vo||0,Qo==null?ka:Qo,function(mu,sc,Wu,vu){var Mo=Wu=="ltr",Ms=pl(mu,Mo?"left":"right"),Ul=pl(sc-1,Mo?"right":"left"),ks=vo==null&&mu==0,Hc=Qo==null&&sc==ka,Ml=vu==0,dd=!_u||vu==_u.length-1;if(Ul.top-Ms.top<=3){var ve=(qe?ks:Hc)&&Ml,Se=(qe?Hc:ks)&&dd,be=ve?Xe:(Mo?Ms:Ul).left,je=Se?Oe:(Mo?Ul:Ms).right;Rt(be,Ms.top,je-be,Ms.bottom)}else{var et,$e,ct,pt;Mo?(et=qe&&ks&&Ml?Xe:Ms.left,$e=qe?Oe:ac(mu,Wu,"before"),ct=qe?Xe:ac(sc,Wu,"after"),pt=qe&&Hc&&dd?Oe:Ul.right):(et=qe?ac(mu,Wu,"before"):Xe,$e=!qe&&ks&&Ml?Oe:Ms.right,ct=!qe&&Hc&&dd?Xe:Ul.left,pt=qe?ac(sc,Wu,"after"):Oe),Rt(et,Ms.top,$e-et,Ms.bottom),Ms.bottom<Ul.top&&Rt(Xe,Ms.bottom,null,Ul.top),Rt(ct,Ul.top,pt-ct,Ul.bottom)}(!rs||wn(Ms,rs)<0)&&(rs=Ms),wn(Ul,rs)<0&&(rs=Ul),(!Ql||wn(Ms,Ql)<0)&&(Ql=Ms),wn(Ul,Ql)<0&&(Ql=Ul)}),{start:rs,end:Ql}}var Pn=ae.from(),fn=ae.to();if(Pn.line==fn.line)gt(Pn.line,Pn.ch,fn.ch);else{var Ci=Ti(me,Pn.line),Bi=Ti(me,fn.line),nr=Ro(Ci)==Ro(Bi),pr=gt(Pn.line,Pn.ch,nr?Ci.text.length+1:null).end,hr=gt(fn.line,nr?0:null,fn.ch).start;nr&&(pr.top<hr.top-2?(Rt(pr.right,pr.top,null,pr.bottom),Rt(Xe,hr.top,hr.left,hr.bottom)):Rt(pr.right,pr.top,hr.left-pr.right,pr.bottom)),pr.bottom<hr.top&&Rt(Xe,pr.bottom,null,hr.top)}fe.appendChild(De)}function Jn(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var fe=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||ji(ie),ae.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function gi(ie){ie.state.focused||(ie.display.input.focus(),hi(ie))}function Ki(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,ji(ie))},100)}function hi(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(en(ie,"focus",ie,ae),ie.state.focused=!0,yn(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ge&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Jn(ie))}function ji(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(en(ie,"blur",ie,ae),ie.state.focused=!1,ot(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function si(ie){for(var ae=ie.display,fe=ae.lineDiv.offsetTop,he=0;he<ae.view.length;he++){var me=ae.view[he],De=ie.options.lineWrapping,Ve=void 0,Xe=0;if(!me.hidden){if(Dt&&jt<8){var Oe=me.node.offsetTop+me.node.offsetHeight;Ve=Oe-fe,fe=Oe}else{var qe=me.node.getBoundingClientRect();Ve=qe.bottom-qe.top,!De&&me.text.firstChild&&(Xe=me.text.firstChild.getBoundingClientRect().right-qe.left-1)}var Rt=me.line.height-Ve;if((Rt>.005||Rt<-.005)&&(di(me.line,Ve),dr(me.line),me.rest))for(var gt=0;gt<me.rest.length;gt++)dr(me.rest[gt]);if(Xe>ie.display.sizerWidth){var Pn=Math.ceil(Xe/Lc(ie.display));Pn>ie.display.maxLineLength&&(ie.display.maxLineLength=Pn,ie.display.maxLine=me.line,ie.display.maxLineChanged=!0)}}}}function dr(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var fe=ie.widgets[ae],he=fe.node.parentNode;he&&(fe.height=he.offsetHeight)}}function Vn(ie,ae,fe){var he=fe&&fe.top!=null?Math.max(0,fe.top):ie.scroller.scrollTop;he=Math.floor(he-tu(ie));var me=fe&&fe.bottom!=null?fe.bottom:he+ie.wrapper.clientHeight,De=Ii(ae,he),Ve=Ii(ae,me);if(fe&&fe.ensure){var Xe=fe.ensure.from.line,Oe=fe.ensure.to.line;Xe<De?(De=Xe,Ve=Ii(ae,qa(Ti(ae,Xe))+ie.wrapper.clientHeight)):Math.min(Oe,ae.lastLine())>=Ve&&(De=Ii(ae,qa(Ti(ae,Oe))-ie.wrapper.clientHeight),Ve=Oe)}return{from:De,to:Math.max(Ve,De+1)}}function zi(ie,ae){if(!Xt(ie,"scrollCursorIntoView")){var fe=ie.display,he=fe.sizer.getBoundingClientRect(),me=null;if(ae.top+he.top<0?me=!0:ae.bottom+he.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!Ut){var De=vt("div","\u200B",null,`position: absolute;
|
|
top: `+(ae.top-fe.viewOffset-tu(ie.display))+`px;
|
|
height: `+(ae.bottom-ae.top+Bl(ie)+fe.barHeight)+`px;
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(De),De.scrollIntoView(me),ie.display.lineSpace.removeChild(De)}}}function lr(ie,ae,fe,he){he==null&&(he=0);var me;!ie.options.lineWrapping&&ae==fe&&(ae=ae.ch?Ft(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,fe=ae.sticky=="before"?Ft(ae.line,ae.ch+1,"before"):ae);for(var De=0;De<5;De++){var Ve=!1,Xe=cl(ie,ae),Oe=!fe||fe==ae?Xe:cl(ie,fe);me={left:Math.min(Xe.left,Oe.left),top:Math.min(Xe.top,Oe.top)-he,right:Math.max(Xe.left,Oe.left),bottom:Math.max(Xe.bottom,Oe.bottom)+he};var qe=Yr(ie,me),Rt=ie.doc.scrollTop,gt=ie.doc.scrollLeft;if(qe.scrollTop!=null&&(Pa(ie,qe.scrollTop),Math.abs(ie.doc.scrollTop-Rt)>1&&(Ve=!0)),qe.scrollLeft!=null&&(Ha(ie,qe.scrollLeft),Math.abs(ie.doc.scrollLeft-gt)>1&&(Ve=!0)),!Ve)break}return me}function oo(ie,ae){var fe=Yr(ie,ae);fe.scrollTop!=null&&Pa(ie,fe.scrollTop),fe.scrollLeft!=null&&Ha(ie,fe.scrollLeft)}function Yr(ie,ae){var fe=ie.display,he=Dc(ie.display);ae.top<0&&(ae.top=0);var me=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:fe.scroller.scrollTop,De=Hu(ie),Ve={};ae.bottom-ae.top>De&&(ae.bottom=ae.top+De);var Xe=ie.doc.height+Qu(fe),Oe=ae.top<he,qe=ae.bottom>Xe-he;if(ae.top<me)Ve.scrollTop=Oe?0:ae.top;else if(ae.bottom>me+De){var Rt=Math.min(ae.top,(qe?Xe:ae.bottom)-De);Rt!=me&&(Ve.scrollTop=Rt)}var gt=ie.options.fixedGutter?0:fe.gutters.offsetWidth,Pn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:fe.scroller.scrollLeft-gt,fn=Kl(ie)-fe.gutters.offsetWidth,Ci=ae.right-ae.left>fn;return Ci&&(ae.right=ae.left+fn),ae.left<10?Ve.scrollLeft=0:ae.left<Pn?Ve.scrollLeft=Math.max(0,ae.left+gt-(Ci?0:10)):ae.right>fn+Pn-3&&(Ve.scrollLeft=ae.right+(Ci?0:10)-fn),Ve}function lo(ie,ae){ae!=null&&(Ea(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function co(ie){Ea(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Pr(ie,ae,fe){(ae!=null||fe!=null)&&Ea(ie),ae!=null&&(ie.curOp.scrollLeft=ae),fe!=null&&(ie.curOp.scrollTop=fe)}function $i(ie,ae){Ea(ie),ie.curOp.scrollToPos=ae}function Ea(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var fe=Yh(ie,ae.from),he=Yh(ie,ae.to);$o(ie,fe,he,ae.margin)}}function $o(ie,ae,fe,he){var me=Yr(ie,{left:Math.min(ae.left,fe.left),top:Math.min(ae.top,fe.top)-he,right:Math.max(ae.right,fe.right),bottom:Math.max(ae.bottom,fe.bottom)+he});Pr(ie,me.scrollLeft,me.scrollTop)}function Pa(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ce||Xl(ie,{top:ae}),$a(ie,ae,!0),ce&&Xl(ie),Gu(ie,100))}function $a(ie,ae,fe){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!fe)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Ha(ie,ae,fe,he){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((fe?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!he)&&(ie.doc.scrollLeft=ae,ad(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function ja(ie){var ae=ie.display,fe=ae.gutters.offsetWidth,he=Math.round(ie.doc.height+Qu(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?fe:0,docHeight:he,scrollHeight:he+Bl(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:fe}}var js=function(ie,ae,fe){this.cm=fe;var he=this.vert=vt("div",[vt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),me=this.horiz=vt("div",[vt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");he.tabIndex=me.tabIndex=-1,ie(he),ie(me),st(he,"scroll",function(){he.clientHeight&&ae(he.scrollTop,"vertical")}),st(me,"scroll",function(){me.clientWidth&&ae(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Dt&&jt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};js.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,fe=ie.scrollHeight>ie.clientHeight+1,he=ie.nativeBarWidth;if(fe){this.vert.style.display="block",this.vert.style.bottom=ae?he+"px":"0";var me=ie.viewHeight-(ae?he:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+me)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=fe?he+"px":"0",this.horiz.style.left=ie.barLeft+"px";var De=ie.viewWidth-ie.barLeft-(fe?he:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+De)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(he==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:fe?he:0,bottom:ae?he:0}},js.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},js.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},js.prototype.zeroWidthHack=function(){var ie=de&&!Gt?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new He,this.disableVert=new He},js.prototype.enableZeroWidthBar=function(ie,ae,fe){ie.style.pointerEvents="auto";function he(){var me=ie.getBoundingClientRect(),De=fe=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);De!=ie?ie.style.pointerEvents="none":ae.set(1e3,he)}ae.set(1e3,he)},js.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Za=function(){};Za.prototype.update=function(){return{bottom:0,right:0}},Za.prototype.setScrollLeft=function(){},Za.prototype.setScrollTop=function(){},Za.prototype.clear=function(){};function ma(ie,ae){ae||(ae=ja(ie));var fe=ie.display.barWidth,he=ie.display.barHeight;es(ie,ae);for(var me=0;me<4&&fe!=ie.display.barWidth||he!=ie.display.barHeight;me++)fe!=ie.display.barWidth&&ie.options.lineWrapping&&si(ie),es(ie,ja(ie)),fe=ie.display.barWidth,he=ie.display.barHeight}function es(ie,ae){var fe=ie.display,he=fe.scrollbars.update(ae);fe.sizer.style.paddingRight=(fe.barWidth=he.right)+"px",fe.sizer.style.paddingBottom=(fe.barHeight=he.bottom)+"px",fe.heightForcer.style.borderBottom=he.bottom+"px solid transparent",he.right&&he.bottom?(fe.scrollbarFiller.style.display="block",fe.scrollbarFiller.style.height=he.bottom+"px",fe.scrollbarFiller.style.width=he.right+"px"):fe.scrollbarFiller.style.display="",he.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(fe.gutterFiller.style.display="block",fe.gutterFiller.style.height=he.bottom+"px",fe.gutterFiller.style.width=ae.gutterWidth+"px"):fe.gutterFiller.style.display=""}var zs={native:js,null:Za};function xs(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&ot(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new zs[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),st(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,fe){fe=="horizontal"?Ha(ie,ae):Pa(ie,ae)},ie),ie.display.scrollbars.addClass&&yn(ie.display.wrapper,ie.display.scrollbars.addClass)}var Cs=0;function Vs(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cs},ku(ie.curOp)}function hl(ie){var ae=ie.curOp;ae&&cu(ae,function(fe){for(var he=0;he<fe.ops.length;he++)fe.ops[he].cm.curOp=null;Fl(fe)})}function Fl(ie){for(var ae=ie.ops,fe=0;fe<ae.length;fe++)xu(ae[fe]);for(var he=0;he<ae.length;he++)qs(ae[he]);for(var me=0;me<ae.length;me++)Eu(ae[me]);for(var De=0;De<ae.length;De++)Ba(ae[De]);for(var Ve=0;Ve<ae.length;Ve++)al(ae[Ve])}function xu(ie){var ae=ie.cm,fe=ae.display;vl(ae),ie.updateMaxLine&&Ta(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<fe.viewFrom||ie.scrollToPos.to.line>=fe.viewTo)||fe.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new da(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function qs(ie){ie.updatedDisplay=ie.mustUpdate&&yl(ie.cm,ie.update)}function Eu(ie){var ae=ie.cm,fe=ae.display;ie.updatedDisplay&&si(ae),ie.barMeasure=ja(ae),fe.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=dh(ae,fe.maxLine,fe.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(fe.scroller.clientWidth,fe.sizer.offsetLeft+ie.adjustWidthTo+Bl(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+ie.adjustWidthTo-Kl(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=fe.input.prepareSelection())}function Ba(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Ha(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var fe=ie.focus&&ie.focus==Yt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,fe),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&ma(ae,ie.barMeasure),ie.updatedDisplay&&qu(ae,ie.barMeasure),ie.selectionChanged&&Jn(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),fe&&gi(ie.cm)}function al(ie){var ae=ie.cm,fe=ae.display,he=ae.doc;if(ie.updatedDisplay&&Fa(ae,ie.update),fe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),ie.scrollTop!=null&&$a(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Ha(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var me=lr(ae,Wi(he,ie.scrollToPos.from),Wi(he,ie.scrollToPos.to),ie.scrollToPos.margin);zi(ae,me)}var De=ie.maybeHiddenMarkers,Ve=ie.maybeUnhiddenMarkers;if(De)for(var Xe=0;Xe<De.length;++Xe)De[Xe].lines.length||en(De[Xe],"hide");if(Ve)for(var Oe=0;Oe<Ve.length;++Oe)Ve[Oe].lines.length&&en(Ve[Oe],"unhide");fe.wrapper.offsetHeight&&(he.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&en(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function va(ie,ae){if(ie.curOp)return ae();Vs(ie);try{return ae()}finally{hl(ie)}}function As(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);Vs(ie);try{return ae.apply(ie,arguments)}finally{hl(ie)}}}function Es(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Vs(this);try{return ie.apply(this,arguments)}finally{hl(this)}}}function _s(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);Vs(ae);try{return ie.apply(this,arguments)}finally{hl(ae)}}}function Gu(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Nn(ea,ie))}function ea(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var fe=+new Date+ie.options.workTime,he=Ir(ie,ae.highlightFrontier),me=[];ae.iter(he.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(De){if(he.line>=ie.display.viewFrom){var Ve=De.styles,Xe=De.text.length>ie.options.maxHighlightLength?Hi(ae.mode,he.state):null,Oe=Aa(ie,De,he,!0);Xe&&(he.state=Xe),De.styles=Oe.styles;var qe=De.styleClasses,Rt=Oe.classes;Rt?De.styleClasses=Rt:qe&&(De.styleClasses=null);for(var gt=!Ve||Ve.length!=De.styles.length||qe!=Rt&&(!qe||!Rt||qe.bgClass!=Rt.bgClass||qe.textClass!=Rt.textClass),Pn=0;!gt&&Pn<Ve.length;++Pn)gt=Ve[Pn]!=De.styles[Pn];gt&&me.push(he.line),De.stateAfter=he.save(),he.nextLine()}else De.text.length<=ie.options.maxHighlightLength&&Bt(ie,De.text,he),De.stateAfter=he.line%5==0?he.save():null,he.nextLine();if(+new Date>fe)return Gu(ie,ie.options.workDelay),!0}),ae.highlightFrontier=he.line,ae.modeFrontier=Math.max(ae.modeFrontier,he.line),me.length&&va(ie,function(){for(var De=0;De<me.length;De++)Da(ie,me[De],"text")})}}var da=function(ie,ae,fe){var he=ie.display;this.viewport=ae,this.visible=Vn(he,ie.doc,ae),this.editorIsHidden=!he.wrapper.offsetWidth,this.wrapperHeight=he.wrapper.clientHeight,this.wrapperWidth=he.wrapper.clientWidth,this.oldDisplayWidth=Kl(ie),this.force=fe,this.dims=ff(ie),this.events=[]};da.prototype.signal=function(ie,ae){Bn(ie,ae)&&this.events.push(arguments)},da.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)en.apply(null,this.events[ie])};function vl(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=Bl(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Bl(ie)+"px",ae.scrollbarsClipped=!0)}function Yl(ie){if(ie.hasFocus())return null;var ae=Yt();if(!ae||!It(ie.display.lineDiv,ae))return null;var fe={activeElt:ae};if(window.getSelection){var he=window.getSelection();he.anchorNode&&he.extend&&It(ie.display.lineDiv,he.anchorNode)&&(fe.anchorNode=he.anchorNode,fe.anchorOffset=he.anchorOffset,fe.focusNode=he.focusNode,fe.focusOffset=he.focusOffset)}return fe}function Ks(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Yt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&It(document.body,ie.anchorNode)&&It(document.body,ie.focusNode))){var ae=window.getSelection(),fe=document.createRange();fe.setEnd(ie.anchorNode,ie.anchorOffset),fe.collapse(!1),ae.removeAllRanges(),ae.addRange(fe),ae.extend(ie.focusNode,ie.focusOffset)}}function yl(ie,ae){var fe=ie.display,he=ie.doc;if(ae.editorIsHidden)return Vl(ie),!1;if(!ae.force&&ae.visible.from>=fe.viewFrom&&ae.visible.to<=fe.viewTo&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo)&&fe.renderedView==fe.view&&Qe(ie)==0)return!1;ya(ie)&&(Vl(ie),ae.dims=ff(ie));var me=he.first+he.size,De=Math.max(ae.visible.from-ie.options.viewportMargin,he.first),Ve=Math.min(me,ae.visible.to+ie.options.viewportMargin);fe.viewFrom<De&&De-fe.viewFrom<20&&(De=Math.max(he.first,fe.viewFrom)),fe.viewTo>Ve&&fe.viewTo-Ve<20&&(Ve=Math.min(me,fe.viewTo)),tn&&(De=yr(ie.doc,De),Ve=Eo(ie.doc,Ve));var Xe=De!=fe.viewFrom||Ve!=fe.viewTo||fe.lastWrapHeight!=ae.wrapperHeight||fe.lastWrapWidth!=ae.wrapperWidth;Ye(ie,De,Ve),fe.viewOffset=qa(Ti(ie.doc,fe.viewFrom)),ie.display.mover.style.top=fe.viewOffset+"px";var Oe=Qe(ie);if(!Xe&&Oe==0&&!ae.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var qe=Yl(ie);return Oe>4&&(fe.lineDiv.style.display="none"),Iu(ie,fe.updateLineNumbers,ae.dims),Oe>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,Ks(qe),dt(fe.cursorDiv),dt(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,Xe&&(fe.lastWrapHeight=ae.wrapperHeight,fe.lastWrapWidth=ae.wrapperWidth,Gu(ie,400)),fe.updateLineNumbers=null,!0}function Fa(ie,ae){for(var fe=ae.viewport,he=!0;;he=!1){if(!he||!ie.options.lineWrapping||ae.oldDisplayWidth==Kl(ie)){if(fe&&fe.top!=null&&(fe={top:Math.min(ie.doc.height+Qu(ie.display)-Hu(ie),fe.top)}),ae.visible=Vn(ie.display,ie.doc,fe),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else he&&(ae.visible=Vn(ie.display,ie.doc,fe));if(!yl(ie,ae))break;si(ie);var me=ja(ie);Nt(ie),ma(ie,me),qu(ie,me),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Xl(ie,ae){var fe=new da(ie,ae);if(yl(ie,fe)){si(ie),Fa(ie,fe);var he=ja(ie);Nt(ie),ma(ie,he),qu(ie,he),fe.finish()}}function Iu(ie,ae,fe){var he=ie.display,me=ie.options.lineNumbers,De=he.lineDiv,Ve=De.firstChild;function Xe(Ci){var Bi=Ci.nextSibling;return Ge&&de&&ie.display.currentWheelTarget==Ci?Ci.style.display="none":Ci.parentNode.removeChild(Ci),Bi}for(var Oe=he.view,qe=he.viewFrom,Rt=0;Rt<Oe.length;Rt++){var gt=Oe[Rt];if(!gt.hidden)if(!gt.node||gt.node.parentNode!=De){var Pn=ca(ie,gt,qe,fe);De.insertBefore(Pn,Ve)}else{for(;Ve!=gt.node;)Ve=Xe(Ve);var fn=me&&ae!=null&&ae<=qe&>.lineNumber;gt.changes&&(mn(gt.changes,"gutter")>-1&&(fn=!1),Dd(ie,gt,qe,fe)),fn&&(dt(gt.lineNumber),gt.lineNumber.appendChild(document.createTextNode(jn(ie.options,qe)))),Ve=gt.node.nextSibling}qe+=gt.size}for(;Ve;)Ve=Xe(Ve)}function iu(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function qu(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Bl(ie)+"px"}function ad(ie){var ae=ie.display,fe=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var he=gf(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,me=ae.gutters.offsetWidth,De=he+"px",Ve=0;Ve<fe.length;Ve++)if(!fe[Ve].hidden){ie.options.fixedGutter&&(fe[Ve].gutter&&(fe[Ve].gutter.style.left=De),fe[Ve].gutterBackground&&(fe[Ve].gutterBackground.style.left=De));var Xe=fe[Ve].alignable;if(Xe)for(var Oe=0;Oe<Xe.length;Oe++)Xe[Oe].style.left=De}ie.options.fixedGutter&&(ae.gutters.style.left=he+me+"px")}}function ya(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,fe=jn(ie.options,ae.first+ae.size-1),he=ie.display;if(fe.length!=he.lineNumChars){var me=he.measure.appendChild(vt("div",[vt("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),De=me.firstChild.offsetWidth,Ve=me.offsetWidth-De;return he.lineGutter.style.width="",he.lineNumInnerWidth=Math.max(De,he.lineGutter.offsetWidth-Ve)+1,he.lineNumWidth=he.lineNumInnerWidth+Ve,he.lineNumChars=he.lineNumInnerWidth?fe.length:-1,he.lineGutter.style.width=he.lineNumWidth+"px",iu(ie.display),!0}return!1}function Ns(ie,ae){for(var fe=[],he=!1,me=0;me<ie.length;me++){var De=ie[me],Ve=null;if(typeof De!="string"&&(Ve=De.style,De=De.className),De=="CodeMirror-linenumbers")if(ae)he=!0;else continue;fe.push({className:De,style:Ve})}return ae&&!he&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function Ru(ie){var ae=ie.gutters,fe=ie.gutterSpecs;dt(ae),ie.lineGutter=null;for(var he=0;he<fe.length;++he){var me=fe[he],De=me.className,Ve=me.style,Xe=ae.appendChild(vt("div",null,"CodeMirror-gutter "+De));Ve&&(Xe.style.cssText=Ve),De=="CodeMirror-linenumbers"&&(ie.lineGutter=Xe,Xe.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=fe.length?"":"none",iu(ie)}function fl(ie){Ru(ie.display),Qs(ie),ad(ie)}function $u(ie,ae,fe,he){var me=this;this.input=fe,me.scrollbarFiller=vt("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=vt("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=Kt("div",null,"CodeMirror-code"),me.selectionDiv=vt("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=vt("div",null,"CodeMirror-cursors"),me.measure=vt("div",null,"CodeMirror-measure"),me.lineMeasure=vt("div",null,"CodeMirror-measure"),me.lineSpace=Kt("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var De=Kt("div",[me.lineSpace],"CodeMirror-lines");me.mover=vt("div",[De],null,"position: relative"),me.sizer=vt("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=vt("div",null,null,"position: absolute; height: "+Zn+"px; width: 1px;"),me.gutters=vt("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=vt("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=vt("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),Dt&&jt<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!Ge&&!(ce&&ne)&&(me.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(me.wrapper):ie(me.wrapper)),me.viewFrom=me.viewTo=ae.first,me.reportedViewFrom=me.reportedViewTo=ae.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=Ns(he.gutters,he.lineNumbers),Ru(me),fe.init(me)}var Gl=0,Ds=null;Dt?Ds=-.53:ce?Ds=15:Ct?Ds=-.7:xt&&(Ds=-1/3);function Ts(ie){var ae=ie.wheelDeltaX,fe=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),fe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?fe=ie.detail:fe==null&&(fe=ie.wheelDelta),{x:ae,y:fe}}function Js(ie){var ae=Ts(ie);return ae.x*=Ds,ae.y*=Ds,ae}function gl(ie,ae){var fe=Ts(ae),he=fe.x,me=fe.y,De=ie.display,Ve=De.scroller,Xe=Ve.scrollWidth>Ve.clientWidth,Oe=Ve.scrollHeight>Ve.clientHeight;if(he&&Xe||me&&Oe){if(me&&de&&Ge){e:for(var qe=ae.target,Rt=De.view;qe!=Ve;qe=qe.parentNode)for(var gt=0;gt<Rt.length;gt++)if(Rt[gt].node==qe){ie.display.currentWheelTarget=qe;break e}}if(he&&!ce&&!Et&&Ds!=null){me&&Oe&&Pa(ie,Math.max(0,Ve.scrollTop+me*Ds)),Ha(ie,Math.max(0,Ve.scrollLeft+he*Ds)),(!me||me&&Oe)&&Yi(ae),De.wheelStartX=null;return}if(me&&Ds!=null){var Pn=me*Ds,fn=ie.doc.scrollTop,Ci=fn+De.wrapper.clientHeight;Pn<0?fn=Math.max(0,fn+Pn-50):Ci=Math.min(ie.doc.height,Ci+Pn+50),Xl(ie,{top:fn,bottom:Ci})}Gl<20&&(De.wheelStartX==null?(De.wheelStartX=Ve.scrollLeft,De.wheelStartY=Ve.scrollTop,De.wheelDX=he,De.wheelDY=me,setTimeout(function(){if(De.wheelStartX!=null){var Bi=Ve.scrollLeft-De.wheelStartX,nr=Ve.scrollTop-De.wheelStartY,pr=nr&&De.wheelDY&&nr/De.wheelDY||Bi&&De.wheelDX&&Bi/De.wheelDX;De.wheelStartX=De.wheelStartY=null,pr&&(Ds=(Ds*Gl+pr)/(Gl+1),++Gl)}},200)):(De.wheelDX+=he,De.wheelDY+=me))}}var Ll=function(ie,ae){this.ranges=ie,this.primIndex=ae};Ll.prototype.primary=function(){return this.ranges[this.primIndex]},Ll.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var fe=this.ranges[ae],he=ie.ranges[ae];if(!rn(fe.anchor,he.anchor)||!rn(fe.head,he.head))return!1}return!0},Ll.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Xa(Sr(this.ranges[ae].anchor),Sr(this.ranges[ae].head));return new Ll(ie,this.primIndex)},Ll.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Ll.prototype.contains=function(ie,ae){ae||(ae=ie);for(var fe=0;fe<this.ranges.length;fe++){var he=this.ranges[fe];if(bt(ae,he.from())>=0&&bt(ie,he.to())<=0)return fe}return-1};var Xa=function(ie,ae){this.anchor=ie,this.head=ae};Xa.prototype.from=function(){return Ni(this.anchor,this.head)},Xa.prototype.to=function(){return ki(this.anchor,this.head)},Xa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Il(ie,ae,fe){var he=ie&&ie.options.selectionsMayTouch,me=ae[fe];ae.sort(function(Pn,fn){return bt(Pn.from(),fn.from())}),fe=mn(ae,me);for(var De=1;De<ae.length;De++){var Ve=ae[De],Xe=ae[De-1],Oe=bt(Xe.to(),Ve.from());if(he&&!Ve.empty()?Oe>0:Oe>=0){var qe=Ni(Xe.from(),Ve.from()),Rt=ki(Xe.to(),Ve.to()),gt=Xe.empty()?Ve.from()==Ve.head:Xe.from()==Xe.head;De<=fe&&--fe,ae.splice(--De,2,new Xa(gt?Rt:qe,gt?qe:Rt))}}return new Ll(ae,fe)}function ru(ie,ae){return new Ll([new Xa(ie,ae||ie)],0)}function Sl(ie){return ie.text?Ft(ie.from.line+ie.text.length-1,mt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function ou(ie,ae){if(bt(ie,ae.from)<0)return ie;if(bt(ie,ae.to)<=0)return Sl(ae);var fe=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,he=ie.ch;return ie.line==ae.to.line&&(he+=Sl(ae).ch-ae.to.ch),Ft(fe,he)}function Mc(ie,ae){for(var fe=[],he=0;he<ie.sel.ranges.length;he++){var me=ie.sel.ranges[he];fe.push(new Xa(ou(me.anchor,ae),ou(me.head,ae)))}return Il(ie.cm,fe,ie.sel.primIndex)}function Ls(ie,ae,fe){return ie.line==ae.line?Ft(fe.line,ie.ch-ae.ch+fe.ch):Ft(fe.line+(ie.line-ae.line),ie.ch)}function Pu(ie,ae,fe){for(var he=[],me=Ft(ie.first,0),De=me,Ve=0;Ve<ae.length;Ve++){var Xe=ae[Ve],Oe=Ls(Xe.from,me,De),qe=Ls(Sl(Xe),me,De);if(me=Xe.to,De=qe,fe=="around"){var Rt=ie.sel.ranges[Ve],gt=bt(Rt.head,Rt.anchor)<0;he[Ve]=new Xa(gt?qe:Oe,gt?Oe:qe)}else he[Ve]=new Xa(Oe,Oe)}return new Ll(he,ie.sel.primIndex)}function aa(ie){ie.doc.mode=ln(ie.options,ie.doc.modeOption),Fs(ie)}function Fs(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,Gu(ie,100),ie.state.modeGen++,ie.curOp&&Qs(ie)}function Zu(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&mt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Uu(ie,ae,fe,he){function me(hr){return fe?fe[hr]:null}function De(hr,Dr,vo){Oa(hr,Dr,vo,he),ao(hr,"change",hr,ae)}function Ve(hr,Dr){for(var vo=[],Qo=hr;Qo<Dr;++Qo)vo.push(new sa(qe[Qo],me(Qo),he));return vo}var Xe=ae.from,Oe=ae.to,qe=ae.text,Rt=Ti(ie,Xe.line),gt=Ti(ie,Oe.line),Pn=mt(qe),fn=me(qe.length-1),Ci=Oe.line-Xe.line;if(ae.full)ie.insert(0,Ve(0,qe.length)),ie.remove(qe.length,ie.size-qe.length);else if(Zu(ie,ae)){var Bi=Ve(0,qe.length-1);De(gt,gt.text,fn),Ci&&ie.remove(Xe.line,Ci),Bi.length&&ie.insert(Xe.line,Bi)}else if(Rt==gt)if(qe.length==1)De(Rt,Rt.text.slice(0,Xe.ch)+Pn+Rt.text.slice(Oe.ch),fn);else{var nr=Ve(1,qe.length-1);nr.push(new sa(Pn+Rt.text.slice(Oe.ch),fn,he)),De(Rt,Rt.text.slice(0,Xe.ch)+qe[0],me(0)),ie.insert(Xe.line+1,nr)}else if(qe.length==1)De(Rt,Rt.text.slice(0,Xe.ch)+qe[0]+gt.text.slice(Oe.ch),me(0)),ie.remove(Xe.line+1,Ci);else{De(Rt,Rt.text.slice(0,Xe.ch)+qe[0],me(0)),De(gt,Pn+gt.text.slice(Oe.ch),fn);var pr=Ve(1,qe.length-1);Ci>1&&ie.remove(Xe.line+1,Ci-1),ie.insert(Xe.line+1,pr)}ao(ie,"change",ie,ae)}function au(ie,ae,fe){function he(me,De,Ve){if(me.linked)for(var Xe=0;Xe<me.linked.length;++Xe){var Oe=me.linked[Xe];if(Oe.doc!=De){var qe=Ve&&Oe.sharedHist;fe&&!qe||(ae(Oe.doc,qe),he(Oe.doc,me,qe))}}}he(ie,null,!0)}function sd(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,zo(ie),aa(ie),Du(ie),ie.options.lineWrapping||Ta(ie),ie.options.mode=ae.modeOption,Qs(ie)}function Du(ie){(ie.doc.direction=="rtl"?yn:ot)(ie.display.lineDiv,"CodeMirror-rtl")}function Yd(ie){va(ie,function(){Du(ie),Qs(ie)})}function pc(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function La(ie,ae){var fe={from:Sr(ae.from),to:Sl(ae),text:qr(ie,ae.from,ae.to)};return Nc(ie,fe,ae.from.line,ae.to.line+1),au(ie,function(he){return Nc(he,fe,ae.from.line,ae.to.line+1)},!0),fe}function Po(ie){for(;ie.length;){var ae=mt(ie);if(ae.ranges)ie.pop();else break}}function Va(ie,ae){if(ae)return Po(ie.done),mt(ie.done);if(ie.done.length&&!mt(ie.done).ranges)return mt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),mt(ie.done)}function sl(ie,ae,fe,he){var me=ie.history;me.undone.length=0;var De=+new Date,Ve,Xe;if((me.lastOp==he||me.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&me.lastModTime>De-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Ve=Va(me,me.lastOp==he)))Xe=mt(Ve.changes),bt(ae.from,ae.to)==0&&bt(ae.from,Xe.to)==0?Xe.to=Sl(ae):Ve.changes.push(La(ie,ae));else{var Oe=mt(me.done);for((!Oe||!Oe.ranges)&&Hs(ie.sel,me.done),Ve={changes:[La(ie,ae)],generation:me.generation},me.done.push(Ve);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(fe),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=De,me.lastOp=me.lastSelOp=he,me.lastOrigin=me.lastSelOrigin=ae.origin,Xe||en(ie,"historyAdded")}function mc(ie,ae,fe,he){var me=ae.charAt(0);return me=="*"||me=="+"&&fe.ranges.length==he.ranges.length&&fe.somethingSelected()==he.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function kc(ie,ae,fe,he){var me=ie.history,De=he&&he.origin;fe==me.lastSelOp||De&&me.lastSelOrigin==De&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==De||mc(ie,De,mt(me.done),ae))?me.done[me.done.length-1]=ae:Hs(ae,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=De,me.lastSelOp=fe,he&&he.clearRedo!==!1&&Po(me.undone)}function Hs(ie,ae){var fe=mt(ae);fe&&fe.ranges&&fe.equals(ie)||ae.push(ie)}function Nc(ie,ae,fe,he){var me=ae["spans_"+ie.id],De=0;ie.iter(Math.max(ie.first,fe),Math.min(ie.first+ie.size,he),function(Ve){Ve.markedSpans&&((me||(me=ae["spans_"+ie.id]={}))[De]=Ve.markedSpans),++De})}function su(ie){if(!ie)return null;for(var ae,fe=0;fe<ie.length;++fe)ie[fe].marker.explicitlyCleared?ae||(ae=ie.slice(0,fe)):ae&&ae.push(ie[fe]);return ae?ae.length?ae:null:ie}function xl(ie,ae){var fe=ae["spans_"+ie.id];if(!fe)return null;for(var he=[],me=0;me<ae.text.length;++me)he.push(su(fe[me]));return he}function ba(ie,ae){var fe=xl(ie,ae),he=Er(ie,ae);if(!fe)return he;if(!he)return fe;for(var me=0;me<fe.length;++me){var De=fe[me],Ve=he[me];if(De&&Ve)e:for(var Xe=0;Xe<Ve.length;++Xe){for(var Oe=Ve[Xe],qe=0;qe<De.length;++qe)if(De[qe].marker==Oe.marker)continue e;De.push(Oe)}else Ve&&(fe[me]=Ve)}return fe}function ec(ie,ae,fe){for(var he=[],me=0;me<ie.length;++me){var De=ie[me];if(De.ranges){he.push(fe?Ll.prototype.deepCopy.call(De):De);continue}var Ve=De.changes,Xe=[];he.push({changes:Xe});for(var Oe=0;Oe<Ve.length;++Oe){var qe=Ve[Oe],Rt=void 0;if(Xe.push({from:qe.from,to:qe.to,text:qe.text}),ae)for(var gt in qe)(Rt=gt.match(/^spans_(\d+)$/))&&mn(ae,Number(Rt[1]))>-1&&(mt(Xe)[gt]=qe[gt],delete qe[gt])}}return he}function Ku(ie,ae,fe,he){if(he){var me=ie.anchor;if(fe){var De=bt(ae,me)<0;De!=bt(fe,me)<0?(me=ae,ae=fe):De!=bt(ae,fe)<0&&(ae=fe)}return new Xa(me,ae)}else return new Xa(fe||ae,ae)}function Td(ie,ae,fe,he,me){me==null&&(me=ie.cm&&(ie.cm.display.shift||ie.extend)),fu(ie,new Ll([Ku(ie.sel.primary(),ae,fe,me)],0),he)}function Xh(ie,ae,fe){for(var he=[],me=ie.cm&&(ie.cm.display.shift||ie.extend),De=0;De<ie.sel.ranges.length;De++)he[De]=Ku(ie.sel.ranges[De],ae[De],null,me);var Ve=Il(ie.cm,he,ie.sel.primIndex);fu(ie,Ve,fe)}function tc(ie,ae,fe,he){var me=ie.sel.ranges.slice(0);me[ae]=fe,fu(ie,Il(ie.cm,me,ie.sel.primIndex),he)}function nc(ie,ae,fe,he){fu(ie,ru(ae,fe),he)}function qc(ie,ae,fe){var he={ranges:ae.ranges,update:function(me){this.ranges=[];for(var De=0;De<me.length;De++)this.ranges[De]=new Xa(Wi(ie,me[De].anchor),Wi(ie,me[De].head))},origin:fe&&fe.origin};return en(ie,"beforeSelectionChange",ie,he),ie.cm&&en(ie.cm,"beforeSelectionChange",ie.cm,he),he.ranges!=ae.ranges?Il(ie.cm,he.ranges,he.ranges.length-1):ae}function Xd(ie,ae,fe){var he=ie.history.done,me=mt(he);me&&me.ranges?(he[he.length-1]=ae,Vc(ie,ae,fe)):fu(ie,ae,fe)}function fu(ie,ae,fe){Vc(ie,ae,fe),kc(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,fe)}function Vc(ie,ae,fe){(Bn(ie,"beforeSelectionChange")||ie.cm&&Bn(ie.cm,"beforeSelectionChange"))&&(ae=qc(ie,ae,fe));var he=fe&&fe.bias||(bt(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ua(ie,gu(ie,ae,he,!0)),!(fe&&fe.scroll===!1)&&ie.cm&&co(ie.cm)}function Ua(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,ai(ie.cm)),ao(ie,"cursorActivity",ie))}function ra(ie){Ua(ie,gu(ie,ie.sel,null,!1))}function gu(ie,ae,fe,he){for(var me,De=0;De<ae.ranges.length;De++){var Ve=ae.ranges[De],Xe=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[De],Oe=Jd(ie,Ve.anchor,Xe&&Xe.anchor,fe,he),qe=Jd(ie,Ve.head,Xe&&Xe.head,fe,he);(me||Oe!=Ve.anchor||qe!=Ve.head)&&(me||(me=ae.ranges.slice(0,De)),me[De]=new Xa(Oe,qe))}return me?Il(ie.cm,me,ae.primIndex):ae}function Gs(ie,ae,fe,he,me){var De=Ti(ie,ae.line);if(De.markedSpans)for(var Ve=0;Ve<De.markedSpans.length;++Ve){var Xe=De.markedSpans[Ve],Oe=Xe.marker,qe="selectLeft"in Oe?!Oe.selectLeft:Oe.inclusiveLeft,Rt="selectRight"in Oe?!Oe.selectRight:Oe.inclusiveRight;if((Xe.from==null||(qe?Xe.from<=ae.ch:Xe.from<ae.ch))&&(Xe.to==null||(Rt?Xe.to>=ae.ch:Xe.to>ae.ch))){if(me&&(en(Oe,"beforeCursorEnter"),Oe.explicitlyCleared))if(De.markedSpans){--Ve;continue}else break;if(!Oe.atomic)continue;if(fe){var gt=Oe.find(he<0?1:-1),Pn=void 0;if((he<0?Rt:qe)&&(gt=fh(ie,gt,-he,gt&>.line==ae.line?De:null)),gt&>.line==ae.line&&(Pn=bt(gt,fe))&&(he<0?Pn<0:Pn>0))return Gs(ie,gt,ae,he,me)}var fn=Oe.find(he<0?-1:1);return(he<0?qe:Rt)&&(fn=fh(ie,fn,he,fn.line==ae.line?De:null)),fn?Gs(ie,fn,ae,he,me):null}}return ae}function Jd(ie,ae,fe,he,me){var De=he||1,Ve=Gs(ie,ae,fe,De,me)||!me&&Gs(ie,ae,fe,De,!0)||Gs(ie,ae,fe,-De,me)||!me&&Gs(ie,ae,fe,-De,!0);return Ve||(ie.cantEdit=!0,Ft(ie.first,0))}function fh(ie,ae,fe,he){return fe<0&&ae.ch==0?ae.line>ie.first?Wi(ie,Ft(ae.line-1)):null:fe>0&&ae.ch==(he||Ti(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Ft(ae.line+1,0):null:new Ft(ae.line,ae.ch+fe)}function Rl(ie){ie.setSelection(Ft(ie.firstLine(),0),Ft(ie.lastLine()),nn)}function ld(ie,ae,fe){var he={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return he.canceled=!0}};return fe&&(he.update=function(me,De,Ve,Xe){me&&(he.from=Wi(ie,me)),De&&(he.to=Wi(ie,De)),Ve&&(he.text=Ve),Xe!==void 0&&(he.origin=Xe)}),en(ie,"beforeChange",ie,he),ie.cm&&en(ie.cm,"beforeChange",ie.cm,he),he.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:he.from,to:he.to,text:he.text,origin:he.origin}}function ic(ie,ae,fe){if(ie.cm){if(!ie.cm.curOp)return As(ie.cm,ic)(ie,ae,fe);if(ie.cm.state.suppressEdits)return}if(!((Bn(ie,"beforeChange")||ie.cm&&Bn(ie.cm,"beforeChange"))&&(ae=ld(ie,ae,!0),!ae))){var he=Xn&&!fe&&Fn(ie,ae.from,ae.to);if(he)for(var me=he.length-1;me>=0;--me)Od(ie,{from:he[me].from,to:he[me].to,text:me?[""]:ae.text,origin:ae.origin});else Od(ie,ae)}}function Od(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&bt(ae.from,ae.to)==0)){var fe=Mc(ie,ae);sl(ie,ae,fe,ie.cm?ie.cm.curOp.id:NaN),xd(ie,ae,fe,Er(ie,ae));var he=[];au(ie,function(me,De){!De&&mn(he,me.history)==-1&&(Qd(me.history,ae),he.push(me.history)),xd(me,ae,null,Er(me,ae))})}}function Tc(ie,ae,fe){var he=ie.cm&&ie.cm.state.suppressEdits;if(!(he&&!fe)){for(var me=ie.history,De,Ve=ie.sel,Xe=ae=="undo"?me.done:me.undone,Oe=ae=="undo"?me.undone:me.done,qe=0;qe<Xe.length&&(De=Xe[qe],!(fe?De.ranges&&!De.equals(ie.sel):!De.ranges));qe++);if(qe!=Xe.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(De=Xe.pop(),De.ranges){if(Hs(De,Oe),fe&&!De.equals(ie.sel)){fu(ie,De,{clearRedo:!1});return}Ve=De}else if(he){Xe.push(De);return}else break;var Rt=[];Hs(Ve,Oe),Oe.push({changes:Rt,generation:me.generation}),me.generation=De.generation||++me.maxGeneration;for(var gt=Bn(ie,"beforeChange")||ie.cm&&Bn(ie.cm,"beforeChange"),Pn=function(Bi){var nr=De.changes[Bi];if(nr.origin=ae,gt&&!ld(ie,nr,!1))return Xe.length=0,{};Rt.push(La(ie,nr));var pr=Bi?Mc(ie,nr):mt(Xe);xd(ie,nr,pr,ba(ie,nr)),!Bi&&ie.cm&&ie.cm.scrollIntoView({from:nr.from,to:Sl(nr)});var hr=[];au(ie,function(Dr,vo){!vo&&mn(hr,Dr.history)==-1&&(Qd(Dr.history,nr),hr.push(Dr.history)),xd(Dr,nr,null,ba(Dr,nr))})},fn=De.changes.length-1;fn>=0;--fn){var Ci=Pn(fn);if(Ci)return Ci.v}}}}function Jh(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Ll(ht(ie.sel.ranges,function(me){return new Xa(Ft(me.anchor.line+ae,me.anchor.ch),Ft(me.head.line+ae,me.head.ch))}),ie.sel.primIndex),ie.cm)){Qs(ie.cm,ie.first,ie.first-ae,ae);for(var fe=ie.cm.display,he=fe.viewFrom;he<fe.viewTo;he++)Da(ie.cm,he,"gutter")}}function xd(ie,ae,fe,he){if(ie.cm&&!ie.cm.curOp)return As(ie.cm,xd)(ie,ae,fe,he);if(ae.to.line<ie.first){Jh(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var me=ae.text.length-1-(ie.first-ae.from.line);Jh(ie,me),ae={from:Ft(ie.first,0),to:Ft(ae.to.line+me,ae.to.ch),text:[mt(ae.text)],origin:ae.origin}}var De=ie.lastLine();ae.to.line>De&&(ae={from:ae.from,to:Ft(De,Ti(ie,De).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=qr(ie,ae.from,ae.to),fe||(fe=Mc(ie,ae)),ie.cm?Qh(ie.cm,ae,he):Uu(ie,ae,he),Vc(ie,fe,nn),ie.cantEdit&&Jd(ie,Ft(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Qh(ie,ae,fe){var he=ie.doc,me=ie.display,De=ae.from,Ve=ae.to,Xe=!1,Oe=De.line;ie.options.lineWrapping||(Oe=Ot(Ro(Ti(he,De.line))),he.iter(Oe,Ve.line+1,function(fn){if(fn==me.maxLine)return Xe=!0,!0})),he.sel.contains(ae.from,ae.to)>-1&&ai(ie),Uu(he,ae,fe,dl(ie)),ie.options.lineWrapping||(he.iter(Oe,De.line+ae.text.length,function(fn){var Ci=tl(fn);Ci>me.maxLineLength&&(me.maxLine=fn,me.maxLineLength=Ci,me.maxLineChanged=!0,Xe=!1)}),Xe&&(ie.curOp.updateMaxLine=!0)),Ei(he,De.line),Gu(ie,400);var qe=ae.text.length-(Ve.line-De.line)-1;ae.full?Qs(ie):De.line==Ve.line&&ae.text.length==1&&!Zu(ie.doc,ae)?Da(ie,De.line,"text"):Qs(ie,De.line,Ve.line+1,qe);var Rt=Bn(ie,"changes"),gt=Bn(ie,"change");if(gt||Rt){var Pn={from:De,to:Ve,text:ae.text,removed:ae.removed,origin:ae.origin};gt&&ao(ie,"change",ie,Pn),Rt&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Pn)}ie.display.selForContextMenu=null}function rc(ie,ae,fe,he,me){var De;he||(he=fe),bt(he,fe)<0&&(De=[he,fe],fe=De[0],he=De[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),ic(ie,{from:fe,to:he,text:ae,origin:me})}function vc(ie,ae,fe,he){fe<ie.line?ie.line+=he:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Mh(ie,ae,fe,he){for(var me=0;me<ie.length;++me){var De=ie[me],Ve=!0;if(De.ranges){De.copied||(De=ie[me]=De.deepCopy(),De.copied=!0);for(var Xe=0;Xe<De.ranges.length;Xe++)vc(De.ranges[Xe].anchor,ae,fe,he),vc(De.ranges[Xe].head,ae,fe,he);continue}for(var Oe=0;Oe<De.changes.length;++Oe){var qe=De.changes[Oe];if(fe<qe.from.line)qe.from=Ft(qe.from.line+he,qe.from.ch),qe.to=Ft(qe.to.line+he,qe.to.ch);else if(ae<=qe.to.line){Ve=!1;break}}Ve||(ie.splice(0,me+1),me=0)}}function Qd(ie,ae){var fe=ae.from.line,he=ae.to.line,me=ae.text.length-(he-fe)-1;Mh(ie.done,fe,he,me),Mh(ie.undone,fe,he,me)}function ud(ie,ae,fe,he){var me=ae,De=ae;return typeof ae=="number"?De=Ti(ie,qn(ie,ae)):me=Ot(ae),me==null?null:(he(De,me)&&ie.cm&&Da(ie.cm,me,fe),De)}function Id(ie){this.lines=ie,this.parent=null;for(var ae=0,fe=0;fe<ie.length;++fe)ie[fe].parent=this,ae+=ie[fe].height;this.height=ae}Id.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var fe=ie,he=ie+ae;fe<he;++fe){var me=this.lines[fe];this.height-=me.height,nl(me),ao(me,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,fe){this.height+=fe,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var he=0;he<ae.length;++he)ae[he].parent=this},iterN:function(ie,ae,fe){for(var he=ie+ae;ie<he;++ie)if(fe(this.lines[ie]))return!0}};function bl(ie){this.children=ie;for(var ae=0,fe=0,he=0;he<ie.length;++he){var me=ie[he];ae+=me.chunkSize(),fe+=me.height,me.parent=this}this.size=ae,this.height=fe,this.parent=null}bl.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var fe=0;fe<this.children.length;++fe){var he=this.children[fe],me=he.chunkSize();if(ie<me){var De=Math.min(ae,me-ie),Ve=he.height;if(he.removeInner(ie,De),this.height-=Ve-he.height,me==De&&(this.children.splice(fe--,1),he.parent=null),(ae-=De)==0)break;ie=0}else ie-=me}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Id))){var Xe=[];this.collapse(Xe),this.children=[new Id(Xe)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,fe){this.size+=ae.length,this.height+=fe;for(var he=0;he<this.children.length;++he){var me=this.children[he],De=me.chunkSize();if(ie<=De){if(me.insertInner(ie,ae,fe),me.lines&&me.lines.length>50){for(var Ve=me.lines.length%25+25,Xe=Ve;Xe<me.lines.length;){var Oe=new Id(me.lines.slice(Xe,Xe+=25));me.height-=Oe.height,this.children.splice(++he,0,Oe),Oe.parent=this}me.lines=me.lines.slice(0,Ve),this.maybeSpill()}break}ie-=De}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),fe=new bl(ae);if(ie.parent){ie.size-=fe.size,ie.height-=fe.height;var me=mn(ie.parent.children,ie);ie.parent.children.splice(me+1,0,fe)}else{var he=new bl(ie.children);he.parent=ie,ie.children=[he,fe],ie=he}fe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,fe){for(var he=0;he<this.children.length;++he){var me=this.children[he],De=me.chunkSize();if(ie<De){var Ve=Math.min(ae,De-ie);if(me.iterN(ie,Ve,fe))return!0;if((ae-=Ve)==0)break;ie=0}else ie-=De}}};var Oc=function(ie,ae,fe){if(fe)for(var he in fe)fe.hasOwnProperty(he)&&(this[he]=fe[he]);this.doc=ie,this.node=ae};Oc.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,fe=this.line,he=Ot(fe);if(!(he==null||!ae)){for(var me=0;me<ae.length;++me)ae[me]==this&&ae.splice(me--,1);ae.length||(fe.widgets=null);var De=Bu(this);di(fe,Math.max(0,fe.height-De)),ie&&(va(ie,function(){kh(ie,fe,-De),Da(ie,he,"widget")}),ao(ie,"lineWidgetCleared",ie,this,he))}},Oc.prototype.changed=function(){var ie=this,ae=this.height,fe=this.doc.cm,he=this.line;this.height=null;var me=Bu(this)-ae;me&&(oi(this.doc,he)||di(he,he.height+me),fe&&va(fe,function(){fe.curOp.forceUpdate=!0,kh(fe,he,me),ao(fe,"lineWidgetChanged",fe,ie,Ot(he))}))},In(Oc);function kh(ie,ae,fe){qa(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&lo(ie,fe)}function nt(ie,ae,fe,he){var me=new Oc(ie,fe,he),De=ie.cm;return De&&me.noHScroll&&(De.display.alignWidgets=!0),ud(ie,ae,"widget",function(Ve){var Xe=Ve.widgets||(Ve.widgets=[]);if(me.insertAt==null?Xe.push(me):Xe.splice(Math.min(Xe.length-1,Math.max(0,me.insertAt)),0,me),me.line=Ve,De&&!oi(ie,Ve)){var Oe=qa(Ve)<ie.scrollTop;di(Ve,Ve.height+Bu(me)),Oe&&lo(De,me.height),De.curOp.forceUpdate=!0}return!0}),De&&ao(De,"lineWidgetAdded",De,me,typeof ae=="number"?ae:Ot(ae)),me}var ut=0,Ne=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++ut};Ne.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&Vs(ie),Bn(this,"clear")){var fe=this.find();fe&&ao(this,"clear",fe.from,fe.to)}for(var he=null,me=null,De=0;De<this.lines.length;++De){var Ve=this.lines[De],Xe=Or(Ve.markedSpans,this);ie&&!this.collapsed?Da(ie,Ot(Ve),"text"):ie&&(Xe.to!=null&&(me=Ot(Ve)),Xe.from!=null&&(he=Ot(Ve))),Ve.markedSpans=ur(Ve.markedSpans,Xe),Xe.from==null&&this.collapsed&&!oi(this.doc,Ve)&&ie&&di(Ve,Dc(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Oe=0;Oe<this.lines.length;++Oe){var qe=Ro(this.lines[Oe]),Rt=tl(qe);Rt>ie.display.maxLineLength&&(ie.display.maxLine=qe,ie.display.maxLineLength=Rt,ie.display.maxLineChanged=!0)}he!=null&&ie&&this.collapsed&&Qs(ie,he,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&ra(ie.doc)),ie&&ao(ie,"markerCleared",ie,this,he,me),ae&&hl(ie),this.parent&&this.parent.clear()}},Ne.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var fe,he,me=0;me<this.lines.length;++me){var De=this.lines[me],Ve=Or(De.markedSpans,this);if(Ve.from!=null&&(fe=Ft(ae?De:Ot(De),Ve.from),ie==-1))return fe;if(Ve.to!=null&&(he=Ft(ae?De:Ot(De),Ve.to),ie==1))return he}return fe&&{from:fe,to:he}},Ne.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),fe=this,he=this.doc.cm;!ae||!he||va(he,function(){var me=ae.line,De=Ot(ae.line),Ve=ol(he,De);if(Ve&&(hf(Ve),he.curOp.selectionChanged=he.curOp.forceUpdate=!0),he.curOp.updateMaxLine=!0,!oi(fe.doc,me)&&fe.height!=null){var Xe=fe.height;fe.height=null;var Oe=Bu(fe)-Xe;Oe&&di(me,me.height+Oe)}ao(he,"markerChanged",he,ie)})},Ne.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||mn(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Ne.prototype.detachLine=function(ie){if(this.lines.splice(mn(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},In(Ne);function En(ie,ae,fe,he,me){if(he&&he.shared)return er(ie,ae,fe,he,me);if(ie.cm&&!ie.cm.curOp)return As(ie.cm,En)(ie,ae,fe,he,me);var De=new Ne(ie,me),Ve=bt(ae,fe);if(he&&ui(he,De,!1),Ve>0||Ve==0&&De.clearWhenEmpty!==!1)return De;if(De.replacedWith&&(De.collapsed=!0,De.widgetNode=Kt("span",[De.replacedWith],"CodeMirror-widget"),he.handleMouseEvents||De.widgetNode.setAttribute("cm-ignore-events","true"),he.insertLeft&&(De.widgetNode.insertLeft=!0)),De.collapsed){if(Ps(ie,ae.line,ae,fe,De)||ae.line!=fe.line&&Ps(ie,fe.line,ae,fe,De))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tn()}De.addToHistory&&sl(ie,{from:ae,to:fe,origin:"markText"},ie.sel,NaN);var Xe=ae.line,Oe=ie.cm,qe;if(ie.iter(Xe,fe.line+1,function(gt){Oe&&De.collapsed&&!Oe.options.lineWrapping&&Ro(gt)==Oe.display.maxLine&&(qe=!0),De.collapsed&&Xe!=ae.line&&di(gt,0),ko(gt,new zr(De,Xe==ae.line?ae.ch:null,Xe==fe.line?fe.ch:null)),++Xe}),De.collapsed&&ie.iter(ae.line,fe.line+1,function(gt){oi(ie,gt)&&di(gt,0)}),De.clearOnEnter&&st(De,"beforeCursorEnter",function(){return De.clear()}),De.readOnly&&(Jr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),De.collapsed&&(De.id=++ut,De.atomic=!0),Oe){if(qe&&(Oe.curOp.updateMaxLine=!0),De.collapsed)Qs(Oe,ae.line,fe.line+1);else if(De.className||De.startStyle||De.endStyle||De.css||De.attributes||De.title)for(var Rt=ae.line;Rt<=fe.line;Rt++)Da(Oe,Rt,"text");De.atomic&&ra(Oe.doc),ao(Oe,"markerAdded",Oe,De)}return De}var pi=function(ie,ae){this.markers=ie,this.primary=ae;for(var fe=0;fe<ie.length;++fe)ie[fe].parent=this};pi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();ao(this,"clear")}},pi.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},In(pi);function er(ie,ae,fe,he,me){he=ui(he),he.shared=!1;var De=[En(ie,ae,fe,he,me)],Ve=De[0],Xe=he.widgetNode;return au(ie,function(Oe){Xe&&(he.widgetNode=Xe.cloneNode(!0)),De.push(En(Oe,Wi(Oe,ae),Wi(Oe,fe),he,me));for(var qe=0;qe<Oe.linked.length;++qe)if(Oe.linked[qe].isParent)return;Ve=mt(De)}),new pi(De,Ve)}function Qi(ie){return ie.findMarks(Ft(ie.first,0),ie.clipPos(Ft(ie.lastLine())),function(ae){return ae.parent})}function bi(ie,ae){for(var fe=0;fe<ae.length;fe++){var he=ae[fe],me=he.find(),De=ie.clipPos(me.from),Ve=ie.clipPos(me.to);if(bt(De,Ve)){var Xe=En(ie,De,Ve,he.primary,he.primary.type);he.markers.push(Xe),Xe.parent=he}}}function bn(ie){for(var ae=function(he){var me=ie[he],De=[me.primary.doc];au(me.primary.doc,function(Oe){return De.push(Oe)});for(var Ve=0;Ve<me.markers.length;Ve++){var Xe=me.markers[Ve];mn(De,Xe.doc)==-1&&(Xe.parent=null,me.markers.splice(Ve--,1))}},fe=0;fe<ie.length;fe++)ae(fe)}var Li=0,xr=function(ie,ae,fe,he,me){if(!(this instanceof xr))return new xr(ie,ae,fe,he,me);fe==null&&(fe=0),bl.call(this,[new Id([new sa("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var De=Ft(fe,0);this.sel=ru(De),this.history=new pc(null),this.id=++Li,this.modeOption=ae,this.lineSep=he,this.direction=me=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Uu(this,{from:De,to:De,text:ie}),fu(this,ru(De),nn)};xr.prototype=Dn(bl.prototype,{constructor:xr,iter:function(ie,ae,fe){fe?this.iterN(ie-this.first,ae-ie,fe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var fe=0,he=0;he<ae.length;++he)fe+=ae[he].height;this.insertInner(ie-this.first,ae,fe)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=_r(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:_s(function(ie){var ae=Ft(this.first,0),fe=this.first+this.size-1;ic(this,{from:ae,to:Ft(fe,Ti(this,fe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Pr(this.cm,0,0),fu(this,ru(ae),nn)}),replaceRange:function(ie,ae,fe,he){ae=Wi(this,ae),fe=fe?Wi(this,fe):ae,rc(this,ie,ae,fe,he)},getRange:function(ie,ae,fe){var he=qr(this,Wi(this,ie),Wi(this,ae));return fe===!1?he:he.join(fe||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(xn(this,ie))return Ti(this,ie)},getLineNumber:function(ie){return Ot(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Ti(this,ie)),Ro(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Wi(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),fe;return ie==null||ie=="head"?fe=ae.head:ie=="anchor"?fe=ae.anchor:ie=="end"||ie=="to"||ie===!1?fe=ae.to():fe=ae.from(),fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_s(function(ie,ae,fe){nc(this,Wi(this,typeof ie=="number"?Ft(ie,ae||0):ie),null,fe)}),setSelection:_s(function(ie,ae,fe){nc(this,Wi(this,ie),Wi(this,ae||ie),fe)}),extendSelection:_s(function(ie,ae,fe){Td(this,Wi(this,ie),ae&&Wi(this,ae),fe)}),extendSelections:_s(function(ie,ae){Xh(this,no(this,ie),ae)}),extendSelectionsBy:_s(function(ie,ae){var fe=ht(this.sel.ranges,ie);Xh(this,no(this,fe),ae)}),setSelections:_s(function(ie,ae,fe){if(ie.length){for(var he=[],me=0;me<ie.length;me++)he[me]=new Xa(Wi(this,ie[me].anchor),Wi(this,ie[me].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),fu(this,Il(this.cm,he,ae),fe)}}),addSelection:_s(function(ie,ae,fe){var he=this.sel.ranges.slice(0);he.push(new Xa(Wi(this,ie),Wi(this,ae||ie))),fu(this,Il(this.cm,he,he.length-1),fe)}),getSelection:function(ie){for(var ae=this.sel.ranges,fe,he=0;he<ae.length;he++){var me=qr(this,ae[he].from(),ae[he].to());fe=fe?fe.concat(me):me}return ie===!1?fe:fe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],fe=this.sel.ranges,he=0;he<fe.length;he++){var me=qr(this,fe[he].from(),fe[he].to());ie!==!1&&(me=me.join(ie||this.lineSeparator())),ae[he]=me}return ae},replaceSelection:function(ie,ae,fe){for(var he=[],me=0;me<this.sel.ranges.length;me++)he[me]=ie;this.replaceSelections(he,ae,fe||"+input")},replaceSelections:_s(function(ie,ae,fe){for(var he=[],me=this.sel,De=0;De<me.ranges.length;De++){var Ve=me.ranges[De];he[De]={from:Ve.from(),to:Ve.to(),text:this.splitLines(ie[De]),origin:fe}}for(var Xe=ae&&ae!="end"&&Pu(this,he,ae),Oe=he.length-1;Oe>=0;Oe--)ic(this,he[Oe]);Xe?Xd(this,Xe):this.cm&&co(this.cm)}),undo:_s(function(){Tc(this,"undo")}),redo:_s(function(){Tc(this,"redo")}),undoSelection:_s(function(){Tc(this,"undo",!0)}),redoSelection:_s(function(){Tc(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,fe=0,he=0;he<ie.done.length;he++)ie.done[he].ranges||++ae;for(var me=0;me<ie.undone.length;me++)ie.undone[me].ranges||++fe;return{undo:ae,redo:fe}},clearHistory:function(){var ie=this;this.history=new pc(this.history.maxGeneration),au(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:ec(this.history.done),undone:ec(this.history.undone)}},setHistory:function(ie){var ae=this.history=new pc(this.history.maxGeneration);ae.done=ec(ie.done.slice(0),null,!0),ae.undone=ec(ie.undone.slice(0),null,!0)},setGutterMarker:_s(function(ie,ae,fe){return ud(this,ie,"gutter",function(he){var me=he.gutterMarkers||(he.gutterMarkers={});return me[ae]=fe,!fe&&Di(me)&&(he.gutterMarkers=null),!0})}),clearGutter:_s(function(ie){var ae=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[ie]&&ud(ae,fe,"gutter",function(){return fe.gutterMarkers[ie]=null,Di(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!xn(this,ie)||(ae=ie,ie=Ti(this,ie),!ie))return null}else if(ae=Ot(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:_s(function(ie,ae,fe){return ud(this,ie,ae=="gutter"?"gutter":"class",function(he){var me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!he[me])he[me]=fe;else{if(Me(fe).test(he[me]))return!1;he[me]+=" "+fe}return!0})}),removeLineClass:_s(function(ie,ae,fe){return ud(this,ie,ae=="gutter"?"gutter":"class",function(he){var me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",De=he[me];if(De)if(fe==null)he[me]=null;else{var Ve=De.match(Me(fe));if(!Ve)return!1;var Xe=Ve.index+Ve[0].length;he[me]=De.slice(0,Ve.index)+(!Ve.index||Xe==De.length?"":" ")+De.slice(Xe)||null}else return!1;return!0})}),addLineWidget:_s(function(ie,ae,fe){return nt(this,ie,ae,fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,fe){return En(this,Wi(this,ie),Wi(this,ae),fe,fe&&fe.type||"range")},setBookmark:function(ie,ae){var fe={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Wi(this,ie),En(this,ie,ie,fe,"bookmark")},findMarksAt:function(ie){ie=Wi(this,ie);var ae=[],fe=Ti(this,ie.line).markedSpans;if(fe)for(var he=0;he<fe.length;++he){var me=fe[he];(me.from==null||me.from<=ie.ch)&&(me.to==null||me.to>=ie.ch)&&ae.push(me.marker.parent||me.marker)}return ae},findMarks:function(ie,ae,fe){ie=Wi(this,ie),ae=Wi(this,ae);var he=[],me=ie.line;return this.iter(ie.line,ae.line+1,function(De){var Ve=De.markedSpans;if(Ve)for(var Xe=0;Xe<Ve.length;Xe++){var Oe=Ve[Xe];!(Oe.to!=null&&me==ie.line&&ie.ch>=Oe.to||Oe.from==null&&me!=ie.line||Oe.from!=null&&me==ae.line&&Oe.from>=ae.ch)&&(!fe||fe(Oe.marker))&&he.push(Oe.marker.parent||Oe.marker)}++me}),he},getAllMarks:function(){var ie=[];return this.iter(function(ae){var fe=ae.markedSpans;if(fe)for(var he=0;he<fe.length;++he)fe[he].from!=null&&ie.push(fe[he].marker)}),ie},posFromIndex:function(ie){var ae,fe=this.first,he=this.lineSeparator().length;return this.iter(function(me){var De=me.text.length+he;if(De>ie)return ae=ie,!0;ie-=De,++fe}),Wi(this,Ft(fe,ae))},indexFromPos:function(ie){ie=Wi(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var fe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(he){ae+=he.text.length+fe}),ae},copy:function(ie){var ae=new xr(_r(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,fe=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<fe&&(fe=ie.to);var he=new xr(_r(this,ae,fe),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(he.history=this.history),(this.linked||(this.linked=[])).push({doc:he,sharedHist:ie.sharedHist}),he.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],bi(he,Qi(this)),he},unlinkDoc:function(ie){if(ie instanceof Bs&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var fe=this.linked[ae];if(fe.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),bn(Qi(this));break}}if(ie.history==this.history){var he=[ie.id];au(ie,function(me){return he.push(me.id)},!0),ie.history=new pc(null),ie.history.done=ec(this.history.done,he),ie.history.undone=ec(this.history.undone,he)}},iterLinkedDocs:function(ie){au(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Tr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:_s(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Yd(this.cm))})}),xr.prototype.eachLine=xr.prototype.iter;var wo=0;function Lr(ie){var ae=this;if(ga(ae),!(Xt(ae,ie)||us(ae.display,ie))){Yi(ie),Dt&&(wo=+new Date);var fe=zl(ae,ie,!0),he=ie.dataTransfer.files;if(!(!fe||ae.isReadOnly()))if(he&&he.length&&window.FileReader&&window.File)for(var me=he.length,De=Array(me),Ve=0,Xe=function(){++Ve==me&&As(ae,function(){fe=Wi(ae.doc,fe);var fn={from:fe,to:fe,text:ae.doc.splitLines(De.filter(function(Ci){return Ci!=null}).join(ae.doc.lineSeparator())),origin:"paste"};ic(ae.doc,fn),Xd(ae.doc,ru(Wi(ae.doc,fe),Wi(ae.doc,Sl(fn))))})()},Oe=function(fn,Ci){if(ae.options.allowDropFileTypes&&mn(ae.options.allowDropFileTypes,fn.type)==-1){Xe();return}var Bi=new FileReader;Bi.onerror=function(){return Xe()},Bi.onload=function(){var nr=Bi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nr)){Xe();return}De[Ci]=nr,Xe()},Bi.readAsText(fn)},qe=0;qe<he.length;qe++)Oe(he[qe],qe);else{if(ae.state.draggingText&&ae.doc.sel.contains(fe)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var Rt=ie.dataTransfer.getData("Text");if(Rt){var gt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(gt=ae.listSelections()),Vc(ae.doc,ru(fe,fe)),gt)for(var Pn=0;Pn<gt.length;++Pn)rc(ae.doc,"",gt[Pn].anchor,gt[Pn].head,"drag");ae.replaceSelection(Rt,"around","paste"),ae.display.input.focus()}}catch(fn){}}}}function so(ie,ae){if(Dt&&(!ie.state.draggingText||+new Date-wo<100)){io(ae);return}if(!(Xt(ie,ae)||us(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!xt)){var fe=vt("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Et&&(fe.width=fe.height=1,ie.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),ae.dataTransfer.setDragImage(fe,0,0),Et&&fe.parentNode.removeChild(fe)}}function Wr(ie,ae){var fe=zl(ie,ae);if(fe){var he=document.createDocumentFragment();vn(ie,fe,he),ie.display.dragCursor||(ie.display.dragCursor=vt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),yt(ie.display.dragCursor,he)}}function ga(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function kr(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),fe=[],he=0;he<ae.length;he++){var me=ae[he].CodeMirror;me&&fe.push(me)}fe.length&&fe[0].operation(function(){for(var De=0;De<fe.length;De++)ie(fe[De])})}}var mr=!1;function Zo(){mr||(Yo(),mr=!0)}function Yo(){var ie;st(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,kr(Co)},100))}),st(window,"blur",function(){return kr(ji)})}function Co(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var To={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"},Ar=0;Ar<10;Ar++)To[Ar+48]=To[Ar+96]=String(Ar);for(var vr=65;vr<=90;vr++)To[vr]=String.fromCharCode(vr);for(var Oo=1;Oo<=12;Oo++)To[Oo+111]=To[Oo+63235]="F"+Oo;var Fr={};Fr.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"},Fr.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"},Fr.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"},Fr.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"]},Fr.default=de?Fr.macDefault:Fr.pcDefault;function po(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var fe,he,me,De,Ve=0;Ve<ae.length-1;Ve++){var Xe=ae[Ve];if(/^(cmd|meta|m)$/i.test(Xe))De=!0;else if(/^a(lt)?$/i.test(Xe))fe=!0;else if(/^(c|ctrl|control)$/i.test(Xe))he=!0;else if(/^s(hift)?$/i.test(Xe))me=!0;else throw new Error("Unrecognized modifier name: "+Xe)}return fe&&(ie="Alt-"+ie),he&&(ie="Ctrl-"+ie),De&&(ie="Cmd-"+ie),me&&(ie="Shift-"+ie),ie}function xo(ie){var ae={};for(var fe in ie)if(ie.hasOwnProperty(fe)){var he=ie[fe];if(/^(name|fallthrough|(de|at)tach)$/.test(fe))continue;if(he=="..."){delete ie[fe];continue}for(var me=ht(fe.split(" "),po),De=0;De<me.length;De++){var Ve=void 0,Xe=void 0;De==me.length-1?(Xe=me.join(" "),Ve=he):(Xe=me.slice(0,De+1).join(" "),Ve="...");var Oe=ae[Xe];if(!Oe)ae[Xe]=Ve;else if(Oe!=Ve)throw new Error("Inconsistent bindings for "+Xe)}delete ie[fe]}for(var qe in ae)ie[qe]=ae[qe];return ie}function Uo(ie,ae,fe,he){ae=la(ae);var me=ae.call?ae.call(ie,he):ae[ie];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&fe(me))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Uo(ie,ae.fallthrough,fe,he);for(var De=0;De<ae.fallthrough.length;De++){var Ve=Uo(ie,ae.fallthrough[De],fe,he);if(Ve)return Ve}}}function Si(ie){var ae=typeof ie=="string"?ie:To[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function fr(ie,ae,fe){var he=ie;return ae.altKey&&he!="Alt"&&(ie="Alt-"+ie),(Ae?ae.metaKey:ae.ctrlKey)&&he!="Ctrl"&&(ie="Ctrl-"+ie),(Ae?ae.ctrlKey:ae.metaKey)&&he!="Mod"&&(ie="Cmd-"+ie),!fe&&ae.shiftKey&&he!="Shift"&&(ie="Shift-"+ie),ie}function ms(ie,ae){if(Et&&ie.keyCode==34&&ie.char)return!1;var fe=To[ie.keyCode];return fe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(fe=ie.code),fr(fe,ie,ae))}function la(ie){return typeof ie=="string"?Fr[ie]:ie}function Vr(ie,ae){for(var fe=ie.doc.sel.ranges,he=[],me=0;me<fe.length;me++){for(var De=ae(fe[me]);he.length&&bt(De.from,mt(he).to)<=0;){var Ve=he.pop();if(bt(Ve.from,De.from)<0){De.from=Ve.from;break}}he.push(De)}va(ie,function(){for(var Xe=he.length-1;Xe>=0;Xe--)rc(ie.doc,"",he[Xe].from,he[Xe].to,"+delete");co(ie)})}function No(ie,ae,fe){var he=Pt(ie.text,ae+fe,fe);return he<0||he>ie.text.length?null:he}function Wo(ie,ae,fe){var he=No(ie,ae.ch,fe);return he==null?null:new Ft(ae.line,he,fe<0?"after":"before")}function mo(ie,ae,fe,he,me){if(ie){ae.doc.direction=="rtl"&&(me=-me);var De=Ke(fe,ae.doc.direction);if(De){var Ve=me<0?mt(De):De[0],Xe=me<0==(Ve.level==1),Oe=Xe?"after":"before",qe;if(Ve.level>0||ae.doc.direction=="rtl"){var Rt=ul(ae,fe);qe=me<0?fe.text.length-1:0;var gt=fc(ae,Rt,qe).top;qe=_t(function(Pn){return fc(ae,Rt,Pn).top==gt},me<0==(Ve.level==1)?Ve.from:Ve.to-1,qe),Oe=="before"&&(qe=No(fe,qe,1))}else qe=me<0?Ve.to:Ve.from;return new Ft(he,qe,Oe)}}return new Ft(he,me<0?fe.text.length:0,me<0?"before":"after")}function Sa(ie,ae,fe,he){var me=Ke(ae,ie.doc.direction);if(!me)return Wo(ae,fe,he);fe.ch>=ae.text.length?(fe.ch=ae.text.length,fe.sticky="before"):fe.ch<=0&&(fe.ch=0,fe.sticky="after");var De=Ee(me,fe.ch,fe.sticky),Ve=me[De];if(ie.doc.direction=="ltr"&&Ve.level%2==0&&(he>0?Ve.to>fe.ch:Ve.from<fe.ch))return Wo(ae,fe,he);var Xe=function(pr,hr){return No(ae,pr instanceof Ft?pr.ch:pr,hr)},Oe,qe=function(pr){return ie.options.lineWrapping?(Oe=Oe||ul(ie,ae),Nd(ie,ae,Oe,pr)):{begin:0,end:ae.text.length}},Rt=qe(fe.sticky=="before"?Xe(fe,-1):fe.ch);if(ie.doc.direction=="rtl"||Ve.level==1){var gt=Ve.level==1==he<0,Pn=Xe(fe,gt?1:-1);if(Pn!=null&&(gt?Pn<=Ve.to&&Pn<=Rt.end:Pn>=Ve.from&&Pn>=Rt.begin)){var fn=gt?"before":"after";return new Ft(fe.line,Pn,fn)}}var Ci=function(pr,hr,Dr){for(var vo=function(rs,Ql){return Ql?new Ft(fe.line,Xe(rs,1),"before"):new Ft(fe.line,rs,"after")};pr>=0&&pr<me.length;pr+=hr){var Qo=me[pr],Kr=hr>0==(Qo.level!=1),ka=Kr?Dr.begin:Xe(Dr.end,-1);if(Qo.from<=ka&&ka<Qo.to||(ka=Kr?Qo.from:Xe(Qo.to,-1),Dr.begin<=ka&&ka<Dr.end))return vo(ka,Kr)}},Bi=Ci(De+he,he,Rt);if(Bi)return Bi;var nr=he>0?Rt.end:Xe(Rt.begin,-1);return nr!=null&&!(he>0&&nr==ae.text.length)&&(Bi=Ci(he>0?0:me.length-1,he,qe(nr)),Bi)?Bi:null}var Ka={selectAll:Rl,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),nn)},killLine:function(ie){return Vr(ie,function(ae){if(ae.empty()){var fe=Ti(ie.doc,ae.head.line).text.length;return ae.head.ch==fe&&ae.head.line<ie.lastLine()?{from:ae.head,to:Ft(ae.head.line+1,0)}:{from:ae.head,to:Ft(ae.head.line,fe)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return Vr(ie,function(ae){return{from:Ft(ae.from().line,0),to:Wi(ie.doc,Ft(ae.to().line+1,0))}})},delLineLeft:function(ie){return Vr(ie,function(ae){return{from:Ft(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return Vr(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,he=ie.coordsChar({left:0,top:fe},"div");return{from:he,to:ae.from()}})},delWrappedLineRight:function(ie){return Vr(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,he=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div");return{from:ae.from(),to:he}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(Ft(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Ft(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return ts(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return ns(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return as(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div")},Ln)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:fe},"div")},Ln)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5,he=ie.coordsChar({left:0,top:fe},"div");return he.ch<ie.getLine(he.line).search(/\S/)?ns(ie,ae.head):he},Ln)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],fe=ie.listSelections(),he=ie.options.tabSize,me=0;me<fe.length;me++){var De=fe[me].from(),Ve=tt(ie.getLine(De.line),De.ch,he);ae.push(Ai(he-Ve%he))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return va(ie,function(){for(var ae=ie.listSelections(),fe=[],he=0;he<ae.length;he++)if(ae[he].empty()){var me=ae[he].head,De=Ti(ie.doc,me.line).text;if(De){if(me.ch==De.length&&(me=new Ft(me.line,me.ch-1)),me.ch>0)me=new Ft(me.line,me.ch+1),ie.replaceRange(De.charAt(me.ch-1)+De.charAt(me.ch-2),Ft(me.line,me.ch-2),me,"+transpose");else if(me.line>ie.doc.first){var Ve=Ti(ie.doc,me.line-1).text;Ve&&(me=new Ft(me.line,1),ie.replaceRange(De.charAt(0)+ie.doc.lineSeparator()+Ve.charAt(Ve.length-1),Ft(me.line-1,Ve.length-1),me,"+transpose"))}}fe.push(new Xa(me,me))}ie.setSelections(fe)})},newlineAndIndent:function(ie){return va(ie,function(){for(var ae=ie.listSelections(),fe=ae.length-1;fe>=0;fe--)ie.replaceRange(ie.doc.lineSeparator(),ae[fe].anchor,ae[fe].head,"+input");ae=ie.listSelections();for(var he=0;he<ae.length;he++)ie.indentLine(ae[he].from().line,null,!0);co(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function ts(ie,ae){var fe=Ti(ie.doc,ae),he=Ro(fe);return he!=fe&&(ae=Ot(he)),mo(!0,ie,he,ae,1)}function as(ie,ae){var fe=Ti(ie.doc,ae),he=Ho(fe);return he!=fe&&(ae=Ot(he)),mo(!0,ie,fe,ae,-1)}function ns(ie,ae){var fe=ts(ie,ae.line),he=Ti(ie.doc,fe.line),me=Ke(he,ie.doc.direction);if(!me||me[0].level==0){var De=Math.max(fe.ch,he.text.search(/\S/)),Ve=ae.line==fe.line&&ae.ch<=De&&ae.ch;return Ft(fe.line,Ve?0:De,fe.sticky)}return fe}function Ur(ie,ae,fe){if(typeof ae=="string"&&(ae=Ka[ae],!ae))return!1;ie.display.input.ensurePolled();var he=ie.display.shift,me=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),fe&&(ie.display.shift=!1),me=ae(ie)!=Qn}finally{ie.display.shift=he,ie.state.suppressEdits=!1}return me}function xa(ie,ae,fe){for(var he=0;he<ie.state.keyMaps.length;he++){var me=Uo(ae,ie.state.keyMaps[he],fe,ie);if(me)return me}return ie.options.extraKeys&&Uo(ae,ie.options.extraKeys,fe,ie)||Uo(ae,ie.options.keyMap,fe,ie)}var Ma=new He;function Ko(ie,ae,fe,he){var me=ie.state.keySeq;if(me){if(Si(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Ma.set(50,function(){ie.state.keySeq==me&&(ie.state.keySeq=null,ie.display.input.reset())}),Os(ie,me+" "+ae,fe,he))return!0}return Os(ie,ae,fe,he)}function Os(ie,ae,fe,he){var me=xa(ie,ae,he);return me=="multi"&&(ie.state.keySeq=ae),me=="handled"&&ao(ie,"keyHandled",ie,ae,fe),(me=="handled"||me=="multi")&&(Yi(fe),Jn(ie)),!!me}function hs(ie,ae){var fe=ms(ae,!0);return fe?ae.shiftKey&&!ie.state.keySeq?Ko(ie,"Shift-"+fe,ae,function(he){return Ur(ie,he,!0)})||Ko(ie,fe,ae,function(he){if(typeof he=="string"?/^go[A-Z]/.test(he):he.motion)return Ur(ie,he)}):Ko(ie,fe,ae,function(he){return Ur(ie,he)}):!1}function Ys(ie,ae,fe){return Ko(ie,"'"+fe+"'",ae,function(he){return Ur(ie,he,!0)})}var Zs=null;function Jl(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Yt(),!Xt(ae,ie))){Dt&&jt<11&&ie.keyCode==27&&(ie.returnValue=!1);var fe=ie.keyCode;ae.display.shift=fe==16||ie.shiftKey;var he=hs(ae,ie);Et&&(Zs=he?fe:null,!he&&fe==88&&!ua&&(de?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ce&&!de&&!he&&fe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&$r(ae)}}function $r(ie){var ae=ie.display.lineDiv;yn(ae,"CodeMirror-crosshair");function fe(he){(he.keyCode==18||!he.altKey)&&(ot(ae,"CodeMirror-crosshair"),sn(document,"keyup",fe),sn(document,"mouseover",fe))}st(document,"keyup",fe),st(document,"mouseover",fe)}function Wa(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Xt(this,ie)}function Is(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(us(ae.display,ie)||Xt(ae,ie)||ie.ctrlKey&&!ie.altKey||de&&ie.metaKey)){var fe=ie.keyCode,he=ie.charCode;if(Et&&fe==Zs){Zs=null,Yi(ie);return}if(!(Et&&(!ie.which||ie.which<10)&&hs(ae,ie))){var me=String.fromCharCode(he==null?fe:he);me!="\b"&&(Ys(ae,ie,me)||ae.display.input.onKeyPress(ie))}}}var Hl=400,ha=function(ie,ae,fe){this.time=ie,this.pos=ae,this.button=fe};ha.prototype.compare=function(ie,ae,fe){return this.time+Hl>ie&&bt(ae,this.pos)==0&&fe==this.button};var ta,qi;function is(ie,ae){var fe=+new Date;return qi&&qi.compare(fe,ie,ae)?(ta=qi=null,"triple"):ta&&ta.compare(fe,ie,ae)?(qi=new ha(fe,ie,ae),ta=null,"double"):(ta=new ha(fe,ie,ae),qi=null,"single")}function bs(ie){var ae=this,fe=ae.display;if(!(Xt(ae,ie)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=ie.shiftKey,us(fe,ie)){Ge||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!na(ae,ie)){var he=zl(ae,ie),me=bo(ie),De=he?is(he,me):"single";window.focus(),me==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(he&&ss(ae,me,he,De,ie))&&(me==1?he?oa(ae,he,De,ie):jo(ie)==fe.scroller&&Yi(ie):me==2?(he&&Td(ae.doc,he),setTimeout(function(){return fe.input.focus()},20)):me==3&&(ke?ae.display.input.onContextMenu(ie):Ki(ae)))}}}function ss(ie,ae,fe,he,me){var De="Click";return he=="double"?De="Double"+De:he=="triple"&&(De="Triple"+De),De=(ae==1?"Left":ae==2?"Middle":"Right")+De,Ko(ie,fr(De,me),me,function(Ve){if(typeof Ve=="string"&&(Ve=Ka[Ve]),!Ve)return!1;var Xe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Xe=Ve(ie,fe)!=Qn}finally{ie.state.suppressEdits=!1}return Xe})}function Do(ie,ae,fe){var he=ie.getOption("configureMouse"),me=he?he(ie,ae,fe):{};if(me.unit==null){var De=le?fe.shiftKey&&fe.metaKey:fe.altKey;me.unit=De?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(me.extend==null||ie.doc.extend)&&(me.extend=ie.doc.extend||fe.shiftKey),me.addNew==null&&(me.addNew=de?fe.metaKey:fe.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(de?fe.altKey:fe.ctrlKey)),me}function oa(ie,ae,fe,he){Dt?setTimeout(Nn(gi,ie),0):ie.curOp.focus=Yt();var me=Do(ie,fe,he),De=ie.doc.sel,Ve;ie.options.dragDrop&&Mr&&!ie.isReadOnly()&&fe=="single"&&(Ve=De.contains(ae))>-1&&(bt((Ve=De.ranges[Ve]).from(),ae)<0||ae.xRel>0)&&(bt(Ve.to(),ae)>0||ae.xRel<0)?Ga(ie,he,ae,me):pf(ie,he,ae,me)}function Ga(ie,ae,fe,he){var me=ie.display,De=!1,Ve=As(ie,function(qe){Ge&&(me.scroller.draggable=!1),ie.state.draggingText=!1,sn(me.wrapper.ownerDocument,"mouseup",Ve),sn(me.wrapper.ownerDocument,"mousemove",Xe),sn(me.scroller,"dragstart",Oe),sn(me.scroller,"drop",Ve),De||(Yi(qe),he.addNew||Td(ie.doc,fe,null,null,he.extend),Ge&&!xt||Dt&&jt==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),Xe=function(qe){De=De||Math.abs(ae.clientX-qe.clientX)+Math.abs(ae.clientY-qe.clientY)>=10},Oe=function(){return De=!0};Ge&&(me.scroller.draggable=!0),ie.state.draggingText=Ve,Ve.copy=!he.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),st(me.wrapper.ownerDocument,"mouseup",Ve),st(me.wrapper.ownerDocument,"mousemove",Xe),st(me.scroller,"dragstart",Oe),st(me.scroller,"drop",Ve),Ki(ie),setTimeout(function(){return me.input.focus()},20)}function El(ie,ae,fe){if(fe=="char")return new Xa(ae,ae);if(fe=="word")return ie.findWordAt(ae);if(fe=="line")return new Xa(Ft(ae.line,0),Wi(ie.doc,Ft(ae.line+1,0)));var he=fe(ie,ae);return new Xa(he.from,he.to)}function pf(ie,ae,fe,he){var me=ie.display,De=ie.doc;Yi(ae);var Ve,Xe,Oe=De.sel,qe=Oe.ranges;if(he.addNew&&!he.extend?(Xe=De.sel.contains(fe),Xe>-1?Ve=qe[Xe]:Ve=new Xa(fe,fe)):(Ve=De.sel.primary(),Xe=De.sel.primIndex),he.unit=="rectangle")he.addNew||(Ve=new Xa(fe,fe)),fe=zl(ie,ae,!0,!0),Xe=-1;else{var Rt=El(ie,fe,he.unit);he.extend?Ve=Ku(Ve,Rt.anchor,Rt.head,he.extend):Ve=Rt}he.addNew?Xe==-1?(Xe=qe.length,fu(De,Il(ie,qe.concat([Ve]),Xe),{scroll:!1,origin:"*mouse"})):qe.length>1&&qe[Xe].empty()&&he.unit=="char"&&!he.extend?(fu(De,Il(ie,qe.slice(0,Xe).concat(qe.slice(Xe+1)),0),{scroll:!1,origin:"*mouse"}),Oe=De.sel):tc(De,Xe,Ve,gn):(Xe=0,fu(De,new Ll([Ve],0),gn),Oe=De.sel);var gt=fe;function Pn(Dr){if(bt(gt,Dr)!=0)if(gt=Dr,he.unit=="rectangle"){for(var vo=[],Qo=ie.options.tabSize,Kr=tt(Ti(De,fe.line).text,fe.ch,Qo),ka=tt(Ti(De,Dr.line).text,Dr.ch,Qo),rs=Math.min(Kr,ka),Ql=Math.max(Kr,ka),pl=Math.min(fe.line,Dr.line),ac=Math.min(ie.lastLine(),Math.max(fe.line,Dr.line));pl<=ac;pl++){var _u=Ti(De,pl).text,mu=yi(_u,rs,Qo);rs==Ql?vo.push(new Xa(Ft(pl,mu),Ft(pl,mu))):_u.length>mu&&vo.push(new Xa(Ft(pl,mu),Ft(pl,yi(_u,Ql,Qo))))}vo.length||vo.push(new Xa(fe,fe)),fu(De,Il(ie,Oe.ranges.slice(0,Xe).concat(vo),Xe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Dr)}else{var sc=Ve,Wu=El(ie,Dr,he.unit),vu=sc.anchor,Mo;bt(Wu.anchor,vu)>0?(Mo=Wu.head,vu=Ni(sc.from(),Wu.anchor)):(Mo=Wu.anchor,vu=ki(sc.to(),Wu.head));var Ms=Oe.ranges.slice(0);Ms[Xe]=cs(ie,new Xa(Wi(De,vu),Mo)),fu(De,Il(ie,Ms,Xe),gn)}}var fn=me.wrapper.getBoundingClientRect(),Ci=0;function Bi(Dr){var vo=++Ci,Qo=zl(ie,Dr,!0,he.unit=="rectangle");if(Qo)if(bt(Qo,gt)!=0){ie.curOp.focus=Yt(),Pn(Qo);var Kr=Vn(me,De);(Qo.line>=Kr.to||Qo.line<Kr.from)&&setTimeout(As(ie,function(){Ci==vo&&Bi(Dr)}),150)}else{var ka=Dr.clientY<fn.top?-20:Dr.clientY>fn.bottom?20:0;ka&&setTimeout(As(ie,function(){Ci==vo&&(me.scroller.scrollTop+=ka,Bi(Dr))}),50)}}function nr(Dr){ie.state.selectingText=!1,Ci=1/0,Dr&&(Yi(Dr),me.input.focus()),sn(me.wrapper.ownerDocument,"mousemove",pr),sn(me.wrapper.ownerDocument,"mouseup",hr),De.history.lastSelOrigin=null}var pr=As(ie,function(Dr){Dr.buttons===0||!bo(Dr)?nr(Dr):Bi(Dr)}),hr=As(ie,nr);ie.state.selectingText=hr,st(me.wrapper.ownerDocument,"mousemove",pr),st(me.wrapper.ownerDocument,"mouseup",hr)}function cs(ie,ae){var fe=ae.anchor,he=ae.head,me=Ti(ie.doc,fe.line);if(bt(fe,he)==0&&fe.sticky==he.sticky)return ae;var De=Ke(me);if(!De)return ae;var Ve=Ee(De,fe.ch,fe.sticky),Xe=De[Ve];if(Xe.from!=fe.ch&&Xe.to!=fe.ch)return ae;var Oe=Ve+(Xe.from==fe.ch==(Xe.level!=1)?0:1);if(Oe==0||Oe==De.length)return ae;var qe;if(he.line!=fe.line)qe=(he.line-fe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Rt=Ee(De,he.ch,he.sticky),gt=Rt-Ve||(he.ch-fe.ch)*(Xe.level==1?-1:1);Rt==Oe-1||Rt==Oe?qe=gt<0:qe=gt>0}var Pn=De[Oe+(qe?-1:0)],fn=qe==(Pn.level==1),Ci=fn?Pn.from:Pn.to,Bi=fn?"after":"before";return fe.ch==Ci&&fe.sticky==Bi?ae:new Xa(new Ft(fe.line,Ci,Bi),he)}function Lo(ie,ae,fe,he){var me,De;if(ae.touches)me=ae.touches[0].clientX,De=ae.touches[0].clientY;else try{me=ae.clientX,De=ae.clientY}catch(Pn){return!1}if(me>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;he&&Yi(ae);var Ve=ie.display,Xe=Ve.lineDiv.getBoundingClientRect();if(De>Xe.bottom||!Bn(ie,fe))return ar(ae);De-=Xe.top-Ve.viewOffset;for(var Oe=0;Oe<ie.display.gutterSpecs.length;++Oe){var qe=Ve.gutters.childNodes[Oe];if(qe&&qe.getBoundingClientRect().right>=me){var Rt=Ii(ie.doc,De),gt=ie.display.gutterSpecs[Oe];return en(ie,fe,ie,Rt,gt.className,ae),ar(ae)}}}function na(ie,ae){return Lo(ie,ae,"gutterClick",!0)}function ds(ie,ae){us(ie.display,ae)||$s(ie,ae)||Xt(ie,ae,"contextmenu")||ke||ie.display.input.onContextMenu(ae)}function $s(ie,ae){return Bn(ie,"gutterContextMenu")?Lo(ie,ae,"gutterContextMenu",!1):!1}function Yu(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gc(ie)}var pu={toString:function(){return"CodeMirror.Init"}},oc={},yc={};function qd(ie){var ae=ie.optionHandlers;function fe(he,me,De,Ve){ie.defaults[he]=me,De&&(ae[he]=Ve?function(Xe,Oe,qe){qe!=pu&&De(Xe,Oe,qe)}:De)}ie.defineOption=fe,ie.Init=pu,fe("value","",function(he,me){return he.setValue(me)},!0),fe("mode",null,function(he,me){he.doc.modeOption=me,aa(he)},!0),fe("indentUnit",2,aa,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(he){Fs(he),gc(he),Qs(he)},!0),fe("lineSeparator",null,function(he,me){if(he.doc.lineSep=me,!!me){var De=[],Ve=he.doc.first;he.doc.iter(function(Oe){for(var qe=0;;){var Rt=Oe.text.indexOf(me,qe);if(Rt==-1)break;qe=Rt+me.length,De.push(Ft(Ve,Rt))}Ve++});for(var Xe=De.length-1;Xe>=0;Xe--)rc(he.doc,me,De[Xe],Ft(De[Xe].line,De[Xe].ch+me.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(he,me,De){he.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),De!=pu&&he.refresh()}),fe("specialCharPlaceholder",ys,function(he){return he.refresh()},!0),fe("electricChars",!0),fe("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),fe("spellcheck",!1,function(he,me){return he.getInputField().spellcheck=me},!0),fe("autocorrect",!1,function(he,me){return he.getInputField().autocorrect=me},!0),fe("autocapitalize",!1,function(he,me){return he.getInputField().autocapitalize=me},!0),fe("rtlMoveVisually",!pe),fe("wholeLineUpdateBefore",!0),fe("theme","default",function(he){Yu(he),fl(he)},!0),fe("keyMap","default",function(he,me,De){var Ve=la(me),Xe=De!=pu&&la(De);Xe&&Xe.detach&&Xe.detach(he,Ve),Ve.attach&&Ve.attach(he,Xe||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,Gc,!0),fe("gutters",[],function(he,me){he.display.gutterSpecs=Ns(me,he.options.lineNumbers),fl(he)},!0),fe("fixedGutter",!0,function(he,me){he.display.gutters.style.left=me?gf(he.display)+"px":"0",he.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(he){return ma(he)},!0),fe("scrollbarStyle","native",function(he){xs(he),ma(he),he.display.scrollbars.setScrollTop(he.doc.scrollTop),he.display.scrollbars.setScrollLeft(he.doc.scrollLeft)},!0),fe("lineNumbers",!1,function(he,me){he.display.gutterSpecs=Ns(he.options.gutters,me),fl(he)},!0),fe("firstLineNumber",1,fl,!0),fe("lineNumberFormatter",function(he){return he},fl,!0),fe("showCursorWhenSelecting",!1,Nt,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(he,me){me=="nocursor"&&(ji(he),he.display.input.blur()),he.display.input.readOnlyChanged(me)}),fe("screenReaderLabel",null,function(he,me){me=me===""?null:me,he.display.input.screenReaderLabelChanged(me)}),fe("disableInput",!1,function(he,me){me||he.display.input.reset()},!0),fe("dragDrop",!0,cd),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,Nt,!0),fe("singleCursorHeightPerLine",!0,Nt,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,Fs,!0),fe("addModeClass",!1,Fs,!0),fe("pollInterval",100),fe("undoDepth",200,function(he,me){return he.doc.history.undoDepth=me}),fe("historyEventDelay",1250),fe("viewportMargin",10,function(he){return he.refresh()},!0),fe("maxHighlightLength",1e4,Fs,!0),fe("moveInputWithCursor",!0,function(he,me){me||he.display.input.resetPosition()}),fe("tabindex",null,function(he,me){return he.display.input.getField().tabIndex=me||""}),fe("autofocus",null),fe("direction","ltr",function(he,me){return he.doc.setDirection(me)},!0),fe("phrases",null)}function cd(ie,ae,fe){var he=fe&&fe!=pu;if(!ae!=!he){var me=ie.display.dragFunctions,De=ae?st:sn;De(ie.display.scroller,"dragstart",me.start),De(ie.display.scroller,"dragenter",me.enter),De(ie.display.scroller,"dragover",me.over),De(ie.display.scroller,"dragleave",me.leave),De(ie.display.scroller,"drop",me.drop)}}function Gc(ie){ie.options.lineWrapping?(yn(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(ot(ie.display.wrapper,"CodeMirror-wrap"),Ta(ie)),zo(ie),Qs(ie),gc(ie),setTimeout(function(){return ma(ie)},100)}function Bs(ie,ae){var fe=this;if(!(this instanceof Bs))return new Bs(ie,ae);this.options=ae=ae?ui(ae):{},ui(oc,ae,!1);var he=ae.value;typeof he=="string"?he=new xr(he,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(he.modeOption=ae.mode),this.doc=he;var me=new Bs.inputStyles[ae.inputStyle](this),De=this.display=new $u(ie,he,me,ae);De.wrapper.CodeMirror=this,Yu(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xs(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 He,keySeq:null,specialChars:null},ae.autofocus&&!ne&&De.input.focus(),Dt&&jt<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),gh(this),Zo(),Vs(this),this.curOp.forceUpdate=!0,sd(this,he),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&hi(fe)},20):ji(this);for(var Ve in yc)yc.hasOwnProperty(Ve)&&yc[Ve](this,ae[Ve],pu);ya(this),ae.finishInit&&ae.finishInit(this);for(var Xe=0;Xe<ph.length;++Xe)ph[Xe](this);hl(this),Ge&&ae.lineWrapping&&getComputedStyle(De.lineDiv).textRendering=="optimizelegibility"&&(De.lineDiv.style.textRendering="auto")}Bs.defaults=oc,Bs.optionHandlers=yc;function gh(ie){var ae=ie.display;st(ae.scroller,"mousedown",As(ie,bs)),Dt&&jt<11?st(ae.scroller,"dblclick",As(ie,function(Oe){if(!Xt(ie,Oe)){var qe=zl(ie,Oe);if(!(!qe||na(ie,Oe)||us(ie.display,Oe))){Yi(Oe);var Rt=ie.findWordAt(qe);Td(ie.doc,Rt.anchor,Rt.head)}}})):st(ae.scroller,"dblclick",function(Oe){return Xt(ie,Oe)||Yi(Oe)}),st(ae.scroller,"contextmenu",function(Oe){return ds(ie,Oe)}),st(ae.input.getField(),"contextmenu",function(Oe){ae.scroller.contains(Oe.target)||ds(ie,Oe)});var fe,he={end:0};function me(){ae.activeTouch&&(fe=setTimeout(function(){return ae.activeTouch=null},1e3),he=ae.activeTouch,he.end=+new Date)}function De(Oe){if(Oe.touches.length!=1)return!1;var qe=Oe.touches[0];return qe.radiusX<=1&&qe.radiusY<=1}function Ve(Oe,qe){if(qe.left==null)return!0;var Rt=qe.left-Oe.left,gt=qe.top-Oe.top;return Rt*Rt+gt*gt>20*20}st(ae.scroller,"touchstart",function(Oe){if(!Xt(ie,Oe)&&!De(Oe)&&!na(ie,Oe)){ae.input.ensurePolled(),clearTimeout(fe);var qe=+new Date;ae.activeTouch={start:qe,moved:!1,prev:qe-he.end<=300?he:null},Oe.touches.length==1&&(ae.activeTouch.left=Oe.touches[0].pageX,ae.activeTouch.top=Oe.touches[0].pageY)}}),st(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),st(ae.scroller,"touchend",function(Oe){var qe=ae.activeTouch;if(qe&&!us(ae,Oe)&&qe.left!=null&&!qe.moved&&new Date-qe.start<300){var Rt=ie.coordsChar(ae.activeTouch,"page"),gt;!qe.prev||Ve(qe,qe.prev)?gt=new Xa(Rt,Rt):!qe.prev.prev||Ve(qe,qe.prev.prev)?gt=ie.findWordAt(Rt):gt=new Xa(Ft(Rt.line,0),Wi(ie.doc,Ft(Rt.line+1,0))),ie.setSelection(gt.anchor,gt.head),ie.focus(),Yi(Oe)}me()}),st(ae.scroller,"touchcancel",me),st(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Pa(ie,ae.scroller.scrollTop),Ha(ie,ae.scroller.scrollLeft,!0),en(ie,"scroll",ie))}),st(ae.scroller,"mousewheel",function(Oe){return gl(ie,Oe)}),st(ae.scroller,"DOMMouseScroll",function(Oe){return gl(ie,Oe)}),st(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(Oe){Xt(ie,Oe)||io(Oe)},over:function(Oe){Xt(ie,Oe)||(Wr(ie,Oe),io(Oe))},start:function(Oe){return so(ie,Oe)},drop:As(ie,Lr),leave:function(Oe){Xt(ie,Oe)||ga(ie)}};var Xe=ae.input.getField();st(Xe,"keyup",function(Oe){return Wa.call(ie,Oe)}),st(Xe,"keydown",As(ie,Jl)),st(Xe,"keypress",As(ie,Is)),st(Xe,"focus",function(Oe){return hi(ie,Oe)}),st(Xe,"blur",function(Oe){return ji(ie,Oe)})}var ph=[];Bs.defineInitHook=function(ie){return ph.push(ie)};function wu(ie,ae,fe,he){var me=ie.doc,De;fe==null&&(fe="add"),fe=="smart"&&(me.mode.indent?De=Ir(ie,ae).state:fe="prev");var Ve=ie.options.tabSize,Xe=Ti(me,ae),Oe=tt(Xe.text,null,Ve);Xe.stateAfter&&(Xe.stateAfter=null);var qe=Xe.text.match(/^\s*/)[0],Rt;if(!he&&!/\S/.test(Xe.text))Rt=0,fe="not";else if(fe=="smart"&&(Rt=me.mode.indent(De,Xe.text.slice(qe.length),Xe.text),Rt==Qn||Rt>150)){if(!he)return;fe="prev"}fe=="prev"?ae>me.first?Rt=tt(Ti(me,ae-1).text,null,Ve):Rt=0:fe=="add"?Rt=Oe+ie.options.indentUnit:fe=="subtract"?Rt=Oe-ie.options.indentUnit:typeof fe=="number"&&(Rt=Oe+fe),Rt=Math.max(0,Rt);var gt="",Pn=0;if(ie.options.indentWithTabs)for(var fn=Math.floor(Rt/Ve);fn;--fn)Pn+=Ve,gt+=" ";if(Pn<Rt&&(gt+=Ai(Rt-Pn)),gt!=qe)return rc(me,gt,Ft(ae,0),Ft(ae,qe.length),"+input"),Xe.stateAfter=null,!0;for(var Ci=0;Ci<me.sel.ranges.length;Ci++){var Bi=me.sel.ranges[Ci];if(Bi.head.line==ae&&Bi.head.ch<qe.length){var nr=Ft(ae,qe.length);tc(me,Ci,new Xa(nr,nr));break}}}var Xu=null;function Nh(ie){Xu=ie}function Th(ie,ae,fe,he,me){var De=ie.doc;ie.display.shift=!1,he||(he=De.sel);var Ve=+new Date-200,Xe=me=="paste"||ie.state.pasteIncoming>Ve,Oe=Tr(ae),qe=null;if(Xe&&he.ranges.length>1)if(Xu&&Xu.text.join(`
|
|
`)==ae){if(he.ranges.length%Xu.text.length==0){qe=[];for(var Rt=0;Rt<Xu.text.length;Rt++)qe.push(De.splitLines(Xu.text[Rt]))}}else Oe.length==he.ranges.length&&ie.options.pasteLinesPerSelection&&(qe=ht(Oe,function(pr){return[pr]}));for(var gt=ie.curOp.updateInput,Pn=he.ranges.length-1;Pn>=0;Pn--){var fn=he.ranges[Pn],Ci=fn.from(),Bi=fn.to();fn.empty()&&(fe&&fe>0?Ci=Ft(Ci.line,Ci.ch-fe):ie.state.overwrite&&!Xe?Bi=Ft(Bi.line,Math.min(Ti(De,Bi.line).text.length,Bi.ch+mt(Oe).length)):Xe&&Xu&&Xu.lineWise&&Xu.text.join(`
|
|
`)==Oe.join(`
|
|
`)&&(Ci=Bi=Ft(Ci.line,0)));var nr={from:Ci,to:Bi,text:qe?qe[Pn%qe.length]:Oe,origin:me||(Xe?"paste":ie.state.cutIncoming>Ve?"cut":"+input")};ic(ie.doc,nr),ao(ie,"inputRead",ie,nr)}ae&&!Xe&&$f(ie,ae),co(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=gt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function qf(ie,ae){var fe=ie.clipboardData&&ie.clipboardData.getData("Text");if(fe)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&va(ae,function(){return Th(ae,fe,0,null,"paste")}),!0}function $f(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var fe=ie.doc.sel,he=fe.ranges.length-1;he>=0;he--){var me=fe.ranges[he];if(!(me.head.ch>100||he&&fe.ranges[he-1].head.line==me.head.line)){var De=ie.getModeAt(me.head),Ve=!1;if(De.electricChars){for(var Xe=0;Xe<De.electricChars.length;Xe++)if(ae.indexOf(De.electricChars.charAt(Xe))>-1){Ve=wu(ie,me.head.line,"smart");break}}else De.electricInput&&De.electricInput.test(Ti(ie.doc,me.head.line).text.slice(0,me.head.ch))&&(Ve=wu(ie,me.head.line,"smart"));Ve&&ao(ie,"electricInput",ie,me.head.line)}}}function qh(ie){for(var ae=[],fe=[],he=0;he<ie.doc.sel.ranges.length;he++){var me=ie.doc.sel.ranges[he].head.line,De={anchor:Ft(me,0),head:Ft(me+1,0)};fe.push(De),ae.push(ie.getRange(De.anchor,De.head))}return{text:ae,ranges:fe}}function eg(ie,ae,fe,he){ie.setAttribute("autocorrect",fe?"":"off"),ie.setAttribute("autocapitalize",he?"":"off"),ie.setAttribute("spellcheck",!!ae)}function tg(){var ie=vt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=vt("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ge?ie.style.width="1000px":ie.setAttribute("wrap","off"),Re&&(ie.style.border="1px solid black"),eg(ie),ae}function Ed(ie){var ae=ie.optionHandlers,fe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(he,me){var De=this.options,Ve=De[he];De[he]==me&&he!="mode"||(De[he]=me,ae.hasOwnProperty(he)&&As(this,ae[he])(this,me,Ve),en(this,"optionChange",this,he))},getOption:function(he){return this.options[he]},getDoc:function(){return this.doc},addKeyMap:function(he,me){this.state.keyMaps[me?"push":"unshift"](la(he))},removeKeyMap:function(he){for(var me=this.state.keyMaps,De=0;De<me.length;++De)if(me[De]==he||me[De].name==he)return me.splice(De,1),!0},addOverlay:Es(function(he,me){var De=he.token?he:ie.getMode(this.options,he);if(De.startState)throw new Error("Overlays may not be stateful.");un(this.state.overlays,{mode:De,modeSpec:he,opaque:me&&me.opaque,priority:me&&me.priority||0},function(Ve){return Ve.priority}),this.state.modeGen++,Qs(this)}),removeOverlay:Es(function(he){for(var me=this.state.overlays,De=0;De<me.length;++De){var Ve=me[De].modeSpec;if(Ve==he||typeof he=="string"&&Ve.name==he){me.splice(De,1),this.state.modeGen++,Qs(this);return}}}),indentLine:Es(function(he,me,De){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),xn(this.doc,he)&&wu(this,he,me,De)}),indentSelection:Es(function(he){for(var me=this.doc.sel.ranges,De=-1,Ve=0;Ve<me.length;Ve++){var Xe=me[Ve];if(Xe.empty())Xe.head.line>De&&(wu(this,Xe.head.line,he,!0),De=Xe.head.line,Ve==this.doc.sel.primIndex&&co(this));else{var Oe=Xe.from(),qe=Xe.to(),Rt=Math.max(De,Oe.line);De=Math.min(this.lastLine(),qe.line-(qe.ch?0:1))+1;for(var gt=Rt;gt<De;++gt)wu(this,gt,he);var Pn=this.doc.sel.ranges;Oe.ch==0&&me.length==Pn.length&&Pn[Ve].from().ch>0&&tc(this.doc,Ve,new Xa(Oe,Pn[Ve].to()),nn)}}}),getTokenAt:function(he,me){return li(this,he,me)},getLineTokens:function(he,me){return li(this,Ft(he),me,!0)},getTokenTypeAt:function(he){he=Wi(this.doc,he);var me=uo(this,Ti(this.doc,he.line)),De=0,Ve=(me.length-1)/2,Xe=he.ch,Oe;if(Xe==0)Oe=me[2];else for(;;){var qe=De+Ve>>1;if((qe?me[qe*2-1]:0)>=Xe)Ve=qe;else if(me[qe*2+1]<Xe)De=qe+1;else{Oe=me[qe*2+2];break}}var Rt=Oe?Oe.indexOf("overlay "):-1;return Rt<0?Oe:Rt==0?null:Oe.slice(0,Rt-1)},getModeAt:function(he){var me=this.doc.mode;return me.innerMode?ie.innerMode(me,this.getTokenAt(he).state).mode:me},getHelper:function(he,me){return this.getHelpers(he,me)[0]},getHelpers:function(he,me){var De=[];if(!fe.hasOwnProperty(me))return De;var Ve=fe[me],Xe=this.getModeAt(he);if(typeof Xe[me]=="string")Ve[Xe[me]]&&De.push(Ve[Xe[me]]);else if(Xe[me])for(var Oe=0;Oe<Xe[me].length;Oe++){var qe=Ve[Xe[me][Oe]];qe&&De.push(qe)}else Xe.helperType&&Ve[Xe.helperType]?De.push(Ve[Xe.helperType]):Ve[Xe.name]&&De.push(Ve[Xe.name]);for(var Rt=0;Rt<Ve._global.length;Rt++){var gt=Ve._global[Rt];gt.pred(Xe,this)&&mn(De,gt.val)==-1&&De.push(gt.val)}return De},getStateAfter:function(he,me){var De=this.doc;return he=qn(De,he==null?De.first+De.size-1:he),Ir(this,he+1,me).state},cursorCoords:function(he,me){var De,Ve=this.doc.sel.primary();return he==null?De=Ve.head:typeof he=="object"?De=Wi(this.doc,he):De=he?Ve.from():Ve.to(),cl(this,De,me||"page")},charCoords:function(he,me){return Md(this,Wi(this.doc,he),me||"page")},coordsChar:function(he,me){return he=Kh(this,he,me||"page"),kd(this,he.left,he.top)},lineAtHeight:function(he,me){return he=Kh(this,{top:he,left:0},me||"page").top,Ii(this.doc,he+this.display.viewOffset)},heightAtLine:function(he,me,De){var Ve=!1,Xe;if(typeof he=="number"){var Oe=this.doc.first+this.doc.size-1;he<this.doc.first?he=this.doc.first:he>Oe&&(he=Oe,Ve=!0),Xe=Ti(this.doc,he)}else Xe=he;return Ou(this,Xe,{top:0,left:0},me||"page",De||Ve).top+(Ve?this.doc.height-qa(Xe):0)},defaultTextHeight:function(){return Dc(this.display)},defaultCharWidth:function(){return Lc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(he,me,De,Ve,Xe){var Oe=this.display;he=cl(this,Wi(this.doc,he));var qe=he.bottom,Rt=he.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),Oe.sizer.appendChild(me),Ve=="over")qe=he.top;else if(Ve=="above"||Ve=="near"){var gt=Math.max(Oe.wrapper.clientHeight,this.doc.height),Pn=Math.max(Oe.sizer.clientWidth,Oe.lineSpace.clientWidth);(Ve=="above"||he.bottom+me.offsetHeight>gt)&&he.top>me.offsetHeight?qe=he.top-me.offsetHeight:he.bottom+me.offsetHeight<=gt&&(qe=he.bottom),Rt+me.offsetWidth>Pn&&(Rt=Pn-me.offsetWidth)}me.style.top=qe+"px",me.style.left=me.style.right="",Xe=="right"?(Rt=Oe.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):(Xe=="left"?Rt=0:Xe=="middle"&&(Rt=(Oe.sizer.clientWidth-me.offsetWidth)/2),me.style.left=Rt+"px"),De&&oo(this,{left:Rt,top:qe,right:Rt+me.offsetWidth,bottom:qe+me.offsetHeight})},triggerOnKeyDown:Es(Jl),triggerOnKeyPress:Es(Is),triggerOnKeyUp:Wa,triggerOnMouseDown:Es(bs),execCommand:function(he){if(Ka.hasOwnProperty(he))return Ka[he].call(null,this)},triggerElectric:Es(function(he){$f(this,he)}),findPosH:function(he,me,De,Ve){var Xe=1;me<0&&(Xe=-1,me=-me);for(var Oe=Wi(this.doc,he),qe=0;qe<me&&(Oe=Rd(this.doc,Oe,Xe,De,Ve),!Oe.hitSide);++qe);return Oe},moveH:Es(function(he,me){var De=this;this.extendSelectionsBy(function(Ve){return De.display.shift||De.doc.extend||Ve.empty()?Rd(De.doc,Ve.head,he,me,De.options.rtlMoveVisually):he<0?Ve.from():Ve.to()},Ln)}),deleteH:Es(function(he,me){var De=this.doc.sel,Ve=this.doc;De.somethingSelected()?Ve.replaceSelection("",null,"+delete"):Vr(this,function(Xe){var Oe=Rd(Ve,Xe.head,he,me,!1);return he<0?{from:Oe,to:Xe.head}:{from:Xe.head,to:Oe}})}),findPosV:function(he,me,De,Ve){var Xe=1,Oe=Ve;me<0&&(Xe=-1,me=-me);for(var qe=Wi(this.doc,he),Rt=0;Rt<me;++Rt){var gt=cl(this,qe,"div");if(Oe==null?Oe=gt.left:gt.left=Oe,qe=$d(this,gt,Xe,De),qe.hitSide)break}return qe},moveV:Es(function(he,me){var De=this,Ve=this.doc,Xe=[],Oe=!this.display.shift&&!Ve.extend&&Ve.sel.somethingSelected();if(Ve.extendSelectionsBy(function(Rt){if(Oe)return he<0?Rt.from():Rt.to();var gt=cl(De,Rt.head,"div");Rt.goalColumn!=null&&(gt.left=Rt.goalColumn),Xe.push(gt.left);var Pn=$d(De,gt,he,me);return me=="page"&&Rt==Ve.sel.primary()&&lo(De,Md(De,Pn,"div").top-gt.top),Pn},Ln),Xe.length)for(var qe=0;qe<Ve.sel.ranges.length;qe++)Ve.sel.ranges[qe].goalColumn=Xe[qe]}),findWordAt:function(he){var me=this.doc,De=Ti(me,he.line).text,Ve=he.ch,Xe=he.ch;if(De){var Oe=this.getHelper(he,"wordChars");(he.sticky=="before"||Xe==De.length)&&Ve?--Ve:++Xe;for(var qe=De.charAt(Ve),Rt=Hn(qe,Oe)?function(gt){return Hn(gt,Oe)}:/\s/.test(qe)?function(gt){return/\s/.test(gt)}:function(gt){return!/\s/.test(gt)&&!Hn(gt)};Ve>0&&Rt(De.charAt(Ve-1));)--Ve;for(;Xe<De.length&&Rt(De.charAt(Xe));)++Xe}return new Xa(Ft(he.line,Ve),Ft(he.line,Xe))},toggleOverwrite:function(he){he!=null&&he==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?yn(this.display.cursorDiv,"CodeMirror-overwrite"):ot(this.display.cursorDiv,"CodeMirror-overwrite"),en(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Yt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Es(function(he,me){Pr(this,he,me)}),getScrollInfo:function(){var he=this.display.scroller;return{left:he.scrollLeft,top:he.scrollTop,height:he.scrollHeight-Bl(this)-this.display.barHeight,width:he.scrollWidth-Bl(this)-this.display.barWidth,clientHeight:Hu(this),clientWidth:Kl(this)}},scrollIntoView:Es(function(he,me){he==null?(he={from:this.doc.sel.primary().head,to:null},me==null&&(me=this.options.cursorScrollMargin)):typeof he=="number"?he={from:Ft(he,0),to:null}:he.from==null&&(he={from:he,to:null}),he.to||(he.to=he.from),he.margin=me||0,he.from.line!=null?$i(this,he):$o(this,he.from,he.to,he.margin)}),setSize:Es(function(he,me){var De=this,Ve=function(Oe){return typeof Oe=="number"||/^\d+$/.test(String(Oe))?Oe+"px":Oe};he!=null&&(this.display.wrapper.style.width=Ve(he)),me!=null&&(this.display.wrapper.style.height=Ve(me)),this.options.lineWrapping&&Sd(this);var Xe=this.display.viewFrom;this.doc.iter(Xe,this.display.viewTo,function(Oe){if(Oe.widgets){for(var qe=0;qe<Oe.widgets.length;qe++)if(Oe.widgets[qe].noHScroll){Da(De,Xe,"widget");break}}++Xe}),this.curOp.forceUpdate=!0,en(this,"refresh",this)}),operation:function(he){return va(this,he)},startOperation:function(){return Vs(this)},endOperation:function(){return hl(this)},refresh:Es(function(){var he=this.display.cachedTextHeight;Qs(this),this.curOp.forceUpdate=!0,gc(this),Pr(this,this.doc.scrollLeft,this.doc.scrollTop),iu(this.display),(he==null||Math.abs(he-Dc(this.display))>.5||this.options.lineWrapping)&&zo(this),en(this,"refresh",this)}),swapDoc:Es(function(he){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),sd(this,he),gc(this),this.display.input.reset(),Pr(this,he.scrollLeft,he.scrollTop),this.curOp.forceScroll=!0,ao(this,"swapDoc",this,me),me}),phrase:function(he){var me=this.options.phrases;return me&&Object.prototype.hasOwnProperty.call(me,he)?me[he]:he},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}},In(ie),ie.registerHelper=function(he,me,De){fe.hasOwnProperty(he)||(fe[he]=ie[he]={_global:[]}),fe[he][me]=De},ie.registerGlobalHelper=function(he,me,De,Ve){ie.registerHelper(he,me,Ve),fe[he]._global.push({pred:De,val:Ve})}}function Rd(ie,ae,fe,he,me){var De=ae,Ve=fe,Xe=Ti(ie,ae.line),Oe=me&&ie.direction=="rtl"?-fe:fe;function qe(){var hr=ae.line+Oe;return hr<ie.first||hr>=ie.first+ie.size?!1:(ae=new Ft(hr,ae.ch,ae.sticky),Xe=Ti(ie,hr))}function Rt(hr){var Dr;if(he=="codepoint"){var vo=Xe.text.charCodeAt(ae.ch+(he>0?0:-1));isNaN(vo)?Dr=null:Dr=new Ft(ae.line,Math.max(0,Math.min(Xe.text.length,ae.ch+fe*(vo>=55296&&vo<56320?2:1))),-fe)}else me?Dr=Sa(ie.cm,Xe,ae,fe):Dr=Wo(Xe,ae,fe);if(Dr==null)if(!hr&&qe())ae=mo(me,ie.cm,Xe,ae.line,Oe);else return!1;else ae=Dr;return!0}if(he=="char"||he=="codepoint")Rt();else if(he=="column")Rt(!0);else if(he=="word"||he=="group")for(var gt=null,Pn=he=="group",fn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ci=!0;!(fe<0&&!Rt(!Ci));Ci=!1){var Bi=Xe.text.charAt(ae.ch)||`
|
|
`,nr=Hn(Bi,fn)?"w":Pn&&Bi==`
|
|
`?"n":!Pn||/\s/.test(Bi)?null:"p";if(Pn&&!Ci&&!nr&&(nr="s"),gt&>!=nr){fe<0&&(fe=1,Rt(),ae.sticky="after");break}if(nr&&(gt=nr),fe>0&&!Rt(!Ci))break}var pr=Jd(ie,ae,De,Ve,!0);return rn(De,pr)&&(pr.hitSide=!0),pr}function $d(ie,ae,fe,he){var me=ie.doc,De=ae.left,Ve;if(he=="page"){var Xe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Oe=Math.max(Xe-.5*Dc(ie.display),3);Ve=(fe>0?ae.bottom:ae.top)+fe*Oe}else he=="line"&&(Ve=fe>0?ae.bottom+3:ae.top-3);for(var qe;qe=kd(ie,De,Ve),!!qe.outside;){if(fe<0?Ve<=0:Ve>=me.height){qe.hitSide=!0;break}Ve+=fe*5}return qe}var Xs=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new He,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Xs.prototype.init=function(ie){var ae=this,fe=this,he=fe.cm,me=fe.div=ie.lineDiv;eg(me,he.options.spellcheck,he.options.autocorrect,he.options.autocapitalize);function De(Xe){for(var Oe=Xe.target;Oe;Oe=Oe.parentNode){if(Oe==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Oe.className))break}return!1}st(me,"paste",function(Xe){!De(Xe)||Xt(he,Xe)||qf(Xe,he)||jt<=11&&setTimeout(As(he,function(){return ae.updateFromDOM()}),20)}),st(me,"compositionstart",function(Xe){ae.composing={data:Xe.data,done:!1}}),st(me,"compositionupdate",function(Xe){ae.composing||(ae.composing={data:Xe.data,done:!1})}),st(me,"compositionend",function(Xe){ae.composing&&(Xe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),st(me,"touchstart",function(){return fe.forceCompositionEnd()}),st(me,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ve(Xe){if(!(!De(Xe)||Xt(he,Xe))){if(he.somethingSelected())Nh({lineWise:!1,text:he.getSelections()}),Xe.type=="cut"&&he.replaceSelection("",null,"cut");else if(he.options.lineWiseCopyCut){var Oe=qh(he);Nh({lineWise:!0,text:Oe.text}),Xe.type=="cut"&&he.operation(function(){he.setSelections(Oe.ranges,0,nn),he.replaceSelection("",null,"cut")})}else return;if(Xe.clipboardData){Xe.clipboardData.clearData();var qe=Xu.text.join(`
|
|
`);if(Xe.clipboardData.setData("Text",qe),Xe.clipboardData.getData("Text")==qe){Xe.preventDefault();return}}var Rt=tg(),gt=Rt.firstChild;he.display.lineSpace.insertBefore(Rt,he.display.lineSpace.firstChild),gt.value=Xu.text.join(`
|
|
`);var Pn=document.activeElement;wi(gt),setTimeout(function(){he.display.lineSpace.removeChild(Rt),Pn.focus(),Pn==me&&fe.showPrimarySelection()},50)}}st(me,"copy",Ve),st(me,"cut",Ve)},Xs.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Xs.prototype.prepareSelection=function(){var ie=Wt(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Xs.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Xs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xs.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,fe=ae.doc.sel.primary(),he=fe.from(),me=fe.to();if(ae.display.viewTo==ae.display.viewFrom||he.line>=ae.display.viewTo||me.line<ae.display.viewFrom){ie.removeAllRanges();return}var De=mf(ae,ie.anchorNode,ie.anchorOffset),Ve=mf(ae,ie.focusNode,ie.focusOffset);if(!(De&&!De.bad&&Ve&&!Ve.bad&&bt(Ni(De,Ve),he)==0&&bt(ki(De,Ve),me)==0)){var Xe=ae.display.view,Oe=he.line>=ae.display.viewFrom&&Oh(ae,he)||{node:Xe[0].measure.map[2],offset:0},qe=me.line<ae.display.viewTo&&Oh(ae,me);if(!qe){var Rt=Xe[Xe.length-1].measure,gt=Rt.maps?Rt.maps[Rt.maps.length-1]:Rt.map;qe={node:gt[gt.length-1],offset:gt[gt.length-2]-gt[gt.length-3]}}if(!Oe||!qe){ie.removeAllRanges();return}var Pn=ie.rangeCount&&ie.getRangeAt(0),fn;try{fn=wt(Oe.node,Oe.offset,qe.offset,qe.node)}catch(Ci){}fn&&(!ce&&ae.state.focused?(ie.collapse(Oe.node,Oe.offset),fn.collapsed||(ie.removeAllRanges(),ie.addRange(fn))):(ie.removeAllRanges(),ie.addRange(fn)),Pn&&ie.anchorNode==null?ie.addRange(Pn):ce&&this.startGracePeriod()),this.rememberSelection()}},Xs.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Xs.prototype.showMultipleSelections=function(ie){yt(this.cm.display.cursorDiv,ie.cursors),yt(this.cm.display.selectionDiv,ie.selection)},Xs.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Xs.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return It(this.div,ae)},Xs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xs.prototype.blur=function(){this.div.blur()},Xs.prototype.getField=function(){return this.div},Xs.prototype.supportsTouch=function(){return!0},Xs.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():va(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Xs.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Xs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Ct&&this.cm.display.gutterSpecs.length&&Df(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=mf(ae,ie.anchorNode,ie.anchorOffset),he=mf(ae,ie.focusNode,ie.focusOffset);fe&&he&&va(ae,function(){fu(ae.doc,ru(fe,he),nn),(fe.bad||he.bad)&&(ae.curOp.selectionChanged=!0)})}}},Xs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,fe=ie.doc.sel.primary(),he=fe.from(),me=fe.to();if(he.ch==0&&he.line>ie.firstLine()&&(he=Ft(he.line-1,Ti(ie.doc,he.line-1).length)),me.ch==Ti(ie.doc,me.line).text.length&&me.line<ie.lastLine()&&(me=Ft(me.line+1,0)),he.line<ae.viewFrom||me.line>ae.viewTo-1)return!1;var De,Ve,Xe;he.line==ae.viewFrom||(De=hu(ie,he.line))==0?(Ve=Ot(ae.view[0].line),Xe=ae.view[0].node):(Ve=Ot(ae.view[De].line),Xe=ae.view[De-1].node.nextSibling);var Oe=hu(ie,me.line),qe,Rt;if(Oe==ae.view.length-1?(qe=ae.viewTo-1,Rt=ae.lineDiv.lastChild):(qe=Ot(ae.view[Oe+1].line)-1,Rt=ae.view[Oe+1].node.previousSibling),!Xe)return!1;for(var gt=ie.doc.splitLines(mh(ie,Xe,Rt,Ve,qe)),Pn=qr(ie.doc,Ft(Ve,0),Ft(qe,Ti(ie.doc,qe).text.length));gt.length>1&&Pn.length>1;)if(mt(gt)==mt(Pn))gt.pop(),Pn.pop(),qe--;else if(gt[0]==Pn[0])gt.shift(),Pn.shift(),Ve++;else break;for(var fn=0,Ci=0,Bi=gt[0],nr=Pn[0],pr=Math.min(Bi.length,nr.length);fn<pr&&Bi.charCodeAt(fn)==nr.charCodeAt(fn);)++fn;for(var hr=mt(gt),Dr=mt(Pn),vo=Math.min(hr.length-(gt.length==1?fn:0),Dr.length-(Pn.length==1?fn:0));Ci<vo&&hr.charCodeAt(hr.length-Ci-1)==Dr.charCodeAt(Dr.length-Ci-1);)++Ci;if(gt.length==1&&Pn.length==1&&Ve==he.line)for(;fn&&fn>he.ch&&hr.charCodeAt(hr.length-Ci-1)==Dr.charCodeAt(Dr.length-Ci-1);)fn--,Ci++;gt[gt.length-1]=hr.slice(0,hr.length-Ci).replace(/^\u200b+/,""),gt[0]=gt[0].slice(fn).replace(/\u200b+$/,"");var Qo=Ft(Ve,fn),Kr=Ft(qe,Pn.length?mt(Pn).length-Ci:0);if(gt.length>1||gt[0]||bt(Qo,Kr))return rc(ie.doc,gt,Qo,Kr,"+input"),!0},Xs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xs.prototype.reset=function(){this.forceCompositionEnd()},Xs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Xs.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Xs.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&va(this.cm,function(){return Qs(ie.cm)})},Xs.prototype.setUneditable=function(ie){ie.contentEditable="false"},Xs.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||As(this.cm,Th)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Xs.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Xs.prototype.onContextMenu=function(){},Xs.prototype.resetPosition=function(){},Xs.prototype.needsContentAttribute=!0;function Oh(ie,ae){var fe=ol(ie,ae.line);if(!fe||fe.hidden)return null;var he=Ti(ie.doc,ae.line),me=uh(fe,he,ae.line),De=Ke(he,ie.doc.direction),Ve="left";if(De){var Xe=Ee(De,ae.ch);Ve=Xe%2?"right":"left"}var Oe=od(me.map,ae.ch,Ve);return Oe.offset=Oe.collapse=="right"?Oe.end:Oe.start,Oe}function Df(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Zl(ie,ae){return ae&&(ie.bad=!0),ie}function mh(ie,ae,fe,he,me){var De="",Ve=!1,Xe=ie.doc.lineSeparator(),Oe=!1;function qe(fn){return function(Ci){return Ci.id==fn}}function Rt(){Ve&&(De+=Xe,Oe&&(De+=Xe),Ve=Oe=!1)}function gt(fn){fn&&(Rt(),De+=fn)}function Pn(fn){if(fn.nodeType==1){var Ci=fn.getAttribute("cm-text");if(Ci){gt(Ci);return}var Bi=fn.getAttribute("cm-marker"),nr;if(Bi){var pr=ie.findMarks(Ft(he,0),Ft(me+1,0),qe(+Bi));pr.length&&(nr=pr[0].find(0))&>(qr(ie.doc,nr.from,nr.to).join(Xe));return}if(fn.getAttribute("contenteditable")=="false")return;var hr=/^(pre|div|p|li|table|br)$/i.test(fn.nodeName);if(!/^br$/i.test(fn.nodeName)&&fn.textContent.length==0)return;hr&&Rt();for(var Dr=0;Dr<fn.childNodes.length;Dr++)Pn(fn.childNodes[Dr]);/^(pre|p)$/i.test(fn.nodeName)&&(Oe=!0),hr&&(Ve=!0)}else fn.nodeType==3&>(fn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Pn(ae),ae!=fe;)ae=ae.nextSibling,Oe=!1;return De}function mf(ie,ae,fe){var he;if(ae==ie.display.lineDiv){if(he=ie.display.lineDiv.childNodes[fe],!he)return Zl(ie.clipPos(Ft(ie.display.viewTo-1)),!0);ae=null,fe=0}else for(he=ae;;he=he.parentNode){if(!he||he==ie.display.lineDiv)return null;if(he.parentNode&&he.parentNode==ie.display.lineDiv)break}for(var me=0;me<ie.display.view.length;me++){var De=ie.display.view[me];if(De.node==he)return bg(De,ae,fe)}}function bg(ie,ae,fe){var he=ie.text.firstChild,me=!1;if(!ae||!It(he,ae))return Zl(Ft(Ot(ie.line),0),!0);if(ae==he&&(me=!0,ae=he.childNodes[fe],fe=0,!ae)){var De=ie.rest?mt(ie.rest):ie.line;return Zl(Ft(Ot(De),De.text.length),me)}var Ve=ae.nodeType==3?ae:null,Xe=ae;for(!Ve&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ve=ae.firstChild,fe&&(fe=Ve.nodeValue.length));Xe.parentNode!=he;)Xe=Xe.parentNode;var Oe=ie.measure,qe=Oe.maps;function Rt(nr,pr,hr){for(var Dr=-1;Dr<(qe?qe.length:0);Dr++)for(var vo=Dr<0?Oe.map:qe[Dr],Qo=0;Qo<vo.length;Qo+=3){var Kr=vo[Qo+2];if(Kr==nr||Kr==pr){var ka=Ot(Dr<0?ie.line:ie.rest[Dr]),rs=vo[Qo]+hr;return(hr<0||Kr!=nr)&&(rs=vo[Qo+(hr?1:0)]),Ft(ka,rs)}}}var gt=Rt(Ve,Xe,fe);if(gt)return Zl(gt,me);for(var Pn=Xe.nextSibling,fn=Ve?Ve.nodeValue.length-fe:0;Pn;Pn=Pn.nextSibling){if(gt=Rt(Pn,Pn.firstChild,0),gt)return Zl(Ft(gt.line,gt.ch-fn),me);fn+=Pn.textContent.length}for(var Ci=Xe.previousSibling,Bi=fe;Ci;Ci=Ci.previousSibling){if(gt=Rt(Ci,Ci.firstChild,-1),gt)return Zl(Ft(gt.line,gt.ch+Bi),me);Bi+=Ci.textContent.length}}var Cu=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new He,this.hasSelection=!1,this.composing=null};Cu.prototype.init=function(ie){var ae=this,fe=this,he=this.cm;this.createField(ie);var me=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Re&&(me.style.width="0px"),st(me,"input",function(){Dt&&jt>=9&&ae.hasSelection&&(ae.hasSelection=null),fe.poll()}),st(me,"paste",function(Ve){Xt(he,Ve)||qf(Ve,he)||(he.state.pasteIncoming=+new Date,fe.fastPoll())});function De(Ve){if(!Xt(he,Ve)){if(he.somethingSelected())Nh({lineWise:!1,text:he.getSelections()});else if(he.options.lineWiseCopyCut){var Xe=qh(he);Nh({lineWise:!0,text:Xe.text}),Ve.type=="cut"?he.setSelections(Xe.ranges,null,nn):(fe.prevInput="",me.value=Xe.text.join(`
|
|
`),wi(me))}else return;Ve.type=="cut"&&(he.state.cutIncoming=+new Date)}}st(me,"cut",De),st(me,"copy",De),st(ie.scroller,"paste",function(Ve){if(!(us(ie,Ve)||Xt(he,Ve))){if(!me.dispatchEvent){he.state.pasteIncoming=+new Date,fe.focus();return}var Xe=new Event("paste");Xe.clipboardData=Ve.clipboardData,me.dispatchEvent(Xe)}}),st(ie.lineSpace,"selectstart",function(Ve){us(ie,Ve)||Yi(Ve)}),st(me,"compositionstart",function(){var Ve=he.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:Ve,range:he.markText(Ve,he.getCursor("to"),{className:"CodeMirror-composing"})}}),st(me,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},Cu.prototype.createField=function(ie){this.wrapper=tg(),this.textarea=this.wrapper.firstChild},Cu.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Cu.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,fe=ie.doc,he=Wt(ie);if(ie.options.moveInputWithCursor){var me=cl(ie,fe.sel.primary().head,"div"),De=ae.wrapper.getBoundingClientRect(),Ve=ae.lineDiv.getBoundingClientRect();he.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,me.top+Ve.top-De.top)),he.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,me.left+Ve.left-De.left))}return he},Cu.prototype.showSelection=function(ie){var ae=this.cm,fe=ae.display;yt(fe.cursorDiv,ie.cursors),yt(fe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Cu.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var fe=ae.getSelection();this.textarea.value=fe,ae.state.focused&&wi(this.textarea),Dt&&jt>=9&&(this.hasSelection=fe)}else ie||(this.prevInput=this.textarea.value="",Dt&&jt>=9&&(this.hasSelection=null))}},Cu.prototype.getField=function(){return this.textarea},Cu.prototype.supportsTouch=function(){return!1},Cu.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Yt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Cu.prototype.blur=function(){this.textarea.blur()},Cu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Cu.prototype.receivedFocus=function(){this.slowPoll()},Cu.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Cu.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function fe(){var he=ae.poll();!he&&!ie?(ie=!0,ae.polling.set(60,fe)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,fe)},Cu.prototype.poll=function(){var ie=this,ae=this.cm,fe=this.textarea,he=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Be(fe)&&!he&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var me=fe.value;if(me==he&&!ae.somethingSelected())return!1;if(Dt&&jt>=9&&this.hasSelection===me||de&&/[\uf700-\uf7ff]/.test(me))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var De=me.charCodeAt(0);if(De==8203&&!he&&(he="\u200B"),De==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ve=0,Xe=Math.min(he.length,me.length);Ve<Xe&&he.charCodeAt(Ve)==me.charCodeAt(Ve);)++Ve;return va(ae,function(){Th(ae,me.slice(Ve),he.length-Ve,null,ie.composing?"*compose":null),me.length>1e3||me.indexOf(`
|
|
`)>-1?fe.value=ie.prevInput="":ie.prevInput=me,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Cu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Cu.prototype.onKeyPress=function(){Dt&&jt>=9&&(this.hasSelection=null),this.fastPoll()},Cu.prototype.onContextMenu=function(ie){var ae=this,fe=ae.cm,he=fe.display,me=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var De=zl(fe,ie),Ve=he.scroller.scrollTop;if(!De||Et)return;var Xe=fe.options.resetSelectionOnContextMenu;Xe&&fe.doc.sel.contains(De)==-1&&As(fe,fu)(fe.doc,ru(De),nn);var Oe=me.style.cssText,qe=ae.wrapper.style.cssText,Rt=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(ie.clientY-Rt.top-5)+"px; left: "+(ie.clientX-Rt.left-5)+`px;
|
|
z-index: 1000; background: `+(Dt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var gt;Ge&&(gt=window.scrollY),he.input.focus(),Ge&&window.scrollTo(null,gt),he.input.reset(),fe.somethingSelected()||(me.value=ae.prevInput=" "),ae.contextMenuPending=fn,he.selForContextMenu=fe.doc.sel,clearTimeout(he.detectingSelectAll);function Pn(){if(me.selectionStart!=null){var Bi=fe.somethingSelected(),nr="\u200B"+(Bi?me.value:"");me.value="\u21DA",me.value=nr,ae.prevInput=Bi?"":"\u200B",me.selectionStart=1,me.selectionEnd=nr.length,he.selForContextMenu=fe.doc.sel}}function fn(){if(ae.contextMenuPending==fn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=qe,me.style.cssText=Oe,Dt&&jt<9&&he.scrollbars.setScrollTop(he.scroller.scrollTop=Ve),me.selectionStart!=null)){(!Dt||Dt&&jt<9)&&Pn();var Bi=0,nr=function(){he.selForContextMenu==fe.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&ae.prevInput=="\u200B"?As(fe,Rl)(fe):Bi++<10?he.detectingSelectAll=setTimeout(nr,500):(he.selForContextMenu=null,he.input.reset())};he.detectingSelectAll=setTimeout(nr,200)}}if(Dt&&jt>=9&&Pn(),ke){io(ie);var Ci=function(){sn(window,"mouseup",Ci),setTimeout(fn,20)};st(window,"mouseup",Ci)}else setTimeout(fn,50)},Cu.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Cu.prototype.setUneditable=function(){},Cu.prototype.needsContentAttribute=!1;function Bg(ie,ae){if(ae=ae?ui(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var fe=Yt();ae.autofocus=fe==ie||ie.getAttribute("autofocus")!=null&&fe==document.body}function he(){ie.value=Xe.getValue()}var me;if(ie.form&&(st(ie.form,"submit",he),!ae.leaveSubmitMethodAlone)){var De=ie.form;me=De.submit;try{var Ve=De.submit=function(){he(),De.submit=me,De.submit(),De.submit=Ve}}catch(Oe){}}ae.finishInit=function(Oe){Oe.save=he,Oe.getTextArea=function(){return ie},Oe.toTextArea=function(){Oe.toTextArea=isNaN,he(),ie.parentNode.removeChild(Oe.getWrapperElement()),ie.style.display="",ie.form&&(sn(ie.form,"submit",he),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=me))}},ie.style.display="none";var Xe=Bs(function(Oe){return ie.parentNode.insertBefore(Oe,ie.nextSibling)},ae);return Xe}function vh(ie){ie.off=sn,ie.on=st,ie.wheelEventPixels=Js,ie.Doc=xr,ie.splitLines=Tr,ie.countColumn=tt,ie.findColumn=yi,ie.isWordChar=ii,ie.Pass=Qn,ie.signal=en,ie.Line=sa,ie.changeEnd=Sl,ie.scrollbarModel=zs,ie.Pos=Ft,ie.cmpPos=bt,ie.modes=Oi,ie.mimeModes=Ri,ie.resolveMode=Zt,ie.getMode=ln,ie.modeExtensions=Tt,ie.extendMode=An,ie.copyState=Hi,ie.startState=sr,ie.innerMode=gr,ie.commands=Ka,ie.keyMap=Fr,ie.keyName=ms,ie.isModifierKey=Si,ie.lookupKey=Uo,ie.normalizeKeyMap=xo,ie.StringStream=Rn,ie.SharedTextMarker=pi,ie.TextMarker=Ne,ie.LineWidget=Oc,ie.e_preventDefault=Yi,ie.e_stopPropagation=fi,ie.e_stop=io,ie.addClass=yn,ie.contains=It,ie.rmClass=ot,ie.keyNames=To}qd(Bs),Ed(Bs);var Wd="iter insert remove copy getEditor constructor".split(" ");for(var Ih in xr.prototype)xr.prototype.hasOwnProperty(Ih)&&mn(Wd,Ih)<0&&(Bs.prototype[Ih]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(xr.prototype[Ih]));return In(xr),Bs.inputStyles={textarea:Cu,contenteditable:Xs},Bs.defineMode=function(ie){!Bs.defaults.mode&&ie!="null"&&(Bs.defaults.mode=ie),ci.apply(this,arguments)},Bs.defineMIME=Un,Bs.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Bs.defineMIME("text/plain","null"),Bs.defineExtension=function(ie,ae){Bs.prototype[ie]=ae},Bs.defineDocExtension=function(ie,ae){xr.prototype[ie]=ae},Bs.fromTextArea=Bg,vh(Bs),Bs.version="5.58.2",Bs})},25419:function($t,zn,we){(function(ce){ce(we(89780),we(15525),we(98101))})(function(ce){"use strict";ce.defineMode("markdown",function(at,Lt){var kt=ce.getMode(at,"text/html"),Dt=kt.name=="null";function jt(tt){if(ce.findModeByName){var He=ce.findModeByName(tt);He&&(tt=He.mime||He.mimes[0])}var mn=ce.getMode(at,tt);return mn.name=="null"?null:mn}Lt.highlightFormatting===void 0&&(Lt.highlightFormatting=!1),Lt.maxBlockquoteDepth===void 0&&(Lt.maxBlockquoteDepth=0),Lt.taskLists===void 0&&(Lt.taskLists=!1),Lt.strikethrough===void 0&&(Lt.strikethrough=!1),Lt.emoji===void 0&&(Lt.emoji=!1),Lt.fencedCodeBlockHighlighting===void 0&&(Lt.fencedCodeBlockHighlighting=!0),Lt.fencedCodeBlockDefaultMode===void 0&&(Lt.fencedCodeBlockDefaultMode="text/plain"),Lt.xml===void 0&&(Lt.xml=!0),Lt.tokenTypeOverrides===void 0&&(Lt.tokenTypeOverrides={});var Ge={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 Mt in Ge)Ge.hasOwnProperty(Mt)&&Lt.tokenTypeOverrides[Mt]&&(Ge[Mt]=Lt.tokenTypeOverrides[Mt]);var Ct=/^([*\-_])(?:\s*\1){2,}\s*$/,Et=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,xt=/^\[(x| )\](?=\s)/i,Gt=Lt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ut=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Re=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,de=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,le=" ";function pe(tt,He,mn){return He.f=He.inline=mn,mn(tt,He)}function xe(tt,He,mn){return He.f=He.block=mn,mn(tt,He)}function Ae(tt){return!tt||!/\S/.test(tt.string)}function ke(tt){if(tt.linkTitle=!1,tt.linkHref=!1,tt.linkText=!1,tt.em=!1,tt.strong=!1,tt.strikethrough=!1,tt.quote=0,tt.indentedCode=!1,tt.f==ot){var He=Dt;if(!He){var mn=ce.innerMode(kt,tt.htmlState);He=mn.mode.name=="xml"&&mn.state.tagStart===null&&!mn.state.context&&mn.state.tokenize.isInText}He&&(tt.f=Kt,tt.block=Me,tt.htmlState=null)}return tt.trailingSpace=0,tt.trailingSpaceNewLine=!1,tt.prevLine=tt.thisLine,tt.thisLine={stream:null},null}function Me(tt,He){var mn=tt.column()===He.indentation,Zn=Ae(He.prevLine.stream),Qn=He.indentedCode,nn=He.prevLine.hr,gn=He.list!==!1,Ln=(He.listStack[He.listStack.length-1]||0)+3;He.indentedCode=!1;var yi=He.indentation;if(He.indentationDiff===null&&(He.indentationDiff=He.indentation,gn)){for(He.list=null;yi<He.listStack[He.listStack.length-1];)He.listStack.pop(),He.listStack.length?He.indentation=He.listStack[He.listStack.length-1]:He.list=!1;He.list!==!1&&(He.indentationDiff=yi-He.listStack[He.listStack.length-1])}var Yn=!Zn&&!nn&&!He.prevLine.header&&(!gn||!Qn)&&!He.prevLine.fencedCodeEnd,Ai=(He.list===!1||nn||Zn)&&He.indentation<=Ln&&tt.match(Ct),mt=null;if(He.indentationDiff>=4&&(Qn||He.prevLine.fencedCodeEnd||He.prevLine.header||Zn))return tt.skipToEnd(),He.indentedCode=!0,Ge.code;if(tt.eatSpace())return null;if(mn&&He.indentation<=Ln&&(mt=tt.match(Gt))&&mt[1].length<=6)return He.quote=0,He.header=mt[1].length,He.thisLine.header=!0,Lt.highlightFormatting&&(He.formatting="header"),He.f=He.inline,yt(He);if(He.indentation<=Ln&&tt.eat(">"))return He.quote=mn?1:He.quote+1,Lt.highlightFormatting&&(He.formatting="quote"),tt.eatSpace(),yt(He);if(!Ai&&!He.setext&&mn&&He.indentation<=Ln&&(mt=tt.match(Et))){var ht=mt[1]?"ol":"ul";return He.indentation=yi+tt.current().length,He.list=!0,He.quote=0,He.listStack.push(He.indentation),He.em=!1,He.strong=!1,He.code=!1,He.strikethrough=!1,Lt.taskLists&&tt.match(xt,!1)&&(He.taskList=!0),He.f=He.inline,Lt.highlightFormatting&&(He.formatting=["list","list-"+ht]),yt(He)}else{if(mn&&He.indentation<=Ln&&(mt=tt.match(te,!0)))return He.quote=0,He.fencedEndRE=new RegExp(mt[1]+"+ *$"),He.localMode=Lt.fencedCodeBlockHighlighting&&jt(mt[2]||Lt.fencedCodeBlockDefaultMode),He.localMode&&(He.localState=ce.startState(He.localMode)),He.f=He.block=dt,Lt.highlightFormatting&&(He.formatting="code-block"),He.code=-1,yt(He);if(He.setext||(!Yn||!gn)&&!He.quote&&He.list===!1&&!He.code&&!Ai&&!ne.test(tt.string)&&(mt=tt.lookAhead(1))&&(mt=mt.match(Ut)))return He.setext?(He.header=He.setext,He.setext=0,tt.skipToEnd(),Lt.highlightFormatting&&(He.formatting="header")):(He.header=mt[0].charAt(0)=="="?1:2,He.setext=He.header),He.thisLine.header=!0,He.f=He.inline,yt(He);if(Ai)return tt.skipToEnd(),He.hr=!0,He.thisLine.hr=!0,Ge.hr;if(tt.peek()==="[")return pe(tt,He,Mi)}return pe(tt,He,He.inline)}function ot(tt,He){var mn=kt.token(tt,He.htmlState);if(!Dt){var Zn=ce.innerMode(kt,He.htmlState);(Zn.mode.name=="xml"&&Zn.state.tagStart===null&&!Zn.state.context&&Zn.state.tokenize.isInText||He.md_inside&&tt.current().indexOf(">")>-1)&&(He.f=Kt,He.block=Me,He.htmlState=null)}return mn}function dt(tt,He){var mn=He.listStack[He.listStack.length-1]||0,Zn=He.indentation<mn,Qn=mn+3;if(He.fencedEndRE&&He.indentation<=Qn&&(Zn||tt.match(He.fencedEndRE))){Lt.highlightFormatting&&(He.formatting="code-block");var nn;return Zn||(nn=yt(He)),He.localMode=He.localState=null,He.block=Me,He.f=Kt,He.fencedEndRE=null,He.code=0,He.thisLine.fencedCodeEnd=!0,Zn?xe(tt,He,He.block):nn}else return He.localMode?He.localMode.token(tt,He.localState):(tt.skipToEnd(),Ge.code)}function yt(tt){var He=[];if(tt.formatting){He.push(Ge.formatting),typeof tt.formatting=="string"&&(tt.formatting=[tt.formatting]);for(var mn=0;mn<tt.formatting.length;mn++)He.push(Ge.formatting+"-"+tt.formatting[mn]),tt.formatting[mn]==="header"&&He.push(Ge.formatting+"-"+tt.formatting[mn]+"-"+tt.header),tt.formatting[mn]==="quote"&&(!Lt.maxBlockquoteDepth||Lt.maxBlockquoteDepth>=tt.quote?He.push(Ge.formatting+"-"+tt.formatting[mn]+"-"+tt.quote):He.push("error"))}if(tt.taskOpen)return He.push("meta"),He.length?He.join(" "):null;if(tt.taskClosed)return He.push("property"),He.length?He.join(" "):null;if(tt.linkHref?He.push(Ge.linkHref,"url"):(tt.strong&&He.push(Ge.strong),tt.em&&He.push(Ge.em),tt.strikethrough&&He.push(Ge.strikethrough),tt.emoji&&He.push(Ge.emoji),tt.linkText&&He.push(Ge.linkText),tt.code&&He.push(Ge.code),tt.image&&He.push(Ge.image),tt.imageAltText&&He.push(Ge.imageAltText,"link"),tt.imageMarker&&He.push(Ge.imageMarker)),tt.header&&He.push(Ge.header,Ge.header+"-"+tt.header),tt.quote&&(He.push(Ge.quote),!Lt.maxBlockquoteDepth||Lt.maxBlockquoteDepth>=tt.quote?He.push(Ge.quote+"-"+tt.quote):He.push(Ge.quote+"-"+Lt.maxBlockquoteDepth)),tt.list!==!1){var Zn=(tt.listStack.length-1)%3;Zn?Zn===1?He.push(Ge.list2):He.push(Ge.list3):He.push(Ge.list1)}return tt.trailingSpaceNewLine?He.push("trailing-space-new-line"):tt.trailingSpace&&He.push("trailing-space-"+(tt.trailingSpace%2?"a":"b")),He.length?He.join(" "):null}function vt(tt,He){if(tt.match(Re,!0))return yt(He)}function Kt(tt,He){var mn=He.text(tt,He);if(typeof mn!="undefined")return mn;if(He.list)return He.list=null,yt(He);if(He.taskList){var Zn=tt.match(xt,!0)[1]===" ";return Zn?He.taskOpen=!0:He.taskClosed=!0,Lt.highlightFormatting&&(He.formatting="task"),He.taskList=!1,yt(He)}if(He.taskOpen=!1,He.taskClosed=!1,He.header&&tt.match(/^#+$/,!0))return Lt.highlightFormatting&&(He.formatting="header"),yt(He);var Qn=tt.next();if(He.linkTitle){He.linkTitle=!1;var nn=Qn;Qn==="("&&(nn=")"),nn=(nn+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var gn="^\\s*(?:[^"+nn+"\\\\]+|\\\\\\\\|\\\\.)"+nn;if(tt.match(new RegExp(gn),!0))return Ge.linkHref}if(Qn==="`"){var Ln=He.formatting;Lt.highlightFormatting&&(He.formatting="code"),tt.eatWhile("`");var yi=tt.current().length;if(He.code==0&&(!He.quote||yi==1))return He.code=yi,yt(He);if(yi==He.code){var Yn=yt(He);return He.code=0,Yn}else return He.formatting=Ln,yt(He)}else if(He.code)return yt(He);if(Qn==="\\"&&(tt.next(),Lt.highlightFormatting)){var Ai=yt(He),mt=Ge.formatting+"-escape";return Ai?Ai+" "+mt:mt}if(Qn==="!"&&tt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return He.imageMarker=!0,He.image=!0,Lt.highlightFormatting&&(He.formatting="image"),yt(He);if(Qn==="["&&He.imageMarker&&tt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return He.imageMarker=!1,He.imageAltText=!0,Lt.highlightFormatting&&(He.formatting="image"),yt(He);if(Qn==="]"&&He.imageAltText){Lt.highlightFormatting&&(He.formatting="image");var Ai=yt(He);return He.imageAltText=!1,He.image=!1,He.inline=He.f=It,Ai}if(Qn==="["&&!He.image)return He.linkText&&tt.match(/^.*?\]/)||(He.linkText=!0,Lt.highlightFormatting&&(He.formatting="link")),yt(He);if(Qn==="]"&&He.linkText){Lt.highlightFormatting&&(He.formatting="link");var Ai=yt(He);return He.linkText=!1,He.inline=He.f=tt.match(/\(.*?\)| ?\[.*?\]/,!1)?It:Kt,Ai}if(Qn==="<"&&tt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=wt,Lt.highlightFormatting&&(He.formatting="link");var Ai=yt(He);return Ai?Ai+=" ":Ai="",Ai+Ge.linkInline}if(Qn==="<"&&tt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=wt,Lt.highlightFormatting&&(He.formatting="link");var Ai=yt(He);return Ai?Ai+=" ":Ai="",Ai+Ge.linkEmail}if(Lt.xml&&Qn==="<"&&tt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ht=tt.string.indexOf(">",tt.pos);if(ht!=-1){var un=tt.string.substring(tt.start,ht);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(un)&&(He.md_inside=!0)}return tt.backUp(1),He.htmlState=ce.startState(kt),xe(tt,He,ot)}if(Lt.xml&&Qn==="<"&&tt.match(/^\/\w*?>/))return He.md_inside=!1,"tag";if(Qn==="*"||Qn==="_"){for(var Sn=1,Dn=tt.pos==1?" ":tt.string.charAt(tt.pos-2);Sn<3&&tt.eat(Qn);)Sn++;var kn=tt.peek()||" ",ii=!/\s/.test(kn)&&(!de.test(kn)||/\s/.test(Dn)||de.test(Dn)),Hn=!/\s/.test(Dn)&&(!de.test(Dn)||/\s/.test(kn)||de.test(kn)),Di=null,hn=null;if(Sn%2&&(!He.em&&ii&&(Qn==="*"||!Hn||de.test(Dn))?Di=!0:He.em==Qn&&Hn&&(Qn==="*"||!ii||de.test(kn))&&(Di=!1)),Sn>1&&(!He.strong&&ii&&(Qn==="*"||!Hn||de.test(Dn))?hn=!0:He.strong==Qn&&Hn&&(Qn==="*"||!ii||de.test(kn))&&(hn=!1)),hn!=null||Di!=null){Lt.highlightFormatting&&(He.formatting=Di==null?"strong":hn==null?"em":"strong em"),Di===!0&&(He.em=Qn),hn===!0&&(He.strong=Qn);var Yn=yt(He);return Di===!1&&(He.em=!1),hn===!1&&(He.strong=!1),Yn}}else if(Qn===" "&&(tt.eat("*")||tt.eat("_"))){if(tt.peek()===" ")return yt(He);tt.backUp(1)}if(Lt.strikethrough){if(Qn==="~"&&tt.eatWhile(Qn)){if(He.strikethrough){Lt.highlightFormatting&&(He.formatting="strikethrough");var Yn=yt(He);return He.strikethrough=!1,Yn}else if(tt.match(/^[^\s]/,!1))return He.strikethrough=!0,Lt.highlightFormatting&&(He.formatting="strikethrough"),yt(He)}else if(Qn===" "&&tt.match(/^~~/,!0)){if(tt.peek()===" ")return yt(He);tt.backUp(2)}}if(Lt.emoji&&Qn===":"&&tt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){He.emoji=!0,Lt.highlightFormatting&&(He.formatting="emoji");var rt=yt(He);return He.emoji=!1,rt}return Qn===" "&&(tt.match(/^ +$/,!1)?He.trailingSpace++:He.trailingSpace&&(He.trailingSpaceNewLine=!0)),yt(He)}function wt(tt,He){var mn=tt.next();if(mn===">"){He.f=He.inline=Kt,Lt.highlightFormatting&&(He.formatting="link");var Zn=yt(He);return Zn?Zn+=" ":Zn="",Zn+Ge.linkInline}return tt.match(/^[^>]+/,!0),Ge.linkInline}function It(tt,He){if(tt.eatSpace())return null;var mn=tt.next();return mn==="("||mn==="["?(He.f=He.inline=yn(mn==="("?")":"]"),Lt.highlightFormatting&&(He.formatting="link-string"),He.linkHref=!0,yt(He)):"error"}var Yt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function yn(tt){return function(He,mn){var Zn=He.next();if(Zn===tt){mn.f=mn.inline=Kt,Lt.highlightFormatting&&(mn.formatting="link-string");var Qn=yt(mn);return mn.linkHref=!1,Qn}return He.match(Yt[tt]),mn.linkHref=!0,yt(mn)}}function Mi(tt,He){return tt.match(/^([^\]\\]|\\.)*\]:/,!1)?(He.f=wi,tt.next(),Lt.highlightFormatting&&(He.formatting="link"),He.linkText=!0,yt(He)):pe(tt,He,Kt)}function wi(tt,He){if(tt.match(/^\]:/,!0)){He.f=He.inline=Nn,Lt.highlightFormatting&&(He.formatting="link");var mn=yt(He);return He.linkText=!1,mn}return tt.match(/^([^\]\\]|\\.)+/,!0),Ge.linkText}function Nn(tt,He){return tt.eatSpace()?null:(tt.match(/^[^\s]+/,!0),tt.peek()===void 0?He.linkTitle=!0:tt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),He.f=He.inline=Kt,Ge.linkHref+" url")}var ui={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:Kt,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(tt){return{f:tt.f,prevLine:tt.prevLine,thisLine:tt.thisLine,block:tt.block,htmlState:tt.htmlState&&ce.copyState(kt,tt.htmlState),indentation:tt.indentation,localMode:tt.localMode,localState:tt.localMode?ce.copyState(tt.localMode,tt.localState):null,inline:tt.inline,text:tt.text,formatting:!1,linkText:tt.linkText,linkTitle:tt.linkTitle,linkHref:tt.linkHref,code:tt.code,em:tt.em,strong:tt.strong,strikethrough:tt.strikethrough,emoji:tt.emoji,header:tt.header,setext:tt.setext,hr:tt.hr,taskList:tt.taskList,list:tt.list,listStack:tt.listStack.slice(0),quote:tt.quote,indentedCode:tt.indentedCode,trailingSpace:tt.trailingSpace,trailingSpaceNewLine:tt.trailingSpaceNewLine,md_inside:tt.md_inside,fencedEndRE:tt.fencedEndRE}},token:function(tt,He){if(He.formatting=!1,tt!=He.thisLine.stream){if(He.header=0,He.hr=!1,tt.match(/^\s*$/,!0))return ke(He),null;if(He.prevLine=He.thisLine,He.thisLine={stream:tt},He.taskList=!1,He.trailingSpace=0,He.trailingSpaceNewLine=!1,!He.localState&&(He.f=He.block,He.f!=ot)){var mn=tt.match(/^\s*/,!0)[0].replace(/\t/g,le).length;if(He.indentation=mn,He.indentationDiff=null,mn>0)return null}}return He.f(tt,He)},innerMode:function(tt){return tt.block==ot?{state:tt.htmlState,mode:kt}:tt.localState?{state:tt.localState,mode:tt.localMode}:{state:tt,mode:ui}},indent:function(tt,He,mn){return tt.block==ot&&kt.indent?kt.indent(tt.htmlState,He,mn):tt.localState&&tt.localMode.indent?tt.localMode.indent(tt.localState,He,mn):ce.Pass},blankLine:ke,getType:yt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ui},"xml"),ce.defineMIME("text/markdown","markdown"),ce.defineMIME("text/x-markdown","markdown")})},98101:function($t,zn,we){(function(ce){ce(we(89780))})(function(ce){"use strict";ce.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 at=0;at<ce.modeInfo.length;at++){var Lt=ce.modeInfo[at];Lt.mimes&&(Lt.mime=Lt.mimes[0])}ce.findModeByMIME=function(kt){kt=kt.toLowerCase();for(var Dt=0;Dt<ce.modeInfo.length;Dt++){var jt=ce.modeInfo[Dt];if(jt.mime==kt)return jt;if(jt.mimes){for(var Ge=0;Ge<jt.mimes.length;Ge++)if(jt.mimes[Ge]==kt)return jt}}if(/\+xml$/.test(kt))return ce.findModeByMIME("application/xml");if(/\+json$/.test(kt))return ce.findModeByMIME("application/json")},ce.findModeByExtension=function(kt){kt=kt.toLowerCase();for(var Dt=0;Dt<ce.modeInfo.length;Dt++){var jt=ce.modeInfo[Dt];if(jt.ext){for(var Ge=0;Ge<jt.ext.length;Ge++)if(jt.ext[Ge]==kt)return jt}}},ce.findModeByFileName=function(kt){for(var Dt=0;Dt<ce.modeInfo.length;Dt++){var jt=ce.modeInfo[Dt];if(jt.file&&jt.file.test(kt))return jt}var Ge=kt.lastIndexOf("."),Mt=Ge>-1&&kt.substring(Ge+1,kt.length);if(Mt)return ce.findModeByExtension(Mt)},ce.findModeByName=function(kt){kt=kt.toLowerCase();for(var Dt=0;Dt<ce.modeInfo.length;Dt++){var jt=ce.modeInfo[Dt];if(jt.name.toLowerCase()==kt)return jt;if(jt.alias){for(var Ge=0;Ge<jt.alias.length;Ge++)if(jt.alias[Ge].toLowerCase()==kt)return jt}}}})},67549:function($t,zn,we){(function(ce){ce(we(89780))})(function(ce){"use strict";ce.defineMode("stex",function(at,Lt){"use strict";function kt(Re,te){Re.cmdState.push(te)}function Dt(Re){return Re.cmdState.length>0?Re.cmdState[Re.cmdState.length-1]:null}function jt(Re){var te=Re.cmdState.pop();te&&te.closeBracket()}function Ge(Re){for(var te=Re.cmdState,ne=te.length-1;ne>=0;ne--){var de=te[ne];if(de.name!="DEFAULT")return de}return{styleIdentifier:function(){return null}}}function Mt(Re,te,ne){return function(){this.name=Re,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ct={};Ct.importmodule=Mt("importmodule","tag",["string","builtin"]),Ct.documentclass=Mt("documentclass","tag",["","atom"]),Ct.usepackage=Mt("usepackage","tag",["atom"]),Ct.begin=Mt("begin","tag",["atom"]),Ct.end=Mt("end","tag",["atom"]),Ct.label=Mt("label","tag",["atom"]),Ct.ref=Mt("ref","tag",["atom"]),Ct.eqref=Mt("eqref","tag",["atom"]),Ct.cite=Mt("cite","tag",["atom"]),Ct.bibitem=Mt("bibitem","tag",["atom"]),Ct.Bibitem=Mt("Bibitem","tag",["atom"]),Ct.RBibitem=Mt("RBibitem","tag",["atom"]),Ct.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Et(Re,te){Re.f=te}function xt(Re,te){var ne;if(Re.match(/^\\[a-zA-Z@]+/)){var de=Re.current().slice(1);return ne=Ct.hasOwnProperty(de)?Ct[de]:Ct.DEFAULT,ne=new ne,kt(te,ne),Et(te,Ut),ne.style}if(Re.match(/^\\[$&%#{}_]/)||Re.match(/^\\[,;!\/\\]/))return"tag";if(Re.match("\\["))return Et(te,function(pe,xe){return Gt(pe,xe,"\\]")}),"keyword";if(Re.match("\\("))return Et(te,function(pe,xe){return Gt(pe,xe,"\\)")}),"keyword";if(Re.match("$$"))return Et(te,function(pe,xe){return Gt(pe,xe,"$$")}),"keyword";if(Re.match("$"))return Et(te,function(pe,xe){return Gt(pe,xe,"$")}),"keyword";var le=Re.next();if(le=="%")return Re.skipToEnd(),"comment";if(le=="}"||le=="]"){if(ne=Dt(te),ne)ne.closeBracket(le),Et(te,Ut);else return"error";return"bracket"}else return le=="{"||le=="["?(ne=Ct.DEFAULT,ne=new ne,kt(te,ne),"bracket"):/\d/.test(le)?(Re.eatWhile(/[\w.%]/),"atom"):(Re.eatWhile(/[\w\-_]/),ne=Ge(te),ne.name=="begin"&&(ne.argument=Re.current()),ne.styleIdentifier())}function Gt(Re,te,ne){if(Re.eatSpace())return null;if(ne&&Re.match(ne))return Et(te,xt),"keyword";if(Re.match(/^\\[a-zA-Z@]+/))return"tag";if(Re.match(/^[a-zA-Z]+/))return"variable-2";if(Re.match(/^\\[$&%#{}_]/)||Re.match(/^\\[,;!\/]/)||Re.match(/^[\^_&]/))return"tag";if(Re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var de=Re.next();return de=="{"||de=="}"||de=="["||de=="]"||de=="("||de==")"?"bracket":de=="%"?(Re.skipToEnd(),"comment"):"error"}function Ut(Re,te){var ne=Re.peek(),de;return ne=="{"||ne=="["?(de=Dt(te),de.openBracket(ne),Re.eat(ne),Et(te,xt),"bracket"):/[ \t\r]/.test(ne)?(Re.eat(ne),null):(Et(te,xt),jt(te),xt(Re,te))}return{startState:function(){var Re=Lt.inMathMode?function(te,ne){return Gt(te,ne)}:xt;return{cmdState:[],f:Re}},copyState:function(Re){return{cmdState:Re.cmdState.slice(),f:Re.f}},token:function(Re,te){return te.f(Re,te)},blankLine:function(Re){Re.f=xt,Re.cmdState.length=0},lineComment:"%"}}),ce.defineMIME("text/x-stex","stex"),ce.defineMIME("text/x-latex","stex")})},15525:function($t,zn,we){(function(ce){ce(we(89780))})(function(ce){"use strict";var at={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},Lt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ce.defineMode("xml",function(kt,Dt){var jt=kt.indentUnit,Ge={},Mt=Dt.htmlMode?at:Lt;for(var Ct in Mt)Ge[Ct]=Mt[Ct];for(var Ct in Dt)Ge[Ct]=Dt[Ct];var Et,xt;function Gt(wt,It){function Yt(wi){return It.tokenize=wi,wi(wt,It)}var yn=wt.next();if(yn=="<")return wt.eat("!")?wt.eat("[")?wt.match("CDATA[")?Yt(te("atom","]]>")):null:wt.match("--")?Yt(te("comment","-->")):wt.match("DOCTYPE",!0,!0)?(wt.eatWhile(/[\w\._\-]/),Yt(ne(1))):null:wt.eat("?")?(wt.eatWhile(/[\w\._\-]/),It.tokenize=te("meta","?>"),"meta"):(Et=wt.eat("/")?"closeTag":"openTag",It.tokenize=Ut,"tag bracket");if(yn=="&"){var Mi;return wt.eat("#")?wt.eat("x")?Mi=wt.eatWhile(/[a-fA-F\d]/)&&wt.eat(";"):Mi=wt.eatWhile(/[\d]/)&&wt.eat(";"):Mi=wt.eatWhile(/[\w\.\-:]/)&&wt.eat(";"),Mi?"atom":"error"}else return wt.eatWhile(/[^&<]/),null}Gt.isInText=!0;function Ut(wt,It){var Yt=wt.next();if(Yt==">"||Yt=="/"&&wt.eat(">"))return It.tokenize=Gt,Et=Yt==">"?"endTag":"selfcloseTag","tag bracket";if(Yt=="=")return Et="equals",null;if(Yt=="<"){It.tokenize=Gt,It.state=xe,It.tagName=It.tagStart=null;var yn=It.tokenize(wt,It);return yn?yn+" tag error":"tag error"}else return/[\'\"]/.test(Yt)?(It.tokenize=Re(Yt),It.stringStartCol=wt.column(),It.tokenize(wt,It)):(wt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Re(wt){var It=function(Yt,yn){for(;!Yt.eol();)if(Yt.next()==wt){yn.tokenize=Ut;break}return"string"};return It.isInAttribute=!0,It}function te(wt,It){return function(Yt,yn){for(;!Yt.eol();){if(Yt.match(It)){yn.tokenize=Gt;break}Yt.next()}return wt}}function ne(wt){return function(It,Yt){for(var yn;(yn=It.next())!=null;){if(yn=="<")return Yt.tokenize=ne(wt+1),Yt.tokenize(It,Yt);if(yn==">")if(wt==1){Yt.tokenize=Gt;break}else return Yt.tokenize=ne(wt-1),Yt.tokenize(It,Yt)}return"meta"}}function de(wt,It,Yt){this.prev=wt.context,this.tagName=It,this.indent=wt.indented,this.startOfLine=Yt,(Ge.doNotIndent.hasOwnProperty(It)||wt.context&&wt.context.noIndent)&&(this.noIndent=!0)}function le(wt){wt.context&&(wt.context=wt.context.prev)}function pe(wt,It){for(var Yt;;){if(!wt.context||(Yt=wt.context.tagName,!Ge.contextGrabbers.hasOwnProperty(Yt)||!Ge.contextGrabbers[Yt].hasOwnProperty(It)))return;le(wt)}}function xe(wt,It,Yt){return wt=="openTag"?(Yt.tagStart=It.column(),Ae):wt=="closeTag"?ke:xe}function Ae(wt,It,Yt){return wt=="word"?(Yt.tagName=It.current(),xt="tag",dt):Ge.allowMissingTagName&&wt=="endTag"?(xt="tag bracket",dt(wt,It,Yt)):(xt="error",Ae)}function ke(wt,It,Yt){if(wt=="word"){var yn=It.current();return Yt.context&&Yt.context.tagName!=yn&&Ge.implicitlyClosed.hasOwnProperty(Yt.context.tagName)&&le(Yt),Yt.context&&Yt.context.tagName==yn||Ge.matchClosing===!1?(xt="tag",Me):(xt="tag error",ot)}else return Ge.allowMissingTagName&&wt=="endTag"?(xt="tag bracket",Me(wt,It,Yt)):(xt="error",ot)}function Me(wt,It,Yt){return wt!="endTag"?(xt="error",Me):(le(Yt),xe)}function ot(wt,It,Yt){return xt="error",Me(wt,It,Yt)}function dt(wt,It,Yt){if(wt=="word")return xt="attribute",yt;if(wt=="endTag"||wt=="selfcloseTag"){var yn=Yt.tagName,Mi=Yt.tagStart;return Yt.tagName=Yt.tagStart=null,wt=="selfcloseTag"||Ge.autoSelfClosers.hasOwnProperty(yn)?pe(Yt,yn):(pe(Yt,yn),Yt.context=new de(Yt,yn,Mi==Yt.indented)),xe}return xt="error",dt}function yt(wt,It,Yt){return wt=="equals"?vt:(Ge.allowMissing||(xt="error"),dt(wt,It,Yt))}function vt(wt,It,Yt){return wt=="string"?Kt:wt=="word"&&Ge.allowUnquoted?(xt="string",dt):(xt="error",dt(wt,It,Yt))}function Kt(wt,It,Yt){return wt=="string"?Kt:dt(wt,It,Yt)}return{startState:function(wt){var It={tokenize:Gt,state:xe,indented:wt||0,tagName:null,tagStart:null,context:null};return wt!=null&&(It.baseIndent=wt),It},token:function(wt,It){if(!It.tagName&&wt.sol()&&(It.indented=wt.indentation()),wt.eatSpace())return null;Et=null;var Yt=It.tokenize(wt,It);return(Yt||Et)&&Yt!="comment"&&(xt=null,It.state=It.state(Et||Yt,wt,It),xt&&(Yt=xt=="error"?Yt+" error":xt)),Yt},indent:function(wt,It,Yt){var yn=wt.context;if(wt.tokenize.isInAttribute)return wt.tagStart==wt.indented?wt.stringStartCol+1:wt.indented+jt;if(yn&&yn.noIndent)return ce.Pass;if(wt.tokenize!=Ut&&wt.tokenize!=Gt)return Yt?Yt.match(/^(\s*)/)[0].length:0;if(wt.tagName)return Ge.multilineTagIndentPastTag!==!1?wt.tagStart+wt.tagName.length+2:wt.tagStart+jt*(Ge.multilineTagIndentFactor||1);if(Ge.alignCDATA&&/<!\[CDATA\[/.test(It))return 0;var Mi=It&&/^<(\/)?([\w_:\.-]*)/.exec(It);if(Mi&&Mi[1])for(;yn;)if(yn.tagName==Mi[2]){yn=yn.prev;break}else if(Ge.implicitlyClosed.hasOwnProperty(yn.tagName))yn=yn.prev;else break;else if(Mi)for(;yn;){var wi=Ge.contextGrabbers[yn.tagName];if(wi&&wi.hasOwnProperty(Mi[2]))yn=yn.prev;else break}for(;yn&&yn.prev&&!yn.startOfLine;)yn=yn.prev;return yn?yn.indent+jt:wt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ge.htmlMode?"html":"xml",helperType:Ge.htmlMode?"html":"xml",skipAttribute:function(wt){wt.state==vt&&(wt.state=dt)},xmlCurrentTag:function(wt){return wt.tagName?{name:wt.tagName,close:wt.type=="closeTag"}:null},xmlCurrentContext:function(wt){for(var It=[],Yt=wt.context;Yt;Yt=Yt.prev)Yt.tagName&&It.push(Yt.tagName);return It.reverse()}}}),ce.defineMIME("text/xml","xml"),ce.defineMIME("application/xml","xml"),ce.mimeModes.hasOwnProperty("text/html")||ce.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function($t,zn,we){"use strict";we.d(zn,{$u:function(){return Ct},BD:function(){return Sn},E9:function(){return Mt},FF:function(){return _o},FJ:function(){return xe},Hn:function(){return pe},KX:function(){return ke},NB:function(){return We},S0:function(){return mt},UL:function(){return Et},Vk:function(){return le},Vm:function(){return Ee},YI:function(){return ht},ZA:function(){return Lt},Zt:function(){return xt},al:function(){return Di},bn:function(){return Hn},bx:function(){return Dn},g2:function(){return un},h1:function(){return vt},hD:function(){return In},l4:function(){return jt},rU:function(){return Ce},s_:function(){return kn},uz:function(){return _t},z6:function(){return Gt}}),$t=we.hmd($t),function(){var Be;function ua(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function eo(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ua(a)}}function Wn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Oi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ri;if(typeof Object.setPrototypeOf=="function")Ri=Object.setPrototypeOf;else{var ci;e:{var Un={a:!0},Zt={};try{Zt.__proto__=Un,ci=Zt.a;break e}catch(a){}ci=!1}Ri=ci?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var ln=Ri;function Tt(a,y){if(a.prototype=Oi(y.prototype),a.prototype.constructor=a,ln)ln(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var An=typeof we.g!="undefined"&&we.g!=null?we.g:self,Hi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},gr=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function sr(a,y){if(y){var x=An;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&gr(x,a,{writable:!0,value:y})}}sr("Object.assign",function(a){return a||Hi}),sr("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var Rn=typeof globalThis=="object"&&globalThis||typeof we.g=="object"&&we.g.global===we.g&&we.g||typeof self=="object"&&self.self===self&&self||{};Rn.requestAnimationFrame===void 0&&(Rn.setImmediate===void 0?Rn.requestAnimationFrame=function(a){Rn.setTimeout(a,0)}:Rn.requestAnimationFrame=Rn.setImmediate);function Ti(){}function qr(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Rn.clearTimeout(x),x=_r(function(){x=-1,a.apply(E,b)},y)}}function _r(a,y){return Rn.setTimeout(a,y)}function di(a){return Rn.document.createElement(a)}function Ot(a){throw Error(a)}function Ii(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ot(a)}function xn(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),Ot(x+" is not in the range "+y+": "+a)}function jn(a){Rn.console&&Rn.console.log(a)}function Ft(a){return typeof a=="object"&&a!==null}function bt(a){return Array.isArray(a)||Rn.NodeList&&a instanceof Rn.NodeList||Rn.HTMLCollection&&a instanceof Rn.HTMLCollection}function rn(a){return Array.prototype.slice.call(a)}function Sr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ot("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function ki(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ot("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Ni(){var a=Ir.pop();return a===void 0?[]:a}function qn(a){a.length=0,Ir.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(Ft(a)&&a.constructor)return Wi(a.constructor);return typeof a}function Hr(a){var y=a;return Ft(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 no(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function vi(a,y,x){Object.defineProperty(Vn.prototype,a,{get:y,set:x})}function Ji(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ee=0;ee<a.length;ee++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Aa=Rn.navigator!==void 0&&0<Rn.navigator.userAgent.indexOf("Trident/7"),uo=Rn.navigator!==void 0&&Rn.navigator.platform!==void 0&&Rn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Ir=[];Object.freeze([]),Ti.className="Util",Ti.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Ti.adym="gojs.net",Ti.vfo="28e645fdb266",Ti.className="Util";function Bt(a,y,x){zr(this),this.j=a,this.xa=y,this.o=x}Bt.prototype.toString=function(){return"EnumValue."+this.xa};function Ht(a,y){return y==null||y===""?null:a[y]}An.Object.defineProperties(Bt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Bt.className="EnumValue";function pn(){this.ew=[]}pn.prototype.toString=function(){return this.ew.join("")},pn.prototype.add=function(a){a!==""&&this.ew.push(a)},pn.className="StringBuilder";function zt(){}zt.className="PropertyCollection";var li={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Rn.console&&Rn.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function ir(){}ir.prototype.reset=function(){},ir.prototype.next=function(){return!1},ir.prototype.Ad=function(){return!1},ir.prototype.first=function(){return null},ir.prototype.any=function(){return!1},ir.prototype.all=function(){return!0},ir.prototype.each=function(){return this},ir.prototype.map=function(){return this},ir.prototype.filter=function(){return this},ir.prototype.de=function(){},ir.prototype.toString=function(){return"EmptyIterator"},An.Object.defineProperties(ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ir.prototype.first=ir.prototype.first,ir.prototype.hasNext=ir.prototype.Ad,ir.prototype.next=ir.prototype.next,ir.prototype.reset=ir.prototype.reset;var cr=null;ir.className="EmptyIterator",cr=new ir;function ri(a){this.key=-1,this.value=a}ri.prototype.reset=function(){this.key=-1},ri.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},ri.prototype.Ad=function(){return this.next()},ri.prototype.first=function(){return this.key=0,this.value},ri.prototype.any=function(a){return this.key=-1,a(this.value)},ri.prototype.all=function(a){return this.key=-1,a(this.value)},ri.prototype.each=function(a){return this.key=-1,a(this.value),this},ri.prototype.map=function(a){return new ri(a(this.value))},ri.prototype.filter=function(a){return a(this.value)?new ri(this.value):cr},ri.prototype.de=function(){this.value=null},ri.prototype.toString=function(){return"SingletonIterator("+this.value+")"},An.Object.defineProperties(ri.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),ri.prototype.first=ri.prototype.first,ri.prototype.hasNext=ri.prototype.Ad,ri.prototype.next=ri.prototype.next,ri.prototype.reset=ri.prototype.reset,ri.className="SingletonIterator";function Ei(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ei.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ei.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Ei.prototype.Ad=function(){return this.next()},Ei.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Ei.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},Ei.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},Ei.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},Ei.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&x.push(a(ee))}return a=new tn,a.s=x,a.xb(),a.iterator},Ei.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&a(ee)&&x.push(ee)}return a=new tn,a.s=x,a.xb(),a.iterator},Ei.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ei.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},An.Object.defineProperties(Ei.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),Ei.prototype.first=Ei.prototype.first,Ei.prototype.hasNext=Ei.prototype.Ad,Ei.prototype.next=Ei.prototype.next,Ei.prototype.reset=Ei.prototype.reset,Ei.className="ListIterator";function Xn(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Xn.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Xn.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)},Xn.prototype.Ad=function(){return this.next()},Xn.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},Xn.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},Xn.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},Xn.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},Xn.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new tn,a.s=x,a.xb(),a.iterator},Xn.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new tn,a.s=x,a.xb(),a.iterator},Xn.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Xn.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},An.Object.defineProperties(Xn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Xn.prototype.first=Xn.prototype.first,Xn.prototype.hasNext=Xn.prototype.Ad,Xn.prototype.next=Xn.prototype.next,Xn.prototype.reset=Xn.prototype.reset,Xn.className="ListIteratorBackwards";function tn(a){zr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ot("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=tn.prototype,Be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.toString=function(){return"List()#"+ur(this)},Be.add=function(a){return a===null?this:(this._isFrozen&&Ii(this,a),this.s.push(a),this.xb(),this)},Be.push=function(a){this.add(a)},Be.addAll=function(a){if(a===null)return this;this._isFrozen&&Ii(this);var y=this.s;if(bt(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Be.clear=function(){this._isFrozen&&Ii(this),this.s.length=0,this.xb()},Be.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Be.has=function(a){return this.contains(a)},Be.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Be.M=function(a){var y=this.s;return(0>a||a>=y.length)&&xn(a,"0 <= i < length",tn,"elt:i"),y[a]},Be.get=function(a){return this.M(a)},Be.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&xn(a,"0 <= i < length",tn,"setElt:i"),this._isFrozen&&Ii(this,a),x[a]=y},Be.set=function(a,y){this.cd(a,y)},Be.first=function(){var a=this.s;return a.length===0?null:a[0]},Be.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Be.pop=function(){this._isFrozen&&Ii(this);var a=this.s;return 0<a.length?a.pop():null},tn.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},tn.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},tn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},tn.prototype.map=function(a){for(var y=new tn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},tn.prototype.filter=function(a){for(var y=new tn,x=[],E=this.s,b=E.length,z=0;z<b;z++){var ee=E[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Be=tn.prototype,Be.Gb=function(a,y){0>a&&xn(a,">= 0",tn,"insertAt:i"),this._isFrozen&&Ii(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Be.remove=function(a){if(a===null)return!1;this._isFrozen&&Ii(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)},Be.delete=function(a){return this.remove(a)},Be.mb=function(a){var y=this.s;(0>a||a>=y.length)&&xn(a,"0 <= i < length",tn,"removeAt:i"),this._isFrozen&&Ii(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Be.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&Ii(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},tn.prototype.copy=function(){var a=new tn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Be=tn.prototype,Be.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Be.Iv=function(){for(var a=new Tn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Be.sort=function(a){return this._isFrozen&&Ii(this),this.s.sort(a),this.xb(),this},Be.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&Ii(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&xn(y,"0 <= from < length",tn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},Be.reverse=function(){return this._isFrozen&&Ii(this),this.s.reverse(),this.xb(),this},An.Object.defineProperties(tn.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 cr;var a=this.Sa;return a!==null?(a.reset(),a):new Ei(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return cr;var a=this.Hg;return a!==null?(a.reset(),a):new Xn(this)}}}),tn.prototype.reverse=tn.prototype.reverse,tn.prototype.sortRange=tn.prototype.zi,tn.prototype.sort=tn.prototype.sort,tn.prototype.toSet=tn.prototype.Iv,tn.prototype.toArray=tn.prototype.Fa,tn.prototype.removeRange=tn.prototype.removeRange,tn.prototype.removeAt=tn.prototype.mb,tn.prototype.delete=tn.prototype.delete,tn.prototype.remove=tn.prototype.remove,tn.prototype.insertAt=tn.prototype.Gb,tn.prototype.pop=tn.prototype.pop,tn.prototype.last=tn.prototype.jc,tn.prototype.first=tn.prototype.first,tn.prototype.set=tn.prototype.set,tn.prototype.setElt=tn.prototype.cd,tn.prototype.get=tn.prototype.get,tn.prototype.elt=tn.prototype.M,tn.prototype.indexOf=tn.prototype.indexOf,tn.prototype.has=tn.prototype.has,tn.prototype.contains=tn.prototype.contains,tn.prototype.clear=tn.prototype.clear,tn.prototype.addAll=tn.prototype.addAll,tn.prototype.push=tn.prototype.push,tn.prototype.add=tn.prototype.add,tn.prototype.thaw=tn.prototype.ka,tn.prototype.freeze=tn.prototype.freeze,tn.className="List";function Jr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Jr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Jr.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)},Jr.prototype.Ad=function(){return this.next()},Jr.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},Jr.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},Jr.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},Jr.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},Jr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Jr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new tn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Jr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Jr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},An.Object.defineProperties(Jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Jr.prototype.first=Jr.prototype.first,Jr.prototype.hasNext=Jr.prototype.Ad,Jr.prototype.next=Jr.prototype.next,Jr.prototype.reset=Jr.prototype.reset,Jr.className="SetIterator";function Tn(a){zr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ot("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=Tn.prototype,Be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.toString=function(){return"Set()#"+ur(this)},Be.add=function(a){if(a===null)return this;this._isFrozen&&Ii(this,a);var y=a;return Ft(a)&&(y=Or(a)),this.Tb[y]===void 0&&(this.Sb++,a=new ro(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},Be.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Ii(this),bt(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},Be.contains=function(a){if(a===null)return!1;var y=a;return Ft(a)&&(y=ur(a),y===void 0)?!1:this.Tb[y]!==void 0},Be.has=function(a){return this.contains(a)},Be.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Be.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Be.first=function(){var a=this.ea;return a===null?null:a.value},Tn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Tn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Tn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Tn.prototype.map=function(a){for(var y=new Tn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Tn.prototype.filter=function(a){for(var y=new Tn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Be=Tn.prototype,Be.remove=function(a){if(a===null)return!1;this._isFrozen&&Ii(this,a);var y=a;if(Ft(a)&&(y=ur(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Be.delete=function(a){return this.remove(a)},Be.hp=function(a){if(a===null)return this;if(this._isFrozen&&Ii(this),bt(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},Be.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Ii(this);var y=new Tn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Be.clear=function(){this._isFrozen&&Ii(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Tn.prototype.copy=function(){var a=new Tn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Tn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},Tn.prototype.Hv=function(){var a=new tn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function zr(a){a.__gohashid=ko++}function Or(a){var y=a.__gohashid;return y===void 0&&(y=ko++,a.__gohashid=y),y}function ur(a){return a.__gohashid}An.Object.defineProperties(Tn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return cr;var a=this.Sa;return a!==null?(a.reset(),a):new Jr(this)}}}),Tn.prototype.toList=Tn.prototype.Hv,Tn.prototype.toArray=Tn.prototype.Fa,Tn.prototype.clear=Tn.prototype.clear,Tn.prototype.retainAll=Tn.prototype.pA,Tn.prototype.removeAll=Tn.prototype.hp,Tn.prototype.delete=Tn.prototype.delete,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.first=Tn.prototype.first,Tn.prototype.containsAny=Tn.prototype.Ty,Tn.prototype.containsAll=Tn.prototype.Sy,Tn.prototype.has=Tn.prototype.has,Tn.prototype.contains=Tn.prototype.contains,Tn.prototype.addAll=Tn.prototype.addAll,Tn.prototype.add=Tn.prototype.add,Tn.prototype.thaw=Tn.prototype.ka,Tn.prototype.freeze=Tn.prototype.freeze;var ko=1;Tn.className="Set",Tn.uniqueHash=zr,Tn.hashIdUnique=Or,Tn.hashId=ur;function Zr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Zr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Zr.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)},Zr.prototype.Ad=function(){return this.next()},Zr.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},Zr.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},Zr.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},Zr.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},Zr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Zr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new tn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Zr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Zr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},An.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),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="MapKeySetIterator";function Gi(a){Tn.call(this),zr(this),this._isFrozen=!0,this.ma=a}Tt(Gi,Tn),Be=Gi.prototype,Be.freeze=function(){return this},Be.ka=function(){return this},Be.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Be.add=function(){Ot("This Set is read-only: "+this.toString())},Be.contains=function(a){return this.ma.contains(a)},Be.has=function(a){return this.contains(a)},Be.remove=function(){Ot("This Set is read-only: "+this.toString())},Be.delete=function(a){return this.remove(a)},Be.clear=function(){Ot("This Set is read-only: "+this.toString())},Be.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Gi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Gi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Gi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Gi.prototype.map=function(a){for(var y=new Tn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Gi.prototype.filter=function(a){for(var y=new Tn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Gi.prototype.copy=function(){return new Gi(this.ma)},Gi.prototype.Iv=function(){var a=new Tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Gi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Gi.prototype.Hv=function(){var a=new tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},An.Object.defineProperties(Gi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?cr:new Zr(this.ma)}}}),Gi.prototype.toList=Gi.prototype.Hv,Gi.prototype.toArray=Gi.prototype.Fa,Gi.prototype.toSet=Gi.prototype.Iv,Gi.prototype.first=Gi.prototype.first,Gi.prototype.clear=Gi.prototype.clear,Gi.prototype.delete=Gi.prototype.delete,Gi.prototype.remove=Gi.prototype.remove,Gi.prototype.has=Gi.prototype.has,Gi.prototype.contains=Gi.prototype.contains,Gi.prototype.add=Gi.prototype.add,Gi.prototype.thaw=Gi.prototype.ka,Gi.prototype.freeze=Gi.prototype.freeze,Gi.className="MapKeySet";function Er(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Er.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Er.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)},Er.prototype.Ad=function(){return this.next()},Er.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},Er.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},Er.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},Er.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},Er.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Er.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new tn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Er.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Er.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},An.Object.defineProperties(Er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Er.prototype.first=Er.prototype.first,Er.prototype.hasNext=Er.prototype.Ad,Er.prototype.next=Er.prototype.next,Er.prototype.reset=Er.prototype.reset,Er.className="MapValueSetIterator";function ro(a,y){this.key=a,this.value=y,this.ll=this.va=null}ro.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ro.className="KeyValuePair";function Fn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Fn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Fn.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)},Fn.prototype.Ad=function(){return this.next()},Fn.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},Fn.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},Fn.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},Fn.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},Fn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Fn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new tn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Fn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Fn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},An.Object.defineProperties(Fn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Fn.prototype.first=Fn.prototype.first,Fn.prototype.hasNext=Fn.prototype.Ad,Fn.prototype.next=Fn.prototype.next,Fn.prototype.reset=Fn.prototype.reset,Fn.className="MapIterator";function ti(a){zr(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"&&Ot("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=ti.prototype,Be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.toString=function(){return"Map()#"+ur(this)},Be.add=function(a,y){this._isFrozen&&Ii(this,a);var x=a;Ft(a)&&(x=Or(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new ro(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},Be.set=function(a,y){return this.add(a,y)},Be.addAll=function(a){if(a===null)return this;if(bt(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof ti)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},Be.first=function(){return this.ea},ti.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ti.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ti.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ti.prototype.map=function(a){for(var y=new ti,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ti.prototype.filter=function(a){for(var y=new ti,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Be=ti.prototype,Be.contains=function(a){var y=a;return Ft(a)&&(y=ur(a),y===void 0)?!1:this.Tb[y]!==void 0},Be.has=function(a){return this.contains(a)},Be.I=function(a){var y=a;return Ft(a)&&(y=ur(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Be.get=function(a){return this.I(a)},Be.remove=function(a){if(a===null)return!1;this._isFrozen&&Ii(this,a);var y=a;if(Ft(a)&&(y=ur(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Be.delete=function(a){return this.remove(a)},Be.clear=function(){this._isFrozen&&Ii(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()},ti.prototype.copy=function(){var a=new ti,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},ti.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new ro(b.key,b.value),x++}return y},ti.prototype.Lf=function(){return new Gi(this)},An.Object.defineProperties(ti.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return cr;var a=this.Sa;return a!==null?(a.reset(),a):new Fn(this)}},iteratorKeys:{get:function(){return 0>=this.count?cr:new Zr(this)}},iteratorValues:{get:function(){if(0>=this.count)return cr;var a=this.jf;return a!==null?(a.reset(),a):new Er(this)}}}),ti.prototype.toKeySet=ti.prototype.Lf,ti.prototype.toArray=ti.prototype.Fa,ti.prototype.clear=ti.prototype.clear,ti.prototype.delete=ti.prototype.delete,ti.prototype.remove=ti.prototype.remove,ti.prototype.get=ti.prototype.get,ti.prototype.getValue=ti.prototype.I,ti.prototype.has=ti.prototype.has,ti.prototype.contains=ti.prototype.contains,ti.prototype.first=ti.prototype.first,ti.prototype.addAll=ti.prototype.addAll,ti.prototype.set=ti.prototype.set,ti.prototype.add=ti.prototype.add,ti.prototype.thaw=ti.prototype.ka,ti.prototype.freeze=ti.prototype.freeze,ti.className="Map";function Ue(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ot("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var fo,So,rr,Xi,Ui;Ue.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ue.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ue.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ue.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ue.prototype.copy=function(){var a=new Ue;return a.x=this.x,a.y=this.y,a},Be=Ue.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this};function qo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Ue(x,b)}return new Ue}function gs(a){return a.x.toString()+" "+a.y.toString()}Be.toString=function(){return"Point("+this.x+","+this.y+")"},Be.D=function(a){return a instanceof Ue?this.x===a.x&&this.y===a.y:!1},Be.hi=function(a,y){return this.x===a&&this.y===y},Be.Xa=function(a){return At.B(this.x,a.x)&&At.B(this.y,a.y)},Be.add=function(a){return this.x+=a.x,this.y+=a.y,this},Be.re=function(a){return this.x-=a.x,this.y-=a.y,this},Be.offset=function(a,y){return this.x+=a,this.y+=y,this},Ue.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Be=Ue.prototype,Be.scale=function(a,y){return this.x*=a,this.y*=y,this},Be.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Be.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Be.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},Be.ab=function(a){return Ps(a.x-this.x,a.y-this.y)},Be.direction=function(a,y){return Ps(a-this.x,y-this.y)};function Ps(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}Be.Ry=function(a,y){return At.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Be.fA=function(a,y,x,E){return At.qh(a,y,x,E,this.x,this.y,this),this},Be.gA=function(a,y){return At.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Be.uA=function(a,y,x,E){return At.No(this.x,this.y,a,y,x,E,this),this},Be.vA=function(a,y){return At.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Be.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},Be.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Be.transform=function(a){return a.Ga(this),this};function Ro(a,y){return y.Cd(a),a}function Ho(a,y,x,E,b,z){var ee=b-x,re=z-E,oe=ee*ee+re*re;x-=a,E-=y;var se=-x*ee-E*re;return 0>=se||se>=oe?(ee=b-a,re=z-y,Math.min(x*x+E*E,ee*ee+re*re)):(a=ee*E-re*x,a*a/oe)}function Rr(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function yr(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Be.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ue.alloc=function(){var a=Eo.pop();return a===void 0?new Ue:a},Ue.allocAt=function(a,y){var x=Eo.pop();return x===void 0?new Ue(a,y):(x.x=a,x.y=y,x)},Ue.free=function(a){Eo.push(a)},Ue.prototype.isReal=Ue.prototype.w,Ue.prototype.setSpot=Ue.prototype.yi,Ue.prototype.setRectSpot=Ue.prototype.xi,Ue.prototype.snapToGridPoint=Ue.prototype.vA,Ue.prototype.snapToGrid=Ue.prototype.uA,Ue.prototype.projectOntoLineSegmentPoint=Ue.prototype.gA,Ue.prototype.projectOntoLineSegment=Ue.prototype.fA,Ue.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return At.Rl(a,y,x,E,b,z,ee,re)},Ue.prototype.compareWithLineSegmentPoint=Ue.prototype.Ry,Ue.compareWithLineSegment=function(a,y,x,E,b,z){return At.Fl(a,y,x,E,b,z)},Ue.prototype.direction=Ue.prototype.direction,Ue.prototype.directionPoint=Ue.prototype.ab,Ue.prototype.normalize=Ue.prototype.normalize,Ue.prototype.distanceSquared=Ue.prototype.zd,Ue.prototype.distanceSquaredPoint=Ue.prototype.Bf,Ue.prototype.scale=Ue.prototype.scale,Ue.prototype.rotate=Ue.prototype.rotate,Ue.prototype.offset=Ue.prototype.offset,Ue.prototype.subtract=Ue.prototype.re,Ue.prototype.add=Ue.prototype.add,Ue.prototype.equalsApprox=Ue.prototype.Xa,Ue.prototype.equalTo=Ue.prototype.hi,Ue.prototype.equals=Ue.prototype.D,Ue.prototype.set=Ue.prototype.set,Ue.prototype.setTo=Ue.prototype.sg;var Eo=[];Ue.className="Point",Ue.parse=qo,Ue.stringify=gs,Ue.distanceLineSegmentSquared=Ho,Ue.distanceSquared=Rr,Ue.direction=yr,Ue.Origin=fo=new Ue(0,0).ja(),Ue.InfiniteTopLeft=So=new Ue(-1/0,-1/0).ja(),Ue.InfiniteBottomRight=rr=new Ue(1/0,1/0).ja(),Ue.SixPoint=Xi=new Ue(6,6).ja(),Ue.NoPoint=Ui=new Ue(NaN,NaN).ja(),Ue.parse=qo,Ue.stringify=gs,Ue.distanceLineSegmentSquared=Ho,Ue.distanceSquared=Rr,Ue.direction=yr;function oi(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):Ot("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Na,qa,tl,Ta,sa,Oa,nl;oi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},oi.prototype.h=function(a,y){return this.width=a,this.height=y,this},oi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},oi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},oi.prototype.copy=function(){var a=new oi;return a.width=this.width,a.height=this.height,a},Be=oi.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qt(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new oi(x,b)}return new oi}function Su(a){return a.width.toString()+" "+a.height.toString()}Be.toString=function(){return"Size("+this.width+","+this.height+")"},Be.D=function(a){return a instanceof oi?this.width===a.width&&this.height===a.height:!1},Be.hi=function(a,y){return this.width===a&&this.height===y},Be.Xa=function(a){return At.B(this.width,a.width)&&At.B(this.height,a.height)},Be.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},Be.w=function(){return isFinite(this.width)&&isFinite(this.height)},oi.alloc=function(){var a=Ia.pop();return a===void 0?new oi:a},oi.free=function(a){Ia.push(a)},oi.prototype.isReal=oi.prototype.w,oi.prototype.inflate=oi.prototype.Bc,oi.prototype.equalsApprox=oi.prototype.Xa,oi.prototype.equalTo=oi.prototype.hi,oi.prototype.equals=oi.prototype.D,oi.prototype.set=oi.prototype.set,oi.prototype.setTo=oi.prototype.sg;var Ia=[];oi.className="Size",oi.parse=Qt,oi.stringify=Su,oi.ZeroSize=Na=new oi(0,0).ja(),oi.OneSize=qa=new oi(1,1).ja(),oi.SixSize=tl=new oi(6,6).ja(),oi.EightSize=Ta=new oi(8,8).ja(),oi.TenSize=sa=new oi(10,10).ja(),oi.InfiniteSize=Oa=new oi(1/0,1/0).ja(),oi.NoSize=nl=new oi(NaN,NaN).ja(),oi.parse=Qt,oi.stringify=Su;function qt(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Ue?(x=a.x,a=a.y,y instanceof Ue?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof oi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ot("Incorrect second argument supplied to Rect constructor "+y)):Ot("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Be=qt.prototype,Be.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Be.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function ys(a,y,x){a.width=y,a.height=x}Be.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Be.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Be.dd=function(a){return this.x=a.x,this.y=a.y,this},Be.tA=function(a){return this.width=a.width,this.height=a.height,this},qt.prototype.copy=function(){var a=new qt;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Be=qt.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this};function Tl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),new qt(x,b,z,ee)}return new qt}function Ol(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Be.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Be.D=function(a){return a instanceof qt?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Be.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Be.Xa=function(a){return At.B(this.x,a.x)&&At.B(this.y,a.y)&&At.B(this.width,a.width)&&At.B(this.height,a.height)};function ws(a,y){return At.$(a.x,y.x)&&At.$(a.y,y.y)&&At.$(a.width,y.width)&&At.$(a.height,y.height)}Be.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Be.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},Be.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Be.offset=function(a,y){return this.x+=a,this.y+=y,this},Be.Bc=function(a,y){return Ss(this,y,a,y,a)},Be.Co=function(a){return Ss(this,a.top,a.right,a.bottom,a.left)},Be.Fv=function(a){return Ss(this,-a.top,-a.right,-a.bottom,-a.left)},Be.Hz=function(a,y,x,E){return Ss(this,a,y,x,E)};function Ss(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Be.Ex=function(a){return eu(this,a.x,a.y,a.width,a.height)},Be.Uu=function(a,y,x,E){return eu(this,a,y,x,E)};function eu(a,y,x,E,b){var z=Math.max(a.x,y),ee=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Be.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Be.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function il(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Be.Ye=function(a){return os(this,a.x,a.y,0,0)},Be.ed=function(a){return os(this,a.x,a.y,a.width,a.height)},Be.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),os(this,a,y,x,E)};function os(a,y,x,E,b){var z=Math.min(a.x,y),ee=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=y-z,a.height=x-ee,a}Be.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 rl(a,y,x,E,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+x&&y<=z&&z+re<=y+E}function ku(a,y,x,E,b,z,ee,re){return a>ee+b||b>x+a?!1:!(y>re+z||z>E+y)}Be.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Be.Mz=function(){return this.width===0&&this.height===0},qt.alloc=function(){var a=Nu.pop();return a===void 0?new qt:a},qt.allocAt=function(a,y,x,E){var b=Nu.pop();return b===void 0?new qt(a,y,x,E):b.h(a,y,x,E)},qt.free=function(a){Nu.push(a)},An.Object.defineProperties(qt.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 Ue(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new oi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ue(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}}}),qt.prototype.isEmpty=qt.prototype.Mz,qt.prototype.isReal=qt.prototype.w,qt.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return At.Fx(a,y,x,E,b,z,ee,re)},qt.prototype.setSpot=qt.prototype.yi,qt.prototype.union=qt.prototype.Kv,qt.prototype.unionRect=qt.prototype.ed,qt.prototype.unionPoint=qt.prototype.Ye,qt.prototype.intersects=qt.prototype.Vu,qt.prototype.intersectsRect=qt.prototype.Yc,qt.prototype.intersect=qt.prototype.Uu,qt.prototype.intersectRect=qt.prototype.Ex,qt.prototype.grow=qt.prototype.Hz,qt.prototype.subtractMargin=qt.prototype.Fv,qt.prototype.addMargin=qt.prototype.Co,qt.prototype.inflate=qt.prototype.Bc,qt.prototype.offset=qt.prototype.offset,qt.prototype.contains=qt.prototype.contains,qt.prototype.containsRect=qt.prototype.Re,qt.prototype.containsPoint=qt.prototype.ca,qt.prototype.equalsApprox=qt.prototype.Xa,qt.prototype.equalTo=qt.prototype.hi,qt.prototype.equals=qt.prototype.D,qt.prototype.setSize=qt.prototype.tA,qt.prototype.setPoint=qt.prototype.dd,qt.prototype.set=qt.prototype.set,qt.prototype.setTo=qt.prototype.sg;var hc=null,cu=null,Nu=[];qt.className="Rect",qt.parse=Tl,qt.stringify=Ol,qt.contains=rl,qt.intersects=ku,qt.ZeroRect=hc=new qt(0,0,0,0).ja(),qt.NoRect=cu=new qt(NaN,NaN,NaN,NaN).ja(),qt.parse=Tl,qt.stringify=Ol,qt.contains=rl,qt.intersects=ku;function ao(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):Ot("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}ao.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ao.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},ao.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ao.prototype.copy=function(){var a=new ao;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Be=ao.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this};function vd(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new ao;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new ao(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new ao(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new ao(x,b):new ao(x,b,z,ee)}return new ao}function Dd(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Be.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Be.D=function(a){return a instanceof ao?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Be.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Be.Xa=function(a){return At.B(this.top,a.top)&&At.B(this.right,a.right)&&At.B(this.bottom,a.bottom)&&At.B(this.left,a.left)},Be.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ao.alloc=function(){var a=lh.pop();return a===void 0?new ao:a},ao.free=function(a){lh.push(a)},ao.prototype.isReal=ao.prototype.w,ao.prototype.equalsApprox=ao.prototype.Xa,ao.prototype.equalTo=ao.prototype.hi,ao.prototype.equals=ao.prototype.D,ao.prototype.set=ao.prototype.set,ao.prototype.setTo=ao.prototype.sg;var bc=null,Ld=null,lh=[];ao.className="Margin",ao.parse=vd,ao.stringify=Dd,ao.ZeroMargin=bc=new ao(0,0,0,0).ja(),ao.TwoMargin=Ld=new ao(2,2,2,2).ja(),ao.parse=vd,ao.stringify=Dd;function tr(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var ll,Ra,wr,ca,pa,Cr,Al,Bu,us,tu,Qu,ps,Bl,Kl,Hu,Kd,uh,ch,dh,ol,ul,fc,Zh,od,yd,Dl,Uh,hf,Sd,gc,nu,Tu,du,Ou,Kh,Md;tr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},tr.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},tr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},tr.prototype.copy=function(){var a=new tr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Be=tr.prototype,Be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Yh(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ll;if(a==="TopLeft")return Ra;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return wr;if(a==="TopRight")return ca;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return pa;if(a==="Center")return Cr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Al;if(a==="BottomLeft")return Bu;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return us;if(a==="BottomRight")return tu;if(a==="TopSide")return Qu;if(a==="LeftSide")return ps;if(a==="RightSide")return Bl;if(a==="BottomSide")return Kl;if(a==="TopBottomSides")return Hu;if(a==="LeftRightSides")return Kd;if(a==="TopLeftSides")return uh;if(a==="TopRightSides")return ch;if(a==="BottomLeftSides")return dh;if(a==="BottomRightSides")return ol;if(a==="NotTopSide")return ul;if(a==="NotLeftSide")return fc;if(a==="NotRightSide")return Zh;if(a==="NotBottomSide")return od;if(a==="AllSides")return yd;if(a==="Default")return Dl;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ee=parseFloat(E)),new tr(x,b,z,ee)}return new tr}function hh(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Be.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(ll)?"None":this.D(Ra)?"TopLeft":this.D(wr)?"Top":this.D(ca)?"TopRight":this.D(pa)?"Left":this.D(Cr)?"Center":this.D(Al)?"Right":this.D(Bu)?"BottomLeft":this.D(us)?"Bottom":this.D(tu)?"BottomRight":this.D(Qu)?"TopSide":this.D(ps)?"LeftSide":this.D(Bl)?"RightSide":this.D(Kl)?"BottomSide":this.D(Hu)?"TopBottomSides":this.D(Kd)?"LeftRightSides":this.D(uh)?"TopLeftSides":this.D(ch)?"TopRightSides":this.D(dh)?"BottomLeftSides":this.D(ol)?"BottomRightSides":this.D(ul)?"NotTopSide":this.D(fc)?"NotLeftSide":this.D(Zh)?"NotRightSide":this.D(od)?"NotBottomSide":this.D(yd)?"AllSides":this.D(Dl)?"Default":"None"},Be.D=function(a){return a instanceof tr?(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},Be.gv=function(){return new tr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Be.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Uh))a=ps;else if(a.D(hf))a=Bl;else if(a.D(Sd))a=Qu;else if(a.D(gc))a=Kl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Be.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Be.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Be.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Be.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Be.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},tr.alloc=function(){var a=kd.pop();return a===void 0?new tr:a},tr.free=function(a){kd.push(a)},tr.prototype.isDefault=tr.prototype.Xb,tr.prototype.isNone=tr.prototype.ys,tr.prototype.isSide=tr.prototype.$c,tr.prototype.isNoSpot=tr.prototype.Mc,tr.prototype.isSpot=tr.prototype.sb,tr.prototype.includesSide=tr.prototype.Hf,tr.prototype.opposite=tr.prototype.gv,tr.prototype.equals=tr.prototype.D,tr.prototype.set=tr.prototype.set,tr.prototype.setTo=tr.prototype.sg;var kd=[];tr.className="Spot",tr.parse=Yh,tr.stringify=hh,tr.None=ll=cl(new tr(0,0,0,0),0).ja(),tr.Default=Dl=cl(new tr(0,0,-1,0),-1).ja(),tr.TopLeft=Ra=new tr(0,0,0,0).ja(),tr.TopCenter=wr=new tr(.5,0,0,0).ja(),tr.TopRight=ca=new tr(1,0,0,0).ja(),tr.LeftCenter=pa=new tr(0,.5,0,0).ja(),tr.Center=Cr=new tr(.5,.5,0,0).ja(),tr.RightCenter=Al=new tr(1,.5,0,0).ja(),tr.BottomLeft=Bu=new tr(0,1,0,0).ja(),tr.BottomCenter=us=new tr(.5,1,0,0).ja(),tr.BottomRight=tu=new tr(1,1,0,0).ja(),tr.MiddleTop=nu=wr,tr.MiddleLeft=Tu=pa,tr.MiddleRight=du=Al,tr.MiddleBottom=Ou=us,tr.Top=Sd=wr,tr.Left=Uh=pa,tr.Right=hf=Al,tr.Bottom=gc=us,tr.TopSide=Qu=cl(new tr(0,0,1,1),1).ja(),tr.LeftSide=ps=cl(new tr(0,0,1,2),1).ja(),tr.RightSide=Bl=cl(new tr(0,0,1,4),1).ja(),tr.BottomSide=Kl=cl(new tr(0,0,1,8),1).ja(),tr.TopBottomSides=Hu=cl(new tr(0,0,1,9),1).ja(),tr.LeftRightSides=Kd=cl(new tr(0,0,1,6),1).ja(),tr.TopLeftSides=uh=cl(new tr(0,0,1,3),1).ja(),tr.TopRightSides=ch=cl(new tr(0,0,1,5),1).ja(),tr.BottomLeftSides=dh=cl(new tr(0,0,1,10),1).ja(),tr.BottomRightSides=ol=cl(new tr(0,0,1,12),1).ja(),tr.NotTopSide=ul=cl(new tr(0,0,1,14),1).ja(),tr.NotLeftSide=fc=cl(new tr(0,0,1,13),1).ja(),tr.NotRightSide=Zh=cl(new tr(0,0,1,11),1).ja(),tr.NotBottomSide=od=cl(new tr(0,0,1,7),1).ja(),tr.AllSides=yd=cl(new tr(0,0,1,15),1).ja(),Kh=new tr(.156,.156).ja(),Md=new tr(.844,.844).ja(),tr.parse=Yh,tr.stringify=hh;function Qr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Qr.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},Qr.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Qr.prototype.copy=function(){var a=new Qr;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},Qr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Qr.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},Qr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Qr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Qr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Qr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Qr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Qr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ee=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Be=Qr.prototype,Be.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Be.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Be.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)},Be.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Be.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Be.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,se=this.dx,ue=this.dy,ge=y*z+x*re+se,ye=y*ee+x*oe+ue,Pe=E*z+x*re+se,Fe=E*ee+x*oe+ue;return x=y*z+b*re+se,y=y*ee+b*oe+ue,z=E*z+b*re+se,E=E*ee+b*oe+ue,b=Math.min(ge,Pe),ge=Math.max(ge,Pe),Pe=Math.min(ye,Fe),ye=Math.max(ye,Fe),b=Math.min(b,x),ge=Math.max(ge,x),Pe=Math.min(Pe,y),ye=Math.max(ye,y),b=Math.min(b,z),ge=Math.max(ge,z),Pe=Math.min(Pe,E),ye=Math.max(ye,E),a.h(b,Pe,ge-b,ye-Pe),a},Qr.alloc=function(){var a=Nd.pop();return a===void 0?new Qr:a},Qr.free=function(a){Nd.push(a)},Qr.prototype.transformRect=Qr.prototype.pp,Qr.prototype.transformPoint=Qr.prototype.Ga,Qr.prototype.scale=Qr.prototype.scale,Qr.prototype.translate=Qr.prototype.translate,Qr.prototype.rotate=Qr.prototype.rotate,Qr.prototype.invert=Qr.prototype.Vj,Qr.prototype.multiplyInverted=Qr.prototype.bv,Qr.prototype.multiply=Qr.prototype.multiply,Qr.prototype.reset=Qr.prototype.reset,Qr.prototype.isIdentity=Qr.prototype.ws,Qr.prototype.equals=Qr.prototype.D,Qr.prototype.setTransform=Qr.prototype.setTransform,Qr.prototype.set=Qr.prototype.set;var Nd=[];Qr.className="Transform",Qr.xF="54a702f3e53909c447824c6706603faf4c";var At={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=At.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);At.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,ee){if(0>=b&&(b=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<E)var se=y,ue=E;else se=E,ue=y;if(a===x)return se<=ee&&ee<=ue&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=oe&&y-b<=ee&&ee<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(ue+=b,se-=b,se<=ee&&ee<=ue))if(oe-re>ue-se)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ee=(x-a)/(E-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ee,re,oe,se,ue,ge){if(At.Yb(a,y,ee,re,ge,x,E)&&At.Yb(a,y,ee,re,ge,b,z))return At.Yb(a,y,ee,re,ge,se,ue);var ye=(a+x)/2,Pe=(y+E)/2,Fe=(x+b)/2,Te=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ye+Fe)/2,x=(Pe+Te)/2,Fe=(Fe+b)/2,Te=(Te+z)/2;var Je=(E+Fe)/2,Ze=(x+Te)/2;return At.cs(a,y,ye,Pe,E,x,Je,Ze,oe,se,ue,ge)||At.cs(Je,Ze,Fe,Te,b,z,ee,re,oe,se,ue,ge)},ax:function(a,y,x,E,b,z,ee,re,oe){var se=(x+b)/2,ue=(E+z)/2;return oe.h((((a+x)/2+se)/2+(se+(b+ee)/2)/2)/2,(((y+E)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ee,re){var oe=(x+b)/2,se=(E+z)/2;return yr(((a+x)/2+oe)/2,((y+E)/2+se)/2,(oe+(b+ee)/2)/2,(se+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ee,re,oe,se){if(At.Yb(a,y,ee,re,oe,x,E)&&At.Yb(a,y,ee,re,oe,b,z))os(se,a,y,0,0),os(se,ee,re,0,0);else{var ue=(a+x)/2,ge=(y+E)/2,ye=(x+b)/2,Pe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ue+ye)/2,x=(ge+Pe)/2,ye=(ye+b)/2,Pe=(Pe+z)/2;var Fe=(E+ye)/2,Te=(x+Pe)/2;At.Dl(a,y,ue,ge,E,x,Fe,Te,oe,se),At.Dl(Fe,Te,ye,Pe,b,z,ee,re,oe,se)}return se},Qe:function(a,y,x,E,b,z,ee,re,oe,se){if(At.Yb(a,y,ee,re,oe,x,E)&&At.Yb(a,y,ee,re,oe,b,z))se.length===0&&(se.push(a),se.push(y)),se.push(ee),se.push(re);else{var ue=(a+x)/2,ge=(y+E)/2,ye=(x+b)/2,Pe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ue+ye)/2,x=(ge+Pe)/2,ye=(ye+b)/2,Pe=(Pe+z)/2;var Fe=(E+ye)/2,Te=(x+Pe)/2;At.Qe(a,y,ue,ge,E,x,Fe,Te,oe,se),At.Qe(Fe,Te,ye,Pe,b,z,ee,re,oe,se)}return se},jv:function(a,y,x,E,b,z,ee,re,oe,se){if(At.Yb(a,y,b,z,se,x,E))return At.Yb(a,y,b,z,se,re,oe);var ue=(a+x)/2,ge=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ye=(ue+x)/2,Pe=(ge+E)/2;return At.jv(a,y,ue,ge,ye,Pe,ee,re,oe,se)||At.jv(ye,Pe,x,E,b,z,ee,re,oe,se)},OA:function(a,y,x,E,b,z,ee){return ee.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ee},iv:function(a,y,x,E,b,z,ee,re){if(At.Yb(a,y,b,z,ee,x,E))os(re,a,y,0,0),os(re,b,z,0,0);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,ge=(se+E)/2;At.iv(a,y,oe,se,ue,ge,ee,re),At.iv(ue,ge,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(At.Yb(a,y,b,z,ee,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,ge=(se+E)/2;At.ep(a,y,oe,se,ue,ge,ee,re),At.ep(ue,ge,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,oe,se,ue,ge,ye,Pe){if(At.Yb(a,y,ee,re,ye,x,E)&&At.Yb(a,y,ee,re,ye,b,z))return!At.Rl(a,y,ee,re,oe,se,ue,ge)||(ye=(a-ee)*(se-ge)-(y-re)*(oe-ue),ye===0)?!1:(Pe.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*ge-se*ue))/ye,((a*re-y*ee)*(se-ge)-(y-re)*(oe*ge-se*ue))/ye),!0);var Fe=(a+x)/2,Te=(y+E)/2,Je=(x+b)/2,Ze=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Fe+Je)/2,x=(Te+Ze)/2,Je=(Je+b)/2,Ze=(Ze+z)/2;var it=(E+Je)/2,lt=(x+Ze)/2,ft=1/0,St=!1,Vt=0,mi=0;return At.Eo(a,y,Fe,Te,E,x,it,lt,oe,se,ue,ge,ye,Pe)&&(a=(Pe.x-oe)*(Pe.x-oe)+(Pe.y-se)*(Pe.y-se),a<ft&&(ft=a,St=!0,Vt=Pe.x,mi=Pe.y)),At.Eo(it,lt,Je,Ze,b,z,ee,re,oe,se,ue,ge,ye,Pe)&&(Pe.x-oe)*(Pe.x-oe)+(Pe.y-se)*(Pe.y-se)<ft&&(St=!0,Vt=Pe.x,mi=Pe.y),St&&(Pe.x=Vt,Pe.y=mi),St},Fo:function(a,y,x,E,b,z,ee,re,oe,se,ue,ge,ye){var Pe=0;if(At.Yb(a,y,ee,re,ye,x,E)&&At.Yb(a,y,ee,re,ye,b,z)){if(ye=(a-ee)*(se-ge)-(y-re)*(oe-ue),ye===0)return Pe;var Fe=((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*ge-se*ue))/ye,Te=((a*re-y*ee)*(se-ge)-(y-re)*(oe*ge-se*ue))/ye;if(Fe>=ue)return Pe;if((oe>ue?oe-ue:ue-oe)<(se>ge?se-ge:ge-se)){if(y<re?(oe=y,a=re):(oe=re,a=y),Te<oe||Te>a)return Pe}else if(a<ee?(oe=a,a=ee):oe=ee,Fe<oe||Fe>a)return Pe;0<ye?Pe++:0>ye&&Pe--}else{Fe=(a+x)/2,Te=(y+E)/2;var Je=(x+b)/2,Ze=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Fe+Je)/2,x=(Te+Ze)/2,Je=(Je+b)/2,Ze=(Ze+z)/2;var it=(E+Je)/2,lt=(x+Ze)/2;Pe+=At.Fo(a,y,Fe,Te,E,x,it,lt,oe,se,ue,ge,ye),Pe+=At.Fo(it,lt,Je,Ze,b,z,ee,re,oe,se,ue,ge,ye)}return Pe},qh:function(a,y,x,E,b,z,ee){return At.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):At.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(ee.h(E,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(x,E),!1):(ee.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,ee,re,oe){return At.B(a,x)&&At.B(y,E)?(oe.h(a,y),!1):At.$(b,ee)?At.$(a,x)?(At.qh(a,y,x,E,b,z,oe),!1):At.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),At.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(oe.h(a,b),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(E-y)/(x-a),At.$(re,ee)?(At.qh(a,y,x,E,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),At.$(ee,0)?(a<x?(E=a,a=x):E=x,b<E?(oe.h(E,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):At.qh(a,y,x,E,b,ee*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return At.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ee,re,oe,se){function ue(Je,Ze){var it=(Je-a)*(Je-a)+(Ze-y)*(Ze-y);it<ge&&(ge=it,oe.h(Je,Ze))}var ge=1/0;ue(oe.x,oe.y);var ye=0,Pe=0,Fe=0,Te=0;if(b<ee?(ye=b,Pe=ee):(ye=ee,Pe=b),z<re?(Fe=b,Te=ee):(Fe=ee,Te=b),ye=(Pe-ye)/2+se,se=(Te-Fe)/2+se,b=(b+ee)/2,z=(z+re)/2,ye===0||se===0)return oe;if(.5>(x>a?x-a:a-x)){if(ye=1-(x-b)*(x-b)/(ye*ye),0>ye)return oe;ye=Math.sqrt(ye),E=-se*ye+z,ue(x,se*ye+z),ue(x,E)}else{if(x=(E-y)/(x-a),E=1/(ye*ye)+x*x/(se*se),re=2*x*(y-x*a)/(se*se)-2*x*z/(se*se)-2*b/(ye*ye),ye=re*re-4*E*(2*x*a*z/(se*se)-2*y*z/(se*se)+z*z/(se*se)+b*b/(ye*ye)-1+(y-x*a)*(y-x*a)/(se*se)),0>ye)return oe;ye=Math.sqrt(ye),se=(-re+ye)/(2*E),ue(se,x*se-x*a+y),ye=(-re-ye)/(2*E),ue(ye,x*ye-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ee,re,oe){var se=1e21,ue=a,ge=y;if(At.Ve(a,y,a,E,b,z,ee,re,oe)){var ye=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);ye<se&&(se=ye,ue=oe.x,ge=oe.y)}return At.Ve(x,y,x,E,b,z,ee,re,oe)&&(ye=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),ye<se&&(se=ye,ue=oe.x,ge=oe.y)),At.Ve(a,y,x,y,b,z,ee,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<se&&(se=y,ue=oe.x,ge=oe.y)),At.Ve(a,E,x,E,b,z,ee,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<se&&(se=a,ue=oe.x,ge=oe.y)),oe.h(ue,ge),1e21>se},us:function(a,y,x){return At.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ee,re){var oe=a+x,se=y+E;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=oe&&ee<=se&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=se&&re<=oe&&b>=a):!!(rl(a,y,x,E,b,z)||rl(a,y,x,E,ee,re)||At.Rl(a,y,oe,y,b,z,ee,re)||At.Rl(oe,y,oe,se,b,z,ee,re)||At.Rl(oe,se,a,se,b,z,ee,re)||At.Rl(a,se,a,y,b,z,ee,re))},Rl:function(a,y,x,E,b,z,ee,re){return a===x&&y===E&&b===ee&&z===re?a===b&&y===z:0>=At.Fl(a,y,x,E,b,z)*At.Fl(a,y,x,E,ee,re)&&0>=At.Fl(b,z,ee,re,a,y)*At.Fl(b,z,ee,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ee=Math.PI;z||(E*=ee/180,b*=ee/180);var re=E>b?-1:1;z=[];var oe=ee/2,se=E;if(E=Math.min(2*ee,Math.abs(b-E)),1e-5>E)return oe=se+re*Math.min(E,oe),re=a+x*Math.cos(se),se=y+x*Math.sin(se),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(se+y)/2,z.push([re,se,x,oe,x,oe,a,y]),z;for(;1e-5<E;)b=se+re*Math.min(E,oe),z.push(At.Vy(x,se,b,a,y)),E-=Math.abs(b-se),se=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,se=ee*ee+oe*oe,ue=se+ee*ee+oe*re;return se=4/3*(Math.sqrt(2*se*ue)-ue)/(ee*re-oe*ee),re=ee-se*oe,ee=oe+se*ee,oe=-ee,se=z+y,z=Math.cos(se),se=Math.sin(se),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-ee*se,b+re*se+ee*z,E+re*z-oe*se,b+re*se+oe*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,ee){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),ee.h(re,a),ee},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,se=ee===0?x:E;return(ee===0?b:z)&&(se=-se),ee=re,x=ee===0?x:E,(ee===0?b:z)&&(x=-x),At.az(oe,ee===0?a:y,se,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var ee=y*E,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var se=0;9999999999>se&&(y=.5*(re+oe),!(y===re||y===oe));++se){var ue=a/(y+b),ge=ee/(y+z);if(ue=ue*ue+ge*ge-1,0<ue)re=y;else if(0>ue)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new zt,um:new zt,Mf:new zt,Nf:0,vm:100};At.za=At.AA;function ni(a){zr(this),this.l=2,a===void 0&&(a=ni.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ni.o?this.ee=new tn:(ni.V===null&&(ni.V=new tn().freeze()),this.ee=ni.V),this.aq=this.ee.Ja,this.Ip=new qt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ra,this.gg=tu,this.Rk=this.Sk=NaN,this.Uf=Pn}ni.prototype.copy=function(){var a=new ni;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===ni.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},ni.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ni.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ni.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},ni.prototype.ka=function(){if(Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ni.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},ni.prototype.Xa=function(a){if(!(a instanceof ni))return!1;if(this.type!==a.type)return this.type===ni.j&&a.type===ni.o?Bf(this,a):a.type===ni.j&&this.type===ni.o?Bf(a,this):!1;if(this.type===ni.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return At.B(this.startX,a.startX)&&At.B(this.startY,a.startY)&&At.B(this.endX,a.endX)&&At.B(this.endY,a.endY)};function Bf(a,y){return a.type!==ni.j||y.type!==ni.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&At.B(a.startX,y.startX)&&At.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Da&&At.B(a.endX,y.endX)&&At.B(a.endY,y.endY))))}ni.ia=function(a){return a.toString()},ni.prototype.qb=function(a){a.classType===ni&&(this.type=a)},ni.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ni.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 ni.u:var y=new qt(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 ni.F:if(y=new qt(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 ni.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},ni.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},ni.parse=function(a,y){function x(){return Te>=ft-1?!0:se[Te+1].match(St)!==null}function E(){return Te++,se[Te]}function b(jr){var Br=parseFloat(E()),ia=parseFloat(E());Je===Je.toLowerCase()&&(Br=lt.x+Br,ia=lt.y+ia),jr.h(Br,ia)}function z(){return b(lt),lt}function ee(){return b(it),it}function re(){var jr=Ze.toLowerCase();return jr!=="c"&&jr!=="s"&&jr!=="q"&&jr!=="t"?lt:new Ue(2*lt.x-it.x,2*lt.y-it.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$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 se=a.split(" ");for(a=0;a<se.length;a++){var ue=se[a];if(ue.match(/(\.[0-9]*)(\.)/gm)!==null){oe=Ni();for(var ge="",ye=!1,Pe=0;Pe<ue.length;Pe++){var Fe=ue[Pe];Fe!=="."||ye?Fe==="."?(oe.push(ge),ge="."):ge+=Fe:(ye=!0,ge+=Fe)}for(oe.push(ge),se.splice(a,1),ue=0;ue<oe.length;ue++)se.splice(a+ue,0,oe[ue]);a+=oe.length-1,qn(oe)}}var Te=-1,Je="",Ze="";oe=new Ue(0,0);var it=new Ue(0,0),lt=new Ue(0,0),ft=se.length;a=G1(null),ye=ge=ue=!1,Pe=!0,Fe=null;for(var St=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=ft-1);)if(Ze=Je,Je=E(),Je!=="")switch(Je.toUpperCase()){case"X":Pe=!0,ge=ue=!1;break;case"M":for(Fe=z(),a.mc===null||Pe===!0?(Fp(a,Fe.x,Fe.y,ue,!ge,ye),Pe=!1):a.moveTo(Fe.x,Fe.y),oe.assign(lt);!x();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"L":for(;!x();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"H":for(;!x();)lt=new Ue((Je===Je.toLowerCase()?lt.x:0)+parseFloat(E()),lt.y),a.lineTo(lt.x,lt.y);break;case"V":for(;!x();)lt=new Ue(lt.x,(Je===Je.toLowerCase()?lt.y:0)+parseFloat(E())),a.lineTo(lt.x,lt.y);break;case"C":for(;!x();){Fe=new Ue,b(Fe);var Vt=ee(),mi=z();Nf(a,Fe.x,Fe.y,Vt.x,Vt.y,mi.x,mi.y)}break;case"S":for(;!x();)Fe=re(),Vt=ee(),mi=z(),Nf(a,Fe.x,Fe.y,Vt.x,Vt.y,mi.x,mi.y);break;case"Q":for(;!x();)Fe=ee(),Vt=z(),x0(a,Fe.x,Fe.y,Vt.x,Vt.y);break;case"T":for(;!x();)it=Fe=re(),Vt=z(),x0(a,Fe.x,Fe.y,Vt.x,Vt.y);break;case"B":for(;!x();){Fe=parseFloat(E()),Vt=parseFloat(E()),mi=parseFloat(E());var Vi=parseFloat(E()),Fi=parseFloat(E()),$n=Fi,Mn=!1;x()||($n=parseFloat(E()),x()||(Mn=parseFloat(E())!==0)),Je===Je.toLowerCase()&&(mi+=lt.x,Vi+=lt.y),a.arcTo(Fe,Vt,mi,Vi,Fi,$n,Mn)}break;case"A":for(;!x();)Fe=Math.abs(parseFloat(E())),Vt=Math.abs(parseFloat(E())),mi=parseFloat(E()),Fi=Vi=!1,Mn=$n=0,$n=E(),$n.length===1?(Vi=!!parseFloat($n),Fi=!!parseFloat(E()),$n=parseFloat(E())):$n.length===2?(Vi=!!parseFloat($n[0]),Fi=!!parseFloat($n[1]),$n=parseFloat(E())):(Vi=!!parseFloat($n[0]),Fi=!!parseFloat($n[1]),$n=parseFloat($n.slice(2))),Mn=parseFloat(E()),Je===Je.toLowerCase()&&($n=lt.x+$n,Mn=lt.y+Mn),lt.h($n,Mn),Nx(a,Fe,Vt,mi,Vi,Fi,$n,Mn);break;case"Z":kx(a),lt.assign(oe);break;case"F":for(Fe="",Vt=1;se[Te+Vt];)if(se[Te+Vt]==="0")ye=!0,Vt++;else if(se[Te+Vt].match(/[Uu]/)!==null)Vt++;else if(se[Te+Vt].match(St)===null)Vt++;else{Fe=se[Te+Vt];break}Fe.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Fe="",Vt=1;se[Te+Vt];)if(se[Te+Vt].match(/[Ff]/)!==null)Vt++;else if(se[Te+Vt].match(St)===null)Vt++;else{Fe=se[Te+Vt];break}Fe.match(/[Mm]/)?ge=!0:a.mc.isShadowed=!1}if(oe=a.os,E0=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},ni.Ha=function(a,y){for(var x=a.length,E=Ue.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}Ue.free(E)},ni.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ni.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},ni.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ni.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var ee=E[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Bc(this,a,!1),os(a,0,0,0,0),a.freeze()},ni.prototype.ix=function(){var a=new qt;return Bc(this,a,!0),a};function Bc(a,y,x){switch(a.type){case ni.j:case ni.u:case ni.F:x?y.h(a.od,a.pd,0,0):os(y,a.od,a.pd,0,0),os(y,a.Dc,a.Ec,0,0);break;case ni.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):os(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,se=z.startY,ue=0;ue<re;ue++){var ge=ee[ue];switch(ge.type){case Da:case Qs:oe=ge.endX,se=ge.endY,os(y,oe,se,0,0);break;case Vl:At.Dl(oe,se,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.5,y),oe=ge.endX,se=ge.endY;break;case ze:At.iv(oe,se,ge.point1X,ge.point1Y,ge.endX,ge.endY,.5,y),oe=ge.endX,se=ge.endY;break;case Ye:case Qe:var ye=ge.type===Ye?zl(ge,z):hu(ge,z,oe,se),Pe=ye.length;if(Pe===0){oe=ge.type===Ye?ge.centerX:ge.endX,se=ge.type===Ye?ge.centerY:ge.endY,os(y,oe,se,0,0);break}ge=null;for(var Fe=0;Fe<Pe;Fe++)ge=ye[Fe],At.Dl(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.5,y);ge!==null&&(oe=ge[6],se=ge[7]);break;default:Ot("Unknown Segment type: "+ge.type)}}}break;default:Ot("Unknown Geometry type: "+a.type)}}ni.prototype.normalize=function(){this._isFrozen&&Ii(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ue(-a.x,-a.y)},ni.prototype.offset=function(a,y){return this._isFrozen&&Ii(this),this.transform(1,0,0,1,a,y),this},ni.prototype.scale=function(a,y){return this._isFrozen&&Ii(this),this.transform(a,0,0,y,0,0),this},ni.prototype.rotate=function(a,y,x){this._isFrozen&&Ii(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Qr.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Qr.free(E),this},Be=ni.prototype,Be.transform=function(a,y,x,E,b,z){switch(this.type){case ni.j:case ni.u:case ni.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+b,this.pd=ee*y+re*E+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+b,this.Ec=ee*y+re*E+z;break;case ni.o:for(var oe=this.figures.s,se=oe.length,ue=0;ue<se;ue++){var ge=oe[ue];ee=ge.startX,re=ge.startY,ge.startX=ee*a+re*x+b,ge.startY=ee*y+re*E+z,ge=ge.segments.s;for(var ye=ge.length,Pe=0;Pe<ye;Pe++){var Fe=ge[Pe];switch(Fe.type){case Da:case Qs:ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*x+b,Fe.endY=ee*y+re*E+z;break;case Vl:ee=Fe.point1X,re=Fe.point1Y,Fe.point1X=ee*a+re*x+b,Fe.point1Y=ee*y+re*E+z,ee=Fe.point2X,re=Fe.point2Y,Fe.point2X=ee*a+re*x+b,Fe.point2Y=ee*y+re*E+z,ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*x+b,Fe.endY=ee*y+re*E+z;break;case ze:ee=Fe.point1X,re=Fe.point1Y,Fe.point1X=ee*a+re*x+b,Fe.point1Y=ee*y+re*E+z,ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*x+b,Fe.endY=ee*y+re*E+z;break;case Ye:ee=Fe.centerX,re=Fe.centerY,Fe.centerX=ee*a+re*x+b,Fe.centerY=ee*y+re*E+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Fe.startAngle+=ee),0>a&&(Fe.startAngle=180-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),0>E&&(Fe.startAngle=-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),Fe.radiusX*=Math.sqrt(a*a+x*x),Fe.radiusY!==void 0&&(Fe.radiusY*=Math.sqrt(y*y+E*E));break;case Qe:if(ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*x+b,Fe.endY=ee*y+re*E+z,Fe.radiusX===0||Fe.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Fe.xAxisRotation+=ee),0>a&&(Fe.xAxisRotation=180-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),0>E&&(Fe.xAxisRotation=-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),Fe.radiusX*=Math.sqrt(a*a+x*x),Fe.radiusY*=Math.sqrt(y*y+E*E);break;default:Ot("Unknown Segment type: "+Fe.type)}}}}return this._isInvalidBounds=!0,this},Be.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case ni.j:return At.Yb(x,E,b,z,y,a.x,a.y);case ni.u:var ee=qt.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ee.ca(a),qt.free(ee),a;case ni.F:ee=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case ni.o:return Vu(this,a,y,!0,!1);default:return!1}};function Vu(a,y,x,E,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,se,ue,ge,ye=a.figures.s,Pe=ye.length,Fe=0;Fe<Pe;Fe++){var Te=ye[Fe],Je=!Te.isEvenOdd;if(Te.isFilled){if(E&&Te.ca(z,y,x))return!0;var Ze=Te.segments;oe=Te.startX,se=Te.startY;for(var it=oe,lt=se,ft=Ze.s,St=0;St<=Ze.length;St++){var Vt=void 0;if(St!==Ze.length){Vt=ft[St];var mi=Vt.type;a=Vt.endX,ge=Vt.endY}else mi=Da,a=it,ge=lt;switch(mi){case Qs:if(it=Dc(z,y,ee,y,oe,se,it,lt),isNaN(it))return!0;re+=it,it=a,lt=ge;break;case Da:if(oe=Dc(z,y,ee,y,oe,se,a,ge),isNaN(oe))return!0;re+=oe;break;case Vl:ue=At.Fo(oe,se,Vt.point1X,Vt.point1Y,Vt.point2X,Vt.point2Y,a,ge,ee,y,z,y,.5),re+=ue;break;case ze:ue=At.Fo(oe,se,(oe+2*Vt.point1X)/3,(se+2*Vt.point1Y)/3,(2*Vt.point1X+a)/3,(2*Vt.point1Y+ge)/3,a,ge,ee,y,z,y,.5),re+=ue;break;case Ye:case Qe:mi=Vt.type===Ye?zl(Vt,Te):hu(Vt,Te,oe,se);var Vi=mi.length;if(Vi===0){if(oe=Dc(z,y,ee,y,oe,se,Vt.type===Ye?Vt.centerX:Vt.endX,Vt.type===Ye?Vt.centerY:Vt.endY),isNaN(oe))return!0;re+=oe;break}Vt=null;for(var Fi=0;Fi<Vi;Fi++){if(Vt=mi[Fi],Fi===0){if(ue=Dc(z,y,ee,y,oe,se,Vt[0],Vt[1]),isNaN(ue))return!0;re+=ue}ue=At.Fo(Vt[0],Vt[1],Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7],ee,y,z,y,.5),re+=ue}Vt!==null&&(a=Vt[6],ge=Vt[7]);break;default:Ot("Unknown Segment type: "+Vt.type)}oe=a,se=ge}if(Je){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Te.ca(z,y,b?x:x+2))return!0}return!1}function Dc(a,y,x,E,b,z,ee,re){if(At.Yb(b,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var se=((a*E-y*x)*(b-ee)-(a-x)*(b*re-z*ee))/oe;if(y=(a*E-y*x)*(z-re)/oe,se>=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ee){if(se<b||se>ee)return 0}else if(se<ee||se>b)return 0;return 0<oe?1:-1}function Lc(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}Be.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ue),this.type===ni.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=E[re],se=oe.length;for(a=0;a<se;a++){var ue=oe[a];if(ee+ue>=z)return E=z-ee,E=ue===0?0:E/ue,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=ue}}return y},Be.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ni.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,ee=0;ee<E;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var se=re[a];if(z+se>=b)return b=y[ee],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=se}}return NaN},Be.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ni.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=E[re],se=oe.length;for(a=0;a<se;a++){var ue=oe[a];if(ee+ue>=z)return E=z-ee,E=ue===0?0:E/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],b=ue[2*a+2],a=ue[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=ue}}return y},Be.xx=function(a){if(this.type===ni.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var ee=x;E=b}else ee=b,E=x;return a<=ee?ee===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y<E?ee=y:(ee=E,E=y),z<=ee?ee===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ee);ee=(E-y)*(E-y)+(b-x)*(b-x);var re=Ue.alloc();return At.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,Ue.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===ni.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(E-ee),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var se=Math.min(ee,oe,re,b);if(se===re)return E/z;if(se===oe)return(y+a)/z;if(se===b)return(2*y+x-E)/z;if(se===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Ue.alloc(),b=1/0,re=ee=0,oe=y.length;for(var ue=se=0,ge=0;ge<oe;ge++)for(var ye=y[ge],Pe=x[ge],Fe=ye.length,Te=0;Te<Fe;Te+=2){var Je=ye[Te],Ze=ye[Te+1];if(Te!==0){At.qh(se,ue,Je,Ze,a.x,a.y,E);var it=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);it<b&&(b=it,ee=re,ee+=Math.sqrt((E.x-se)*(E.x-se)+(E.y-ue)*(E.y-ue))),re+=Pe[(Te-2)/2]}se=Je,ue=Ze}return Ue.free(E),a=ee/z,0>a?0:1<a?1:a}return 0};function ff(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===ni.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===ni.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===ni.F){var z=new dl;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new zo(Ye);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=zl(ee,z),b=a.length,b===0)E.push(ee.centerX),E.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];At.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,E),ee=oe[6],z=oe[7]}}y.push(E),x.push(gf(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),ee=b.startX,z=b.startY,re=ee,oe=z;for(var se=b.segments.s,ue=se.length,ge=0;ge<ue;ge++){var ye=se[ge];switch(ye.type){case Qs:4<=E.length&&(y.push(E),x.push(gf(E))),E=[],E.push(ye.endX),E.push(ye.endY),ee=ye.endX,z=ye.endY,re=ee,oe=z;break;case Da:E.push(ye.endX),E.push(ye.endY),ee=ye.endX,z=ye.endY;break;case Vl:At.Qe(ee,z,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,E),ee=ye.endX,z=ye.endY;break;case ze:At.ep(ee,z,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,E),ee=ye.endX,z=ye.endY;break;case Ye:var Pe=zl(ye,b),Fe=Pe.length;if(Fe===0){E.push(ye.centerX),E.push(ye.centerY),ee=ye.centerX,z=ye.centerY;break}for(var Te=0;Te<Fe;Te++){var Je=Pe[Te];At.Qe(ee,z,Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],.5,E),ee=Je[6],z=Je[7]}break;case Qe:if(Pe=hu(ye,b,ee,z),Fe=Pe.length,Te=ye.endX,Je=ye.endY,Fe===0){E.push(Te),E.push(Je),ee=Te,z=Je;break}for(Te=0;Te<Fe;Te++)Je=Pe[Te],At.Qe(ee,z,Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],.5,E),ee=Je[6],z=Je[7];break;default:Ot("Segment not of valid type: "+ye.type)}ye.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(gf(E)))}}}function gf(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(Rr(x,E,ee,re))),x=ee,E=re}return y}Be.add=function(a){return this.ee.add(a),this},Be.pm=function(a,y,x,E,b,z,ee,re){return this._isFrozen&&Ii(this),this.fg=new tr(a,y,b,z).freeze(),this.gg=new tr(x,E,ee,re).freeze(),this},An.Object.defineProperties(ni.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 ff(this),this.tk}},flattenedLengths:{get:function(){return ff(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===ni.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===ni.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Ii(this,a),this.na=a,a===ni.o?this.ee=new tn:(ni.V===null&&(ni.V=new tn().freeze()),this.ee=ni.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Ii(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Ii(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Ii(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Ii(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Ii(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Ii(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Ii(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Ii(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ni.prototype.setSpots=ni.prototype.pm,ni.prototype.add=ni.prototype.add,ni.prototype.getFractionForPoint=ni.prototype.xx,ni.prototype.getPointAndAngleAlongPath=ni.prototype.Qu,ni.prototype.getAngleAlongPath=ni.prototype.wx,ni.prototype.getPointAlongPath=ni.prototype.Pu,ni.prototype.containsPoint=ni.prototype.ca,ni.prototype.transform=ni.prototype.transform,ni.prototype.rotate=ni.prototype.rotate,ni.prototype.scale=ni.prototype.scale,ni.prototype.offset=ni.prototype.offset,ni.prototype.normalize=ni.prototype.normalize,ni.prototype.computeBoundsWithoutOrigin=ni.prototype.ix,ni.prototype.equalsApprox=ni.prototype.Xa,ni.className="Geometry",ni.j=new Bt(ni,"Line",0),ni.u=new Bt(ni,"Rectangle",1),ni.F=new Bt(ni,"Ellipse",2),ni.o=new Bt(ni,"Path",3),ni.V=null,ni.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ni.className="Geometry",ni.stringify=ni.ia,ni.fillPath=ni.nb,ni.parse=ni.parse,ni.Line=ni.j,ni.Rectangle=ni.u,ni.Ellipse=ni.F,ni.Path=ni.o;function dl(a,y,x,E,b){zr(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new tn,this.sr=this.pl.Ja,this.fw=null}dl.prototype.copy=function(){var a=new dl;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Be=dl.prototype,Be.Xa=function(a){if(!(a instanceof dl&&At.B(this.startX,a.startX)&&At.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},Be.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},Be.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},Be.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},Be.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},Be.add=function(a){return this.pl.add(a),this},Be.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ee=b,re=this.segments.s,oe=re.length,se=0;se<oe;se++){var ue=re[se];switch(ue.type){case Qs:z=ue.endX,ee=ue.endY,E=ue.endX,b=ue.endY;break;case Da:if(At.Yb(E,b,ue.endX,ue.endY,x,a,y))return!0;E=ue.endX,b=ue.endY;break;case Vl:if(At.cs(E,b,ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY,.5,a,y,x))return!0;E=ue.endX,b=ue.endY;break;case ze:if(At.jv(E,b,ue.point1X,ue.point1Y,ue.endX,ue.endY,.5,a,y,x))return!0;E=ue.endX,b=ue.endY;break;case Ye:case Qe:var ge=ue.type===Ye?zl(ue,this):hu(ue,this,E,b),ye=ge.length,Pe=ue.type===Ye?ue.centerX:ue.endX,Fe=ue.type===Ye?ue.centerY:ue.endY;if(ye===0){if(At.Yb(E,b,Pe,Fe,x,a,y))return!0;E=Pe,b=Fe;break}for(Pe=null,Fe=0;Fe<ye;Fe++)if(Pe=ge[Fe],Fe===0&&At.Yb(E,b,Pe[0],Pe[1],x,a,y)||At.cs(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,a,y,x))return!0;Pe!==null&&(E=Pe[6],b=Pe[7]);break;default:Ot("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(E!==z||b!==ee)&&At.Yb(E,b,z,ee,x,a,y))return!0}return!1},An.Object.defineProperties(dl.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&&Ii(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Ii(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ii(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Ii(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Ii(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Ii(this,a),this.pl=a,this._isInvalidBounds=!0}}}),dl.prototype.add=dl.prototype.add,dl.prototype.equalsApprox=dl.prototype.Xa,dl.className="PathFigure";function zo(a,y,x,E,b,z,ee,re){zr(this),a===void 0&&(a=Da),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===Qe?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Ye&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===Ye&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}zo.prototype.copy=function(){var a=new zo;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},Be=zo.prototype,Be.Xa=function(a){if(!(a instanceof zo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Qs:case Da:return At.B(this.endX,a.endX)&&At.B(this.endY,a.endY);case Vl:return At.B(this.endX,a.endX)&&At.B(this.endY,a.endY)&&At.B(this.point1X,a.point1X)&&At.B(this.point1Y,a.point1Y)&&At.B(this.point2X,a.point2X)&&At.B(this.point2Y,a.point2Y);case ze:return At.B(this.endX,a.endX)&&At.B(this.endY,a.endY)&&At.B(this.point1X,a.point1X)&&At.B(this.point1Y,a.point1Y);case Ye:return At.B(this.startAngle,a.startAngle)&&At.B(this.sweepAngle,a.sweepAngle)&&At.B(this.centerX,a.centerX)&&At.B(this.centerY,a.centerY)&&At.B(this.radiusX,a.radiusX)&&At.B(this.radiusY,a.radiusY);case Qe:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&At.B(this.xAxisRotation,a.xAxisRotation)&&At.B(this.endX,a.endX)&&At.B(this.endY,a.endY)&&At.B(this.radiusX,a.radiusX)&&At.B(this.radiusY,a.radiusY);default:return!1}},Be.qb=function(a){a.classType===zo&&(this.type=a)},Be.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Qs:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Da:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Vl: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 ze: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 Ye: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 Qe: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":"")},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.close=function(){return this.isClosed=!0,this};function zl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=At.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ee=Qr.alloc();ee.reset(),x<E?ee.scale(1,E/x):ee.scale(x/E,1),ni.Ha(z,ee),Qr.free(ee)}for(x=z.length,E=0;E<x;E++)ee=z[E],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function hu(a,y,x,E){function b(Te,Je,Ze,it){return(Te*it<Je*Ze?-1:1)*Math.acos((Te*Ze+Je*it)/(Math.sqrt(Te*Te+Je*Je)*Math.sqrt(Ze*Ze+it*it)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,se=a.Dc,ue=a.Ec,ge=Math.cos(ee),ye=Math.sin(ee),Pe=ge*(x-se)/2+ye*(E-ue)/2;ee=-ye*(x-se)/2+ge*(E-ue)/2;var Fe=Pe*Pe/(y*y)+ee*ee/(z*z);return 1<Fe&&(y*=Math.sqrt(Fe),z*=Math.sqrt(Fe)),Fe=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Pe*Pe)/(y*y*ee*ee+z*z*Pe*Pe)),isNaN(Fe)&&(Fe=0),re=Fe*y*ee/z,Fe=Fe*-z*Pe/y,isNaN(re)&&(re=0),isNaN(Fe)&&(Fe=0),x=(x+se)/2+ge*re-ye*Fe,E=(E+ue)/2+ye*re+ge*Fe,ue=b(1,0,(Pe-re)/y,(ee-Fe)/z),ge=(Pe-re)/y,se=(ee-Fe)/z,Pe=(-Pe-re)/y,re=(-ee-Fe)/z,ee=b(ge,se,Pe,re),Pe=(ge*Pe+se*re)/(Math.sqrt(ge*ge+se*se)*Math.sqrt(Pe*Pe+re*re)),-1>=Pe?ee=Math.PI:1<=Pe&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Pe=y>z?z/y:1,y=At.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Qr.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Pe),ni.Ha(y,z),Qr.free(z),a.ae=y,a.ae}An.Object.defineProperties(zo.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&&Ii(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ii(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ii(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ii(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ii(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ii(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ii(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ii(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ii(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&xn(a,">= zero",zo,"radiusX"),this._isFrozen&&Ii(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&xn(a,">= zero",zo,"radiusY"),this._isFrozen&&Ii(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ii(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&&Ii(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&&Ii(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&&Ii(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&&Ii(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),zo.prototype.equalsApprox=zo.prototype.Xa;var Qs=new Bt(zo,"Move",0),Da=new Bt(zo,"Line",1),Vl=new Bt(zo,"Bezier",2),ze=new Bt(zo,"QuadraticBezier",3),Ye=new Bt(zo,"Arc",4),Qe=new Bt(zo,"SvgArc",4);zo.className="PathSegment",zo.Move=Qs,zo.Line=Da,zo.Bezier=Vl,zo.QuadraticBezier=ze,zo.Arc=Ye,zo.SvgArc=Qe;function Nt(){this.H=null,this.xu=new Ue(0,0).freeze(),this.mt=new Ue(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}Nt.prototype.copy=function(){var a=new Nt;return this.clone(a)},Nt.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},Nt.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},Nt.prototype.So=function(a,y){var x=this.diagram;return x===null||fr(x,a,y),y},Nt.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(fr(x,a,y),y.assign(x.Ps(y))),y},An.Object.defineProperties(Nt.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}}}),Nt.prototype.getMultiTouchDocumentPoint=Nt.prototype.Bz,Nt.prototype.getMultiTouchViewPoint=Nt.prototype.So,Nt.className="InputEvent";function Wt(){this.H=null,this.xa="",this.ar=this.Lr=null}Wt.prototype.copy=function(){var a=new Wt;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Wt.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},An.Object.defineProperties(Wt.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}}}),Wt.className="DiagramEvent";function vn(){this.Fm=Gn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}vn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},vn.prototype.copy=function(){var a=new vn;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=Ft(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ft(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ft(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ft(y)&&typeof y.J=="function"?y.J():y,a},vn.prototype.qb=function(a){a.classType===vn&&(this.change=a)},vn.prototype.toString=function(){var a="";return a=this.change===wn?a+"* ":this.change===Gn?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===wn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Hr(this.object)),this.oldValue!==null&&(a+=" old: "+Hr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Hr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},vn.prototype.I=function(a){return a?this.oldValue:this.newValue},vn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},vn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},vn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},vn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},vn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},An.Object.defineProperties(vn.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===wn&&(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}}}),vn.prototype.redo=vn.prototype.redo,vn.prototype.canRedo=vn.prototype.canRedo,vn.prototype.undo=vn.prototype.undo,vn.prototype.canUndo=vn.prototype.canUndo,vn.prototype.getParam=vn.prototype.Dz,vn.prototype.getValue=vn.prototype.I,vn.prototype.clear=vn.prototype.clear;var wn=new Bt(vn,"Transaction",-1),Gn=new Bt(vn,"Property",0),Jn=new Bt(vn,"Insert",1),gi=new Bt(vn,"Remove",2);vn.className="ChangedEvent",vn.Transaction=wn,vn.Property=Gn,vn.Insert=Jn,vn.Remove=gi;function Ki(){this.o=new tn().freeze(),this.xa="",this.j=!1}Ki.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
|
|
`+E.toString())}}return y},Ki.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()},Ki.prototype.canUndo=function(){return this.isComplete},Ki.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()}},Ki.prototype.canRedo=function(){return this.isComplete},Ki.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()}},Ki.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ti,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Gn&&E.object){var b=y.get(E.object);b||(b=new ti,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},An.Object.defineProperties(Ki.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}}}),Ki.prototype.optimize=Ki.prototype.ak,Ki.prototype.redo=Ki.prototype.redo,Ki.prototype.canRedo=Ki.prototype.canRedo,Ki.prototype.undo=Ki.prototype.undo,Ki.prototype.canUndo=Ki.prototype.canUndo,Ki.prototype.clear=Ki.prototype.clear,Ki.className="Transaction";function hi(){this.Pt=new Tn,this.Jd=!1,this.u=new tn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new tn().freeze(),this.hl=new tn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}hi.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
`+this.history.M(E).toString(a-1);return y},hi.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},hi.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Be=hi.prototype,Be.Xw=function(a){this.Pt.add(a)},Be.Rx=function(a){this.Pt.remove(a)},Be.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},Be.eb=function(a){return a===void 0&&(a=""),ji(this,!0,a)},Be.Kf=function(){return ji(this,!1,"")};function ji(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&jn("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Be.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()}},hi.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},hi.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){jn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},hi.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},hi.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){jn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},hi.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new vn;for(E.change=wn,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},hi.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ki);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||jn("Change not within a transaction: "+x.toString()))}},hi.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},An.Object.defineProperties(hi.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}}}),hi.prototype.handleChanged=hi.prototype.Tu,hi.prototype.redo=hi.prototype.redo,hi.prototype.undo=hi.prototype.undo,hi.prototype.canUndo=hi.prototype.canUndo,hi.prototype.discardHistoryAfterIndex=hi.prototype.lx,hi.prototype.rollbackTransaction=hi.prototype.Kf,hi.prototype.commitTransaction=hi.prototype.eb,hi.prototype.startTransaction=hi.prototype.Ea,hi.prototype.removeModel=hi.prototype.Rx,hi.prototype.addModel=hi.prototype.Xw,hi.prototype.clear=hi.prototype.clear,hi.className="UndoManager";function si(){zr(this),this.H=pi,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Nt,this.Zr=-1}si.prototype.toString=function(){return this.name!==""?this.name+" Tool":Wi(this.constructor)},si.prototype.updateAdornments=function(){},si.prototype.canStart=function(){return this.isEnabled},si.prototype.doStart=function(){},si.prototype.doActivate=function(){this.isActive=!0},si.prototype.doDeactivate=function(){this.isActive=!1},si.prototype.doStop=function(){},si.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},si.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},si.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},si.prototype.doMouseMove=function(){},si.prototype.doMouseUp=function(){this.stopTool()},si.prototype.doMouseWheel=function(){},si.prototype.canStartMultiTouch=function(){return!0},si.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ue.allocAt(NaN,NaN)),E=y.So(1,Ue.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}Ue.free(x),Ue.free(E)},si.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ue.allocAt(NaN,NaN)),E=y.So(1,Ue.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new Ue((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}Ue.free(x),Ue.free(E)},si.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},si.prototype.doKeyUp=function(){},si.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},si.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},si.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(uo?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||(uo?y.meta:y.control)||y.shift||a.clearSelection()}},si.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,dr(a,E,x),E.handled};function dr(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}si.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;E!==null&&(ee=E.mouseEnter,!(ee!==null&&(z===E||z!==null&&z.rg(E)||(ee(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},si.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},si.prototype.doCurrentObjectChanged=function(){},si.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===oo&&!y.shift||b===lr&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===oo&&y.shift||b===lr&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},si.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},si.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=_r(function(){x.doWaitAfter(E)},a)},si.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Rn.clearTimeout(this.Zr),this.Zr=-1},si.prototype.doWaitAfter=function(){},si.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Jo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},si.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},An.Object.defineProperties(si.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ne&&(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}}}),si.prototype.startTransaction=si.prototype.Ea,si.className="Tool";function Vn(){si.call(this),this.name="ToolManager",this.hb=new tn,this.ob=new tn,this.Hb=new tn,this.F=this.V=850,this.o=new oi(2,2).ja(),this.Ha=5e3,this.ia=lr,this.u=lo,this.Mp=this.j=null,this.zj=-1}Tt(Vn,si),Vn.prototype.initializeStandardTools=function(){},Vn.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Jo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Vn.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===co&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Pr){y.bubbles=!0;return}if(this.gestureBehavior===co)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===lr?this.mouseWheelBehavior=oo:this.mouseWheelBehavior===oo&&(this.mouseWheelBehavior=lr)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Vn.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Pr){y.bubbles=!0;return}if(this.gestureBehavior===co)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}zi(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function zi(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Vn.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Jo&&(y===a||y.rg(a))||this.hideToolTip()},Vn.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()))},Vn.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)},Vn.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 Jo)||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()},Vn.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Jo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Ts&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Rn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=_r(function(){b.hideToolTip()},a)}},Vn.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},Vn.prototype.hideToolTip=function(){this.zj!==-1&&(Rn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Jo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ts&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Vn.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Vn.prototype.doMouseWheel=function(){this.standardMouseWheel()},Vn.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Vn.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Vn.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},Vn.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},Vn.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)},An.Object.defineProperties(Vn.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 Jo?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}}}),Vn.prototype.replaceStandardTool=Vn.prototype.gb;var lr=new Bt(Vn,"WheelScroll",0),oo=new Bt(Vn,"WheelZoom",1),Yr=new Bt(Vn,"WheelNone",2),lo=new Bt(Vn,"GestureZoom",3),co=new Bt(Vn,"GestureCancel",4),Pr=new Bt(Vn,"GestureNone",5);Vn.className="ToolManager",Vn.WheelScroll=lr,Vn.WheelZoom=oo,Vn.WheelNone=Yr,Vn.GestureZoom=lo,Vn.GestureCancel=co,Vn.GestureNone=Pr;function $i(){si.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 Ue(NaN,NaN),this.Fr=new Ue,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Tn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ea;Tt($i,si),$i.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},$i.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},$i.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,(uo?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},$i.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),Ba=null,this.isActive=!0,this.tl.set(a.position),$o(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&&xr(a),Ys(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ba=this,al=this.diagram,this.doSimulatedDragOut()))};function $o(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof ei?(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 Ks,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}$i.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},$i.prototype.Pd=function(a){return a===void 0?new Wd(fo):this.isGridSnapEnabled?new Wd(new Ue(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Wd(a.copy())},$i.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Pa(this),Zs(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ea.count){for(var y=Ea,x=y.length,E=0;E<x;E++){var b=y.M(E);js(b),ja(b),Pa(b),b.diagram.ug()}y.clear()}js(this),this.tl.h(NaN,NaN),al!==null&&(al.currentCursor=""),Ba=al=null,ja(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),wo(a,!0)},$i.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Pa(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,zs(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function $a(){var a=Ba;ja(a),ma(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}$i.prototype.doCancel=function(){ja(this),ma(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},$i.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},$i.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ha(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ma(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 ti,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof ei&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,$o(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,If(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function ja(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 ei&&(x.value.point=new Ue(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function js(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 Za(a,y,x){var E=a.diagram,b=a.startPoint,z=Ue.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Ue.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(xr(E),E.hk())}$i.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&Ko(E,a,y,this.dragOptions,x)};function ma(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof ei&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),If(E,-b.x,-b.y)}y.bd()}}function es(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Vs(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=zs(a,b,E),!a.isActive&&Ba===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Gr)){var oe=x.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Ba===null||(a.doDragOver(y,E),!a.isActive&&Ba===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}$i.prototype.findDragOverObject=function(a){var y=this;return To(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Jo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},$i.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 zs(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<b;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ba===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=xs(b);for(b=a.Cg.length,x=0;x<b&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),E=!0,!y.handled));x++);return E}function xs(a){var y=a.panel;return y!==null?y:a instanceof or&&!(a instanceof Gr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Cs(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(se){return E.findValidLinkablePort(se,x)});a=Ue.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(Cr,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Ue.free(a),ee}function Vs(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;x.fromNode===null&&(z=Cs(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Cs(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):yl(b,ee,z,oe,re):yl(b,null,null,null,null)}}}}$i.prototype.doDragOver=function(){};function hl(a,y){var x=a.diagram;a.dragsLink&&Vs(a,!0),Pa(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;Fl(a,b,z),z=xs(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ba!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof xi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ba!==null){for(a=qt.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof xi&&xu(x,E,a);qt.free(a)}}}function Fl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Gr||(x=a.mouseDrop,x!==null&&x(y))}function xu(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof ei},!0,function(b){return b instanceof ei},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}$i.prototype.doDropOnto=function(){},$i.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()?(Ha(this,!1),Ys(a,this.copiedParts),Za(this,this.copiedParts,!1),Zs(a,this.copiedParts)):this.mayMove()?(ja(this),Za(this,this.draggedParts,!0)):this.mayDragOut()?(Ha(this,!1),Za(this,this.copiedParts,!1)):ja(this),es(this,a.lastInput.documentPoint))}},$i.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?(ja(this),Ha(this,!0),Ys(a,this.copiedParts),Za(this,this.copiedParts,!1),Zs(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,ja(this),this.mayMove()&&(Za(this,this.draggedParts,!0),es(this,a.lastInput.documentPoint))),this.Ym=!0,hl(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&qs(this),a.Ya(),Zs(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},$i.prototype.simulatedMouseMove=function(a,y,x){if(Ba===null)return!1;var E=Ba.diagram;x instanceof Ne||(x=null);var b=al;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ba.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),al=x,x!==null&&x!==E&&($a(),b=x.toolManager.findTool("Dragging"),b!==null&&(Ea.contains(b)||Ea.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},$i.prototype.simulatedMouseUp=function(a,y,x){if(Ba===null)return!1;var E=al,b=Ba.diagram;if(x===null)return Ba.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Ba.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;al=x,E=x.toolManager.findTool("Dragging"),E!==null&&($a(),Ea.contains(E)||Ea.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Ue),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=Ba,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function qs(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof xi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}$i.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(uo?!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())},$i.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())},$i.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())},$i.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},$i.prototype.Az=function(){return Ba},$i.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ba;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},$i.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Vr(a),a.animationManager.Cc(),a=Ba,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},$i.prototype.doSimulatedDragLeave=function(){var a=Ba;a!==null&&a.doSimulatedDragOut(),this.doCancel()},$i.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ba;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Eu(this,y.draggedParts.Lf(),!1,a.firstInput),Za(this,this.copiedParts,!1),es(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},$i.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ba;if(y!==null){var x=y.diagram;if(y.Ym=!0,ja(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Eu(this,y.draggedParts.Lf(),!0,a.lastInput),Za(this,this.copiedParts,!1);var E=new Tn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),hl(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Eu(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=qt.alloc();b=E=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var se=oe.value;if(se.isVisible()){var ue=se.location;se=ue.x,ue=ue.y,isNaN(se)||isNaN(ue)||(se<E&&(E=se),ue<b&&(b=ue),se>ee&&(ee=se),ue>re&&(re=ue))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,qt.free(z),z=a.Fr,ee=new ti,re=Ue.alloc(),oe=y.iterator;oe.next();)se=oe.value,se instanceof ei&&se.canCopy()&&(ue=x.I(se),ue!==null&&(ue.points=se.points,If(ue,z.x-E,z.y-b),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)se=y.value,se.Zc()&&se.canCopy()&&(oe=x.I(se),oe!==null&&(se=se.location,re.h(z.x-(E-se.x),z.y-(b-se.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Ue.free(re),a.copiedParts=ee,$o(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,If(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}$i.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},$i.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Ue},An.Object.defineProperties($i.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}}}),$i.prototype.getDraggingSource=$i.prototype.Az;var Ba=null,al=null;$i.className="DraggingTool",Ea=new tn,vi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vn.prototype.doCancel=function(){Ba!==null&&Ba.doCancel(),si.prototype.doCancel.call(this)};function va(){si.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ei,y=new to;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new to,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new xi,y=new to,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=qa,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new xi,y=new to,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=qa,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 ti,this.Of=this.gj=this.Pf=null}Tt(va,si),va.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},va.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=oi.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,oi.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Cr,z=Ue.alloc(),x.location=y.ga(Cr,z),Ue.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},va.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=qa,y.fromSpot=ll,y.toSpot=ll),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},va.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},va.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof xi){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)}},va.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof xi))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof xi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},va.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ge){return b.findValidLinkablePort(ge,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof xi){var oe=ee.ga(Cr,Ue.alloc()),se=x.x-oe.x,ue=x.y-oe.y;Ue.free(oe),oe=se*se+ue*ue,oe<E&&(se=this.validPortsCache.I(ee),se!==null?se&&(y=ee,E=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,E=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof xi&&(x.layer===null||x.layer.allowLink))?y:null},va.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},va.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},va.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},va.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof xi))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof xi))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},va.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},va.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new Tn;return E.add(a),As(this,x,y,E)};function As(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),As(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),As(a,y.labeledLink,x,E))))}va.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Th){if(E===eg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Es(this,a,y,x,!0)}if(E===tg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Es(this,a,y,x,!0)}if(E===qf)return a===y?a=!0:(E=new Tn,E.add(y),a=_s(this,E,a,y,x)),!a;if(E===$f)return!Es(this,a,y,x,!1);if(E===qh)return a===y?a=!0:(E=new Tn,E.add(y),a=Gu(this,E,a,y,x)),!a}return!0};function Es(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==E&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Es(a,ee,x,E,b)))return!0}return!1}function _s(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&_s(a,y,ee,E,b)))return!0}return!1}function Gu(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&Gu(a,y,re,E,b))return!0}}return!1}An.Object.defineProperties(va.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}}}),va.className="LinkingBaseTool";function ea(){va.call(this),this.name="Linking",this.V={},this.F=null,this.K=da,this.Xd=null}Tt(ea,va),ea.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},ea.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 xi)))return null;var x=this.direction;if(x===da||x===vl){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===da||x===Yl)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ea.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 xi&&(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 xi&&(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)},ea.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()},ea.prototype.doStop=function(){va.prototype.doStop.call(this),this.startObject=null},ea.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof xi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ee):(y=re,x=ee,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},ea.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof ei)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)},ea.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},ea.prototype.doNoLink=function(){},An.Object.defineProperties(ea.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 da=new Bt(ea,"Either",0),vl=new Bt(ea,"ForwardsOnly",0),Yl=new Bt(ea,"BackwardsOnly",0);ea.className="LinkingTool",ea.Either=da,ea.ForwardsOnly=vl,ea.BackwardsOnly=Yl;function Ks(){va.call(this),this.name="Relinking";var a=new to;a.figure="Diamond",a.desiredSize=Ta,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new to,a.figure="Diamond",a.desiredSize=Ta,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new qt}Tt(Ks,va),Ks.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Ks.prototype.makeAdornment=function(a,y){var x=new Jo;return x.type=Kn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ks.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},Ks.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 Jo&&x.adornedPart instanceof ei))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=Na),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Na),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},Ks.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Dp||x===Rf)&&(x=xc),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}},Ks.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()},Ks.prototype.doStop=function(){va.prototype.doStop.call(this),this.handle=null},Ks.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof xi&&(this.isForwards?(E=ee,b=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Ks.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},Ks.prototype.doNoRelink=function(){};function yl(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}An.Object.defineProperties(Ks.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 Jo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ks.className="RelinkingTool",vi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),vi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Fa(){si.call(this),this.name="LinkReshaping";var a=new to;a.figure="Rectangle",a.desiredSize=tl,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new to,a.figure="Diamond",a.desiredSize=Ta,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ue,this.Yq=new tn}Tt(Fa,si),Fa.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Iu},Fa.prototype.om=function(a,y){a.reshapingBehavior=y},Fa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){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)}},Fa.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Jo,b.type=Kn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=E?1:0;if(y.resegmentable&&y.computeCurve()!==gd)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&E){oe=y.i(x);var se=y.i(x+1);At.B(oe.x,se.x)&&At.B(oe.y,se.y)&&(se=y.i(x-1)),At.B(oe.x,se.x)?(this.om(re,qu),re.cursor="n-resize"):At.B(oe.y,se.y)&&(this.om(re,iu),re.cursor="w-resize")}else ee===z-1&&E?(oe=y.i(z-1),se=y.i(z),At.B(oe.x,se.x)&&At.B(oe.y,se.y)&&(oe=y.i(z+1)),At.B(oe.x,se.x)?(this.om(re,qu),re.cursor="n-resize"):At.B(oe.y,se.y)&&(this.om(re,iu),re.cursor="w-resize")):ee!==z&&(this.om(re,ad),re.cursor="move");b.add(re)}b.adornedObject=a}return b},Fa.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Fa.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Fa.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},Fa.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 ei){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},Fa.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Fa.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Fa.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Fa.prototype.getResegmentingPoint=function(){return this.handle.ga(Cr)},Fa.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Fa.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(Xl(this,ee,E,b,z,!0)||Xl(this,ee,E,b,z,!1))){var re=y.points.copy();Xl(this,ee,E,b,z,!0)?(re.cd(x-2,new Ue(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Ue(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Ue((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Ue((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(Xl(this,E,b,z,ee,!0)||Xl(this,E,b,z,ee,!1))&&(re=y.points.copy(),Xl(this,E,b,z,ee,!0)?(re.cd(x-1,new Ue(E.x,(E.y+ee.y)/2)),re.cd(x+2,new Ue(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new Ue((E.x+ee.x)/2,E.y)),re.cd(x+2,new Ue((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Ue.alloc(),At.qh(E.x,E.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),Ue.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xl(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}Fa.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===qu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===iu&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===qu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===iu&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),ee=y.i(E+1);At.B(z.x,b.x)&&At.B(b.y,ee.y)?(At.B(z.x,y.i(E-2).x)&&!At.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),At.B(ee.y,y.i(E+2).y)&&!At.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)):At.B(z.y,b.y)&&At.B(b.x,ee.x)?(At.B(z.y,y.i(E-2).y)&&!At.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),At.B(ee.x,y.i(E+2).x)&&!At.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):At.B(z.x,b.x)&&At.B(b.x,ee.x)?(At.B(z.x,y.i(E-2).x)&&!At.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),At.B(ee.x,y.i(E+2).x)&&!At.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):At.B(z.y,b.y)&&At.B(b.y,ee.y)&&(At.B(z.y,y.i(E-2).y)&&!At.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),At.B(ee.y,y.i(E+2).y)&&!At.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Cr,Ue.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Ue.alloc()),y.L(0,E.x,E.y),Ue.free(z),Ue.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(Cr,Ue.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Ue.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ue.free(x),Ue.free(a));y.zf()},Fa.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ad:return a;case qu:return new Ue(y.i(x).x,a.y);case iu:return new Ue(a.x,y.i(x).y);default:case Iu:return y.i(x)}},An.Object.defineProperties(Fa.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 Jo))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}}}),Fa.prototype.setReshapingBehavior=Fa.prototype.om,Fa.prototype.getReshapingBehavior=Fa.prototype.Ru;var Iu=new Bt(Fa,"None",0),iu=new Bt(Fa,"Horizontal",1),qu=new Bt(Fa,"Vertical",2),ad=new Bt(Fa,"All",3);Fa.className="LinkReshapingTool",Fa.None=Iu,Fa.Horizontal=iu,Fa.Vertical=qu,Fa.All=ad,vi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ya(){si.call(this),this.name="Resizing",this.o=new oi(1,1).freeze(),this.j=new oi(9999,9999).freeze(),this.yg=new oi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new to;a.alignmentFocus=Cr,a.figure="Rectangle",a.desiredSize=tl,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ue,this.Dw=new oi,this.Tn=new Ue,this.rt=new oi(0,0),this.qt=new oi(1/0,1/0),this.pt=new oi(1,1)}Tt(ya,si),ya.prototype.updateAdornments=function(a){if(!(a===null||a instanceof ei)){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(),sg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ya.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Jo,y.type=Kn.Spot,y.locationSpot=Cr;var x=new Sc;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ra)),y.add(this.makeHandle(a,ca)),y.add(this.makeHandle(a,tu)),y.add(this.makeHandle(a,Bu)),y.add(this.makeHandle(a,nu)),y.add(this.makeHandle(a,du)),y.add(this.makeHandle(a,Ou)),y.add(this.makeHandle(a,Tu))}else if(zd(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ya.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ya.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=Cr),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Kn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ya.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},ya.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))},ya.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ya.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ya.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ya.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Ue.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Ue.free(b)}},ya.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Ue.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Ue.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ya.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 Gr){var E=new tn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ya.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Cr);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,se=ee.x+ee.width,ue=ee.y+ee.height,ge=1;if(!z){ge=ee.width;var ye=ee.height;0>=ge&&(ge=1),0>=ye&&(ye=1),ge=ye/ge}return ye=Ue.alloc(),At.No(a.x,a.y,re,oe,b.width,b.height,ye),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(ye.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=Math.max(se-a.x,x.width),a.y=Math.max(ye.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.x=se-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(ye.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=Math.max(se-a.x,x.width),a.height=Math.max(Math.min(ye.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.x=se-a.width)):(a.x=Math.max(ye.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=se-a.x,z||(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(ye.x-re,E.width),x.width),a.y=Math.max(ye.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(ye.x-re,E.width),x.width),a.height=Math.max(Math.min(ye.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width))):(a.width=Math.max(Math.min(ye.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(ye.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width,a.x=re+.5*(se-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(ye.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width,a.x=re+.5*(se-re-a.width))),Ue.free(ye),a},ya.prototype.computeReshape=function(){var a=fn;return this.adornedObject instanceof to&&(a=Zv(this.adornedObject)),!(a===Ci||this.diagram.lastInput.shift)},ya.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},ya.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},ya.prototype.computeCellSize=function(){var a=new oi(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},An.Object.defineProperties(ya.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 Jo))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 Jo)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}}}),ya.className="ResizingTool",vi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ns(){si.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ue,this.ue=null;var a=new to;a.figure="Ellipse",a.desiredSize=Ta,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ue(NaN,NaN),this.u=0,this.F=50}Tt(Ns,si),Ns.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)}},Ns.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Jo,y.type=Kn.Position,y.locationSpot=Cr;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(zd(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ns.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},Ns.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)},Ns.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(Cr)},Ns.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Ns.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ue(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ns.prototype.stopTransaction=function(){var a=this.diagram,y=si.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ns.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ns.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ns.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()},Ns.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Ns.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},An.Object.defineProperties(Ns.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 Jo))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 Jo)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}}}),Ns.className="RotatingTool",vi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ru(){si.call(this),this.name="ClickSelecting"}Tt(Ru,si),Ru.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ru.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ru.className="ClickSelectingTool";function fl(){si.call(this),this.name="Action",this.pk=null}Tt(fl,si),fl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},fl.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()},fl.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))}},fl.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()},fl.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())},fl.prototype.doStop=function(){this.pk=null},fl.className="ActionTool";function $u(){si.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ue(0,0)}Tt($u,si),$u.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)},$u.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},$u.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof or)x.Zc()&&(zd(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Ft(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Ue.allocAt(a.x,a.y);this.isGridSnapEnabled&&hs(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Ue.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},An.Object.defineProperties($u.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}}}),$u.className="ClickCreatingTool";function Gl(){si.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new or;a.layerName="Tool",a.selectable=!1;var y=new to;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Tt(Gl,si),Gl.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))},Gl.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Gl.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Gl.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=oi.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),oi.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Gl.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()},Gl.prototype.computeBoxBounds=function(){var a=this.diagram;return new qt(a.firstInput.documentPoint,a.lastInput.documentPoint)},Gl.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),uo?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 tn,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},An.Object.defineProperties(Gl.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}}}),Gl.className="DragSelectingTool";function Ds(){si.call(this),this.name="Panning",this.Xt=new Ue,this.xy=new Ue,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Rn.document,"scroll",a.Kw,!1),a.stopTool()}}Tt(Ds,si),Ds.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())},Ds.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Rn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Ds.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Ds.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Ds.prototype.doMouseMove=function(){this.move()},Ds.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ds.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},An.Object.defineProperties(Ds.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Ds.className="PanningTool",vi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),vi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),vi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),vi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),vi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Ts(){this.F=this.u=this.j=this.o=null}An.Object.defineProperties(Ts.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}}}),Ts.className="HTMLInfo";function Js(a,y,x){this.text=a,this.hx=y,this.visible=x}Js.className="ContextMenuButtonInfo";function gl(){si.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ue,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Tt(gl,si);function Ll(a){var y=new Ts;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},ou=y,a.tu=function(){a.stopTool()},y=di("div");var x=di("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=di("style");Rn.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",Xa,!1),E.addEventListener(y,"selectstart",Xa,!1),E.addEventListener(x,"contextmenu",Xa,!1)),y.className="goCXforeground",x.className="goCXbackground",Rn.document.body&&(Rn.document.body.appendChild(y),Rn.document.body.appendChild(x)),Pu=y,Ls=x,Mc=!0}function Xa(a){return a.preventDefault(),!1}gl.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)},gl.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},gl.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},gl.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof Ne||(a instanceof gt?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},gl.prototype.doActivate=function(){},gl.prototype.doMouseDown=function(){if(si.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Jo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Il(this)},gl.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Jo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Il(this)};function Il(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof Ts||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(ru(a,!0),a.isActive||a.stopTool())}gl.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function ru(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=ou,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof gt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Jo&&!a.currentContextMenu.visible&&a.stopTool()}}gl.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},gl.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Jo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Ts&&a.show(y,x,this);this.currentContextMenu=a},gl.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},gl.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Jo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ts&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Sl(a){var y=new tn;return y.add(new Js("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Js("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Js("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Js("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Js("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Js("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Js("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Js("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Js("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Js("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Js("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Js("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Js("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}gl.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Sl(this)),Pu.innerHTML="",Ls.addEventListener("pointerdown",this.tu,!1);var y=this,x=di("ul");x.className="goCXul",Pu.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=di("li"),z.className="goCXli";var ee=di("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),x.appendChild(z)}}Pu.style.display="block",Ls.style.display="block"},gl.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ou){Pu.style.display="none",Ls.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ls,"pointerdown",this.tu,!1),this.currentContextMenu=null}},An.Object.defineProperties(gl.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Jo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Mc===!1&&ou===null&&Bs&&Ll(this),ou},set:function(a){a===null&&(Mc=!0),ou=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ou=null,Mc=!1,Ls=null,Pu=null;gl.className="ContextMenuTool",vi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function aa(){si.call(this),this.name="TextEditing",this.Zh=new Ja,this.ia=null,this.V=pc,this.vj=null,this.qa=Po,this.u=1,this.F=!0,this.o=null,this.j=new Ts,this.kt=null,Fs(this,this.j)}Tt(aa,si);function Fs(a,y){if(Bs){var x=di("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(Du)):b==="Tab"?(a.acceptText(sd),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Po){var E=a.kt;a.qa===Va&&(a.qa=sl),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Po){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof Ja&&z instanceof aa)if(z.state===kc)x.style.border="3px solid red",x.focus();else{var ee=E.ga(Cr),re=b.position,oe=b.scale,se=E.Df()*oe;se<z.minimumEditorScale&&(se=z.minimumEditorScale);var ue=E.naturalBounds.width*se+6,ge=E.naturalBounds.height*se+2,ye=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=E.verticalAlignment,oe=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*se,ge=re.y*ge-re.y*oe+re.offsetY-(.5*ge-.5*oe)-oe/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*se+"%",x.style.lineHeight="normal",x.style.width=ue+"px",x.style.left=(ye-ue/2|0)-1+"px",x.style.top=(ee+ge|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=se,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}aa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Nc&&Nc!==this&&(Nc.acceptText(au),Nc&&Nc!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ja&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===pc&&!y.isSelected||this.starting===La&&2>a.lastInput.clickCount)):!1},aa.prototype.doStart=function(){Nc=this,this.textBlock!==null&&this.doActivate()},aa.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 Ja&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Va;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new qt(this.textBlock.ga(Ra),this.textBlock.ga(tu));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},aa.prototype.doCancel=function(){this.stopTool()},aa.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},aa.prototype.doMouseDown=function(){this.isActive&&this.acceptText(au)},aa.prototype.acceptText=function(a){switch(a){case au:this.qa===Hs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Va||this.qa===kc||this.qa===sl)&&(this.qa=mc,Zu(this));break;case Uu:case Du:case sd:(Du!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Va||this.qa===kc||this.qa===sl)&&(this.qa=mc,Zu(this))}};function Zu(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Hs,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=kc,a.doError(b,z))}}aa.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)},aa.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},aa.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Po,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},aa.prototype.doStop=function(){Nc=null},aa.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},aa.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},An.Object.defineProperties(aa.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)}}}),aa.prototype.measureTemporaryTextBlock=aa.prototype.Lx;var Uu=new Bt(aa,"LostFocus",0),au=new Bt(aa,"MouseDown",1),sd=new Bt(aa,"Tab",2),Du=new Bt(aa,"Enter",3),Yd=new Bt(aa,"SingleClick",0),pc=new Bt(aa,"SingleClickSelected",1),La=new Bt(aa,"DoubleClick",2),Po=new Bt(aa,"StateNone",0),Va=new Bt(aa,"StateActive",1),sl=new Bt(aa,"StateEditing",2),mc=new Bt(aa,"StateValidating",3),kc=new Bt(aa,"StateInvalid",4),Hs=new Bt(aa,"StateValidated",5),Nc=null;aa.className="TextEditingTool",aa.LostFocus=Uu,aa.MouseDown=au,aa.Tab=sd,aa.Enter=Du,aa.SingleClick=Yd,aa.SingleClickSelected=pc,aa.DoubleClick=La,aa.StateNone=Po,aa.StateActive=Va,aa.StateEditing=sl,aa.StateValidating=mc,aa.StateInvalid=kc,aa.StateValidated=Hs,vi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function su(a){gu||(Ua(),gu=!0),this.H=pi,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Gs,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Tn,this.ce=new Rl,this.ce.Yd=this,this.Ei=new Tn,this.pu=new Tn,this.Sr=new Tn,this.pr=new Tn,a&&Object.assign(this,a)}su.prototype.Xe=function(a){this.H=a},su.prototype.canStart=function(){return!0};function xl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Wo(a.H),a.zb=!0)}function ba(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Gs?(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===fh&&y.vc.clear(),a.Qw=!!(a.Pk===Jd&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ld(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==wu&&E!==null&&(delete E.start.scale,delete E.end.scale),Rn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&xr(x),Lr(x),a.zb=!1,y.start(),y.bc&&(tc(a),x.Ya(),Jh(y,0),Vr(x,!0),nc(a),x.R("AnimationStarting",a)))}))}}function ec(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ku(a,y,x,E){a.isTicking||ec(a)||y instanceof ei&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Be=su.prototype,Be.fv=function(a){return this.ce.fv(a)},Be.Xu=function(a){return this.ce.Xu(a)};function Td(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof gt&&oe.diagram!==null||oe instanceof Ne){re=!0;break e}}re=!1}re?Tc(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(tc(b),Vr(b.H),nc(b)),Rn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Rn.requestAnimationFrame(function(){x()}))}function Xh(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function tc(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 nc(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Be.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(),ld(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ld(y,this.H)},Be.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))},Be.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),fu(this,a))},Be.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ic(this.ce,y,"position",y.position,y.position),fu(this,a))};function qc(a,y,x){!a.zb||y.D(x)||ec(a)||(a.H.pi||(y=x.copy()),ic(a.ce,a.H,"position",y,x))}function Xd(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function fu(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Vc(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],se=y[1],ue=y[2];return y=y[3],re===0||re===100?(z=oe,ee=se):(ue===0||ue===100)&&(oe=z,se=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ee=b(x,ee,se-ee,E),re=b(x,re,ue-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function Ua(){function a(x,E,b,z,ee,re){x.position=new Ue(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new ti;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new Ue(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!0):x.location=new Ue(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new Ue(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,ee,re){var oe=x.actualBounds,se=b.actualBounds;b=se.x+se.width/2-oe.width/2,oe=se.y+se.height/2-oe.height/2,ee<re?x.mm(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re),!1):x.position=new Ue(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ee,re){x.desiredSize=new qt(z(ee,E.width,b.width-E.width,re),z(ee,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,ee,re){x.width=z(ee,E,b-E,re)}),y.add("height",function(x,E,b,z,ee,re){x.height=z(ee,E,b-E,re)}),y.add("fill",function(x,E,b,z,ee,re){x.fill=Vc(E,b,ee,re,z)}),y.add("stroke",function(x,E,b,z,ee,re){x.stroke=Vc(E,b,ee,re,z)}),y.add("strokeWidth",function(x,E,b,z,ee,re){x.strokeWidth=z(ee,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,ee,re){x.strokeDashOffset=z(ee,E,b-E,re)}),y.add("background",function(x,E,b,z,ee,re){x.background=Vc(E,b,ee,re,z)}),y.add("areaBackground",function(x,E,b,z,ee,re){x.areaBackground=Vc(E,b,ee,re,z)}),y.add("opacity",function(x,E,b,z,ee,re){x.opacity=z(ee,E,b-E,re)}),y.add("scale",function(x,E,b,z,ee,re){x.scale=z(ee,E,b-E,re)}),y.add("angle",function(x,E,b,z,ee,re){x.angle=z(ee,E,b-E,re)}),ra=y}An.Object.defineProperties(su.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&&xn(a,">= 1",su,"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}}}),su.prototype.stopAnimation=su.prototype.Cc;var ra=null,gu=!1,Gs=new Bt(su,"Default",1),Jd=new Bt(su,"AnimateLocations",2),fh=new Bt(su,"None",3);su.className="AnimationManager",su.defineAnimationEffect=function(a,y){gu||(Ua(),gu=!0),ra.add(a,y)},su.Default=Gs,su.AnimateLocations=Jd,su.None=fh;function Rl(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=xd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=fo,this.vc=new ti,this.Tt=new ti,this.yl=new Tn,this.Ut=new Tn,this.dw=Ed,a&&Object.assign(this,a)}Rl.prototype.suspend=function(){this.Xk=!0},Rl.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Tc(this,!0),tc(this.Yd),Vr(this.H),nc(this.Yd),this.H.redraw()};function ld(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}Be=Rl.prototype,Be.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 Ne?a=x:x instanceof gt&&(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===Gs&&this===y.defaultAnimation&&(this.Lp=Qh,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Rd),tc(y),this.yl.each(function(E){E.data=null,a.add(E)}),nc(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Td(y,this),this)},Be.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Be.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof Ne?this.H=a:a instanceof gt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof or){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ic(this,a,y,x,E,b),this};function ic(a,y,x,E,b,z){var ee=a.vc;if(y instanceof Ne&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(fd(E),Dg(),E=[Uc.j,Uc.u,Uc.o,Uc.F],fd(b),Dg(),b=[Uc.j,Uc.u,Uc.o,Uc.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,se=re.end;oe[x]===void 0&&(oe[x]=Od(E)),se[x]=Od(b)}else oe={},se={},oe[x]=Od(E),se[x]=Od(b),re=oe.position,y instanceof gt&&re instanceof Ue&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(se.position),re=new rc(oe,se,z),ee.add(y,re);ee=oe[x],ee instanceof Ue&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof or?re.Ku.location=Od(y.location):z&&(re.Ku[x]=Od(E))}function Od(a){return a instanceof Ue||a instanceof oi?a.copy():a}Be.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Be.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Tc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),tc(x),Jh(a,b),Vr(a.H,!0),nc(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Jh(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof gt&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=ra,se;for(se in ee)se==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(se)===null||oe.get(se)(z,re[se],ee[se],a.Lp,y,x,a)}}}Be.stop=function(){return this.bc?(this.Ml(!0),this):this},Be.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,tc(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=ra;E.next();){var ee=E.key,re=E.value,oe=b?re.end:re.start,se=b?re.start:re.end,ue=re.Ku,ge;for(ge in se)if(z.get(ge)!==null){var ye=ge;!re.Hu||ye!=="position:nodeCollapse"&&ye!=="position:placeholder"||(ye="position"),z.get(ye)(ee,oe[ge],ue[ge]!==void 0?ue[ge]:re.Hu?oe[ge]:se[ge],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof or&&(ee.location=ue.location),re.nv&&ee instanceof or&&ee.Zb(!1)}if(y.As.clear(),wo(y,!1),y.Ya(),y.N(),Vr(y,!0),x.defaultAnimation===this){for(ge=x.pr.iterator;ge.next();)b=ge.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Vr(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),nc(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ld(this,null),x.Ml(this),y.$b())}},Be.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Gr&&(E=y.placeholder),E!==null?(x=E.ga(Ra),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ue(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Gr)for(a=a.memberParts;a.next();)E=a.value,E instanceof xi&&this.Cj(E,y)},Be.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Gr&&(x=y.placeholder),x!==null){var E=x.ga(Ra);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Gr)for(a=a.memberParts;a.next();)E=a.value,E instanceof xi&&this.Aj(E,y)}},Be.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},An.Object.defineProperties(Rl.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&xn(a,">= 1",Rl,"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:Ot("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}}}),Rl.prototype.getTemporaryState=Rl.prototype.Ez,Rl.prototype.stop=Rl.prototype.stop,Rl.prototype.add=Rl.prototype.add,Rl.prototype.addTemporaryPart=Rl.prototype.Iy;function xd(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Qh(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Rl.className="Animation",Rl.EaseLinear=function(a,y,x,E){return x*a/E+y},Rl.EaseInOutQuad=xd,Rl.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Rl.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Rl.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Rl.EaseOutExpo=Qh;function rc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}rc.className="AnimationState";function vc(a,y,x){this.xd=null,this.rf=a,this.so=x||Qd,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=ud))}vc.prototype.copy=function(){var a=new vc(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 Mh(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))}An.Object.defineProperties(vc.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 Qd=new Bt(vc,"Default",1),ud=new Bt(vc,"Immediate",2),Id=new Bt(vc,"Bundled",3);vc.className="AnimationTrigger",vc.Default=Qd,vc.Immediate=ud,vc.Bundled=Id;function bl(a){zr(this),this.H=null,this.Pa=new tn,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)}Be=bl.prototype,Be.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,vu(x)}a.clear(),this.Zq.length=0},Be.Xe=function(a){this.H=a},Be.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Gr?b++:oe instanceof xi?E++:oe instanceof ei?z++:oe instanceof Jo?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
`+x.toString(),E=x.data,E!==null&&ur(E)&&(re+=" #"+ur(E)),x instanceof xi?re+=" "+Hr(E):x instanceof ei&&(re+=" "+Hr(x.fromNode)+" "+Hr(x.toNode));return y+" "+this.Pa.count+": "+re},Be.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=Ue.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||sg(re)!==!1)&&re.isVisible()&&(b.assign(a),Ro(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Ue.free(b),re}return Ue.free(b),null},Be.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof tn||E instanceof Tn||(E=new Tn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Ue.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||sg(oe)!==!1)&&oe.isVisible()){z.assign(a),Ro(z,oe.oe);var se=oe;oe.ji(z,y,x,E)&&(y!==null&&(se=y(se)),se===null||x!==null&&!x(se)||E.add(se))}}return Ue.free(z),E},Be.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof tn||b instanceof Tn||(b=new Tn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||sg(oe)!==!1)&&oe.isVisible()){var se=oe;oe.Cf(a,y,x,E,b)&&(y!==null&&(se=y(se)),se===null||x!==null&&!x(se)||b.add(se))}}return b},Be.Nu=function(a,y,x,E,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var se=re[oe];if((ee!==!0||sg(se)!==!1)&&z(se)&&se.isVisible()){var ue=se;se.Cf(a,y,x,E,b)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||b.add(ue))}}return b},Be.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof tn||b instanceof Tn)&&(z=b),b=!0),z instanceof tn||z instanceof Tn||(z=new Tn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Ue.alloc(),oe=Ue.alloc(),se=this.Pa.s,ue=se.length;ue--;){var ge=se[ue];if((ee!==!0||sg(ge)!==!1)&&ge.isVisible()){re.assign(a),Ro(re,ge.oe),oe.h(a.x+y,a.y),Ro(oe,ge.oe);var ye=ge;ge.og(re,oe,x,E,b,z)&&(x!==null&&(ye=x(ye)),ye===null||E!==null&&!E(ye)||z.add(ye))}}return Ue.free(re),Ue.free(oe),z},Be.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Ni();for(var b=Ni(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof ei){if(ee.fd===!1)continue}else if(ee instanceof Jo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&il(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],ny(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)ny(b[y]);qn(a),qn(b)}}};function Oc(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Be.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=Oc(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=qt.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(qt.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function kh(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ee=Oc(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,se=qt.alloc(),ue=0;ue<z;ue++){var ge=b[ue];E.contains(ge)&&a.Oj(y,ge,x,re,oe,se,!1)}qt.free(se),y.globalAlpha=ee}}}Be.Oj=function(a,y,x,E,b,z,ee){if(ee&&!sg(y))a.Hs(y);else{if(E!==null&&y instanceof ei&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,E=y.containingGroup;E!==null;)ee?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ee=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof fa?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Mo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Mo(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Mo(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Be.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Gn,a,this,y,x,E,b)},Be.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&vu(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),nt(this,a,y),a},Be.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,vu(y),a};function nt(a,y,x){if(y=ut(a,y,x),x instanceof Gr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===x&&(y=ee,0<=E)||0>E&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&nt(a,-1,y)}x.svg!==null&&x.svg.remove()}function ut(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>E)for(;;){if(z===-1||ee<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<E)for(;;){if(re===b||oe>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}An.Object.defineProperties(bl.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===""&&Ot("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ot("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)&&xn(a,"0 <= value <= 1",bl,"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))}}}),bl.prototype.findObjectsNear=bl.prototype.og,bl.prototype.findObjectsIn=bl.prototype.Cf,bl.prototype.findObjectsAt=bl.prototype.ji,bl.prototype.findObjectAt=bl.prototype.ic,bl.className="Layer";function Ne(a,y){if(bg||(Cu(),bg=!0),zr(this),pi=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Bs){var x=this,E=function(){x.removeEventListener(Rn.document,"DOMContentLoaded",E,!1),x.setRTL()};Rn.document.body!==null?this.setRTL():x.addEventListener(Rn.document,"DOMContentLoaded",E,!1)}this.ol=null,cd.add("Model",wa);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Gn&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,er(this),this.model=My(),this.Wg=!0,so(this),this.layout=new vs,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 Bg,a!==void 0&&(typeof a=="string"||Rn.Element&&a instanceof Element?bn(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var En,pi;function er(a){a.Yd=new su,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new tn,a.pj=new ti,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ue(NaN,NaN).freeze(),a.du=new Ue(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ue(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Qr,a.zu=new Ue(NaN,NaN).freeze(),a.ut=new qt(NaN,NaN,NaN,NaN).freeze(),a.rj=new ao(0,0,0,0).freeze(),a.sj=Ed,a.nu=!1,a.Zt=null,a.fu=null,a.yh=wu,a.zk=Dl,a.Fg=wu,a.pq=Dl,a.yt=Ra,a.Bt=Ra,a.Fc=!0,a.pn=!1,a.De=new Tn,a.Eh=new ti,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new ao(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Nt,a.bq.diagram=a,a.Qg=new Nt,a.Qg.diagram=a,a.cj=new Nt,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,pf(a),a.ai=new Tn,a.Ht=!0,a.uu=$d,a.pw=!1,a.wu=Th,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 ti,a.Xn=new tn,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 ao(5).freeze(),a.Hw=new Tn().freeze(),a.Nt=999999999,a.nw=new Tn().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 Tn,a.ow=new Tn,a.Xh=null,a.aw=new oi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ue,bounds:new qt,Py:new oi,bA:new oi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new qt(NaN,NaN,NaN,NaN).freeze(),a.wo=new oi(NaN,NaN).freeze(),a.Sp=new qt(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ti;var y=new xi,x=new Ja;x.bind(new Pl("text","",Hr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new xi,x=new Ja,x.stroke="brown",x.bind(new Pl("text","",Hr)),y.add(x),a.Lg.add("Comment",y),y=new xi,y.selectable=!1,y.avoidable=!1,x=new to,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new oi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ti,y=new Gr,y.selectionObjectName="GROUPPANEL",y.type=Kn.Vertical,x=new Ja,x.font="bold 12pt sans-serif",x.bind(new Pl("text","",Hr)),y.add(x),x=new Kn(Kn.Auto),x.name="GROUPPANEL";var E=new to;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new Sc,E.padding=new ao(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ti,y=new ei,x=new to,x.isPanelMain=!0,y.add(x),x=new to,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new ei,x=new to,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Jo,y.type=Kn.Auto,x=new to,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Sc,x.margin=new ao(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Jo,y.type=Kn.Link,x=new to,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 wa,a.toolManager=new Vn,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=bi(),a.eq=null,a.fq=Ui,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 Ue,a.zy=500,a.wp=new Ue,a.wq=!1}Ne.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),gh=null,ph="",Qi(this,!1),this.Xn.clear(),Cp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Qi(a,y){a.animationManager.Cc(!0),a.Hw=new Tn().freeze(),a.nw=new Tn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Cp(),a.Og.clear(),Ir=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function bi(){return null}Ne.prototype.reset=function(){this.clear(),this.vb=!0,er(this),bs(this),this.Wg=!0,so(this),this.layout=new vs,this.Wg=!1,this.model=My(),this.model.undoManager=new hi,this.vb=this.rn=!1,this.N()},Ne.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Rn.document.body);var y=di("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},Ne.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Rn.document.body);var y=0;if(Bs){var x=Gc;y=En,x===null&&(x=Gc=di("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=En=di("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||uo||(y=11)}this.Db=y,this.Gw=!0},Ne.prototype.qb=function(a){a.classType===Ne&&(this.autoScale=a)},Ne.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 bn(a,y){if(Bs){if(y!=null||Ot("Diagram setup requires an argument DIV."),a.Ka!==null&&Ot("Diagram has already completed setup."),typeof y=="string"?a.Ka=Rn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ot("No DIV or DIV id supplied: "+y),a.Ka===null&&Ot("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ot("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Rn.ResizeObserver){var x=qr(function(){a.$b()},250);a.ol=new Rn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Rn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Rn.go;var b=new Mu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Rn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),ns(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Mu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Bs){b=di("div");var z=di("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=ga,b.addEventListener("pointerdown",kr),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=qr(function(){a.Yh=null,a.N()},300),a.Ov=qr(function(){Lr(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Fr(a,ee,!0);re.bubbles=!0;var oe=0,se=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(se=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-se):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(se=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-se):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),Uo(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Fr(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var se=oe;oe=xo(a,ee,!0,!1,!0,se),Si(a,ee,oe),oe.targetDiagram=po(ee,ee.target),oe.targetObject=null,se||oe.clone(a.bq),se=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(se.x-ee.screenX)>re||Math.abs(se.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():Uo(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=xo(a,ee,!1,!1,!1,re[1]!==null);var oe=Rn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var se=a,ue=ee;oe&&oe.H&&(ue=ee,se=oe.H),re.targetDiagram=se,Si(a,ue,re),re.targetObject=null,a.doMouseMove(),Uo(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=xo(a,ee,!1,!0,!0,!1);var se=Rn.document.elementFromPoint(ee.clientX,ee.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),se!==null&&se.H instanceof Ne&&se.H!==a&&Si(se.H,ee,oe),se===null&&(se=ee.target),Si(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=po(ee,se),oe.targetObject=null,a.doMouseUp(),Uo(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+Ih[1]+Ih[2]+"wI"+mh.slice(1,5)]["b"+_x.slice(1,y)](E.Z,mf,y,y),E.Vc(!0),Li(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ne.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Ne.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function Li(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(Rn,"resize",a.Ov,!1)}function xr(a){30<a.Sq&&(a.Yh=1)}function wo(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),li&&li.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ne.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Rn.devicePixelRatio||1},Ne.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ne.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ne.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ne.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ne.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ne.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ne.prototype.doFocus=function(){this.focus()},Ne.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Rn.scrollX||Rn.pageXOffset,y=Rn.scrollY||Rn.pageYOffset;this.ta.focus(),Rn.scrollTo(a,y)}},Ne.prototype.Oy=function(){this.H.R("GainedFocus")},Ne.prototype.Ny=function(){this.H.R("LostFocus")};function Lr(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===wu&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function so(a){var y=new bl;y.name="Background",a.Al(y),y=new bl,y.name="",a.Al(y),y=new bl,y.name="Foreground",a.Al(y),y=new bl,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new bl,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new bl,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Wr(a){var y=new Kn(Kn.Grid);y.name="GRID";var x=new to;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new to,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new to,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new to,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new to,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new to,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new or,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 ga(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Ur(this.H)}function kr(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Ur(this.H)}Ne.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,ee=E.x-z.left,re=E.y-z.top,oe=E.width+z.left+z.right,se=E.height+z.top+z.bottom,ue=E.right+z.right;z=E.bottom+z.bottom;var ge=b.x;E=b.y;var ye=b.width,Pe=b.height,Fe=b.right,Te=b.bottom;b=this.scale;var Je=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Je=Je+a.scrollWidth-a.clientWidth;break;case"reverse":Je=a.scrollWidth-Je-a.clientWidth}var Ze=Je;ye<oe||Pe<se?(Je=Ue.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ze&&(Je.x=Ze/b+ee,this.ju=Ze),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Je.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=Je,Ue.free(Je),this.Ee=this.qr=!1):(Je=Ue.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ge&&(this.position=Je.h(Ze+ee,this.position.y)),ue>Fe&&(this.position=Je.h(-(y.scrollWidth-this.Aa)+Ze-this.Aa/b+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=Je.h(this.position.x,a.scrollTop+re)),z>Te&&(this.position=Je.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Ue.free(Je),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ue=E.right,Fe=b.right,z=E.bottom,Te=b.bottom,ee=E.x,ge=b.x,re=E.y,E=b.y,ye>=oe&&ee>=ge&&ue<=Fe&&(x.style.width="1px"),Pe>=se&&re>=E&&z<=Te&&(x.style.height="1px"))}},Ne.prototype.computeBounds=function(a){return a===void 0&&(a=new qt),Wo(this),mr(this,a)};function mr(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var ee=E[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var se=ee[oe];se.isInDocumentBounds&&se.isVisible()&&(se=se.actualBounds,se.w()&&(x?(x=!1,y.assign(se)):y.ed(se)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Ne.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(bt(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof ei||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof ei||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new qt(NaN,NaN,0,0):x};function Zo(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=Ue.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=qt.allocAt(0,0,E.width,E.height);var b=Ue.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,qt.free(E),Ue.free(b),Ue.free(x)}x=a.yh,y&&a.Fg!==wu&&(x=a.Fg);var z=x!==wu?Yo(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?Cr:oe),Co(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,At.B(z.x,x)&&At.B(z.y,E)&&At.B(z.width,b)&&At.B(z.height,ee)||a.onViewportBoundsChanged(new qt(x,E,b,ee),z,y,!1)}}function Yo(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/b,oe=ee/E;return y===Xu?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Nh?(y=oe>re?(ee-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Ne.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ed,this.scale=Yo(this,Xu),a!==Ed&&(Zo(this,!1),Co(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Be=Ne.prototype,Be.BA=function(a,y){y===void 0&&(y=Xu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Xu||y===Nh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Nh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Ue(a.x,a.y)}},Be.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Ue(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Be.zz=function(a){if(a instanceof gt){this.eq=a;var y=Ue.alloc();this.fq=this.op(a.ga(Ra,y)),Ue.free(y)}else this.eq=null,this.fq=Ui};function Co(a,y,x,E,b,z){var ee=Ue.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var se=Ue.alloc();se=a.eq.ga(Ra,se),re=se.x-a.fq.x/a.scale,oe=se.y-a.fq.y/a.scale,b=ll,Ue.free(se)}(z||a.scrollMode===Ed)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(oe=Math.min(oe+E/2,y.bottom+Math.max(x,b.bottom)-E/2),oe=Math.max(oe,y.top-Math.max(x,b.top)+E/2),oe-=E/2):oe>y.top?oe=y.top:oe<y.bottom-E&&(oe=y.bottom-E)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),qc(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),bs(a),Ue.free(ee)}Be.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=To(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof or)return a}else if(a=To(this,a,function(x){return x.part}),a instanceof or)return a;return null},Be.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Wo(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function To(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Wo(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}Be.lz=function(a,y,x){return y===void 0&&(y=!0),Ar(this,a,function(E){return E.part},y?function(E){return E instanceof or&&E.canSelect()}:null,x)};function Ar(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof tn||b instanceof Tn||(b=new Tn),Wo(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Be.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof tn||E instanceof Tn||(E=new Tn),Wo(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Be.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),vr(this,a,function(b){return b instanceof or&&(!x||b.canSelect())},y,E)},Be.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof tn||b instanceof Tn||(b=new Tn),Wo(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,E,b)}return b},Be.Nu=function(a,y,x,E,b,z){var ee=new Tn;Wo(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,E,ee,b,z)}return ee};function vr(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof tn||b instanceof Tn||(b=new Tn),Wo(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,E,b)}return b}Be.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Oo(this,a,y,function(z){return z instanceof or&&(!E||z.canSelect())},x,b)},Be.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof tn||b instanceof Tn)&&(z=b),b=!0),z instanceof tn||z instanceof Tn||(z=new Tn),Wo(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function Oo(a,y,x,E,b,z){var ee=null;for(ee===void 0&&(ee=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof tn||b instanceof Tn)&&(z=b),b=!0),z instanceof tn||z instanceof Tn||(z=new Tn),Wo(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,E,b,z)}return z}Ne.prototype.acceptEvent=function(a){return Fr(this,a,a instanceof MouseEvent)};function Fr(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?Si(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),uo&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=po(y,y.target),E.targetObject=null,E}function po(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 xo(a,y,x,E,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,uo&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=E,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function Uo(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Ne.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Fr(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(),Uo(x,a)},Ne.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fr(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(),Uo(x,a)},Ne.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fr(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Uo(x,a)},Ne.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fr(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Uo(x,a)},Ne.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ue(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?Ro(new Ue(y,a),this.Ab):new Ue(y,a)};function Si(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;E!==null&&(E=E.getBoundingClientRect(),ee=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=Ue.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Ue.free(y)):x.documentPoint.h(ee,re)}function fr(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}Ne.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ms(a){a.ld||Wo(a),a.Va()}Ne.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Be=Ne.prototype,Be.Pz=function(){return this.kg},Be.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Vr(this),this.hf=!1,this.du=new Ue(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&_r(function(){E.ld=!1,xl(y,"Model"),a(E)},1)},Be.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Rn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Be.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Vr(this))};function la(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Ur(a)||(y&&Wo(a),x&&Zo(a,!1))}function Vr(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];$e(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(oe){oe.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Lr(a),la(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Is(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Wo(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ga(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ga(a,!1)),z=!0),a.Jk=!1,Wo(a),a.ou||ms(a),la(a,!0,!1),ee=!1,z?(x=qt.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,No(a)),a.R("LayoutCompleted"),la(a,!0,!1),qt.free(x)):x.Ok&&x.Qw&&(a.Fg!==wu?a.scale=Yo(a,a.Fg):a.yh!==wu?a.scale=Yo(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Zo(a,!0)),z&&ee&&a.eb("Initial Layout"),Wo(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function No(a){if(a.Fg!==wu)a.scale=Yo(a,a.Fg);else if(a.yh!==wu)a.scale=Yo(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Zo(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Is(a)}function Wo(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 Tn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Gr&&E.U&65536&&(E.U=E.U^65536)})}}Be.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Gr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Gr&&x.isVisible()&&mo(this,x);for(a.reset();a.next();)x=a.value,x instanceof ei&&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 Jo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function mo(a,y){for(var x=Ni(),E=Ni(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Gr?(et(z)||ct(z)||ag(z))&&mo(a,z):z instanceof ei?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(qn(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();qn(E)}Be.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Be.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ot("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){as(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ee=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,ls(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ka(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?vh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Qr.prototype.Cd=Qr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,as(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,se=Math.round(re.x*oe)/oe,ue=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-se,-ue),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ka(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?vh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Qr.prototype.Cd=Qr.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=li&&li.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function Sa(a,y,x,E,b,z,ee,re,oe,se){if(a.Ka!==null){a.ta===null&&Ot("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),se===void 0&&(se=!1),as(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=b;var ge=a.Wa.s,ye=ge.length;try{var Pe=new qt(z.x,z.y,E.width/b,E.height/b),Fe=Pe.copy();Fe.Co(x),Is(a,Fe),Wo(a),a.Fd(ge,ye,a,Pe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Te=a.Mb;y.scale(Te,Te);var Je=Qr.alloc();Je.reset(),Je.translate(x.left,x.top),Je.scale(b),z.x===0&&z.y===0||Je.translate(-z.x,-z.y),y.setTransform(Je.m11,Je.m12,Je.m21,Je.m22,Je.dx,Je.dy),y.yc(),y instanceof fa&&ls(y,Je.m11,Je.m12,Je.m21,Je.m22,Je.dx,Je.dy),Qr.free(Je),Ka(a,y),y.globalAlpha=a.pb;var Ze=a.Qj("Grid");if(ee){var it=new Tn,lt=ee.iterator;for(lt.reset();lt.next();){var ft=lt.value;ft instanceof or&&(se||ft.layer!==Ze)&&(ft.Gj(),it.add(ft))}for(se=0;se<ye;se++)kh(ge[se],y,a,it,oe);it.each(function(Vt){return Vt.Gj()})}else for(it=0;it<ye;it++){var St=ge[it];St===Ze?se&&St.gc(y,a,!0):St.gc(y,a,oe)}a.$i=!1,a.Yf&&vh(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(ge,ye,a,a.viewportBounds),Is(a),a.ib instanceof fa&&(a.ib.Nj.PA(),a.redraw())}}}Be.Gf=function(a){return this.Rg[a]},Be.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Be.Tx=function(){this.Rg=new zt,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(uo||Aa),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ka(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Be.Ql=function(a){return this.on[a]},Be.sA=function(a,y){this.on[a]=y},Be.Sx=function(){this.on=new zt,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Be.set=function(a){return Object.assign(this,a),this},Be.Du=function(a){return this.nm(a)},Be.nm=function(a){return ts(this,a),this};function ts(a,y){var x=a instanceof Kn,E=a instanceof Ne,b;for(b in y){b===""&&Ot("Setting properties requires non-empty property names");var z=a,ee=b;if(x||E){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),Ft(z)?ee=b.substr(re+1):Ot("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!no(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&no(a.toolManager,ee))z=a.toolManager;else if(E&&cs(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Zi&&ee==="Changed"){a.Pe(y[ee]);continue}else Ot('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof gt&&z.Vw(ee)}}Be.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ti,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Be.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")},Ne.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!==Rd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=qt.alloc(),ss(this,this.computeBounds(E)),qt.free(E)),E=this.ta,E===null||E instanceof Io)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*ee;var se=70*ee,ue=Math.max(z,0),ge=Math.max(y,0),ye=Math.floor(b-ue),Pe=Math.floor(re-ge);a.drawImage(E.Oa,ue,ge,ye,Pe,0,0,ye,Pe),vh(this.Yf,this)&&a.clearRect(0,0,oe,se),E=Ni(),a=Ni(),Pe=Math.abs(z),ye=Math.abs(y);var Fe=ue===0?0:b-Pe;ue=Ue.allocAt(Fe,0),Pe=Ue.allocAt(Pe+Fe,re),a.push(new qt(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y)));var Te=this.Ab;if(Te.reset(),Te.scale(ee,ee),this.Ca!==1&&Te.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Te.translate(-ee.x,-ee.y),Ro(ue,Te),Ro(Pe,Te),E.push(new qt(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Fe=ge===0?0:re-ye,ue.h(0,Fe),Pe.h(b,ye+Fe),a.push(new qt(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Ro(ue,Te),Ro(Pe,Te),E.push(new qt(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),vh(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,ue.h(b,re),Pe.h(oe+b,se+re),a.push(new qt(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Ro(ue,Te),Ro(Pe,Te),E.push(new qt(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y)))),Ue.free(ue),Ue.free(Pe),la(this,!1,!0),this.Ka===null&&Ot("No div specified"),this.ta===null&&Ot("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(as(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,se=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-se),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ka(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=E,ee.visible&&ee.pb!==0){se=Oc(ee,b),ge=ee.Zq,ge.length=0,ue=this.scale,ye=qt.alloc(),Pe=ee.Pa.s,Te=Pe.length,Fe=oe.length;for(var Je=0;Je<Te;Je++){var Ze=Pe[Je],it=Tg(Ze,Ze.actualBounds);e:{for(var lt=2/ue,ft=4/ue,St=0;St<Fe;St++){var Vt=oe[St];if(Vt.width!==0&&Vt.height!==0&&it.Vu(Vt.x-lt,Vt.y-lt,Vt.width+ft,Vt.height+ft)){it=!0;break e}}it=!1}it&&ee.Oj(b,Ze,this,ge,ue,ye,!0)}qt.free(ye),b.globalAlpha=se}b.restore(),b.Vc(!0),this.Yf&&vh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}qn(E),qn(a),this.ld=!1}}else this.bd();x&&(xr(this),this.bd(),wo(this,!0))}else x?(xr(this),this.bd(),wo(this,!0)):this.bd()}};function as(a){a.pn!==!1&&(a.pn=!1,ns(a,a.Aa,a.ya))}function ns(a,y,x){bs(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Ur(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||x+ee,se=b.clientHeight||E+re,ue=a.viewportBounds;b=ue.x;var ge=ue.y,ye=ue.width,Pe=ue.height;if((oe!==x+ee||se!==E+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=se,z=a.pn=!0,bs(a)),!a.hf||!a.viewportBounds.w())return!0;var Fe=a.ku,Te=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Je=a.documentBounds,Ze=0,it=0,lt=0,ft=0,St=ue.width,Vt=ue.height,mi=a.rj;a.contentAlignment.sb()?(Je.width>St&&(Ze=mi.left,it=mi.right),Je.height>Vt&&(lt=mi.top,ft=mi.bottom)):(Ze=mi.left,it=mi.right,lt=mi.top,ft=mi.bottom);var Vi=Je.width+Ze+it,Fi=Je.height+lt+ft;mi=a.scale;var $n=Vi>oe/mi,Mn=Fi>se/mi;if(!(z||a.gf||a.Be||$n||Mn))return!0;Ze=Je.x-Ze,oe=ue.x,it=Je.right+it,se=ue.right+ee,lt=Je.y-lt;var jr=ue.y;Je=Je.bottom+ft,ue=ue.bottom+re;var Br="1px";if(ft="1px",a.scrollMode===Ed&&($n||Mn)&&($n&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($n=1,Ze+1<oe&&($n=Math.max((oe-Ze)*mi+a.Aa,$n)),it>se+1&&($n=Math.max((it-se)*mi+a.Aa,$n)),St+ee+1<Vi&&($n=Math.max((Vi-St)*mi+a.Aa,$n)),Br=$n.toString()+"px"),Mn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&($n=1,lt+1<jr&&($n=Math.max((jr-lt)*mi+a.ya,$n)),Je>ue+1&&($n=Math.max((Je-ue)*mi+a.ya,$n)),Vt+re+1<Fi&&($n=Math.max((Fi-Vt)*mi+a.ya,$n)),ft=$n.toString()+"px")),$n=Br!=="1px",Mn=ft!=="1px",$n&&Mn||!$n&&!Mn||(Mn&&(se-=a.Db),$n&&(ue-=a.Db),Vi<St+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ze+1<oe&&(ee=Math.max((oe-Ze)*mi+a.Aa,ee)),it>se+1&&(ee=Math.max((it-se)*mi+a.Aa,ee)),St+1<Vi&&(ee=Math.max((Vi-St)*mi+a.Aa,ee)),Br=ee.toString()+"px"),$n=Br!=="1px",ee=a.ya,$n!==a.Be&&(ee=$n?a.ya-a.Db:a.ya+a.Db),Fi<Vt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,lt+1<jr&&(re=Math.max((jr-lt)*mi+ee,re)),Je>ue+1&&(re=Math.max((Je-ue)*mi+ee,re)),Vt+1<Fi&&(re=Math.max((Fi-Vt)*mi+ee,re)),ft=re.toString()+"px"),Mn=ft!=="1px"),a.qr&&$n===a.Be&&Mn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if($n!==a.Be&&(Br==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=$n,Te.style.width=Br,Mn!==a.gf&&(ft==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Ue.alloc(),Mn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),Ue.free(re))),z&&bs(a),a.gf=Mn,Te.style.height=ft,a.gu=!0,z&&(a.pn=!0),y=Fe.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(St+1<Vi?y=(a.position.x-Ze)*mi:Ze+1<oe?y=Fe.scrollWidth-Fe.clientWidth:it>se+1&&(y=a.position.x*mi)),a.tn)switch(a.bu){case"negative":y=-(Fe.scrollWidth-y-Fe.clientWidth);break;case"reverse":y=Fe.scrollWidth-y-Fe.clientWidth}return Fe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Vt+1<Fi?Fe.scrollTop=(a.position.y-lt)*mi:lt+1<jr?Fe.scrollTop=Fe.scrollHeight-Fe.clientHeight:Je>ue+1&&(Fe.scrollTop=a.position.y*mi)),oe=a.Aa,se=a.ya,Fe.style.width=oe+(a.gf?a.Db:0)+"px",Fe.style.height=se+(a.Be?a.Db:0)+"px",x!==oe||E!==se||a.animationManager.zb?(x=qt.allocAt(b,ge,ye,Pe),a.onViewportBoundsChanged(x,a.viewportBounds,mi,z),qt.free(x),!1):!0}Be=Ne.prototype,Be.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ot("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&&Ot('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(Jn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Be.oi=function(a){this.partManager.oi(a);var y=this;Mg(a,function(x){ta(y,x)}),(a instanceof Jo||a instanceof Gr&&a.placeholder!==null)&&a.v(),a.data!==null&&Mg(a,function(x){By(y.partManager,x)}),ct(a)!==!0&&ag(a)!==!0||this.De.add(a),X1(a,!0,this),Q1(a)?(a.actualBounds.w()&&this.N(Tg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Tg(a,a.actualBounds)),this.$b()},Be.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Mg(a,function(x){Dy(y.partManager,x,y)}),this.De.remove(a),Q1(a)?(a.actualBounds.w()&&this.N(Tg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Tg(a,a.actualBounds)),this.$b()},Be.remove=function(a){xa(this,a,!0)};function xa(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(gi,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Be.Is=function(a,y){if(y===void 0&&(y=!1),bt(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new Tn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Be.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Ne.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=Os(this)),this.toolManager!==null){var b=new ti;if(a!==null)if(bt(a))for(var z=0;z<a.length;z++)Ma(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Ma(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Ma(this,b,a.value,x,E);for(a=this.nodes;a.next();)Ma(this,b,a.value,x,E);for(a=this.links;a.next();)Ma(this,b,a.value,x,E)}Ko(this,b,y,E,x)}};function Ma(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=Os(a)),x instanceof xi){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Gr&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Ma(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Ma(a,y,ee,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Ma(a,y,x.value,E,b)}else if(x instanceof ei)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Ma(a,y,x.value,E,b);else x instanceof Jo||y.add(x,a.Pd(b,x,x.location))}function Ko(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Ue.alloc(),ee=Ue.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||Ys(a,y);for(var re=Ni(),oe=Ni(),se=y.iterator,ue=Ue.alloc();se.next();){var ge=se.key,ye=se.value;if(ge.Zc()){var Pe=Jl(a,ge,y);Pe!==null?re.push(new ie(ge,ye,Pe)):(!b||ge.canMove())&&(Pe=ye.point,z.assign(Pe),a.computeMove(ge,z.add(ee),E,ue),ge.location=ue,ye.shifted===void 0&&(ye.shifted=new Ue),ye.shifted.assign(ue.re(Pe)))}else se.key instanceof ei&&oe.push(se.sa)}for(Ue.free(ue),b=re.length,se=0;se<b;se++)ge=re[se],z.assign(ge.info.point),ge.Su.shifted===void 0&&(ge.Su.shifted=new Ue),ge.node.location=z.add(ge.Su.shifted);for(b=Ue.alloc(),se=Ue.alloc(),ge=oe.length,ye=0;ye<ge;ye++){var Fe=oe[ye];if(Pe=Fe.key,Pe instanceof ei)if(Pe.suspendsRouting){Pe.Tg=null,ue=Pe.fromNode;var Te=Pe.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Te=Fe.value.point,Pe.dragComputation===null)y.add(Pe,a.Pd(E,Pe,ee)),If(Pe,ee.x-Te.x,ee.y-Te.y);else{Fe=Ue.allocAt(0,0),(ue=Pe.i(0))&&ue.w()&&Fe.assign(ue);var Je=ue=Ue.alloc().assign(Fe).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Je=Ue.alloc(),hs(a,Pe,ue,Je,E)),ue.assign(Pe.dragComputation(Pe,ue,Je)).re(Fe),y.add(Pe,a.Pd(E,Pe,ue)),If(Pe,ue.x-Te.x,ue.y-Te.y),Ue.free(Fe),Ue.free(ue),Je!==ue&&Ue.free(Je)}else ue!==null&&(b.assign(ue.location),Je=y.I(ue),Je!==null&&b.re(Je.point)),Te!==null&&(se.assign(Te.location),Je=y.I(Te),Je!==null&&se.re(Je.point)),ue!==null&&Te!==null?b.Xa(se)?(ue=Fe.value.point,Te=z,Te.assign(b),Te.re(ue),y.add(Pe,a.Pd(E,Pe,b)),If(Pe,Te.x,Te.y)):(Pe.suspendsRouting=!1,Pe.bb()):(Fe=Fe.value.point,ue=ue!==null?b:Te!==null?se:ee,y.add(Pe,a.Pd(E,Pe,ue)),If(Pe,ue.x-Fe.x,ue.y-Fe.y))}else(Pe.fromNode===null||Pe.toNode===null)&&(ue=Fe.value.point,y.add(Pe,a.Pd(E,Pe,ee)),If(Pe,ee.x-ue.x,ee.y-ue.y))}Ue.free(z),Ue.free(ee),Ue.free(b),Ue.free(se),qn(re),qn(oe),x||(Wo(a),Zs(a,y))}}Ne.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Ue),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Ue.alloc(),hs(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,se=oe.x;return isNaN(se)&&(se=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,se)),Math.max(ee,Math.min(x.y,oe))),b!==y&&Ue.free(b),E};function Os(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function hs(a,y,x,E,b){if(b===void 0&&(b=Os(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=Ue.allocAt(0,0),z.yi(0,0,a,y,b),At.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),Ue.free(z)}}function Ys(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof ei&&(y.suspendsRouting=!0)}function Zs(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof ei&&(x.suspendsRouting=!1,gy(x)&&x.bb())}a.Mr=!1}}function Jl(a,y,x){return y=y.containingGroup,y!==null&&(a=Jl(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Be=Ne.prototype,Be.Pd=function(a,y,x){if(x===void 0)return new Wd(fo);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Wd(new Ue(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Wd(x.copy())};function $r(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Ot("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ot("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ot("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ot("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&Ot("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Be.Al=function(a){$r(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(Jn,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Be.Ww=function(a,y){$r(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(gi,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Jn,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Be.Cy=function(a,y){$r(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(gi,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Jn,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Be.kA=function(a){if(a.diagram!==this&&Ot("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(gi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Be.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Be.Yw=function(a){return this.pf===null&&(this.pf=new tn),this.pf.add(a),this.model.Pe(a),this},Be.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Be.Pe=function(a){return this.zg===null&&(this.zg=new tn),this.zg.add(a),this},Be.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Be.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==wn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Be.cb=function(a,y,x,E,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new vn;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},Be.g=function(a,y,x,E,b){this.cb(Gn,a,this,y,x,E,b)},Ne.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===Gn){var b=a.object;if(fs(b,a.propertyName,a.I(y)),b instanceof gt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Jn){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Kn)if(typeof re=="number"&&oe instanceof gt){y?ee.pc(re):ee.Gb(re,oe);var se=ee.part;se!==null&&se.Wb()}else typeof re=="number"&&oe instanceof kl&&(oe.isRow?P1(ee,re,y?void 0:oe):w1(ee,re,y?void 0:oe));else if(ee instanceof bl){var ue=a.oldParam===!0;typeof re=="number"&&oe instanceof or&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof Ne?typeof re=="number"&&oe instanceof bl&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):Ot("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===gi){var ge=a.object,ye=a.oldParam,Pe=a.oldValue;if(ge instanceof Kn)typeof ye=="number"&&Pe instanceof gt?y?ge.Gb(ye,Pe):ge.pc(ye):typeof ye=="number"&&Pe instanceof kl&&(Pe.isRow?P1(ge,ye,y?Pe:void 0):w1(ge,ye,y?Pe:void 0));else if(ge instanceof bl){var Fe=a.newParam===!0;typeof ye=="number"&&Pe instanceof or&&(y?0>ge.Pa.indexOf(Pe)&&ge.oi(ye,Pe,Fe):(Pe.isSelected=!1,Pe.isHighlighted=!1,Pe.Wb(),ge.pc(Fe?ye:-1,Pe,Fe)))}else ge instanceof Ne?typeof ye=="number"&&Pe instanceof bl&&(y?(Pe.Xe(this),this.Wa.Gb(ye,Pe)):this.Wa.mb(ye)):Ot("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==wn&&Ot("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ne.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ne.prototype.eb=function(a){return this.undoManager.eb(a)},Ne.prototype.Kf=function(){return this.undoManager.Kf()},Ne.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ne.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ne.prototype.rp=function(){this.partManager.rp()};function Wa(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,bs(a),a.N(),a.Ee=!0,E.zb&&(ec(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bs(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,se=a.contentAlignment;isNaN(re)&&(se.$c()?se.Hf(ps)?re=0:se.Hf(Bl)&&(re=z-1):re=se.sb()?se.x*(z-1):z/2),isNaN(oe)&&(se.$c()?se.Hf(Qu)?oe=0:se.Hf(Kl)&&(oe=ee-1):oe=se.sb()?se.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Ue.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Ue.free(z),a.Ca=x,bs(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Zo(a,!1),E.zb&&(ec(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Ne.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==wu||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Vn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),zi(b,this)),this.vb||this.invalidateViewport(a,y),Is(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Is(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=oi.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var se=ee[oe],ue=Math.abs(se.interval);2>ue||(Iv(se.figure)?z=z*ue/At.vx(z,ue):b=b*ue/At.vx(b,ue))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=qt.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){qt.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,qt.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Ue.alloc(),At.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),oi.free(E),x.part.location=y,Ue.free(y)}}Ne.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Ne.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))},Ne.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),bt(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof or||Ot("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof or||Ot("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Ne.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Be=Ne.prototype,Be.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Be.Jz=function(a){a=new Tn().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 or||Ot("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Be.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Ue.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),Ue.free(z);return}Ot("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):Ot("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ue.free(z)},Be.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)},Be.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Be.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)},Be.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,ee=y.m11,re=y.m12,oe=y.m21,se=y.m22,ue=y.dx,ge=y.dy,ye=x*ee+E*oe+ue;y=x*re+E*se+ge;var Pe=b*ee+E*oe+ue;return a=b*re+E*se+ge,E=x*ee+z*oe+ue,x=x*re+z*se+ge,ee=b*ee+z*oe+ue,b=b*re+z*se+ge,z=Math.min(ye,Pe),ye=Math.max(ye,Pe),Pe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),ye=Math.max(ye,E),Pe=Math.min(Pe,x),y=Math.max(y,x),z=Math.min(z,ee),ye=Math.max(ye,ee),Pe=Math.min(Pe,b),y=Math.max(y,b),new qt(z,Pe,ye-z,y-Pe)},Be.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),Ro(a.copy(),this.Ab)};function Hl(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function ha(a){return a=cd.get(a),a!==null?new a:new wa}Ne.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===wn&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===wn){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Wo(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ba(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(Hl(this),this.As.clear(),Xh(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;_r(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function ta(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)qi(a,y[E])}function qi(a,y){if(y instanceof Wc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Tn&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function is(a,y){if(y instanceof Wc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Tn&&x.Bg.remove(a),Cp(E));break}}}}}Ne.prototype.Wd=function(){this.partManager.Wd()},Ne.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Ne.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Ne.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Ne.prototype.Vb=function(a){return this.partManager.Vb(a)},Ne.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Be=Ne.prototype,Be.Lc=function(a){return this.partManager.Lc(a)},Be.ii=function(a){return this.partManager.ii(a)},Be.Kc=function(a){return this.partManager.Kc(a)},Be.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:Wn(eo(y)))},Be.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:Wn(eo(y)))};function bs(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 ss(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Zo(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Be.Va=function(){if(this.Zi){var a=qt.alloc();ss(this,this.computeBounds(a)),qt.free(a)}},Be.rz=function(){for(var a=new Tn,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},Be.qz=function(){return this.ai.iterator},Be.Uz=function(a){Wo(this),a&&Do(this,!0),this.ld?Ga(this,!1):(this.Jk=!0,Vr(this))};function Do(a,y){for(var x=a.ai.iterator;x.next();)oa(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function oa(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)oa(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ga(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||xl(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)El(a,ee.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Wo(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||ba(z),a.aa=x}}}function El(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)El(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),mo(a,y),b.isValidLayout=!0):a.xh=!0)}}Be.yz=function(){for(var a=new tn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function pf(a){function y(b){var z=b.toLowerCase(),ee=new tn;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new ti,E=new ti;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function cs(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Lo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Ot("Unknown DiagramEvent name: "+y)}Be.Bj=function(a,y){return a=Lo(this,a),a!==null&&a.add(y),this},Be.am=function(a,y){a=Lo(this,a),a!==null&&a.remove(y)},Be.R=function(a,y,x){var E=Lo(this,a),b=new Wt;if(b.diagram=this,a=cs(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function na(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Be.Yj=function(a,y){return ds(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Ne.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?mr(this,a):a.assign(this.documentBounds)};function ds(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new ym(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=$s(a,x)),x===null){y=qt.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&Yu(a,ee,E,y)}qt.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=qt.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof xi&&Yu(a,ee,E,y);qt.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&mS(b);return b}function $s(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?$s(a,y.containingGroup):null}function Yu(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Lp(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Wf,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Wf}else if(y instanceof Gr)for(y=y.memberParts;y.next();)b=y.value,b instanceof xi&&Yu(a,b,x,E)}}function pu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Ne.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():oc(this)};function oc(a){a.vk===-1&&(a.vk=_r(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=qt.alloc(),a.computeBounds(y),y.ed(a.documentBounds),ss(a,y),qt.free(y),a.Fc=!0,a.bd(),oc(a))}},a.vp))}Ne.prototype.ug=function(){this.vk!==-1&&(Rn.clearTimeout(this.vk),this.vk=-1)},Ne.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=qt.allocAt(0,0,E.width*b,E.height*b);var z=Ue.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<E.x+x.left/2&&(z.x-=ee),a.x<E.x+x.left/4&&(z.x-=4*ee)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>E.x+E.width-x.right/2&&(z.x+=ee),a.x>E.x+E.width-x.right/4&&(z.x+=4*ee));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<E.y+x.top/2&&(z.y-=ee),a.y<E.y+x.top/4&&(z.y-=4*ee)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>E.y+E.height-x.bottom/2&&(z.y+=ee),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(fo)||(y=new Ue(y.x+z.x/b,y.y+z.y/b)),qt.free(E),Ue.free(z),y},Be=Ne.prototype,Be.Cs=function(){return null},Be.av=function(){return null},Be.bs=function(a,y){this.pj.add(a,y)},Be.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Gr&&(y.$p=null)})};function yc(a,y,x){function E(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-se>oe?y(x,b,re):Rn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,se=+new Date;return Rn.requestAnimationFrame(function(){E()}),null}Be.Wz=function(a){return Bs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Be.Jx=function(a){return a===void 0&&(a={}),yc(this,this.Xz,a)},Be.Xz=function(a,y,x){var E=qd(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case mh+"data":b=E.getImageData(0,0,x.width,x.height);break;case mh:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Ot('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function qd(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ot("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new oi(1/0,1/0):new oi(2e3,2e3));var re=y.position||null,oe=y.parts||null,se=y.padding===void 0?1:y.padding,ue=y.background||null,ge=y.omitTemporary;ge===void 0&&(ge=!0);var ye=y.document||document,Pe=y.elementFinished||null,Fe=y.showTemporary;Fe===void 0&&(Fe=!ge),y=y.showGrid,y===void 0&&(y=Fe),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof se=="number"?se=new ao(se):se instanceof ao||Ot("MakeImage padding must be a Margin or a number."),se.left=Math.max(se.left,0),se.right=Math.max(se.right,0),se.top=Math.max(se.top,0),se.bottom=Math.max(se.bottom,0),a.ib.Vc(!0),ge=new Mu(null,ye,void 0,!0);var Te=ge.context;if(!(b||z||oe||re))return ge.width=a.Aa+Math.ceil(se.left+se.right),ge.height=a.ya+Math.ceil(se.top+se.bottom),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=ye,E.hs=Pe,Sa(a,E.context,se,new oi(ge.width,ge.height),a.Ca,a.pa,oe,ue,Fe,y),E.context):(a.Xm=!1,Sa(a,Te,se,new oi(ge.width,ge.height),a.Ca,a.pa,oe,ue,Fe,y),a.Xm=!0,ge.context);var Je=a.Pp,Ze=a.documentBounds.copy();if(Ze.Fv(a.yb),Fe)for(var it=a.Wa.s,lt=it.length,ft=0;ft<lt;ft++){var St=it[ft];if(St.visible&&St.isTemporary){St=St.Pa.s;for(var Vt=St.length,mi=0;mi<Vt;mi++){var Vi=St[mi];Vi.isInDocumentBounds&&Vi.isVisible()&&(Vi=Vi.actualBounds,Vi.w()&&Ze.ed(Vi))}}}if(it=new Ue(Ze.x,Ze.y),oe!==null){for(lt=new qt(0,0,0,0),ft=!0,St=oe.iterator,St.reset();St.next();)Vt=St.value,Vt instanceof or&&(mi=Vt.layer,mi!==null&&!mi.visible||mi!==null&&!Fe&&mi.isTemporary||!Vt.isVisible()||(Vt=Vt.actualBounds,Vt.w()&&(ft?(ft=!1,lt.assign(Vt)):lt.ed(Vt))));Ze.width=lt.width,Ze.height=lt.height,it.x=lt.x,it.y=lt.y}return re!==null&&re.w()&&(it=re,z||(z=Je)),lt=re=0,se!==null&&(re=se.left+se.right,lt=se.top+se.bottom),ft=St=0,b!==null&&(St=b.width,ft=b.height,isFinite(St)&&(St=Math.max(0,St-re)),isFinite(ft)&&(ft=Math.max(0,ft-lt))),b!==null&&z!==null?(z==="NaN"&&(z=Je),b.w()?(b=St,Ze=ft):isNaN(ft)?(b=St,Ze=Ze.height*z):(b=Ze.width*z,Ze=ft)):b!==null?b.w()?(z=Math.min(St/Ze.width,ft/Ze.height),b=St,Ze=ft):isNaN(ft)?(z=St/Ze.width,b=St,Ze=Ze.height*z):(z=ft/Ze.height,b=Ze.width*z,Ze=ft):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ze.width,(ee.height-lt)/Ze.height),z>Je?(z=Je,b=Ze.width,Ze=Ze.height):(b=ee.width,Ze=ee.height)):(b=Ze.width*z,Ze=Ze.height*z):(z=Je,b=Ze.width,Ze=Ze.height),se!==null?(b+=re,Ze+=lt):se=new ao(0),ee!==null&&(Je=ee.width,ee=ee.height,isNaN(Je)&&(Je=2e3),isNaN(ee)&&(ee=2e3),isFinite(Je)&&(b=Math.min(b,Je)),isFinite(ee)&&(Ze=Math.min(Ze,ee))),ge.width=Math.ceil(b),ge.height=Math.ceil(Ze),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=ye,E.hs=Pe,Sa(a,E.context,se,new oi(Math.ceil(b),Math.ceil(Ze)),z,it,oe,ue,Fe,y),E.context):(a.Xm=!1,Sa(a,Te,se,new oi(Math.ceil(b),Math.ceil(Ze)),z,it,oe,ue,Fe,y),a.Xm=!0,ge.context)}An.Object.defineProperties(Ne.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof me||(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 Io(this,Rn.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 Io(this,Rn.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(Rn,"resize",this.Ov,!1),this.removeEventListener(Rn,"wheel",this.$j,!0),pi===this&&(pi=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),bn(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)&&xn(a,"0 <= value <= 1",Ne,"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),Zo(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),Zo(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),Zo(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),Zo(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&xn(a,">= 0",Ne,"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&&xn(a,">= 0",Ne,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else xn(a,">= 0",Ne,"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||Hl(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&&Ot("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Qi(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,xl(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=ha(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Rn,"pointermove",this.dk,!0),this.addEventListener(Rn,"pointerdown",this.ui,!0),this.addEventListener(Rn,"pointerup",this.fk,!0),this.addEventListener(Rn,"pointerout",this.ek,!0),this.addEventListener(Rn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Rn,"wheel",this.$j,!0),this.addEventListener(Rn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Rn,"pointermove",this.dk,!0),this.removeEventListener(Rn,"pointerdown",this.ui,!0),this.removeEventListener(Rn,"pointerup",this.fk,!0),this.removeEventListener(Rn,"pointerout",this.ek,!0),this.removeEventListener(Rn,"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(Rn,"wheel",this.$j,!0),this.removeEventListener(Rn,"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=Ue.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),qc(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?bs(this):(this.vb=!0,a=this.scale,Co(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)}Ue.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=Wr(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Wr(this)),a.type!==Kn.Grid&&Ot("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),Is(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),bs(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||Ot("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 ao(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===Ed&&Zo(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,Zo(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,Wa(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&&Wa(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!==wu&&Zo(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()||Ot("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()||Ot("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)):xn(a,"> 0",Ne,"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)):xn(a,"> 0",Ne,"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),Zo(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 ao(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&&Ot("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();)lm(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==$d&&a!==Xs&&a!==Oh&&Ot("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 oi(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 ao(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),An.Object.defineProperties(Ne,{licenseKey:{get:function(){return Df.jc()},set:function(a){Df.add(a.replace(/\s/g,""))}},version:{get:function(){return Zl}}}),Ne.prototype.makeImageData=Ne.prototype.Jx,Ne.prototype.makeImage=Ne.prototype.Wz,Ne.prototype.cacheGroupExternalLinks=Ne.prototype.Fu,Ne.prototype.addRenderer=Ne.prototype.bs,Ne.prototype.makeSVG=Ne.prototype.av,Ne.prototype.makeSvg=Ne.prototype.Cs,Ne.prototype.stopAutoScroll=Ne.prototype.ug,Ne.prototype.doAutoScroll=Ne.prototype.gs,Ne.prototype.isUnoccupied=Ne.prototype.Yj,Ne.prototype.raiseDiagramEvent=Ne.prototype.R,Ne.prototype.removeDiagramListener=Ne.prototype.am,Ne.prototype.addDiagramListener=Ne.prototype.Bj,Ne.prototype.findTreeRoots=Ne.prototype.yz,Ne.prototype.layoutDiagram=Ne.prototype.Uz,Ne.prototype.findTopLevelGroups=Ne.prototype.qz,Ne.prototype.findTopLevelNodesAndLinks=Ne.prototype.rz,Ne.prototype.ensureBounds=Ne.prototype.Va,Ne.prototype.findLinksByExample=Ne.prototype.ls,Ne.prototype.findNodesByExample=Ne.prototype.ms,Ne.prototype.findLinkForData=Ne.prototype.Kc,Ne.prototype.findNodeForData=Ne.prototype.ii,Ne.prototype.findPartForData=Ne.prototype.Lc,Ne.prototype.findLinkForKey=Ne.prototype.findLinkForKey,Ne.prototype.findNodeForKey=Ne.prototype.Vb,Ne.prototype.findPartForKey=Ne.prototype.findPartForKey,Ne.prototype.rebuildParts=Ne.prototype.Wd,Ne.prototype.transformViewToDoc=Ne.prototype.Ps,Ne.prototype.transformRectDocToView=Ne.prototype.zA,Ne.prototype.transformDocToView=Ne.prototype.op,Ne.prototype.centerRect=Ne.prototype.es,Ne.prototype.scrollToRect=Ne.prototype.tv,Ne.prototype.scroll=Ne.prototype.scroll,Ne.prototype.highlightCollection=Ne.prototype.Jz,Ne.prototype.highlight=Ne.prototype.Iz,Ne.prototype.selectCollection=Ne.prototype.rA,Ne.prototype.select=Ne.prototype.select,Ne.prototype.updateAllRelationshipsFromData=Ne.prototype.rp,Ne.prototype.updateAllTargetBindings=Ne.prototype.updateAllTargetBindings,Ne.prototype.commit=Ne.prototype.commit,Ne.prototype.rollbackTransaction=Ne.prototype.Kf,Ne.prototype.commitTransaction=Ne.prototype.eb,Ne.prototype.startTransaction=Ne.prototype.Ea,Ne.prototype.raiseChanged=Ne.prototype.g,Ne.prototype.raiseChangedEvent=Ne.prototype.cb,Ne.prototype.removeChangedListener=Ne.prototype.ik,Ne.prototype.addChangedListener=Ne.prototype.Pe,Ne.prototype.removeModelChangedListener=Ne.prototype.mA,Ne.prototype.addModelChangedListener=Ne.prototype.Yw,Ne.prototype.findLayer=Ne.prototype.Qj,Ne.prototype.removeLayer=Ne.prototype.kA,Ne.prototype.addLayerAfter=Ne.prototype.Cy,Ne.prototype.addLayerBefore=Ne.prototype.Ww,Ne.prototype.addLayer=Ne.prototype.Al,Ne.prototype.moveParts=Ne.prototype.moveParts,Ne.prototype.copyParts=Ne.prototype.Kj,Ne.prototype.removeParts=Ne.prototype.Is,Ne.prototype.remove=Ne.prototype.remove,Ne.prototype.add=Ne.prototype.add,Ne.prototype.clearDelayedGeometries=Ne.prototype.bx,Ne.prototype.setProperties=Ne.prototype.nm,Ne.prototype.attach=Ne.prototype.Du,Ne.prototype.set=Ne.prototype.set,Ne.prototype.resetInputOptions=Ne.prototype.Sx,Ne.prototype.setInputOption=Ne.prototype.sA,Ne.prototype.getInputOption=Ne.prototype.Ql,Ne.prototype.resetRenderingHints=Ne.prototype.Tx,Ne.prototype.setRenderingHint=Ne.prototype.Xx,Ne.prototype.getRenderingHint=Ne.prototype.Gf,Ne.prototype.maybeUpdate=Ne.prototype.bd,Ne.prototype.requestUpdate=Ne.prototype.$b,Ne.prototype.delayInitialization=Ne.prototype.Xy,Ne.prototype.isUpdateRequested=Ne.prototype.Pz,Ne.prototype.invalidateDocumentBounds=Ne.prototype.Ya,Ne.prototype.findObjectsNear=Ne.prototype.og,Ne.prototype.findPartsNear=Ne.prototype.mz,Ne.prototype.findObjectsIn=Ne.prototype.Cf,Ne.prototype.findPartsIn=Ne.prototype.ux,Ne.prototype.findObjectsAt=Ne.prototype.ji,Ne.prototype.findPartsAt=Ne.prototype.lz,Ne.prototype.findObjectAt=Ne.prototype.ic,Ne.prototype.findPartAt=Ne.prototype.Ol,Ne.prototype.focusObject=Ne.prototype.zz,Ne.prototype.alignDocument=Ne.prototype.Jy,Ne.prototype.zoomToRect=Ne.prototype.BA,Ne.prototype.zoomToFit=Ne.prototype.zoomToFit,Ne.prototype.diagramScroll=Ne.prototype.kx,Ne.prototype.focus=Ne.prototype.focus;var cd=new ti,Gc=null,Bs=Rn.document!==void 0,gh=null,ph="",wu=new Bt(Ne,"None",0),Xu=new Bt(Ne,"Uniform",1),Nh=new Bt(Ne,"UniformToFill",2),Th=new Bt(Ne,"CycleAll",10),qf=new Bt(Ne,"CycleNotDirected",11),$f=new Bt(Ne,"CycleNotDirectedFast",12),qh=new Bt(Ne,"CycleNotUndirected",13),eg=new Bt(Ne,"CycleDestinationTree",14),tg=new Bt(Ne,"CycleSourceTree",15),Ed=new Bt(Ne,"DocumentScroll",1),Rd=new Bt(Ne,"InfiniteScroll",2),$d=new Bt(Ne,"TreeParentCollapsed",21),Xs=new Bt(Ne,"AllParentsCollapsed",22),Oh=new Bt(Ne,"AnyParentsCollapsed",23),Df=new tn,Zl="2.3.10",mh="image",mf=null,bg=!1;function Cu(){if(Bs){var a=Rn.document.createElement("canvas"),y=a.getContext("2d"),x=Ji("7ca11abfd022028846");y[x]=Ji("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Ti.Dx+"4ae6247590da4bb21c324ba3a84e385776",Qr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",At.za],b=1;5>b;b++)y[Ji("7ca11abfd7330390")](Ji(E[b-1]),10,15*b);for(y[x]=Ji("39f046ebb36e4b"),x=1;5>x;x++)y[Ji("7ca11abfd7330390")](Ji(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Qr.prototype.Cd=Qr.prototype.Eu),mf=a}}Ne.className="Diagram",Ne.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Rn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ne?y.H:null},Ne.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},Ne.useDOM=function(a){Bs=a?Rn.document!==void 0:!1},Ne.isUsingDOM=function(){return Bs},Ne.None=wu,Ne.Uniform=Xu,Ne.UniformToFill=Nh,Ne.CycleAll=Th,Ne.CycleNotDirected=qf,Ne.CycleNotDirectedFast=$f,Ne.CycleNotUndirected=qh,Ne.CycleDestinationTree=eg,Ne.CycleSourceTree=tg,Ne.DocumentScroll=Ed,Ne.InfiniteScroll=Rd,Ne.TreeParentCollapsed=$d,Ne.AllParentsCollapsed=Xs,Ne.AnyParentsCollapsed=Oh;function Bg(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function vh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Rn[Ji("76a715b2f73f148a")][Ji("72ba13b5")]||"";if(a.Rc=!0,Bs){var E=Ne[Ji("76a115b6ed251eaf4692")];if(E)for(var b=Df.iterator;b.next()&&(E=b.value,E=Ji(E).split(Ji("39e9")),!(6>E.length));){var z=Ji(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=Ji(Ti[Ji("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Rn[Ji("74a900bae4370f8b51")][Ji("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Ji("73a612b6fb191d")](Ji("3aad1ab6e022098b4dc4")),z=Ji(E[2]),-1<ee&&(re=re[Ji("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Ji("76ad18b4f73e")],re=x[Ji("73a612b6fb191d")](Ji("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Ji("73a612b6fb191d")](z),0>ee&&z!==Ji("7da71ca0ad381e90")&&(ee=y[Ji("73a612b6fb191d")](Ji("76a715b2ef3e149757"))),0>ee&&(ee=y[Ji("73a612b6fb191d")](Ji("76a715b2ef3e149757"))),0>ee&&(ee=y[Ji("73a612b6fb191d")](Ji("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Ji("73a612b6fb191d")](Ji("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Ji("73a612b6fb191d")](Ji("35"))||y[Ji("73a612b6fb191d")](Ji("35"))===-1),!a.Rc||x[Ji("73a612b6fb191d")](Ji("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Ji("73a612b6fb191d")](z)),!a.Rc)||(ee=Rn[Ji("76a715b2f73f148a")][Ji("69ad17a1e03e")],re=ee[Ji("73a612b6fb191d")](Ji("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Ji("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Rn.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[Ji("79a417a0f0181a8946")]=E,Rn.document[Ji("78a712aa")]){Rn.document[Ji("78a712aa")][Ji("7bb806b6ed32388c4a875b")](ee),oe=Rn.getComputedStyle(ee).getPropertyValue(Ji("78a704b7e62456904c9b12701b6532a8"));var se=Rn.getComputedStyle(ee).getPropertyValue(Ji("75b817b0ea2202"));if(Rn.document[Ji("78a712aa")][Ji("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Rn[Ji("77a902b0eb1b1e804a8a")],se==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Ji("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ue in ee)if(E===ee[ue].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ue=x[Ji("76ad18b4f73e")],b=x[Ji("73a612b6fb191d")](Ji("35e7"))+2;b<ue;b++)y+=x[b];x=y[Ji("73a612b6fb191d")](Ji("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Ji("73a612b6fb191d")](Ji("35")))}}}return 0<a.Rc&&a!==a.wy}Bg.className="DiagramHelper";function Wd(a){this.j=a===void 0?new Ue:a,this.o=new Ue}An.Object.defineProperties(Wd.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 Ih="DraggingInfo";Wd.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new oi(NaN,NaN).freeze(),this.gridSnapCellSpot=Ra,this.gridSnapOrigin=new Ue(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function fe(a,y){if(typeof a=="string"||Rn.Element&&a instanceof Element)var x=Ne.call(this,a)||this;else x=Ne.call(this)||this,y=a;return he(x),y&&x.nm(y),x}Tt(fe,Ne);function he(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=wr,a.layout=new Fu}fe.prototype.reset=function(){Ne.prototype.reset.call(this),he(this)},fe.className="Palette";function me(a,y){if(typeof a=="string"||Rn.Element&&a instanceof Element)var x=Ne.call(this,a)||this;else x=Ne.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new or;var b=new to;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new ao(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Xe,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new Ue(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){E.Ya(),Ve(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Ve(E)},x.autoScale=Xu,x.vb=!1,y&&Object.assign(x,y),x}Tt(me,Ne),me.prototype.computePixelRatio=function(){return 1},me.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(as(this),this.ql===null){var x=new Mu(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),De(this)}finally{this.ta=a,this.ib=y}}}Ne.prototype.redraw.call(this)},me.prototype.gc=function(){if(this.Ka===null&&Ot("No div specified"),this.ta===null&&Ot("No canvas specified"),!(this.ta instanceof Io)&&(ny(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){as(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?De(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function De(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=qt.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Is(y,b),qt.free(b),Wo(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var se=re.diagram.grid.part;if(!x&&re.isTemporary)E&&se.layer===re&&(re=Oc(re,b),se.gc(b,oe),b.globalAlpha=re);else{for(var ue=Oc(re,b),ge=oe.scale,ye=qt.alloc(),Pe=re.Pa.s,Fe=Pe.length,Te=0;Te<Fe;Te++){var Je=Pe[Te];(E||Je!==se)&&re.Oj(b,Je,oe,null,ge,ye,!1)}qt.free(ye),b.globalAlpha=ue}}}}}function Ve(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=oi.alloc();b.h(x.width,x.height),E.desiredSize=b,oi.free(b),a=2/a.scale,E instanceof to&&(E.strokeWidth=a),y.location=new Ue(x.x-a/2,x.y-a/2),y.isSelected=!0}}}me.prototype.computeBounds=function(){var a=this.observed;if(a===null)return hc;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},me.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},me.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ve(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},An.Object.defineProperties(me.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof me&&Ot("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Ve(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Ve(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),me.className="Overview";function Xe(){$i.call(this),this.j=null}Tt(Xe,$i),Xe.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 Ue(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ue(a.x-this.j.x,a.y-this.j.y)),!0)},Xe.prototype.doActivate=function(){this.j=null,$i.prototype.doActivate.call(this)},Xe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Xe.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new Ue(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ue(a.x-this.j.x,a.y-this.j.y)}}},Xe.className="OverviewDraggingTool";function Oe(){zr(this),this.H=pi,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=hc,this.hb=!0,this.cg=null,this.ob=200}Oe.prototype.toString=function(){return"CommandHandler"},Oe.prototype.Xe=function(a){this.H=a},Oe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=uo?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Oe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Oe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Vn&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Oe.prototype.canStopCommand=function(){return!0},Oe.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Oe.prototype.canSelectAll=function(){return this.diagram.allowSelect},Oe.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 Tn,x=a.selection.iterator;x.next();)lg(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Oe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Oe.prototype.copySelection=function(){var a=this.diagram,y=new Tn;for(a=a.selection.iterator;a.next();)lg(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Oe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Oe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Oe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Oe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)gh=null,ph="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new tn,x.addAll(z),gh=x,ph=y.model.dataFormat}}y.R("ClipboardChanged",x)},Oe.prototype.pasteFromClipboard=function(){var a=new Tn,y=gh;if(y===null)return a;var x=this.diagram;if(ph!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,ee=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=ee.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},Oe.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Ko(y,z,new Ue(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Oe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||gh===null||gh.count===0||ph!==a.model.dataFormat)},Oe.prototype.undo=function(){this.diagram.undoManager.undo()},Oe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Oe.prototype.redo=function(){this.diagram.undoManager.redo()},Oe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Oe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===wu&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Oe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==wu?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Oe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===wu&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Oe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==wu?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Oe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Oe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Oe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;xl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=hc):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ba(y)},Oe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Oe.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(oe){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;xl(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=qe(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=b.pop();0<b.length&&oe instanceof xi&&oe.isTreeExpanded&&(!(oe instanceof Gr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof or&&y.tv(oe.actualBounds),oe instanceof xi&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Gr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof or&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){_r(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function qe(a,y,x){if(y.isVisible())return x;if(y instanceof Jo)qe(a,y.adornedPart,x);else if(y instanceof ei){var E=y.fromNode;E!==null&&qe(a,E,x),y=y.toNode,y!==null&&qe(a,y,x)}else y instanceof xi&&(E=y.labeledLink,E!==null&&qe(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),qe(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),qe(a,y,x));return x}Oe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof or)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Oe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),xl(y.animationManager,"Collapse Tree");var x=new tn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof xi&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Oe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof xi&&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 xi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Oe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),xl(y.animationManager,"Expand Tree");var x=new tn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof xi&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Oe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof xi)||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 xi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Oe.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new tn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new tn,oe=b.iterator;oe.next();){var se=oe.value;z=!1;for(var ue=b.iterator;ue.next();)if(se.Td(ue.value)){z=!0;break}z||re.add(se)}if(0<re.count){var ge=re.first().containingGroup;if(ge!==null)for(;ge!==null;){b=!1;for(var ye=re.iterator;ye.next();)if(!ye.value.Td(ge)){b=!0;break}if(b)ge=ge.containingGroup;else break}if(x instanceof Gr)zd(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var Pe=y.copyNodeData(x);Ft(Pe)&&(y.xf(Pe),E=a.ii(Pe))}if(E!==null){ge!==null&&this.isValidMember(ge,E)&&(E.containingGroup=ge);for(var Fe=re.iterator;Fe.next();){var Te=Fe.value;this.isValidMember(E,Te)&&(Te.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Oe.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 Rt(a){var y=Ni();for(a=a.iterator;a.next();){var x=a.value;x instanceof ei||y.push(x)}a=new Tn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,ee=0;ee<x;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return qn(y),a}Oe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof ei)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},Oe.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new tn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Gr&&z.canUngroup()&&E.add(z)}var ee=new tn;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var se=oe.containingGroup,ue=se!==null&&se.data!==null?x.wa(se.data):void 0;ee.addAll(oe.memberParts);for(var ge=ee.iterator;ge.next();){var ye=ge.value;if(ye.isSelected=!0,!(ye instanceof ei)){var Pe=ye.data;Pe!==null?x.mp(Pe,ue):ye.containingGroup=se}}y.remove(oe)}}y.R("SelectionUngrouped",E,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Oe.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 Gr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Gr&&y.canUngroup())return!0;return!1},Oe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Rt(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Oe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),xl(y.animationManager,"Collapse SubGraph");var x=new tn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Gr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Oe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Gr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Gr&&y.isSubGraphExpanded)return!0;return!1},Oe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),xl(y.animationManager,"Expand SubGraph");var x=new tn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Gr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Oe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Gr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Gr&&!y.isSubGraphExpanded)return!0;return!1},Oe.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Ja&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Oe.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 Ja))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 Ja&&x.editable}),a!==null))return!0;return!1},Oe.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof gt?b=a.ga(Cr):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Ue(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,ru(x,!1,a)}},Oe.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)},Oe.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new ti,a===null)return E;for(var z=a.iterator;z.next();)Ma(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof ei&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},An.Object.defineProperties(Oe.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||Ot("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}}}),Oe.className="CommandHandler",bi=function(){return new Oe};function gt(){zr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ue(NaN,NaN).freeze(),this.jd=nl,this.Ab=new Qr,this.wh=new Qr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=bc,this.uc=new qt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new qt(NaN,NaN,NaN,NaN).freeze(),this.dc=new qt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Dl,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 Pn,fn,Ci,Bi,nr,pr,hr,Dr,vo,Qo;gt.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=rn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},gt.prototype.Vw=function(a){var y=this.Dh;if(bt(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},gt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},gt.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},gt.prototype.copy=function(){return this.clone()},Be=gt.prototype,Be.qb=function(a){a.classType===ei?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ot("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===gt&&(this.stretch=a)},Be.toString=function(){return Wi(this.constructor)+"#"+ur(this)},Be.th=function(){this.A!==null&&(this.A.nc=!0)};function Kr(a){a.A===null?a.A=new br:a.A.nc&&(a.A=a.A.copy())}Be.Xc=function(){if(this.ba===null){var a=new Xr;a.Xi=ll,a.yj=ll,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Be.cb=function(a,y,x,E,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,ee),x===this&&a===Gn&&ve(this)&&ka(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new ti),ee=z.undoManager.transactionLevel===0,a.startCondition===ud?ee=!0:a.startCondition===Id&&(ee=!1),ee?(z=new Rl,Mh(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(xl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof Kn&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof Kn&&Mg(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function ka(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=WS(z,E,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,E)}ee===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Be.ks=function(a){return this.bindingId===a?this:null},Be.g=function(a,y,x){this.cb(Gn,a,this,y,x)},Be.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Qr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function rs(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Be.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?Ho(a.x,a.y,0,0,0,E.height)<=y||Ho(a.x,a.y,0,E.height,E.width,E.height)<=y||Ho(a.x,a.y,E.width,E.height,E.width,0)<=y||Ho(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Be.se=function(){return!0},Be.ca=function(a){var y=Ue.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ue.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var oe=1/E;if(re.width*E<b&&re.height*E<b)return a=rl(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Ue.free(y),a}return b=!1,(this instanceof Jo||this instanceof to?rl(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),Ue.free(y),b},Be.gh=function(a){var y=this.naturalBounds;return rl(0,0,y.width,y.height,a.x,a.y)},Be.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=qt.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Ue.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),Ue.free(b),qt.free(y),E},Be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Ue.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),Ue.free(b),E},Be.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Ue.allocAt(0,0),b=Ue.allocAt(0,x.height),z=Ue.allocAt(x.width,x.height),ee=Ue.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=qt.allocAt(0,0,x.width,x.height);var oe=Ue.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),Ue.free(oe),qt.free(x),!re&&(At.us(a,E,b)||At.us(a,b,z)||At.us(a,z,ee)||At.us(a,ee,E))&&(re=!0)}return Ue.free(E),Ue.free(b),Ue.free(z),Ue.free(ee),re},Be.ga=function(a,y){if(y===void 0&&(y=new Ue),a instanceof tr){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},Be.mi=function(a){a===void 0&&(a=new qt);var y=this.naturalBounds,x=this.oe,E=Ue.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),os(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),os(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),os(a,E.x,E.y,0,0),Ue.free(E),a},Be.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},Be.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Be.qs=function(a,y){return y===void 0&&(y=new Ue),y.assign(a),this.oe.Cd(y),y},Be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Be.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,se=-z.m21*ee,ue=z.m11*ee,ge=ee*(z.m21*z.dy-z.m22*z.dx),ye=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,At.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*se+ge,a=a*oe+y*ue+ye,y=x*re+E*se+ge,x=x*oe+E*ue+ye,b.h(0,0),E=this.naturalBounds,x=At.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},gt.prototype.measure=function(a,y,x,E){if(et(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=x||0,ee=E||0;var re=this instanceof Kn;switch(ks(this,!0)){case fn:ee=b=0,re&&(y=a=1/0);break;case Pn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case Bi:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case nr:isFinite(y)&&y>E&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(b,oe.width),E=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<E&&(E=Math.min(oe.height,E)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||Ot("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),$e(this,!1)}},gt.prototype.Wl=function(){},gt.prototype.Dd=function(){return!1},gt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=qt.alloc();z.assign(this.Ib),this.Ib.ka(),ct(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&kf(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof Ja&&(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()||Ot("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),pt(this,!1),qt.free(z)},Be=gt.prototype,Be.eh=function(){};function Ql(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,E+=y,b+=ee,y=ks(a,!0),x===E&&z===b&&(y=fn),y){case fn:(x>E||z>b)&&($e(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Pn:$e(a,!0),a.measure(E,b,0,0);break;case Bi:$e(a,!0),a.measure(E,z,0,0);break;case nr:$e(a,!0),a.measure(x,b,0,0)}}}Be.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||oy(x,!0),this.N(),ws(a,y)||(x.oh(),this.Pn(x)))},Be.Pn=function(a){this.portId!==null&&(oy(a,!0),a instanceof xi&&tS(a,this))},Be.gc=function(a,y){if(!sc(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Kn&&kf(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,se=this.areaBackground,ue=this.Ma;se===null&&ue===null||a.yc(),se!==null&&(Mo(this,a,se,!0,!0,oe,re),se instanceof Xo&&se.type===wd?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(se)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(Mo(this,a,ue,!0,!1,oe,re),ue instanceof Xo&&ue.type===wd?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Ms(this),se=this.part,oe=!1;var ge=0;se&&y.Gf("drawShadows")&&(oe=se.isShadowed)&&(ue=se.shadowOffset,ge=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var ye;if(!(ye=y.$i||!ue)){var Pe=this.naturalBounds;ye=this.wh;var Fe=ye.m11,Te=ye.m21,Je=ye.dx,Ze=ye.m12,it=ye.m22,lt=ye.dy,ft,St=ft=0;ye=ft*Fe+St*Te+Je;var Vt=ft*Ze+St*it+lt;ft=Pe.width+ge,St=0;var mi=ft*Fe+St*Te+Je;ft=ft*Ze+St*it+lt,St=Math.min(ye,mi);var Vi=Math.min(Vt,ft),Fi=Math.max(ye+0,mi)-St,$n=Math.max(Vt+0,ft)-Vi;ye=St,Vt=Vi,ft=Pe.width+ge,St=Pe.height+ge,mi=ft*Fe+St*Te+Je,ft=ft*Ze+St*it+lt,St=Math.min(ye,mi),Vi=Math.min(Vt,ft),Fi=Math.max(ye+Fi,mi)-St,$n=Math.max(Vt+$n,ft)-Vi,ye=St,Vt=Vi,ft=0,St=Pe.height+ge,mi=ft*Fe+St*Te+Je,ft=ft*Ze+St*it+lt,St=Math.min(ye,mi),Vi=Math.min(Vt,ft),Fi=Math.max(ye+Fi,mi)-St,$n=Math.max(Vt+$n,ft)-Vi,ye=St,Vt=Vi,ge=y.viewportBounds,Pe=ge.x,Fe=ge.y,ye=!(ye>ge.width+Pe||Pe>Fi+ye||Vt>ge.height+Fe||Fe>$n+Vt)}if(ye){if(ye=(this.l&256)!==0,a.clipInsteadOfFill&&(ye=!1),this instanceof Ja&&(a.font=this.font),ye){if(Vt=re.se()?re.naturalBounds:re.actualBounds,Fi=Math.max(ee.x,Vt.x),$n=Math.max(ee.y,Vt.y),ge=Math.min(ee.right,Vt.right)-Fi,Pe=Math.min(ee.bottom,Vt.bottom)-$n,Fe=this.tb,Fe!==null&&(Fi=Fe.x,$n=Fe.y,ge=Fe.width,Pe=Fe.height),Fi>ee.width+ee.x||ee.x>Vt.width+Vt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Fi,$n,ge,Pe),a.clip()}if(ue){if(!se.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Vt=se.shadowOffset,a.Ev(Vt.x*y.scale*this.scale*y.Mb,Vt.y*y.scale*this.scale*y.Mb,se.shadowBlur),yu(a),a.shadowColor=se.shadowColor)}oe&&this.shadowVisible===!0?yu(a):oe&&this.shadowVisible===!1&&lc(a),se=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ac(this,a,se,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&pl(this,re)&&this.shadowVisible===null&&lc(a),this.Ma!==null&&(a.yc(),_u(this,a,se,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||pl(this,re))?(dd(this,!0),this.shadowVisible===null&&lc(a)):dd(this,!1),this.hh(a,y),oe&&this.l&512&&yu(a),ue&&oe&&lc(a),ye&&(a.restore(),a.Vc(this instanceof Kn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function pl(a,y){return y===null?!1:(kf(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Kn.Auto||y.type===Kn.Spot)&&y.Pb()!==a)}Be.Dv=function(){};function ac(a,y,x,E){Mo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Xo&&a.areaBackground.type===wd?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function _u(a,y,x,E){var b=a.kq(),z=x.x,ee=x.y,re=x.width+b,oe=x.height+b;Mo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Xo&&a.Ma.type===wd?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function mu(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ee=0;ee<b;ee++)if(E[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Kn.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 sc(a,y,x){if(!(y instanceof fa))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&mu(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),yu(y),y.shadowColor=a.shadowColor}a instanceof Ja&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Kn;var re=a instanceof Kn?kf(a):!1;a.l&4096&&Ms(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(Pd(y,1,0,0,1,0,0),a.svg=y.ad):z?(Pd(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):Pd(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var se=ee.copy().Vj();y.rb.ha=[se.m11,se.m12,se.m21,se.m22,se.dx,se.dy],ac(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),_u(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],_u(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&yu(y),re&&a.shadowVisible===!0?yu(y):re&&a.shadowVisible===!1&&lc(y),b=a.panel,re&&pl(a,b)&&a.shadowVisible===null&&lc(y),y.Il&&(se=x.computePixelRatio(),se="drop-shadow("+y.shadowOffsetX/se+"px "+y.shadowOffsetY/se+"px "+y.shadowBlur/se/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",se),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",se)),re&&(a.Ma!==null||a.areaBackground!==null||pl(a,b))?(dd(a,!0),a.shadowVisible===null&&lc(y)):dd(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,se=a.svg,!z&&se!==null&&re!==se&&se.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,oe,re),Wu(y,se),!0):(a.svg=re,ee!==null&&re===null&&(hd(y),y.nh.pop()),re===null||(a.$o(y,E,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&yu(y),a.Dd()&&lc(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&mu(a,E,re),ee!==null&&ee(a,re)),!0)}Be.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ee=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+ko++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof Kn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Wu(a,E)};function Wu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function vu(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=eo(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Be.hh=function(){},Be.lv=function(){this.Uc=!0},Be.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof Kn?kf(this):!1;if(!(this instanceof Kn&&b))if(this instanceof Wc){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Us(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",ju(a)):y.setAttributeNS(null,"transform",ju(a))}else if(!x||this instanceof Kn)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof to){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=E.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],ac(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&Rh(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Rh(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof Kn))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),_u(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Rh(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&&Rh(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Be.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 Mo(a,y,x,E,b,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Mf)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var se=a.kq();if(re=z.width,oe=z.height,b?(re=ee.width,oe=ee.height):E||(re+=se,oe+=se),(z=y instanceof Sh)&&x.xe&&(x.type===Sp||x.yk===re&&x.ft===oe))var ue=x.xe;else{var ge=0,ye=0,Pe=0,Fe=0,Te=0,Je=0;if(Je=Te=0,b?(Te=ee.x,Je=ee.y):E||(Te-=se/2,Je-=se/2),ge=x.start.x*re+x.start.offsetX,ye=x.start.y*oe+x.start.offsetY,Pe=x.end.x*re+x.end.offsetX,Fe=x.end.y*oe+x.end.offsetY,ge+=Te,Pe+=Te,ye+=Je,Fe+=Je,x.type===yf)ue=y.createLinearGradient(ge,ye,Pe,Fe);else if(x.type===wd)Je=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Te=0,Je=Math.max(re,oe)/2):Te=x.startRadius,ue=y.createRadialGradient(ge,ye,Te,Pe,Fe,Je);else if(x.type===Sp)try{ue=y.createPattern(x.pattern,"repeat")}catch(it){ue=null}if(x.type!==Sp&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ue.addColorStop(b.key,b.value);if(z&&(x.xe=ue,ue!==null&&(x.yk=re,x.ft=oe),ue===null&&x.type===Sp&&x.yk!==-1)){x.yk=-1;var Ze=a.diagram;Ze!==null&&x.yk===-1&&_r(function(){Ze.redraw()},600)}}E?y.fillStyle=ue:y.strokeStyle=ue}}}Be.rg=function(a){if(a instanceof Kn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Be.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Be.If=function(){for(var a=this instanceof Kn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ms(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){be(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)}be(a,!1),je(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,je(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,je(a,!1)))}Be.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ue.alloc();z.yi(y,x,E,b,Cr),a.rotate(this.Kb,z.x,z.y),Ue.free(z)}},Be.v=function(a){if(!et(this)){a===void 0&&(a=!1),$e(this,!0),pt(this,!0);var y=this.panel;y===null||a||y.v()}},Be.Uj=function(){et(this)||($e(this,!0),pt(this,!0))};function Ul(a){if(!ct(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof xi&&a.Bd(),y.$b())),pt(a,!0)}}Be.Uk=function(){!(this.l&2048)&&(be(this,!0),je(this,!0))},Be.Wu=function(){je(this,!0)},Be.N=function(){var a=this.part;a!==null&&a.N()};function ks(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===Kn.Table?Hc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Kn.Auto&&E.Pb()===a?Ml(a,Pn,y):x===pr?E!==null?E.type===Kn.Spot&&E.Pb()===a?Ml(a,Pn,y):(x=E.defaultStretch,x===pr?Ml(a,fn,y):Ml(a,x,y)):Ml(a,fn,y):Ml(a,x,y)}function Hc(a,y,x,E){var b=a.stretch;if(b!==pr)return Ml(a,b,E);var z=b=null;switch(y.stretch){case nr:z=!0;break;case Pn:z=!0}switch(x.stretch){case Bi:b=!0;break;case Pn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Bi||y===Pn),z===null&&(z=y===nr||y===Pn),b===!0&&z===!0?Ml(a,Pn,E):b===!0?Ml(a,Bi,E):z===!0?Ml(a,nr,E):Ml(a,fn,E)}function Ml(a,y,x){if(x)return y;if(y===fn||(x=a.desiredSize,x.w()))return fn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Bi)return fn;if(y===Pn)return nr}else{if(y===nr)return fn;if(y===Pn)return Bi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===nr)return fn;if(y===Pn)return Bi}else{if(y===Bi)return fn;if(y===Pn)return nr}return y}function dd(a,y){a.l=y?a.l|512:a.l&-513}function ve(a){return(a.l&1024)!==0}function Se(a,y){a.l=y?a.l|1024:a.l&-1025}function be(a,y){a.l=y?a.l|2048:a.l&-2049}function je(a,y){a.l=y?a.l|4096:a.l&-4097}function et(a){return(a.l&8192)!==0}function $e(a,y){a.l=y?a.l|8192:a.l&-8193}function ct(a){return(a.l&16384)!==0}function pt(a,y){a.l=y?a.l|16384:a.l&-16385}Be.Gj=function(){this.svg=null},Be.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Be.Av=function(){},Be.zv=function(a){return this.pa=a,Ul(this),!0},Be.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Be.kq=function(){return 0};function Jt(a){var y=a.part;if(y instanceof xi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||tS(y,a)}}function Cn(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Kn?a instanceof xi?a.Bd():a.qm(a,function(x){Jt(x)}):Jt(a))}Be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Pl(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&C1(a)&&Ot("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new tn),this.localBindings.add(b),this},Be.set=function(a){return Object.assign(this,a),this},Be.Du=function(a){return an(this,a),this},Be.apply=function(a){return a(this),this},Be.nm=function(a){return ts(this,a),this},Be.pz=function(){return this.ih()},Be.ih=function(){for(var a=this instanceof Kn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Be.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ti),this.animationTriggers.add(a.propertyName,a),this};function cn(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Pi.I(a);typeof z=="function"?(x=rn(arguments),E=z(x),Ft(E)||Ot('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Rn.go[a]}if(E===null&&(b!=null&&b.constructor||Ot("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof Ne&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(bn(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?Ot("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):an(E,z);return E}function an(a,y){if(typeof y=="string")if(a instanceof Ja)a.text=y;else if(a instanceof to)a.figure=y;else if(a instanceof Wc)a.source=y;else if(a instanceof Kn)y=eh.I(y),y!==null&&(a.type=y);else if(a instanceof Xo){var x=Ht(Xo,y);x!==null?a.type=x:Ot("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ni?(y=Ht(ni,y),y!==null&&(a.type=y)):a instanceof zo&&(y=Ht(zo,y),y!==null&&(a.type=y));else if(y instanceof gt)a instanceof Kn||Ot("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof kl){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof kl?u0(E,y):Ot("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Bt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Wl)a.type=y;else if(y instanceof Pl)a instanceof gt||a instanceof kl?a.bind(y):Ot("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof vc)a instanceof gt?a.Jv(y):Ot("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof dl)a instanceof ni&&a.type===ni.o?a.figures.add(y):Ot("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof zo)a instanceof dl?a.segments.add(y):Ot("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof vs)a instanceof Ne||a instanceof Gr?a.layout=y:Ot("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++)an(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Xo){x=new zt;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);ts(a,x)}else if(a instanceof kl){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&Ot("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&Ot("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new zt;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);ts(a,b)}else ts(a,y);else Ot('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function on(a,y){Pi.add(a,y)}function On(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}An.Object.defineProperties(gt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new br),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 br),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 br),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Kr(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&&(Kr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:xc},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Nr),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===xc&&(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 Nr),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 Nr),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:fo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Nr),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:pr},set:function(a){var y=this.stretch;y!==a&&(Kr(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&&(Kr(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)&&xn(a,"0 <= value <= 1",gt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Tg(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(Tg(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(),Cn(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&&ig(a,"GraphObject.areaBackground"),a instanceof Xo&&a.freeze(),Kr(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&&ig(a,"GraphObject.background"),a instanceof Xo&&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 or)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new Ue(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Ot("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,Cn(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof to&&this.qc(),this.g("desiredSize",E,a),ve(this)&&(a=this.part,a!==null&&(ka(this,a,"width"),ka(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 oi(a,this.jd.height).freeze(),this.v(),this instanceof to&&this.qc(),this.g("desiredSize",y,a),ve(this)&&(a=this.part,a!==null&&ka(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 oi(this.jd.width,a).freeze(),this.v(),this instanceof to&&this.qc(),this.g("desiredSize",y,a),ve(this)&&(a=this.part,a!==null&&ka(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Na},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(),Kr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Oa},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(),Kr(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 ao(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&&Ms(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ms(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Kr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:fn},set:function(a){this.reshapingBehavior!==a&&(Kr(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()&&Ot("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ul(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&&xn(a,">= 0",gt,"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&&xn(a,">= 1",gt,"columnSpan"),Kr(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&&xn(a,">= 0",gt,"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&&xn(a,">= 1",gt,"rowSpan"),Kr(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&&(Kr(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 xi||Ot("Cannot set portID on a Link: "+a),y!==null&&x!==null&&uy(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,rS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ll},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Jt(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&xn(a,">= 0",gt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Jt(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),Jt(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&&xn(a,">= 0",gt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ll},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Jt(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&xn(a,">= 0",gt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Jt(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),Jt(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&&xn(a,">= 0",gt,"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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(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&&(Kr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),gt.prototype.trigger=gt.prototype.Jv,gt.prototype.findBindingPanel=gt.prototype.ih,gt.prototype.findTemplateBinder=gt.prototype.pz,gt.prototype.setProperties=gt.prototype.nm,gt.prototype.apply=gt.prototype.apply,gt.prototype.attach=gt.prototype.Du,gt.prototype.set=gt.prototype.set,gt.prototype.isEnabledObject=gt.prototype.If,gt.prototype.isVisibleObject=gt.prototype.Ed,gt.prototype.isContainedBy=gt.prototype.rg,gt.prototype.getNearestIntersectionPoint=gt.prototype.rs,gt.prototype.getLocalPoint=gt.prototype.qs,gt.prototype.getDocumentScale=gt.prototype.Df,gt.prototype.getDocumentAngle=gt.prototype.li,gt.prototype.getDocumentBounds=gt.prototype.mi,gt.prototype.getDocumentPoint=gt.prototype.ga,gt.prototype.intersectsRect=gt.prototype.Yc,gt.prototype.containedInRect=gt.prototype.fh,gt.prototype.containsRect=gt.prototype.Re,gt.prototype.containsPoint=gt.prototype.ca,gt.prototype.raiseChanged=gt.prototype.g,gt.prototype.raiseChangedEvent=gt.prototype.cb,gt.prototype.addCopyProperty=gt.prototype.Vw;var Pi=null;gt.className="GraphObject",Pi=new ti,on("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=cn(Kn,Kn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Kn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},cn(to,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new tr(0,0,2.76142374915397,2.761423749153969),spot2:new tr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof Kn&&(x=E.fb("ButtonBorder"),x instanceof to)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof Kn&&(x=E.fb("ButtonBorder"),x instanceof to&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Kn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof to){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ee,ee=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Kn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof to){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Kn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof to){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Kn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof to))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=E._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=E._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),b.skipsUndoManager=z}}},y}),on("TreeExpanderButton",function(){var a=cn("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},cn(to,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ta},new Pl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Pl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Jo&&(x=x.adornedPart),x instanceof xi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),on("SubGraphExpanderButton",function(){var a=cn("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},cn(to,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ta},new Pl("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 Jo&&(x=x.adornedPart),x instanceof Gr){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),on("ToolTip",function(){return cn(Jo,Kn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},cn(to,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new tr(0,0,4,6),spot2:new tr(1,1,-4,-4)}))}),on("ContextMenu",function(){return cn(Jo,Kn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},new Pl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),on("ContextMenuButton",function(){var a=cn("Button");a.stretch=Bi;var y=a.fb("ButtonBorder");return y instanceof to&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new tr(0,0,2,3),y.spot2=new tr(1,1,-2,-2)),a}),on("PanelExpanderButton",function(a){var y=On(a,"COLLAPSIBLE"),x=cn("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},cn(to,{name:"ButtonIcon",strokeWidth:2},new Pl("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof to&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),on("CheckBoxButton",function(a){var y=On(a);return a=cn("Button",{desiredSize:new oi(14,14)},cn(to,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Pn,geometryStretch:Ci,visible:!1},y!==""?new Pl("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Kn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),on("CheckBox",function(a){a=On(a),a=cn("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ao(0,1,0,0)});var y=cn(Kn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ao(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}),gt.None=fn=new Bt(gt,"None",0),gt.Default=pr=new Bt(gt,"Default",0),gt.Vertical=nr=new Bt(gt,"Vertical",4),gt.Horizontal=Bi=new Bt(gt,"Horizontal",5),gt.Fill=Pn=new Bt(gt,"Fill",3),gt.Uniform=Ci=new Bt(gt,"Uniform",1),gt.UniformToFill=hr=new Bt(gt,"UniformToFill",2),gt.FlipVertical=Dr=new Bt(gt,"FlipVertical",1),gt.FlipHorizontal=vo=new Bt(gt,"FlipHorizontal",2),gt.FlipBoth=Qo=new Bt(gt,"FlipBoth",3),gt.make=cn,gt.getBuilders=function(){var a=new ti,y;for(y in Pi)if(y!==y.toLowerCase()){var x=Pi.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},gt.defineBuilder=on,gt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Pi.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof gt))return y&&E.set(y),E;Ot('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},gt.takeBuilderArgument=On;function br(){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=Na,this.o=Oa,this.hg=pr,this.ob=this.Bi=1,this.Pf=fn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}br.prototype.copy=function(){var a=new br;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 Nr(){this.u=-1/0,this.o=0,this.F=fo,this.rr=xc,this.j=this.V="None"}Nr.prototype.copy=function(){var a=new Nr;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},Nr.className="LinkElementSettings";function Xr(){this.yj=this.Xi=Dl,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Xr.prototype.copy=function(){var a=new Xr;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},Xr.className="LinkSettings";function Ao(){this.ha=[1,0,0,1,0,0]}Ao.prototype.copy=function(){var a=new Ao;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},Ao.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},Ao.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ao.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ee=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-x)}},Ao.className="STransform";function Vo(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Vo.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Vo.className="SGradient";function Io(a,y,x){this.ownerDocument=a=y===void 0?Rn.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 fa(this,x)}Io.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Io.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ft(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Io.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Io.prototype.focus=function(){this.Oa.focus()},Io.prototype.mx=function(){this.ownerDocument=null},An.Object.defineProperties(Io.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}}}),Io.className="SVGSurface";function fa(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 Ao,this.j=hd(this),this.Nj=hd(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ko++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function ls(a,y,x,E,b,z,ee){a.Nj===void 0?Pd(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Be=fa.prototype,Be.arc=function(a,y,x,E,b,z,ee,re){var oe=2*Math.PI,se=oe-1e-6,ue=x*Math.cos(E),ge=x*Math.sin(E),ye=a+ue,Pe=y+ge,Fe=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ee-ye)||1e-6<Math.abs(re-Pe))&&this.path.push(["L",ye,+Pe]),0>E&&(E=E%oe+oe),E>se?(this.path.push(["A",x,x,0,1,Fe,a-ue,y-ge]),this.path.push(["A",x,x,0,1,Fe,ye,Pe])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Fe,a+x*Math.cos(b),y+x*Math.sin(b)])},Be.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Be.Se=function(a){this.addPath(this.path,this.rb,a||0)},Be.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Be.clearRect=function(){},Be.clip=function(){this.Yl.clipPath=!0},Be.closePath=function(){this.path.push(["z"])},Be.createLinearGradient=function(a,y,x,E){var b=new Vo("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Be.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+ko++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(mh,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Be.createRadialGradient=function(a,y,x,E,b,z){var ee=new Vo("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function Us(a,y,x,E,b,z,ee,re,oe){E=re/E,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Be.drawImage=function(a,y,x,E,b,z,ee,re,oe){var se="";a instanceof HTMLCanvasElement&&(se=a.toDataURL()),a instanceof HTMLImageElement&&(se=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=ue,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,Us(this,y,x,E,b,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||E,height:a||b,href:se},At.$(E,re)&&At.$(b,oe)?se.toLowerCase().indexOf(".svg")===-1&&se.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ue||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Rs(this,mh,z,this.rb),this.addElement(mh,z)},Be.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Lu(this,this.Yl)},Be.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Be.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Rs(this,"fill",a,this.rb),this.addElement("rect",a)},Be.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Rs(this,"fill",a,this.rb),Lu(this,a),this.svg.prepend(this.Ud("rect",a))},Be.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},Rs(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Be.lineTo=function(a,y){this.path.push(["L",a,y])},Be.moveTo=function(a,y){this.path.push(["M",a,y])},Be.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Be.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Be.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},Be.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())},Be.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Pd(this,a,y,x,E,b,z)};function ju(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Be.scale=function(a,y){this.rb.scale(a,y)},Be.translate=function(a,y){this.rb.translate(a,y)},Be.transform=function(){},Be.yc=function(){},Be.stroke=function(){Zc(this,this.Yl)},Be.jk=function(){this.clipInsteadOfFill||this.stroke()},Be.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Be.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 Rs(a,y,x,E){y==="fill"?Lu(a,x):y==="stroke"&&Zc(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function Lu(a,y){a.fillStyle instanceof Vo?y.fill=yh(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 Ic(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Vo?y.setAttributeNS(null,"fill",yh(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 Zc(a,y){if(a.strokeStyle instanceof Vo)y.stroke=yh(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 yh(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+ko++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ee=0;ee<y;ee++){var re=b[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(se,ue){return se.offset>ue.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Be.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=rn(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());E.push(ee.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Rs(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function Pd(a,y,x,E,b,z,ee){var re=new Ao;re.ha=[y,x,E,b,z,ee],y={},Rs(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function hd(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function lc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function yu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Be.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Be.fs=function(){this.Ct=!1},Be.Vc=function(){},Be.Wx=function(){},fa.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},fa.prototype.getImageData=function(){return null},fa.prototype.measureText=function(){return null};function Rh(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()))}fa.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},fa.className="SVGContext",Ne.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Io(this,Rn.document));var y=new Io(this,Rn.document,!0);a===void 0&&(a=new zt);var x=this;return yc(this,function(E,b){return E=qd(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},Ne.prototype.makeSvg=Ne.prototype.Cs,Ne.prototype.av=function(a){return this.Cs(a)},Ne.prototype.makeSVG=Ne.prototype.av;function Mu(a,y,x,E){this.ownerDocument=y=y===void 0?Rn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Sh(y,x,E),y.H=a}Mu.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},Mu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Mu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Mu.prototype.focus=function(){this.Oa.focus()},Mu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},An.Object.defineProperties(Mu.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}}}),Mu.className="CanvasSurface";function Sh(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ot("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 Qr,this.isTemporary=!!x}Be=Sh.prototype,Be.Wx=function(a){this.Z.imageSmoothingEnabled=a},Be.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Be.beginPath=function(){this.Z.beginPath()},Be.Se=function(){},Be.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Be.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Be.clip=function(){this.Z.clip()},Be.closePath=function(){this.Z.closePath()},Be.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Be.createPattern=function(a,y){return this.Z.createPattern(a,y)},Be.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Be.drawImage=function(a,y,x,E,b,z,ee,re,oe){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ee,re,oe)},Be.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Be.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Be.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Be.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Be.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Be.lineTo=function(a,y){this.Z.lineTo(a,y)},Be.measureText=function(a){return this.Z.measureText(a)},Be.moveTo=function(a,y){this.Z.moveTo(a,y)},Be.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Be.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Be.restore=function(){this.Z.restore()},Be.save=function(){this.yc(),this.Z.save()},Sh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Be=Sh.prototype,Be.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Be.scale=function(a,y){this.El.scale(a,y)},Be.translate=function(a,y){this.El.translate(a,y)},Be.stroke=function(){this.Z.stroke()},Be.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*E,x=ee.m12*x+ee.m22*E,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Be.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Be.ng=function(a,y){if(a instanceof Xo&&a.type===wd){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)},Be.jk=function(){this.Hm||this.stroke()},Be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Be.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Be.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(ng),a.lineDashOffset=0)},Be.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Be.Hs=function(){},An.Object.defineProperties(Sh.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 ng=Object.freeze([]);Sh.className="CanvasSurfaceContext";function xh(){this.F=this.o=this.u=this.j=0}xh.className="ColorNumbers";function Xo(a,y){yp||(vp(),yp=!0),zr(this),this._isFrozen=!1,a===void 0?(this.na=Mf,this.xk="black"):typeof a=="string"?(this.na=Mf,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===yf?(this.Qd=wr,this.Lk=us):this.Lk=a===wd?this.Qd=Cr:this.Qd=ll,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Xo.prototype.copy=function(){var a=new Xo;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},Be=Xo.prototype,Be.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Be.ka=function(){return Object.isFrozen(this)&&Ot("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Be.qb=function(a){a.classType===Xo&&(this.type=a)},Be.toString=function(){var a="Brush(";if(this.type===Mf)a+=this.color;else if(a=this.type===yf?a+"Linear ":this.type===wd?a+"Radial ":this.type===Sp?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+")"},Be.addColorStop=function(a,y){return this._isFrozen&&Ii(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&xn(a,"0 <= loc <= 1",Xo,"addColorStop:loc"),this.we===null&&(this.we=new ti),this.we.add(a,y),this.na===Mf&&(this.type=yf),this.xe=null,this},Be.Vz=function(a,y){if(this._isFrozen&&Ii(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?xp:y,this.type===Mf)fd(this.color),this.color=vf(a,y);else if((this.type===yf||this.type===wd)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)fd(x.value),this.addColorStop(x.key,vf(a,y));return this};function Lf(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?xp:x,fd(a),vf(y,x)}Be.Wy=function(a,y){if(this._isFrozen&&Ii(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?xp:y,this.type===Mf)fd(this.color),this.color=vf(-a,y);else if((this.type===yf||this.type===wd)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)fd(x.value),this.addColorStop(x.key,vf(-a,y));return this};function Kg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?xp:x,fd(a),vf(-y,x)}function Eh(a,y,x){fd(a),a=za.j;var E=za.u,b=za.o,z=za.F;return fd(y),x===void 0&&(x=.5),"rgba("+Math.round((za.j-a)*x+a)+", "+Math.round((za.u-E)*x+E)+", "+Math.round((za.o-b)*x+b)+", "+Math.round((za.F-z)*x+z)+")"}Be.Gx=function(){if(this.type===Mf)return $h(this.color);if((this.type===yf||this.type===wd)&&this.colorStops!==null){var a=this.colorStops;if(this.type===wd)return $h(a.first().value);if(a.get(.5)!==null)return $h(a.get(.5));if(a.count===2)return a=a.Fa(),$h(Eh(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=ee,b=re):z>=b&&re<z&&(E=ee,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,$h(Eh(a.get(x),a.get(E),1-z/b))}return!1};function $h(a){return a?a instanceof Xo?a.Gx():(fd(a),128>(299*za.j+587*za.u+114*za.o)/1e3):!1}function vf(a,y){switch(y){case xp:y=100*Lg(za.j);var x=100*Lg(za.u),E=100*Lg(za.o);return Au.j=.4124564*y+.3575761*x+.1804375*E,Au.u=.2126729*y+.7151522*x+.072175*E,Au.o=.0193339*y+.119192*x+.9503041*E,Au.F=za.F,y=$p(Au.j/og[0]),x=$p(Au.u/og[1]),E=$p(Au.o/og[2]),jd.j=116*x-16,jd.u=500*(y-x),jd.o=200*(x-E),jd.F=Au.F,jd.j=Math.min(100,Math.max(0,jd.j+100*a)),a=(jd.j+16)/116,y=a-jd.o/200,Au.j=og[0]*Yg(jd.u/500+a),Au.u=og[1]*(jd.j>rg*Xg?Math.pow(a,3):jd.j/rg),Au.o=og[2]*Yg(y),Au.F=jd.F,a=-.969266*Au.j+1.8760108*Au.u+.041556*Au.o,y=.0556434*Au.j+-.2040259*Au.u+1.0572252*Au.o,za.j=255*mp((3.2404542*Au.j+-1.5371385*Au.u+-.4985314*Au.o)/100),za.u=255*mp(a/100),za.o=255*mp(y/100),za.F=Au.F,za.j=Math.round(za.j),255<za.j?za.j=255:0>za.j&&(za.j=0),za.u=Math.round(za.u),255<za.u?za.u=255:0>za.u&&(za.u=0),za.o=Math.round(za.o),255<za.o?za.o=255:0>za.o&&(za.o=0),"rgba("+za.j+", "+za.u+", "+za.o+", "+za.F+")";case g1:return Dg(),Uc.o=Math.min(100,Math.max(0,Uc.o+100*a)),"hsla("+Uc.j+", "+Uc.u+"%, "+Uc.o+"%, "+Uc.F+")";default:Ot("Unknown color space: "+y)}}function fd(a){yp||(vp(),yp=!0);var y=Jg;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,za.j=a[0],za.u=a[1],za.o=a[2],za.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,za.j=0,za.u=0,za.o=0,za.F=1)}}function Dg(){var a=za.j/255,y=za.u/255,x=za.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ee=a=0;else{switch(E){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}Uc.j=Math.round(ee),Uc.u=Math.round(100*a),Uc.o=Math.round(100*b),Uc.F=za.F}function Lg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function mp(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function $p(a){return a>Xg?Math.pow(a,1/3):(rg*a+16)/116}function Yg(a){var y=a*a*a;return y>Xg?y:(116*a-16)/rg}function ig(a,y){typeof a!="string"&&(a instanceof Xo||Ot("Value for "+y+" must be a color string or a Brush, not "+a))}function vp(){Jg=Bs?new Mu(null,void 0,{willReadFrequently:!0}).context:null}An.Object.defineProperties(Xo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ii(this,a),this.na=a,this.start.Mc()&&(a===yf?this.start=wr:a===wd&&(this.start=Cr)),this.end.Mc()&&(a===yf?this.end=us:a===wd&&(this.end=Cr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ii(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ii(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ii(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ii(this,a),0>a&&xn(a,">= zero",Xo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ii(this,a),0>a&&xn(a,">= zero",Xo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ii(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ii(this,a),this.cr=a,this.xe=null}}}),Xo.prototype.isDark=Xo.prototype.Gx,Xo.prototype.darkenBy=Xo.prototype.Wy,Xo.prototype.lightenBy=Xo.prototype.Vz,Xo.prototype.addColorStop=Xo.prototype.addColorStop;var Xg=216/24389,rg=24389/27,og=[95.047,100,108.883],Jg=null,za=new xh,Uc=new xh,Au=new xh,jd=new xh,yp=!1;Xo.className="Brush";var Mf;Xo.Solid=Mf=new Bt(Xo,"Solid",0);var yf;Xo.Linear=yf=new Bt(Xo,"Linear",1);var wd;Xo.Radial=wd=new Bt(Xo,"Radial",2);var Sp;Xo.Pattern=Sp=new Bt(Xo,"Pattern",4);var xp;Xo.Lab=xp=new Bt(Xo,"Lab",5);var g1;Xo.HSL=g1=new Bt(Xo,"HSL",6),Xo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Xo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;yp||(vp(),yp=!0);var y=Jg;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)},Xo.lighten=function(a){return Lf(a)},Xo.lightenBy=Lf,Xo.darken=function(a){return Kg(a)},Xo.darkenBy=Kg,Xo.mix=Eh,Xo.isDark=$h;function Wl(){this.xa="Base"}Wl.prototype.measure=function(){},Wl.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Wl.prototype.arrange=function(){},Wl.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Wl.prototype.iA=function(a){a.Uj()},Wl.prototype.gc=function(){},An.Object.defineProperties(Wl.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Kn}}}),Wl.prototype.remeasureObject=Wl.prototype.iA,Wl.prototype.arrangeElement=Wl.prototype.Ly,Wl.prototype.measureElement=Wl.prototype.Yz,Wl.className="PanelLayout";function Xm(){this.xa="Base"}Tt(Xm,Wl),Xm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=Sf(a);for(var oe=0;oe<re;oe++){var se=E[oe];if(se.visible||se===a){var ue=se.margin,ge=ue.right+ue.left;ue=ue.top+ue.bottom,se.measure(y,x,z,ee);var ye=se.measuredBounds;ge=Math.max(ye.width+ge,0),ue=Math.max(ye.height+ue,0),ye=se.position.x;var Pe=se.position.y;isFinite(ye)||(ye=0),isFinite(Pe)||(Pe=0),se instanceof to&&se.isGeometryPositioned&&(se=se.strokeWidth/2,ye-=se,Pe-=se),os(b,ye,Pe,ge,ue)}}},Xm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],ee=z.measuredBounds,re=z.margin,oe=z.position.x,se=z.position.y;if(oe=isNaN(oe)?-a:oe-a,se=isNaN(se)?-x:se-x,z instanceof to&&z.isGeometryPositioned){var ue=z.strokeWidth/2;oe-=ue,se-=ue}z.visible&&z.arrange(oe+re.left,se+re.top,ee.width,ee.height)}};function Jm(){this.xa="Base"}Tt(Jm,Wl),Jm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=Ni(),z=Sf(a);for(var oe=0;oe<re;oe++){var se=E[oe];if(se.visible||se===z){var ue=ks(se,!1);if(ue!==fn&&ue!==Bi)y.push(se);else{se.measure(1/0,x,0,ee),ue=se.margin,se=se.measuredBounds;var ge=Math.max(se.height+ue.top+ue.bottom,0);b.width+=Math.max(se.width+ue.right+ue.left,0),b.height=Math.max(b.height,ge)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)oe=y[a],(oe.visible||oe===z)&&(ue=oe.margin,re=ue.right+ue.left,ue=ue.top+ue.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ue=Math.max(oe.height+ue,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,ue));qn(y)},Jm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?x.width:b.left,oe=0;oe<E;oe++){var se=z,ue=y[oe];if(ue.visible){var ge=ue.measuredBounds,ye=ue.margin,Pe=ye.top+ye.bottom,Fe=z+b.bottom,Te=ge.height,Je=ks(ue,!1);(isNaN(ue.desiredSize.height)&&Je===Pn||Je===nr)&&(Te=Math.max(x.height-Pe-Fe,0)),Pe=Te+Pe+Fe,Fe=ue.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=Cr),ee&&(re-=ge.width+ye.left+ye.right),ue.arrange(re+Fe.offsetX+ye.left,se+Fe.offsetY+ye.top+(x.height*Fe.y-Pe*Fe.y),ge.width,Te),ee||(re+=ge.width+ye.left+ye.right)}}};function Qm(){this.xa="Base"}Tt(Qm,Wl),Qm.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=Ni();for(var re=Sf(a),oe=0;oe<ee;oe++){var se=E[oe];if(se.visible||se===re){var ue=ks(se,!1);if(ue!==fn&&ue!==nr)x.push(se);else{var ge=se.margin;ue=ge.right+ge.left,ge=ge.top+ge.bottom,se.measure(y,1/0,z,0),se=se.measuredBounds,ys(b,Math.max(b.width,Math.max(se.width+ue,0)),b.height+Math.max(se.height+ge,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)oe=x[a],(oe.visible||oe===re)&&(se=oe.margin,ee=se.right+se.left,se=se.top+se.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,se=Math.max(oe.height+se,0),b.width=Math.max(b.width,Math.max(oe.width+ee,0)),b.height+=se);qn(x)}},Qm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?x.height:b.top,oe=0;oe<E;oe++){var se=z,ue=y[oe];if(ue.visible){var ge=ue.measuredBounds,ye=ue.margin,Pe=ye.left+ye.right,Fe=z+b.right,Te=ge.width,Je=ks(ue,!1);(isNaN(ue.desiredSize.width)&&Je===Pn||Je===Bi)&&(Te=Math.max(x.width-Pe-Fe,0)),Pe=Te+Pe+Fe,Fe=ue.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=Cr),ee&&(re-=ge.height+ye.bottom+ye.top),ue.arrange(se+Fe.offsetX+ye.left+(x.width*Fe.x-Pe*Fe.x),re+Fe.offsetY+ye.top,Te,ge.height),ee||(re+=ge.height+ye.bottom+ye.top)}}};function qm(){this.xa="Base"}Tt(qm,Wl),qm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),se=oe.margin,ue=se.right+se.left,ge=se.top+se.bottom;oe.measure(y,x,z,ee);var ye=oe.measuredBounds;z=ye.width,ee=ye.height;var Pe=Math.max(z+ue,0),Fe=Math.max(ee+ge,0),Te=a.isClipping,Je=qt.allocAt(-se.left,-se.top,Pe,Fe),Ze=qt.allocAt(0,0,z,ee);Tv(oe,Ze,!0),z=Ze.width,ee=Ze.height;for(var it=!0,lt=Sf(a),ft=0;ft<re;ft++){var St=E[ft];ye=y;var Vt=x;if(St!==oe&&(St.visible||St===lt)){se=St.margin;var mi=se.left,Vi=se.top;switch(Pe=se.right+se.left,Fe=se.top+se.bottom,se=ks(St,!1),se){case Pn:ye=z,Vt=ee,Vi=mi=Fe=Pe=0;break;case Bi:ye=z,mi=Pe=0;break;case nr:Vt=ee,Vi=Fe=0}St.measure(ye,Vt,0,0),ye=St.measuredBounds,Pe=Math.max(ye.width+Pe,0),Fe=Math.max(ye.height+Fe,0),se=St.alignment,se.Xb()&&(se=a.defaultAlignment),se.sb()||(se=Cr);var Fi=St.alignmentFocus;if(Fi.Xb()&&(Fi=Cr),Vt=null,St instanceof Kn&&St.$e!==""&&(Vt=St.fb(St.$e),Vt===St&&(Vt=null)),mi=Ze.x-mi,Vi=Ze.y-Vi,Vt!==null){for(St.arrange(0,0,ye.width,ye.height),ye=Vt.actualBounds,ye=Ue.allocAt(ye.x+(Fi.x*ye.width-Fi.offsetX),ye.y+(Fi.y*ye.height-Fi.offsetY)),Vt=Vt.panel;Vt!==St;)Vt.transform.Ga(ye),Vt=Vt.panel;mi+=se.x*z+se.offsetX-ye.x,Vi+=se.y*ee+se.offsetY-ye.y,Ue.free(ye)}else mi+=se.x*z+se.offsetX-(Fi.x*ye.width+Fi.offsetX),Vi+=se.y*ee+se.offsetY-(Fi.y*ye.height+Fi.offsetY);it?(it=!1,b.h(mi,Vi,Pe,Fe)):os(b,mi,Vi,Pe,Fe)}}switch(it?b.assign(Je):Te?b.Uu(Ze.x,Ze.y,Ze.width,Ze.height):os(b,Je.x,Je.y,Je.width,Je.height),qt.free(Je),qt.free(Ze),se=oe.stretch,se===pr&&(se=ks(oe,!1)),se){case fn:return;case Pn:if(!isFinite(y)&&!isFinite(x))return;break;case Bi:if(!isFinite(y))return;break;case nr:if(!isFinite(x))return}for(ye=oe.measuredBounds,z=ye.width,ee=ye.height,Pe=Math.max(z+ue,0),Fe=Math.max(ee+ge,0),se=oe.margin,Ze=qt.allocAt(-se.left,-se.top,Pe,Fe),Tv(oe,Ze,!0),z=Ze.width,ee=Ze.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==lt||(se=x.margin,Pe=se.right+se.left,Fe=se.top+se.bottom,ye=x.measuredBounds,Pe=Math.max(ye.width+Pe,0),Fe=Math.max(ye.height+Fe,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Cr),x=x.alignmentFocus,x.Xb()&&(x=Cr),it?(it=!1,b.h(ue.x*z+ue.offsetX-(x.x*ye.width+x.offsetX)-se.left,ue.y*ee+ue.offsetY-(x.y*ye.height+x.offsetY)-se.top,Pe,Fe)):os(b,ue.x*z+ue.offsetX-(x.x*ye.width+x.offsetX)-se.left,ue.y*ee+ue.offsetY-(x.y*ye.height+x.offsetY)-se.top,Pe,Fe));it?b.assign(Je):Te?b.Uu(Ze.x,Ze.y,Ze.width,Ze.height):os(b,Je.x,Je.y,Je.width,Je.height),qt.free(Ze)},qm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var se=z-x.x,ue=oe-x.y;for(b.arrange(se,ue,ee,re),ee=qt.allocAt(0,0,ee,re),Tv(b,ee,!1),re=0;re<E;re++){var ge=y[re];if(ge!==b){se=ge.measuredBounds;var ye=se.width,Pe=se.height;ue=ge.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Cr);var Fe=ge.alignmentFocus;if(Fe.Xb()&&(Fe=Cr),se=null,ge instanceof Kn&&ge.$e!==""&&(se=ge.fb(ge.$e),se===ge&&(se=null)),se!==null){var Te=se.actualBounds;for(Fe=Ue.allocAt(Te.x+(Fe.x*Te.width-Fe.offsetX),Te.y+(Fe.y*Te.height-Fe.offsetY)),se=se.panel;se!==ge;)se.transform.Ga(Fe),se=se.panel;se=ue.x*ee.width+ue.offsetX-Fe.x,ue=ue.y*ee.height+ue.offsetY-Fe.y,Ue.free(Fe)}else se=ue.x*ee.width+ue.offsetX-(Fe.x*ye+Fe.offsetX),ue=ue.y*ee.height+ue.offsetY-(Fe.y*Pe+Fe.offsetY);se+=ee.x-x.x,ue+=ee.y-x.y,ge.visible&&ge.arrange(z+se,oe+ue,ye,Pe)}}qt.free(ee)};function Tv(a,y,x){var E=null;if(a instanceof Kn&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function $m(){this.xa="Base"}Tt($m,Wl),$m.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),se=oe.margin,ue=y,ge=x,ye=se.right+se.left,Pe=se.top+se.bottom;oe.measure(y,x,z,ee),se=oe.measuredBounds;var Fe=0,Te=null;oe instanceof to&&(Te=oe,Fe=Te.strokeWidth*Te.scale);var Je=Math.max(se.width+ye,0);se=Math.max(se.height+Pe,0);var Ze=Wv(oe),it=Ze.x*Je+Ze.offsetX;Ze=Ze.y*se+Ze.offsetY;var lt=jv(oe),ft=lt.x*Je+lt.offsetX;for(lt=lt.y*se+lt.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(it-ft)-Fe,0)),isFinite(x)&&(ge=Math.max(Math.abs(Ze-lt)-Fe,0)),Fe=oi.alloc(),Fe.h(0,0),a=Sf(a),lt=0;lt<re;lt++)Ze=E[lt],Ze===oe||!Ze.visible&&Ze!==a||(se=Ze.margin,Je=se.right+se.left,it=se.top+se.bottom,Ze.measure(ue,ge,0,0),se=Ze.measuredBounds,Je=Math.max(se.width+Je,0),se=Math.max(se.height+it,0),Fe.h(Math.max(Je,Fe.width),Math.max(se,Fe.height)));if(re===1)b.width=Je,b.height=se,oi.free(Fe);else{switch(Ze=Wv(oe),lt=jv(oe),re=E=0,lt.x!==Ze.x&<.y!==Ze.y&&(E=Fe.width/Math.abs(lt.x-Ze.x),re=Fe.height/Math.abs(lt.y-Ze.y)),oi.free(Fe),Fe=0,Te!==null&&(Fe=Te.strokeWidth*Te.scale,Zv(Te)===Ci&&(E=re=Math.max(E,re))),E+=Math.abs(Ze.offsetX)+Math.abs(lt.offsetX)+Fe,re+=Math.abs(Ze.offsetY)+Math.abs(lt.offsetY)+Fe,Te=oe.stretch,Te===pr&&(Te=ks(oe,!1)),Te){case fn:ee=z=0;break;case Pn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Bi:isFinite(y)&&(E=y),ee=0;break;case nr:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,ee),b.width=oe.measuredBounds.width+ye,b.height=oe.measuredBounds.height+Pe}},$m.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=qt.alloc();z.h(0,0,1,1);var ee=E.margin,re=ee.left;ee=ee.top;var oe=a.padding,se=oe.left;oe=oe.top,E.arrange(se+re,oe+ee,b.width,b.height);var ue=Wv(E),ge=jv(E),ye=ue.y*b.height+ue.offsetY,Pe=ge.x*b.width+ge.offsetX;for(ge=ge.y*b.height+ge.offsetY,z.x=ue.x*b.width+ue.offsetX,z.y=ye,os(z,Pe,ge,0,0),z.x+=re+se,z.y+=ee+oe,b=0;b<x;b++)re=y[b],re!==E&&(se=re.measuredBounds,ee=re.margin,oe=Math.max(se.width+ee.right+ee.left,0),ue=Math.max(se.height+ee.top+ee.bottom,0),ye=re.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Cr),oe=z.width*ye.x+ye.offsetX-oe*ye.x+ee.left+z.x,ee=z.height*ye.y+ye.offsetY-ue*ye.y+ee.top+z.y,re.visible&&(rl(z.x,z.y,z.width,z.height,oe,ee,se.width,se.height)?re.arrange(oe,ee,se.width,se.height):re.arrange(oe,ee,se.width,se.height,new qt(z.x,z.y,z.width,z.height))));qt.free(z)};function e0(){this.xa="Base",this.name="Table"}Tt(e0,Wl),e0.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=Ni(),re=Ni(),oe=0;oe<z;oe++){var se=E[oe],ue=se instanceof Kn?se:null;if(ue!==null&&kf(ue)&&se.visible){re.push(ue);for(var ge=ue.O.s,ye=ge.length,Pe=0;Pe<ye;Pe++){var Fe=ge[Pe];ue.type===Kn.TableRow?Fe.row=se.row:ue.type===Kn.TableColumn&&(Fe.column=se.column),ee.push(Fe)}}else ee.push(se)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Te=[],Je=0;Je<z;Je++){var Ze=ee[Je];Ze.visible&&($e(Ze,!0),pt(Ze,!0),Te[Ze.row]||(Te[Ze.row]=[]),Te[Ze.row][Ze.column]||(Te[Ze.row][Ze.column]=[]),Te[Ze.row][Ze.column].push(Ze))}qn(ee);var it=Ni(),lt=Ni(),ft=Ni(),St={count:0},Vt={count:0},mi=y,Vi=x,Fi=a.rowDefs,$n=a.colDefs,Mn=null;z=Fi.length;for(var jr=0;jr<z;jr++)Mn=Fi[jr],Mn!==void 0&&(Mn.actual=0);z=$n.length;for(var Br=0;Br<z;Br++)Mn=$n[Br],Mn!==void 0&&(Mn.actual=0);for(var ia=Te.length,Ya=0,ql=0;ql<ia;ql++)Te[ql]&&(Ya=Math.max(Ya,Te[ql].length));var uu=Math.min(a.topIndex,ia-1),uc=Math.min(a.leftIndex,Ya-1),$l=0;ia=Te.length;for(var Gf=Sf(a),wl=0;wl<ia;wl++)if(Te[wl]){Ya=Te[wl].length;var Fh=a.Fb(wl);Fh.actual=0;for(var cc=Fh.oc=0;cc<Ya;cc++)if(Te[wl][cc]){var Hf=a.Eb(cc);it[cc]===void 0&&(Hf.actual=0,Hf.oc=0,it[cc]=!0);for(var md=Te[wl][cc],Hd=md.length,td=0;td<Hd;td++){var Yc=md[td];if(Yc.visible||Yc===Gf){var Sg=1<Yc.rowSpan||1<Yc.columnSpan;Sg&&(wl<uu||cc<uc||lt.push(Yc));var bh=Yc.margin,_p=bh.right+bh.left,nd=bh.top+bh.bottom,dc=Hc(Yc,Fh,Hf,!1),zm=Yc.desiredSize,lp=!isNaN(zm.height),zh=!isNaN(zm.width)&&lp;if(Sg||dc===fn||zh||wl<uu||cc<uc||(St[cc]!==void 0||dc!==Pn&&dc!==Bi||(St[cc]=-1,St.count++),Vt[wl]!==void 0||dc!==Pn&&dc!==nr||(Vt[wl]=-1,Vt.count++),ft.push(Yc)),Yc.measure(1/0,1/0,0,0),!(wl<uu||cc<uc)){var Xc=Yc.measuredBounds,jg=Math.max(Xc.width+_p,0),id=Math.max(Xc.height+nd,0);if(Yc.rowSpan===1&&(dc===fn||dc===Bi)){Mn=a.Fb(wl);var xg=Mn.Wc();$l=Math.max(id-Mn.actual,0),$l+xg>Vi&&($l=Math.max(Vi-xg,0));var wv=Mn.oa===0;Mn.oc=Mn.oc+$l,Mn.actual=Mn.oa+$l,Vi=Math.max(Vi-($l+(wv?xg:0)),0)}if(Yc.columnSpan===1&&(dc===fn||dc===nr)){Mn=a.Eb(cc);var Vm=Mn.Wc();$l=Math.max(jg-Mn.actual,0),$l+Vm>mi&&($l=Math.max(mi-Vm,0));var s1=Mn.oa===0;Mn.oc=Mn.oc+$l,Mn.actual=Mn.oa+$l,mi=Math.max(mi-($l+(s1?Vm:0)),0)}Sg&&Yc.Uj()}}}}}qn(it);var uf=0,Pf=0;z=a.columnCount;for(var up=0;up<z;up++){var Eg=$n[up];Eg!==void 0&&(uf+=isNaN(Eg.Hc)?Eg.oc:Eg.Hc,Eg.oc!==0&&(uf+=Eg.Wc()))}z=a.rowCount;for(var Hp=0;Hp<z;Hp++){var Pg=Fi[Hp];Pg!==void 0&&(Pf+=isNaN(Pg.Hc)?Pg.oc:Pg.Hc,Pg.oc!==0&&(Pf+=Pg.Wc()))}mi=Math.max(y-uf,0);var cf=Vi=Math.max(x-Pf,0),Zf=mi;z=ft.length;for(var Jc=0;Jc<z;Jc++){var Vh=ft[Jc],Cv=a.Fb(Vh.row),wf=a.Eb(Vh.column),Zp=Vh.measuredBounds,Bh=Vh.margin,zg=Bh.right+Bh.left,Gh=Bh.top+Bh.bottom;St[Vh.column]=wf.oc===0&&St[Vh.column]!==void 0?Math.max(Zp.width+zg,St[Vh.column]):null,Vt[Vh.row]=Cv.oc===0&&Vt[Vh.row]!==void 0?Math.max(Zp.height+Gh,Vt[Vh.row]):null}var cp=0,Up=0,ah;for(ah in Vt)ah!=="count"&&(cp+=Vt[ah]);for(ah in St)ah!=="count"&&(Up+=St[ah]);for(var bu=oi.alloc(),Gm=0;Gm<z;Gm++){var Ac=ft[Gm];if(Ac.visible||Ac===Gf){var Cl=a.Fb(Ac.row),Fc=a.Eb(Ac.column),Cf=0;isFinite(Fc.width)?Cf=Fc.width:(isFinite(mi)&&St[Ac.column]!==null?Up===0?Cf=Fc.actual+mi:Cf=St[Ac.column]/Up*Zf:St[Ac.column]!==null?Cf=mi:Cf=Fc.actual||mi,Cf=Math.max(0,Cf-Fc.Wc()));var Uf=0;switch(isFinite(Cl.height)?Uf=Cl.height:(isFinite(Vi)&&Vt[Ac.row]!==null?cp===0?Uf=Cl.actual+Vi:Uf=Vt[Ac.row]/cp*cf:Vt[Ac.row]!==null?Uf=Vi:Uf=Cl.actual||Vi,Uf=Math.max(0,Uf-Cl.Wc())),bu.h(Math.max(Fc.minimum,Math.min(Cf,Fc.maximum)),Math.max(Cl.minimum,Math.min(Uf,Cl.maximum))),dc=Hc(Ac,Cl,Fc,!1),dc){case Bi:bu.height=Math.max(bu.height,Cl.actual+Vi);break;case nr:bu.width=Math.max(bu.width,Fc.actual+mi)}var Vg=Ac.margin,l1=Vg.right+Vg.left,Av=Vg.top+Vg.bottom;Ac.Uj(),Ac.measure(bu.width,bu.height,Fc.minimum,Cl.minimum);var Kp=Ac.measuredBounds,Gg=Math.max(Kp.width+l1,0),dp=Math.max(Kp.height+Av,0);isFinite(mi)&&(Gg=Math.min(Gg,bu.width)),isFinite(Vi)&&(dp=Math.min(dp,bu.height));var Qc=0;Qc=Cl.actual,Cl.actual=Math.max(Cl.actual,dp),Cl.oc=Math.max(Cl.oc,dp),$l=Cl.actual-Qc,Vi=Math.max(Vi-$l,0),Vt[Ac.row]===null&&(cf=Math.max(cf-$l,0)),Qc=Fc.actual,Fc.actual=Math.max(Fc.actual,Gg),Fc.oc=Math.max(Fc.oc,Gg),$l=Fc.actual-Qc,mi=Math.max(mi-$l,0),St[Ac.column]===null&&(Zf=Math.max(Zf-$l,0))}}qn(ft);var Af=oi.alloc(),Dh=Ni(),Bd=Ni();if(z=lt.length,z!==0){for(var wg=0;wg<ia;wg++)if(Te[wg]){Ya=Te[wg].length;var Yp=a.Fb(wg);Dh[wg]=Yp.actual;for(var Cg=0;Cg<Ya;Cg++)if(Te[wg][Cg]){var Fv=a.Eb(Cg);Bd[Cg]=Fv.actual}}}for(var Xp=0;Xp<z;Xp++){var el=lt[Xp];if(el.visible||el===Gf){var sh=a.Fb(el.row),Zd=a.Eb(el.column);switch(bu.h(Math.max(Zd.minimum,Math.min(y,Zd.maximum)),Math.max(sh.minimum,Math.min(x,sh.maximum))),dc=Hc(el,sh,Zd,!1),dc){case Pn:Bd[Zd.index]!==0&&(bu.width=Math.min(bu.width,Bd[Zd.index])),Dh[sh.index]!==0&&(bu.height=Math.min(bu.height,Dh[sh.index]));break;case Bi:Bd[Zd.index]!==0&&(bu.width=Math.min(bu.width,Bd[Zd.index]));break;case nr:Dh[sh.index]!==0&&(bu.height=Math.min(bu.height,Dh[sh.index]))}isFinite(Zd.width)&&(bu.width=Zd.width),isFinite(sh.height)&&(bu.height=sh.height),Af.h(0,0);for(var bv=Zd.minimum,rd=sh.minimum,Kf=1;Kf<el.rowSpan&&!(el.row+Kf>=a.rowCount);Kf++)Mn=a.Fb(el.row+Kf),$l=0,$l=dc===Pn||dc===nr?Math.max(Mn.minimum,Dh[el.row+Kf]===0?Mn.maximum:Math.min(Dh[el.row+Kf],Mn.maximum)):Math.max(Mn.minimum,isNaN(Mn.Hc)?Mn.maximum:Math.min(Mn.Hc,Mn.maximum)),Af.height+=$l,rd+=Mn.minimum;for(var Ud=1;Ud<el.columnSpan&&!(el.column+Ud>=a.columnCount);Ud++)Mn=a.Eb(el.column+Ud),$l=0,$l=dc===Pn||dc===Bi?Math.max(Mn.minimum,Bd[el.column+Ud]===0?Mn.maximum:Math.min(Bd[el.column+Ud],Mn.maximum)):Math.max(Mn.minimum,isNaN(Mn.Hc)?Mn.maximum:Math.min(Mn.Hc,Mn.maximum)),Af.width+=$l,bv+=Mn.minimum;bu.width+=Af.width,bu.height+=Af.height;var Jp=el.margin,Ag=Jp.right+Jp.left,Hm=Jp.top+Jp.bottom;el.measure(bu.width,bu.height,bv,rd);for(var Qp=el.measuredBounds,Hh=Math.max(Qp.width+Ag,0),Hg=Math.max(Qp.height+Hm,0),Fg=0,qp=0;qp<el.rowSpan&&!(el.row+qp>=a.rowCount);qp++)Mn=a.Fb(el.row+qp),Fg+=Mn.total||0;if(Fg<Hg){var Yf=Hg-Fg,df=Hg-Fg;if(el.spanAllocation!==null)for(var Xf=el.spanAllocation,Ff=0;Ff<el.rowSpan&&!(0>=Yf)&&!(el.row+Ff>=a.rowCount);Ff++){Mn=a.Fb(el.row+Ff);var Jf=Mn.oa||0,Zg=Xf(el,Mn,df);Mn.actual=Math.min(Mn.maximum,Jf+Zg),Mn.oa!==Jf&&(Yf-=Mn.oa-Jf)}for(;0<Yf;){var Lh=Mn.oa||0;if(isNaN(Mn.height)&&Mn.maximum>Lh&&(Mn.actual=Math.min(Mn.maximum,Lh+Yf),Mn.oa!==Lh&&(Yf-=Mn.oa-Lh)),Mn.index===0)break;Mn=a.Fb(Mn.index-1)}}for(var hp=0,Qf=0;Qf<el.columnSpan&&!(el.column+Qf>=a.columnCount);Qf++)Mn=a.Eb(el.column+Qf),hp+=Mn.total||0;if(hp<Hh){var fp=Hh-hp,u1=Hh-hp;if(el.spanAllocation!==null)for(var bf=el.spanAllocation,Ug=0;Ug<el.columnSpan&&!(0>=fp)&&!(el.column+Ug>=a.columnCount);Ug++){Mn=a.Eb(el.column+Ug);var Zm=Mn.oa||0,c1=bf(el,Mn,u1);Mn.actual=Math.min(Mn.maximum,Zm+c1),Mn.oa!==Zm&&(fp-=Mn.oa-Zm)}for(;0<fp;){var Bv=Mn.oa||0;if(isNaN(Mn.width)&&Mn.maximum>Bv&&(Mn.actual=Math.min(Mn.maximum,Bv+fp),Mn.oa!==Bv&&(fp-=Mn.oa-Bv)),Mn.index===0)break;Mn=a.Eb(Mn.index-1)}}}}qn(lt),oi.free(Af),oi.free(bu),Dh!==void 0&&qn(Dh),Bd!==void 0&&qn(Bd);var gp=0,pp=0,Dv=a.desiredSize,Fx=a.maxSize;dc=ks(a,!0);var Um=Pf=uf=0,Km=0;z=a.columnCount;for(var Lv=0;Lv<z;Lv++)$n[Lv]!==void 0&&(Mn=a.Eb(Lv),isFinite(Mn.width)?(Um+=Mn.width,Um+=Mn.Wc()):c0(Mn)===im?(Um+=Mn.oa,Um+=Mn.Wc()):Mn.oa!==0&&(uf+=Mn.oa,uf+=Mn.Wc()));isFinite(Dv.width)?gp=Math.min(Dv.width,Fx.width):gp=dc!==fn&&isFinite(y)?y:uf,gp=Math.max(gp,a.minSize.width),gp=Math.max(gp-Um,0);for(var l5=uf===0?1:Math.max(gp/uf,1),Mv=0;Mv<z;Mv++)$n[Mv]!==void 0&&(Mn=a.Eb(Mv),isFinite(Mn.width)||c0(Mn)===im||(Mn.actual=Mn.oa*l5),Mn.position=b.width,Mn.oa!==0&&(b.width+=Mn.oa,b.width+=Mn.Wc()));z=a.rowCount;for(var kv=0;kv<z;kv++)Fi[kv]!==void 0&&(Mn=a.Fb(kv),isFinite(Mn.height)?(Km+=Mn.height,Km+=Mn.Wc()):c0(Mn)===im?(Km+=Mn.oa,Km+=Mn.Wc()):Mn.oa!==0&&(Pf+=Mn.oa,Pf+=Mn.Wc()));isFinite(Dv.height)?pp=Math.min(Dv.height,Fx.height):pp=dc!==fn&&isFinite(x)?x:Pf,pp=Math.max(pp,a.minSize.height),pp=Math.max(pp-Km,0);for(var u5=Pf===0?1:Math.max(pp/Pf,1),Nv=0;Nv<z;Nv++)Fi[Nv]!==void 0&&(Mn=a.Fb(Nv),isFinite(Mn.height)||c0(Mn)===im||(Mn.actual=Mn.oa*u5),Mn.position=b.height,Mn.oa!==0&&(b.height+=Mn.oa,b.height+=Mn.Wc()));z=re.length;for(var d1=0;d1<z;d1++){var Ym=re[d1],h1=0,f1=0;Ym.type===Kn.TableRow?(h1=b.width,Mn=a.Fb(Ym.row),f1=Mn.actual):(Mn=a.Eb(Ym.column),h1=Mn.actual,f1=b.height),Ym.measuredBounds.h(0,0,h1,f1),$e(Ym,!1)}qn(re),a.inRowsCols=Te},e0.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,se=ee.length,ue=0,ge=0;ge<se;ge++)ee[ge]&&(ue=Math.max(ue,ee[ge].length));oe=a.rowDefs,re=a.colDefs;var ye=ge=0,Pe=Math.min(a.topIndex,se-1);if(0<oe.length){for(;Pe!==se&&(oe[Pe]===void 0||oe[Pe].oa===0);)Pe++;Pe=Math.max(Math.min(Pe,se-1),0),ge=-oe[Pe].position}var Fe=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Fe!==ue&&(re[Fe]===void 0||re[Fe].oa===0);)Fe++;Fe=Math.max(Math.min(Fe,ue-1),0),ye=-re[Fe].position}for(var Te=0,Je=0;Te!==se&&oe[Te]===void 0;)Te++;for(;Je!==se&&re[Je]===void 0;)Je++;ue=a.part,a.Fb(Te),a.Eb(Je);for(var Ze=0;Ze<y.length;Ze++){var it=y[Ze];if(it instanceof Kn&&it.visible&&kf(it)){if(it.type===Kn.TableRow){re=a.Fb(it.row);var lt=a.Eb(Je)}else re=a.Fb(Te),lt=a.Eb(it.column);oe=re.position+ge+b,re.oa!==0&&(oe+=re.Io(Math.max(Te,Pe))),re=lt.position+ye+z,lt.oa!==0&&(re+=lt.Io(Math.max(Je,Fe))),lt=it.measuredBounds,it.Uk(),it.actualBounds.ka();var ft=it.actualBounds,St=qt.allocAt(ft.x,ft.y,ft.width,ft.height);ft.x=it.type===Kn.TableRow?z:re,ft.y=it.type===Kn.TableColumn?b:oe,ft.width=lt.width,ft.height=lt.height,it.actualBounds.freeze(),pt(it,!1),ws(St,ft)||ue===null||(ue.oh(),it.Pn(ue)),qt.free(St)}}for(Ze=oi.alloc(),it=0;it<se;it++)if(ee[it]){for(ue=ee[it].length,lt=a.Fb(it),oe=lt.position+ge+b,lt.oa!==0&&(oe+=lt.Io(Math.max(Te,Pe))),ft=0;ft<ue;ft++)if(ee[it][ft]){St=a.Eb(ft),re=St.position+ye+z,St.oa!==0&&(re+=St.Io(Math.max(Je,Fe)));for(var Vt=ee[it][ft],mi=Vt.length,Vi=0;Vi<mi;Vi++){var Fi=Vt[Vi],$n=Fi.measuredBounds;Ze.h(0,0);for(var Mn=1;Mn<Fi.rowSpan&&!(it+Mn>=a.rowCount);Mn++){var jr=a.Fb(it+Mn);jr.oa!==0&&(Ze.height+=jr.total)}for(Mn=1;Mn<Fi.columnSpan&&!(ft+Mn>=a.columnCount);Mn++)jr=a.Eb(ft+Mn),jr.oa!==0&&(Ze.width+=jr.total);var Br=St.oa+Ze.width,ia=lt.oa+Ze.height;Mn=re,jr=oe;var Ya=Br,ql=ia,uu=re,uc=oe,$l=Br,Gf=ia;re+Br>x.width&&($l=Math.max(x.width-re,0)),oe+ia>x.height&&(Gf=Math.max(x.height-oe,0));var wl=Fi.alignment;if(wl.Xb()){wl=a.defaultAlignment,wl.sb()||(wl=Cr);var Fh=wl.x,cc=wl.y,Hf=wl.offsetX;wl=wl.offsetY;var md=St.alignment,Hd=lt.alignment;md.sb()&&(Fh=md.x,Hf=md.offsetX),Hd.sb()&&(cc=Hd.y,wl=Hd.offsetY)}else Fh=wl.x,cc=wl.y,Hf=wl.offsetX,wl=wl.offsetY;(isNaN(Fh)||isNaN(cc))&&(cc=Fh=.5,wl=Hf=0),md=$n.width,Hd=$n.height;var td=Fi.margin,Yc=td.left+td.right,Sg=td.top+td.bottom,bh=Hc(Fi,lt,St,!1);!isNaN(Fi.desiredSize.width)||bh!==Pn&&bh!==Bi||(md=Math.max(Br-Yc,0)),!isNaN(Fi.desiredSize.height)||bh!==Pn&&bh!==nr||(Hd=Math.max(ia-Sg,0)),Br=Fi.maxSize,ia=Fi.minSize,md=Math.min(Br.width,md),Hd=Math.min(Br.height,Hd),md=Math.max(ia.width,md),Hd=Math.max(ia.height,Hd),Br=Hd+Sg,Mn+=Ya*Fh-(md+Yc)*Fh+Hf+td.left,jr+=ql*cc-Br*cc+wl+td.top,Fi.visible&&(rl(uu,uc,$l,Gf,Mn,jr,$n.width,$n.height)?Fi.arrange(Mn,jr,md,Hd):Fi.arrange(Mn,jr,md,Hd,new qt(uu,uc,$l,Gf)))}}}for(oi.free(Ze),a=0;a<E;a++)x=y[a],z=x instanceof Kn?x:null,z!==null&&kf(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function t0(){this.xa="Base"}Tt(t0,Wl),t0.prototype.measure=function(){},t0.prototype.arrange=function(){};function n0(){this.xa="Base"}Tt(n0,Wl),n0.prototype.measure=function(){},n0.prototype.arrange=function(){};function i0(){this.xa="Base"}Tt(i0,Wl),i0.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&Ot("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ee);var re=E.measuredBounds,oe=E.margin,se=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ue=E.scale,ge=re.width;re=re.height;var ye=Math.max(y-se,0),Pe=Math.max(x-oe,0),Fe=1;a.viewboxStretch===Ci?ge!==0&&re!==0&&(Fe=Math.min(ye/ge,Pe/re)):ge!==0&&re!==0&&(Fe=Math.max(ye/ge,Pe/re)),Fe===0&&(Fe=1e-4),E.Ca*=Fe,ue!==E.scale&&($e(E,!0),E.measure(1/0,1/0,z,ee))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+se,0),b.height=isFinite(x)?x:Math.max(re.height+oe,0)},i0.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=Cr),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-b*ee.y+ee.offsetY,E.width,E.height)};function em(){this.xa="Base"}Tt(em,Wl),em.prototype.measure=function(){},em.prototype.arrange=function(){},em.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,se=Math.ceil(re/b),ue=Math.ceil(oe/E),ge=a.gridOrigin,ye=ge.x;ge=ge.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Pe=[],Fe=a.O.s,Te=Fe.length,Je=0;Je<Te;Je++){var Ze=Fe[Je],it=[];if(Pe.push(it),Ze.visible){var lt=Ze.interval;if(!(0>lt)){Ze=Iv(Ze.figure);for(var ft=0;ft<Te;ft++)if(ft!==Je){var St=Fe[ft];St.visible&&Iv(St.figure)===Ze&&(St=St.interval,St>lt&&it.push(St))}}}}for(Fe=a.O.s,Te=Fe.length,Je=0;Je<Te;Je++){var Vt=Fe[Je];if(Vt.visible&&(it=Vt.interval||1,Ze=Math.abs(it),!(2>b*Ze*x))){if(lt=Vt.segmentIndex,(!isFinite(lt)||isNaN(lt))&&(lt=0),0>lt&&(lt=Ze-Math.min(-lt,Ze)),lt=Math.round(lt%Ze),Ze=Vt.opacity,ft=1,Ze!==1){if(Ze===0)continue;ft=y.globalAlpha,y.globalAlpha=ft*Ze}St=Pe[Je];var mi=!1,Vi=Vt.strokeDashArray;if(Vi!==null&&(mi=!0,y.js(Vi,Vt.strokeDashOffset)),Vt.figure==="LineV"&&Vt.stroke!==null&&0<Vt.strokeWidth){for(y.lineWidth=Vt.strokeWidth,Mo(a,y,Vt.stroke,!1,!1,z,ee),y.beginPath(),Vi=Vt=Math.floor((ye-b)/b);Vi<=Vt+se;Vi++){var Fi=Vi*b+ye;0<=Fi&&Fi<=re&&r0(Vi,it,lt,St)&&(y.moveTo(Fi,0),y.lineTo(Fi,oe))}y.stroke(),y.Se()}else if(Vt.figure==="LineH"&&Vt.stroke!==null&&0<Vt.strokeWidth){for(y.lineWidth=Vt.strokeWidth,Mo(a,y,Vt.stroke,!1,!1,z,ee),y.beginPath(),Vi=Vt=Math.floor((ge-E)/E);Vi<=Vt+ue;Vi++)Fi=Vi*E+ge,0<=Fi&&Fi<=oe&&r0(Vi,it,lt,St)&&(y.moveTo(0,Fi),y.lineTo(re,Fi));y.stroke(),y.Se()}else if(Vt.figure==="BarV"&&Vt.fill!==null)for(Mo(a,y,Vt.fill,!0,!1,z,ee),Vt=Vt.width,isNaN(Vt)&&(Vt=b),Fi=Vi=Math.floor((ye-b)/b);Fi<=Vi+se;Fi++){var $n=Fi*b+ye;0<=$n+Vt&&$n<=re&&r0(Fi,it,lt,St)&&y.fillRect($n,0,Vt,oe)}else if(Vt.figure==="BarH"&&Vt.fill!==null)for(Mo(a,y,Vt.fill,!0,!1,z,ee),Vt=Vt.height,isNaN(Vt)&&(Vt=E),Fi=Vi=Math.floor((ge-E)/E);Fi<=Vi+ue;Fi++)$n=Fi*E+ge,0<=$n+Vt&&$n<=oe&&r0(Fi,it,lt,St)&&y.fillRect(0,$n,re,Vt);mi&&y.fs(),Ze!==1&&(y.globalAlpha=ft)}}y.restore(),y.Vc(!1)};function r0(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function o0(){this.xa="Base"}Tt(o0,Wl),o0.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Jo||a instanceof ei){var ee=null,re=null;if(a instanceof ei&&(ee=a),a instanceof Jo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof ei){var oe=ee;if(z===0)ys(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var se=a instanceof Jo?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=oe.points,ge=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var ye=y.height,Pe=a.j;if(Pe.length=0,se!==null){p1(a,re,ye,se);var Fe=se.measuredBounds;x.ed(Fe),Pe.push(Fe)}Fe=Qr.alloc();for(var Te=Ue.alloc(),Je=Ue.alloc(),Ze=0;Ze<z;Ze++){var it=E[Ze];if(it!==se)if(it.isPanelMain&&it instanceof to){p1(a,re,ye,it);var lt=it.measuredBounds;x.ed(lt),Pe.push(lt)}else if(2>ge)it.measure(1/0,1/0,0,0),lt=it.measuredBounds,x.ed(lt),Pe.push(lt);else{var ft=it.segmentIndex,St=it.segmentFraction,Vt=it.alignmentFocus;Vt.Mc()&&(Vt=Cr);var mi=it.segmentOrientation,Vi=it.segmentOffset;if(isNaN(ft)){var Fi=oe.ua;lt=Ni(),Fi.Qu(St,lt);var $n=Ue.allocAt(lt[0],lt[1]);if($n.add(oe.i(0)),Fi.type===ni.j?$n.offset(-Fi.startX,-Fi.startY):(Fi=Fi.figures.first(),Fi!==null&&$n.offset(-Fi.startX,-Fi.startY)),Fi=lt[2],mi!==xc){var Mn=oe.computeAngle(it,mi,Fi);it.Kb=Mn}Mn=$n.x-y.x;var jr=$n.y-y.y;Ue.free($n),qn(lt)}else if(ft<-ge||ft>=ge)lt=Ue.alloc(),oe.vg(),oe.computeMidPoint(lt),Fi=oe.midAngle,mi!==xc&&(Mn=oe.computeAngle(it,mi,Fi),it.Kb=Mn),Mn=lt.x-y.x,jr=lt.y-y.y,Ue.free(lt);else{if(Mn=0,0<=ft?(jr=ue.M(ft),lt=ft<ge-1?ue.M(ft+1):jr):(Mn=ge+ft,jr=ue.M(Mn),lt=0<Mn?ue.M(Mn-1):jr),jr.Xa(lt)){0<=ft?(Fi=0<ft?ue.M(ft-1):jr,Mn=ft<ge-2?ue.M(ft+2):lt):(Fi=Mn<ge-1?ue.M(Mn+1):jr,Mn=1<Mn?ue.M(Mn-2):lt),$n=Fi.Bf(jr);var Br=lt.Bf(Mn);Fi=$n>Br+10?0<=ft?Fi.ab(jr):jr.ab(Fi):Br>$n+10?0<=ft?lt.ab(Mn):Mn.ab(lt):0<=ft?Fi.ab(Mn):Mn.ab(Fi)}else Fi=0<=ft?jr.ab(lt):lt.ab(jr);mi!==xc&&(Mn=oe.computeAngle(it,mi,Fi),it.Kb=Mn),Mn=jr.x+(lt.x-jr.x)*St-y.x,jr=jr.y+(lt.y-jr.y)*St-y.y}it.measure(1/0,1/0,0,0),lt=it.measuredBounds,$n=it.naturalBounds;var ia=0;it instanceof to&&(ia=it.strokeWidth),Br=$n.width+ia;var Ya=$n.height+ia;Fe.reset(),Fe.translate(-lt.x,-lt.y),Fe.scale(it.scale,it.scale),Fe.rotate(mi===xc?it.angle:Fi,Br/2,Ya/2),mi!==fm&&mi!==pm||Fe.rotate(90,Br/2,Ya/2),mi!==gm&&mi!==mm||Fe.rotate(-90,Br/2,Ya/2),mi===O0&&(45<Fi&&135>Fi||225<Fi&&315>Fi)&&Fe.rotate(-Fi,Br/2,Ya/2),$n=new qt(0,0,Br,Ya),Te.xi($n,Vt),Fe.Ga(Te),Vt=-Te.x+ia/2*it.scale,it=-Te.y+ia/2*it.scale,Je.assign(Vi),ia=isNaN(Vi.x);var ql=isNaN(Vi.y);if(ia||ql){Br=Br/2+3,Ya=Ya/2+3;var uu=45<=Fi&&135>=Fi,uc=225<=Fi&&315>=Fi;mi===xc&&(uu||uc)?(Je.x=ql?Br:Vi.y,Je.y=ia?Ya:Vi.x,uu?0<=ft||isNaN(ft)&&.5>St||!ia||(Je.y=-Ya):uc&&((0<=ft||isNaN(ft)&&.5>St)&&ia&&(Je.y=-Ya),ql&&(Je.x=-Br))):(ia&&(Je.x=0<=ft||isNaN(ft)&&.5>St?Br:-Br),ql&&(Je.y=-Ya),Je.rotate(Fi))}else Je.rotate(Fi);Mn+=Je.x,jr+=Je.y,$n.set(lt),$n.h(Mn+Vt,jr+it,lt.width,lt.height),Pe.push($n),x.ed($n)}}if(ee!==null)for(E=ee.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),ys(b,x.width||0,x.height||0),Qr.free(Fe),Ue.free(Te),Ue.free(Je)}}}},o0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Jo||a instanceof ei){var E=a,b=null;a instanceof Jo&&(b=a,E=b.adornedPart);var z=a instanceof Jo?null:E.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var se=y[oe];if(se!==z&&re<ee.length){var ue=ee[re];re++,se.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof ei)for(z=a.labelNodes;z.next();){var ge=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var ye=ee.alignmentFocus;if(se=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(re)){var Pe=ge.ua,Fe=Ni();Pe.Qu(oe,Fe);var Te=Ue.allocAt(Fe[0],Fe[1]);Te.add(ge.i(0)),Pe.type===ni.j||(Pe=Pe.figures.first()),Te.offset(-Pe.startX,-Pe.startY),Pe=Fe[2],se!==xc&&(ge=ge.computeAngle(ee,se,Pe),ee.angle=ge),ge=Te.x;var Je=Te.y;Ue.free(Te),qn(Fe)}else if(re<-x||re>=x)Fe=Ue.alloc(),Pe=ge,Je=Fe,Pe.vg(),Pe.computeMidPoint(Je),Pe=ge.midAngle,se!==xc&&(ge=ge.computeAngle(ee,se,Pe),ee.angle=ge),ge=Fe.x,Je=Fe.y,Ue.free(Fe);else{if(Te=0,0<=re?(Fe=y.s[re],Je=re<x-1?y.s[re+1]:Fe):(Te=x+re,Fe=y.s[Te],Je=0<Te?y.s[Te-1]:Fe),Fe.Xa(Je)){0<=re?(Pe=0<re?y.s[re-1]:Fe,Te=re<x-2?y.s[re+2]:Je):(Pe=Te<x-1?y.s[Te+1]:Fe,Te=1<Te?y.s[Te-2]:Je);var Ze=Pe.Bf(Fe),it=Je.Bf(Te);Pe=Ze>it+10?0<=re?Pe.ab(Fe):Fe.ab(Pe):it>Ze+10?0<=re?Je.ab(Te):Te.ab(Je):0<=re?Pe.ab(Te):Te.ab(Pe)}else Pe=0<=re?Fe.ab(Je):Je.ab(Fe);se!==xc&&(ge=ge.computeAngle(ee,se,Pe),ee.angle=ge),ge=Fe.x+(Je.x-Fe.x)*oe,Je=Fe.y+(Je.y-Fe.y)*oe}if(ye.ys())ee.location=new Ue(ge,Je);else{ye.Mc()&&(ye=Cr),Fe=Qr.alloc(),Fe.reset(),Fe.scale(ee.scale,ee.scale),Fe.rotate(ee.angle,0,0);var lt=ee.naturalBounds;Te=qt.allocAt(0,0,lt.width,lt.height),Ze=Ue.alloc(),Ze.xi(Te,ye),Fe.Ga(Ze),ye=-Ze.x,it=-Ze.y;var ft=lt.width,St=lt.height;lt=Ue.alloc(),lt.assign(ue);var Vt=isNaN(ue.x),mi=isNaN(ue.y);if(Vt||mi){ft=ft/2+3,St=St/2+3;var Vi=45<=Pe&&135>=Pe,Fi=225<=Pe&&315>=Pe;se===xc&&(Vi||Fi)?(lt.x=mi?ft:ue.y,lt.y=Vt?St:ue.x,Vi?0<=re||isNaN(re)&&.5>oe||!Vt||(lt.y=-St):Fi&&((0<=re||isNaN(re)&&.5>oe)&&Vt&&(lt.y=-St),mi&&(lt.x=-ft))):(Vt&&(lt.x=0<=re||isNaN(re)&&.5>oe?ft:-ft),mi&&(lt.y=-St),lt.rotate(Pe))}else lt.rotate(Pe);ge+=lt.x,Je+=lt.y,Fe.pp(Te),ye+=Te.x,it+=Te.y,re=Ue.allocAt(ge+ye,Je+it),ee.move(re),Ue.free(re),Ue.free(lt),Ue.free(Ze),qt.free(Te),Qr.free(Fe)}}b!==null?b.Ul(!1):E.Ul(!1),E=H1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Ue.free(E)}};function p1(a,y,x,E){if(et(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Jo&&a.type===Kn.Link&&a.adornedObject instanceof to&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof ei&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Jo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),$e(E,!1)}}function tm(){this.xa="Base"}Tt(tm,Wl),tm.prototype.measure=function(a,y,x,E,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,se=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var ge=re.measuredBounds,ye=new qt(-oe.left,-oe.top,Math.max(ge.width+se,0),Math.max(ge.height+ue,0));a.graduatedBounds.push(ye),b.assign(ye);for(var Pe=re.geometry,Fe=re.strokeWidth,Te=Pe.flattenedSegments,Je=Pe.flattenedLengths,Ze=Pe.flattenedTotalLength,it=Te.length,lt=0,ft=0,St=Ni(),Vt=0;Vt<it;Vt++){var mi=Te[Vt],Vi=[];ft=lt=0;for(var Fi=mi.length,$n=0;$n<Fi;$n+=2){var Mn=mi[$n],jr=mi[$n+1];if($n!==0){var Br=180*Math.atan2(jr-ft,Mn-lt)/Math.PI;0>Br&&(Br+=360),Vi.push(Br)}lt=Mn,ft=jr}St.push(Vi)}if(a.graduatedIntervals===null){for(var ia=[],Ya=a.O.s,ql=Ya.length,uu=0;uu<ql;uu++){var uc=Ya[uu],$l=[];if(ia.push($l),uc.visible){var Gf=uc.interval;if(!(0>Gf)){for(var wl=0;wl<ql;wl++)if(wl!==uu){var Fh=Ya[wl];if(Fh.visible&&uc.constructor===Fh.constructor){var cc=Fh.interval;cc>Gf&&$l.push(cc)}}}}}a.graduatedIntervals=ia}var Hf=a.graduatedIntervals,md=a.O.s,Hd=md.length,td=0,Yc=0,Sg=Ze;a.graduatedMarks=[];for(var bh,_p=0;_p<Hd;_p++){var nd=md[_p];if(bh=[],nd.visible&&nd!==re){var dc=Math.abs(nd.interval),zm=a.graduatedTickUnit;if(!(2>zm*dc*Ze/a.graduatedRange&&nd.graduatedSkip===null)){var lp=Je[0][0],zh=0,Xc=0;Yc=Ze*nd.graduatedStart-1e-4,Sg=Ze*nd.graduatedEnd+1e-4;var jg=zm*dc,id=a.graduatedTickBase;if(id<a.graduatedMin){var xg=(a.graduatedMin-id)/jg;xg=xg%1===0?xg:Math.floor(xg+1),id+=xg*jg}else id>a.graduatedMin+jg&&(id-=Math.floor((id-a.graduatedMin)/jg)*jg);for(var wv=Hf[_p],Vm=id,s1=1e-6*a.graduatedMax,uf=1;id<=a.graduatedMax+s1;uf++){e:{for(var Pf=wv.length,up=0;up<Pf;up++){var Eg=(id-a.graduatedTickBase)%(wv[up]*a.graduatedTickUnit),Hp=1e-6*a.graduatedTickUnit;if(Eg<Hp&&Eg>-Hp){var Pg=!1;break e}}Pg=!0}if(Pg&&(id>a.graduatedMax&&(id=a.graduatedMax),nd.graduatedSkip===null||nd instanceof Ja&&!nd.graduatedSkip(id,nd)||nd instanceof to&&!nd.graduatedSkip(id,nd))&&(td=(id-a.graduatedMin)*Ze/a.graduatedRange,td>Ze&&(td=Ze),Yc<=td&&td<=Sg)){for(var cf=St[zh][Xc],Zf=Je[zh][Xc];zh<Je.length;){for(;td>lp&&Xc<Je[zh].length-1;)Xc++,cf=St[zh][Xc],Zf=Je[zh][Xc],lp+=Zf;if(td<=lp)break;zh++,Xc=0,cf=St[zh][Xc],Zf=Je[zh][Xc],lp+=Zf}var Jc=Te[zh],Vh=Jc[2*Xc],Cv=Jc[2*Xc+1],wf=(td-(lp-Zf))/Zf,Zp=new Ue(Vh+(Jc[2*Xc+2]-Vh)*wf+Fe/2-Pe.bounds.x,Cv+(Jc[2*Xc+3]-Cv)*wf+Fe/2-Pe.bounds.y);Zp.scale(re.scale,re.scale);e:{var Bh=cf,zg=St[zh];if(!(.5005>wf&&.4995<wf)){var Gh=Bh;if(.5>wf?0<Xc?Gh=zg[Xc-1]:At.$(Jc[0],Jc[Jc.length-2])&&At.$(Jc[1],Jc[Jc.length-1])&&(Gh=zg[zg.length-1]):.5<wf&&(Xc+1<zg.length?Gh=zg[Xc+1]:At.$(Jc[0],Jc[Jc.length-2])&&At.$(Jc[1],Jc[Jc.length-1])&&(Gh=zg[0])),Bh!==Gh){var cp=Math.abs(Bh-Gh);if(180<cp&&(Bh<Gh?Bh+=360:Gh+=360,cp=Math.abs(Bh-Gh)),5e-4>wf||.9995<wf){cf=(Bh+Gh)/2%360;break e}if(10>cp){var Up=1-Math.abs(.5-wf);cf=(Bh*Up+Gh*(1-Up))%360;break e}}}cf=Bh}if(nd instanceof Ja){var ah="";nd.graduatedFunction!==null?(ah=nd.graduatedFunction(id,nd),ah=ah!=null?ah.toString():""):ah=(+id.toFixed(2)).toString(),ah!==""&&bh.push({$l:Zp,angle:cf,text:ah})}else bh.push({$l:Zp,angle:cf})}id=Vm+uf*jg}}}a.graduatedMarks.push(bh)}qn(St);var bu=a.graduatedMarks;if(bu!==null)for(var Gm=E.length,Ac=0;Ac<Gm;Ac++){var Cl=E[Ac],Fc=bu[Ac];if(Cl.visible&&Cl!==re&&Fc.length!==0){if(Cl instanceof to){var Cf=a,Uf=b,Vg=Cl.alignmentFocus;Vg.Mc()&&(Vg=wr);var l1=Cl.angle;Cl.Kb=0,Cl.measure(1/0,1/0,0,0),Cl.Kb=l1;var Av=Cl.measuredBounds,Kp=Av.width,Gg=Av.height,dp=qt.allocAt(0,0,Kp,Gg),Qc=Ue.alloc();Qc.xi(dp,Vg),qt.free(dp);for(var Af=-Qc.x,Dh=-Qc.y,Bd=new qt,wg=Fc.length,Yp=0;Yp<wg;Yp++)for(var Cg=Fc[Yp],Fv=Cg.$l.x,Xp=Cg.$l.y,el=Cg.angle,sh=0;4>sh;sh++){switch(sh){case 0:Qc.h(Af,Dh);break;case 1:Qc.h(Af+Kp,Dh);break;case 2:Qc.h(Af,Dh+Gg);break;case 3:Qc.h(Af+Kp,Dh+Gg)}Qc.rotate(el+Cl.angle),Qc.offset(Fv,Xp),Yp===0&&sh===0?Bd.h(Qc.x,Qc.y,0,0):Bd.Ye(Qc),Qc.offset(-Fv,-Xp),Qc.rotate(-el-Cl.angle)}Ue.free(Qc),Cf.graduatedBounds!==null&&Cf.graduatedBounds.push(Bd),os(Uf,Bd.x,Bd.y,Bd.width,Bd.height)}else if(Cl instanceof Ja){var Zd=a,bv=b;Zd.temporaryTextBlock===null&&(Zd.temporaryTextBlock=new Ja);var rd=Zd.temporaryTextBlock;L1(rd,Cl);var Kf=Cl.alignmentFocus;Kf.Mc()&&(Kf=wr);for(var Ud=Cl.segmentOrientation,Jp=Cl.segmentOffset,Ag=new qt,Hm=0,Qp=0,Hh=0,Hg=0,Fg=0,qp=Fc.length,Yf=0;Yf<qp;Yf++){var df=Fc[Yf];Hm=df.$l.x,Qp=df.$l.y,Hh=df.angle,Fg=Hg=Cl.angle,Ud!==xc&&(Fg=Ud===hm||Ud===T0?Hh+Cl.angle:Hh,Hg=ei.computeAngle(Ud,Fg)),rd.Kb=Hg,rd.text=df.text||"",rd.measure(1/0,1/0,0,0);var Xf=rd.measuredBounds,Ff=rd.naturalBounds,Jf=Ff.width,Zg=Ff.height,Lh=Qr.alloc();Lh.reset(),Lh.translate(-Xf.x,-Xf.y),Lh.scale(rd.scale,rd.scale),Lh.rotate(Fg,Jf/2,Zg/2),Ud!==fm&&Ud!==pm||Lh.rotate(90,Jf/2,Zg/2),Ud!==gm&&Ud!==mm||Lh.rotate(-90,Jf/2,Zg/2),Ud===O0&&(45<Hh&&135>Hh||225<Hh&&315>Hh)&&Lh.rotate(-Hh,Jf/2,Zg/2);var hp=qt.allocAt(0,0,Jf,Zg),Qf=Ue.alloc();Qf.xi(hp,Kf),Lh.Ga(Qf);var fp=-Qf.x,u1=-Qf.y,bf=Ue.alloc();bf.assign(Jp),isNaN(bf.x)&&(bf.x=Jf/2+3),isNaN(bf.y)&&(bf.y=-(Zg/2+3)),bf.rotate(Hh),Hm+=bf.x+fp,Qp+=bf.y+u1;var Ug=new qt(Hm,Qp,Xf.width,Xf.height),Zm=new qt(Xf.x,Xf.y,Xf.width,Xf.height),c1=new qt(Ff.x,Ff.y,Ff.width,Ff.height);df.Sz=Hg,df.lineCount=rd.lineCount,df.lines=[rd.Cb,rd.Ih,rd.df,rd.Le,rd.Qc,rd.Qb,rd.ze],df.actualBounds=Ug,df.measuredBounds=Zm,df.naturalBounds=c1,Yf===0?Ag.assign(Ug):Ag.ed(Ug),Ue.free(bf),Ue.free(Qf),qt.free(hp),Qr.free(Lh)}Zd.graduatedBounds!==null&&Zd.graduatedBounds.push(Ag),os(bv,Ag.x,Ag.y,Ag.width,Ag.height)}$e(Cl,!1)}}},tm.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,se=0;se<oe;se++){var ue=y[se];re=b[se],ue.visible&&ue!==E&&re.length!==0&&(re=z[ee],ee++,ue.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},tm.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof fa,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,se=a.graduatedMarks,ue=oe.length,ge=0;ge<ue;ge++){var ye=oe[ge],Pe=se[ge],Fe=Pe.length;if(ye.visible&&ye!==z&&Pe.length!==0){if(ye instanceof to){if(!(2>a.graduatedTickUnit*ye.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&ye.graduatedSkip===null)){var Te=ye.measuredBounds,Je=ye.strokeWidth*ye.scale,Ze=ye.alignmentFocus;Ze.Mc()&&(Ze=wr);for(var it=0;it<Fe;it++){var lt=Pe[it].$l,ft=Pe[it].angle,St=Ze,Vt=ye.Ab;Vt.reset(),Vt.translate(lt.x+re.x,lt.y+re.y),Vt.rotate(ft+ye.angle,0,0),Vt.translate(-Te.width*St.x+St.offsetX+Je/2,-Te.height*St.y+St.offsetY+Je/2),Vt.scale(ye.scale,ye.scale),be(ye,!1),ye.wh.set(ye.Ab),ye.Kk=ye.scale,je(ye,!1),ye.gc(y,x),b&&(a.svg.appendChild(ye.svg),ye.svg=null),ye.Ab.reset()}}}else if(ye instanceof Ja)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ja),Te=a.temporaryTextBlock,L1(Te,ye),Je=0;Je<Fe;Je++)Ze=Pe[Je],Ze.actualBounds&&Ze.measuredBounds&&Ze.naturalBounds&&(Te.ec=Ze.text||"",Te.Kb=Ze.Sz||0,Te.Gc=Ze.lineCount||0,it=Ze.lines,it!==void 0&&(Te.Cb=it[0],Te.Ih=it[1],Te.df=it[2],Te.Le=it[3],Te.Qc=it[4],Te.Qb=it[5],Te.ze=it[6]),Ze.naturalBounds&&(Te.dc=Ze.naturalBounds),Ze.actualBounds&&(it=Ze.actualBounds,Te.arrange(it.x,it.y,it.width,it.height)),it=Ze.actualBounds,Te.arrange(it.x,it.y,it.width,it.height),lt=Ze.measuredBounds,Ze=Ze.naturalBounds,ft=Te.Ab,ft.reset(),ft.translate(it.x+re.x,it.y+re.y),ft.translate(-lt.x,-lt.y),Te.no(ft,Ze.x,Ze.y,Ze.width,Ze.height),be(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,je(Te,!1),Te.Ng=ye.part,Te.Me=ye.panel,Te.gc(y,x),Te.Me=null,Te.Ng=null,b&&(a.svg.appendChild(Te.svg),Te.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function Kn(a,y){if(gt.call(this),this.na=null,a===void 0)this.na=Kn.Position;else if(typeof a=="string"){var x=eh.I(a);x!==null&&(this.na=x)}else a instanceof Wl?this.na=a:a&&(this.na=Kn.Position,y=a);this.na===null&&Ot("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Kn.Grid?1048576:0),this.O=new tn,this.yb=bc,this.Tm=Dl,this.Uf=pr,this.$g=null,this.$e="",this.jg=new qt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ci,this.jn=sa,this.kn=fo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Tt(Kn,gt),Kn.prototype.cloneProtected=function(a){gt.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},Kn.prototype.Af=function(a){gt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},Kn.prototype.copy=function(){var a=gt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof xi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Jn,"elements",a,null,b,null,ee)}}return a}return null},Be=Kn.prototype,Be.toString=function(){return"Panel("+this.type.name+")#"+ur(this)},Be.Pn=function(a){gt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Be.hh=function(a,y){if(this.na===Kn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Kn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Kn.Table)if(a.yc(),a instanceof fa){var x=a.yd;a.yd=hd(a,"gojs-ts"),Ov(this,a),a.nh.pop(),a.yd=x}else Ov(this,a);(x=this.isClipping&&this.na===Kn.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function Ov(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&a0(a,y,!0,x,!0),E!==null&&a0(a,y,!1,E,!0),x!==null&&m1(a,y,!0,x),E!==null&&m1(a,y,!1,E),x!==null&&a0(a,y,!0,x,!1),E!==null&&a0(a,y,!1,E,!1)}function m1(a,y,x,E){for(var b=E.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var se=E[oe];if(se!==void 0&&se.actual!==0)if(re)re=!1;else{if(x){if(se.position>ee.height)continue}else if(se.position>ee.width)continue;var ue=se.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ge=se.separatorStroke;if(ge===null&&(ge=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&ge!==null){Mo(a,y,ge,!1,!1,ee,z),ge=!1;var ye=se.separatorDashArray;ye===null&&(ye=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),ye!==null&&(ge=!0,y.js(ye,0)),y.beginPath(),ye=se.position+ue,x?ye>ee.height&&(ue-=ye-ee.height):ye>ee.width&&(ue-=ye-ee.width),se=se.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(se+=ue.top,ye=ee.width-ue.right,y.moveTo(ue.left,se),y.lineTo(ye,se)):(se+=ue.left,ye=ee.height-ue.bottom,y.moveTo(se,ue.top),y.lineTo(se,ye)),y.stroke(),y.Se(),ge&&y.fs()}}}}function a0(a,y,x,E,b){for(var z=E.length,ee=a.actualBounds,re=a.naturalBounds,oe=v1(a,!0),se=v1(a,!1),ue=0;ue<z;ue++){var ge=E[ue];if(ge!==void 0&&ge.background!==null&&ge.coversSeparators!==b&&ge.actual!==0){var ye=x?ee.height:ee.width;if(!(ge.position>ye)){var Pe=ge.Wc(),Fe=ge.separatorStrokeWidth;isNaN(Fe)&&(Fe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Te=ge.separatorStroke;Te===null&&(Te=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Te===null||ge.index===(x?oe:se))&&(Fe=0),Pe-=Fe,Fe=ge.position+Fe,Pe+=ge.actual,Fe+Pe>ye&&(Pe=ye-Fe),0>=Pe||(ye=a.yb,Mo(a,y,ge.background,!0,!1,re,ee),x?y.fillRect(ye.left,Fe+ye.top,ee.width-(ye.left+ye.right),Pe):y.fillRect(Fe+ye.left,ye.top,Pe,ee.height-(ye.top+ye.bottom)))}}}}function v1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function Iv(a){return a==="LineV"||a==="BarV"}Be.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Be.kk=function(a,y,x){if(!gt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Kn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,Ov(this,a),a.yd=null;else if(this.na===Kn.Grid||this.na===Kn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},Be.nk=function(){return!0},Be.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else gt.prototype.$o.call(this,a,y,x,E)},Be.Sj=function(a,y,x,E,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,se=-ee.m12*re,ue=-ee.m21*re,ge=ee.m11*re,ye=re*(ee.m21*ee.dy-ee.m22*ee.dx),Pe=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,At.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*ue+ye,re=a*se+y*ge+Pe,a=x*oe+E*ue+ye,oe=x*se+E*ge+Pe,b.h(0,0),x=this.naturalBounds,z=At.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,ue=se=0,ge=1,Pe=ye=0),re=a*oe+y*ue+ye,a=a*se+y*ge+Pe,oe=x*oe+E*ue+ye,x=x*se+E*ge+Pe,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),se=!1,ge=this.O.s,Pe=ge.length,ue=Ue.alloc(),ye=null,y=1/0;var Fe=null,Te=this.isClipping&&this.na===Kn.Spot;Te&&(Fe=Ue.alloc(),ye=this.Pb(),(se=ye.Sj(re,a,oe,x,Fe))&&(y=(re-Fe.x)*(re-Fe.x)+(a-Fe.y)*(a-Fe.y)));for(var Je=0;Je<Pe;Je++){var Ze=ge[Je];Ze.visible&&Ze!==ye&&Ze.Sj(re,a,oe,x,ue)&&(se=!0,Ze=(re-ue.x)*(re-ue.x)+(a-ue.y)*(a-ue.y),Ze<E&&(E=Ze,b.set(ue)))}return Te&&(y>E&&b.set(Fe),Ue.free(Fe)),Ue.free(ue),z&&b.transform(ee),se},Be.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();gt.prototype.Gj.call(this)},Be.v=function(a){if(!et(this)){gt.prototype.v.call(this,a),a=null,(this.na===Kn.Auto||this.na===Kn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=ks(b,!1);(b instanceof Sc||b instanceof Kn||b instanceof Ja||z!==fn)&&b.v(!0)}}}},Be.Uj=function(){if(!et(this)){$e(this,!0),pt(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Be.Uk=function(){if(!(this.l&2048)){be(this,!0),je(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Be.Wu=function(){je(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Be.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,E=ee.height),x=Math.max(x,ee.width),E=Math.max(E,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var se=this.O.s;se.length!==0&&this.na.measure(this,a,y,se,b,x,E),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(E,oe),ys(b,a,oe),ys(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Be.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function Sf(a){return a.part!==null?a.part.locationObject:null}Be.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=ks(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===E&&(a=fn),a){case fn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Pn:this.v(!0),this.measure(x+re,E+ee,0,0);break;case Bi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case nr:this.v(!0),this.measure(y+re,E+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Be.gh=function(a){var y=this.naturalBounds,x=Sf(this);if(rl(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Ue.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Ro(b.set(a),z.transform),z.ca(b)))return Ue.free(b),!0}return Ue.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Be.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},Be.qm=function(a,y){if(y(this,a),a instanceof Kn){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Mg(a,y){y1(a,a,y)}function y1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof Kn&&y1(a,z,x)}}function Bx(a,y){S1(a,a,y)}function S1(a,y,x){if(x(y),y instanceof Kn){y=y.O.s;for(var E=y.length,b=0;b<E;b++)S1(a,y[b],x)}}Be.Nl=function(a){return x1(this,this,a)};function x1(a,y,x){if(x(y))return y;if(y instanceof Kn){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=x1(a,y[b],x);if(z!==null)return z}}return null}Be.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=nm(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof Kn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function E1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof Kn?x=Math.max(x,E1(b)):b instanceof to&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Be.se=function(){return!(this.type===Kn.TableRow||this.type===Kn.TableColumn)};function kf(a){return a.type===Kn.TableRow||a.type===Kn.TableColumn}Be.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ct(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:Ro(Ue.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,se=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),se=oe/2),rl(-(se*b),-(se*b),E.width+oe*b,E.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var ue=b.length;if(re=Ue.alloc(),se=(oe=this.isClipping&&this.na===Kn.Spot)?this.Pb():null,oe&&(se.se()?Ro(re.set(a),se.transform):re.set(a),!se.ca(re)))return Ue.free(re),z||Ue.free(ee),null;for(var ge=Sf(this);ue--;){var ye=b[ue];if((ye.visible||ye===ge)&&(ye.se()?Ro(re.set(a),ye.transform):re.set(a),!oe||ye!==se)){var Pe=null;if(ye instanceof Kn?Pe=ye.ic(re,y,x):ye.pickable===!0&&ye.ca(re)&&(Pe=ye),Pe!==null&&(y!==null&&(Pe=y(Pe)),Pe!==null&&(x===null||x(Pe))))return Ue.free(re),z||Ue.free(ee),Pe}}Ue.free(re)}return this.background===null&&this.areaBackground===null?(z||Ue.free(ee),null):(a=rl(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||Ue.free(ee),a)}return z||Ue.free(ee),null},Be.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),ee=z?a:Ro(Ue.allocAt(a.x,a.y),this.transform);if(b=rl(0,0,b.width,b.height,ee.x,ee.y),kf(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,se=Ue.alloc(),ue=Sf(this);oe--;){var ge=re[oe];if(ge.visible||ge===ue){ge.se()?Ro(se.set(a),ge.transform):se.set(a);var ye=ge;ge=ge instanceof Kn?ge:null,(ge!==null?ge.ji(se,y,x,E):ye.ca(se))&&ye.pickable!==!1&&(y!==null&&(ye=y(ye)),ye===null||x!==null&&!x(ye)||E.add(ye))}}Ue.free(se)}return z||Ue.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||Ue.free(ee),!1},Be.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Qr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Rv(this,y,x,b),z===void 0&&Qr.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=Sf(this),oe=this.O.s,se=oe.length;se--;){var ue=oe[se];if(ue.visible||ue===re){var ge=ue.actualBounds,ye=this.naturalBounds;ge.x>ye.width||ge.y>ye.height||0>ge.x+ge.width||0>ge.y+ge.height||(ge=ue,ue=ue instanceof Kn?ue:null,ye=Qr.alloc(),ye.set(ee),(ue!==null?ue.Cf(a,y,x,E,b,ye):rs(ge,a,E,ye))&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge)),Qr.free(ye))}}return z===void 0&&Qr.free(ee),E}return z===void 0&&Qr.free(ee),!1};function Rv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Kn&&Rv(ee,y,x,E),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||E.add(ee))}}}Be.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:Ro(Ue.allocAt(a.x,a.y),this.transform),se=re?y:Ro(Ue.allocAt(y.x,y.y),this.transform),ue=oe.Bf(se),ge=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||Ho(oe.x,oe.y,0,0,0,ee.height)<=ue||Ho(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||Ho(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||Ho(oe.x,oe.y,ee.width,0,0,0)<=ue;if(ee=oe.zd(0,0)<=ue&&oe.zd(0,ee.height)<=ue&&oe.zd(ee.width,0)<=ue&&oe.zd(ee.width,ee.height)<=ue,re||(Ue.free(oe),Ue.free(se)),ge){if(!this.isAtomic){oe=Ue.alloc(),se=Ue.alloc(),ue=Sf(this);for(var ye=this.O.s,Pe=ye.length;Pe--;){var Fe=ye[Pe];if(Fe.visible||Fe===ue){var Te=Fe.actualBounds,Je=this.naturalBounds;(!re||!(Te.x>Je.width||Te.y>Je.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(Fe.se()?(Te=Fe.transform,Ro(oe.set(a),Te),Ro(se.set(y),Te)):(oe.set(a),se.set(y)),Te=Fe,Fe=Fe instanceof Kn?Fe:null,(Fe!==null?Fe.og(oe,se,x,E,b,z):Te.tx(oe,se,b))&&(x!==null&&(Te=x(Te)),Te===null||E!==null&&!E(Te)||z.add(Te)))}}Ue.free(oe),Ue.free(se)}return b?ge:ee}return!1};function Wv(a){var y=null;return a instanceof to&&(y=a.spot1,y===Dl&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ra),y}function jv(a){var y=null;return a instanceof to&&(y=a.spot2,y===Dl&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=tu),y}Be.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},Be.M=function(a){return this.O.M(a)},Be.Gb=function(a,y){y instanceof or&&Ot("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ot("Cannot make a Panel contain itself: "+this.toString()),Ot("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ot("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!==Kn.Grid||y instanceof to||Ot("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Kn.Graduated||y instanceof to||y instanceof Ja||Ot("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new ti),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else Ot("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),et(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Kn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||l0(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof xi&&(x.Te=!0),x.Te&&x instanceof xi&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(gi,"elements",this,y,null,E,null),x.cb(Jn,"elements",this,null,y,null,a)))};function zv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Be.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},Be.mb=function(a){0<=a&&this.pc(a,!0)},Be.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),$e(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof xi&&(E instanceof Kn?E.qm(E,function(ee,re){uy(z,re,y)}):uy(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(gi,"elements",this,E,null,a,null))},Be.Fb=function(a){0>a&&xn(a,">= 0",Kn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new kl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Jn,"rowdefs",this,null,x,null,a)}return y[a]},Be.oA=function(a){if(0>a&&xn(a,">= 0",Kn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(gi,"rowdefs",this,x,null,a,null),this.v()}}};function P1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof kl?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Be.Eb=function(a){0>a&&xn(a,">= 0",Kn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new kl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Jn,"coldefs",this,null,x,null,a)}return y[a]},Be.jA=function(a){if(0>a&&xn(a,">= 0",Kn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(gi,"coldefs",this,x,null,a,null),this.v()}}};function w1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof kl?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Be.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&u0(y,a),this},Be.Hy=function(a,y){return(a=this.Fb(a))&&u0(a,new kl(y)),this},Be.By=function(a,y){return(a=this.Eb(a))&&u0(a,new kl(y)),this},Be.nz=function(a){if(0>a||this.type!==Kn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Be.fz=function(a){if(0>a||this.type!==Kn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Be.Fz=function(a,y){if(y===void 0&&(y=new Ue(NaN,NaN)),this.type!==Kn.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)},Be.Gz=function(a){if(this.type!==Kn.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 zd(a){var y=a.allBindings;if(y===null)a.data!==null&&Ot("Template cannot have .data be non-null: "+a),a.allBindings=y=new tn;else if(y._isFrozen)return;var x=new tn;zv(a,!1),a.qm(a,function(se,ue){ue.th();var ge=ue.localBindings;if(ge!==null)for(Se(ue,!1),ge=ge.iterator;ge.next();){var ye=ge.value;ye.mode===Cm&&Se(ue,!0);var Pe=ye.sourceName;Pe!==null&&(Pe==="/"&&zv(se,!0),Pe=WS(ye,se,ue),Pe!==null&&(x.add(Pe),Pe.srcBindings===null&&(Pe.srcBindings=new tn),Pe.srcBindings.add(ye))),y.add(ye)}if(ue instanceof Kn&&ue.type===Kn.Table){if(0<ue.rowCount){for(se=ue.rowDefs,ge=se.length,ye=0;ye<ge;ye++)if(Pe=se[ye],Pe!==void 0&&Pe.be!==null)for(var Fe=Pe.be.iterator;Fe.next();){var Te=Fe.value;Te.xd=Pe,Te.to=2,Te.wl=Pe.index,y.add(Te)}}if(0<ue.columnCount){for(ue=ue.colDefs,se=ue.length,ge=0;ge<se;ge++)if(ye=ue[ge],ye!==void 0&&ye.be!==null)for(Pe=ye.be.iterator;Pe.next();)Fe=Pe.value,Fe.xd=ye,Fe.to=1,Fe.wl=ye.index,y.add(Fe)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Se(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new tn),b.localBindings.add(ee)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Kn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):jn('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof kl?(ee=ur(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof gt?(ee=ur(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):Ot("Unknown type of binding target: "+z)}y.freeze(),a instanceof or&&a.Zc()&&a.Va()}Be.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Bx(y,function(x){x instanceof Kn&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&zd(y),y},Be.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof Kn))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Be.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Dx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof Kn&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var ee=0;b<x&&ee<E;){if(z=a[b],!(z instanceof Kn)||z.data!==y[ee])return!0;b++,ee++}return!1}function nm(a){if(a.type===Kn.Spot||a.type===Kn.Auto)return Math.min(a.O.length,1);if(a.type===Kn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof to&&E.isPanelMain))break}return x}return a.type===Kn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Kn&&kf(a))?1:0}Be.mv=function(){for(var a=nm(this);this.O.length>a;)this.pc(this.O.length-1,!1);A1(this,this.itemArray)};function A1(a,y){var x=nm(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)s0(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],ee=E<a.O.length?a.O.M(E):null;if(ee instanceof Kn){if(ee.data!==z){var re=Gv(a,ee.data),oe=Gv(a,z),se=oe!==re;se||(re=_v(a,re),se=_v(a,oe)!==re),se?(a.pc(E,!1),s0(a,z,b,!1)):ee.data=z}}else s0(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,Vv(a,x,0),et(a)||a.v(),a.graduatedIntervals=null,a.If()||l0(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof xi&&(y.Te=!0),y.Te&&y instanceof xi&&(y.wc=null))}}function s0(a,y,x,E){if(!(y==null||0>x)){var b=Gv(a,y);if(b=_v(a,b),b!==null){if(zd(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&zv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new ti),a.ge.add(y,b)),z=x+nm(a),a.Gb(z,b),E&&(b.ub=y,Vv(a,z,x),b.ub=null),b.data=y}}}function Vv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof Kn){var b=y,z=x;E.type===Kn.TableRow?E.row=b:E.type===Kn.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Gv(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=ml(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ot("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function _v(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(F1||(F1=!0,jn('No item template Panel found for category "'+y+'" on '+a),jn(" Using default item template."),a=new Kn,y=new Ja,y.bind(new Pl("text","",Hr)),a.add(y),b1=a),E=b1)),E}function l0(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof Kn){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof Kn&&!z.isEnabled||l0(a,z,x)}}}function Wh(a,y){y.name=a,eh.add(a,y)}An.Object.defineProperties(Kn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Kn.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&&xn(a,">= 0",Kn,"padding"),a=new ao(a)):(0>a.left&&xn(a.left,">= 0",Kn,"padding:value.left"),0>a.right&&xn(a.right,">= 0",Kn,"padding:value.right"),0>a.top&&xn(a.top,">= 0",Kn,"padding:value.top"),0>a.bottom&&xn(a.bottom,">= 0",Kn,"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:bc},set:function(a){typeof a=="number"&&(a=new ao(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Cd),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 Xo)&&(a instanceof Xo&&a.freeze(),this.T===null&&(this.T=new Cd),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 Cd),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Ot("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Cd),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 Xo)&&(a instanceof Xo&&a.freeze(),this.T===null&&(this.T=new Cd),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 Cd),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Ot("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Cd),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 Cd),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||Ot("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Is(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()||Ot("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Is(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 xf),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ve(this)&&(a=this.part,a!==null&&ka(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 xf),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ve(this)&&(a=this.part,a!==null&&ka(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 xf),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 xf),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 xf,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 xf,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 xf,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 xf,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 Cd),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Cd),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:d0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Cd),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:d0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Cd),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)&&Ot("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Cd),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)&&Ot("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Cd),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 or&&!(this instanceof Jo);zd(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof ei?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof or&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new br),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Dx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Dy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&By(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||A1(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 ti}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof or||a.isPanelMain)&&Ot("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(););Kr(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&&(Kr(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 Gr&&(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&&l0(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))}}}),An.Object.defineProperties(Kn,{Position:{get:function(){return eh.I("Position")}},Horizontal:{get:function(){return eh.I("Horizontal")}},Vertical:{get:function(){return eh.I("Vertical")}},Spot:{get:function(){return eh.I("Spot")}},Auto:{get:function(){return eh.I("Auto")}},Table:{get:function(){return eh.I("Table")}},Viewbox:{get:function(){return eh.I("Viewbox")}},TableRow:{get:function(){return eh.I("TableRow")}},TableColumn:{get:function(){return eh.I("TableColumn")}},Link:{get:function(){return eh.I("Link")}},Grid:{get:function(){return eh.I("Grid")}},Graduated:{get:function(){return eh.I("Graduated")}}}),Kn.prototype.rebuildItemElements=Kn.prototype.mv,Kn.prototype.findItemPanelForData=Kn.prototype.sx,Kn.prototype.updateTargetBindings=Kn.prototype.La,Kn.prototype.copyTemplate=Kn.prototype.Uy,Kn.prototype.graduatedValueForPoint=Kn.prototype.Gz,Kn.prototype.graduatedPointForValue=Kn.prototype.Fz,Kn.prototype.findColumnForLocalX=Kn.prototype.fz,Kn.prototype.findRowForLocalY=Kn.prototype.nz,Kn.prototype.addColumnDefinition=Kn.prototype.By,Kn.prototype.addRowDefinition=Kn.prototype.Hy,Kn.prototype.addRowColumnDefinition=Kn.prototype.Gy,Kn.prototype.removeColumnDefinition=Kn.prototype.jA,Kn.prototype.getColumnDefinition=Kn.prototype.Eb,Kn.prototype.removeRowDefinition=Kn.prototype.oA,Kn.prototype.getRowDefinition=Kn.prototype.Fb,Kn.prototype.removeAt=Kn.prototype.mb,Kn.prototype.remove=Kn.prototype.remove,Kn.prototype.insertAt=Kn.prototype.Gb,Kn.prototype.elt=Kn.prototype.M,Kn.prototype.add=Kn.prototype.add,Kn.prototype.findObject=Kn.prototype.fb,Kn.prototype.findInVisualTree=Kn.prototype.Nl,Kn.prototype.walkVisualTreeFrom=Kn.prototype.qm,Kn.prototype.findMainElement=Kn.prototype.Pb;var F1=!1,b1=null,eh=new ti;Kn.className="Panel",Kn.definePanelLayout=Wh,Wh("Position",new Xm),Wh("Vertical",new Qm),Wh("Auto",new $m),Wh("Link",new o0);function xf(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}xf.prototype.copy=function(){var a=new xf;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},xf.className="GradPanelSettings";function Cd(){this.Pc=[],this.Oc=[],this.j=this.ob=d0,this.hb=this.Hb=0,this.Qp=bc,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Cd.prototype.copy=function(a){for(var y=new Cd,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),b[z]=ee}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),b[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Cd.className="TablePanelSettings";function kl(a){zr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Dl,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Hv,this.hg=pr,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))}kl.prototype.copy=function(){var a=new kl;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=rn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function u0(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=rn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Be=kl.prototype,Be.qb=function(a){a.classType===kl&&(this.sizing=a)},Be.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+ur(this)},Be.wi=function(a){this.Me=a},Be.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)},Be.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===Kn.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=E?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Be.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(Gn,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function c0(a){if(a.sizing===Hv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Pl(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&C1(y)&&Ot("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new tn),this.be.add(b),this},An.Object.defineProperties(kl.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&&xn(a,">= 0",kl,"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&&xn(a,">= 0",kl,"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))&&xn(a,">= 0",kl,"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&&xn(a,">= 0",kl,"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 ao(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&&ig(a,"RowColumnDefinition.separatorStroke"),a instanceof Xo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Ot("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&ig(a,"RowColumnDefinition.background"),a instanceof Xo&&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}}}),kl.prototype.computeEffectiveSpacing=kl.prototype.Wc,kl.prototype.computeEffectiveSpacingTop=kl.prototype.Io;var Hv=new Bt(kl,"Default",0),im=new Bt(kl,"None",1),d0=new Bt(kl,"ProportionalExtra",2);kl.className="RowColumnDefinition",kl.Default=Hv,kl.None=im,kl.ProportionalExtra=d0;function to(a,y){gt.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)}Tt(to,gt),to.prototype.cloneProtected=function(a){gt.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=rn(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 kg(a){a.Na===null?a.Na=new Kv:a.Na.nc&&(a.Na=a.Na.copy())}Be=to.prototype,Be.th=function(){gt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Be.qb=function(a){a===fn||a===Ci||a===hr||a===pr?this.geometryStretch=a:gt.prototype.qb.call(this,a)},Be.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+ur(this)};function Ep(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],se,ue,ge,ye,Pe,Fe,Te=0,Je=Ni(),Ze=2;Ze<b;Ze+=2)se=x[Ze],ue=x[Ze+1],ge=se-re,re=ue-oe,ge===0&&(ge=.001),ye=re/ge,Pe=Math.atan2(re,ge),Fe=Math.sqrt(ge*ge+re*re),Je.push([ge,Pe,ye,Fe]),Te+=Fe,re=se,oe=ue;re=x[0],oe=x[1],ge=E.measuredBounds.width,E instanceof to&&(ge-=E.strokeWidth),1>ge&&(ge=1),b=x=ge,se=ee/2,ue=se!==0,Ze=0,Fe=Je[Ze],ge=Fe[0],Pe=Fe[1],ye=Fe[2],Fe=Fe[3];for(var it=0;.1<=Te;){if(it===0&&(ue?(b=x,b-=se,Te-=se,ue=!1):b=x,b===0&&(b=1)),b>Te){qn(Je);return}b>Fe?(it=b-Fe,b=Fe):it=0;var lt=Math.sqrt(b*b/(1+ye*ye));if(0>ge&&(lt=-lt),re+=lt,oe+=ye*lt,a.translate(re,oe),a.rotate(Pe),a.translate(-(ee/2),-(z/2)),it===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Pe),a.translate(-re,-oe),Te-=b,Fe-=b,it!==0){if(Ze++,Ze===Je.length){qn(Je);return}Fe=Je[Ze],ge=Fe[0],Pe=Fe[1],ye=Fe[2],Fe=Fe[3],b=it}}qn(Je)}}Be.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;E!==null&&Mo(this,a,E,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Kn.Link&&re instanceof Jo&&re.category==="Selection"&&re.adornedObject instanceof to&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(Mo(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===ni.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===ni.u){var se=b.startX;oe=b.startY;var ue=b.endX,ge=b.endY;b=Math.min(se,ue);var ye=Math.min(oe,ge);se=Math.abs(ue-se),oe=Math.abs(ge-oe),a.beginPath(),a.rect(b,ye,se,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&lc(a),a.jk(),re&&z&&yu(a)),a.Se()}else if(b.type===ni.F)se=b.startX,oe=b.startY,ue=b.endX,ge=b.endY,b=Math.abs(ue-se)/2,ye=Math.abs(ge-oe)/2,se=Math.min(se,ue)+b,oe=Math.min(oe,ge)+ye,a.beginPath(),a.moveTo(se,oe-ye),a.bezierCurveTo(se+At.wg*b,oe-ye,se+b,oe-At.wg*ye,se+b,oe),a.bezierCurveTo(se+b,oe+At.wg*ye,se+At.wg*b,oe+ye,se,oe+ye),a.bezierCurveTo(se-At.wg*b,oe+ye,se-b,oe+At.wg*ye,se-b,oe),a.bezierCurveTo(se-b,oe-At.wg*ye,se-At.wg*b,oe-ye,se,oe-ye),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&lc(a),a.jk(),re&&z&&yu(a)),a.Se();else if(b.type===ni.o)for(b=b.figures,oe=b.length,ye=0;ye<oe;ye++){se=b.s[ye],a.beginPath(),a.moveTo(se.startX,se.startY),ue=se.segments.s,ge=ue.length;for(var Pe=null,Fe=0;Fe<ge;Fe++){var Te=ue[Fe];switch(Te.type){case Qs:a.moveTo(Te.endX,Te.endY);break;case Da:a.lineTo(Te.endX,Te.endY);break;case Vl:a.bezierCurveTo(Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY);break;case ze:a.quadraticCurveTo(Te.point1X,Te.point1Y,Te.endX,Te.endY);break;case Ye:if(Te.radiusX===Te.radiusY){var Je=Math.PI/180;a.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*Je,(Te.startAngle+Te.sweepAngle)*Je,0>Te.sweepAngle,Pe!==null?Pe.endX:se.startX,Pe!==null?Pe.endY:se.startY)}else if(Pe=zl(Te,se),Je=Pe.length,Je===0)a.lineTo(Te.centerX,Te.centerY);else for(var Ze=0;Ze<Je;Ze++){var it=Pe[Ze];Ze===0&&a.lineTo(it[0],it[1]),a.bezierCurveTo(it[2],it[3],it[4],it[5],it[6],it[7])}break;case Qe:if(Ze=Je=0,Pe!==null&&Pe.type===Ye){if(Pe=zl(Pe,se),it=Pe.length,it===0){a.lineTo(Te.endX,Te.endY);break}Pe=Pe[it-1]||null,Pe!==null&&(Je=Pe[6],Ze=Pe[7])}else Je=Pe!==null?Pe.endX:se.startX,Ze=Pe!==null?Pe.endY:se.startY;if(Pe=hu(Te,se,Je,Ze),Je=Pe.length,Je===0){a.lineTo(Te.endX,Te.endY);break}for(Ze=0;Ze<Je;Ze++)it=Pe[Ze],a.bezierCurveTo(it[2],it[3],it[4],it[5],it[6],it[7]);break;default:Ot("Segment not of valid type: "+Te.type)}Te.isClosed&&a.closePath(),Pe=Te}ue=se.isFilled,z?se.isShadowed?(ue===!0&&E!=="transparent"&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&(ue&&re&&lc(a),a.jk(),ue&&re&&yu(a))):(lc(a),ue&&E!=="transparent"&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&a.jk(),yu(a)):(ue&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&a.jk()),a.Se(ye)}if(ee&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=Ni(),z.type===ni.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Ep(a,y,E,x);else if(z.type===ni.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),ee=re.startX,b=re.startY,oe=ee,ye=b,se=re.segments.s,ue=se.length,ge=0;ge<ue;ge++){switch(Fe=se[ge],Fe.type){case Qs:Ep(a,y,E,x),E.length=0,E.push(Fe.endX),E.push(Fe.endY),ee=Fe.endX,b=Fe.endY,oe=ee,ye=b;break;case Da:E.push(Fe.endX),E.push(Fe.endY),ee=Fe.endX,b=Fe.endY;break;case Vl:At.Qe(ee,b,Fe.point1X,Fe.point1Y,Fe.point2X,Fe.point2Y,Fe.endX,Fe.endY,.5,E),ee=Fe.endX,b=Fe.endY;break;case ze:At.ep(ee,b,Fe.point1X,Fe.point1Y,Fe.endX,Fe.endY,.5,E),ee=Fe.endX,b=Fe.endY;break;case Ye:if(Te=zl(Fe,re),Pe=Te.length,Pe===0){E.push(Fe.centerX),E.push(Fe.centerY),ee=Fe.centerX,b=Fe.centerY;break}for(Je=0;Je<Pe;Je++)Ze=Te[Je],At.Qe(ee,b,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,E),ee=Ze[6],b=Ze[7];break;case Qe:if(Te=hu(Fe,re,ee,b),Pe=Te.length,Pe===0){E.push(Fe.endX),E.push(Fe.endY),ee=Fe.endX,b=Fe.endY;break}for(Je=0;Je<Pe;Je++)Ze=Te[Je],At.Qe(ee,b,Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7],.5,E),ee=Ze[6],b=Ze[7];break;default:Ot("Segment not of valid type: "+Fe.type)}Fe.isClosed&&(E.push(oe),E.push(ye),Ep(a,y,E,x))}Ep(a,y,E,x)}else if(z.type===ni.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Ep(a,y,E,x);else if(z.type===ni.F){if(b=new dl,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new zo(Ye),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=zl(ee,b),re=z.length,re===0)E.push(ee.centerX),E.push(ee.centerY);else for(ee=b.startX,b=b.startY,oe=0;oe<re;oe++)ye=z[oe],At.Qe(ee,b,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,E),ee=ye[6],b=ye[7];Ep(a,y,E,x)}qn(E),a.restore(),a.Vc(!1)}}}},Be.kk=function(a,y,x){return!gt.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)},Be.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:gt.prototype.nk.call(this,a)},Be.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)}},Be.ga=function(a,y){if(y===void 0&&(y=new Ue),a instanceof tr){a.Mc()&&Ot("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Be.mi=function(a){a===void 0&&(a=new qt);var y=this.naturalBounds,x=this.oe;y=qt.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Ue.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),os(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),os(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),os(a,E.x,E.y,0,0),qt.free(y),Ue.free(E),a},Be.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==ni.j||y||(b+=2);var z=qt.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return qt.free(z),!1;if(E=b+1e-4,x.type===ni.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(qt.free(z),At.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===ni.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return qt.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),qt.free(z),a}if(x.type===ni.F){ee=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ee),y=a.y-(y+b),this.fill===null){if(ee-=E,b-=E,0>=ee||0>=b||1>=x*x/(ee*ee)+y*y/(b*b))return qt.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),qt.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===ni.o)return qt.free(z),this.fill===null?Lc(x,a.x,a.y,b):Vu(x,a,b,1<this.strokeWidth,y);Ot("Unknown Geometry type: "+x.type)},Be.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=Uv[re];if(oe===void 0){var se=At.Ze[re];typeof se=="string"&&(se=At.Ze[se]),typeof se=="function"?(oe=se(null,100,100),Uv[re]=oe):Ot("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,se=ee.width;var ue=ee.height;switch(ks(this,!0)){case fn:E=x=0;break;case Pn:se=Math.max(a-z,0),ue=Math.max(y-z,0);break;case Bi:se=Math.max(a-z,0),E=0;break;case nr:x=0,ue=Math.max(y-z,0)}isFinite(b.width)&&(se=b.width),isFinite(b.height)&&(ue=b.height);var ge=this.maxSize,ye=this.minSize;switch(x=Math.max(x-z,ye.width),E=Math.max(E-z,ye.height),se=Math.min(ge.width,se),ue=Math.min(ge.height,ue),se=isFinite(se)?Math.max(x,se):Math.max(re,x),ue=isFinite(ue)?Math.max(E,ue):Math.max(oe,E),x=Zv(this),x){case fn:break;case Pn:re=se,oe=ue;break;case Ci:x=Math.min(se/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:Ot(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,E=re/ee.width,ee=oe/ee.height,isFinite(E)||(E=1),isFinite(ee)||(ee=1),this.ua=E===1&&ee===1?x:x.copy().scale(E,ee)):this.ua!==null&&At.$(this.ua.Sk,a-z)&&At.$(this.ua.Rk,y-z)||(this.ua=to.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),se+z,ue+z),b.w()?(se=b.width,ue=b.height,se=Math.min(ge.width,se),ue=Math.min(ge.height,ue),se=Math.max(ye.width,se),ue=Math.max(ye.height,ue),this.dc.h(0,0,se,ue)):this.dc.assign(ee)};function Zv(a){var y=a.geometryStretch;return a.Rd!==null?y===pr?Pn:y:y===pr?Uv[a.figure].defaultStretch:y}Be.eh=function(a,y,x,E){Ql(this,a,y,x,E)},Be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Be.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,se=-z.m21*ee,ue=z.m11*ee,ge=ee*(z.m21*z.dy-z.m22*z.dx),ye=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*se+ge,ee=a*oe+y*ue+ye,re=x*re+E*se+ge,oe=x*oe+E*ue+ye,ge=this.ig/2,se=this.ua,se===null&&(this.measure(1/0,1/0),se=this.ua);var Pe=se.bounds;if(ue=!1,se.type===ni.j)if(1.5>=this.strokeWidth)ue=At.Ve(se.startX,se.startY,se.endX,se.endY,z,ee,re,oe,b);else{if(se.startX===se.endX?(E=ge,ue=0):(y=(se.endY-se.startY)/(se.endX-se.startX),ue=ge/Math.sqrt(1+y*y),E=ue*y),y=Ni(),a=new Ue,At.Ve(se.startX+E,se.startY+ue,se.endX+E,se.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Ue,At.Ve(se.startX-E,se.startY-ue,se.endX-E,se.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Ue,At.Ve(se.startX+E,se.startY+ue,se.startX-E,se.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Ue,At.Ve(se.endX+E,se.endY+ue,se.endX-E,se.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return qn(y),!1;for(ue=!0,oe=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,b.x=a.x,b.y=a.y);qn(y)}else if(se.type===ni.u)ue=At.Ff(Pe.x-ge,Pe.y-ge,Pe.x+Pe.width+ge,Pe.y+Pe.height+ge,z,ee,re,oe,b);else if(se.type===ni.F){y=qt.allocAt(Pe.x,Pe.y,Pe.width,Pe.height).Bc(ge,ge);e:if(y.width===0)ue=At.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)ue=At.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,b);else{if(a=y.width/2,se=y.height/2,E=y.x+a,ue=y.y+se,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ue-x*(z-E),0>a*a*x*x+se*se-oe*oe){b.x=NaN,b.y=NaN,ue=!1;break e}ge=Math.sqrt(a*a*x*x+se*se-oe*oe),re=(-(a*a*x*oe)+a*se*ge)/(se*se+a*a*x*x)+E,a=(-(a*a*x*oe)-a*se*ge)/(se*se+a*a*x*x)+E,se=x*(re-E)+oe+ue,oe=x*(a-E)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-se)*(ee-se))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(b.x=re,b.y=se):(b.x=a,b.y=oe)}else{if(re=se*se,oe=z-E,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}ue=!0}qt.free(y)}else if(se.type===ni.o){ye=Ue.alloc();var Fe=re-z,Te=oe-ee,Je=Fe*Fe+Te*Te,Ze=z,it=ee;if(0<Je&&Pe.contains(Ze,it)&&(ye.x=Ze,ye.y=it,this.ca(ye)))for(Fe!==0&&.5>Math.abs(Fe)?(Te*=.5/Fe,Fe=.5):Te!==0&&.5>Math.abs(Te)&&(Fe*=.5/Te,Te=.5),Ze-=Fe,it-=Te;Pe.contains(Ze,it);)Ze-=Fe,it-=Te;for(b.x=re,b.y=oe,Te=0;Te<se.figures.count;Te++){var lt=se.figures.s[Te],ft=lt.isFilled?Ze:z,St=lt.isFilled?it:ee,Vt=lt.segments;Pe=lt.startX,Fe=lt.startY;for(var mi=Pe,Vi=Fe,Fi=0;Fi<Vt.count;Fi++){var $n=Vt.s[Fi],Mn=$n.type,jr=$n.endX,Br=$n.endY,ia=!1;switch(Mn){case Qs:mi=jr,Vi=Br;break;case Da:ia=f0(Pe,Fe,jr,Br,ft,St,re,oe,ye);break;case Vl:ia=At.Eo(Pe,Fe,$n.point1X,$n.point1Y,$n.point2X,$n.point2Y,jr,Br,ft,St,re,oe,.6,ye);break;case ze:ia=At.Eo(Pe,Fe,Pe+2/3*($n.point1X-Pe),Fe+2/3*($n.point1Y-Fe),jr+2/3*($n.point1X-jr),Br+2/3*($n.point1Y-Br),jr,Br,ft,St,re,oe,.6,ye);break;case Ye:case Qe:Mn=$n.type===Ye?zl($n,lt):hu($n,lt,Pe,Fe);var Ya=Mn.length;if(Ya===0){ia=f0(Pe,Fe,$n.type===Ye?$n.centerX:$n.endX,$n.type===Ye?$n.centerY:$n.endY,ft,St,re,oe,ye);break}for(Br=null,jr=0;jr<Ya;jr++){if(Br=Mn[jr],jr===0&&f0(Pe,Fe,Br[0],Br[1],ft,St,re,oe,ye)){var ql=h0(ft,St,ye,Je,b);ql<Je&&(Je=ql,ue=!0)}At.Eo(Br[0],Br[1],Br[2],Br[3],Br[4],Br[5],Br[6],Br[7],ft,St,re,oe,.6,ye)&&(ql=h0(ft,St,ye,Je,b),ql<Je&&(Je=ql,ue=!0))}jr=Br[6],Br=Br[7];break;default:Ot("Unknown Segment type: "+Mn)}Pe=jr,Fe=Br,ia&&(ia=h0(ft,St,ye,Je,b),ia<Je&&(Je=ia,ue=!0)),$n.isClosed&&(jr=mi,Br=Vi,f0(Pe,Fe,jr,Br,ft,St,re,oe,ye)&&($n=h0(ft,St,ye,Je,b),$n<Je&&(Je=$n,ue=!0)))}}z=x-a,ee=E-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*ge,b.y-=ee*ge,Ue.free(ye)}else Ot("Unknown Geometry type: "+se.type);return ue?(this.transform.Ga(b),!0):!1};function h0(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function f0(a,y,x,E,b,z,ee,re,oe){if(At.$(a,x)&&At.$(y,E)||At.$(b,ee)&&At.$(z,re))return!1;var se=!1,ue=(b-ee)*(y-E)-(z-re)*(a-x);return ue===0?!1:(oe.x=((b*re-z*ee)*(a-x)-(b-ee)*(a*E-y*x))/ue,oe.y=((b*re-z*ee)*(y-E)-(z-re)*(a*E-y*x))/ue,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||At.$(oe.y,a))&&(oe.y<y||At.$(oe.y,y))&&(se=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||At.$(oe.x,y))&&(oe.x<a||At.$(oe.x,a))&&(se=!0)),se)}Be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=Ue.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),Ue.free(z),b},Be.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Qr.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ee=Ue.alloc();if(ee.h(E,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0)))return Ue.free(ee),!0;var re=Ue.alloc(),oe=Ue.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),ee.x=E,ee.y=z,ee.transform(x),y=!1,Ng(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=a,ee.transform(x),Ng(this,ee,re,oe)?y=!0:(re.x=E,re.y=a,re.transform(x),Ng(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=z,ee.transform(x),Ng(this,ee,re,oe)&&(y=!0)))),Ue.free(ee),Qr.free(x),Ue.free(re),Ue.free(oe),y};function Ng(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}Be.tx=function(a,y,x){function E(Je,Ze){for(var it=Je.length,lt=0;lt<it;lt+=2)if(Ze.zd(Je[lt],Je[lt+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ee=y.bounds,re=ee.x,oe=ee.y,se=ee.x+ee.width;if(ee=ee.y+ee.height,Rr(a.x,a.y,re,oe)<=b&&Rr(a.x,a.y,se,oe)<=b&&Rr(a.x,a.y,re,ee)<=b&&Rr(a.x,a.y,se,ee)<=b)return!0}if(re=y.startX,oe=y.startY,se=y.endX,ee=y.endY,y.type===ni.j){if(x=(re-se)*(a.x-se)+(oe-ee)*(a.y-ee),Ho(a.x,a.y,re,oe,se,ee)<=(0<=(se-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?b:z))return!0}else{if(y.type===ni.u)return y=!1,x&&(y=Ho(a.x,a.y,re,oe,re,ee)<=b||Ho(a.x,a.y,re,oe,se,oe)<=b||Ho(a.x,a.y,se,oe,se,ee)<=b||Ho(a.x,a.y,re,ee,se,ee)<=b),y;if(y.type===ni.F){y=a.x-(re+se)/2,z=a.y-(oe+ee)/2;var ue=Math.abs(se-re)/2,ge=Math.abs(ee-oe)/2;if(ue===0||ge===0)return Ho(a.x,a.y,re,oe,se,ee)<=b;if(x){if(a=At.$y(ue,ge,y,z),a*a<=b)return!0}else return!(Rr(y,z,-ue,0)>=b||Rr(y,z,0,-ge)>=b||Rr(y,z,0,ge)>=b||Rr(y,z,ue,0)>=b)}else if(y.type===ni.o){if(se=y.bounds,z=se.x,re=se.y,oe=se.x+se.width,se=se.y+se.height,a.x>oe&&a.x<z&&a.y>se&&a.y<re&&Ho(a.x,a.y,z,re,z,se)>b&&Ho(a.x,a.y,z,re,oe,re)>b&&Ho(a.x,a.y,oe,se,z,se)>b&&Ho(a.x,a.y,oe,se,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Lc(y,a.x,a.y,z):Vu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ue=z.startY,a.zd(ee,ue)>b)return!1;for(re=z.segments.s,oe=re.length,se=0;se<oe;se++)switch(ge=re[se],ge.type){case Qs:case Da:if(ee=ge.endX,ue=ge.endY,a.zd(ee,ue)>b)return!1;break;case Vl:var ye=Ni();if(At.Qe(ee,ue,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.8,ye),ee=E(ye,a),qn(ye),ee||(ee=ge.endX,ue=ge.endY,a.zd(ee,ue)>b))return!1;break;case ze:if(ye=Ni(),At.ep(ee,ue,ge.point1X,ge.point1Y,ge.endX,ge.endY,.8,ye),ee=E(ye,a),qn(ye),ee||(ee=ge.endX,ue=ge.endY,a.zd(ee,ue)>b))return!1;break;case Ye:case Qe:ye=ge.type===Ye?zl(ge,z):hu(ge,z,ee,ue);var Pe=ye.length;if(Pe===0){if(ee=ge.type===Ye?ge.centerX:ge.endX,ue=ge.type===Ye?ge.centerY:ge.endY,a.zd(ee,ue)>b)return!1;break}ge=null;for(var Fe=Ni(),Te=0;Te<Pe;Te++)if(ge=ye[Te],Fe.length=0,At.Qe(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.8,Fe),E(Fe,a))return qn(Fe),!1;qn(Fe),ge!==null&&(ee=ge[6],ue=ge[7]);break;default:Ot("Unknown Segment type: "+ge.type)}}return!0}}}return!1},Be.qc=function(){this.ua=null},Be.kq=function(){return this.ig};function B1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=hm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=du):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new tr(1-du.x,du.y)))}to.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=ef[a.toArrow];else a.fromArrow!=="None"?E=ef[a.fromArrow]:(E=At.Ze[a.figure],typeof E=="string"&&(E=At.Ze[E]),E===void 0&&Ot("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=At.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function D1(a){var y=ef[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ef[x],y===void 0){var E=null,b;for(b in At.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=ni.parse(At.um[E],!1),ef[E]=a,x!==E&&(ef[x]=E),E}}return typeof y=="string"?y:y instanceof ni?a:null}An.Object.defineProperties(to.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),ve(this)&&(a=this.part,a!==null&&ka(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ni.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ue.allocAt(-y.x,-y.y),Ue.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&&ig(a,"Shape.fill"),a instanceof Xo&&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&&ig(a,"Shape.stroke"),a instanceof Xo&&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 xn(a,"value >= 0",to,"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"?xn(a,'"butt", "round", or "square"',to,"strokeCap"):(kg(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"?xn(a,'"miter", "bevel", or "round"',to,"strokeJoin"):(kg(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){kg(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||Ot("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(kg(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=At.Ze[a];typeof x=="function"?x=a:(x=At.Ze[a.toLowerCase()])||Ot("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=D1(a);x===null?Ot("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Nr),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),B1(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=D1(a);x===null?Ot("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Nr),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),B1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Dl},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),kg(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Dl},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),kg(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&&(kg(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:pr},set:function(a){var y=this.geometryStretch;y!==a&&(kg(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 tf),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Is(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 tf),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 tf),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 tf),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),to.prototype.intersectsRect=to.prototype.Yc,to.prototype.containedInRect=to.prototype.fh,to.prototype.getNearestIntersectionPoint=to.prototype.rs,to.prototype.getDocumentBounds=to.prototype.mi,to.prototype.getDocumentPoint=to.prototype.ga;var ef=new zt,Uv=new zt;to.className="Shape",to.getFigureGenerators=function(){var a=new ti,y;for(y in At.Ze)y!==y.toLowerCase()&&a.add(y,At.Ze[y]);return a.freeze(),a},to.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=At.Ze;E[a]=y,E[x]=a},to.getArrowheadGeometries=function(){var a=new ti;for(E in At.um)if(ef[E]===void 0){var y=ni.parse(At.um[E],!1);ef[E]=y,y=E.toLowerCase(),y!==E&&(ef[y]=E)}for(var x in ef)if(x!==x.toLowerCase()){var E=ef[x];E instanceof ni&&a.add(x,E)}return a.freeze(),a},to.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ni.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ot("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=ef;E[a]=x,E[y]=a};function Kv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=pr,this.gg=this.fg=Dl}Kv.prototype.copy=function(){var a=new Kv;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 Ja(a,y){return gt.call(this),y0||(Rc=Bs?new Mu(null).context:null,y0=!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}Tt(Ja,gt),Ja.prototype.cloneProtected=function(a){gt.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 jh(a){a.da===null?a.da=new ey:a.da.nc&&(a.da=a.da.copy())}Be=Ja.prototype,Be.th=function(){gt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function L1(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}Be.qb=function(a){a.classType===Ja?this.wrap=a:gt.prototype.qb.call(this,a)},Be.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Be.v=function(){gt.prototype.v.call(this)},Be.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,ee=om(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var se=this.isStrikethrough;Mo(this,a,this.xc,!0,!1,x,E),(oe||se)&&Mo(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ue=this.oe,ge=ue.dx-(ee*ue.m21+ue.dx);ue=ue.dy-(ee*ue.m22+ue.dy);var ye=y.scale;switch(8>(ge*ge+ue*ue)*ye*ye&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof fa&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ge=this.spacingBelow,this.flip){case vo:a.translate(b,0),a.scale(-1,1);break;case Dr:a.translate(0,z),a.scale(1,-1);break;case Qo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,ye=(y+ee+ge)*ue,z>ye&&(E=this.verticalAlignment,E=E.y*z-E.y*ye+E.offsetY),ue===1&&this.ze!==null)ge=this.Cb,ge>b&&(ge=b),this.Oj(this.ze,a,0,E+y,b,ee,ge,x,re,oe,se);else if(this.Qc!==null&&this.Qb!==null)for(ye=0;ye<ue;ye++){var Pe=this.Qc[ye];Pe>b&&(Pe=b),E+=y,this.Oj(this.Qb[ye],a,0,E,b,ee,Pe,x,re,oe,se),E+=ee+ge}switch(this.flip){case vo:a.scale(-1,1),a.translate(-b,0);break;case Dr:a.scale(1,-1),a.translate(0,-z);break;case Qo:a.scale(-1,-1),a.translate(-b,-z)}}},Be.Oj=function(a,y,x,E,b,z,ee,re,oe,se,ue){var ge=0;if(re)oe==="left"?ge=0:oe==="right"?ge=b-ee:oe==="center"&&(ge=(b-ee)/2),y.fillRect(x+ge,E+.25*z,ee,1);else{if(oe==="left"?ge=0:oe==="right"?ge=b:oe==="center"&&(ge=b/2),b=g0!==null?g0(this,z):.75*z,y.fillText(a,x+ge,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?ge-=ee:oe==="center"&&(ge-=ee/2),se){re=p0!==null?p0(this,z):.8*z,oe=x+ge,se=E+re,b=x+ge+ee,re=E+re;var ye=a;y.beginPath(),y.lineWidth=ye,y.moveTo(oe,se),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof fa&&y.ad.classList.add("gojs-td")}ue&&(ue=E+z-z/2.2|0,a%2!==0&&(ue+=.5),E=x+ge,z=ue,x=x+ge+ee,ee=ue,ge=a,y.beginPath(),y.lineWidth=ge,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof fa&&y.ad.classList.add("gojs-td"))}},Be.kk=function(a,y,x){if(!gt.prototype.kk.call(this,a,y,x))return!1;if(Mo(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++)Ic(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Ic(a,y,!0);return!0},Be.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:gt.prototype.nk.call(this,a)},Be.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)}},Be.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Rc!==null&&R1!==z&&(R1=Rc.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var se=z.indexOf(`
|
|
`,re);se===-1&&(se=z.length,oe=!0),re=z.substr(re,se-re),this.formatting===am&&(re=re.trim()),ee=Math.max(ee,th(re)),re=se+1}z=ee}else ee=z.indexOf(`
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=th(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=k1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===m0&&(y=this.Ae,y=this.overflow===m0?M1(y):0,se=this.spacingAbove+this.spacingBelow,se=Math.max(0,om(this)+se),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/se+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,se=this.Qb[oe],y=Math.max(1,a-y);th(se)>y&&1<se.length;)se=se.substr(0,se.length-1);se+=sm,y=th(se),this.Qb[oe]=se,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+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===N1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(E,ee),ys(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Be.eh=function(a,y,x,E){Ql(this,a,y,x,E)};function rm(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 Yv(a,y,x,E){var b=a.formatting===am;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,om(a)+re);var oe=a.overflow===m0?M1(ee):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ee=y,a.wrap===Xv){a.Le=1;var se=th(y);if(oe===0||se<=x)a.Cb=Math.max(a.Cb,se),rm(a,y,a.Cb),E!==null&&E.h(se,re);else{for(z=Pp(a,ee),ee=ee.substr(z.length),y=Pp(a,ee),se=th(z+y);0<y.length&&se<=x;)z+=y,ee=ee.substr(y.length),y=Pp(a,ee),se=z+y,b&&(se=se.trim()),se=th(se);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);th(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=sm;var ue=th(z);a.Cb=ue,rm(a,z,ue),E!==null&&E.h(ue,re)}}else{for(oe=0,ee.length===0&&(oe=1,rm(a,ee,0));0<ee.length;){for(y=Pp(a,ee),ee=ee.substr(y.length);th(y)>x;){var ge=1;for(se=th(y.substr(0,ge)),ue=0;se<=x;)ge++,ue=se,se=th(y.substr(0,ge));if(ge===1){var ye=se;z=Math.max(z,se)}else ye=ue,z=Math.max(z,ue);if(ge--,1>ge&&(ge=1),rm(a,y.substr(0,ge),ye),oe++,y=y.substr(ge),a.Gc+oe>a.maxLines)break}for(ue=Pp(a,ee),se=th(y+ue);0<ue.length&&se<=x;)y+=ue,ee=ee.substr(ue.length),ue=Pp(a,ee),se=y+ue,b&&(se=se.trim()),se=th(se);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ue.length===0?(ge=se,z=Math.max(z,se)):(ge=ue=th(y),z=Math.max(z,ue)),rm(a,y,ge),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Pp(a,y){if(a.wrap===T1)return y.substr(0,1);for(var x=y.length,E=0,b=Lx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===O1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function th(a){return Rc===null?8*a.length:Rc.measureText(a).width}function om(a){if(a.df!==null)return a.df;var y=a.Ae;if(Rc===null){var x=16;return a.df=x}return qv[y]!==void 0&&5e3>I1?x=qv[y]:(x=1.3*Rc.measureText("M").width,qv[y]=x,I1++),a.df=x}function M1(a){if(Rc===null)return 6;if(v0[a]!==void 0&&5e3>$v)var y=v0[a];else y=Rc.measureText(sm).width,v0[a]=y,$v++;return y}function k1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,om(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
|
|
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Xv){a.Le=0;var oe=oi.alloc();Yv(a,z,y,oe),b+=oe.height,oi.free(oe),a.Gc+=a.Le}else Yv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}An.Object.defineProperties(Ja.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"||(jh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:fn},set:function(a){var y=this.flip;y!==a&&(jh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Sd},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),jh(this),this.da.Yr=a,Ul(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=oi.alloc();Yv(this,this.ec,999999,a);var y=a.width;oi.free(a),a=k1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ys(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:Jv},set:function(a){var y=this.wrap;y!==a&&(jh(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Qv},set:function(a){var y=this.overflow;y!==a&&(jh(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&&ig(a,"TextBlock.stroke"),a instanceof Xo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return om(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&&(jh(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&&(jh(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 tf),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 tf),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 tf),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 tf),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 tf),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&&(jh(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&&(jh(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&&(jh(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&&(jh(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:am},set:function(a){var y=this.formatting;y!==a&&(jh(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&&xn(a,"> 0",Ja,"maxLines"),jh(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 g0=null,p0=null,Xv=new Bt(Ja,"None",0),N1=new Bt(Ja,"WrapFit",1),Jv=new Bt(Ja,"WrapDesiredSize",2),T1=new Bt(Ja,"WrapBreakAll",3),Qv=new Bt(Ja,"OverflowClip",0),m0=new Bt(Ja,"OverflowEllipsis",1),am=new Bt(Ja,"FormatTrim",0),O1=new Bt(Ja,"FormatNone",0),Lx=/[ \u200b\u00ad]/,qv=new zt,I1=0,v0=new zt,$v=0,sm="...",R1="",Rc=null,y0=!1;Ja.className="TextBlock";function ey(){this.nc=!1,this.Hd=null,this.Xf=fn,this.gq=am,this.Jq=1/0,this.$q=Qv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Sd,this.$r=Jv}ey.prototype.copy=function(){var a=new ey;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},Ja.getEllipsis=function(){return sm},Ja.setEllipsis=function(a){sm=a,v0=new zt,$v=0},Ja.getBaseline=function(){return g0},Ja.setBaseline=function(a){g0=a},Ja.getUnderline=function(){return p0},Ja.setUnderline=function(a){p0=a},Ja.isValidFont=function(a){if(y0||(Rc=Bs?new Mu(null).context:null,y0=!0),Rc===null)return!0;var y=Rc.font;if(a===y||a==="10px sans-serif")return!0;Rc.font="10px sans-serif",Rc.font=a;var x=Rc.font;if(x!=="10px sans-serif")return Rc.font=y,!0;Rc.font="19px serif";var E=Rc.font;return Rc.font=a,x=Rc.font,Rc.font=y,x!==E},Ja.FormatNone=O1,Ja.FormatTrim=am,Ja.None=Xv,Ja.OverflowClip=Qv,Ja.OverflowEllipsis=m0,Ja.WrapBreakAll=T1,Ja.WrapDesiredSize=Jv,Ja.WrapFit=N1;function tf(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}tf.prototype.copy=function(){var a=new tf;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},tf.className="GradElementSettings";function Wc(a,y){gt.call(this),this.Eg=null,this.qo="",this.Xg=cu,this.Nk=Pn,this.Zg=this.Hd=null,this.Mk=Cr,this.Xf=fn,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 wp;Tt(Wc,gt),Wc.prototype.cloneProtected=function(a){gt.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},Wc.prototype.qb=function(a){a===fn||a===Ci||a===hr?this.imageStretch=a:gt.prototype.qb.call(this,a)},Wc.prototype.toString=function(){return"Picture("+this.source+")#"+ur(this)};function Cp(a){a===void 0&&(a=""),a!==""?wp[a]&&(delete wp[a],S0--):(wp=new zt,S0=0)}function W1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||($e(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=Ni();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);qn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Wc.prototype.hA=function(){if(this.source!==""){Cp(this.source);var a=this.source;this.source="",this.source=a}},Wc.prototype.redraw=function(){this.N(),this.Uc=!0},Wc.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Sh)){var b=a instanceof fa;E=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||E.width,re=re||E.height,oe!==0&&re!==0){var se=oe,ue=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ge=oe,ye=re,Pe=this.Nk,Fe=this.Mk;switch(Pe){case fn:if(this.sourceRect.w())break;ge>=E.width&&(z=z+Fe.offsetX+(ge*Fe.x-E.width*Fe.x)),ye>=E.height&&(ee=ee+Fe.offsetY+(ye*Fe.y-E.height*Fe.y)),oe=Math.min(E.width,ge),re=Math.min(E.height,ye);break;case Pn:ge=E.width,ye=E.height;break;case Ci:case hr:Pe===Ci?(Pe=Math.min(E.height/ye,E.width/ge),ge*=Pe,ye*=Pe):Pe===hr&&(Pe=Math.max(E.height/ye,E.width/ge),ge*=Pe,ye*=Pe,ge>=E.width&&(z=(z+Fe.offsetX+(ge*Fe.x-E.width*Fe.x)/ge)*oe),ye>=E.height&&(ee=(ee+Fe.offsetY+(ye*Fe.y-E.height*Fe.y)/ye)*re),oe*=1/(ge/E.width),re*=1/(ye/E.height),ge=E.width,ye=E.height)}Pe=this.Df()*y.scale;var Te=ge*Pe*ye*Pe,Je=oe*re/Te,Ze=x.__goCache;Pe=null;var it=Mx;if(!b){if(x.sq&&Ze!==void 0&&4<Te&&Je>it*it)for(Ze.gi===null&&(z1(Ze,4,se,ue,x),z1(Ze,16,se,ue,x)),b=Ze.gi,se=b.length,ue=0;ue<se&&b[ue].ratio*b[ue].ratio<Je;ue++)Pe=b[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new Mu(null).context;try{b.drawImage(this.Eg,0,0)}catch(lt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(lt){this.vl=!0}}if(this.vl)return}}switch(b=ge<E.width?Fe.offsetX+(E.width*Fe.x-ge*Fe.x):0,Fe=ye<E.height?Fe.offsetY+(E.height*Fe.y-ye*Fe.y):0,this.flip){case vo:a.translate(Math.min(E.width,ge),0),a.scale(-1,1);break;case Dr:a.translate(0,Math.min(E.height,ye)),a.scale(1,-1);break;case Qo:a.translate(Math.min(E.width,ge),Math.min(E.height,ye)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ze!==void 0&&Pe!==null&&Pe.ratio!==1){a.save(),y=Pe.ratio;try{a.drawImage(Pe.source,z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Fe,Math.min(E.width,ge),Math.min(E.height,ye)),a instanceof fa&&(this.bt=[z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Fe,Math.min(E.width,ge),Math.min(E.height,ye)])}catch(lt){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,b,Fe,Math.min(E.width,ge),Math.min(E.height,ye)),a instanceof fa&&(this.bt=[z,ee,oe,re,b,Fe,Math.min(E.width,ge),Math.min(E.height,ye)])}catch(lt){this.en=!1}switch(this.flip){case vo:a.scale(-1,1),a.translate(-Math.min(E.width,ge),0);break;case Dr:a.scale(1,-1),a.translate(0,-Math.min(E.height,ye));break;case Qo:a.scale(-1,-1),a.translate(-Math.min(E.width,ge),-Math.min(E.height,ye))}}}}},Wc.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=ks(this,!0),ee=this.Eg,re=this.qn,oe=0,se=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,se=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===Pn||z===Bi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===Pn||z===nr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=se)),E=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:se),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ys(this.dc,a,y),this.Ge(0,0,a,y)},Wc.prototype.eh=function(a,y,x,E){Ql(this,a,y,x,E)},An.Object.defineProperties(Wc.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||Ot("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&is(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Tn),E!==null&&x&&qi(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||($e(this,!1),this.v())):x&&W1(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=wp;if(Bs){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<S0&&(Cp(),x=wp),E=di("img"),E.hn=!0,W1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,S0++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new j1),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}}}),Wc.prototype.redraw=Wc.prototype.redraw,Wc.prototype.reloadSource=Wc.prototype.hA;var S0=0,Mx=4;Wc.className="Picture",wp=new zt,Wc.clearCache=Cp;function j1(){this.gi=null}function z1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new Mu(null),ee=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new V1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}j1.className="PictureCacheArray";function V1(a,y){this.source=a,this.ratio=y}V1.className="PictureCacheInstance";function Ap(){this.os=new ni,this.mc=null}Ap.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ni,this.mc=null};function Fp(a,y,x,E,b,z){a.mc=new dl,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function kx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Ap.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new zo(Qs);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Ap.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new zo(Da);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Nf(a,y,x,E,b,z,ee){var re;re===void 0&&(re=!1);var oe=new zo(Vl);oe.point1X=y,oe.point1Y=x,oe.point2X=E,oe.point2Y=b,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function x0(a,y,x,E,b){var z;z===void 0&&(z=!1);var ee=new zo(ze);ee.point1X=y,ee.point1Y=x,ee.endX=E,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}Ap.prototype.arcTo=function(a,y,x,E,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new zo(Ye);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function Nx(a,y,x,E,b,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new zo(Qe,ee,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function G1(a){var y=E0;return y!==null?(E0=null,y.reset(a),y):(y=new Ap,y.reset(a),y)}var E0=null;Ap.className="StreamGeometryContext";function Ju(a,y){var x=a.toLowerCase(),E=At.Ze;E[a]=y,E[x]=a}Ju("Rectangle",function(a,y,x){a="r"+y+","+x;var E=At.Mf[a];return E!==void 0||(E=new ni(ni.u),E.endX=y,E.endY=x,At.Nf<At.vm&&(At.Mf[a]=E,At.Nf++)),E}),Ju("Square",function(a,y,x){a="s"+y+","+x;var E=At.Mf[a];return E!==void 0||(E=new ni(ni.u),E.endX=y,E.endY=x,E.defaultStretch=Ci,At.Nf<At.vm&&(At.Mf[a]=E,At.Nf++)),E}),Ju("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=At.Mf[E];if(b!==void 0)return b;var z=a*At.wg;return b=new ni().add(new dl(a,0,!0).add(new zo(Da,y-a,0)).add(new zo(Vl,y,a,y-z,0,y,z)).add(new zo(Da,y,x-a)).add(new zo(Vl,y-a,x,y,x-z,y-z,x)).add(new zo(Da,a,x)).add(new zo(Vl,0,x-a,z,x,0,x-z)).add(new zo(Da,0,a)).add(new zo(Vl,a,0,0,z,z,0).close())),1<z&&(b.spot1=new tr(0,0,z,z),b.spot2=new tr(1,1,-z,-z)),At.Nf<At.vm&&(At.Mf[E]=b,At.Nf++),b}),Ju("Border","RoundedRectangle"),Ju("Ellipse",function(a,y,x){a="e"+y+","+x;var E=At.Mf[a];return E!==void 0||(E=new ni(ni.F),E.endX=y,E.endY=x,E.spot1=Kh,E.spot2=Md,At.Nf<At.vm&&(At.Mf[a]=E,At.Nf++)),E}),Ju("Circle",function(a,y,x){a="c"+y+","+x;var E=At.Mf[a];return E!==void 0||(E=new ni(ni.F),E.endX=y,E.endY=x,E.spot1=Kh,E.spot2=Md,E.defaultStretch=Ci,At.Nf<At.vm&&(At.Mf[a]=E,At.Nf++)),E}),Ju("TriangleRight",function(a,y,x){return new ni().add(new dl(0,0).add(new zo(Da,y,.5*x)).add(new zo(Da,0,x).close())).pm(0,.25,.5,.75)}),Ju("TriangleDown",function(a,y,x){return new ni().add(new dl(0,0).add(new zo(Da,y,0)).add(new zo(Da,.5*y,x).close())).pm(.25,0,.75,.5)}),Ju("TriangleLeft",function(a,y,x){return new ni().add(new dl(y,x).add(new zo(Da,0,.5*x)).add(new zo(Da,y,0).close())).pm(.5,.25,1,.75)}),Ju("TriangleUp",function(a,y,x){return new ni().add(new dl(y,x).add(new zo(Da,0,x)).add(new zo(Da,.5*y,0).close())).pm(.25,.5,.75,1)}),Ju("Triangle","TriangleUp"),Ju("Diamond",function(a,y,x){return new ni().add(new dl(.5*y,0).add(new zo(Da,0,.5*x)).add(new zo(Da,.5*y,x)).add(new zo(Da,y,.5*x).close())).pm(.25,.25,.75,.75)}),Ju("LineH",function(a,y,x){return a=new ni(ni.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Ju("LineV",function(a,y,x){return a=new ni(ni.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Ju("None","Rectangle"),Ju("BarH","Rectangle"),Ju("BarV","Rectangle"),Ju("MinusLine","LineH"),Ju("PlusLine",function(a,y,x){return new ni().add(new dl(0,x/2,!1).add(new zo(Da,y,x/2)).add(new zo(Qs,y/2,0)).add(new zo(Da,y/2,x)))}),Ju("XLine",function(a,y,x){return new ni().add(new dl(0,x,!1).add(new zo(Da,y,0)).add(new zo(Qs,0,0)).add(new zo(Da,y,x)))}),Ju("LineRight",function(a,y,x){return new ni().add(new dl(.25*y,0,!1).add(new zo(Da,.75*y,.5*x)).add(new zo(Da,.25*y,x)))}),Ju("LineDown",function(a,y,x){return new ni().add(new dl(0,.25*x,!1).add(new zo(Da,.5*y,.75*x)).add(new zo(Da,y,.25*x)))}),Ju("LineLeft",function(a,y,x){return new ni().add(new dl(.75*y,0,!1).add(new zo(Da,.25*y,.5*x)).add(new zo(Da,.75*y,x)))}),Ju("LineUp",function(a,y,x){return new ni().add(new dl(0,.75*x,!1).add(new zo(Da,.5*y,.25*x)).add(new zo(Da,y,.75*x)))}),At.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 ty(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=nl,this.ir=null,this.jr="",this.lr=Dl,this.Gq="",this.Hq=Ra,this.Pq=So,this.Kq=rr,this.Up=null,this.Cq=127,this.zr=Xi,this.yr="gray",this.Vg=4}ty.prototype.copy=function(){var a=new ty;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 or(a,y){a===void 0||a instanceof Wl||typeof a=="string"?Kn.call(this,a):(Kn.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 Ue(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new qt,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Tt(or,Kn),or.prototype.cloneProtected=function(a){Kn.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},Be=or.prototype,Be.Af=function(a){Kn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Be.toString=function(){var a=Wi(this.constructor)+"#"+ur(this);return this.data!==null&&(a+="("+Hr(this.data)+")"),a};function jc(a){a.P===null?a.P=new ty:a.P.nc&&(a.P=a.P.copy())}Be.th=function(){Kn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Be.gk=function(a,y,x,E,b,z,ee){var re=this.diagram;re!==null&&(a===Jn&&y==="elements"?b instanceof Kn?Mg(b,function(oe){By(re.partManager,oe),ta(re,oe)}):qi(re,b):a===gi&&y==="elements"&&(b instanceof Kn?Mg(b,function(oe){Dy(re.partManager,oe,re)}):is(re,b)),re.cb(a,y,x,E,b,z,ee))},Be.La=function(a){if(Kn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof Kn&&Mg(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},or.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},or.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},or.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new ti),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},or.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},or.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Ni();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);qn(y)}},or.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Gr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Jo))break e;zd(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Kn.Link),x.adornedObject=y)}if(x!==null){x.type===Kn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Tx(this,a),y=this.adornments;y.next();)y.value.La()}},or.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function ny(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Tx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function P0(a){if(ag(a)===!1){ry(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function _1(a){if(a.G|=2097152,ag(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||U1(a,y,x),x=a.Ib;var E=qt.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),qt.free(E),ry(a,!1)}}or.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Qr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},or.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Cr;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Ue.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,E,b,z);a.rotate(this.Kb,ee.x,ee.y),Ue.free(ee)}},or.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},or.prototype.moveTo=function(a,y,x){a=Ue.allocAt(a,y),this.move(a,x),Ue.free(a)},or.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())},or.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())},or.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new ti),y.I(a)!==null)return y.I(a);var x=Kn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Tf(a,y,x,E){E===void 0&&(E=new Ue),x=x.Mc()?Cr:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}or.prototype.mi=function(a){return a===void 0&&(a=new qt),a.assign(this.actualBounds)},or.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function H1(a){var y=Ue.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof to?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Tg(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=E1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,E-=ee/2,b-=ee/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}or.prototype.arrange=function(){if(ct(this)===!1)_1(this);else{pt(this,!1);var a=this.Ib,y=qt.alloc();y.assign(a);var x=sg(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;U1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||At.B(y.width,a.width)&&At.B(y.height,a.height)||0<=this.vw&&this.C(16),qt.free(y),ry(this,!1)}},Be=or.prototype,Be.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=qt.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),qt.free(b)}!(this.G&65536)&&a.D(y)||X1(this,E,x),x.N(),!a.w()&&!y.w()||ws(a,y)||(this instanceof xi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Be.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&Z1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new Ue(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),ag(this)===!1&&ct(this)===!1&&(P0(this),_1(this)),!0};function Z1(a,y,x,E,b){y===null||a instanceof Jo||(y=y.animationManager,y.zb&&Ku(y,a,new Ue(E,b),x))}Be.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;ag(this)||ct(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}P0(this)},Be.Av=function(){this.G&=-2097153,P0(this)};function U1(a,y,x){var E=H1(a),b=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?K1(a,y,x,b,E):Y1(a,y,x,b,E):z?K1(a,y,x,b,E):ee&&Y1(a,y,x,b,E),a.G|=2097152,Ue.free(E),a.Uk()}function K1(a,y,x,E,b){var z=y.x,ee=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Jo||Ku(x,a,new Ue(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new Ue(z,ee),y.copy()))}function Y1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function X1(a,y,x){oy(a,!1),a instanceof xi&&pu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?sg(a)?(il(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Be.si=function(){return!0},Be.Zc=function(){return!0},Be.ph=function(){return!1},Be.Dd=function(){return!0};function iy(a,y,x,E){y.constructor===a.constructor||q1||(q1=!0,jn('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),jn(" Old class: "+Wi(a.constructor)+", new class: "+Wi(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,se=!1;a instanceof xi&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,se=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof xi&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=se?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}or.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},or.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},or.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},or.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},or.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},or.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},or.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},or.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},or.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 ag(a){return(a.G&32768)!==0}function ry(a,y){a.G=y?a.G|32768:a.G&-32769}function oy(a,y){a.G=y?a.G|65536:a.G&-65537}function sg(a){return(a.G&131072)!==0}Be=or.prototype,Be.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function w0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Be.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Be.N=function(){var a=this.diagram;a!==null&&!ct(this)&&!ag(this)&&this.isVisible()&&this.Ib.w()&&a.N(Tg(this,this.Ib))},Be.v=function(){Kn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof xi&&this.labeledLink!==null&&Ul(this.labeledLink),a.$b(!0))},Be.Vo=function(a){a||(a=this.Ah,a!==null&&dy(a,this))},Be.Wo=function(a){a||(a=this.Ah,a!==null&&hy(a,this))},Be.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Be.oz=function(){return ay(this,this)};function ay(a,y){var x=y.containingGroup;return x!==null?1+ay(a,x):y instanceof xi&&(y=y.labeledLink,y!==null)?ay(a,y):0}Be.sz=function(){return J1(this,this)};function J1(a,y){var x=y.containingGroup;return x!==null||y instanceof xi&&(x=y.labeledLink,x!==null)?J1(a,x):y}Be.Td=function(a){return a instanceof Gr?sy(this,this,a):!1};function sy(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!sy(a,E,x)?y instanceof xi&&(y=y.labeledLink,y!==null)?sy(a,y,x):!1:!0}Be.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Gr&&w0(y,!0),y instanceof xi){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 xi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Gr&&w0(y,!1),y instanceof xi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},or.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof xi&&this.isLinkLabel)},or.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 xi&&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 Q1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function lg(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Jo)){if(a.add(y),y instanceof xi){if(x&&y instanceof Gr)for(var ee=y.memberParts;ee.next();)lg(a,ee.value,x,E,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,se=re.toNode;oe=oe===null||a.contains(oe),se=se===null||a.contains(se),(b?oe&&se:oe||se)&&lg(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)lg(a,y.value,x,E-1,b,z)}else if(y instanceof ei)for(y=y.labelNodes;y.next();)lg(a,y.value,x,E,b,z)}}An.Object.defineProperties(or.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?cr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(gi,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(Jn,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(jc(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&&nt(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 Jo?this.type!==Kn.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:So},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),jc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:rr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),jc(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&&(jc(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:Ra},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),jc(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,ct(this)===!1&&(P0(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),Z1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof Jo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof Jo?this instanceof Jo&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(zd(x),x=x.copy(),x!==null&&iy(this,x,y,a))):(z!==null&&z.jm(E,a),x=wS(x.partManager,E,a),x!==null&&(zd(x),x=x.copy(),x===null||x instanceof ei||(E=this.location.copy(),iy(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){iy(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(jc(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&&(jc(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&&(jc(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 ei?(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&&(jc(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&&(jc(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&&(jc(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:nl},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),jc(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&&(jc(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&&(jc(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:Dl},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),jc(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&&Ot("Cannot make a Group a member of itself: "+this.toString()),Ot("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?hy(y,this):this instanceof Gr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?dy(a,this):this instanceof Gr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Gr){for(x=new Tn,lg(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof xi)for(E=E.linksConnected;E.next();)bp(E.value)}if(this instanceof xi){for(x=this.linksConnected;x.next();)bp(x.value);x=this.labeledLink,x!==null&&bp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&nt(y,-1,a))}}else Ot("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&&(jc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof xi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(jc(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&&(jc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Xi},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),jc(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&&(jc(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&&(jc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),or.prototype.invalidateLayout=or.prototype.C,or.prototype.findCommonContainingGroup=or.prototype.px,or.prototype.isMemberOf=or.prototype.Td,or.prototype.findTopLevelPart=or.prototype.sz,or.prototype.findSubGraphLevel=or.prototype.oz,or.prototype.ensureBounds=or.prototype.Va,or.prototype.getDocumentBounds=or.prototype.mi,or.prototype.findObject=or.prototype.fb,or.prototype.moveTo=or.prototype.moveTo,or.prototype.invalidateAdornments=or.prototype.Wb,or.prototype.clearAdornments=or.prototype.Ej,or.prototype.removeAdornment=or.prototype.Jf,or.prototype.addAdornment=or.prototype.bh,or.prototype.findAdornment=or.prototype.Pj,or.prototype.updateTargetBindings=or.prototype.La;var q1=!1;or.className="Part",or.LayoutNone=0,or.LayoutAdded=1,or.LayoutRemoved=2,or.LayoutShown=4,or.LayoutHidden=8,or.LayoutNodeSized=16,or.LayoutGroupLayout=32,or.LayoutNodeReplaced=64,or.LayoutStandard=127,or.LayoutAll=16777215;function Jo(a,y){a===void 0||a instanceof Wl||typeof a=="string"?or.call(this,a):(or.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)}Tt(Jo,or),Jo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Jo.prototype.updateRelationshipsFromData=function(){},Jo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ei&&y instanceof to){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof to&&(b.ua=a)}}},Jo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ct(a))},Jo.prototype.Zc=function(){return!1},Jo.prototype.gk=function(a,y,x,E,b,z,ee){if(a===Jn&&y==="elements"){if(b instanceof Sc)this.$a===null&&(this.$a=b);else if(b instanceof Kn){var re=b.Nl(function(oe){return oe instanceof Sc});re instanceof Sc&&this.$a===null&&(this.$a=re)}}else a===gi&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Kn&&this.$a.rg(E)&&(this.$a=null));or.prototype.gk.call(this,a,y,x,E,b,z,ee)},Jo.prototype.updateAdornments=function(){},Jo.prototype.Lj=function(){},An.Object.defineProperties(Jo.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}}}),Jo.className="Adornment";function ly(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ld,this.er=F0,this.Kr=this.ij=this.Nq=this.Mq=null}ly.prototype.copy=function(){var a=new ly;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 xi(a,y){a===void 0||a instanceof Wl||typeof a=="string"?or.call(this,a):(or.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new tn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Tt(xi,or),xi.prototype.cloneProtected=function(a){or.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Be=xi.prototype,Be.Af=function(a){or.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Of(a){a.Ba===null?a.Ba=new ly:a.Ba.nc&&(a.Ba=a.Ba.copy())}Be.th=function(){or.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function $1(a,y){y!==null&&(a.af===null&&(a.af=new Tn),a.af.add(y))}function eS(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}Be.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=eS(this,a,y,x),a!==null&&a.Sl()},Be.gk=function(a,y,x,E,b,z,ee){a===Jn&&y==="elements"?this.wc=null:a===gi&&y==="elements"&&(this.wc=null),or.prototype.gk.call(this,a,y,x,E,b,z,ee)},Be.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||($c(x.fromPort),$c(x.toPort),x.bb())}};function tS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&($c(x.fromPort),$c(x.toPort),x.bb())}}function $c(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||$c(y.port)}}Be.si=function(){return!0},xi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},xi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},xi.prototype.isVisible=function(){if(!or.prototype.isVisible.call(this))return!1;var a=!0,y=$d,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===$d){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Xs){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Oh&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},xi.prototype.Zb=function(a){or.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},xi.prototype.qx=function(){var a=new Tn,y=new Tn;return nS(this,this,a,y),y.iterator};function nS(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&nS(a,b?ee.toNode:ee.fromNode,x,E):E.add(ee)})}}xi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ei(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Be=xi.prototype,Be.Mo=function(a){a===void 0&&(a=null);var y=new Ei(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Be.Sd=function(a){a===void 0&&(a=null);var y=new Ei(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Be.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Tn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Tn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new ri(x):cr},Be.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Tn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new ri(x):cr},Be.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Tn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new ri(x):cr},Be.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ei(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},Be.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ei(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function C0(a,y,x){$c(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,x),ee!==null&&(ee.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function A0(a,y,x){$c(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=ee)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):lm(y)))}function lm(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}xi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Be=xi.prototype,Be.Vo=function(a){or.prototype.Vo.call(this,a),a||(lm(this),a=this.Yk,a!==null&&dS(a,this))},Be.Wo=function(a){or.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Be.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,or.prototype.Lj.call(this)},Be.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;iS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function iS(a){a.wc===null?a.wc=new ti:a.wc.clear(),a.qm(a,function(y,x){rS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function rS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function uy(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=Ni()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);qn(x)}}}Be.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Be.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Be.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)w0(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;)w0(y,!1),y=y.pg();return x},Be.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},Be.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof xi)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},Be.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new Tn;return a(this,y),y},Be.uz=function(){return oS(this,this)};function oS(a,y){return y=y.pg(),y===null?0:1+oS(a,y)}Be.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ei(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},Be.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new tn,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new tn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new ri(x):cr},Be.wz=function(a){a===void 0&&(a=1/0);var y=new Tn;return lg(y,this,!1,a,!0),y},xi.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 Tn;x.add(this),aS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===$d),y.Ue=!1}};function aS(a,y,x,E,b,z,ee){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),aS(oe,y,x,E-1,b,z,ee)))}else sS(a,y,x,b,z,ee)}function sS(a,y,x,E,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var se=re.value;if(se.isTreeLink&&(se=se.To(a),se!==null&&se!==a)){var ue=y.contains(se);if(ue||y.add(se),ee){var ge=x?se.Oo():se.Po();oe.uv=a,ge.all(function(ye){return function(Pe){return Pe===ye.uv||!Pe.isTreeExpanded}}(oe))&&E.Aj(se,b),se.oh(),se.Zb(!1)}se.isTreeExpanded&&(se.wasTreeExpanded=se.isTreeExpanded,ue||sS(se,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}xi.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 Tn;x.add(this),lS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===$d),y.Ue=!1}};function lS(a,y,x,E,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),se={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var ge=x?ue.Oo():ue.Po();se.vv=a,ge.all(function(ye){return function(Pe){return Pe===ye.vv||!Pe.isTreeExpanded}}(se))&&b.Cj(ue,z)}(2<E||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,lS(ue,y,x,E-1,b,z,ee))}se={vv:se.vv}}a.isTreeExpanded=!0}An.Object.defineProperties(xi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:F0},set:function(a){var y=this.portSpreading;y!==a&&(Of(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&&pu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ld},set:function(a){typeof a=="number"&&(a=new ao(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Of(this),this.Ba.yp=a;var x=this.diagram;x!==null&&pu(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&&(Of(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&&(Of(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&&(Of(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var ee=z.wa(E);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(dS(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),Ul(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&iS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Of(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))}}}),xi.prototype.expandTree=xi.prototype.expandTree,xi.prototype.collapseTree=xi.prototype.collapseTree,xi.prototype.findTreeParts=xi.prototype.wz,xi.prototype.findTreeChildrenNodes=xi.prototype.Ou,xi.prototype.findTreeChildrenLinks=xi.prototype.Qo,xi.prototype.findTreeLevel=xi.prototype.uz,xi.prototype.findTreeParentChain=xi.prototype.vz,xi.prototype.findTreeParentNode=xi.prototype.pg,xi.prototype.findTreeParentLink=xi.prototype.kh,xi.prototype.findCommonTreeParent=xi.prototype.gz,xi.prototype.findTreeRoot=xi.prototype.xz,xi.prototype.isInTreeOf=xi.prototype.Nz,xi.prototype.findPort=xi.prototype.ns,xi.prototype.findLinksTo=xi.prototype.kz,xi.prototype.findLinksBetween=xi.prototype.jz,xi.prototype.findNodesInto=xi.prototype.Oo,xi.prototype.findNodesOutOf=xi.prototype.Po,xi.prototype.findNodesConnected=xi.prototype.Mu,xi.prototype.findLinksInto=xi.prototype.Sd,xi.prototype.findLinksOutOf=xi.prototype.Mo,xi.prototype.findExternalTreeLinksConnected=xi.prototype.qx,xi.prototype.invalidateConnectedLinks=xi.prototype.Bd,xi.prototype.invalidateLinkBundle=xi.prototype.Lz;var Ox=new Bt(xi,"SpreadingNone",10),F0=new Bt(xi,"SpreadingEvenly",11),cy=new Bt(xi,"SpreadingPacked",12);xi.className="Node",xi.SpreadingNone=Ox,xi.SpreadingEvenly=F0,xi.SpreadingPacked=cy;function Gr(a,y){a===void 0||a instanceof Wl||typeof a=="string"?xi.call(this,a):(xi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Tn,this.$a=null,this.Sc=new vs,this.Sc.group=this,this.gl=new Tn,this.tb=this.$p=null,y&&Object.assign(this,y)}Tt(Gr,xi),Gr.prototype.cloneProtected=function(a){xi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Sc});y instanceof Sc?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())},Be=Gr.prototype,Be.Af=function(a){xi.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 xi)x.Bd(y);else if(x instanceof ei)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Be.gk=function(a,y,x,E,b,z,ee){if(a===Jn&&y==="elements"){if(b instanceof Sc)this.$a===null?this.$a=b:this.$a!==b&&Ot("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof Kn){var re=b.Nl(function(oe){return oe instanceof Sc});re instanceof Sc&&(this.$a===null?this.$a=re:this.$a!==re&&Ot("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===gi&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Kn&&this.$a.rg(E)&&(this.$a=null));xi.prototype.gk.call(this,a,y,x,E,b,z,ee)},Be.Xl=function(a,y){xi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Kn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Kn&&(a=a.Pb()),this.tb===null&&(this.tb=new qt),a.mi(this.tb),a instanceof to&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Be.eh=function(a,y,x,E){this.nf=this.$a,xi.prototype.eh.call(this,a,y,x,E)},Be.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof ei||y.Va()}),xi.prototype.Va.call(this)},Be.si=function(){if(!xi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof xi){if(y.isVisible()&&ct(y))return!1}else if(y instanceof ei&&y.isVisible()&&ct(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function dy(a,y){if(a.Gn.add(y)){y instanceof Gr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function hy(a,y){if(a.Gn.remove(y)){y instanceof Gr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Be.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)}xi.prototype.Lj.call(this)},Gr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Rt(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Gr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=Rt(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Gr.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))},Be=Gr.prototype,Be.Bd=function(a){var y=(this.U&65536)!==0;if(xi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?($c(x.fromPort),$c(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&($c(x.fromPort),$c(x.toPort),x.bb()))}}},Be.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 Tn,E=y.iterator;E.next();){var b=E.value;if(b instanceof xi)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Be.iz=function(){var a=this.Rj();a.add(this);for(var y=new Tn,x=a.iterator;x.next();){var E=x.value;if(E instanceof xi)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Be.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new Tn;return a(this,y),y},Be.Rj=function(){var a=new Tn;return lg(a,this,!0,0,!0),a.remove(this),a},Be.Zb=function(a){xi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Gr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();uS(this,y,a,this),a.Ue=!1}};function uS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Gr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,uS(z,y,x,E)),z instanceof xi)z.Bd(y),x.Aj(z,E);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Gr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();cS(this,y,a,this),a.Ue=!1}};function cS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Gr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,cS(z,y,x,E)),z instanceof xi)z.Bd(y),x.Cj(z,E);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Gr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=Ue.alloc(),xi.prototype.move.call(this,a,y),a=new Tn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof ei&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof xi&&b.isLinkLabel)){var ee=b.position,re=b.location;ee.w()?(z.x=ee.x+E,z.y=ee.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof ei&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+E,z.y=ee.y+x,z.w()?b.move(z):b.bb(),gy(b)&&b.bb());Ue.free(z)}},An.Object.defineProperties(Gr.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&&Ot("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&&(Of(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&&(Of(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&&(Of(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Of(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)}}}),Gr.prototype.expandSubGraph=Gr.prototype.expandSubGraph,Gr.prototype.collapseSubGraph=Gr.prototype.collapseSubGraph,Gr.prototype.findSubGraphParts=Gr.prototype.Rj,Gr.prototype.findContainingGroupChain=Gr.prototype.hz,Gr.prototype.findExternalNodesConnected=Gr.prototype.iz,Gr.prototype.findExternalLinksConnected=Gr.prototype.Lu,Gr.prototype.ensureBounds=Gr.prototype.Va,Gr.className="Group";function Sc(a){gt.call(this),this.yb=bc,this.ko=new qt(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Tt(Sc,gt),Sc.prototype.cloneProtected=function(a){gt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Sc.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return rl(0,0,y.width,y.height,a.x,a.y)},Sc.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Gr||a instanceof Jo)||Ot("Placeholder is not inside a Group or Adornment."),a instanceof Gr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(ys(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Ue.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ue.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof to&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,se=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Kn.Link&&(re=z.ga(a.category==="Selection"?Ra:a.locationSpot,Ue.alloc()),a.location=re,Ue.free(re)),isNaN(se)||isNaN(ee)?(a=z.ga(Ra,Ue.alloc()),se=qt.allocAt(a.x,a.y,0,0),se.Ye(z.ga(tu,a)),se.Ye(z.ga(ca,a)),se.Ye(z.ga(Bu,a)),ys(y,se.width+E||0,se.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Ue.free(a),qt.free(se)):(ys(y,se+E||0,ee+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Sc.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},Sc.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Gr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=qt.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Gr&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),qt.free(x),E&&y instanceof Gr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Sc.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Gr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof ei&&(!y.computesBoundsIncludingLinks||et(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},An.Object.defineProperties(Sc.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ao(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Sc.className="Placeholder";function ei(a){or.call(this,Kn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=xc,this.Om=0,this.Qm=xc,this.Rm=NaN,this.qj=vy,this.po=.5,this.wd=null,this.Nb=new tn().freeze(),this.Tg=this.Mg=null,this.ml=new qt,this.ua=new ni,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ue,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Tt(ei,or),ei.prototype.cloneProtected=function(a){or.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())},Be=ei.prototype,Be.Af=function(a){or.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&&$c(y),a=a.toPort,a!==null&&$c(a)},Be.qb=function(a){a.classType===ei?(a.value&2)===2?this.routing=a:a===gd||a===Rf||a===Dp?this.curve=a:a===dm||a===k0||a===N0?this.adjusting=a:a!==vy&&a!==xc&&Ot("Unknown Link enum value for a Link property: "+a):or.prototype.qb.call(this,a)},Be.Xc=function(){this.ba===null&&(this.ba=new Xr)},Be.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ct(a)||ag(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ct(a)||ag(a)))},Be.zv=function(){return!1},Be.Av=function(){},Be.Zc=function(){return!1},ei.prototype.computeAngle=function(a,y,x){return ei.computeAngle(y,x)},ei.computeAngle=function(a,y){switch(a){default:case xc:a=0;break;case hm:a=y;break;case fm:a=y+90;break;case gm:a=y-90;break;case yy:a=y+180;break;case T0:a=At.bp(y),90<a&&270>a&&(a-=180);break;case pm:a=At.bp(y+90),90<a&&270>a&&(a-=180);break;case mm:a=At.bp(y-90),90<a&&270>a&&(a-=180);break;case O0:if(a=At.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return At.bp(a)};function bp(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&hy(x,a),a.Ah=y,y!==null&&dy(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Be=ei.prototype,Be.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&or.prototype.oh.call(this)},Be.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Be.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function dS(a,y){a.wd===null&&(a.wd=new Tn),a.wd.add(y),a.v()}Be.Vo=function(a){if(or.prototype.Vo.call(this,a),Og(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,C0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||C0(x,this,E)}um(this)}},Be.Wo=function(a){if(or.prototype.Wo.call(this,a),Og(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,A0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||A0(x,this,E)}cm(this)}},Be.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))},ei.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ei.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?or.prototype.move.call(this,a,!1):(a=Ue.allocAt(x.x+E,x.y+b),or.prototype.move.call(this,a,!1),Ue.free(a)),If(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},ei.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},ei.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},ei.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ui),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===gd))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()===gd){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return At.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),At.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=ee[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},ei.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()===gd))return this.ua.wx(.5);if(this.computeCurve()===gd&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),At.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Be=ei.prototype,Be.i=function(a){return this.Nb.s[a]},Be.dd=function(a,y){this.Nb.cd(a,y)},Be.L=function(a,y,x){this.Nb.cd(a,new Ue(y,x))},Be.Kz=function(a,y){this.Nb.Gb(a,y)},Be.m=function(a,y,x){this.Nb.Gb(a,new Ue(y,x))},Be.ne=function(a){this.Nb.add(a)},Be.yf=function(a,y){this.Nb.add(new Ue(a,y))},Be.pv=function(a){this.Nb.mb(a)},Be.Fj=function(){this.Nb.clear()};function If(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new tn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new Ue(ee.x+y,ee.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Ul(a)),E?b0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&Xd(ee.animationManager,a,b),a.g("points",z,b)}}Be.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Be.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=ee=1/0;for(var oe=y.s,se=oe.length,ue=0;ue<se;ue++){var ge=oe[ue];ee=Math.min(ge.x,ee),re=Math.min(ge.y,re),ge.freeze()}if(y.freeze(),se===z){for(z=0;z<se;z++)if(ue=b[z],ge=oe[z],ue.x-x!==ge.x-ee||ue.y-E!==ge.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Xd(x.animationManager,this,y),b0(this),this.g("points",a,y)}},Be.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function b0(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),M0(a,!1))}Be.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())}},Be.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()}}},ei.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?($g||($g=new xi,$g.desiredSize=Na,$g.Va()),this.defaultFromPoint&&($g.location=this.defaultFromPoint,$g.Va(),y=a=$g)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(ep||(ep=new xi,ep.desiredSize=Na,ep.Va()),this.defaultToPoint&&(ep.location=this.defaultToPoint,ep.Va(),b=E=ep)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=Bp(ee),oe=Bp(x),se=y===b&&y!==null,ue=this.isOrthogonal,ge=this.curve===gd;this.Wf=se&&!ue?ge=!0:!1;var ye=this.computeAdjusting()===xc||se;if(!ue&&!se&&re&&oe){if(re=!1,!ye&&3<=z&&(ye=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,ye,z-1,oe))&&(ye=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,ye,z-1,oe)),!re)if(this.Fj(),ge){z=this.getLinkPoint(a,y,ee,!0,!1,E,b),ye=this.getLinkPoint(E,b,x,!1,!1,a,y),re=ye.x-z.x,oe=ye.y-z.y,se=this.computeCurviness(),ge=ue=0;var Pe=z.x+re/3,Fe=z.y+oe/3,Te=Pe,Je=Fe;At.B(oe,0)?Je=0<re?Je-se:Je+se:(ue=-re/oe,ge=Math.sqrt(se*se/(ue*ue+1)),0>se&&(ge=-ge),Te=(0>oe?-1:1)*ge+Pe,Je=ue*(Te-Pe)+Fe),Pe=z.x+2*re/3,Fe=z.y+2*oe/3;var Ze=Pe,it=Fe;At.B(oe,0)?it=0<re?it-se:it+se:(Ze=(0>oe?-1:1)*ge+Pe,it=ue*(Ze-Pe)+Fe),this.Fj(),this.ne(z),this.yf(Te,Je),this.yf(Ze,it),this.ne(ye),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,ye=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,ye),b=this.getLinkPoint(z,ye,x,!1,!1,a,y),this.hasCurviness()?(ye=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+ye/2,y=E.y+x/2,z=a,re=y,At.B(x,0)?re=0<ye?re-ee:re+ee:(ye=-ye/x,z=Math.sqrt(ee*ee/(ye*ye+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=ye*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=qt.alloc(),y.mi(re),oe=re.ca(b),ye.mi(re),se=re.ca(E),(oe||se)&&(ee=y.ga(D0(ee),new Ue),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=ye.ga(D0(x),new Ue),this.dd(1,this.getLinkPointFromPoint(z,ye,x,E,!1,x))),qt.free(re))}else{ge=this.isAvoiding,ye&&(ue&&ge||se)&&this.Fj();var lt=se?this.computeCurviness():0;ge=this.getLinkPoint(a,y,ee,!0,ue,E,b),Pe=Te=Fe=0,(ue||!re||se)&&(Je=this.computeEndSegmentLength(a,y,ee,!0),Pe=this.getLinkDirection(a,y,ge,ee,!0,ue,E,b),se&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(Pe-=ue?90:30,0>lt&&(Pe-=180)),0>Pe?Pe+=360:360<=Pe&&(Pe-=360),se&&(Je+=Math.abs(lt)*(ue?1:2)),Pe===0?Fe=Je:Pe===90?Te=Je:Pe===180?Fe=-Je:Pe===270?Te=-Je:(Fe=Je*Math.cos(Pe*Math.PI/180),Te=Je*Math.sin(Pe*Math.PI/180)),ee.Mc()&&se&&(Je=y.ga(Cr,Ue.alloc()),Ze=Ue.allocAt(Je.x+1e3*Fe,Je.y+1e3*Te),this.getLinkPointFromPoint(a,y,Je,Ze,!0,ge),Ue.free(Je),Ue.free(Ze))),Je=this.getLinkPoint(E,b,x,!1,ue,a,y);var ft=it=Ze=0;if(ue||!oe||se){var St=this.computeEndSegmentLength(E,b,x,!1);ft=this.getLinkDirection(E,b,Je,x,!1,ue,a,y),se&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(ft+=ue?0:30,0>lt&&(ft+=180)),0>ft?ft+=360:360<=ft&&(ft-=360),se&&(St+=Math.abs(lt)*(ue?1:2)),ft===0?Ze=St:ft===90?it=St:ft===180?Ze=-St:ft===270?it=-St:(Ze=St*Math.cos(ft*Math.PI/180),it=St*Math.sin(ft*Math.PI/180)),x.Mc()&&se&&(x=b.ga(Cr,Ue.alloc()),ee=Ue.allocAt(x.x+1e3*Ze,x.y+1e3*it),this.getLinkPointFromPoint(E,b,x,ee,!1,Je),Ue.free(x),Ue.free(ee))}x=ge,(ue||!re||se)&&(x=new Ue(ge.x+Fe,ge.y+Te)),ee=Je,(ue||!oe||se)&&(ee=new Ue(Je.x+Ze,Je.y+it)),!ye&&!ue&&re&&3<z&&this.adjustPoints(0,ge,z-2,ee)?this.dd(z-1,Je):!ye&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,Je)?this.dd(0,ge):!ye&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,ge),this.dd(z-1,Je)):(this.Fj(),this.ne(ge),(ue||!re||se)&&this.ne(x),ue&&this.addOrthoPoints(x,Pe,ee,ft,a,E),(ue||!oe||se)&&this.ne(ee),this.ne(Je))}return!0};function fy(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}ei.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Ue),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ee=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,se=a.m11*b,ue=b*(a.m21*a.dy-a.m22*a.dx),ge=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ee+E.y*oe+ue,E=E.x*re+E.y*se+ge,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*se+ge}return y.Sj(b,E,ee,x,z),a!==null&&z.transform(a),z};function B0(a,y){var x=y.Zn;return x===null&&(x=new tp,x.port=y,x.node=y.part,y.Zn=x),SS(x,a)}ei.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new Ue),x.sb()&&!Bp(x))return y.ga(x,re),re;if(x.$c()){var oe=B0(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===fS){var se=B0(this,ee);if(se!==null&&oe.Gl<se.Gl){oe=Ue.alloc(),se=Ue.alloc();var ue=new qt(y.ga(Ra,oe),y.ga(tu,se)),ge=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,ge,!E,b,a,y,se),(x.Hf(ps)||x.Hf(Bl))&&a.y>=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(Qu)||x.Hf(Kl))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),Ue.free(oe),Ue.free(se)}}return re}}return x=y.ga(D0(x),Ue.alloc()),this.pointsCount>(b?6:2)?(ee=E?this.i(1):this.i(this.pointsCount-2),b&&(ee=fy(x,ee.copy()))):(oe=this.computeSpot(!E,ee),z=Ue.alloc(),ee=ee.ga(D0(oe),z),b&&(ee=fy(x,ee)),Ue.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),Ue.free(x),re},ei.prototype.getLinkDirection=function(a,y,x,E,b,z,ee,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(oe=B0(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(Cr,Ue.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?fy(oe,re.copy()):x):(x=Ue.alloc(),re=re.ga(Cr,x),Ue.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Ue.free(oe),oe=x}return E.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Bp(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},ei.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=B0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},ei.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Cr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Dl?ll:y)):(a=y||this.toPort,a===null?a=Cr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Dl?ll:y)),a};function Bp(a){return a===ll||a.x===.5&&a.y===.5}function D0(a){return a.x===.5&&a.y===.5?a:Cr}ei.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==xc&&4<this.pointsCount?this.computeMidPoint(new Ue):(a=y.Zn,a=a!==null?SS(a,this):null,a!==null?a.Zo:y.ga(Cr))},ei.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},ei.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=Qr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Rv(this,y,x,b),z===void 0&&Qr.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,se=oe.length;se--;){var ue=oe[se];if(ue.visible||ue===this.locationObject){var ge=ue.actualBounds,ye=this.naturalBounds;if(!(ge.x>ye.width||ge.y>ye.height||0>ge.x+ge.width||0>ge.y+ge.height)){if(ge=Qr.alloc(),ge.set(ee),ue instanceof Kn)re=ue.Cf(a,y,x,E,b,ge);else if(this.path===ue){if(ue instanceof to)if(re=a,ye=E,ue.pickable===!1)re=!1;else if(ge.multiply(ue.transform),ye)e:{var Pe=re,Fe=ge;if(ue.fh(Pe,Fe))re=!0;else{if(Fe===void 0&&(Fe=ue.transform,Pe.Re(ue.actualBounds))){re=!0;break e}re=Pe.left,ye=Pe.right;var Te=Pe.top;Pe=Pe.bottom;var Je=Ue.alloc(),Ze=Ue.alloc(),it=Ue.alloc(),lt=Qr.alloc();lt.set(Fe),lt.bv(ue.transform),lt.Vj(),Ze.x=ye,Ze.y=Te,Ze.transform(lt),Je.x=re,Je.y=Te,Je.transform(lt),Fe=!1,Ng(ue,Je,Ze,it)?Fe=!0:(Je.x=ye,Je.y=Pe,Je.transform(lt),Ng(ue,Je,Ze,it)?Fe=!0:(Ze.x=re,Ze.y=Pe,Ze.transform(lt),Ng(ue,Je,Ze,it)?Fe=!0:(Je.x=re,Je.y=Te,Je.transform(lt),Ng(ue,Je,Ze,it)&&(Fe=!0)))),Qr.free(lt),Ue.free(Je),Ue.free(Ze),Ue.free(it),re=Fe}}else re=ue.fh(re,ge)}else re=rs(ue,a,E,ge);re&&(ye=ue,y!==null&&(ye=y(ue)),ye&&(x===null||x(ye))&&b.add(ye)),Qr.free(ge)}}}return z===void 0&&Qr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Qr.free(ee),!1},ei.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?gd:this.curve},ei.prototype.computeCorner=function(){if(this.curve===gd)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ei.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},ei.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=pS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,ee=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===hm||E===T0||E===yy?a=Math.max(a,b):E===gm||E===mm||E===fm||E===pm?a=Math.max(a,ee):(y=y.ga(Cr).ab(x.ga(Cr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===gd&&(a*=1.333)}}return a},ei.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===xc&&x.bb()}},ei.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=gS;var y=this.Sf;if(y!==null){for(var x=Ni(),E=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();x.push(ee),E+=ee}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),qn(x)}}return a},ei.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},ei.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},ei.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===k0)return!1;b===N0&&(b=dm)}switch(b){case k0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(E)){b=z.x,z=z.y;var re=ee.x-b,oe=ee.y-z,se=Math.sqrt(re*re+oe*oe);if(!At.$(se,0)){if(At.$(re,0))var ue=0>oe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var ge=y.y;re=E.x-ee;var ye=E.y-ge;for(oe=Math.sqrt(re*re+ye*ye),At.$(re,0)?ye=0>ye?-Math.PI/2:Math.PI/2:(ye=Math.atan(ye/Math.abs(re)),0>re&&(ye=Math.PI-ye)),se=oe/se,ue=ye-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),At.$(y,0)||(At.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=se,this.L(a,ee+y*Math.cos(re),ge+y*Math.sin(re)));this.dd(x,E)}}return!0;case N0:if(z=this.i(a),ge=this.i(x),!z.Xa(y)||!ge.Xa(E)){b=z.x,z=z.y,ee=ge.x,ge=ge.y,se=(ee-b)*(ee-b)+(ge-z)*(ge-z),re=y.x,ue=y.y,oe=E.x,ye=E.y;var Pe=1;if(oe-re!==0){var Fe=(ye-ue)/(oe-re);Pe=Math.sqrt(1+1/(Fe*Fe))}else Fe=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Te=y.x,Je=y.y,Ze=.5;se!==0&&(Ze=((b-Te)*(b-ee)+(z-Je)*(z-ge))/se);var it=b+Ze*(ee-b),lt=z+Ze*(ge-z);y=Math.sqrt((Te-it)*(Te-it)+(Je-lt)*(Je-lt)),Je<Fe*(Te-it)+lt&&(y=-y),0<Fe&&(y=-y),Te=re+Ze*(oe-re),Ze=ue+Ze*(ye-ue),Fe!==0?(y=Te+y/Pe,this.L(a,y,Ze-(y-Te)/Fe)):this.L(a,Te,Ze+y)}this.dd(x,E)}return!0;case dm:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ue=z.y,ge=re,se=ue,At.B(b.y,z.y)?At.B(z.x,ee.x)?ue=y.y:At.B(z.y,ee.y)&&(re=y.x):At.B(b.x,z.x)&&(At.B(z.y,ee.y)?re=y.x:At.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,re,ue),b=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ue=z.y,oe=re,ye=ue,At.B(b.y,z.y)?At.B(z.x,ee.x)?ue=E.y:At.B(z.y,ee.y)&&(re=E.x):At.B(b.x,z.x)&&(At.B(z.y,ee.y)?re=E.x:At.B(z.x,ee.x)&&(ue=E.y)),this.L(x-1,re,ue),gy(this))){this.L(a+1,ge,se),this.L(x-1,oe,ye),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},ei.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ee=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(vm,vm),oe.Bc(vm,vm),re.Ye(a),oe.Ye(x);var se=Ue.alloc(),ue=Ue.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&oe.right>a.x||E===90&&x.y>a.y&&oe.right>a.x?(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),E===180?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=se.x,ue.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(se.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=se.x,ue.y=x.y):E===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(se.x=a.x,se.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=se.y)):(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?se.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===180||E===270)&&(se.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=se.y),se.y>re.top&&se.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(se.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(se.x,x.y)):(se.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=se.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&oe.left<a.x||E===90&&x.y>a.y&&oe.left<a.x?(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),E===0?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=se.x,ue.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(se.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=se.x,ue.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(se.x=a.x,se.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=se.y)):(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?se.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===0||E===270)&&(se.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=se.y),se.y>re.top&&se.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(se.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(se.x,x.y)):(se.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=se.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&oe.bottom>a.y||E===0&&x.x>a.x&&oe.bottom>a.y?(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),E===270?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=se.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(se.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=se.y):E===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(se.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),se.y=a.y,ue.x=se.x)):(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?se.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(se.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=se.x,ue.y=x.y),se.x>re.left&&se.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(se.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,se.y)):(se.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,oe.right)),ue.x=se.x,ue.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&oe.top<a.y||E===0&&x.x>a.x&&oe.top<a.y?(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),E===90?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=se.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(se.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=se.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(se.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),se.y=a.y,ue.x=se.x)):(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?se.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(se.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=se.x,ue.y=x.y),se.x>re.left&&se.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(se.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,se.y)):(se.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,oe.right)),ue.x=se.x,ue.y=x.y)));var ge=x;if(this.isAvoiding){var ye=this.diagram;if(ye===null||b===z||this.layer.isTemporary||!na(ye)||re.ca(ge)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var Pe=ds(ye,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Pe.Yj(Math.min(a.x,se.x),Math.min(a.y,se.y),Math.abs(a.x-se.x),Math.abs(a.y-se.y))&&Pe.Yj(Math.min(se.x,ue.x),Math.min(se.y,ue.y),Math.abs(se.x-ue.x),Math.abs(se.y-ue.y))&&Pe.Yj(Math.min(ue.x,ge.x),Math.min(ue.y,ge.y),Math.abs(ue.x-ge.x),Math.abs(ue.y-ge.y)))y=!1;else{b=a,z=ge;var Fe=x=null;if(ye.isVirtualized){ye=Pe.bounds.copy(),ye.Bc(-Pe.Ho,-Pe.Go);var Te=Ue.alloc();Lp(Pe,a.x,a.y)||(At.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,a.x,a.y,se.x,se.y,Te)?(x=a=Te.copy(),y=Te.ab(se)):At.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,se.x,se.y,ue.x,ue.y,Te)?(x=a=Te.copy(),y=Te.ab(ue)):At.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,ue.x,ue.y,ge.x,ge.y,Te)&&(x=a=Te.copy(),y=Te.ab(ge))),Lp(Pe,ge.x,ge.y)||(At.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,ge.x,ge.y,ue.x,ue.y,Te)?(Fe=ge=Te.copy(),E=ue.ab(Te)):At.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,ue.x,ue.y,se.x,se.y,Te)?(Fe=ge=Te.copy(),E=se.ab(Te)):At.Ff(ye.x,ye.y,ye.x+ye.width,ye.y+ye.height,se.x,se.y,a.x,a.y,Te)&&(Fe=ge=Te.copy(),E=a.ab(Te))),Ue.free(Te)}re=re.copy().ed(oe),re.Bc(Pe.Ho*Pe.Os,Pe.Go*Pe.Os),vS(Pe,a,y,ge,E,re,!0),oe=nf(Pe,ge.x,ge.y),!Pe.abort&&oe>=Mp&&(mS(Pe),re.Bc(Pe.Ho*Pe.Hx,Pe.Go*Pe.Ix),vS(Pe,a,y,ge,E,re,!1),oe=nf(Pe,ge.x,ge.y)),!Pe.abort&&oe<Mp&&nf(Pe,ge.x,ge.y)!==Wf?(py(this,Pe,ge.x,ge.y,E,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ge.y):(re.x=ge.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?At.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):At.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Pe.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(At.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):At.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Pe.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Fe!==null&&(E===0||E===180?this.yf(z.x,Fe.y):this.yf(Fe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(se.copy()),this.ne(ue.copy())),Ue.free(se),Ue.free(ue)}},ei.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function gy(a){if(a.diagram===null||!a.isAvoiding||!na(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ds(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function py(a,y,x,E,b,z,ee){var re=y.Ho,oe=y.Go,se=nf(y,x,E),ue=x,ge=E;for(b===0?ue+=re:b===90?ge+=oe:b===180?ue-=re:ge-=oe,b!==ee&&se>Ig&&nf(y,ue,ge)!==se-1&&(nf(y,x-re,E)===se-1?(b=180,ue=x-re,ge=E):nf(y,x+re,E)===se-1?(b=0,ue=x+re,ge=E):nf(y,x,E-oe)===se-1?(b=270,ue=x,ge=E-oe):nf(y,x,E+oe)===se-1&&(b=90,ue=x,ge=E+oe));se>Ig&&nf(y,ue,ge)===se-1;)x=ue,E=ge,b===0?ue+=re:b===90?ge+=oe:b===180?ue-=re:ge-=oe,--se;z?se>Ig&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),se>Ig&&(z=b,ee=x,ue=E,b===0?(z=90,ue+=oe):b===90?(z=180,ee-=re):b===180?(z=270,ue-=oe):b===270&&(z=0,ee+=re),nf(y,ee,ue)===se-1?py(a,y,ee,ue,z,!1,z):(ee=x,ue=E,b===0?(z=270,ue-=oe):b===90?(z=0,ee+=re):b===180?(z=90,ue+=oe):b===270&&(z=180,ee-=re),nf(y,ee,ue)===se-1&&py(a,y,ee,ue,z,!1,z))),a.yf(x,E)}ei.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Ho(y,a,x.x,x.y,E.x,E.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=Ho(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},ei.prototype.qc=function(){this.lk=!1,this.v()},ei.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof to&&(b.ua=this.ua)}}},ei.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&Og(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var ee=this.computeCurve();if(ee===gd&&3<=y&&!At.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,oe=z.y}if(E-=this.su.x,oe-=this.su.y,b.x-=E,b.y-=oe,y!==2||Og(this)){if(a.type=ni.o,re=G1(a),this.computeShortLength(!0)!==0&&(b=Qg(this,b,!0,z)),Fp(re,b.x,b.y,!1),ee===gd&&3<=y&&!At.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-oe,b=this.i(2).copy(),b.x-=E,b.y-=oe,this.computeShortLength(!1)!==0&&(b=Qg(this,b,!1,z)),Nf(re,y,x,y,x,b.x,b.y);else if(this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e,z.x-E,z.y-oe,se.x-E,se.y-oe),y.set(z),x.set(b),ee=se}}se=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=Qg(this,ue.copy(),!1,fo)),se=.5*(se+ue.x),ee=.5*(ee+ue.y),Nf(re,b.x-E,b.y-oe,se-E,ee-oe,ue.x-E,ue.y-oe),Ue.free(y),Ue.free(x),Ue.free(z),Ue.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=Qg(this,ee.copy(),!1,fo)),Nf(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=Ue.alloc(),z.assign(this.i(0)),b=Ue.alloc(),b.assign(z),ee=this.computeCorner(),ge=1,se=0;ge<y;){if(ge=my(this,z,ge,1<ge),ue=this.i(ge),ge>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=Qg(this,ue.copy(),!1,fo)),qg(this,re,-E,-oe,z,ue,x);else if(se===0)for(ge=1;ge<y;)b.assign(z),ue=this.i(ge++),qg(this,re,-E,-oe,z,ue,x),z.assign(ue);break}if(se=my(this,ue,ge+1,ge<y-3),ge=-E,Je=-oe,ye=ue,Ze=this.i(se),Te=x,At.B(z.y,ye.y)&&At.B(ye.x,Ze.x))if(Fe=Math.min(ee,Math.abs(ye.x-b.x)/2),Fe=lt=Math.min(Fe,Math.abs(Ze.y-ye.y)/2),At.B(Fe,0))qg(this,re,ge,Je,z,ye,Te),z.assign(ye);else{var ft=ye.x,St=ye.y;Pe=ft,it=St,ye.x>z.x?ft=ye.x-Fe:ft=ye.x+Fe,Ze.y>ye.y?it=ye.y+lt:it=ye.y-lt,Ze=Ue.allocAt(ft,St),qg(this,re,ge,Je,z,Ze,Te),Ue.free(Ze),x0(re,ye.x+ge,ye.y+Je,Pe+ge,it+Je),z.h(Pe,it)}else At.B(z.x,ye.x)&&At.B(ye.y,Ze.y)?(Fe=Math.min(ee,Math.abs(ye.y-b.y)/2),Fe=lt=Math.min(Fe,Math.abs(Ze.x-ye.x)/2),At.B(lt,0)?(qg(this,re,ge,Je,z,ye,Te),z.assign(ye)):(ft=ye.x,St=ye.y,Pe=ft,it=St,ye.y>z.y?St=ye.y-Fe:St=ye.y+Fe,Ze.x>ye.x?Pe=ye.x+lt:Pe=ye.x-lt,Ze=Ue.allocAt(ft,St),qg(this,re,ge,Je,z,Ze,Te),Ue.free(Ze),x0(re,ye.x+ge,ye.y+Je,Pe+ge,it+Je),z.h(Pe,it))):(qg(this,re,ge,Je,z,ye,Te),z.assign(ye));b.assign(ue),ge=se}Ue.free(z)}E0=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Qg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Qg(this,re,!1,z)),a.type=ni.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function L0(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),At.$(a,0)?y:At.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Qg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=L0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=L0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function my(a,y,x,E){for(var b=a.pointsCount,z=y;At.$(y.x,z.x)&&At.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!At.$(y.x,z.x)&&!At.$(y.y,z.y))return x-1;for(var ee=z;At.$(y.x,z.x)&&At.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||At.$(y.y,z.y)&&At.$(z.y,ee.y)&&(!E||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=b)return b-1;ee=a.i(x++)}return x-2}ei.prototype.computeJumpLength=function(){return 10};function qg(a,y,x,E,b,z,ee){if(!ee&&Og(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],se=0;if(a.isVisible()&&(se=Ix(a,b,z,oe)),0<se){if(At.B(b.y,z.y))if(b.x<z.x)for(var ue=0;ue<se;){var ge=Math.max(b.x,Math.min(oe[ue++]-re,z.x-ee));y.lineTo(ge+x,z.y+E);for(var ye=ge+x,Pe=Math.min(ge+ee,z.x);ue<se&&(ge=oe[ue],ge<Pe+ee);)ue++,Pe=Math.min(ge+re,z.x);ge=z.y-ee+E,Pe+=x;var Fe=z.y+E;a.curve===Rf?Fp(y,Pe,Fe,!1):Nf(y,ye,ge,Pe,ge,Pe,Fe)}else for(--se;0<=se;){for(ue=Math.min(b.x,Math.max(oe[se--]+re,z.x+ee)),y.lineTo(ue+x,z.y+E),ye=ue+x,ge=Math.max(ue-ee,z.x);0<=se&&(ue=oe[se],ue>ge-ee);)se--,ge=Math.max(ue-re,z.x);ue=z.y-ee+E,ge+=x,Pe=z.y+E,a.curve===Rf?Fp(y,ge,Pe,!1):Nf(y,ye,ue,ge,ue,ge,Pe)}else if(At.B(b.x,z.x))if(b.y<z.y)for(ue=0;ue<se;){for(ge=Math.max(b.y,Math.min(oe[ue++]-re,z.y-ee)),y.lineTo(z.x+x,ge+E),ye=ge+E,ge=Math.min(ge+ee,z.y);ue<se&&(Pe=oe[ue],Pe<ge+ee);)ue++,ge=Math.min(Pe+re,z.y);Pe=z.x-ee+x,Fe=z.x+x,ge+=E,a.curve===Rf?Fp(y,Fe,ge,!1):Nf(y,Pe,ye,Pe,ge,Fe,ge)}else for(--se;0<=se;){for(ue=Math.min(b.y,Math.max(oe[se--]+re,z.y+ee)),y.lineTo(z.x+x,ue+E),ye=ue+E,ue=Math.max(ue-ee,z.y);0<=se&&(ge=oe[se],ge>ue-ee);)se--,ue=Math.max(ge-re,z.y);ge=z.x-ee+x,Pe=z.x+x,ue+=E,a.curve===Rf?Fp(y,Pe,ue,!1):Nf(y,ge,ye,ge,ue,Pe,ue)}}}y.lineTo(z.x+x,z.y+E)}function Ix(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof ei){if(oe===a)return 0<E.length&&E.sort(function(ue,ge){return ue-ge}),E.length;if(oe.isVisible()&&Og(oe)){var se=oe.routeBounds;se.w()&&a.routeBounds.Yc(se)&&!a.usesSamePort(oe)&&(se=oe.path,se!==null&&se.Ed()&&Rx(y,x,E,oe))}}}}}return 0<E.length&&E.sort(function(ue,ge){return ue-ge}),E.length}function Rx(a,y,x,E){for(var b=At.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=Ue.alloc(),oe=1;oe<z;oe++){var se=E.i(oe);if(oe<z-1){var ue=E.i(oe+1);if(ee.y===se.y&&se.y===ue.y){if(se.x>ee.x&&ue.x>=se.x||se.x<ee.x&&ue.x<=se.x)continue}else if(ee.x===se.x&&se.x===ue.x&&(se.y>ee.y&&ue.y>=se.y||se.y<ee.y&&ue.y<=se.y))continue}e:{ue=a.x;var ge=a.y,ye=y.x,Pe=y.y,Fe=ee.x;ee=ee.y;var Te=se.x,Je=se.y;if(At.B(ue,ye)){if(!At.B(ge,Pe)&&At.B(ee,Je)&&Math.min(ge,Pe)<ee&&Math.max(ge,Pe)>ee&&Math.min(Fe,Te)<ue&&Math.max(Fe,Te)>ue&&!At.B(Fe,Te)){re.x=ue,re.y=ee,ue=!0;break e}}else if(At.B(ge,Pe)&&At.B(Fe,Te)&&Math.min(ue,ye)<Fe&&Math.max(ue,ye)>Fe&&Math.min(ee,Je)<ge&&Math.max(ee,Je)>ge&&!At.B(ee,Je)){re.x=Fe,re.y=ge,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(b?x.push(re.x):x.push(re.y)),ee=se}Ue.free(re)}function Og(a){return a=a.curve,a===Dp||a===Rf}function M0(a,y){(y||Og(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()))}ei.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];oe instanceof ei&&(oe===this?z=!0:z&&hS(this,oe,a))}}else if(E)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof ei&&hS(this,re,a)}}}}};function hS(a,y,x){if(y!==null&&y.lk&&y.fd&&Og(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}ei.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},ei.prototype.isVisible=function(){if(!or.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},ei.prototype.Zb=function(a){if(or.prototype.Zb.call(this,a),a&&M0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},ei.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?dm:this.qk};function um(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var se=ee[oe];(se.ef===y&&se.ff===E&&se.uf===x&&se.vf===b||se.ef===x&&se.ff===b&&se.uf===y&&se.vf===E)&&(z===null?z=se:(a===null&&(a=[],a.push(z)),a.push(se)))}if(a!==null){for(z=eS(y,x,E,b),z===null&&(z=new I0(y,E,x,b),$1(y,z),$1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function cm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(ki(y.links,a),y.Sl()))}ei.prototype.ph=function(){return!0},An.Object.defineProperties(ei.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&&A0(y,this,x),cm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.uf!==a&&C0(a,this,b),um(this),this.C(1)),this.g("fromNode",y,a),bp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&$c(x),cm(this),this.ff=a;var E=this.fromPort;E!==null&&$c(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),um(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&&A0(y,this,x),cm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.ef!==a&&C0(a,this,b),um(this),this.C(1)),this.g("toNode",y,a),bp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&$c(x),cm(this),this.vf=a;var E=this.toPort;E!==null&&$c(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),um(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:Dl},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&&$c(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&&xn(a,">= 0",ei,"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:Dl},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&&$c(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&&xn(a,">= 0",ei,"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?cr: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&&lm(this.fromNode),this.toNode!==null&&lm(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof to?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===gd&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),At.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ee=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);At.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Ue)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||b0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);At.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):At.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new tn,E=0;E<a.length/2;E++)b=new Ue(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!Ft(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new tn,E=0;E<a.length;E++)b=a[E],x.add(new Ue(b.x,b.y).freeze())}}else if(a instanceof tn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ot("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),b0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Xd(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||!Bp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Bp(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(),M0(this,y===Rf||y===Dp||a===Rf||a===Dp),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(),M0(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)}}}),ei.prototype.invalidateOtherJumpOvers=ei.prototype.Xo,ei.prototype.findClosestSegment=ei.prototype.ez,ei.prototype.updateRoute=ei.prototype.vg,ei.prototype.invalidateRoute=ei.prototype.bb,ei.prototype.rollbackRoute=ei.prototype.rv,ei.prototype.commitRoute=ei.prototype.zf,ei.prototype.startRoute=ei.prototype.uh,ei.prototype.clearPoints=ei.prototype.Fj,ei.prototype.removePoint=ei.prototype.pv,ei.prototype.addPointAt=ei.prototype.yf,ei.prototype.addPoint=ei.prototype.ne,ei.prototype.insertPointAt=ei.prototype.m,ei.prototype.insertPoint=ei.prototype.Kz,ei.prototype.setPointAt=ei.prototype.L,ei.prototype.setPoint=ei.prototype.dd,ei.prototype.getPoint=ei.prototype.i,ei.prototype.getOtherPort=ei.prototype.Cz,ei.prototype.getOtherNode=ei.prototype.To;var $g=null,ep=null,vy=new Bt(ei,"Normal",1),Wx=new Bt(ei,"Orthogonal",2),jx=new Bt(ei,"AvoidsNodes",6),fS=new Bt(ei,"AvoidsNodesStraight",7),xc=new Bt(ei,"None",0),gd=new Bt(ei,"Bezier",9),Rf=new Bt(ei,"JumpGap",10),Dp=new Bt(ei,"JumpOver",11),dm=new Bt(ei,"End",17),k0=new Bt(ei,"Scale",18),N0=new Bt(ei,"Stretch",19),hm=new Bt(ei,"OrientAlong",21),fm=new Bt(ei,"OrientPlus90",22),gm=new Bt(ei,"OrientMinus90",23),yy=new Bt(ei,"OrientOpposite",24),T0=new Bt(ei,"OrientUpright",25),pm=new Bt(ei,"OrientPlus90Upright",26),mm=new Bt(ei,"OrientMinus90Upright",27),O0=new Bt(ei,"OrientUpright45",28),gS=16,pS=14,vm=8;ei.className="Link",ei.Normal=vy,ei.Orthogonal=Wx,ei.AvoidsNodes=jx,ei.AvoidsNodesStraight=fS,ei.None=xc,ei.Bezier=gd,ei.JumpGap=Rf,ei.JumpOver=Dp,ei.End=dm,ei.Scale=k0,ei.Stretch=N0,ei.OrientAlong=hm,ei.OrientPlus90=fm,ei.OrientMinus90=gm,ei.OrientOpposite=yy,ei.OrientUpright=T0,ei.OrientPlus90Upright=pm,ei.OrientMinus90Upright=mm,ei.OrientUpright45=O0,ei.EndSegmentStep=8,ei.CurvinessStart=gS,ei.SpacingMin=pS,ei.OrthoShortCut=vm;function I0(a,y,x,E){zr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}I0.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},I0.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))}},I0.className="LinkBundle";function ym(a){zr(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}ym.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=Sy,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Lp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function nf(a,y,x){return Lp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):Sy}function mS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=Ig&&(x[E]=Sy)}ym.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Wf)return!1}return!0};function rf(a,y,x,E,b,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var se=y|0,ue=x|0,ge=a.ac[se][ue];if(ge>=Ig&&ge<Mp)for(b?ue+=E:se+=E,ge+=1;z<=se&&se<=ee&&re<=ue&&ue<=oe&&!(ge>=a.ac[se][ue]);)a.ac[se][ue]=ge,ge+=1,b?ue+=E:se+=E;if(se=b?ue:se,b)if(0<E)for(x+=E;x<se;x+=E)rf(a,y,x,1,!b,z,ee,re,oe),rf(a,y,x,-1,!b,z,ee,re,oe);else for(x+=E;x>se;x+=E)rf(a,y,x,1,!b,z,ee,re,oe),rf(a,y,x,-1,!b,z,ee,re,oe);else if(0<E)for(y+=E;y<se;y+=E)rf(a,y,x,1,!b,z,ee,re,oe),rf(a,y,x,-1,!b,z,ee,re,oe);else for(y+=E;y>se;y+=E)rf(a,y,x,1,!b,z,ee,re,oe),rf(a,y,x,-1,!b,z,ee,re,oe)}}function R0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var se=Wf,ue=Ig;for(a.ac[y][x]=ue;se===Wf&&y>z&&y<ee&&x>re&&x<oe;)ue+=1,a.ac[y][x]=ue,b?x+=E:y+=E,se=a.ac[y][x]}function W0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var se=Wf,ue=Mp;for(a.ac[y][x]=ue;se===Wf&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ue,b?x+=E:y+=E,se=a.ac[y][x]}function vS(a,y,x,E,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(Lp(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var se=E.x,ue=E.y;if(Lp(a,se,ue))if(se-=a.Nd,se/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(re-se)&&1>=Math.abs(oe-ue))a.abort=!0;else{var ge=z.x;E=z.y,y=z.x+z.width;var ye=z.y+z.height;ge-=a.Nd,ge/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,ye-=a.Od,ye/=a.sc,z=Math.max(0,Math.min(a.di,ge|0)),y=Math.min(a.di,Math.max(0,y|0)),ge=Math.max(0,Math.min(a.ei,E|0)),ye=Math.min(a.ei,Math.max(0,ye|0)),E=a.ac,re|=0,oe|=0,se|=0,ue|=0;var Pe=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Wf?(R0(a,re,oe,Pe,x,z,y,ge,ye),R0(a,re,oe,1,!x,z,y,ge,ye),R0(a,re,oe,-1,!x,z,y,ge,ye)):R0(a,re,oe,Pe,x,re,oe,re,oe),E[se][ue]===Wf?(W0(a,se,ue,b===0||b===90?1:-1,b===90||b===270,z,y,ge,ye),W0(a,se,ue,1,!(b===90||b===270),z,y,ge,ye),W0(a,se,ue,-1,!(b===90||b===270),z,y,ge,ye)):W0(a,se,ue,Pe,x,se,ue,se,ue),x=Ni(),ee&&yS(a,se,ue,b,re,oe,x))for((x[0]!==se||x[1]!==ue)&&(x.unshift(ue),x.unshift(se)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=Ig,b=x[x.length-2],ee=x[x.length-1],E[b][ee]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ee=x[z+3],y=x[z],se=x[z+1];y>b?b++:y<b?b--:se>ee?ee++:se<ee&&ee--,E[b][ee]=a++,b!==y||ee!==se;);else rf(a,re,oe,1,!1,z,y,ge,ye),rf(a,re,oe,-1,!1,z,y,ge,ye),rf(a,re,oe,1,!0,z,y,ge,ye),rf(a,re,oe,-1,!0,z,y,ge,ye);qn(x)}}}}function yS(a,y,x,E,b,z,ee){for(var re=a.ac,oe=y,se=x;;){if(oe===b&&se===z)return!0;var ue=oe,ge=se;if(E===0)if(ue<b)ue++;else break;else if(E===90)if(ge<z)ge++;else break;else if(E===180)if(ue>b)ue--;else break;else if(ge>z)ge--;else break;var ye=re[ue][ge];if(ye===0||ye===xy)break;oe=ue,se=ge}for(;;){if(ue=E,ge=oe,ye=se,E===0?ye<z?(ue=90,ye++):ye>z&&(ue=270,ye--):E===90?ge<b?(ue=0,ge++):ge>b&&(ue=180,ge--):E===180?ye<z?(ue=90,ye++):ye>z&&(ue=270,ye--):ge<b?(ue=0,ge++):ge>b&&(ue=180,ge--),ge=re[ge][ye],ue!==E&&ge!==0&&ge!==xy){if(ee.push(oe),ee.push(se),yS(a,oe,se,ue,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][se]=xy,E===0){if(oe===y)return!1;oe--}else if(E===90){if(se===x)return!1;se--}else if(E===180){if(oe===y)return!1;oe++}else{if(se===x)return!1;se++}}}An.Object.defineProperties(ym.prototype,{bounds:{get:function(){return new qt(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 Wf=0,Ig=1,Mp=999999,Sy=Mp+1,xy=Mp+2;ym.className="PositionArray";function tp(){zr(this),this.port=this.node=null,this.pe=[],this.ap=!1}tp.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
`+E.toString())}return y};function zx(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}tp.prototype.Sl=function(){this.pe.length=0};function SS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Gr?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ee=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Ra,Ue.alloc()),oe=a.port.ga(tu,Ue.alloc());for(b=qt.allocAt(re.x,re.y,0,0),b.Ye(oe),Ue.free(re),Ue.free(oe),re=Ue.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var se=ee.value;if(se.isVisible()&&se.fromPort!==se.toPort){var ue=se.fromPort===a.port||se.fromNode!==null&&se.fromNode.Td(E),ge=se.computeSpot(ue,a.port);if(ge.$c()&&(ue=ue?se.toPort:se.fromPort,ue!==null)){var ye=ue.part;if(ye!==null){var Pe=ye.findVisibleNode();Pe!==null&&Pe!==ye&&(ye=Pe,ue=ye.port),ue=se.computeOtherPoint(ye,ue),ye=re.ab(ue),ye-=oe,0>ye?ye+=360:360<=ye&&(ye-=360),ge=zx(b,ge,ye,se.isOrthogonal),ge===0?(ge=4,180<ye&&(ye-=360)):ge===90?(ge=8,270<ye&&(ye-=360)):ge===180?ge=2:(ge=1,90>ye&&(ye+=360)),Pe=a.pe[z],Pe===void 0?(Pe=new Ey(se,ye,ge),a.pe[z]=Pe):(Pe.link=se,Pe.angle=ye,Pe.Nc=ge),Pe.hv.set(ue),z++}}}}for(Ue.free(re),a.pe.sort(tp.prototype.j),oe=a.pe.length,E=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==E&&(E=ee.Nc,re=0),ee.Uo=re,re++);for(E=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==E&&(E=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,ge=a.port,E=a.node.portSpreading,re=Ue.alloc(),oe=Ue.alloc(),ee=Ue.alloc(),se=Ue.alloc(),ge.ga(Ra,re),ge.ga(ca,oe),ge.ga(tu,ee),ge.ga(Bu,se),Pe=ye=ue=ge=0,E===cy)for(var Fe=0;Fe<z.length;Fe++){var Te=z[Fe];if(Te!==null){var Je=Te.link.computeThickness();switch(Te.Nc){case 8:ye+=Je;break;case 2:Pe+=Je;break;case 1:ge+=Je;break;default:case 4:ue+=Je}}}var Ze=Fe=0,it=1,lt=Te=0;for(Je=0;Je<z.length;Je++){var ft=z[Je];if(ft!==null){if(Fe!==ft.Nc){switch(Fe=ft.Nc,Fe){case 8:var St=ee;Ze=se;break;case 2:St=se,Ze=re;break;case 1:St=re,Ze=oe;break;default:case 4:St=oe,Ze=ee}switch(Te=Ze.x-St.x,lt=Ze.y-St.y,Fe){case 8:ye>Math.abs(Te)?(it=Math.abs(Te)/ye,ye=Math.abs(Te)):it=1;break;case 2:Pe>Math.abs(lt)?(it=Math.abs(lt)/Pe,Pe=Math.abs(lt)):it=1;break;case 1:ge>Math.abs(Te)?(it=Math.abs(Te)/ge,ge=Math.abs(Te)):it=1;break;default:case 4:ue>Math.abs(lt)?(it=Math.abs(lt)/ue,ue=Math.abs(lt)):it=1}Ze=0}var Vt=ft.Zo;if(E===cy){switch(ft=ft.link.computeThickness(),ft*=it,Vt.set(St),Fe){case 8:Vt.x=St.x+Te/2+ye/2-Ze-ft/2;break;case 2:Vt.y=St.y+lt/2+Pe/2-Ze-ft/2;break;case 1:Vt.x=St.x+Te/2-ge/2+Ze+ft/2;break;default:case 4:Vt.y=St.y+lt/2-ue/2+Ze+ft/2}Ze+=ft}else{var mi=.5;E===F0&&(mi=(ft.Uo+1)/(ft.Gl+1)),Vt.x=St.x+Te*mi,Vt.y=St.y+lt*mi}}}for(Ue.free(re),Ue.free(oe),Ue.free(ee),Ue.free(se),St=a.pe,z=0;z<St.length;z++)E=St[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,qt.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}tp.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},tp.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ll,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},tp.className="Knot";function Ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ue,this.Gl=this.Uo=0,this.Zo=new Ue,this.Ju=0}Ey.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()},Ey.className="LinkInfo";function vs(a){zr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ue(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}vs.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},vs.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},vs.prototype.qb=function(){},vs.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+")"},vs.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())}}},vs.prototype.createNetwork=function(){return new Qa(this)},vs.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ne?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Gr?y.lg(a.memberParts):y.lg(a.iterator),y},vs.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")}},vs.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()}},vs.prototype.doLayout=function(a){var y=new Tn;a instanceof Ne?(ug(this,y,a.nodes,!0,this.rh,!0,!1,!0),ug(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Gr?ug(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},vs.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;Sm(re);var oe=re.measuredBounds,se=oe.width;oe=oe.height,re.moveTo(E,b),re instanceof Gr&&(re.rh=!1),E+=Math.max(se,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,E=x,b+=ee+20,ee=0):z++}},vs.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof ei)&&(Sm(re),this.rh(re))){var oe=re.measuredBounds,se=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof Gr&&(re.rh=!1),x+=Math.max(se,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},vs.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Gr&&a.rh)};function ug(a,y,x,E,b,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof xi?oe.isLinkLabel||(oe instanceof Gr&&oe.layout===null?ug(a,y,oe.memberParts,!1,b,z,ee,re):(Sm(oe),y.add(oe))):ee&&oe instanceof ei?y.add(oe):!re||!oe.Zc()||oe instanceof xi||(Sm(oe),y.add(oe)))}}function Sm(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}vs.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new qt),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},vs.prototype.ex=function(a){var y=new Tn;return a instanceof Ne?(ug(this,y,a.nodes,!0,null,!0,!0,!0),ug(this,y,a.links,!0,null,!0,!0,!0),ug(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Gr?ug(this,y,a.memberParts,!1,null,!0,!0,!0):ug(this,y,a.iterator,!1,null,!0,!0,!0),y},vs.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(Ra),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},An.Object.defineProperties(vs.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())}}}),vs.prototype.collectParts=vs.prototype.ex,vs.prototype.getLayoutBounds=vs.prototype.ni,vs.prototype.invalidateLayout=vs.prototype.C,vs.className="Layout";function Qa(a){zr(this),this.Sc=a,this.wf=new Tn,this.ye=new Tn,this.Es=new ti,this.zs=new ti}Qa.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 Tn,this.ye=new Tn,this.Es=new ti,this.zs=new ti},Qa.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},Qa.prototype.createVertex=function(){return new jl(this)},Qa.prototype.createEdge=function(){return new ed(this)},Qa.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof xi)return!ee.isLinkLabel;if(ee instanceof ei){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof xi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Gr&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof ei&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Qa.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},Be=Qa.prototype,Be.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Be.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},Be.Iu=function(a){if(a!==null&&xS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function xS(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}Be.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Be.ki=function(a){return a===null?null:this.Es.I(a)},Be.Bo=function(a){if(a!==null){Py(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function Py(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}}Be.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},Be.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),wy(this,a)}};function wy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Be.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Be.Lo=function(a){return a===null?null:this.zs.I(a)},Be.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Be.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))}},Be.Ko=function(){for(var a=Ni(),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]);qn(a)},Qa.prototype.deleteArtificialVertexes=function(){for(var a=Ni(),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=Ni(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);qn(a),qn(y)};function Vx(a){for(var y=Ni(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);qn(y)}Qa.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Vx(this),this.Ko()),a=new tn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),Cy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function Cy(a,y,x){if(x!==null&&x.network!==y){xS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(wy(a,b),Py(y,b),Cy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(wy(a,x),Py(y,x),Cy(a,y,x.toVertex))}}Qa.prototype.dz=function(){for(var a=new Tn,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},An.Object.defineProperties(Qa.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}}}),Qa.prototype.findAllParts=Qa.prototype.dz,Qa.prototype.splitIntoSubNetworks=Qa.prototype.Zx,Qa.prototype.deleteSelfEdges=Qa.prototype.Ko,Qa.prototype.reverseEdge=Qa.prototype.gm,Qa.prototype.linkVertexes=Qa.prototype.Zj,Qa.prototype.findEdge=Qa.prototype.Lo,Qa.prototype.deleteLink=Qa.prototype.Yy,Qa.prototype.deleteEdge=Qa.prototype.Mj,Qa.prototype.addLink=Qa.prototype.Dy,Qa.prototype.addEdge=Qa.prototype.Bo,Qa.prototype.findVertex=Qa.prototype.ki,Qa.prototype.deleteNode=Qa.prototype.Zy,Qa.prototype.deleteVertex=Qa.prototype.Iu,Qa.prototype.addNode=Qa.prototype.Bl,Qa.prototype.addVertex=Qa.prototype.dh,Qa.prototype.addParts=Qa.prototype.lg,Qa.className="LayoutNetwork";function jl(a){zr(this),this.ob=a,this.j=new qt(0,0,10,10).freeze(),this.o=new Ue(5,5).freeze(),this.Sh=this.ub=null,this.tg=new tn,this.mg=new tn}jl.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new tn,this.mg=new tn},jl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+ur(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},jl.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Ft(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 Gr)){x=qt.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Cr);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),qt.free(x);return}qt.free(x)}a.moveTo(y.x,y.y)}},jl.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},jl.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},jl.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},jl.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function Ay(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}An.Object.defineProperties(jl.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=qt.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),qt.free(x),!(a instanceof Gr)&&(a=a.locationObject.ga(Cr),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Tn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Tn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Tn,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 tn,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}}}),jl.prototype.deleteDestinationEdge=jl.prototype.Jl,jl.prototype.addDestinationEdge=jl.prototype.zl,jl.prototype.deleteSourceEdge=jl.prototype.Kl,jl.prototype.addSourceEdge=jl.prototype.Cl,jl.className="LayoutVertex",jl.standardComparer=Ay,jl.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function ed(a){zr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ed.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ed.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+ur(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},ed.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ed.prototype.commit=function(){},ed.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},An.Object.defineProperties(ed.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)}}}),ed.prototype.getOtherVertex=ed.prototype.Ax,ed.className="LayoutEdge";function Fu(a){vs.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new oi(NaN,NaN).freeze(),this.tf=new oi(10,10).freeze(),this.Jb=xm,this.Rb=z0,this.nd=Em,this.hd=ES,a&&Object.assign(this,a)}Tt(Fu,vs),Fu.prototype.cloneProtected=function(a){vs.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},Fu.prototype.qb=function(a){a.classType===Fu?a===Em||a===G0||a===Fy||a===V0?this.sorting=a:a===z0||a===Ph?this.arrangement=a:a===xm||a===j0?this.alignment=a:Ot("Unknown enum value: "+a):vs.prototype.qb.call(this,a)},Fu.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Gr)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case V0:b.reverse();break;case Em:b.sort(this.comparer);break;case G0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case j0:var re=y,oe=x,se=qt.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var ge=ue=0;ge<b.length;ge++){var ye=this.ni(b[ge],se);ue=Math.max(ue,ye.width)}if(ue=Math.max(ue+re,1),ge=Math.max(this.cellSize.height,1),!isFinite(ge))for(ye=ge=0;ye<b.length;ye++){var Pe=this.ni(b[ye],se);ge=Math.max(ge,Pe.height)}ge=Math.max(ge+oe,1),ye=this.arrangement;for(var Fe=Pe=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,Je=0,Ze=0,it=0;it<b.length;it++){var lt=b[it],ft=this.ni(lt,se),St=Math.ceil((ft.width+re)/ue)*ue,Vt=Math.ceil((ft.height+oe)/ge)*ge;switch(ye){case Ph:var mi=Math.abs(Fe-ft.width);break;default:mi=Fe+ft.width}switch((0<z&&Je>z-1||0<ee&&0<Je&&mi-Pe>ee)&&(E.push(new qt(0,Te,ee+re,Ze)),Je=0,Fe=Pe,Te+=Ze,Ze=0),Ze=Math.max(Ze,Vt),ye){case Ph:ft=-ft.width;break;default:ft=0}switch(lt.moveTo(Fe+ft,Te),ye){case Ph:Fe-=St;break;default:Fe+=St}Je++}E.push(new qt(0,Te,ee+re,Ze)),qt.free(se);break;case xm:for(oe=ee,ue=z,ge=y,ye=x,ee=qt.alloc(),Pe=Math.max(this.cellSize.width,1),z=Te=se=0,re=Ue.alloc(),Fe=0;Fe<b.length;Fe++)Ze=b[Fe],Je=this.ni(Ze,ee),Ze=Tf(Ze,Ze.locationObject,Ze.locationSpot,re),se=Math.max(se,Ze.x),Te=Math.max(Te,Je.width-Ze.x),z=Math.max(z,Ze.y);switch(Fe=this.arrangement,Fe){case Ph:se+=ge;break;default:Te+=ge}Pe=isFinite(Pe)?Math.max(Pe+ge,1):Math.max(se+Te,1);var Vi=Ze=this.arrangementOrigin.x;for(it=this.arrangementOrigin.y,Te=0,oe>=se&&(oe-=se),se=lt=0,St=Math.max(this.cellSize.height,1),ft=z=0,Vt=!0,Je=Ue.alloc(),mi=0;mi<b.length;mi++){var Fi=b[mi],$n=this.ni(Fi,ee),Mn=Tf(Fi,Fi.locationObject,Fi.locationSpot,re);if(0<Te)switch(Fe){case Ph:Vi=(Vi-Ze-($n.width-Mn.x))/Pe,Vi=At.$(Math.round(Vi),Vi)?Math.round(Vi):Math.floor(Vi),Vi=Vi*Pe+Ze;break;default:Vi=(Vi-Ze+Mn.x)/Pe,Vi=At.$(Math.round(Vi),Vi)?Math.round(Vi):Math.ceil(Vi),Vi=Vi*Pe+Ze}else switch(Fe){case Ph:lt=Vi+Mn.x+$n.width;break;default:lt=Vi-Mn.x}switch(Fe){case Ph:var jr=-(Vi+Mn.x)+lt;break;default:jr=Vi+$n.width-Mn.x-lt}if(0<ue&&Te>ue-1||0<oe&&0<Te&&jr>oe){for(E.push(new qt(0,Vt?it-z:it,oe+ge,ft+z+ye)),Vi=0;Vi<Te&&mi!==Te;Vi++){jr=b[mi-Te+Vi];var Br=Tf(jr,jr.locationObject,jr.locationSpot,Je);jr.moveTo(jr.position.x,jr.position.y+z-Br.y)}ft+=ye,it=Vt?it+ft:it+(ft+z),Te=ft=z=0,Vi=Ze,Vt=!1}switch(Vi===Ze&&(se=Fe===Ph?Math.max(se,$n.width-Mn.x):Math.min(se,-Mn.x)),z=Math.max(z,Mn.y),ft=Math.max(ft,$n.height-Mn.y),isFinite(St)&&(ft=Math.max(ft,Math.max($n.height,St)-Mn.y)),Vt?Fi.moveTo(Vi-Mn.x,it-Mn.y):Fi.moveTo(Vi-Mn.x,it),Fe){case Ph:Vi-=Mn.x+ge;break;default:Vi+=$n.width-Mn.x+ge}Te++}if(E.push(new qt(0,it,oe+ge,(Vt?ft:ft+z)+ye)),b.length!==Te)for(oe=0;oe<Te;oe++)ue=b[b.length-Te+oe],ge=Tf(ue,ue.locationObject,ue.locationSpot,re),ue.moveTo(ue.position.x,ue.position.y+z-ge.y);if(Ue.free(re),Ue.free(Je),Fe===Ph)for(b=0;b<E.length;b++)z=E[b],z.width+=se,z.x-=se;else for(b=0;b<E.length;b++)z=E[b],z.x>se&&(z.width+=z.x-se,z.x=se);qt.free(ee)}for(re=z=ee=b=0;re<E.length;re++)oe=E[re],b=Math.min(b,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===Ph?this.commitLayers(E,new Ue(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new Ue(b-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Fu.prototype.commitLayers=function(){};function ES(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}An.Object.defineProperties(Fu.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!==xm&&a!==j0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==z0&&a!==Ph||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Fy&&a!==V0&&a!==Em&&a!==G0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var j0=new Bt(Fu,"Position",0),xm=new Bt(Fu,"Location",1),z0=new Bt(Fu,"LeftToRight",2),Ph=new Bt(Fu,"RightToLeft",3),Fy=new Bt(Fu,"Forward",4),V0=new Bt(Fu,"Reverse",5),Em=new Bt(Fu,"Ascending",6),G0=new Bt(Fu,"Descending",7);Fu.className="GridLayout",Fu.standardComparer=ES,Fu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Fu.Position=j0,Fu.Location=xm,Fu.LeftToRight=z0,Fu.RightToLeft=Ph,Fu.Forward=Fy,Fu.Reverse=V0,Fu.Ascending=Em,Fu.Descending=G0;function wa(){this.On=new Tn,this.Dn=new Tn,this.Pa=new Tn,this.cf=new ti,this.bf=new ti,this.aj=new ti,this.H=null,this.tp=!1}Be=wa.prototype,Be.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Be.Xe=function(a){this.H=a},Be.oi=function(a){if(a instanceof xi){if(this.On.add(a),a instanceof Gr){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 ei?this.Dn.add(a):a instanceof Jo||this.Pa.add(a);y=a.data,y===null||a instanceof Jo||(a instanceof ei?this.bf.add(y,a):this.cf.add(y,a))},Be.pc=function(a){if(a.Ej(),a instanceof xi){if(this.On.remove(a),a instanceof Gr){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 ei?this.Dn.remove(a):a instanceof Jo||this.Pa.remove(a);y=a.data,y===null||a instanceof Jo||(a instanceof ei?this.bf.remove(y):this.cf.remove(y))},Be.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Gr)&&Ot('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Gr||Ot('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof ei||Ot('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Ni(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Ni(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Ni(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);qn(y),qn(x),qn(a)}},wa.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},wa.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&PS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&Do(this.diagram,!1)};function PS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=wS(a,y,E);if(b!==null&&(zd(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}wa.prototype.insertLink=function(){return null},wa.prototype.resolveReferencesForData=function(){},wa.prototype.Ro=function(a){return this.H.model.Ro(a)};function wS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(FS||(FS=!0,jn('No Group template found for category "'+x+'"'),jn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(AS||(AS=!0,jn('No Node template found for category "'+x+'"'),jn(" Using default node template")),y=a.ny))),y}wa.prototype.getLinkCategoryForData=function(){return""},wa.prototype.setLinkCategoryForData=function(){},wa.prototype.setFromNodeForLink=function(){},wa.prototype.setToNodeForLink=function(){},wa.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(bS||(bS=!0,jn('No Link template found for category "'+a+'"'),jn(" Using default link template")),x=y.my)),x},wa.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},wa.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},wa.prototype.ip=function(a){a=this.Lc(a),a!==null&&(xa(this.diagram,a,!1),this.unresolveReferencesForPart(a))},wa.prototype.unresolveReferencesForPart=function(){},wa.prototype.removeDataForLink=function(){},wa.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},wa.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof xi?a:null)},wa.prototype.findLinkForKey=function(){return null},Be=wa.prototype,Be.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Be.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof xi?a:null)},Be.Kc=function(a){return a===null?null:this.bf.I(a)},Be.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Tn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Ft(ee)&&by(this,b,ee)){y.add(E);break}}}return y.iterator},Be.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Tn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Ft(ee)&&by(this,b,ee)){y.add(E);break}}}return y.iterator};function by(a,y,x){for(var E in x){var b=y[E],z=x[E];if(bt(z)){if(!bt(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!CS(a,b[ee],re))return!1}}else if(!CS(a,b,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(Ft(y)&&Ft(x)){if(!by(a,y,x))return!1}else if(y!==x)return!1;return!0}wa.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===Gn){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Jn){var ee=a.newValue;E==="nodeDataArray"&&Ft(ee)&&PS(this,ee),y.isModified=!0}else if(x===gi){var re=a.oldValue;E==="nodeDataArray"&&Ft(re)&&this.ip(re),y.isModified=!0}else x===wn&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Gn){var oe=a.propertyName,se=a.object;se===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(se,oe),y.isModified=!0}else if(x===Jn||x===gi){var ue=a.change===Jn,ge=ue?a.newParam:a.oldParam,ye=ue?a.newValue:a.oldValue,Pe=this.aj.I(a.object);if(Array.isArray(Pe))for(a=0;a<Pe.length;a++){var Fe=Pe[a];if(ue)s0(Fe,ye,ge,!0);else if(!(0>ge)){var Te=ge+nm(Fe);Fe.pc(Te,!0),Vv(Fe,Te,ge)}}y.isModified=!0}}finally{y.aa=!0}}}}},wa.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)},wa.prototype.rp=function(){for(var a=this.H.model,y=new Tn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){IS(a,ee,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&OS(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()},wa.prototype.refreshDataBoundLinks=function(){},wa.prototype.updateRelationshipsFromData=function(){},wa.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var ee=b[z].sx(a);ee!==null&&(x===null&&(x=Ni()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);qn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function By(a,y){var x=y.Hh;if(bt(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function Dy(a,y,x){Mg(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)is(x,ee[oe])});var E=y.Hh;if(bt(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}wa.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new ti;if(bt(a))for(var b=0;b<a.length;b++)_0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)_0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new Tn;for(var z=new ti,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof ei)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof xi&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var se=re.pg();se!==null&&(se=E.I(se),se!==null?(x.qe(oe.data,x.wa(se.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ue=new ti;E.each(function(ge){ge.key.data!==null&&ue.add(ge.key.data,ge.value.data)}),x(ue,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function _0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof or))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof xi){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=E.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Gr&&z instanceof Gr)for(y=y.memberParts;y.next();)ee=_0(a,y.value,x,E,b),ee instanceof ei||ee===null||(ee.containingGroup=z)}else if(y instanceof ei&&z instanceof ei)for(ee=y.fromNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=_0(a,y.value,x,E,b),ee!==null&&ee instanceof xi&&(ee.labeledLink=z);return z}wa.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof ei||(E=b.copyNodeData(E),Ft(E)&&(b.xf(E),x=y.Lc(E)))}else zd(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof ei||(b=y.copyNodeData(E)),Ft(b)&&(x.data=b)));return x},An.Object.defineProperties(wa.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}}}),wa.prototype.updateAllRelationshipsFromData=wa.prototype.rp,wa.prototype.findLinksByExample=wa.prototype.ls,wa.prototype.findNodesByExample=wa.prototype.ms,wa.prototype.findLinkForData=wa.prototype.Kc,wa.prototype.findNodeForData=wa.prototype.ii,wa.prototype.findPartForData=wa.prototype.Lc,wa.prototype.findNodeForKey=wa.prototype.Vb,wa.prototype.removeModeledPart=wa.prototype.ip,wa.prototype.removeModeledParts=wa.prototype.Gs,wa.prototype.rebuildParts=wa.prototype.Wd;var AS=!1,FS=!1,bS=!1;wa.className="PartManager";function lu(a){wa.apply(this,arguments)}Tt(lu,wa),lu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),BS(this,a.linkDataArray)},lu.prototype.addModeledParts=function(a){for(wa.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)bp(a.value);Do(this.diagram,!1)};function BS(a,y){y.forEach(function(x){DS(a,x)}),Do(a.diagram,!1)}function DS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){zd(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=K0(x,y,!0);z!==""&&(b.fromPortId=z),z=pd(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof xi&&(b.fromNode=z)),z=K0(x,y,!1),z!==""&&(b.toPortId=z),z=pd(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof xi&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}lu.prototype.removeAllModeledParts=function(){var a=this.diagram.model;LS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function LS(a,y){y.forEach(function(x){a.ip(x)})}lu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},lu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},lu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},lu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},lu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},lu.prototype.findPartForKey=function(a){var y=wa.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},lu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},lu.prototype.doModelChanged=function(a){var y=this;if(wa.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===Gn){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var se=this.Kc(a.object);if(se!==null){var ue=a.newValue;typeof ue=="string"&&(se.fromPortId=ue)}}else if(b==="linkToPortId"){var ge=this.Kc(a.object);if(ge!==null){var ye=a.newValue;typeof ye=="string"&&(ge.toPortId=ye)}}else if(b==="nodeGroupKey"){var Pe=this.Lc(a.object);if(Pe!==null){var Fe=a.newValue;if(Fe!==void 0){var Te=this.Vb(Fe);Te instanceof Gr?Pe.containingGroup=Te:Pe.containingGroup=null}else Pe.containingGroup=null}}else if(b==="linkLabelKeys"){var Je=this.Kc(a.object);if(Je!==null){var Ze=a.oldValue,it=a.newValue;Array.isArray(Ze)&&Ze.forEach(function(Mn){0<=it.indexOf(Mn)||(Mn=y.Vb(Mn),Mn!==null&&(Mn.labeledLink=null))}),Array.isArray(it)&&it.forEach(function(Mn){Mn=y.Vb(Mn),Mn!==null&&(Mn.labeledLink=Je)})}}else if(b==="linkCategory"){var lt=this.Kc(a.object),ft=a.newValue;lt!==null&&typeof ft=="string"&&(lt.category=ft)}else b==="linkDataArray"&&(LS(this,a.oldValue),BS(this,a.newValue));x.isModified=!0}else if(E===Jn){var St=a.newValue;if(b==="linkDataArray"&&typeof St=="object"&&St!==null)DS(this,St);else if(b==="linkLabelKeys"&&dg(St)){var Vt=this.Kc(a.object),mi=this.Vb(St);Vt!==null&&mi!==null&&(mi.labeledLink=Vt)}x.isModified=!0}else if(E===gi){var Vi=a.oldValue;if(b==="linkDataArray"&&typeof Vi=="object"&&Vi!==null)this.ip(Vi);else if(b==="linkLabelKeys"&&dg(Vi)){var Fi=this.Vb(Vi);Fi!==null&&(Fi.labeledLink=null)}x.isModified=!0}}else if(E===Gn){var $n=a.propertyName;a.object!==x.model||$n!=="linkFromKeyProperty"&&$n!=="linkToKeyProperty"&&$n!=="linkFromPortIdProperty"&&$n!=="linkToPortIdProperty"&&$n!=="linkLabelKeysProperty"&&$n!=="nodeIsGroupProperty"&&$n!=="nodeGroupKeyProperty"&&$n!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},lu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Tn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){GS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&VS(y,z,!1)})},lu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof ei){var b=pd(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=pd(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new Tn().addAll(y);var ee=new Tn;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Jo)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Gr)&&(a.containingGroup=y)}}},lu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Pm(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var ee=E.value;y.lb(ee)?b instanceof Gr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof xi&&(pd(y,ee,!0)===x&&(z.link.fromNode=b),pd(y,ee,!1)===x&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}Ch(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Gr&&(b.containingGroup=a))}},lu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof xi){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)wh(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&wh(y,x,E.data)),a instanceof Gr)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&wh(y,x,E)}}},lu.prototype.copyPartData=function(a,y){var x=wa.prototype.copyPartData.call(this,a,y);if(a instanceof ei)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},lu.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=ee.archetypeLinkData,E instanceof ei){if(zd(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof xi&&(zd(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Np(z,E,z.wa(a.data),!0),Tp(z,E,re,!0),x!==null&&Np(z,E,z.wa(x.data),!1),Tp(z,E,y,!1),z.fi(E),a=ee.archetypeLabelNodeData,a===null||a instanceof xi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},lu.prototype.findLinkForKey=lu.prototype.findLinkForKey,lu.prototype.findPartForKey=lu.prototype.findPartForKey,lu.prototype.removeAllModeledParts=lu.prototype.removeAllModeledParts,lu.prototype.addModeledParts=lu.prototype.addModeledParts,lu.prototype.addAllModeledParts=lu.prototype.addAllModeledParts,lu.className="GraphLinksPartManager";function Ad(){wa.apply(this,arguments),this.Sg=null}Tt(Ad,wa);function H0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Es(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(zd(E),E=E.copy(),E!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}Ad.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Ad.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Ad.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},Ad.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},Ad.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Ad.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Ad.prototype.doModelChanged=function(a){if(wa.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===Gn){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:H0(this,z,ee)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),se=a.newValue;if(oe!==null&&typeof se=="string"){var ue=oe.kh();ue!==null&&(ue.category=se)}}y.isModified=!0}}else if(x===Gn){var ge=a.propertyName;a.object===y.model&&ge==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Ad.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof xi&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:H0(this,y,a):E!==null&&xa(x,E,!1)))}}},Ad.prototype.updateDataBindings=function(a,y){wa.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Ad.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Pm(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof xi&&y.mh(z)===x&&H0(this,b,this.ii(z))}Ch(y,x)}a=y.mh(a),a!==void 0&&b instanceof xi&&(a=this.Vb(a),H0(this,a,b))}},Ad.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof xi){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(gi,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&wh(y,x,b)}},Ad.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},Ad.prototype.findLinkForKey=Ad.prototype.findLinkForKey,Ad.className="TreePartManager";function Zi(a,y){this.kl=new Tn,this.il=new Tn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,zr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ti,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 ti,this.Lt=new tn,this.Wg=!1,this.o=null,this.undoManager=new hi,a!==void 0&&(bt(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Zi.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},Zi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Zi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Zi.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Hr(b)}}return y},Zi.prototype.xA=function(a){a.change!==wn&&Ot("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ki?(kS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Zi.prototype.Qv=function(a,y){var x=this,E=!1,b=new Tn,z=new Tn,ee=new Tn,re=this.vh;a.changes.each(function(ge){ge.model===x&&(ge.modelChange==="nodeDataArray"?ge.change===Jn?b.add(ge.newValue):ge.change===gi&&ee.add(ge.oldValue):x.lb(ge.object)?z.add(ge.object):ge.change!==Gn||x.modelData!==ge.object&&ge.propertyName!=="modelData"?ge.object!==null&&(re&&re.contains(ge.object)?re.get(ge.object).each(function(ye){x.lb(ye)&&z.add(ye)}):ge.object instanceof Zi||x.ri()&&x.Jc(ge.object)||NS(x,ge.object).each(function(ye){z.add(ye)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ge){oe.add(x.wa(ge)),y||z.add(ge)});var se=this.kl;se.clear(),ee.each(function(ge){se.add(x.wa(ge)),y&&z.add(ge)}),a=x.cloneDeep(z.Fa());var ue=null;return E&&(ue===null&&(ue={}),ue.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=oe.Fa():ue.insertedNodeKeys=oe.Fa()),0<a.length&&(ue===null&&(ue={}),ue.modifiedNodeData=a),0<se.count&&(ue===null&&(ue={}),y?ue.insertedNodeKeys=se.Fa():ue.removedNodeKeys=se.Fa()),se.clear(),oe.clear(),ue},Zi.prototype.cloneDeep=function(a){return kp(this,a,!0)};function kp(a,y,x,E,b,z){function ee(ge,ye){re?(ge.__gohashid===void 0&&z.push(ge),E.set(ge,ye)):(ge=ko++,E.set(ge,ye),b.set(ge,y))}if(!Ft(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new ti),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new ti),oe=b.iterator;oe.next();){var se=oe.key;if(oe.value===y&&(se=E.get(se)))return se}if(Array.isArray(y)){oe=[],ee(y,oe);for(var ue=0;ue<y.length;ue++)oe.push(kp(a,y[ue],!1,E,b,z))}else if(y instanceof Ue||y instanceof oi||y instanceof qt||y instanceof ao||y instanceof tr)oe=y.copy(),ee(y,oe);else{if(y instanceof Xo||y instanceof ni||y instanceof Bt)return y;if(y instanceof tn)oe=new tn().addAll(kp(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Tn)oe=new Tn().addAll(kp(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof ti)oe=new ti().addAll(kp(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(ue in oe={},ee(y,oe),y)ue!=="__gohashid"&&(oe[ue]=kp(a,y[ue],!1,E,b,z))}return x&&z.forEach(function(ge){delete ge.__gohashid}),oe}Be=Zi.prototype,Be.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Be.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},Be.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 MS(a,y){y=y.modelData,Ft(y)&&(a.dm(y),a.modelData=y)}Be.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!TS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+Ly(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+cg(this,this.nodeDataArray,!0)},Be.kv=function(a){MS(this,a),a=a.nodeDataArray,bt(a)&&(this.dm(a),this.nodeDataArray=a)};function kS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=E.get(b);ee===null?(ee=new Tn,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new ti,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Gn?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===Jn||z===gi)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function NS(a,y){for(var x=new Tn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];Z0(a,y,b,b,x)}return x}function Z0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return b.add(E),!0;if(Z0(a,y,ee,E,b))return!0}else if(Ft(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return b.add(E),!0;if(Z0(a,y,ee,E,b))return!0}return!1}Be.Pv=function(a,y){var x=this,E=!1,b=new Tn,z=new Tn,ee=new Tn,re=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===Jn?b.add(ue.newValue):ue.change===gi&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==Gn||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(re&&re.contains(ue.object)?re.get(ue.object).each(function(ge){x.lb(ge)&&z.add(ge)}):ue.object instanceof Zi||x.ri()&&x.Jc(ue.object)||NS(x,ue.object).each(function(ge){z.add(ge)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(x.wa(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(x.wa(ue)),y&&z.add(ue)}),a="",E&&(a+=`,
|
|
"modelData": `+Ly(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+cg(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+cg(this,z.Fa(),!0)),0<se.count&&(a+=(y?this.Wv:this.Yv)+cg(this,se.Fa(),!0)),se.clear(),oe.clear(),a},Be.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)&&Ot("applyIncrementalJson cannot change Model properties"),MS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new ti;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],ee=this.wa(z);ee!=null&&E.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=E.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Be.$x=function(a,y){a.change!==wn&&Ot("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ki?(y===void 0&&(y=wm(this,this)),kS(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 }'},Be.yA=function(a,y){return this.$x(a,y)},Be.np=function(a){return a===void 0&&(a=wm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Be.toJSON=function(a){return this.np(a)},Be.Zw=function(a){var y=null;if(typeof a=="string")try{y=Rn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Ot("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ot("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Be.Ky=function(a){return this.Zw(a)},Zi.constructGraphLinksModel=function(){return new Zi},Be=Zi.prototype,Be.dm=function(a){if(bt(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Ft(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:Ot("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Ft(a)){for(y in a)if(x=a[y],Ft(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new tn,E=0;E<x.length/2;E++)b.add(new Ue(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Gx(a)}return a},Be.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()):bt(a)?cg(this,a):Ft(a)?Ly(this,a):typeof a=="function"?"null":a.toString()};function cg(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new pn;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(ee)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function TS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ec(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Ly(a,y){var x=y;if(x instanceof Ue)y={class:"go.Point",x:Ec(x.x),y:Ec(x.y)};else if(x instanceof oi)y={class:"go.Size",width:Ec(x.width),height:Ec(x.height)};else if(x instanceof qt)y={class:"go.Rect",x:Ec(x.x),y:Ec(x.y),width:Ec(x.width),height:Ec(x.height)};else if(x instanceof ao)y={class:"go.Margin",top:Ec(x.top),right:Ec(x.right),bottom:Ec(x.bottom),left:Ec(x.left)};else if(x instanceof tr)x.sb()?y={class:"go.Spot",x:Ec(x.x),y:Ec(x.y),offsetX:Ec(x.offsetX),offsetY:Ec(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Xo){if(y={class:"go.Brush",type:x.type.name},x.type===Mf?y.color=x.color:(x.type===yf||x.type===wd)&&(y.start=x.start,y.end=x.end,x.type===wd&&(x.startRadius!==0&&(y.startRadius=Ec(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ec(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof ni?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ec(x.startX)),x.startY!==0&&(y.startY=Ec(x.startY)),x.endX!==0&&(y.endX=Ec(x.endX)),x.endY!==0&&(y.endY=Ec(x.endY)),x.spot1.D(Ra)||(y.spot1=x.spot1),x.spot2.D(tu)||(y.spot2=x.spot2),x.type===ni.o&&(y.path=ni.ia(x))):x instanceof Bt&&(y={class:"go.EnumValue",classType:wm(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=ml(y,b);if(!TS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof tn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",E+=ee}else E+=a.sm(z)}return E+"}"}function Pc(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Gx(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 Ue(Pc(a.x),Pc(a.y));else if(y==="Size")x=new oi(Pc(a.width),Pc(a.height));else if(y==="Rect")x=new qt(Pc(a.x),Pc(a.y),Pc(a.width),Pc(a.height));else if(y==="Margin")x=new ao(Pc(a.top),Pc(a.right),Pc(a.bottom),Pc(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Yh(a.enum):x=new tr(Pc(a.x),Pc(a.y),Pc(a.offsetX),Pc(a.offsetY));else if(y==="Brush"){if(x=new Xo,x.type=Ht(Xo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof tr&&(x.start=a.start),a.end instanceof tr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Pc(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Pc(a.endRadius)),a=a.colorStops,Ft(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ni.parse(a.path):x=new ni,x.type=Ht(ni,a.type),typeof a.startX=="number"&&(x.startX=Pc(a.startX)),typeof a.startY=="number"&&(x.startY=Pc(a.startY)),typeof a.endX=="number"&&(x.endX=Pc(a.endX)),typeof a.endY=="number"&&(x.endY=Pc(a.endY)),a.spot1 instanceof tr&&(x.spot1=a.spot1),a.spot2 instanceof tr&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=ky(E),typeof E=="function"&&(x=Ht(E,a.name)));return x}Be.Pe=function(a){return this.Lt.add(a),this},Be.ik=function(a){this.Lt.remove(a)},Be.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},Be.cb=function(a,y,x,E,b,z,ee){Nl(this,"",a,y,x,E,b,z,ee)},Be.g=function(a,y,x,E,b){Nl(this,"",Gn,a,this,y,x,E,b)},Be.Fs=function(a,y,x,E,b,z){Nl(this,"",Gn,y,a,x,E,b,z)};function Nl(a,y,x,E,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var se=new vn;se.model=a,se.change=x,se.modelChange=y,se.propertyName=E,se.object=b,se.oldValue=z,se.oldParam=re,se.newValue=ee,se.newParam=oe,a.ds(se)}Zi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Gn){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),fs(x,E,b)}else a.change===Jn?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ft(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&ki(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Sr(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!bt(E)&&a.propertyName&&(E=ml(a.object,a.propertyName)),bt(E)&&typeof x=="number"&&(a=a.newValue,y?ki(E,x):Sr(E,x,a))):Ot("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===gi?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ft(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Sr(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&ki(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!bt(E)&&a.propertyName&&(E=ml(a.object,a.propertyName)),bt(E)&&typeof x=="number"&&(a=a.oldValue,y?Sr(E,x,a):ki(E,x))):Ot("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==wn&&Ot("unknown ChangedEvent: "+a.toString())},Zi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Zi.prototype.eb=function(a){return this.undoManager.eb(a)},Zi.prototype.Kf=function(){return this.undoManager.Kf()},Zi.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Be=Zi.prototype,Be.La=function(a,y){y===void 0&&(y=""),Nl(this,"SourceChanged",wn,y,a,null,null)},Be.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ml(a,y),y!==void 0)){if(dg(y))return y;Ot("Key value for node data "+a+" is not a number or a string: "+y)}}},Be.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=ml(a,x);E!==y&&this.hc(y)===null&&(fs(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Nl(this,"nodeKey",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else fs(a,x,y)}};function dg(a){return typeof a=="number"||typeof a=="string"}Be.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Be.hc=function(a){return a===null&&Ot("Model.findNodeDataForKey:key must not be null"),a!==void 0&&dg(a)?this.kb.I(a):null},Be.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){fs(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;fs(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;fs(a,y,x)}}}}},Be.xf=function(a){a!==null&&(Or(a),this.lb(a)||OS(this,a,!0))};function OS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&Ot("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Sr(a.Tc,E,y)),Nl(a,"nodeDataArray",Jn,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Be.Fy=function(a){if(bt(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)},Be.cm=function(a){a!==null&&IS(this,a,!0)};function IS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break e}E=-1}if(0>E)return;ki(a.Tc,E)}Nl(a,"nodeDataArray",gi,"nodeDataArray",a,y,null,E,null),a.qp(y)}Be.nA=function(a){if(bt(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)},Be.$z=function(a){if(a!==this.nodeDataArray&&bt(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Be.jp=function(a,y){y!==void 0&&(a=Pm(this,a),a instanceof Tn&&this.Vf.add(y,a))},Be.Lv=function(){},Be.fm=function(){},Be.em=function(){},Be.qp=function(){};function wh(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new Tn,a.Vf.add(y,E)),E.add(x)}}function Ch(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof Tn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function Pm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Tn?a:null)}Be.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Zi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):U0(this,a,!0),Ft(a)&&zr(a),a};function U0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=U0(a,y[x],a.copiesArrayObjects);E.push(b)}return zr(E),E}if(x&&Ft(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=ml(y,E),ee=wm(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Zi||z instanceof hi||z instanceof Ki||z instanceof vn||(z=U0(a,z,!1)),fs(x,E,z)}return zr(x),x}return y instanceof Ue||y instanceof oi||y instanceof qt||y instanceof tr||y instanceof ao?y.copy():y}Zi.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!RS&&a instanceof gt&&(RS=!0,jn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),jn(" Is that really your intent?"));var E=ml(a,y);E!==x&&(fs(a,y,x),this.Fs(a,y,E,x))},Be=Zi.prototype,Be.set=function(a,y,x){this.setDataProperty(a,y,x)},Be.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Be.Ay=function(a,y){this.ts(a,-1,y)},Be.ts=function(a,y,x){0>y&&(y=a.length),Sr(a,y,x),Nl(this,"",Jn,"",a,null,x,null,y)},Be.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ot("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];ki(a,y),Nl(this,"",gi,"",a,x,null,y,null)},Be.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ml(a,y),y===void 0))return"";if(typeof y=="string")return y;Ot("getCategoryForNodeData found a non-string category for "+a+": "+y)},Be.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=ml(a,x);E===void 0&&(E=""),E!==y&&(fs(a,x,y),Nl(this,"nodeCategory",Gn,x,a,E,y))}else fs(a,x,y)}},Be.lm=function(a,y){this.jm(y,this.Ro(a))},Be.Tl=function(){return!1},Be.Wj=function(){return!1},Be.ri=function(){return!1},Be.xs=function(){return!1},Be.Xj=function(){return!1};function My(){return new Zi}function wm(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 wm(a,y.constructor);return typeof y}function ky(a){return nh[a]?nh[a]:Rn.go!==void 0&&Rn.go[a]?Rn.go[a]:null}function ml(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function fs(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}An.Object.defineProperties(Zi.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===""&&Ot("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ot("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];Ft(b)||Ot("Model.nodeDataArray must only contain Objects, not: "+b),Or(b)}for(this.Tc=a,E=new tn,b=0;b<x;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?E.add(z):this.kb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Nl(this,"nodeDataArray",Gn,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Zi.prototype.setCategoryForNodeData=Zi.prototype.jm,Zi.prototype.getCategoryForNodeData=Zi.prototype.Ro,Zi.prototype.removeArrayItem=Zi.prototype.ov,Zi.prototype.insertArrayItem=Zi.prototype.ts,Zi.prototype.addArrayItem=Zi.prototype.Ay,Zi.prototype.assignAllDataProperties=Zi.prototype.Do,Zi.prototype.set=Zi.prototype.set,Zi.prototype.clearUnresolvedReferences=Zi.prototype.Qy,Zi.prototype.mergeNodeDataArray=Zi.prototype.$z,Zi.prototype.removeNodeDataCollection=Zi.prototype.nA,Zi.prototype.removeNodeData=Zi.prototype.cm,Zi.prototype.addNodeDataCollection=Zi.prototype.Fy,Zi.prototype.addNodeData=Zi.prototype.xf,Zi.prototype.makeNodeDataKeyUnique=Zi.prototype.$u,Zi.prototype.findNodeDataForKey=Zi.prototype.hc,Zi.prototype.containsNodeData=Zi.prototype.lb,Zi.prototype.setKeyForNodeData=Zi.prototype.km,Zi.prototype.getKeyForNodeData=Zi.prototype.wa,Zi.prototype.updateTargetBindings=Zi.prototype.La,Zi.prototype.commit=Zi.prototype.commit,Zi.prototype.rollbackTransaction=Zi.prototype.Kf,Zi.prototype.commitTransaction=Zi.prototype.eb,Zi.prototype.startTransaction=Zi.prototype.Ea,Zi.prototype.raiseDataChanged=Zi.prototype.Fs,Zi.prototype.raiseChanged=Zi.prototype.g,Zi.prototype.raiseChangedEvent=Zi.prototype.cb,Zi.prototype.removeChangedListener=Zi.prototype.ik,Zi.prototype.addChangedListener=Zi.prototype.Pe,Zi.prototype.writeJsonValue=Zi.prototype.sm,Zi.prototype.replaceJsonObjects=Zi.prototype.dm,Zi.prototype.applyIncrementalJSON=Zi.prototype.Ky,Zi.prototype.applyIncrementalJson=Zi.prototype.Zw,Zi.prototype.toJSON=Zi.prototype.toJSON,Zi.prototype.toJson=Zi.prototype.np,Zi.prototype.toIncrementalJSON=Zi.prototype.yA,Zi.prototype.toIncrementalJson=Zi.prototype.$x,Zi.prototype.toIncrementalData=Zi.prototype.xA,Zi.prototype.clear=Zi.prototype.clear;var RS=!1,nh={};Zi.className="Model",Zi.fromJSON=Zi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Rn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Ot("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=ky(E)):(b=ky(E),b===null&&(b=Rn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Zi?y=a:Ot("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Zi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Zi.safePropertyValue=ml,Zi.safePropertySet=fs,nh.Brush=Xo,nh.ChangedEvent=vn,nh.Geometry=ni,nh.Margin=ao,nh.Panel=Kn,nh.Point=Ue,nh.Rect=qt,nh.Size=oi,nh.Spot=tr,nh.Transaction=Ki,nh.UndoManager=hi;function Pl(a,y,x,E){zr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=jS,this.wk=null):(this.el=Cm,this.wk=E),this.st=new Tn}Pl.prototype.copy=function(){var a=new Pl;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},Be=Pl.prototype,Be.qb=function(a){a.classType===Pl&&(this.mode=a)},Be.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Be.freeze=function(){return this._isFrozen=!0,this},Be.ka=function(){return this._isFrozen=!1,this},Be.Kx=function(a){return a===void 0&&(a=null),this.mode=Cm,this.backConverter=a,this},Be.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Be.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function WS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Be.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")jn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=ml(y,E)),z!==void 0)if(b===null)x!==""&&fs(a,x,z);else try{if(x!==""){var ee=b(z,a);fs(a,x,ee)}else b(z,a)}catch(re){}}}},Be.sp=function(a,y,x,E){if(this.el===Cm){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=ml(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):fs(y,x,ee);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var se=E.itemIndex,ue=E.panel.itemArray;oe.ov(ue,se),oe.ts(ue,se,ee)}}else try{if(x!==""){var ge=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,ge):fs(y,x,ge)}else{var ye=z(ee,y,oe);if(ye!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Pe=E.itemIndex,Fe=E.panel.itemArray;oe.ov(Fe,Pe),oe.ts(Fe,Pe,ye)}}}catch(Te){}}finally{this.st.remove(a)}}}},An.Object.defineProperties(Pl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Ii(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Ii(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Ii(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Ii(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Ii(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Ii(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Ii(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Ii(this),this.el=a}}}),Pl.prototype.updateSource=Pl.prototype.sp,Pl.prototype.updateTarget=Pl.prototype.Mv,Pl.prototype.ofModel=Pl.prototype.dA,Pl.prototype.ofObject=Pl.prototype.cp,Pl.prototype.makeTwoWay=Pl.prototype.Kx;var _x="Binding",jS=new Bt(Pl,"OneWay",1),Cm=new Bt(Pl,"TwoWay",2);Pl.className="Binding",Pl.parseEnum=function(a,y){return function(x){return x=Ht(a,x),x===null?y:x}},Pl.toString=Hr,Pl.OneWay=jS,Pl.TwoWay=Cm;function Go(a,y,x){Zi.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Tn,this.wb=new ti,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&&(bt(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Tt(Go,Zi),Go.constructGraphLinksModel=Zi.constructGraphLinksModel,Go.prototype.cloneProtected=function(a){Zi.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},Be=Go.prototype,Be.clear=function(){Zi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Be.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Hr(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+pd(this,b,!0)+"-->"+pd(this,b,!1)}return y},Be.Qv=function(a,y){this.linkKeyProperty===""&&Ot("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Zi.prototype.Qv.call(this,a,y),E=this,b=new Tn,z=new Tn,ee=new Tn,re=this.vh;a.changes.each(function(ue){ue.model===E&&(ue.modelChange==="linkDataArray"?ue.change===Jn?b.add(ue.newValue):ue.change===gi&&ee.add(ue.oldValue):E.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):ue.object instanceof Zi||E.lb(ue.object)||zS(E,ue.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(E.Ac(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(E.Ac(ue)),y&&z.add(ue)}),a=E.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<se.count&&(x===null&&(x={}),y?x.insertedLinkKeys=se.Fa():x.removedLinkKeys=se.Fa()),se.clear(),oe.clear(),x},Be.rm=function(){var a=Zi.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},Be.gp=function(a){Zi.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)},Be.Rv=function(){var a=Zi.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+cg(this,this.linkDataArray,!0);return a+y},Be.kv=function(a){Zi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function zS(a,y){for(var x=new Tn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];Z0(a,y,b,b,x)}return x}Be.Pv=function(a,y){this.linkKeyProperty===""&&Ot("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Zi.prototype.Pv.call(this,a,y),E=this,b=new Tn,z=new Tn,ee=new Tn,re=this.vh;a.changes.each(function(ue){ue.model===E&&(ue.modelChange==="linkDataArray"?ue.change===Jn?b.add(ue.newValue):ue.change===gi&&ee.add(ue.oldValue):E.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):ue.object instanceof Zi||E.lb(ue.object)||zS(E,ue.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(E.Ac(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(E.Ac(ue)),y&&z.add(ue)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+cg(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+cg(this,z.Fa(),!0)),0<se.count&&(a+=(y?this.Vv:this.Xv)+cg(this,se.Fa(),!0)),se.clear(),oe.clear(),a},Be.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)&&Ot("applyIncrementalJson cannot change Model properties"),Zi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);_S(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Go.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Gn){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),fs(x,E,b);return}}else if(a.change===Jn){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ft(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===gi){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ft(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Zi.prototype.changeState.call(this,a,y)}},Be=Go.prototype,Be.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),fs(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Be.yx=function(a){return pd(this,a,!0)},Be.wv=function(a,y){Np(this,a,y,!0)},Be.Bx=function(a){return pd(this,a,!1)},Be.Bv=function(a,y){Np(this,a,y,!1)};function pd(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ml(y,a),a!==void 0))){if(dg(a))return a;Ot((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Np(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=ml(y,b);z!==x&&(Ch(a,z,y),fs(y,b,x),a.hc(x)===null&&wh(a,x,y),Nl(a,E?"linkFromKey":"linkToKey",Gn,b,y,z,x),typeof b=="string"&&a.La(y,b))}else fs(y,b,x)}}Be.zx=function(a){return K0(this,a,!0)},Be.xv=function(a,y){Tp(this,a,y,!0)},Be.Cx=function(a){return K0(this,a,!1)},Be.Cv=function(a,y){Tp(this,a,y,!1)};function K0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ml(y,a),y===void 0?"":y)}function Tp(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=ml(y,b);z===void 0&&(z=""),z!==x&&(fs(y,b,x),Nl(a,E?"linkFromPortId":"linkToPortId",Gn,b,y,z,x),typeof b=="string"&&a.La(y,b))}else fs(y,b,x)}}Be.Ef=function(a){if(a===null)return Y0;var y=this.je;return y===""?Y0:(a=ml(a,y),a===void 0?Y0:a)},Be.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=ml(a,x);if(E===void 0&&(E=Y0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)Ch(this,E[z],a);for(fs(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&wh(this,ee,a)}Nl(this,"linkLabelKeys",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else fs(a,x,y)}},Be.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=ml(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&wh(this,y,a),Nl(this,"linkLabelKeys",Jn,x,a,null,y,null,b)))}else Ot(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Be.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=ml(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(Ch(this,y,a),Nl(this,"linkLabelKeys",gi,x,a,y,null,b,null)))}else E!==void 0&&Ot(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Be.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ml(a,y),y!==void 0)){if(dg(y))return y;Ot("Key value for link data "+a+" is not a number or a string: "+y)}}},Be.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=ml(a,x);E!==y&&this.jh(y)===null&&(fs(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Nl(this,"linkKey",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else fs(a,x,y)}},Be.jh=function(a){return a===null&&Ot("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&dg(a)?this.wb.I(a):null},Be.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){fs(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;fs(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;fs(a,y,x)}}}}},Be.Jc=function(a){return a===null?!1:this.$f.contains(a)},Be.fi=function(a){a!==null&&(Or(a),this.Jc(a)||VS(this,a,!0))};function VS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&Ot("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Nl(a,"linkDataArray",Jn,"linkDataArray",a,null,y,null,E),Ny(a,y)}Be.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)},Be.bm=function(a){a!==null&&GS(this,a,!0)};function GS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Nl(a,"linkDataArray",gi,"linkDataArray",a,y,null,E,null),x=pd(a,y,!0),Ch(a,x,y),x=pd(a,y,!1),Ch(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],Ch(a,x,y)}Be.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)},Be.Zz=function(a){if(this.linkKeyProperty===""&&Ot("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&bt(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),_S(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function Ny(a,y){var x=pd(a,y,!0);x=a.Vl(x),a.hc(x)===null&&wh(a,x,y),x=pd(a,y,!1),x=a.Vl(x),a.hc(x)===null&&wh(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&wh(a,x,y)}Be.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):U0(this,a,!0),Ft(a)&&(zr(a),this.lf!==""&&fs(a,this.lf,void 0),this.mf!==""&&fs(a,this.mf,void 0),this.je!==""&&fs(a,this.je,[])),a},Be.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ml(a,y)},Be.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ml(a,y),y!==void 0)){if(dg(y))return y;Ot("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Be.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=ml(a,x);E!==y&&(Ch(this,E,a),fs(a,x,y),this.hc(y)===null&&wh(this,y,a),Nl(this,"nodeGroupKey",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else fs(a,x,y)}},Go.prototype.copyNodeData=function(a){return a===null?null:(a=Zi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ml(a,this.Je)===void 0||fs(a,this.Je,void 0),a)},Go.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){Np(this,a,x,!0);return}if(y===this.linkToKeyProperty){Np(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Tp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Tp(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=ml(a,y);E!==x&&(fs(a,y,x),this.Fs(a,y,E,x))},Be=Go.prototype,Be.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&ml(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Be.jp=function(a,y){Zi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(pd(this,E,!0)===b){var ee=this.lf;fs(E,ee,z),Nl(this,"linkFromKey",Gn,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(pd(this,E,!1)===b&&(ee=this.mf,fs(E,ee,z),Nl(this,"linkToKey",Gn,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)),ee=this.Ef(E),Array.isArray(ee))for(var re=ee.length,oe=this.je,se=0;se<re;se++)ee[se]===b&&(ee[se]=z,Nl(this,"linkLabelKeys",Jn,oe,E,b,z,se,se))}},Be.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;fs(a,E,x),Nl(this,"nodeGroupKey",Gn,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Be.Lv=function(){Zi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Ny(this,a[x])},Be.fm=function(a){Zi.prototype.fm.call(this,a),a=this.wa(a);var y=Pm(this,a);if(y!==null){var x=Ni();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Nl(this,"nodeGroupKey",Gn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(pd(this,E,!0)===a&&(b=this.lf,Nl(this,"linkFromKey",Gn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),pd(this,E,!1)===a&&(b=this.mf,Nl(this,"linkToKey",Gn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(Nl(this,"linkLabelKeys",Jn,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)Ch(this,a,x[y]);qn(x)}},Be.em=function(a){Zi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&wh(this,y,a)},Be.qp=function(a){Zi.prototype.qp.call(this,a);var y=this.lh(a);Ch(this,y,a)},Be.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ml(a,y),y===void 0))return"";if(typeof y=="string")return y;Ot("getCategoryForLinkData found a non-string category for "+a+": "+y)},Go.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Go.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=ml(a,x);E===void 0&&(E=""),E!==y&&(fs(a,x,y),Nl(this,"linkCategory",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else fs(a,x,y)}},Go.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Be=Go.prototype,Be.lm=function(a,y){Zi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function _S(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))}Be.Wj=function(){return!0},Be.ri=function(){return!0},Be.xs=function(){return!0},Be.Xj=function(){return!0},An.Object.defineProperties(Go.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];Ft(b)||Ot("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Or(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new tn,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?E.add(z):this.wb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new Tn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Nl(this,"linkDataArray",Gn,"linkDataArray",this,y,a),y=0;y<x;y++)Ny(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Go.prototype.setCategoryForLinkData=Go.prototype.lp,Go.prototype.getCategoryForLinkData=Go.prototype.ps,Go.prototype.assignAllDataProperties=Go.prototype.Do,Go.prototype.setGroupKeyForNodeData=Go.prototype.mp,Go.prototype.getGroupKeyForNodeData=Go.prototype.lh,Go.prototype.isGroupForNodeData=Go.prototype.Yu,Go.prototype.copyLinkData=Go.prototype.Jo,Go.prototype.mergeLinkDataArray=Go.prototype.Zz,Go.prototype.removeLinkDataCollection=Go.prototype.lA,Go.prototype.removeLinkData=Go.prototype.bm,Go.prototype.addLinkDataCollection=Go.prototype.Ey,Go.prototype.addLinkData=Go.prototype.fi,Go.prototype.containsLinkData=Go.prototype.Jc,Go.prototype.makeLinkDataKeyUnique=Go.prototype.Bs,Go.prototype.findLinkDataForKey=Go.prototype.jh,Go.prototype.setKeyForLinkData=Go.prototype.Ks,Go.prototype.getKeyForLinkData=Go.prototype.Ac,Go.prototype.removeLabelKeyForLinkData=Go.prototype.Qx,Go.prototype.addLabelKeyForLinkData=Go.prototype.Bu,Go.prototype.setLabelKeysForLinkData=Go.prototype.Ls,Go.prototype.getLabelKeysForLinkData=Go.prototype.Ef,Go.prototype.setToPortIdForLinkData=Go.prototype.Cv,Go.prototype.getToPortIdForLinkData=Go.prototype.Cx,Go.prototype.setFromPortIdForLinkData=Go.prototype.xv,Go.prototype.getFromPortIdForLinkData=Go.prototype.zx,Go.prototype.setToKeyForLinkData=Go.prototype.Bv,Go.prototype.getToKeyForLinkData=Go.prototype.Bx,Go.prototype.setFromKeyForLinkData=Go.prototype.wv,Go.prototype.getFromKeyForLinkData=Go.prototype.yx,Go.prototype.clear=Go.prototype.clear;var Y0=Object.freeze([]);Go.className="GraphLinksModel",nh.GraphLinksModel=Go,Zi.constructGraphLinksModel=Zi.constructGraphLinksModel=function(){return new Go},Zi.initDiagramModel=My=function(){return new Go};function wc(a,y){Zi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(bt(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Tt(wc,Zi),wc.constructGraphLinksModel=Zi.constructGraphLinksModel,wc.prototype.cloneProtected=function(a){Zi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Be=wc.prototype,Be.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Hr(b)}}return y},Be.rm=function(){var a=Zi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Be.gp=function(a){Zi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Be.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ot("applyIncrementalJson cannot change Model properties"),Zi.prototype.fp.call(this,a)},Be.Vl=function(a){return a},Be.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ml(a,y),y!==void 0)){if(dg(y))return y;Ot("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Be.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=ml(a,x);E!==y&&(Ch(this,E,a),fs(a,x,y),this.hc(y)===null&&wh(this,y,a),Nl(this,"nodeParentKey",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else fs(a,x,y)}},Be.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ml(a,y),y===void 0)?"":typeof y=="string"?y:(Ot("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},wc.prototype.getLinkCategoryForData=function(a){return this.ss(a)},wc.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=ml(a,x);E===void 0&&(E=""),E!==y&&(fs(a,x,y),Nl(this,"parentLinkCategory",Gn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else fs(a,x,y)}},wc.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},wc.prototype.copyNodeData=function(a){return a===null?null:(a=Zi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ml(a,this.Ke)===void 0||fs(a,this.Ke,void 0),a)},wc.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=ml(a,y);E!==x&&(fs(a,y,x),this.Fs(a,y,E,x))},Be=wc.prototype,Be.jp=function(a,y){Zi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Be.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;fs(a,E,x),Nl(this,"nodeParentKey",Gn,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Be.fm=function(a){Zi.prototype.fm.call(this,a),a=this.wa(a);var y=Pm(this,a);if(y!==null){var x=Ni();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Nl(this,"nodeParentKey",Gn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)Ch(this,a,x[y]);qn(x)}},Be.em=function(a){Zi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&wh(this,y,a)},Be.qp=function(a){Zi.prototype.qp.call(this,a);var y=this.mh(a);Ch(this,y,a)},Be.lm=function(a,y){Zi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Be.Tl=function(){return!0},Be.xs=function(){return!0},An.Object.defineProperties(wc.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"}}}),wc.prototype.setParentLinkCategoryForNodeData=wc.prototype.Ms,wc.prototype.getParentLinkCategoryForNodeData=wc.prototype.ss,wc.prototype.setParentKeyForNodeData=wc.prototype.qe,wc.prototype.getParentKeyForNodeData=wc.prototype.mh,wc.className="TreeModel",nh.TreeModel=wc;function Ws(a){vs.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ih,this.Ti=0,this.Zv=new Ue,this.Jp=this.me=0,this.Xr=new Bm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ih,this.K=Cc,this.nd=Ip,this.hd=Ay,this.tf=6,this.Nn=tv,a&&Object.assign(this,a)}Tt(Ws,vs),Ws.prototype.cloneProtected=function(a){vs.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},Ws.prototype.qb=function(a){a.classType===Ws?a===$0||a===ev||a===Q0||a===q0||a===Ip?this.sorting=a:a===Rg||a===Op||a===Cc||a===fg?this.direction=a:a===jf||a===hg||a===ih||a===rh?this.arrangement=a:(a===np||a===tv)&&(this.nodeDiameterFormula=a):vs.prototype.qb.call(this,a)},Ws.prototype.createNetwork=function(){return new Rp(this)},Ws.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 tn;y.addAll(a.iterator),a=new tn;var x=new tn,E=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,se=this.radius;(!isFinite(se)||0>=se)&&(se=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var ge=this.startAngle;isFinite(ge)||(ge=0);var ye=this.sweepAngle;if((!isFinite(ye)||360<ye||1>ye)&&(ye=360),y=this.spacing,isFinite(y)||(y=NaN),re===rh&&oe===np?re=ih:re===rh&&oe!==np&&(re=this.arrangement),(this.direction===Rg||this.direction===Op)&&this.sorting!==Ip){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===Rg?(this.arrangement===rh&&a.reverse(),E=new tn,E.addAll(a),E.addAll(x)):(this.arrangement===rh&&x.reverse(),E=new tn,E.addAll(x),E.addAll(a))}oe=E.length;for(var Pe=z=b=0;Pe<E.length;Pe++){var Fe=ge+ye*z*(this.direction===Cc?1:-1)/oe,Te=E.M(Pe).diameter;isNaN(Te)&&(Te=gg(E.M(Pe),Fe)),360>ye&&(Pe===0||Pe===E.length-1)&&(Te/=2),b+=Te,z++}if(isNaN(se)||re===rh){if(isNaN(y)&&(y=6),re!==ih&&re!==rh){for(z=-1/0,ee=0;ee<oe;ee++)Pe=E.M(ee),b=E.M(ee===oe-1?0:ee+1),isNaN(Pe.diameter)&&gg(Pe,0),isNaN(b.diameter)&&gg(b,0),z=Math.max(z,(Pe.diameter+b.diameter)/2);ee=z+y,re===jf?se=(z+y)/(2*Math.PI/oe):se=X0(this,ee*(360<=ye?oe:oe-1),ue,ge*Math.PI/180,ye*Math.PI/180)}else se=X0(this,b+(360<=ye?oe:oe-1)*(re!==rh?y:1.6*y),ue,ge*Math.PI/180,ye*Math.PI/180);z=se*ue}else if(z=se*ue,Pe=Ty(this,se,z,ge*Math.PI/180,ye*Math.PI/180),isNaN(y))(re===ih||re===rh)&&(y=(Pe-b)/(360<=ye?oe:oe-1));else if(re===ih||re===rh)Pe=(Pe-b)/(360<=ye?oe:oe-1),Pe<y?(se=X0(this,b+y*(360<=ye?oe:oe-1),ue,ge*Math.PI/180,ye*Math.PI/180),z=se*ue):y=Pe;else{for(ee=-1/0,b=0;b<oe;b++)Fe=E.M(b),Te=E.M(b===oe-1?0:b+1),isNaN(Fe.diameter)&&gg(Fe,0),isNaN(Te.diameter)&&gg(Te,0),ee=Math.max(ee,(Fe.diameter+Te.diameter)/2);ee+=y,b=X0(this,ee*(360<=ye?oe:oe-1),ue,ge*Math.PI/180,ye*Math.PI/180),b>se?(se=b,z=se*ue):ee=Pe/(360<=ye?oe:oe-1)}if(this.kw=re,this.lc=se,this.Zm=ue,this.lw=ge,this.Wp=ye,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,se=this.lw,ue=this.Wp,ge=this.Ti,ye=this.me,oe=this.Jp,this.direction!==Rg&&this.direction!==Op||E!==rh)if(this.direction===Rg||this.direction===Op){switch(ee=0,E){case hg:ee=180*J0(this,re,ye,se,oe)/Math.PI;break;case ih:oe=y=0,ee=a.first(),ee!==null&&(y=gg(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=gg(ee,Math.PI/2)),ee=180*J0(this,re,ye,se,ge+(y+oe)/2)/Math.PI;break;case jf:ee=ue/y.length}if(this.direction===Rg){switch(E){case hg:bm(this,a,se,fg);break;case ih:Fm(this,a,se,fg);break;case jf:Am(this,a,ue/2,se,fg)}switch(E){case hg:bm(this,x,se+ee,Cc);break;case ih:Fm(this,x,se+ee,Cc);break;case jf:Am(this,x,ue/2,se+ee,Cc)}}else{switch(E){case hg:bm(this,x,se,fg);break;case ih:Fm(this,x,se,fg);break;case jf:Am(this,x,ue/2,se,fg)}switch(E){case hg:bm(this,a,se+ee,Cc);break;case ih:Fm(this,a,se+ee,Cc);break;case jf:Am(this,a,ue/2,se+ee,Cc)}}}else switch(E){case hg:bm(this,y,se,this.direction);break;case ih:Fm(this,y,se,this.direction);break;case jf:Am(this,y,ue,se,this.direction);break;case rh:HS(this,y,ue,se,this.direction)}else HS(this,y,ue,se-ue/2,Cc)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Am(a,y,x,E,b){var z=a.Wp,ee=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var se=E+(b===Cc?oe*x/(360<=z?re:re-1):-(oe*x)/re),ue=y.M(oe),ge=ee*Math.tan(se)/a;ge=Math.sqrt((ee*ee+a*a*ge*ge)/(1+ge*ge)),ue.centerX=ge*Math.cos(se),ue.centerY=ge*Math.sin(se),ue.actualAngle=180*se/Math.PI}}function Fm(a,y,x,E){var b=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var se=y.M(oe),ue=y.M(oe===re-1?0:oe+1),ge=z*Math.sin(x);se.centerX=b*Math.cos(x),se.centerY=ge,se.actualAngle=180*x/Math.PI,isNaN(se.diameter)&&gg(se,0),isNaN(ue.diameter)&&gg(ue,0),se=J0(a,b,z,E===Cc?x:-x,(se.diameter+ue.diameter)/2+ee),x+=E===Cc?se:-se}}function bm(a,y,x,E){var b=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var se=y.M(oe);se.centerX=b*Math.cos(x),se.centerY=z*Math.sin(x),se.actualAngle=180*x/Math.PI,se=J0(a,b,z,E===Cc?x:-x,ee),x+=E===Cc?se:-se}}function HS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Bm,360>x){for(z=E+(b===Cc?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,US(a,y,x,E,b)}else ZS(a,y,x,E,b);a.Xr.commit(y)}function ZS(a,y,x,E,b){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),se=a.me*Math.sin(E*Math.PI/180),ue=y.Fa();if(ue.length===3)ue[0].centerX=z,ue[0].centerY=0,ue[1].centerX=ue[0].centerX-ue[0].width/2-ue[1].width/2-ee,ue[1].y=ue[0].y,ue[2].centerX=(ue[0].centerX+ue[1].centerX)/2,ue[2].y=ue[0].y-ue[2].height-ee;else if(ue.length===4)ue[0].centerX=z,ue[0].centerY=0,ue[2].centerX=-ue[0].centerX,ue[2].centerY=ue[0].centerY,ue[1].centerX=0,ue[1].y=Math.min(ue[0].y,ue[2].y)-ue[1].height-ee,ue[3].centerX=0,ue[3].y=Math.max(ue[0].y+ue[0].height+ee,ue[2].y+ue[2].height+ee);else{z=Ue.alloc();for(var ge=0;ge<ue.length&&(ue[ge].centerX=oe,ue[ge].centerY=se,!(ge>=ue.length-1));ge++)KS(a,oe,se,ue,ge,b,z)||YS(a,oe,se,ue,ge,b,z),oe=z.x,se=z.y;if(Ue.free(z),a.mj++,!(23<a.mj)){oe=ue[0].centerX,se=ue[0].centerY,z=ue[ue.length-1].centerX,ge=ue[ue.length-1].centerY;var ye=Math.abs(oe-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),Pe=Math.abs(se-ge)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(Pe)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<Pe?Pe:1>Math.abs(ye)?0:ye,oe=Math.abs(z)>Math.abs(ge)?0<z!=se>ge:0<ge!=oe<z,(oe=b===Cc?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ue[ue.length-1].width),ee=Math.min(ee,-ue[ue.length-1].height)),a.Xr.compare(ee,ue),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,ZS(a,y,x,E,b))}}}function US(a,y,x,E,b){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),se=ee*Math.sin(E*Math.PI/180),ue=Ue.alloc(),ge=y.Fa(),ye=0;ye<ge.length&&(ge[ye].centerX=oe,ge[ye].centerY=se,!(ye>=ge.length-1));ye++)KS(a,oe,se,ge,ye,b,ue)||YS(a,oe,se,ge,ye,b,ue),oe=ue.x,se=ue.y;if(Ue.free(ue),a.mj++,!(23<a.mj)){if(oe=Math.atan2(se,oe),oe=b===Cc?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<ge.length;oe++)ee.mk[oe]=ge[oe].bounds.x,ee.tm[oe]=ge[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,US(a,y,x,E,b))}}function KS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,se=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===Cc)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=se,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=se,!1;ue=!0}return se=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(se=-se),Math.abs(x-se)>(E[b].height+E[b+1].height)/2?(ee.x=z,ee.y=se,!1):(ee.x=z,ee.y=se,!0)}function YS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,se=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Cc)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=se,ee.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=se,ee.y=z;return}E=!0}se=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(se=-se),ee.x=se,ee.y=z}Ws.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Ws.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 Ue(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Ws.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Ty(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ee=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,se=0;se<=z;se++){E!==void 0&&b!==void 0?oe=E+se*b/z:oe=se*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function X0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?Ty(a,1,x,E,b):Ty(a,1,x))}function J0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*a}}Ws.prototype.sort=function(a){switch(this.sorting){case Q0:break;case q0:a.reverse();break;case $0:a.sort(this.comparer);break;case ev:a.sort(this.comparer),a.reverse();break;case Ip:return this.ak(Hx(a));default:Ot("Invalid sorting type.")}return a};function Hx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new tn;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Ws.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];E=[],b=new tn;for(var oe=0,se=0;se<y.length;se++){var ue=y[se].length;if(ue===1)E.push(se);else if(ue===0)b.add(a.M(se));else{if(oe===0)x.push(se);else{for(var ge=ue=1/0,ye=-1,Pe=[],Fe=0;Fe<x.length;Fe++)0>y[x[Fe]].indexOf(x[Fe===x.length-1?0:Fe+1])&&Pe.push(Fe===x.length-1?0:Fe+1);if(Pe.length===0)for(Fe=0;Fe<x.length;Fe++)Pe.push(Fe);for(Fe=0;Fe<Pe.length;Fe++){for(var Te=Pe[Fe],Je=y[se],Ze=0,it=0;it<ee.length;it++){var lt=z[ee[it]],ft=z[re[it]];if(lt<ft){var St=lt;lt=ft}else St=ft;if(St<Te&&Te<=lt)for(ft=0;ft<Je.length;ft++){var Vt=Je[ft];0>x.indexOf(Vt)||St<z[Vt]&&z[Vt]<lt||St===z[Vt]||lt===z[Vt]||Ze++}else for(ft=0;ft<Je.length;ft++)Vt=Je[ft],0>x.indexOf(Vt)||St<z[Vt]&&z[Vt]<lt&&St!==z[Vt]&<!==z[Vt]&&Ze++}for(Je=Ze,it=Ze=0;it<y[se].length;it++)St=x.indexOf(y[se][it]),0<=St&&(St=Math.abs(Te-(St>=Te?St+1:St)),Ze+=St<x.length+1-St?St:x.length+1-St);for(it=0;it<ee.length;it++)St=z[ee[it]],lt=z[re[it]],St>=Te&&St++,lt>=Te&<++,St>lt&&(ft=lt,lt=St,St=ft),lt-St<(x.length+2)/2==(St<Te&&Te<=lt)&&Ze++;(Je<ue||Je===ue&&Ze<ge)&&(ue=Je,ge=Ze,ye=Te)}for(x.splice(ye,0,se),ue=0;ue<x.length;ue++)z[x[ue]]=ue;for(ue=0;ue<y[se].length;ue++)ge=y[se][ue],0<=x.indexOf(ge)&&(ee.push(se),re.push(ge))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<E.length;re++)if(oe=E[re],se=y[oe][0],ue=x.indexOf(se),0<=ue){for(ye=ge=0;ye<y[se].length;ye++)Pe=x.indexOf(y[se][ye]),0>Pe||Pe===ue||(Fe=Pe>ue?Pe-ue:ue-Pe,ge+=Pe<ue!=Fe>ee-Fe?1:-1);x.splice(0>ge?ue:ue+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},An.Object.defineProperties(Ws.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!==rh&&a!==ih&&a!==hg&&a!==jf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Cc&&a!==fg&&a!==Rg&&a!==Op||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Q0&&a!==q0&&a!==$0&&!ev&&a!==Ip||(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!==tv&&a!==np||(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 ih=new Bt(Ws,"ConstantSpacing",0),hg=new Bt(Ws,"ConstantDistance",1),jf=new Bt(Ws,"ConstantAngle",2),rh=new Bt(Ws,"Packed",3),Cc=new Bt(Ws,"Clockwise",4),fg=new Bt(Ws,"Counterclockwise",5),Rg=new Bt(Ws,"BidirectionalLeft",6),Op=new Bt(Ws,"BidirectionalRight",7),Q0=new Bt(Ws,"Forwards",8),q0=new Bt(Ws,"Reverse",9),$0=new Bt(Ws,"Ascending",10),ev=new Bt(Ws,"Descending",11),Ip=new Bt(Ws,"Optimized",12),tv=new Bt(Ws,"Pythagorean",13),np=new Bt(Ws,"Circular",14);Ws.className="CircularLayout",Ws.ConstantSpacing=ih,Ws.ConstantDistance=hg,Ws.ConstantAngle=jf,Ws.Packed=rh,Ws.Clockwise=Cc,Ws.Counterclockwise=fg,Ws.BidirectionalLeft=Rg,Ws.BidirectionalRight=Op,Ws.Forwards=Q0,Ws.Reverse=q0,Ws.Ascending=$0,Ws.Descending=ev,Ws.Optimized=Ip,Ws.Pythagorean=tv,Ws.Circular=np;function Bm(){this.Pl=-1/0,this.tm=this.mk=null}Bm.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},Bm.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]}},Bm.className="VertexArrangement";function Rp(a){Qa.call(this,a)}Tt(Rp,Qa),Rp.prototype.createVertex=function(){return new Dm(this)},Rp.prototype.createEdge=function(){return new nv(this)},Rp.className="CircularNetwork";function Dm(a){jl.call(this,a),this.u=this.Si=NaN}Tt(Dm,jl);function gg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===rh)if(x.nodeDiameterFormula===np)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===np?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}An.Object.defineProperties(Dm.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)}}}),Dm.className="CircularVertex";function nv(a){ed.call(this,a)}Tt(nv,ed),nv.className="CircularEdge";function zu(a){vs.call(this),this.ah=null,this.An=0,this.$d=new oi(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)}Tt(zu,vs),zu.prototype.cloneProtected=function(a){vs.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},zu.prototype.createNetwork=function(){return new ip(this)},zu.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}XS(this,0,a)}this.network=y;var ee=E=x.iterator;E=this.arrangementSpacing;var re=ee.count,oe=!0;z=b=0;for(var se=Ni(),ue=0;ue<re+y.vertexes.count+2;ue++)se[ue]=null;re=0,ee.reset();for(var ge=qt.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,ge),oe)oe=!1,b=ge.x+ge.width/2,z=ge.y+ge.height/2,se[0]=new Ue(ge.x+ge.width+E.width,ge.y),se[1]=new Ue(ge.x,ge.y+ge.height+E.height),re=2;else{var ye=JS(se,re,b,z,ge.width,ge.height,E),Pe=se[ye],Fe=new Ue(Pe.x+ge.width+E.width,Pe.y),Te=new Ue(Pe.x,Pe.y+ge.height+E.height);for(ye+1<re&&se.splice(ye+1,0,null),se[ye]=Fe,se[ye+1]=Te,re++,ye=Pe.x-ge.x,Pe=Pe.y-ge.y,ue=ue.vertexes.iterator;ue.next();)Fe=ue.value,Fe.centerX+=ye,Fe.centerY+=Pe}for(qt.free(ge),ue=y.vertexes.iterator;ue.next();)ee=ue.value,ye=ee.bounds,2>re?(b=ye.x+ye.width/2,z=ye.y+ye.height/2,se[0]=new Ue(ye.x+ye.width+E.width,ye.y),se[1]=new Ue(ye.x,ye.y+ye.height+E.height),re=2):(oe=JS(se,re,b,z,ye.width,ye.height,E),ge=se[oe],Pe=new Ue(ge.x+ye.width+E.width,ge.y),ye=new Ue(ge.x,ge.y+ye.height+E.height),oe+1<re&&se.splice(oe+1,0,null),se[oe]=Pe,se[oe+1]=ye,re++,ee.centerX=ge.x+ee.width/2,ee.centerY=ge.y+ee.height/2);for(qn(se),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}qS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},zu.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},zu.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function XS(a,y,x){if(Zx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Ux(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,XS(a,y+1,x),qS(a,z),Kx(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Yx(a,y[x]);a.Zf=E}}function Zx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ux(a,y){for(var x=a.network,E=new ip(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var ee=new $S;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new tn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===E&&ee.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new tn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new tn,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,At.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var se=re=0,ue=oe.count-ee;ue<oe.count;ue++){var ge=oe.M(ue),ye=null;for(z=ge.edges.iterator;z.next();){var Pe=z.value;if(Pe.Ax(ge)===b){ye=Pe;break}}ye!==null&&(se+=ye.length,re+=ge.width*ge.height)}z=b.centerX,oe=b.centerY,ue=b.width,ge=b.height,ye=b.focus,Pe=ue*ge,1>Pe&&(Pe=1),re=At.sqrt((re+Pe+se*se*4/(ee*ee))/Pe),ee=(re-1)*ue/2,re=(re-1)*ge/2,b.bounds=new qt(z-ye.x-ee,oe-ye.y-re,ue+2*ee,ge+2*re),b.focus=new Ue(ye.x+ee,ye.y+re)}}return a.network=E,x}function Kx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ee=b.Tv;E.bounds=new qt(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new Ue(z,ee),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Yx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=At.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,se=0,ue=y.vertexes.iterator;ue.next();){var ge=ue.value;1>=ge.Vd?oe++:(re=!0,se++,ee+=Math.atan2(y.centerY-ge.centerY,y.centerX-ge.centerX))}if(oe!==0){for(0<se&&(ee/=se),se=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(se=y/2),1<x.count&&x.sort(function(Pe,Fe){return Pe===null||Fe===null||Pe===Fe?0:Fe.width*Fe.height-Pe.width*Pe.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ue=null,ge=oe.edges.iterator;ge.next();){ue=ge.value;break}ge=oe.width;var ye=oe.height;ge=At.sqrt(ge*ge+ye*ye)/2,ue=z+ue.length+ge,ge=ee+(y*(re/2>>1)+se)*(re%2===0?1:-1),oe.centerX=E+ue*Math.cos(ge),oe.centerY=b+ue*Math.sin(ge),re++}}}}function JS(a,y,x,E,b,z,ee){var re=9e19,oe=-1,se=0;e:for(;se<y;se++){var ue=a[se],ge=ue.x-x,ye=ue.y-E;if(ge=ge*ge+ye*ye,ge<re){for(ye=se-1;0<=ye;ye--)if(a[ye].y>ue.y&&a[ye].x-ue.x<b+ee.width)continue e;for(ye=se+1;ye<y;ye++)if(a[ye].x>ue.x&&a[ye].y-ue.y<z+ee.height)continue e;oe=se,re=ge}}return oe}zu.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},zu.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function QS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,E+b<ee?a>y+z?(x=E+b-ee,a=a-y-z,At.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,At.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,At.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,At.sqrt(E*E+a*a)):E-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function qS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Xx(a)););a.ah=null}function Xx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,E=Math.min(E,oe),b=Math.max(b,oe),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(Te,Je){return Te===null||Je===null||Te===Je?0:Te.centerX-Je.centerX}):y.sort(function(Te,Je){return Te===null||Je===null||Te===Je?0:Te.centerY-Je.centerY}),x=a.Zf;var se=E=re=0;for(z=0;z<y.length;z++){ee=y[z],E=ee.bounds,re=ee.focus,oe=E.x+re.x;var ue=E.y+re.y;E=ee.charge*a.electricalFieldX(oe,ue),se=ee.charge*a.electricalFieldY(oe,ue),E+=ee.mass*a.gravitationalFieldX(oe,ue),se+=ee.mass*a.gravitationalFieldY(oe,ue),ee.forceX+=E,ee.forceY+=se;for(var ge=z+1;ge<y.length;ge++){var ye=y[ge];if(ye!==ee){E=ye.bounds,re=ye.focus,se=E.x+re.x;var Pe=E.y+re.y;if(oe-se>x||se-oe>x){if(b)break}else if(ue-Pe>x||Pe-ue>x){if(!b)break}else{var Fe=QS(ee,ye);1>Fe?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new iv),Fe=E.random(),re=E.random(),oe>se?(E=Math.abs(ye.bounds.right-ee.bounds.x),E=(1+E)*Fe):oe<se?(E=Math.abs(ye.bounds.x-ee.bounds.right),E=-(1+E)*Fe):(E=Math.max(ye.width,ee.width),E=(1+E)*Fe-E/2),ue>Pe?(se=Math.abs(ye.bounds.bottom-ee.bounds.y),se=(1+se)*re):oe<se?(se=Math.abs(ye.bounds.y-ee.bounds.bottom),se=-(1+se)*re):(se=Math.max(ye.height,ee.height),se=(1+se)*re-se/2)):(re=-(ee.charge*ye.charge)/(Fe*Fe),E=(se-oe)/Fe*re,se=(Pe-ue)/Fe*re),ee.forceX+=E,ee.forceY+=se,ye.forceX-=E,ye.forceY-=se}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,E=ee.x+oe.x,ee=ee.y+oe.y,ue=z.bounds,ge=z.focus,oe=ue.x+ge.x,ue=ue.y+ge.y,ge=QS(x,z),1>ge?(ge=a.randomNumberGenerator,ge===null&&(a.randomNumberGenerator=ge=new iv),re=ge.random(),ge=ge.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,se=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*ge):(re=re.stiffness*(ge-re.length),E=(oe-E)/ge*re,se=(ue-ee)/ge*re),x.forceX+=E,x.forceY+=se,z.forceX-=E,z.forceY-=se;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}zu.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},zu.prototype.moveFixedVertex=function(){},zu.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},zu.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Dl,y.toSpot=Dl)}},zu.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=qt.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,qt.free(x)}x=qt.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}qt.free(x)},zu.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},zu.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},zu.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},zu.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},zu.prototype.electricalFieldX=function(){return 0},zu.prototype.electricalFieldY=function(){return 0},zu.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},zu.prototype.gravitationalFieldX=function(){return 0},zu.prototype.gravitationalFieldY=function(){return 0},zu.prototype.isFixed=function(a){return a.isFixed},An.Object.defineProperties(zu.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"&&Ot('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())}}}),zu.className="ForceDirectedLayout";function $S(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}$S.className="ForceDirectedSubnet";function ip(a){Qa.call(this,a)}Tt(ip,Qa),ip.prototype.createVertex=function(){return new Lm(this)},ip.prototype.createEdge=function(){return new Mm(this)},ip.className="ForceDirectedNetwork";function Lm(a){jl.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}Tt(Lm,jl),An.Object.defineProperties(Lm.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)}}}),Lm.className="ForceDirectedVertex";function Mm(a){ed.call(this,a),this.j=this.o=NaN}Tt(Mm,ed),An.Object.defineProperties(Mm.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)}}}),Mm.className="ForceDirectedEdge";function iv(){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()}iv.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},iv.className="RandomNumberGenerator";function Ca(a){vs.call(this),this.kc=this.ie=25,this.K=0,this.Dk=lv,this.Zk=uv,this.Qk=cv,this.bj=4,this.rk=dv,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 Ue,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Tt(Ca,vs),Ca.prototype.cloneProtected=function(a){vs.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},Ca.prototype.qb=function(a){a.classType===Ca?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:Ot("Unknown enum value: "+a):vs.prototype.qb.call(this,a)},Ca.prototype.createNetwork=function(){return new jp(this)},Ca.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!==Nm&&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===Nm&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ee=0,re=0,oe=0,se=0;if(E.link!==null){if(re=E.link,re===null)continue;var ue=b.node;if(ee=z.node,ue===null||ee===null)continue;var ge=re.fromNode;oe=re.toNode;for(var ye=re.fromPort;ye!==null&&!ye.Ed();)ye=ye.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){se=ge;var Pe=ye;ge=oe,ye=re,oe=se,re=Pe}var Fe=b.focus;se=z.focus;var Te=E.rev?z.bounds:b.bounds;Pe=Ue.alloc(),ue!==ge?Te.w()&&ge.isVisible()?ge.actualBounds.w()?(Tf(ge,ye,Cr,Pe),Pe.x+=ge.actualBounds.x-Te.x,Pe.y+=ge.actualBounds.y-Te.y):(Tf(ge,ye,Cr,Pe),Pe.w()||Pe.assign(Fe)):Pe.assign(Fe):Te.w()?(Tf(ge,ye,Cr,Pe),Pe.w()||Pe.assign(Fe)):Pe.assign(Fe),ge=E.rev?b.bounds:z.bounds,ue=Ue.alloc(),ee!==oe?ge.w()&&oe.isVisible()?oe.actualBounds.w()?(Tf(oe,re,Cr,ue),ue.x+=oe.actualBounds.x-ge.x,ue.y+=oe.actualBounds.y-ge.y):(Tf(oe,re,Cr,ue),ue.w()||ue.assign(se)):ue.assign(se):ge.w()?(Tf(oe,re,Cr,ue),ue.w()||ue.assign(se)):ue.assign(se),this.K===90||this.K===270?(ee=Math.round((Pe.x-Fe.x)/this.kc),oe=Pe.x,re=Math.round((ue.x-se.x)/this.kc),se=ue.x):(ee=Math.round((Pe.y-Fe.y)/this.kc),oe=Pe.y,re=Math.round((ue.y-se.y)/this.kc),se=ue.y),Ue.free(Pe),Ue.free(ue),E.portFromColOffset=ee,E.portFromPos=oe,E.portToColOffset=re,E.portToPos=se}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Pe=b.layer,ue=z.layer,ge=0,Te=E.link,Te!==null){var Je=Te.fromPort,Ze=Te.toPort;if(Je!==null&&Ze!==null){var it=Te.fromNode;if(ye=Te.toNode,it!==null&&ye!==null){var lt=sv(this,!0),ft=sv(this,!1),St=this.setsPortSpots?lt:Te.computeSpot(!0,Je);Fe=this.setsPortSpots?ft:Te.computeSpot(!1,Ze);var Vt=Te.isOrthogonal;St.$c()&&St.Hf(ft)&&Fe.$c()&&Fe.Hf(lt)?ge=0:(lt=Te.getLinkPoint(it,Je,St,!0,Vt,ye,Ze,Ue.alloc()),ft=Te.getLinkDirection(it,Je,lt,St,!0,Vt,ye,Ze),Ue.free(lt),St.ys()||ft!==lx(this,E,!0)?this.setsPortSpots&&it!==null&&it.ports.count===1&&E.rev&&(ge+=1):ge+=1,St=Te.getLinkPoint(ye,Ze,Fe,!1,Vt,it,Je,Ue.alloc()),Te=Te.getLinkDirection(ye,Ze,St,Fe,!1,Vt,it,Je),Ue.free(St),Fe.ys()||Te!==lx(this,E,!1)?this.setsPortSpots&&ye!==null&&ye.ports.count===1&&E.rev&&(ge+=2):ge+=2)}}}if(ye=ge,ge=ye===1||ye===3,(ye=ye===2||ye===3)&&(Fe=a.createVertex(),Fe.node=null,Fe.Dj=1,Fe.layer=Pe,Fe.near=b,a.dh(Fe),b=a.Zj(b,Fe,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Fe),Te=1,ge&&Te--,Pe-ue>Te&&0<Pe){for(E.valid=!1,Fe=a.createVertex(),Fe.node=null,Fe.Dj=2,Fe.layer=Pe-1,a.dh(Fe),b=a.Zj(b,Fe,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=ye?0:ee,b.portToColOffset=0,b.portFromPos=ye?0:oe,b.portToPos=0,b=Fe,Pe--;Pe-ue>Te&&0<Pe;)Fe=a.createVertex(),Fe.node=null,Fe.Dj=3,Fe.layer=Pe-1,a.dh(Fe),b=a.Zj(b,Fe,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Fe,Pe--;b=a.Zj(Fe,z,E.link),b.valid=!ge,ge&&(Fe.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=se}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=pg(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),mg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Ca.prototype.linkMinLength=function(){return 1};function Oy(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}Ca.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},Ca.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 zc(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function Fd(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function ex(a,y,x){var E=pg(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,oe=E[ee],se=oe.near;if(se!==null&&se.layer===oe.layer)if(oe=se.index,oe>ee)for(var ue=ee+1;ue<oe;ue++){var ge=E[ue];ge.near===se&&ge.Dj===se.Dj||re++}else for(ue=ee-1;ue>oe;ue--)ge=E[ue],ge.near===se&&ge.Dj===se.Dj||re++;var ye;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,se=0;se<oe.length;se++){var Pe=oe[se];if(Pe.valid&&Pe.fromVertex.layer!==y)for(ge=Pe.fromVertex.index,ue=Pe.portToPos,Pe=Pe.portFromPos,ye=se+1;ye<oe.length;ye++){var Fe=oe[ye];if(Fe.valid&&Fe.fromVertex.layer!==y){var Te=Fe.fromVertex.index,Je=Fe.portToPos;Fe=Fe.portFromPos,ue<Je&&(ge>Te||ge===Te&&Pe>Fe)&&re++,Je<ue&&(Te>ge||Te===ge&&Fe>Pe)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,se=0;se<oe.length;se++)if(Pe=oe[se],Pe.valid&&Pe.toVertex.layer!==y)for(ge=Pe.toVertex.index,ue=Pe.portToPos,Pe=Pe.portFromPos,ye=se+1;ye<oe.length;ye++)Fe=oe[ye],Fe.valid&&Fe.toVertex.layer!==y&&(Te=Fe.toVertex.index,Je=Fe.portToPos,Fe=Fe.portFromPos,Pe<Fe&&(ge>Te||ge===Te&&ue>Je)&&re++,Fe<Pe&&(Te>ge||Te===ge&&Je>ue)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var Ze=0,it=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var lt=E[oe].sourceEdgesArrayAccess;for(se=0;se<re.length;se++)if(Pe=re[se],Pe.valid&&Pe.fromVertex.layer!==y)for(ge=Pe.fromVertex.index,Pe=Pe.portFromPos,ye=0;ye<lt.length;ye++)Fe=lt[ye],Fe.valid&&Fe.fromVertex.layer!==y&&(Te=Fe.fromVertex.index,Fe=Fe.portFromPos,(ge<Te||ge===Te&&Pe<Fe)&&it++,(Te<ge||Te===ge&&Fe<Pe)&&Ze++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,lt=E[oe].destinationEdgesArrayAccess,se=0;se<re.length;se++)if(Pe=re[se],Pe.valid&&Pe.toVertex.layer!==y)for(ge=Pe.toVertex.index,ue=Pe.portToPos,ye=0;ye<lt.length;ye++)Fe=lt[ye],Fe.valid&&Fe.toVertex.layer!==y&&(Te=Fe.toVertex.index,Je=Fe.portToPos,(ge<Te||ge===Te&&ue<Je)&&it++,(Te<ge||Te===ge&&Je<ue)&&Ze++)}z[ee*b+oe]=Ze,z[oe*b+ee]=it}}return mg(a,y,E),z}Ca.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=ex(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function rv(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=pg(E,b),ee=E.tc[b],re=0,oe=0;oe<ee;oe++){var se=z[oe].destinationEdgesArrayAccess;if(se!==null)for(var ue=0;ue<se.length;ue++){var ge=se[ue];if(ge.valid&&ge.toVertex.layer!==b){var ye=ge.fromVertex.column+ge.portFromColOffset,Pe=ge.toVertex.column+ge.portToColOffset;re+=(Math.abs(ye-Pe)+1)*Oy(ge)}}}mg(E,b,z),y+=re}return y}Ca.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 Iy(a,y,x){for(var E=pg(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var se=null;0<=x&&(se=re.destinationEdgesArrayAccess);var ue=0,ge=0,ye=re.near;if(ye!==null&&ye.layer===re.layer&&(ue+=ye.column-1,ge++),oe!==null)for(ye=0;ye<oe.length;ye++){re=oe[ye];var Pe=re.fromVertex;re.valid&&!re.rev&&Pe.layer!==y&&(ue+=Pe.column,ge++)}if(se!==null)for(oe=0;oe<se.length;oe++)re=se[oe],ye=re.toVertex,re.valid&&!re.rev&&ye.layer!==y&&(ue+=ye.column,ge++);z[ee]=ge===0?-1:ue/ge}return mg(a,y,E),z}function tx(a,y,x){for(var E=pg(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var se=null;0<=x&&(se=re.destinationEdgesArrayAccess);var ue=0,ge=[],ye=re.near;if(ye!==null&&ye.layer===re.layer&&(ge[ue]=ye.column-1,ue++),re=void 0,oe!==null)for(ye=0;ye<oe.length;ye++){re=oe[ye];var Pe=re.fromVertex;re.valid&&!re.rev&&Pe.layer!==y&&(ge[ue]=Pe.column+re.portFromColOffset,ue++)}if(se!==null)for(oe=0;oe<se.length;oe++)re=se[oe],ye=re.toVertex,re.valid&&!re.rev&&ye.layer!==y&&(ge[ue]=ye.column+re.portToColOffset,ue++);ue===0?z[ee]=-1:(ge.sort(function(Fe,Te){return Fe-Te}),se=ue>>1,z[ee]=ue&1?ge[se]:ge[se-1]+ge[se]>>1)}return mg(a,y,E),z}function km(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,se=y.layer-oe.layer;re=a.linkMinLength(re),se===re&&km(a,oe,x,E,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,se=oe.layer-y.layer,re=a.linkMinLength(re),se===re&&km(a,oe,x,E,b,z)}}function Ry(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();)Ry(a,ee.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)Ry(a,y.value.fromVertex,x,E,b,z)}}Ca.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case zy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Jx(a)!==null;){for(b=nx(a);b!==null;)E[x]=b,x--,b.valid=!1,b=nx(a);for(b=ix(a);b!==null;)E[y]=b,y++,b.valid=!1,b=ix(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,se=re.destinationEdges;se.next();)se.value.toVertex.valid&&oe++;se=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&se++;(b===null||z<oe-se)&&(b=re,z=oe-se)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case lv:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&Wy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&Wy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Nm:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function nx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function ix(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function Wy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,Wy(a,b))}y.finish=a.Kn,a.Kn++}Ca.prototype.assignLayers=function(){switch(this.Zk){case Vy:rx(this);break;case Gy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ax(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 uv:for(rx(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&sx(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 rx(a){for(var y=a.network.vertexes.iterator;y.next();){var x=ox(a,y.value);a.Ia=Math.max(x,a.Ia)}}function ox(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,ox(a,z)+b)}y.layer=x}else x=y.layer;return x}function ax(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,ax(a,z)+b)}y.layer=x}else x=y.layer;return x}function sx(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)sx(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var ee=E[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&km(a,re,0,-1,!0,!1)}for(km(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var se=ee.value;if(se.component===1){var ue=0,ge=!1,ye=se.sourceEdgesArrayAccess;b=ye.length;for(var Pe=0;Pe<b;Pe++){var Fe=ye[Pe],Te=Fe.fromVertex;ue+=1,Te.component!==1&&(z+=1,Te=Te.layer-se.layer,Fe=a.linkMinLength(Fe),E=Math.min(E,Te-Fe))}for(ye=se.destinationEdgesArrayAccess,b=ye.length,Pe=0;Pe<b;Pe++)Fe=ye[Pe].toVertex,--ue,Fe.component!==1?--z:ge=!0;(oe===null||ue<re)&&!ge&&(oe=se,re=ue)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(km(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(se=0,ue=!1,ye=ee.sourceEdgesArrayAccess,ge=ye.length,Pe=0;Pe<ge;Pe++)Fe=ye[Pe].fromVertex,se+=1,Fe.component!==1?E+=1:ue=!0;for(ye=ee.destinationEdgesArrayAccess,ge=ye.length,Pe=0;Pe<ge;Pe++)Fe=ye[Pe],Te=Fe.toVertex,--se,Te.component!==1&&(--E,Te=ee.layer-Te.layer,Fe=a.linkMinLength(Fe),b=Math.min(b,Te-Fe));(re===null||se>z)&&!ue&&(re=ee,z=se)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function lx(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}Ca.prototype.initializeIndices=function(){switch(this.Qk){default:case Hy: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 cv: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&&ux(this,x);break;case _y: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&&cx(this,x)}};function ux(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&ux(a,E))}function cx(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&cx(a,E))}Ca.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=zc(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)ov(this,E,1),Vd(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=zc(this)),E=this.Ia;0<=E;E--)ov(this,E,-1),Vd(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=zc(this))}for(Fd(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)ov(this,E,0),Vd(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=zc(this)),E=this.Ia;0<=E;E--)ov(this,E,0),Vd(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=zc(this))}Fd(this,y);var z,ee,re;switch(this.rk){case Zy:break;case Uy:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Vd(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Vd(this,E,1)||z;for(b=this.countCrossings(),b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Vd(this,E,1)||z;for(b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Vd(this,E,-1)||z;for(b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Vd(this,E,0)||z;for(b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Vd(this,E,0)||z;b>=a?Fd(this,y):(a=b,y=zc(this))}break;default:case dv:for(x=this.Ia,ee=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Vd(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Vd(this,E,1)||z;for(b=this.countCrossings(),b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Vd(this,E,1)||z;for(b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Vd(this,E,-1)||z;for(b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Vd(this,E,0)||z;for(b>=a?Fd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Vd(this,E,0)||z;b>=a?Fd(this,y):(a=b,y=zc(this))}}Fd(this,y)};function ov(a,y,x){var E=pg(a,y),b=a.tc[y],z=tx(a,y,x),ee=Iy(a,y,x);for(x=0;x<b;x++)ee[x]===-1&&(ee[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=E[x],E[x]=E[x+1],E[x+1]=oe);for(x=z=0;x<b;x++)oe=E[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);mg(a,y,E)}function Vd(a,y,x){var E=pg(a,y),b=a.tc[y];x=ex(a,y,x);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,se=!0;se;)for(se=!1,z=0;z<b-1;z++){var ue=x[E[z].index*b+E[z+1].index],ge=x[E[z+1].index*b+E[z].index],ye=0,Pe=0,Fe=E[z].column,Te=E[z+1].column,Je=a.nodeMinColumnSpace(E[z],!0),Ze=a.nodeMinColumnSpace(E[z],!1),it=a.nodeMinColumnSpace(E[z+1],!0),lt=a.nodeMinColumnSpace(E[z+1],!1);Je=Fe-Je+it,Ze=Te-Ze+lt;var ft=E[z].sourceEdges.iterator;for(ft.reset();ft.next();)if(it=ft.value,lt=it.fromVertex,it.valid&<.layer===y){for(it=0;E[it]!==lt;)it++;it<z&&(ye+=2*(z-it),Pe+=2*(z+1-it)),it===z+1&&(ye+=1),it>z+1&&(ye+=4*(it-z),Pe+=4*(it-(z+1)))}for(ft=E[z].destinationEdges.iterator,ft.reset();ft.next();)if(it=ft.value,lt=it.toVertex,it.valid&<.layer===y){for(it=0;E[it]!==lt;)it++;it===z+1&&(Pe+=1)}for(ft=E[z+1].sourceEdges.iterator,ft.reset();ft.next();)if(it=ft.value,lt=it.fromVertex,it.valid&<.layer===y){for(it=0;E[it]!==lt;)it++;it<z&&(ye+=2*(z+1-it),Pe+=2*(z-it)),it===z&&(Pe+=1),it>z+1&&(ye+=4*(it-(z+1)),Pe+=4*(it-z))}for(ft=E[z+1].destinationEdges.iterator,ft.reset();ft.next();)if(it=ft.value,lt=it.toVertex,it.valid&<.layer===y){for(it=0;E[it]!==lt;)it++;it===z&&(ye+=1)}it=lt=0,ft=ee[E[z].index];var St=re[E[z].index],Vt=ee[E[z+1].index],mi=re[E[z+1].index];ft!==-1&&(lt+=Math.abs(ft-Fe),it+=Math.abs(ft-Ze)),St!==-1&&(lt+=Math.abs(St-Fe),it+=Math.abs(St-Ze)),Vt!==-1&&(lt+=Math.abs(Vt-Te),it+=Math.abs(Vt-Je)),mi!==-1&&(lt+=Math.abs(mi-Te),it+=Math.abs(mi-Je)),(Pe<ye-.5||Pe===ye&&ge<ue-.5||Pe===ye&&ge===ue&&it<lt-.5)&&(se=oe=!0,E[z].column=Ze,E[z+1].column=Je,ue=E[z],E[z]=E[z+1],E[z+1]=ue)}for(z=0;z<b;z++)E[z].index=z;return mg(a,y,E),oe}Ca.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&r5)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Wp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Wp(this,y,-1)||x;x=Wp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)jy(this,y,1);for(y=this.Md-1;0<=y;y--)jy(this,y,-1);jy(this,this.Md,0)}if(a&&(dx(this,-1),dx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Wp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Wp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Wp(this,y,0)||x}}else e5(this)};function Wp(a,y,x){for(var E=!1;Qx(a,y,x);)E=!0;return E}function Qx(a,y,x){var E,b=pg(a,y),z=a.tc[y],ee=Iy(a,y,-1);if(0<x)for(E=0;E<z;E++)ee[E]=-1;var re=Iy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var oe=!1,se=!0;se;)for(se=!1,E=0;E<z;E++){var ue=b[E].column,ge=a.nodeMinColumnSpace(b[E],!0),ye=a.nodeMinColumnSpace(b[E],!1),Pe=0;0>E-1||ue-b[E-1].column-1>ge+a.nodeMinColumnSpace(b[E-1],!1)?Pe=ue-1:Pe=ue,ge=E+1>=z||b[E+1].column-ue-1>ye+a.nodeMinColumnSpace(b[E+1],!0)?ue+1:ue;var Fe=ye=0,Te=0;if(0>=x)for(var Je=b[E].sourceEdges.iterator;Je.next();){var Ze=Je.value,it=Ze.fromVertex;if(Ze.valid&&it.layer!==y){var lt=Oy(Ze),ft=Ze.portFromColOffset;Ze=Ze.portToColOffset,it=it.column,ye+=(Math.abs(ue+Ze-(it+ft))+1)*lt,Fe+=(Math.abs(Pe+Ze-(it+ft))+1)*lt,Te+=(Math.abs(ge+Ze-(it+ft))+1)*lt}}if(0<=x)for(Je=b[E].destinationEdges.iterator;Je.next();)Ze=Je.value,it=Ze.toVertex,Ze.valid&&it.layer!==y&&(lt=Oy(Ze),ft=Ze.portFromColOffset,Ze=Ze.portToColOffset,it=it.column,ye+=(Math.abs(ue+ft-(it+Ze))+1)*lt,Fe+=(Math.abs(Pe+ft-(it+Ze))+1)*lt,Te+=(Math.abs(ge+ft-(it+Ze))+1)*lt);Ze=ft=lt=0,Je=ee[b[E].index],it=re[b[E].index],Je!==-1&&(lt+=Math.abs(Je-ue),ft+=Math.abs(Je-Pe),Ze+=Math.abs(Je-ge)),it!==-1&&(lt+=Math.abs(it-ue),ft+=Math.abs(it-Pe),Ze+=Math.abs(it-ge)),Fe<ye||Fe===ye&&ft<lt?(se=oe=!0,b[E].column=Pe):(Te<ye||Te===ye&&Ze<lt)&&(se=oe=!0,b[E].column=ge)}return mg(a,y,b),a.normalize(),oe}function jy(a,y,x){var E=pg(a,y),b=a.tc[y],z=tx(a,y,x),ee=[];for(x=0;x<b;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,oe=a.nodeMinColumnSpace(E[x],!0),se=a.nodeMinColumnSpace(E[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===b-1)ue=re;else if(x===0){var ge=E[x+1].column;ge-re===se+a.nodeMinColumnSpace(E[x+1],!0)?ue=re-1:ue=re}else x===b-1?(ge=E[x-1].column,ue=re-ge===oe+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ge=E[x+1].column,se=ge-a.nodeMinColumnSpace(E[x+1],!0)-se-1,ue=(oe+se)/2|0);else x===0&&x===b-1?ue=ee[x]:x===0?(ge=E[x+1].column,se=ge-a.nodeMinColumnSpace(E[x+1],!0)-se-1,ue=Math.min(ee[x],se)):x===b-1?(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ue=Math.max(ee[x],oe)):(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ge=E[x+1].column,se=ge-a.nodeMinColumnSpace(E[x+1],!0)-se-1,oe<ee[x]&&ee[x]<se?ue=ee[x]:oe>=ee[x]?ue=oe:se<=ee[x]&&(ue=se));ue!==re&&(z=!0,E[x].column=ue)}mg(a,y,E),a.normalize()}function qx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function $x(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){E=ee.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function dx(a,y){for(var x=0;x<=a.Ra;x++)for(;qx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;$x(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=zc(a),z=rv(a);for(E=z+1;z<E;){E=z,hx(a,x,1);var ee=rv(a);ee>z?Fd(a,b):ee<z&&(z=ee,b=zc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=zc(a),z=rv(a),E=z+1;z<E;)E=z,hx(a,x,-1),ee=rv(a),ee>z?Fd(a,b):ee<z&&(z=ee,b=zc(a));a.normalize()}function hx(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(Ry(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function e5(a){for(var y=Ni(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Tn,t5(y,x);var z=null,ee=null,re=null,oe=null,se=(a.ve&1)!==0,ue=(a.ve&2)!==0,ge=(a.ve&4)!==0,ye=(a.ve&8)!==0;for(se&&(a.verticalAlignment(y,x,!0),z=av(a,y,!0,!1)),y.reverse(),ge&&(a.verticalAlignment(y,x,!1),re=av(a,y,!1,!1)),E=eo(y),b=E.next();!b.done;b=E.next())b.value.reverse();ye&&(a.verticalAlignment(y,x,!1),oe=av(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=av(a,y,!0,!0)),qn(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Pe){var Fe=Ni();se&&Fe.push(z.get(Pe)),ue&&Fe.push(ee.get(Pe)),ge&&Fe.push(re.get(Pe)),ye&&Fe.push(oe.get(Pe)),Fe.sort(function(Je,Ze){return Je-Ze});var Te=Fe.length;Te=(Fe[Math.floor((Te-1)/2)]+Fe[Math.ceil((Te-1)/2)])/2,qn(Fe),Pe.zc=Te})}function t5(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,ee=a[E],re=a[E+1],oe=0;z<re.length;oe++){var se=re[oe];e:{if(se.node===null){var ue=Ky(se);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var ge=ue;if(oe===re.length-1||ge){for(ue=ee.length-1,ge&&(ue=Ky(se)[0].index);z<=oe;){if(se=re[z],!se.bo){ge=[];for(var ye=eo(se.sourceEdgesArrayAccess),Pe=ye.next();!Pe.done;Pe=ye.next())Pe=Pe.value,Pe.valid&&ge.push(Pe);se.bo=ge}for(se=eo(se.bo),ge=se.next();!ge.done;ge=se.next())ge=ge.value,ye=ge.fromVertex.index,(ye<b||ye>ue)&&y.add(ge);z++}b=ue}}}Ca.prototype.verticalAlignment=function(a,y,x){n5(a),a=eo(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=eo(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ee=x?Ky(z):o5(z),re=ee.length;if(0<re){ee.sort(function(ge,ye){return ge.vi-ye.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var se=ee[re],ue=void 0;ue=x?hv(se,z):hv(z,se),!y.contains(ue)&&b<se.vi&&(se.align=z,z.root=se.root,z.align=se.root,b=se.vi)}}}}};function n5(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function av(a,y,x,E){for(var b=a.K===90||a.K===270,z=eo(y),ee=z.next();!ee.done;ee=z.next()){var re=eo(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=eo(y),re=z.next();!re.done;re=z.next()){re=eo(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var se=0,ue=oe;ue.align!==oe;){var ge=ue.align,ye=ee?ue.width:ue.height,Pe=ee?ge.width:ge.height;if(x){var Fe=hv(ue,ge),Te=Fe.portFromPos,Je=Fe.portToPos;Fe.link!==null&&(ue.node&&ue.node!==Fe.link.fromNode&&(Te=ee?ue.focusX:ue.focusY),ge.node&&ge.node!==Fe.link.toNode&&(Je=ee?ge.focusX:ge.focusY))}else Fe=hv(ge,ue),Te=Fe.portToPos,Je=Fe.portFromPos,Fe.link!==null&&(ue.node&&ue.node!==Fe.link.toNode&&(Te=ee?ue.focusX:ue.focusY),ge.node&&ge.node!==Fe.link.fromNode&&(Je=ee?ge.focusX:ge.focusY));ye=E?ue.qg+(ye-Te)-(Pe-Je):ue.qg+Te-Je,ge.qg=ye,se=Math.min(se,ye),ue=ue.align}ue=oe;do ue.qg=ue.qg-se,ue=ue.align;while(ue!==oe)}}for(x=eo(y),ee=x.next();!ee.done;ee=x.next())for(z=eo(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&fx(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=gx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new ti,y=eo(y),ee=y.next();!ee.done;ee=y.next())for(x=eo(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,E?-ee.zc-z:ee.zc);return a}function fx(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=gx(E,x),z=b.root;fx(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function gx(a,y){var x=a.Tz;return a=a.vi,1>a&&Ot("Could not determine previous vertex in layer"),y[x][a-1]}Ca.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Ni(),b=Ni(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=i5(this,y[ee],E,b,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?E[x]-E[ee]:b[x]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(se){se.value+=oe.delta}}(z)));qn(E),qn(b)};function i5(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[b]=z,E[b]=ee,ee-z}Ca.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=sv(this,!0),y=sv(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function sv(a,y){return a.K===270?y?nu:Ou:a.K===90?y?Ou:nu:a.K===180?y?Tu:du:y?du:Tu}Ca.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ee=b=1/0,re=-1/0;a.next();){var oe=a.value,se=oe.layer,ue=oe.column|0;E?(ee=y.x+this.kc*ue,se=this.Kd[se]):(ee=this.Kd[se],se=y.y+this.kc*ue),oe.centerX=ee,oe.centerY=se,x&&isFinite(oe.zc)&&(E?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),E?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new Ue(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Ca.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new qt(0,0,x,Math.abs(this.Ta[0]))):y.push(new qt(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new qt(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new qt(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new qt(0,0,Math.abs(this.Ta[0]),x)):y.push(new qt(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new qt(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new qt(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Ca.prototype.commitLayers=function(){},Ca.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,ee=E.fromPort,re=E.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var se=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var ue=x.fromVertex,ge=x.toVertex;if(x.valid)y.curve===gd&&y.pointsCount===4&&(ue.column===ge.column&&this.alignOption===0?(x=y.getLinkPoint(b,ee,se,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ee),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,ee!==null&&se===ll&&(E=!0),re!==null&&oe===ll&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(Cr),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(Cr),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ue.layer===ge.layer)y.zf();else{var ye=!1,Pe=!1,Fe=this.ie,Te=y.firstPickIndex+1;if(y.isOrthogonal){Pe=!0;var Je=y.pointsCount;4<Je&&y.points.removeRange(2,Je-3)}else if(y.curve===gd)ye=!0,Je=y.pointsCount,4<Je&&y.points.removeRange(2,Je-3),Je===4&&(Te=2);else{Je=y.pointsCount;var Ze=se===ll,it=oe===ll;2<Je&&Ze&&it?y.points.removeRange(1,Je-2):3<Je&&Ze&&!it?y.points.removeRange(1,Je-3):3<Je&&!Ze&&it?y.points.removeRange(2,Je-2):4<Je&&!Ze&&!it&&y.points.removeRange(2,Je-3)}if(x.rev){for(;ge!==null&&ue!==ge;){var lt=Je=null;for(Ze=ge.sourceEdges.iterator;Ze.next()&&(it=Ze.value,it.link!==x.link||(Je=it.fromVertex,lt=it.toVertex,Je.node!==null)););if(Je===null)break;if(Je!==ue){Ze=y.i(Te-1).x,it=y.i(Te-1).y;var ft=Je.centerX,St=Je.centerY;if(Pe)this.K===180||this.K===0?Te===y.firstPickIndex+1?(y.m(Te++,Ze,it),y.m(Te++,Ze,St)):(lt!==null?lt.centerY:it)!==St&&(lt=this.Ta[Je.layer-1]+this.Rf.x,y.m(Te++,lt,it),y.m(Te++,lt,St)):Te===y.firstPickIndex+1?(y.m(Te++,Ze,it),y.m(Te++,ft,it)):(lt!==null?lt.centerX:Ze)!==ft&&(lt=this.Ta[Je.layer-1]+this.Rf.y,y.m(Te++,Ze,lt),y.m(Te++,ft,lt));else if(Te===y.firstPickIndex+1){lt=Math.max(10,this.he[ge.layer]);var Vt=Math.max(10,this.Ld[ge.layer]);if(ye)this.K===180?ft<=ge.bounds.x?(ge=ge.bounds.x,y.m(Te++,ge-lt,St),y.m(Te++,ge,St),y.m(Te++,ge+Vt,St)):(y.m(Te++,ft-lt,St),y.m(Te++,ft,St),y.m(Te++,ft+Vt,St)):this.K===90?St>=ge.bounds.bottom?(ge=ge.bounds.y+ge.bounds.height,y.m(Te++,ft,ge+Vt),y.m(Te++,ft,ge),y.m(Te++,ft,ge-lt)):(y.m(Te++,ft,St+Vt),y.m(Te++,ft,St),y.m(Te++,ft,St-lt)):this.K===270?St<=ge.bounds.y?(ge=ge.bounds.y,y.m(Te++,ft,ge-lt),y.m(Te++,ft,ge),y.m(Te++,ft,ge+Vt)):(y.m(Te++,ft,St-lt),y.m(Te++,ft,St),y.m(Te++,ft,St+Vt)):this.K===0&&(ft>=ge.bounds.right?(ge=ge.bounds.x+ge.bounds.width,y.m(Te++,ge+Vt,St),y.m(Te++,ge,St),y.m(Te++,ge-lt,St)):(y.m(Te++,ft+Vt,St),y.m(Te++,ft,St),y.m(Te++,ft-lt,St)));else{y.m(Te++,Ze,it);var mi=0;this.K===180||this.K===0?((this.K===180?ft>=ge.bounds.right:ft<=ge.bounds.x)&&(mi=(this.K===0?-lt:Vt)/2),y.m(Te++,Ze+mi,St)):((this.K===270?St>=ge.bounds.bottom:St<=ge.bounds.y)&&(mi=(this.K===90?-lt:Vt)/2),y.m(Te++,ft,it+mi)),y.m(Te++,ft,St)}}else lt=Math.max(10,this.he[Je.layer]),Vt=Math.max(10,this.Ld[Je.layer]),ye?this.K===180?(y.m(Te++,ft-lt-Fe,St),y.m(Te++,Math.min(ft-lt+Fe/2,ft),St),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,Math.max(ft+Vt-Fe/2,ft),St),y.m(Te++,ft+Vt+Fe,St)):this.K===90?(y.m(Te++,ft,St+Vt+Fe),y.m(Te++,ft,Math.max(St+Vt-Fe/2,St)),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,ft,Math.min(St-lt+Fe/2,St)),y.m(Te++,ft,St-lt-Fe)):this.K===270?(y.m(Te++,ft,St-lt-Fe),y.m(Te++,ft,Math.min(St-lt+Fe/2,St)),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,ft,Math.max(St+Vt-Fe/2,St)),y.m(Te++,ft,St+Vt+Fe)):(y.m(Te++,ft+Vt+Fe,St),y.m(Te++,Math.max(ft+Vt-Fe/2,ft),St),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,Math.min(ft-lt+Fe/2,ft),St),y.m(Te++,ft-lt-Fe,St)):y.m(Te++,ft,St)}ge=Je}(re===null||se!==ll||Pe)&&(Ze=y.i(Te-1).x,it=y.i(Te-1).y,ft=y.i(Te).x,St=y.i(Te).y,Pe?(Fe=this.Ld[ue.layer],this.K===180||this.K===0?(Pe=it,Pe>=ue.bounds.y&&Pe<=ue.bounds.bottom&&(this.K===180?ft>=ue.bounds.x:ft<=ue.bounds.right)&&(ge=ue.centerX+(this.K===180?-Fe:Fe),Pe<ue.bounds.y+ue.bounds.height/2?Pe=ue.bounds.y-this.kc/2:Pe=ue.bounds.bottom+this.kc/2,y.m(Te++,ge,it),y.m(Te++,ge,Pe)),y.m(Te++,ft,Pe)):(Pe=Ze,Pe>=ue.bounds.x&&Pe<=ue.bounds.right&&(this.K===270?St>=ue.bounds.y:St<=ue.bounds.bottom)&&(ge=ue.centerY+(this.K===270?-Fe:Fe),Pe<ue.bounds.x+ue.bounds.width/2?Pe=ue.bounds.x-this.kc/2:Pe=ue.bounds.right+this.kc/2,y.m(Te++,Ze,ge),y.m(Te++,Pe,ge)),y.m(Te++,Pe,St)),y.m(Te++,ft,St)):ye?(lt=Math.max(10,this.he[ue.layer]),Vt=Math.max(10,this.Ld[ue.layer]),this.K===180&&ft>=ue.bounds.x?(ge=ue.bounds.x+ue.bounds.width,y.L(Te-2,ge,it),y.L(Te-1,ge+Vt,it)):this.K===90&&St<=ue.bounds.bottom?(ge=ue.bounds.y,y.L(Te-2,Ze,ge),y.L(Te-1,Ze,ge-lt)):this.K===270&&St>=ue.bounds.y?(ge=ue.bounds.y+ue.bounds.height,y.L(Te-2,Ze,ge),y.L(Te-1,Ze,ge+Vt)):this.K===0&&ft<=ue.bounds.right&&(ge=ue.bounds.x,y.L(Te-2,ge,it),y.L(Te-1,ge-lt,it))):(lt=Math.max(10,this.he[ue.layer]),Vt=Math.max(10,this.Ld[ue.layer]),Pe=0,this.K===180||this.K===0?((this.K===180?ft<=ue.bounds.x:ft>=ue.bounds.right)&&(Pe=(this.K===0?Vt:-lt)/2),y.m(Te++,ft+Pe,it)):((this.K===270?St<=ue.bounds.y:St>=ue.bounds.bottom)&&(Pe=(this.K===90?Vt:-lt)/2),y.m(Te++,Ze,St+Pe)),y.m(Te++,ft,St)))}else{for(;ue!==null&&ue!==ge;){for(lt=Je=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ze=ue.value,Ze.link!==x.link||(Je=Ze.toVertex,lt=Ze.fromVertex,lt.node!==null&&(lt=null),Je.node!==null)););if(Je===null)break;Je!==ge&&(Ze=y.i(Te-1).x,it=y.i(Te-1).y,ft=Je.centerX,St=Je.centerY,Pe?this.K===180||this.K===0?(lt!==null?lt.centerY:it)!==St&&(lt=this.Ta[Je.layer]+this.Rf.x,Te===y.firstPickIndex+1&&(lt=this.K===0?Math.max(lt,Ze):Math.min(lt,Ze)),y.m(Te++,lt,it),y.m(Te++,lt,St)):(lt!==null?lt.centerX:Ze)!==ft&&(lt=this.Ta[Je.layer]+this.Rf.y,Te===y.firstPickIndex+1&&(lt=this.K===90?Math.max(lt,it):Math.min(lt,it)),y.m(Te++,Ze,lt),y.m(Te++,ft,lt)):(lt=Math.max(10,this.he[Je.layer]),Vt=Math.max(10,this.Ld[Je.layer]),ye?this.K===180?(y.m(Te++,ft+Vt+Fe,St),y.m(Te++,Math.max(ft+Vt-Fe/2,ft),St),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,Math.min(ft-lt+Fe/2,ft),St),y.m(Te++,ft-lt-Fe,St)):this.K===90?(y.m(Te++,ft,St-lt-Fe),y.m(Te++,ft,Math.min(St-lt+Fe/2,St)),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,ft,Math.max(St+Vt-Fe/2,St)),y.m(Te++,ft,St+Vt+Fe)):this.K===270?(y.m(Te++,ft,St+Vt+Fe),y.m(Te++,ft,Math.max(St+Vt-Fe/2,St)),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,ft,Math.min(St-lt+Fe/2,St)),y.m(Te++,ft,St-lt-Fe)):(y.m(Te++,ft-lt-Fe,St),y.m(Te++,Math.min(ft-lt+Fe/2,ft),St),y.m(Te++,ft,St),y.m(Te++,ft,St),y.m(Te++,Math.max(ft+Vt-Fe/2,ft),St),y.m(Te++,ft+Vt+Fe,St)):this.K===180?(y.m(Te++,ft+Vt,St),y.m(Te++,ft-lt,St)):this.K===90?(y.m(Te++,ft,St-lt),y.m(Te++,ft,St+Vt)):this.K===270?(y.m(Te++,ft,St+Vt),y.m(Te++,ft,St-lt)):(y.m(Te++,ft-lt,St),y.m(Te++,ft+Vt,St)))),ue=Je}Pe&&(Ze=y.i(Te-1).x,it=y.i(Te-1).y,ft=y.i(Te).x,St=y.i(Te).y,this.K===180||this.K===0?it!==St&&(lt=this.K===0?Math.min(Math.max((ft+Ze)/2,this.Ta[ge.layer]+this.Rf.x),ft):Math.max(Math.min((ft+Ze)/2,this.Ta[ge.layer]+this.Rf.x),ft),y.m(Te++,lt,it),y.m(Te++,lt,St)):Ze!==ft&&(lt=this.K===90?Math.min(Math.max((St+it)/2,this.Ta[ge.layer]+this.Rf.y),St):Math.max(Math.min((St+it)/2,this.Ta[ge.layer]+this.Rf.y),St),y.m(Te++,Ze,lt),y.m(Te++,ft,lt)))}E!==null&&ye&&4<=y.pointsCount&&(ee!==null&&(ee=se===ll?y.getLinkPointFromPoint(b,ee,ee.ga(Cr),y.i(3),!0):y.i(0),se===ll&&(se=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+se.x)/2,se.y),y.L(2,E.x,(se.y+E.y)/2)):(y.L(1,se.x,(ee.y+se.y)/2),y.L(2,(se.x+E.x)/2,E.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===ll?y.getLinkPointFromPoint(z,re,re.ga(Cr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===ll&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ca.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new tn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),ee=E.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new vg;re.layer=Math.floor(z.y/2);var oe=E.i(0),se=E.i(E.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=se.x*se.x+se.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=E,b+2<E.pointsCount){oe=E.i(b-1),se=E.i(b+2);var ue=0;oe.y<z.y?ue=se.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ue=se.y>z.y?0:ee.x<z.x?2:1),re.j=ue}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<b;oe++)se=x[oe],se.jc!==re&&(ue++,re=se.jc);this.zi(x,this.Ux,z,z+ee);var ge=1;for(re=x[z].first,oe=z;oe<b;oe++)se=x[oe],se.first!==re&&(ge++,re=se.first);for(oe=!0,se=ge,ue<ge?(oe=!1,se=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,ge=z;ge<b;ge++){var ye=x[ge];(oe?ye.first:ye.jc)!==re&&(ue++,re=oe?ye.first:ye.jc);var Pe=ye.link;z=Pe.i(ye.index),ee=Pe.i(ye.index+1);var Fe=this.linkSpacing*(ue-(se-1)/2);y++,Pe.uh(),Pe.L(ye.index,z.x,z.y+Fe),Pe.L(ye.index+1,ee.x,ee.y+Fe),Pe.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),ee=E.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new vg,re.layer=Math.floor(z.x/2),oe=E.i(0),se=E.i(E.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=se.x+se.y*se.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=E,b+2<E.pointsCount&&(oe=E.i(b-1),se=E.i(b+2),ue=0,oe.x<z.x?ue=se.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ue=se.x>z.x?0:ee.y<z.y?2:1),re.j=ue),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<b;oe++)se=x[oe],se.jc!==re&&(ue++,re=se.jc);for(this.zi(x,this.Ux,z,z+ee),ge=1,re=x[z].first,oe=z;oe<b;oe++)se=x[oe],se.first!==re&&(ge++,re=se.first);for(oe=!0,se=ge,ue<ge?(oe=!1,se=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,ge=z;ge<b;ge++)ye=x[ge],(oe?ye.first:ye.jc)!==re&&(ue++,re=oe?ye.first:ye.jc),Pe=ye.link,z=Pe.i(ye.index),ee=Pe.i(ye.index+1),Fe=this.linkSpacing*(ue-(se-1)/2),y++,Pe.uh(),Pe.L(ye.index,z.x+Fe,z.y),Pe.L(ye.index+1,ee.x+Fe,ee.y),Pe.zf()}z=b}a=E}}}},Be=Ca.prototype,Be.Vx=function(a,y){return a instanceof vg&&y instanceof vg&&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},Be.Ux=function(a,y){return a instanceof vg&&y instanceof vg&&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},Be.Js=function(a,y){return a instanceof vg&&y instanceof vg&&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},Be.B=function(a,y){return a-=y,-1<a&&1>a},Be.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Ot("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function pg(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function mg(a,y,x){a.He[a.tc[y]]=x}An.Object.defineProperties(Ca.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()):Ot("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==zy&&a!==lv&&a!==Nm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==uv&&a!==Vy&&a!==Gy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==cv&&a!==_y&&a!==Hy||(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!==Zy&&a!==dv&&a!==Uy||(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 lv=new Bt(Ca,"CycleDepthFirst",0),zy=new Bt(Ca,"CycleGreedy",1),Nm=new Bt(Ca,"CycleFromLayers",2),uv=new Bt(Ca,"LayerOptimalLinkLength",0),Vy=new Bt(Ca,"LayerLongestPathSink",1),Gy=new Bt(Ca,"LayerLongestPathSource",2),cv=new Bt(Ca,"InitDepthFirstOut",0),_y=new Bt(Ca,"InitDepthFirstIn",1),Hy=new Bt(Ca,"InitNaive",2),Zy=new Bt(Ca,"AggressiveNone",0),dv=new Bt(Ca,"AggressiveLess",1),Uy=new Bt(Ca,"AggressiveMore",2),r5=8;Ca.className="LayeredDigraphLayout",Ca.CycleDepthFirst=lv,Ca.CycleGreedy=zy,Ca.CycleFromLayers=Nm,Ca.LayerOptimalLinkLength=uv,Ca.LayerLongestPathSink=Vy,Ca.LayerLongestPathSource=Gy,Ca.InitDepthFirstOut=cv,Ca.InitDepthFirstIn=_y,Ca.InitNaive=Hy,Ca.AggressiveNone=Zy,Ca.AggressiveLess=dv,Ca.AggressiveMore=Uy,Ca.PackNone=0,Ca.PackExpand=1,Ca.PackStraighten=2,Ca.PackMedian=4,Ca.PackAll=15,Ca.AlignNone=0,Ca.AlignUpperLeft=1,Ca.AlignUpperRight=2,Ca.AlignLowerLeft=4,Ca.AlignLowerRight=8,Ca.AlignAll=15;function vg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}vg.className="SegInfo";function jp(a){Qa.call(this,a)}Tt(jp,Qa),jp.prototype.createVertex=function(){return new bd(this)},jp.prototype.createEdge=function(){return new Tm(this)},jp.className="LayeredDigraphNetwork";function bd(a){jl.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}Tt(bd,jl);function px(a,y){return a.index-y.index}function hv(a,y){if(!a.$n){for(var x=[],E=eo(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=eo(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ot("Unable to find destination edge to given vertex")}function Ky(a){if(!a.co){for(var y=[],x=eo(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(px),a.co=y}return a.co}function o5(a){if(!a.ao){for(var y=[],x=eo(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(px),a.ao=y}return a.ao}bd.prototype.Cl=function(a){jl.prototype.Cl.call(this,a),this.bo=this.co=null},bd.prototype.Kl=function(a){jl.prototype.Kl.call(this,a),this.bo=this.co=null},bd.prototype.zl=function(a){jl.prototype.zl.call(this,a),this.$n=this.ao=null},bd.prototype.Jl=function(a){jl.prototype.Jl.call(this,a),this.$n=this.ao=null},An.Object.defineProperties(bd.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)}}}),bd.prototype.deleteDestinationEdge=bd.prototype.Jl,bd.prototype.addDestinationEdge=bd.prototype.zl,bd.prototype.deleteSourceEdge=bd.prototype.Kl,bd.prototype.addSourceEdge=bd.prototype.Cl,bd.className="LayeredDigraphVertex";function Tm(a){ed.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Tt(Tm,ed),An.Object.defineProperties(Tm.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Tm.className="LayeredDigraphEdge";function Fo(a){vs.call(this),this.Ub=new Tn,this.Wn=mv,this.ud=of,this.vo=yv,this.Bq=r1,this.$v=[],this.td=!0,this.Rb=Sv,this.$d=new oi(10,10).freeze();var y=new sp(this);this.W=new Gd(y),this.Y=new Gd(y),this.ru=[],a&&Object.assign(this,a)}Tt(Fo,vs),Fo.prototype.cloneProtected=function(a){vs.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)},Fo.prototype.qb=function(a){a.classType===Fo?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:Ot("Unknown enum value: "+a):vs.prototype.qb.call(this,a)},Fo.prototype.createNetwork=function(){return new sp(this)},Fo.prototype.makeNetwork=function(a){function y(E){if(E instanceof xi)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof ei){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ne?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Gr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Fo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==xv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ne&&(y=a),this.path===mv&&y!==null?this.ud=y.isTreePathToChildren?of:op:this.ud=this.path===mv?of: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 Tn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof xi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Gd&&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,Yy(this,y));for(y=this.network.vertexes,a=null;a=a5(y),0<a.count;)y=mx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Yy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Gd&&yx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Gd&&Sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Gd&&xx(this,y);if(this.Cu(),this.layerStyle===Ev){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===o1)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Gd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Tn,this.isValidLayout=!0};function a5(a){var y=new Tn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Fo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case of:x.sourceEdges.count===0&&this.Ub.add(x);break;case op:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Ot("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=mx(this,a),a!==null&&this.Ub.add(a))};function mx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case of:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case op:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:Ot("Unhandled path value "+a.ud.toString())}}return E}function Yy(a,y){if(y!==null){switch(a.ud){case of:if(0<y.destinationEdges.count){for(var x=new tn,E=y.destinationVertexes;E.next();){var b=E.value;vx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case op:if(0<y.sourceEdges.count){for(x=new tn,E=y.sourceVertexes;E.next();)b=E.value,vx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:Ot("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Yy(a,x[y])}}function vx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Fo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function yx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===lf&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];yx(a,oe),x+=oe.descendantCount+1,E=Math.max(E,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function s5(a,y){switch(a.vo){default:case yv:return y.parent!==null?y.parent:a.W;case n1:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case t1:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case e1:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Fo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(s5(this,a)),a.parent!==null&&a.parent.alignment===lf){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function Sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)Sx(a,y[E])}}Fo.prototype.assignTreeVertexValues=function(){};function xx(a,y){if(y!==null){y.alignment!==lf&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)xx(a,y[E])}}Fo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case zp:break;case Im:a.children.reverse();break;case Rm:a.children.sort(a.comparer);break;case Wm:a.children.sort(a.comparer),a.children.reverse();break;default:Ot("Unhandled sorting value "+a.sorting.toString())}},Fo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Fo.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=yg(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var se=a.node.Mu();se.next();){var ue=se.value;ue.category==="Comment"&&ue.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ue),ue.Va(),ue=ue.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ue.width),ee+=ue.height+Math.abs(re)):(z+=ue.width+Math.abs(re),ee=Math.max(ee,ue.height)),re=oe)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=qt.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,qt.free(b))};function yg(a){return a===zf||a===lf||a===Vf||a===Ef}function Om(a){return a===zf||a===lf}function Xy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(yg(x)){if(Om(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Vf)return!0}}return!1}Fo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=yg(z)),E=E===90||E===270,x=b===90||b===270;for(var ee=a.childrenCount===0,re=Xy(a),oe=0,se=a.comments,ue=se.length,ge=Ue.alloc(),ye=0;ye<ue;ye++){var Pe=se[ye],Fe=Pe.measuredBounds;if(E&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(ge.h(a.bounds.x-a.commentMargin-Fe.width,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();){var Te=Pe.value;Te.fromSpot=Tu,Te.toSpot=du}else for(ge.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=du,Te.toSpot=Tu;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=du,Te.toSpot=Tu;else for(ge.h(a.bounds.x+a.commentMargin-Fe.width,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Tu,Te.toSpot=du;oe=0<=a.commentSpacing?oe+(Fe.height+a.commentSpacing):oe+(a.commentSpacing-Fe.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Fe.height),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=nu,Te.toSpot=Ou;else for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Ou,Te.toSpot=nu;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Ou,Te.toSpot=nu;else for(ge.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Fe.height),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=nu,Te.toSpot=Ou;oe=0<=a.commentSpacing?oe+(Fe.width+a.commentSpacing):oe+(a.commentSpacing-Fe.width)}}if(Ue.free(ge),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===of)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},Fo.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case vv:Ex(this,a);break;case jm:if(a.alignment===lf)Ex(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=yg(x)),E=Xy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=oh(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)E=ee[x],z=Math.max(z,y?E.Da.width:E.Da.height);var oe=a.alignment;E=oe===af;var se=oe===sf,ue=yg(oe),ge=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var ye=a.nodeSpacing,Pe=this.computeNodeIndent(a),Fe=a.rowSpacing,Te=0;(E||se||a.hm||a.im&&a.maxGenerationCount===1)&&(Te=Math.max(0,a.rowIndent)),E=a.width;var Je=a.height,Ze=0,it=0,lt=0,ft=null,St=null,Vt=0,mi=0,Vi=0,Fi=0,$n=0,Mn=0,jr=0,Br=0;if(ue&&!Om(oe)&&135<b&&ee.reverse(),Om(oe))if(1<re)for(var ia=0;ia<re;ia++)ia%2===0&&ia!==re-1&&(Br=Math.max(Br,y?ee[ia].Da.width:ee[ia].Da.height));else re===1&&(Br=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case zf:it=135>b?Px(this,a,ee,Br,Ze,it):wx(this,a,ee,Br,Ze,it),Br=it.x,Ze=it.width,it=it.height;break;case Vf:for(ft=0;ft<re;ft++)St=ee[ft],ge=St.Da,lt=Mn===0?0:Fe,y?(St.S.h(z-ge.width,Fi+lt),Ze=Math.max(Ze,ge.width),it=Math.max(it,Fi+lt+ge.height),Fi+=lt+ge.height):(St.S.h(Vi+lt,z-ge.height),Ze=Math.max(Ze,Vi+lt+ge.width),it=Math.max(it,ge.height),Vi+=lt+ge.width),Mn++;break;case Ef:for(ft=0;ft<re;ft++)St=ee[ft],z=St.Da,ge=Mn===0?0:Fe,y?(St.S.h(ye/2+a.focus.x,Fi+ge),Ze=Math.max(Ze,z.width),it=Math.max(it,Fi+ge+z.height),Fi+=ge+z.height):(St.S.h(Vi+ge,ye/2+a.focus.y),Ze=Math.max(Ze,Vi+ge+z.width),it=Math.max(it,z.height),Vi+=ge+z.width),Mn++}ft=Kc(this,2),St=Kc(this,2),y?(ft[0].h(0,0),ft[1].h(0,it),St[0].h(Ze,0)):(ft[0].h(0,0),ft[1].h(Ze,0),St[0].h(0,it)),St[1].h(Ze,it)}else for(ia=0;ia<re;ia++){var Ya=ee[ia],ql=Ya.Da;if(y){0<ge&&0<Mn&&Vi+ye+ql.width>ge&&(Vi<z&&Wg(a,oe,z-Vi,0,jr,ia-1),$n++,Mn=0,jr=ia,lt=it,Vi=0,Fi=135<b?-it-Fe:it+Fe),gv(this,Ya,0,Fi);var uu=0;if(Mn===0)ft=Ya.Yo,St=Ya.kp,Vt=ql.width,mi=ql.height,(ft===null||St===null||b!==oh(Ya))&&(ft=Kc(this,2),St=Kc(this,2),ft[0].h(0,0),ft[1].h(0,mi),St[0].h(Vt,0),St[1].h(Vt,mi));else{var uc=Ni();mi=Cx(this,a,Ya,ft,St,Vt,mi,uc),uu=mi.x,ft=uc[0],St=uc[1],Vt=mi.width,mi=mi.height,qn(uc),Vi<ql.width&&0>uu&&(rp(a,-uu,0,jr,ia-1),pv(ft,-uu,0),pv(St,-uu,0),uu=0)}Ya.S.h(uu,Fi),Ze=Math.max(Ze,Vt),it=Math.max(it,lt+($n===0?0:Fe)+ql.height),Vi=Vt}else 0<ge&&0<Mn&&Fi+ye+ql.height>ge&&(Fi<z&&Wg(a,oe,0,z-Fi,jr,ia-1),$n++,Mn=0,jr=ia,lt=Ze,Fi=0,Vi=135<b?-Ze-Fe:Ze+Fe),gv(this,Ya,Vi,0),uu=0,Mn===0?(ft=Ya.Yo,St=Ya.kp,Vt=ql.width,mi=ql.height,(ft===null||St===null||b!==oh(Ya))&&(ft=Kc(this,2),St=Kc(this,2),ft[0].h(0,0),ft[1].h(Vt,0),St[0].h(0,mi),St[1].h(Vt,mi))):(uc=Ni(),mi=Cx(this,a,Ya,ft,St,Vt,mi,uc),uu=mi.x,ft=uc[0],St=uc[1],Vt=mi.width,mi=mi.height,qn(uc),Fi<ql.height&&0>uu&&(rp(a,0,-uu,jr,ia-1),pv(ft,0,-uu),pv(St,0,-uu),uu=0)),Ya.S.h(Vi,uu),it=Math.max(it,mi),Ze=Math.max(Ze,lt+($n===0?0:Fe)+ql.width),Fi=mi;Mn++}switch(0<$n&&(y?(it+=Math.max(0,x),Vi<Ze&&Wg(a,oe,Ze-Vi,0,jr,re-1),0<Te&&(se||rp(a,Te,0,0,re-1),Ze+=Te)):(Ze+=Math.max(0,x),Fi<it&&Wg(a,oe,0,it-Fi,jr,re-1),0<Te&&(se||rp(a,0,Te,0,re-1),it+=Te))),Te=se=0,oe){case Vp:y?se+=Ze/2-a.focus.x-Pe/2:Te+=it/2-a.focus.y-Pe/2;break;case ap:0<$n?y?se+=Ze/2-a.focus.x-Pe/2:Te+=it/2-a.focus.y-Pe/2:y?(Br=ee[0].S.x+ee[0].la.x,se+=Br+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-Br)/2-a.focus.x-Pe/2):(Br=ee[0].S.y+ee[0].la.y,Te+=Br+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-Br)/2-a.focus.y-Pe/2);break;case af:y?(se-=Pe,Ze+=Pe):(Te-=Pe,it+=Pe);break;case sf:y?(se+=Ze-a.width+Pe,Ze+=Pe):(Te+=it-a.height+Pe,it+=Pe);break;case zf:y?1<re?se+=Br+ye/2-a.focus.x:se+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Te+=Br+ye/2-a.focus.y:Te+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Vf:y?se+=Ze+ye/2-a.focus.x:Te+=it+ye/2-a.focus.y;break;case Ef:break;default:it=this.customAlignment(a,se,Te,Ze,it),se=it[0],Te=it[1],Ze=it[2],it=it[3]}for(Pe=0;Pe<re;Pe++)Br=ee[Pe],y?Br.S.h(Br.S.x+Br.la.x-se,Br.S.y+(135<b?(ue?-it:-Br.Da.height)+Br.la.y-x:Je+x+Br.la.y)):Br.S.h(Br.S.x+(135<b?(ue?-Ze:-Br.Da.width)+Br.la.x-x:E+x+Br.la.x),Br.S.y+Br.la.y-Te);if(re=ee=0,ue?y?(Ze=Jy(a,Ze,se),0>se&&(se=0),135<b&&(Te+=it+x),it+=Je+x,oe===Ef&&(ee+=ye/2+a.focus.x),re+=Je+x):(135<b&&(se+=Ze+x),Ze+=E+x,it=Qy(a,it,Te),0>Te&&(Te=0),oe===Ef&&(re+=ye/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>Ze&&(Ze=qy(oe,E-Ze,0),ee=Ze.x,re=Ze.y,Ze=E,se=0):Ze=Jy(a,Ze,se),0>se&&(ee-=se,se=0),135<b&&(Te+=it+x),it=Math.max(Math.max(it,Je),it+Je+x),re+=Je+x):(135<b&&(se+=Ze+x),Ze=Math.max(Math.max(Ze,E),Ze+E+x),a.comments===null?Je>it&&(it=qy(oe,0,Je-it),ee=it.x,re=it.y,it=Je,Te=0):it=Qy(a,it,Te),0>Te&&(re-=Te,Te=0),ee+=E+x),0<$n)b=Kc(this,4),$n=Kc(this,4),y?(b[2].h(0,Je+x),b[3].h(b[2].x,it),$n[2].h(Ze,b[2].y),$n[3].h($n[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ze,b[2].y),$n[2].h(b[2].x,it),$n[3].h(b[3].x,$n[2].y));else{for(b=Kc(this,ft.length+2),$n=Kc(this,St.length+2),oe=0;oe<ft.length;oe++)ue=ft[oe],b[oe+2].h(ue.x+ee,ue.y+re);for(oe=0;oe<St.length;oe++)ue=St[oe],$n[oe+2].h(ue.x+ee,ue.y+re)}y?(b[0].h(se,0),b[1].h(b[0].x,Je),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),$n[0].h(se+E,0),$n[1].h($n[0].x,Je),$n[2].y<$n[1].y&&($n[2].x<$n[0].x?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].y<$n[2].y&&($n[3].x<$n[0].x?$n[3].assign($n[2]):$n[2].assign($n[3])),b[2].y-=x/2,$n[2].y-=x/2):(b[0].h(0,Te),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),$n[0].h(0,Te+Je),$n[1].h(E,$n[0].y),$n[2].x<$n[1].x&&($n[2].y<$n[0].y?$n[2].assign($n[1]):$n[1].assign($n[2])),$n[3].x<$n[2].x&&($n[3].y<$n[0].y?$n[3].assign($n[2]):$n[2].assign($n[3])),b[2].x-=x/2,$n[2].x-=x/2),Ah(this,ft),Ah(this,St),a.Yo=b,a.kp=$n,a.la.h(se,Te),a.Da.h(Ze,it)}break;default:Ot("Unhandled compaction value "+a.compaction.toString())}}};function Ex(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=yg(x));var b=Xy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=oh(y),x=E===90||E===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var se=y.alignment,ue=se===af,ge=se===sf;re=yg(se);var ye=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Pe=y.nodeSpacing,Fe=a.computeNodeIndent(y),Te=ue||ge?0:Fe/2,Je=y.rowSpacing,Ze=0;(ue||ge||y.hm||y.im&&y.maxGenerationCount===1)&&(Ze=Math.max(0,y.rowIndent)),ue=y.width;var it=y.height,lt=0,ft=0,St=0,Vt=0,mi=0,Vi=0,Fi=0,$n=0,Mn=0,jr=0;if(re&&!Om(se)&&135<E&&b.reverse(),Om(se))if(1<ee)for(var Br=0;Br<ee;Br++){var ia=b[Br],Ya=ia.Da;Br%2===0&&Br!==ee-1?Mn=Math.max(Mn,(x?Ya.width:Ya.height)+a.computeBusNodeSpacing(ia)-Pe):Br%2!==0&&(jr=Math.max(jr,(x?Ya.width:Ya.height)+a.computeBusNodeSpacing(ia)-Pe))}else ee===1&&(Mn=x?b[0].Da.width:b[0].Da.height);if(re)switch(se){case zf:case lf:ft=135>E?Px(a,y,b,Mn,lt,ft):wx(a,y,b,Mn,lt,ft),Mn=ft.x,lt=ft.width,ft=ft.height;break;case Vf:for(ye=0;ye<ee;ye++)Te=b[ye],St=Te.Da,jr=Fi===0?0:Je,x?(Te.S.h(z-St.width,mi+jr),lt=Math.max(lt,St.width),ft=Math.max(ft,mi+jr+St.height),mi+=jr+St.height):(Te.S.h(Vt+jr,z-St.height),lt=Math.max(lt,Vt+jr+St.width),ft=Math.max(ft,St.height),Vt+=jr+St.width),Fi++;break;case Ef:for(z=0;z<ee;z++)ye=b[z],Te=ye.Da,St=Fi===0?0:Je,x?(ye.S.h(Pe/2+y.focus.x,mi+St),lt=Math.max(lt,Te.width),ft=Math.max(ft,mi+St+Te.height),mi+=St+Te.height):(ye.S.h(Vt+St,Pe/2+y.focus.y),lt=Math.max(lt,Vt+St+Te.width),ft=Math.max(ft,Te.height),Vt+=St+Te.width),Fi++}else for(jr=0;jr<ee;jr++)Br=b[jr],ia=Br.Da,x?(0<ye&&0<Fi&&Vt+Pe+ia.width>ye&&(Vt<z&&Wg(y,se,z-Vt,0,$n,jr-1),Vi++,Fi=0,$n=jr,St=ft,Vt=0,mi=135<E?-ft-Je:ft+Je),Ya=Fi===0?Te:Pe,gv(a,Br,0,mi),Br.S.h(Vt+Ya,mi),lt=Math.max(lt,Vt+Ya+ia.width),ft=Math.max(ft,St+(Vi===0?0:Je)+ia.height),Vt+=Ya+ia.width):(0<ye&&0<Fi&&mi+Pe+ia.height>ye&&(mi<z&&Wg(y,se,0,z-mi,$n,jr-1),Vi++,Fi=0,$n=jr,St=lt,mi=0,Vt=135<E?-lt-Je:lt+Je),Ya=Fi===0?Te:Pe,gv(a,Br,Vt,0),Br.S.h(Vt,mi+Ya),ft=Math.max(ft,mi+Ya+ia.height),lt=Math.max(lt,St+(Vi===0?0:Je)+ia.width),mi+=Ya+ia.height),Fi++;switch(0<Vi&&(x?(ft+=Math.max(0,oe),Vt<lt&&Wg(y,se,lt-Vt,0,$n,ee-1),0<Ze&&(ge||rp(y,Ze,0,0,ee-1),lt+=Ze)):(lt+=Math.max(0,oe),mi<ft&&Wg(y,se,0,ft-mi,$n,ee-1),0<Ze&&(ge||rp(y,0,Ze,0,ee-1),ft+=Ze))),Ze=ge=0,se){case Vp:x?ge+=lt/2-y.focus.x-Fe/2:Ze+=ft/2-y.focus.y-Fe/2;break;case ap:0<Vi?x?ge+=lt/2-y.focus.x-Fe/2:Ze+=ft/2-y.focus.y-Fe/2:x?(a=b[0].S.x+b[0].la.x,ge+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-Fe/2):(a=b[0].S.y+b[0].la.y,Ze+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-Fe/2);break;case af:x?(ge-=Fe,lt+=Fe):(Ze-=Fe,ft+=Fe);break;case sf:x?(ge+=lt-y.width+Fe,lt+=Fe):(Ze+=ft-y.height+Fe,ft+=Fe);break;case zf:case lf:x?1<ee?ge+=Mn+Pe/2-y.focus.x:ge+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?Ze+=Mn+Pe/2-y.focus.y:Ze+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Vf:x?ge+=lt+Pe/2-y.focus.x:Ze+=ft+Pe/2-y.focus.y;break;case Ef:break;default:a=a.customAlignment(y,ge,Ze,lt,ft),ge=a[0],Ze=a[1],lt=a[2],ft=a[3]}for(a=0;a<ee;a++)Fe=b[a],x?Fe.S.h(Fe.S.x+Fe.la.x-ge,Fe.S.y+(135<E?(re?-ft:-Fe.Da.height)+Fe.la.y-oe:it+oe+Fe.la.y)):Fe.S.h(Fe.S.x+(135<E?(re?-lt:-Fe.Da.width)+Fe.la.x-oe:ue+oe+Fe.la.x),Fe.S.y+Fe.la.y-Ze);x?(lt=Jy(y,lt,ge),0>ge&&(ge=0),135<E&&(Ze+=ft+oe),ft=Math.max(Math.max(ft,it),ft+it+oe)):(135<E&&(ge+=lt+oe),lt=Math.max(Math.max(lt,ue),lt+ue+oe),ft=Qy(y,ft,Ze),0>Ze&&(Ze=0)),y.la.h(ge,Ze),y.Da.h(lt,ft)}}Fo.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function Px(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new qt(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new qt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=oh(y)===90,ue=0,ge=0,ye=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Fe=x[Pe],Te=Fe.Da,Je=ue===0?0:oe;if(se){var Ze=a.computeBusNodeSpacing(Fe)-re;Fe.S.h(E-(Te.width+Ze),ye+Je),b=Math.max(b,Te.width+Ze),z=Math.max(z,ye+Je+Te.height),ye+=Je+Te.height}else Ze=a.computeBusNodeSpacing(Fe)-re,Fe.S.h(ge+Je,E-(Te.height+Ze)),z=Math.max(z,Te.height+Ze),b=Math.max(b,ge+Je+Te.width),ge+=Je+Te.width;ue++}for(ue=0,Fe=ge,Pe=ye,se?(ge=E+re,ye=0):(ge=0,ye=E+re),Te=0;Te<ee;Te++)if(Te%2!==0){Je=x[Te],Ze=Je.Da;var it=ue===0?0:oe;if(se){var lt=a.computeBusNodeSpacing(Je)-re;Je.S.h(ge+lt,ye+it),b=Math.max(b,ge+Ze.width+lt),z=Math.max(z,ye+it+Ze.height),ye+=it+Ze.height}else lt=a.computeBusNodeSpacing(Je)-re,Je.S.h(ge+it,ye+lt),b=Math.max(b,ge+it+Ze.width),z=Math.max(z,ye+Ze.height+lt),ge+=it+Ze.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,se?Math.max(Math.abs(Pe),Math.abs(ye)):Math.max(Math.abs(Fe),Math.abs(ge))),se?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),se=E+re/2-x.focus.x-x.la.x,b=Math.max(b,se+ee.width),0>se&&(b-=se),z=Math.max(z,Math.max(Pe,ye)+a+ee.height),0>x.S.x&&(E=fv(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Fe,ge)+a+ee.width),ye=E+re/2-x.focus.y-x.la.y,z=Math.max(z,ye+ee.height),0>ye&&(z-=ye),0>x.S.y&&(E=fv(y,x.S.y,!0,E,re)))),new qt(E,0,b,z)}function wx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new qt(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new qt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=oh(y)===270,ue=0,ge=0,ye=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Fe=x[Pe],Te=Fe.Da,Je=ue===0?0:oe;if(se){var Ze=a.computeBusNodeSpacing(Fe)-re;ye-=Je+Te.height,Fe.S.h(E-(Te.width+Ze),ye),b=Math.max(b,Te.width+Ze),z=Math.max(z,Math.abs(ye))}else Ze=a.computeBusNodeSpacing(Fe)-re,ge-=Je+Te.width,Fe.S.h(ge,E-(Te.height+Ze)),z=Math.max(z,Te.height+Ze),b=Math.max(b,Math.abs(ge));ue++}for(ue=0,Fe=ge,Pe=ye,se?(ge=E+re,ye=0):(ge=0,ye=E+re),Te=0;Te<ee;Te++)if(Te%2!==0){Je=x[Te],Ze=Je.Da;var it=ue===0?0:oe;if(se){var lt=a.computeBusNodeSpacing(Je)-re;ye-=it+Ze.height,Je.S.h(ge+lt,ye),b=Math.max(b,ge+Ze.width+lt),z=Math.max(z,Math.abs(ye))}else lt=a.computeBusNodeSpacing(Je)-re,ge-=it+Ze.width,Je.S.h(ge,ye+lt),z=Math.max(z,ye+Ze.height+lt),b=Math.max(b,Math.abs(ge));ue++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ue=oe.Da,a=a.computeBusLastRowSpacing(oe,se?Math.max(Math.abs(Pe),Math.abs(ye)):Math.max(Math.abs(Fe),Math.abs(ge))),se?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-ue.height-a),ge=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,ge+ue.width),0>ge&&(b-=ge),z=Math.max(z,Math.abs(Math.min(Pe,ye))+a+ue.height),0>oe.S.x&&(E=fv(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ue.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Fe,ge))+a+ue.width),ye=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,ye+ue.height),0>ye&&(z-=ye),0>oe.S.y&&(E=fv(y,oe.S.y,!0,E,re)))),y=0;y<ee;y++)re=x[y],se?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new qt(E,0,b,z)}Fo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Fo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function fv(a,y,x,E,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function Jy(a,y,x){switch(a.alignment){case ap:case Vp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case af:return a.width>y?a.width:y;case sf:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case zf:case lf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Vf:return a.width-a.focus.x+a.nodeSpacing/2+y;case Ef:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Qy(a,y,x){switch(a.alignment){case ap:case Vp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case af:return a.height>y?a.height:y;case sf:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case zf:case lf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Vf:return a.height-a.focus.y+a.nodeSpacing/2+y;case Ef:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function qy(a,y,x){switch(a){case Vp:y/=2,x/=2;break;case ap:y/=2,x/=2;break;case af:x=y=0;break;case sf:break;default:Ot("Unhandled alignment value "+a.toString())}return new Ue(y,x)}function Wg(a,y,x,E,b,z){y=qy(y,x,E),rp(a,y.x,y.y,b,z)}function rp(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function gv(a,y,x,E){var b=y.parent;switch(a.ud){case of:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case op:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Ot("Unhandled path value "+a.ud.toString())}}function pv(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function Cx(a,y,x,E,b,z,ee,re){var oe=oh(y),se=oe===90||oe===270,ue=y.nodeSpacing;y=E;var ge=b;E=z;var ye=ee,Pe=x.Yo,Fe=x.kp;ee=x.Da;var Te=se?Math.max(ye,ee.height):Math.max(E,ee.width);if((Pe===null||oe!==oh(x))&&(Pe=Kc(a,2),Fe=Kc(a,2),se?(Pe[0].h(0,0),Pe[1].h(0,ee.height),Fe[0].h(ee.width,0),Fe[1].h(Fe[0].x,Pe[1].y)):(Pe[0].h(0,0),Pe[1].h(ee.width,0),Fe[0].h(0,ee.height),Fe[1].h(Pe[1].x,Fe[0].y))),se){if(ye=9999999,!(ge===null||2>ge.length||Pe===null||2>Pe.length))for(b=x=0;x<ge.length&&b<Pe.length;){z=ge[x];var Je=Pe[b];oe=Je.x,se=Je.y,oe+=E;var Ze=z;x+1<ge.length&&(Ze=ge[x+1]);var it=Je;Je=it.x,it=it.y,b+1<Pe.length&&(it=Pe[b+1],Je=it.x,it=it.y,Je+=E);var lt=ye;z.y===se?lt=oe-z.x:z.y>se&&z.y<it?lt=oe+(z.y-se)/(it-se)*(Je-oe)-z.x:se>z.y&&se<Ze.y&&(lt=oe-(z.x+(se-z.y)/(Ze.y-z.y)*(Ze.x-z.x))),lt<ye&&(ye=lt),Ze.y<=z.y?x++:it<=se?b++:(Ze.y<=it&&x++,it<=Ze.y&&b++)}if(ye=E-ye,ye+=ue,x=Pe,b=ye,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ue=Kc(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)se=x[z++],ue[E++].h(se.x+b,se.y);for(;oe<y.length;)se=y[oe++],ue[E++].h(se.x,se.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)se=x[z++],ue[E++].h(se.x+b,se.y);for(x=Kc(a,E),oe=0;oe<E;oe++)x[oe].assign(ue[oe]);Ah(a,ue),E=x}if(z=Fe,oe=ye,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(ue=Kc(a,ge.length+z.length),b=se=x=0;x<ge.length&&ge[x].y<z[0].y;)Ze=ge[x++],ue[b++].h(Ze.x,Ze.y);for(;se<z.length;)Ze=z[se++],ue[b++].h(Ze.x+oe,Ze.y);for(z=z[z.length-1].y;x<ge.length&&ge[x].y<=z;)x++;for(;x<ge.length&&ge[x].y>z;)oe=ge[x++],ue[b++].h(oe.x,oe.y);for(z=Kc(a,b),x=0;x<b;x++)z[x].assign(ue[x]);Ah(a,ue),b=z}return z=Math.max(0,ye)+ee.width,ee=Te,Ah(a,y),Ah(a,Pe),Ah(a,ge),Ah(a,Fe),re[0]=E,re[1]=b,new qt(ye,0,z,ee)}if(E=9999999,!(ge===null||2>ge.length||Pe===null||2>Pe.length))for(b=x=0;x<ge.length&&b<Pe.length;)z=ge[x],Je=Pe[b],oe=Je.x,se=Je.y,se+=ye,Ze=z,x+1<ge.length&&(Ze=ge[x+1]),it=Je,Je=it.x,it=it.y,b+1<Pe.length&&(it=Pe[b+1],Je=it.x,it=it.y,it+=ye),lt=E,z.x===oe?lt=se-z.y:z.x>oe&&z.x<Je?lt=se+(z.x-oe)/(Je-oe)*(it-se)-z.y:oe>z.x&&oe<Ze.x&&(lt=se-(z.y+(oe-z.x)/(Ze.x-z.x)*(Ze.y-z.y))),lt<E&&(E=lt),Ze.x<=z.x?x++:Je<=oe?b++:(Ze.x<=Je&&x++,Je<=Ze.x&&b++);if(ye-=E,ye+=ue,x=Pe,b=ye,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ue=Kc(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)se=x[z++],ue[E++].h(se.x,se.y+b);for(;oe<y.length;)se=y[oe++],ue[E++].h(se.x,se.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)se=x[z++],ue[E++].h(se.x,se.y+b);for(x=Kc(a,E),oe=0;oe<E;oe++)x[oe].assign(ue[oe]);Ah(a,ue),E=x}if(z=Fe,oe=ye,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(ue=Kc(a,ge.length+z.length),b=se=x=0;x<ge.length&&ge[x].x<z[0].x;)Ze=ge[x++],ue[b++].h(Ze.x,Ze.y);for(;se<z.length;)Ze=z[se++],ue[b++].h(Ze.x,Ze.y+oe);for(z=z[z.length-1].x;x<ge.length&&ge[x].x<=z;)x++;for(;x<ge.length&&ge[x].x>z;)oe=ge[x++],ue[b++].h(oe.x,oe.y);for(z=Kc(a,b),x=0;x<b;x++)z[x].assign(ue[x]);Ah(a,ue),b=z}return z=Te,ee=Math.max(0,ye)+ee.height,Ah(a,y),Ah(a,Pe),Ah(a,ge),Ah(a,Fe),re[0]=E,re[1]=b,new qt(ye,0,z,ee)}function Kc(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 Ue;return a}function Ah(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}Fo.prototype.arrangeTrees=function(){if(this.Rb===xv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Gd){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),$y(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Gd&&a.push(x);switch(this.sorting){case zp:break;case Im:a.reverse();break;case Rm:a.sort(this.comparer);break;case Wm:a.sort(this.comparer),a.reverse();break;default:Ot("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch($y(this,b,y+b.la.x,x+b.la.y),this.Rb){case Sv:x+=b.Da.height+this.$d.height;break;case i1:y+=b.Da.width+this.$d.width;break;default:Ot("Unhandled arrangement value "+this.Rb.toString())}}}};function $y(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var ee=y[z];$y(a,ee,x+ee.S.x,E+ee.S.y)}}}Fo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Fo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Fo.prototype.Gu=function(){if(this.layerStyle===Ev){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new Ue(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Ue(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new qt(0,z,x,re))):this.angle===90?(b.push(new qt(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new qt(z,0,re,x))):(b.push(new qt(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},Fo.prototype.commitLayers=function(){},Fo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Fo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Gd&&Ax(this,y)}};function Ax(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)Ax(a,y[E])}}Fo.prototype.setPortSpots=function(a){var y=a.alignment;if(yg(y)){var x=this.ud===of,E=oh(a);switch(E){case 0:var b=du;break;case 90:b=Ou;break;case 180:b=Tu;break;default:b=nu}var z=a.children,ee=z.length;switch(y){case zf:case lf:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=E===90||E===270?Tu:nu;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:oe=Tu;break;case 90:oe=nu;break;case 180:oe=du;break;default:oe=Ou}else y%2===0&&(oe=E===90||E===270?du:Ou);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Vf:for(E=E===90||E===270?du:Ou,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)));break;case Ef:for(E=E===90||E===270?Tu:nu,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(x=oh(a),this.ud===of){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=du;break;case 90:E.fromSpot=Ou;break;case 180:E.fromSpot=Tu;break;default:E.fromSpot=nu}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Tu;break;case 90:E.toSpot=nu;break;case 180:E.toSpot=du;break;default:E.toSpot=Ou}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=du;break;case 90:E.toSpot=Ou;break;case 180:E.toSpot=Tu;break;default:E.toSpot=nu}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Tu;break;case 90:E.fromSpot=nu;break;case 180:E.fromSpot=du;break;default:E.fromSpot=Ou}else E.fromSpot=a.childPortSpot}};function oh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Fo.prototype.computeLayerSpacing=function(a){var y=oh(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Fo.prototype.computeNodeIndent=function(a){var y=oh(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},An.Object.defineProperties(Fo.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!==yv&&a!==t1&&a!==e1&&a!==n1||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==r1&&a!==o1&&a!==Ev||(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!==Sv&&a!==i1&&a!==xv||(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!==zp&&a!==Im&&a!==Rm&&!Wm||(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()):Ot("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!==vv&&a!==jm||(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!==zp&&a!==Im&&a!==Rm&&!Wm||(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!==vv&&a!==jm||(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 mv=new Bt(Fo,"PathDefault",-1),of=new Bt(Fo,"PathDestination",0),op=new Bt(Fo,"PathSource",1),zp=new Bt(Fo,"SortingForwards",10),Im=new Bt(Fo,"SortingReverse",11),Rm=new Bt(Fo,"SortingAscending",12),Wm=new Bt(Fo,"SortingDescending",13),Vp=new Bt(Fo,"AlignmentCenterSubtrees",20),ap=new Bt(Fo,"AlignmentCenterChildren",21),af=new Bt(Fo,"AlignmentStart",22),sf=new Bt(Fo,"AlignmentEnd",23),zf=new Bt(Fo,"AlignmentBus",24),lf=new Bt(Fo,"AlignmentBusBranching",25),Vf=new Bt(Fo,"AlignmentTopLeftBus",26),Ef=new Bt(Fo,"AlignmentBottomRightBus",27),vv=new Bt(Fo,"CompactionNone",30),jm=new Bt(Fo,"CompactionBlock",31),yv=new Bt(Fo,"StyleLayered",40),e1=new Bt(Fo,"StyleLastParents",41),t1=new Bt(Fo,"StyleAlternating",42),n1=new Bt(Fo,"StyleRootOnly",43),Sv=new Bt(Fo,"ArrangementVertical",50),i1=new Bt(Fo,"ArrangementHorizontal",51),xv=new Bt(Fo,"ArrangementFixedRoots",52),r1=new Bt(Fo,"LayerIndividual",60),o1=new Bt(Fo,"LayerSiblings",61),Ev=new Bt(Fo,"LayerUniform",62);Fo.className="TreeLayout",Fo.PathDefault=mv,Fo.PathDestination=of,Fo.PathSource=op,Fo.SortingForwards=zp,Fo.SortingReverse=Im,Fo.SortingAscending=Rm,Fo.SortingDescending=Wm,Fo.AlignmentCenterSubtrees=Vp,Fo.AlignmentCenterChildren=ap,Fo.AlignmentStart=af,Fo.AlignmentEnd=sf,Fo.AlignmentBus=zf,Fo.AlignmentBusBranching=lf,Fo.AlignmentTopLeftBus=Vf,Fo.AlignmentBottomRightBus=Ef,Fo.CompactionNone=vv,Fo.CompactionBlock=jm,Fo.StyleLayered=yv,Fo.StyleLastParents=e1,Fo.StyleAlternating=t1,Fo.StyleRootOnly=n1,Fo.ArrangementVertical=Sv,Fo.ArrangementHorizontal=i1,Fo.ArrangementFixedRoots=xv,Fo.LayerIndividual=r1,Fo.LayerSiblings=o1,Fo.LayerUniform=Ev;function sp(a){Qa.call(this,a)}Tt(sp,Qa),sp.prototype.createVertex=function(){return new Gd(this)},sp.prototype.createEdge=function(){return new Gp(this)},sp.className="TreeNetwork";function Gd(a){jl.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 Ue(0,0),this.Da=new oi(0,0),this.la=new Ue(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=zp,this.hd=Ay,this.Kb=0,this.Jb=ap,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=jm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Dl,this.wr=!0,this.Dp=Dl}Tt(Gd,jl),Gd.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)},An.Object.defineProperties(Gd.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)}}}),Gd.className="TreeVertex";function Gp(a){ed.call(this,a),this.$t=new Ue(0,0)}Tt(Gp,ed),Gp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case of:x=this.fromVertex,E=this.toVertex;break;case op:x=this.toVertex,E=this.fromVertex;break;default:Ot("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=oh(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===gd,se=a.isOrthogonal,ue;if(a.uh(),se||oe){for(ue=2;4<a.pointsCount;)a.pv(2);var ge=a.i(1),ye=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);ge=a.i(0),ye=a.i(a.pointsCount-1)}var Pe=a.i(a.pointsCount-1);z===0?(x.alignment===sf?(z=E.bottom+b.y,b.y===0&&ge.y>Pe.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===af?(z=E.top+b.y,b.y===0&&ge.y<Pe.y-x.rowIndent&&(z=Math.max(z,Math.min(ge.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(ue,ge.x,z),ue++,a.m(ue,E.right+ee,z),ue++,a.m(ue,E.right+ee+(b.x-re)/3,z),ue++,a.m(ue,E.right+ee+2*(b.x-re)/3,z),ue++,a.m(ue,E.right+ee+(b.x-re),z),ue++,a.m(ue,ye.x,z)):(se&&(a.m(ue,E.right+ee/2,ge.y),ue++),a.m(ue,E.right+ee/2,z),ue++,a.m(ue,E.right+ee+b.x-(se?re/2:re),z),ue++,se&&a.m(ue,a.i(ue-1).x,ye.y))):z===90?(x.alignment===sf?(z=E.right+b.x,b.x===0&&ge.x>Pe.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===af?(z=E.left+b.x,b.x===0&&ge.x<Pe.x-x.rowIndent&&(z=Math.max(z,Math.min(ge.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(ue,z,ge.y),ue++,a.m(ue,z,E.bottom+ee),ue++,a.m(ue,z,E.bottom+ee+(b.y-re)/3),ue++,a.m(ue,z,E.bottom+ee+2*(b.y-re)/3),ue++,a.m(ue,z,E.bottom+ee+(b.y-re)),ue++,a.m(ue,z,ye.y)):(se&&(a.m(ue,ge.x,E.bottom+ee/2),ue++),a.m(ue,z,E.bottom+ee/2),ue++,a.m(ue,z,E.bottom+ee+b.y-(se?re/2:re)),ue++,se&&a.m(ue,ye.x,a.i(ue-1).y))):z===180?(x.alignment===sf?(z=E.bottom+b.y,b.y===0&&ge.y>Pe.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===af?(z=E.top+b.y,b.y===0&&ge.y<Pe.y-x.rowIndent&&(z=Math.max(z,Math.min(ge.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(ue,ge.x,z),ue++,a.m(ue,E.left-ee,z),ue++,a.m(ue,E.left-ee+(b.x+re)/3,z),ue++,a.m(ue,E.left-ee+2*(b.x+re)/3,z),ue++,a.m(ue,E.left-ee+(b.x+re),z),ue++,a.m(ue,ye.x,z)):(se&&(a.m(ue,E.left-ee/2,ge.y),ue++),a.m(ue,E.left-ee/2,z),ue++,a.m(ue,E.left-ee+b.x+(se?re/2:re),z),ue++,se&&a.m(ue,a.i(ue-1).x,ye.y))):z===270?(x.alignment===sf?(z=E.right+b.x,b.x===0&&ge.x>Pe.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===af?(z=E.left+b.x,b.x===0&&ge.x<Pe.x-x.rowIndent&&(z=Math.max(z,Math.min(ge.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(ue,z,ge.y),ue++,a.m(ue,z,E.top-ee),ue++,a.m(ue,z,E.top-ee+(b.y+re)/3),ue++,a.m(ue,z,E.top-ee+2*(b.y+re)/3),ue++,a.m(ue,z,E.top-ee+(b.y+re)),ue++,a.m(ue,z,ye.y)):(se&&(a.m(ue,ge.x,E.top-ee/2),ue++),a.m(ue,z,E.top-ee/2),ue++,a.m(ue,z,E.top-ee+b.y+(se?re/2:re)),ue++,se&&a.m(ue,ye.x,a.i(ue-1).y))):Ot("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=oh(x),y!==oh(b)&&(ee=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===gd,b=a.isOrthogonal,E=yg(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},An.Object.defineProperties(Gp.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)}}}),Gp.className="TreeEdge",Vn.prototype.initializeStandardTools=function(){this.gb("Action",new fl,this.mouseDownTools),this.gb("Relinking",new Ks,this.mouseDownTools),this.gb("LinkReshaping",new Fa,this.mouseDownTools),this.gb("Rotating",new Ns,this.mouseDownTools),this.gb("Resizing",new ya,this.mouseDownTools),this.gb("Linking",new ea,this.mouseMoveTools),this.gb("Dragging",new $i,this.mouseMoveTools),this.gb("DragSelecting",new Gl,this.mouseMoveTools),this.gb("Panning",new Ds,this.mouseMoveTools),this.gb("ContextMenu",new gl,this.mouseUpTools),this.gb("TextEditing",new aa,this.mouseUpTools),this.gb("ClickCreating",new $u,this.mouseUpTools),this.gb("ClickSelecting",new Ru,this.mouseUpTools)},Wh("Horizontal",new Jm),Wh("Spot",new qm),Wh("Table",new e0),Wh("Viewbox",new i0),Wh("TableRow",new t0),Wh("TableColumn",new n0),Wh("Graduated",new tm),Wh("Grid",new em),cd.add("GraphLinksModel",lu),cd.add("TreeModel",Ad);var Pv=Rn.go,a1={get licenseKey(){return Ne.licenseKey},set licenseKey(a){Ne.licenseKey=a},get version(){return Ne.version},Group:Gr,EnumValue:Bt,List:tn,Set:Tn,Map:ti,Point:Ue,Size:oi,Rect:qt,Margin:ao,Spot:tr,Geometry:ni,PathFigure:dl,PathSegment:zo,InputEvent:Nt,DiagramEvent:Wt,ChangedEvent:vn,Model:Zi,GraphLinksModel:Go,TreeModel:wc,Binding:Pl,Transaction:Ki,UndoManager:hi,CommandHandler:Oe,Tool:si,DraggingTool:$i,DraggingInfo:Wd,DraggingOptions:ae,LinkingBaseTool:va,LinkingTool:ea,RelinkingTool:Ks,LinkReshapingTool:Fa,ResizingTool:ya,RotatingTool:Ns,ClickSelectingTool:Ru,ActionTool:fl,ClickCreatingTool:$u,HTMLInfo:Ts,ContextMenuTool:gl,DragSelectingTool:Gl,PanningTool:Ds,TextEditingTool:aa,ToolManager:Vn,Animation:Rl,AnimationManager:su,AnimationTrigger:vc,Layer:bl,Diagram:Ne,Palette:fe,Overview:me,Brush:Xo,GraphObject:gt,Panel:Kn,RowColumnDefinition:kl,Shape:to,TextBlock:Ja,Picture:Wc,Part:or,Adornment:Jo,Node:xi,Link:ei,Placeholder:Sc,Layout:vs,LayoutNetwork:Qa,LayoutVertex:jl,LayoutEdge:ed,GridLayout:Fu,PanelLayout:Wl,CircularLayout:Ws,CircularNetwork:Rp,CircularVertex:Dm,CircularEdge:nv,ForceDirectedLayout:zu,ForceDirectedNetwork:ip,ForceDirectedVertex:Lm,ForceDirectedEdge:Mm,LayeredDigraphLayout:Ca,LayeredDigraphNetwork:jp,LayeredDigraphVertex:bd,LayeredDigraphEdge:Tm,TreeLayout:Fo,TreeNetwork:sp,TreeVertex:Gd,TreeEdge:Gp};typeof Pv=="object"&&Pv.version&&jn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Pv?"debug ":"")+"version: "+Pv.version+", replaced with version: "+a1.version),Ne.prototype.go=a1,Rn.go=a1,typeof $t.exports=="object"&&($t.exports=typeof we.g!="undefined"?we.g.go:self.go)}();var ce=typeof we.g!="undefined"?we.g.go:self.go;const at=typeof we.g!="undefined"?we.g.go:self.go,Lt=at.Group,kt=at.EnumValue,Dt=at.List,jt=at.Set,Ge=at.Map,Mt=at.Point,Ct=at.Size,Et=at.Rect,xt=at.Margin,Gt=at.Spot,Ut=at.Geometry,Re=at.PathFigure,te=at.PathSegment,ne=at.InputEvent,de=at.DiagramEvent,le=at.ChangedEvent,pe=at.Model,xe=at.GraphLinksModel,Ae=at.TreeModel,ke=at.Binding,Me=at.Transaction,ot=at.UndoManager,dt=at.CommandHandler,yt=at.Tool,vt=at.DraggingTool,Kt=at.DraggingInfo,wt=at.LinkingBaseTool,It=at.LinkingTool,Yt=at.RelinkingTool,yn=at.LinkReshapingTool,Mi=at.ResizingTool,wi=at.RotatingTool,Nn=at.ClickSelectingTool,ui=at.ActionTool,tt=at.ClickCreatingTool,He=at.HTMLInfo,mn=at.ContextMenuTool,Zn=at.DragSelectingTool,Qn=at.PanningTool,nn=at.TextEditingTool,gn=at.ToolManager,Ln=at.Animation,yi=at.AnimationManager,Yn=at.AnimationTrigger,Ai=at.Layer,mt=at.Diagram,ht=at.Palette,un=at.Overview,Sn=at.Brush,Dn=at.GraphObject,kn=at.Panel,ii=at.RowColumnDefinition,Hn=at.Shape,Di=at.TextBlock,hn=at.TextBlockMetrics,rt=at.Picture,Pt=at.Part,_t=at.Adornment,We=at.Node,Ce=at.Link,Ee=at.Placeholder,Ie=at.Layout,Ke=at.LayoutNetwork,Le=at.LayoutVertex,st=at.LayoutEdge,dn=at.GridLayout,sn=at.PanelLayout,en=at.CircularLayout,Xt=at.CircularNetwork,ai=at.CircularVertex,Bn=at.CircularEdge,In=at.ForceDirectedLayout,Yi=at.ForceDirectedNetwork,fi=at.ForceDirectedVertex,ar=at.ForceDirectedEdge,io=at.LayeredDigraphLayout,jo=at.LayeredDigraphNetwork,bo=at.LayeredDigraphVertex,Mr=at.LayeredDigraphEdge,_o=at.TreeLayout,Bo=at.TreeNetwork,yo=at.TreeVertex,ho=at.TreeEdge,Tr=at.version},65835:function($t,zn){"use strict";Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=void 0;var we={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",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",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",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"},ce=we;zn.default=ce},78018:function($t,zn,we){"use strict";we.d(zn,{Z5:function(){return oc},_l:function(){return Wu},bK:function(){return dd}});var ce=we(59301),at=we(3378);function Lt(ve,Se){ve.prototype=Object.create(Se.prototype),ve.prototype.constructor=ve,(0,at.Z)(ve,Se)}var kt=we(5891),Dt=we(59781),jt=ce.createContext(null),Ge=null;function Mt(ve){ve()}var Ct=Mt,Et=function(Se){return Ct=Se},xt=function(){return Ct};function Gt(){var ve=xt(),Se=null,be=null;return{clear:function(){Se=null,be=null},notify:function(){ve(function(){for(var et=Se;et;)et.callback(),et=et.next})},get:function(){for(var et=[],$e=Se;$e;)et.push($e),$e=$e.next;return et},subscribe:function(et){var $e=!0,ct=be={callback:et,next:null,prev:be};return ct.prev?ct.prev.next=ct:Se=ct,function(){!$e||Se===null||($e=!1,ct.next?ct.next.prev=ct.prev:be=ct.prev,ct.prev?ct.prev.next=ct.next:Se=ct.next)}}}}var Ut={notify:function(){},get:function(){return[]}};function Re(ve,Se){var be,je=Ut;function et(an){return Jt(),je.subscribe(an)}function $e(){je.notify()}function ct(){cn.onStateChange&&cn.onStateChange()}function pt(){return!!be}function Jt(){be||(be=Se?Se.addNestedSub(ct):ve.subscribe(ct),je=Gt())}function Cn(){be&&(be(),be=void 0,je.clear(),je=Ut)}var cn={addNestedSub:et,notifyNestedSubs:$e,handleChangeWrapper:ct,isSubscribed:pt,trySubscribe:Jt,tryUnsubscribe:Cn,getListeners:function(){return je}};return cn}var te=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?ce.useLayoutEffect:ce.useEffect;function ne(ve){var Se=ve.store,be=ve.context,je=ve.children,et=(0,ce.useMemo)(function(){var pt=Re(Se);return{store:Se,subscription:pt}},[Se]),$e=(0,ce.useMemo)(function(){return Se.getState()},[Se]);te(function(){var pt=et.subscription;return pt.onStateChange=pt.notifyNestedSubs,pt.trySubscribe(),$e!==Se.getState()&&pt.notifyNestedSubs(),function(){pt.tryUnsubscribe(),pt.onStateChange=null}},[et,$e]);var ct=be||jt;return ce.createElement(ct.Provider,{value:et},je)}var de=ne,le=we(16736),pe=we(94266),xe=we.n(pe),Ae=we(53410),ke=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Me=["reactReduxForwardedRef"],ot=[],dt=[null,null],yt=function(Se){try{return JSON.stringify(Se)}catch(be){return String(Se)}};function vt(ve,Se){var be=ve[1];return[Se.payload,be+1]}function Kt(ve,Se,be){te(function(){return ve.apply(void 0,Se)},be)}function wt(ve,Se,be,je,et,$e,ct){ve.current=je,Se.current=et,be.current=!1,$e.current&&($e.current=null,ct())}function It(ve,Se,be,je,et,$e,ct,pt,Jt,Cn){if(ve){var cn=!1,an=null,on=function(){if(!cn){var br=Se.getState(),Nr,Xr;try{Nr=je(br,et.current)}catch(Ao){Xr=Ao,an=Ao}Xr||(an=null),Nr===$e.current?ct.current||Jt():($e.current=Nr,pt.current=Nr,ct.current=!0,Cn({type:"STORE_UPDATED",payload:{error:Xr}}))}};be.onStateChange=on,be.trySubscribe(),on();var On=function(){if(cn=!0,be.tryUnsubscribe(),be.onStateChange=null,an)throw an};return On}}var Yt=function(){return[null,0]};function yn(ve,Se){Se===void 0&&(Se={});var be=Se,je=be.getDisplayName,et=je===void 0?function(ls){return"ConnectAdvanced("+ls+")"}:je,$e=be.methodName,ct=$e===void 0?"connectAdvanced":$e,pt=be.renderCountProp,Jt=pt===void 0?void 0:pt,Cn=be.shouldHandleStateChanges,cn=Cn===void 0?!0:Cn,an=be.storeKey,on=an===void 0?"store":an,On=be.withRef,Pi=On===void 0?!1:On,br=be.forwardRef,Nr=br===void 0?!1:br,Xr=be.context,Ao=Xr===void 0?jt:Xr,Vo=(0,le.Z)(be,ke);if(0)var Io;var fa=Ao;return function(Us){var ju=Us.displayName||Us.name||"Component",Rs=et(ju),Lu=(0,kt.Z)({},Vo,{getDisplayName:et,methodName:ct,renderCountProp:Jt,shouldHandleStateChanges:cn,storeKey:on,displayName:Rs,wrappedComponentName:ju,WrappedComponent:Us}),Ic=Vo.pure;function Zc(yu){return ve(yu.dispatch,Lu)}var yh=Ic?ce.useMemo:function(yu){return yu()};function Pd(yu){var Rh=(0,ce.useMemo)(function(){var Au=yu.reactReduxForwardedRef,jd=(0,le.Z)(yu,Me);return[yu.context,Au,jd]},[yu]),Mu=Rh[0],Sh=Rh[1],ng=Rh[2],xh=(0,ce.useMemo)(function(){return Mu&&Mu.Consumer&&(0,Ae.isContextConsumer)(ce.createElement(Mu.Consumer,null))?Mu:fa},[Mu,fa]),Xo=(0,ce.useContext)(xh),Lf=!!yu.store&&!!yu.store.getState&&!!yu.store.dispatch,Kg=!!Xo&&!!Xo.store,Eh=Lf?yu.store:Xo.store,$h=(0,ce.useMemo)(function(){return Zc(Eh)},[Eh]),vf=(0,ce.useMemo)(function(){if(!cn)return dt;var Au=Re(Eh,Lf?null:Xo.subscription),jd=Au.notifyNestedSubs.bind(Au);return[Au,jd]},[Eh,Lf,Xo]),fd=vf[0],Dg=vf[1],Lg=(0,ce.useMemo)(function(){return Lf?Xo:(0,kt.Z)({},Xo,{subscription:fd})},[Lf,Xo,fd]),mp=(0,ce.useReducer)(vt,ot,Yt),$p=mp[0],Yg=$p[0],ig=mp[1];if(Yg&&Yg.error)throw Yg.error;var vp=(0,ce.useRef)(),Xg=(0,ce.useRef)(ng),rg=(0,ce.useRef)(),og=(0,ce.useRef)(!1),Jg=yh(function(){return rg.current&&ng===Xg.current?rg.current:$h(Eh.getState(),ng)},[Eh,Yg,ng]);Kt(wt,[Xg,vp,og,ng,Jg,rg,Dg]),Kt(It,[cn,Eh,fd,$h,Xg,vp,og,rg,Dg,ig],[Eh,fd,$h]);var za=(0,ce.useMemo)(function(){return ce.createElement(Us,(0,kt.Z)({},Jg,{ref:Sh}))},[Sh,Us,Jg]),Uc=(0,ce.useMemo)(function(){return cn?ce.createElement(xh.Provider,{value:Lg},za):za},[xh,za,Lg]);return Uc}var hd=Ic?ce.memo(Pd):Pd;if(hd.WrappedComponent=Us,hd.displayName=Pd.displayName=Rs,Nr){var lc=ce.forwardRef(function(Rh,Mu){return ce.createElement(hd,(0,kt.Z)({},Rh,{reactReduxForwardedRef:Mu}))});return lc.displayName=Rs,lc.WrappedComponent=Us,xe()(lc,Us)}return xe()(hd,Us)}}function Mi(ve,Se){return ve===Se?ve!==0||Se!==0||1/ve===1/Se:ve!==ve&&Se!==Se}function wi(ve,Se){if(Mi(ve,Se))return!0;if(typeof ve!="object"||ve===null||typeof Se!="object"||Se===null)return!1;var be=Object.keys(ve),je=Object.keys(Se);if(be.length!==je.length)return!1;for(var et=0;et<be.length;et++)if(!Object.prototype.hasOwnProperty.call(Se,be[et])||!Mi(ve[be[et]],Se[be[et]]))return!1;return!0}function Nn(ve,Se){var be={},je=function(ct){var pt=ve[ct];typeof pt=="function"&&(be[ct]=function(){return Se(pt.apply(void 0,arguments))})};for(var et in ve)je(et);return be}function ui(ve){return function(be,je){var et=ve(be,je);function $e(){return et}return $e.dependsOnOwnProps=!1,$e}}function tt(ve){return ve.dependsOnOwnProps!==null&&ve.dependsOnOwnProps!==void 0?!!ve.dependsOnOwnProps:ve.length!==1}function He(ve,Se){return function(je,et){var $e=et.displayName,ct=function(Jt,Cn){return ct.dependsOnOwnProps?ct.mapToProps(Jt,Cn):ct.mapToProps(Jt)};return ct.dependsOnOwnProps=!0,ct.mapToProps=function(Jt,Cn){ct.mapToProps=ve,ct.dependsOnOwnProps=tt(ve);var cn=ct(Jt,Cn);return typeof cn=="function"&&(ct.mapToProps=cn,ct.dependsOnOwnProps=tt(cn),cn=ct(Jt,Cn)),cn},ct}}function mn(ve){return typeof ve=="function"?He(ve,"mapDispatchToProps"):void 0}function Zn(ve){return ve?void 0:ui(function(Se){return{dispatch:Se}})}function Qn(ve){return ve&&typeof ve=="object"?ui(function(Se){return Nn(ve,Se)}):void 0}var nn=[mn,Zn,Qn];function gn(ve){return typeof ve=="function"?He(ve,"mapStateToProps"):void 0}function Ln(ve){return ve?void 0:ui(function(){return{}})}var yi=[gn,Ln];function Yn(ve,Se,be){return(0,kt.Z)({},be,ve,Se)}function Ai(ve){return function(be,je){var et=je.displayName,$e=je.pure,ct=je.areMergedPropsEqual,pt=!1,Jt;return function(cn,an,on){var On=ve(cn,an,on);return pt?(!$e||!ct(On,Jt))&&(Jt=On):(pt=!0,Jt=On),Jt}}}function mt(ve){return typeof ve=="function"?Ai(ve):void 0}function ht(ve){return ve?void 0:function(){return Yn}}var un=[mt,ht],Sn=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Dn(ve,Se,be,je){return function($e,ct){return be(ve($e,ct),Se(je,ct),ct)}}function kn(ve,Se,be,je,et){var $e=et.areStatesEqual,ct=et.areOwnPropsEqual,pt=et.areStatePropsEqual,Jt=!1,Cn,cn,an,on,On;function Pi(Vo,Io){return Cn=Vo,cn=Io,an=ve(Cn,cn),on=Se(je,cn),On=be(an,on,cn),Jt=!0,On}function br(){return an=ve(Cn,cn),Se.dependsOnOwnProps&&(on=Se(je,cn)),On=be(an,on,cn),On}function Nr(){return ve.dependsOnOwnProps&&(an=ve(Cn,cn)),Se.dependsOnOwnProps&&(on=Se(je,cn)),On=be(an,on,cn),On}function Xr(){var Vo=ve(Cn,cn),Io=!pt(Vo,an);return an=Vo,Io&&(On=be(an,on,cn)),On}function Ao(Vo,Io){var fa=!ct(Io,cn),ls=!$e(Vo,Cn,Io,cn);return Cn=Vo,cn=Io,fa&&ls?br():fa?Nr():ls?Xr():On}return function(Io,fa){return Jt?Ao(Io,fa):Pi(Io,fa)}}function ii(ve,Se){var be=Se.initMapStateToProps,je=Se.initMapDispatchToProps,et=Se.initMergeProps,$e=(0,le.Z)(Se,Sn),ct=be(ve,$e),pt=je(ve,$e),Jt=et(ve,$e),Cn=$e.pure?kn:Dn;return Cn(ct,pt,Jt,ve,$e)}var Hn=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Di(ve,Se,be){for(var je=Se.length-1;je>=0;je--){var et=Se[je](ve);if(et)return et}return function($e,ct){throw new Error("Invalid value of type "+typeof ve+" for "+be+" argument when connecting component "+ct.wrappedComponentName+".")}}function hn(ve,Se){return ve===Se}function rt(ve){var Se=ve===void 0?{}:ve,be=Se.connectHOC,je=be===void 0?yn:be,et=Se.mapStateToPropsFactories,$e=et===void 0?yi:et,ct=Se.mapDispatchToPropsFactories,pt=ct===void 0?nn:ct,Jt=Se.mergePropsFactories,Cn=Jt===void 0?un:Jt,cn=Se.selectorFactory,an=cn===void 0?ii:cn;return function(On,Pi,br,Nr){Nr===void 0&&(Nr={});var Xr=Nr,Ao=Xr.pure,Vo=Ao===void 0?!0:Ao,Io=Xr.areStatesEqual,fa=Io===void 0?hn:Io,ls=Xr.areOwnPropsEqual,Us=ls===void 0?wi:ls,ju=Xr.areStatePropsEqual,Rs=ju===void 0?wi:ju,Lu=Xr.areMergedPropsEqual,Ic=Lu===void 0?wi:Lu,Zc=(0,le.Z)(Xr,Hn),yh=Di(On,$e,"mapStateToProps"),Pd=Di(Pi,pt,"mapDispatchToProps"),hd=Di(br,Cn,"mergeProps");return je(an,(0,kt.Z)({methodName:"connect",getDisplayName:function(yu){return"Connect("+yu+")"},shouldHandleStateChanges:!!On,initMapStateToProps:yh,initMapDispatchToProps:Pd,initMergeProps:hd,pure:Vo,areStatesEqual:fa,areOwnPropsEqual:Us,areStatePropsEqual:Rs,areMergedPropsEqual:Ic},Zc))}}var Pt=rt();function _t(){var ve=useContext(ReactReduxContext);return ve}function We(ve){ve===void 0&&(ve=ReactReduxContext);var Se=ve===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ve)};return function(){var je=Se(),et=je.store;return et}}var Ce=null;function Ee(ve){ve===void 0&&(ve=ReactReduxContext);var Se=ve===ReactReduxContext?useDefaultStore:createStoreHook(ve);return function(){var je=Se();return je.dispatch}}var Ie=null,Ke=function(Se,be){return Se===be};function Le(ve,Se,be,je){var et=useReducer(function(Pi){return Pi+1},0),$e=et[1],ct=useMemo(function(){return createSubscription(be,je)},[be,je]),pt=useRef(),Jt=useRef(),Cn=useRef(),cn=useRef(),an=be.getState(),on;try{if(ve!==Jt.current||an!==Cn.current||pt.current){var On=ve(an);cn.current===void 0||!Se(On,cn.current)?on=On:on=cn.current}else on=cn.current}catch(Pi){throw pt.current&&(Pi.message+=`
|
|
The error may be correlated with this previous error:
|
|
`+pt.current.stack+`
|
|
|
|
`),Pi}return useIsomorphicLayoutEffect(function(){Jt.current=ve,Cn.current=an,cn.current=on,pt.current=void 0}),useIsomorphicLayoutEffect(function(){function Pi(){try{var br=be.getState();if(br===Cn.current)return;var Nr=Jt.current(br);if(Se(Nr,cn.current))return;cn.current=Nr,Cn.current=br}catch(Xr){pt.current=Xr}$e()}return ct.onStateChange=Pi,ct.trySubscribe(),Pi(),function(){return ct.tryUnsubscribe()}},[be,ct]),on}function st(ve){ve===void 0&&(ve=ReactReduxContext);var Se=ve===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ve)};return function(je,et){et===void 0&&(et=Ke);var $e=Se(),ct=$e.store,pt=$e.subscription,Jt=Le(je,et,ct,pt);return useDebugValue(Jt),Jt}}var dn=null,sn=we(4676);Et(sn.unstable_batchedUpdates);function en(ve,Se){if(ve.length!==Se.length)return!1;for(var be=0;be<ve.length;be++)if(ve[be]!==Se[be])return!1;return!0}function Xt(ve,Se){var be=(0,ce.useState)(function(){return{inputs:Se,result:ve()}})[0],je=(0,ce.useRef)(!0),et=(0,ce.useRef)(be),$e=je.current||!!(Se&&et.current.inputs&&en(Se,et.current.inputs)),ct=$e?et.current:{inputs:Se,result:ve()};return(0,ce.useEffect)(function(){je.current=!1,et.current=ct},[ct]),ct.result}function ai(ve,Se){return Xt(function(){return ve},Se)}var Bn=Xt,In=ai,Yi=!0,fi="Invariant failed";function ar(ve,Se){if(!ve){if(Yi)throw new Error(fi);var be=typeof Se=="function"?Se():Se,je=be?"".concat(fi,": ").concat(be):fi;throw new Error(je)}}var io=function(Se){var be=Se.top,je=Se.right,et=Se.bottom,$e=Se.left,ct=je-$e,pt=et-be,Jt={top:be,right:je,bottom:et,left:$e,width:ct,height:pt,x:$e,y:be,center:{x:(je+$e)/2,y:(et+be)/2}};return Jt},jo=function(Se,be){return{top:Se.top-be.top,left:Se.left-be.left,bottom:Se.bottom+be.bottom,right:Se.right+be.right}},bo=function(Se,be){return{top:Se.top+be.top,left:Se.left+be.left,bottom:Se.bottom-be.bottom,right:Se.right-be.right}},Mr=function(Se,be){return{top:Se.top+be.y,left:Se.left+be.x,bottom:Se.bottom+be.y,right:Se.right+be.x}},_o={top:0,right:0,bottom:0,left:0},Bo=function(Se){var be=Se.borderBox,je=Se.margin,et=je===void 0?_o:je,$e=Se.border,ct=$e===void 0?_o:$e,pt=Se.padding,Jt=pt===void 0?_o:pt,Cn=io(jo(be,et)),cn=io(bo(be,ct)),an=io(bo(cn,Jt));return{marginBox:Cn,borderBox:io(be),paddingBox:cn,contentBox:an,margin:et,border:ct,padding:Jt}},yo=function(Se){var be=Se.slice(0,-2),je=Se.slice(-2);if(je!=="px")return 0;var et=Number(be);return isNaN(et)&&ar(!1),et},ho=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Tr=function(Se,be){var je=Se.borderBox,et=Se.border,$e=Se.margin,ct=Se.padding,pt=Mr(je,be);return Bo({borderBox:pt,border:et,margin:$e,padding:ct})},Be=function(Se,be){return be===void 0&&(be=ho()),Tr(Se,be)},ua=function(Se,be){var je={top:yo(be.marginTop),right:yo(be.marginRight),bottom:yo(be.marginBottom),left:yo(be.marginLeft)},et={top:yo(be.paddingTop),right:yo(be.paddingRight),bottom:yo(be.paddingBottom),left:yo(be.paddingLeft)},$e={top:yo(be.borderTopWidth),right:yo(be.borderRightWidth),bottom:yo(be.borderBottomWidth),left:yo(be.borderLeftWidth)};return Bo({borderBox:Se,margin:je,padding:et,border:$e})},eo=function(Se){var be=Se.getBoundingClientRect(),je=window.getComputedStyle(Se);return ua(be,je)},Wn=Number.isNaN||function(Se){return typeof Se=="number"&&Se!==Se};function Oi(ve,Se){return!!(ve===Se||Wn(ve)&&Wn(Se))}function Ri(ve,Se){if(ve.length!==Se.length)return!1;for(var be=0;be<ve.length;be++)if(!Oi(ve[be],Se[be]))return!1;return!0}function ci(ve,Se){Se===void 0&&(Se=Ri);var be,je=[],et,$e=!1;function ct(){for(var pt=[],Jt=0;Jt<arguments.length;Jt++)pt[Jt]=arguments[Jt];return $e&&be===this&&Se(pt,je)||(et=ve.apply(this,pt),$e=!0,be=this,je=pt),et}return ct}var Un=ci,Zt=function(Se){var be=[],je=null,et=function(){for(var ct=arguments.length,pt=new Array(ct),Jt=0;Jt<ct;Jt++)pt[Jt]=arguments[Jt];be=pt,!je&&(je=requestAnimationFrame(function(){je=null,Se.apply(void 0,be)}))};return et.cancel=function(){je&&(cancelAnimationFrame(je),je=null)},et},ln=Zt,Tt=!0,An=/[ \t]{2,}/g,Hi=/^[ \t]*/gm,gr=function(Se){return Se.replace(An," ").replace(Hi,"").trim()},sr=function(Se){return gr(`
|
|
%creact-beautiful-dnd
|
|
|
|
%c`+gr(Se)+`
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
`)},Rn=function(Se){return[sr(Se),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Ti="__react-beautiful-dnd-disable-dev-warnings";function qr(ve,Se){var be;Tt||typeof window!="undefined"&&window[Ti]||(be=console)[ve].apply(be,Rn(Se))}var _r=qr.bind(null,"warn"),di=qr.bind(null,"error");function Ot(){}function Ii(ve,Se){return(0,kt.Z)({},ve,{},Se)}function xn(ve,Se,be){var je=Se.map(function(et){var $e=Ii(be,et.options);return ve.addEventListener(et.eventName,et.fn,$e),function(){ve.removeEventListener(et.eventName,et.fn,$e)}});return function(){je.forEach(function($e){$e()})}}var jn=!0,Ft="Invariant failed";function bt(ve){this.message=ve}bt.prototype.toString=function(){return this.message};function rn(ve,Se){if(!ve)throw jn?new bt(Ft):new bt(Ft+": "+(Se||""))}var Sr=function(ve){Lt(Se,ve);function Se(){for(var je,et=arguments.length,$e=new Array(et),ct=0;ct<et;ct++)$e[ct]=arguments[ct];return je=ve.call.apply(ve,[this].concat($e))||this,je.callbacks=null,je.unbind=Ot,je.onWindowError=function(pt){var Jt=je.getCallbacks();Jt.isDragging()&&Jt.tryAbort();var Cn=pt.error;Cn instanceof bt&&pt.preventDefault()},je.getCallbacks=function(){if(!je.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return je.callbacks},je.setCallbacks=function(pt){je.callbacks=pt},je}var be=Se.prototype;return be.componentDidMount=function(){this.unbind=xn(window,[{eventName:"error",fn:this.onWindowError}])},be.componentWillUnmount=function(){this.unbind()},be.componentDidCatch=function(et){if(et instanceof bt){this.setState({});return}throw et},be.render=function(){return this.props.children(this.setCallbacks)},Se}(ce.Component),ki=`
|
|
Press space bar to start a drag.
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
`,Ni=function(Se){return Se+1},qn=function(Se){return`
|
|
You have lifted an item in position `+Ni(Se.source.index)+`
|
|
`},Wi=function(Se,be){var je=Se.droppableId===be.droppableId,et=Ni(Se.index),$e=Ni(be.index);return je?`
|
|
You have moved the item from position `+et+`
|
|
to position `+$e+`
|
|
`:`
|
|
You have moved the item from position `+et+`
|
|
in list `+Se.droppableId+`
|
|
to list `+be.droppableId+`
|
|
in position `+$e+`
|
|
`},Hr=function(Se,be,je){var et=be.droppableId===je.droppableId;return et?`
|
|
The item `+Se+`
|
|
has been combined with `+je.draggableId:`
|
|
The item `+Se+`
|
|
in list `+be.droppableId+`
|
|
has been combined with `+je.draggableId+`
|
|
in list `+je.droppableId+`
|
|
`},no=function(Se){var be=Se.destination;if(be)return Wi(Se.source,be);var je=Se.combine;return je?Hr(Se.draggableId,Se.source,je):"You are over an area that cannot be dropped on"},vi=function(Se){return`
|
|
The item has returned to its starting position
|
|
of `+Ni(Se.index)+`
|
|
`},Ji=function(Se){if(Se.reason==="CANCEL")return`
|
|
Movement cancelled.
|
|
`+vi(Se.source)+`
|
|
`;var be=Se.destination,je=Se.combine;return be?`
|
|
You have dropped the item.
|
|
`+Wi(Se.source,be)+`
|
|
`:je?`
|
|
You have dropped the item.
|
|
`+Hr(Se.draggableId,Se.source,je)+`
|
|
`:`
|
|
The item has been dropped while not over a drop area.
|
|
`+vi(Se.source)+`
|
|
`},Aa={dragHandleUsageInstructions:ki,onDragStart:qn,onDragUpdate:no,onDragEnd:Ji},uo={x:0,y:0},Ir=function(Se,be){return{x:Se.x+be.x,y:Se.y+be.y}},Bt=function(Se,be){return{x:Se.x-be.x,y:Se.y-be.y}},Ht=function(Se,be){return Se.x===be.x&&Se.y===be.y},pn=function(Se){return{x:Se.x!==0?-Se.x:0,y:Se.y!==0?-Se.y:0}},zt=function(Se,be,je){var et;return je===void 0&&(je=0),et={},et[Se]=be,et[Se==="x"?"y":"x"]=je,et},li=function(Se,be){return Math.sqrt(Math.pow(be.x-Se.x,2)+Math.pow(be.y-Se.y,2))},ir=function(Se,be){return Math.min.apply(Math,be.map(function(je){return li(Se,je)}))},cr=function(Se){return function(be){return{x:Se(be.x),y:Se(be.y)}}},ri=function(ve,Se){var be=io({top:Math.max(Se.top,ve.top),right:Math.min(Se.right,ve.right),bottom:Math.min(Se.bottom,ve.bottom),left:Math.max(Se.left,ve.left)});return be.width<=0||be.height<=0?null:be},Ei=function(Se,be){return{top:Se.top+be.y,left:Se.left+be.x,bottom:Se.bottom+be.y,right:Se.right+be.x}},Xn=function(Se){return[{x:Se.left,y:Se.top},{x:Se.right,y:Se.top},{x:Se.left,y:Se.bottom},{x:Se.right,y:Se.bottom}]},tn={top:0,right:0,bottom:0,left:0},Jr=function(Se,be){return be?Ei(Se,be.scroll.diff.displacement):Se},Tn=function(Se,be,je){if(je&&je.increasedBy){var et;return(0,kt.Z)({},Se,(et={},et[be.end]=Se[be.end]+je.increasedBy[be.line],et))}return Se},zr=function(Se,be){return be&&be.shouldClipSubject?ri(be.pageMarginBox,Se):io(Se)},Or=function(ve){var Se=ve.page,be=ve.withPlaceholder,je=ve.axis,et=ve.frame,$e=Jr(Se.marginBox,et),ct=Tn($e,je,be),pt=zr(ct,et);return{page:Se,withPlaceholder:be,active:pt}},ur=function(ve,Se){ve.frame||rn(!1);var be=ve.frame,je=Bt(Se,be.scroll.initial),et=pn(je),$e=(0,kt.Z)({},be,{scroll:{initial:be.scroll.initial,current:Se,diff:{value:je,displacement:et},max:be.scroll.max}}),ct=Or({page:ve.subject.page,withPlaceholder:ve.subject.withPlaceholder,axis:ve.axis,frame:$e}),pt=(0,kt.Z)({},ve,{frame:$e,subject:ct});return pt};function ko(ve){return Number.isInteger?Number.isInteger(ve):typeof ve=="number"&&isFinite(ve)&&Math.floor(ve)===ve}function Zr(ve){return Object.values?Object.values(ve):Object.keys(ve).map(function(Se){return ve[Se]})}function Gi(ve,Se){if(ve.findIndex)return ve.findIndex(Se);for(var be=0;be<ve.length;be++)if(Se(ve[be]))return be;return-1}function Er(ve,Se){if(ve.find)return ve.find(Se);var be=Gi(ve,Se);if(be!==-1)return ve[be]}function ro(ve){return Array.prototype.slice.call(ve)}var Fn=Un(function(ve){return ve.reduce(function(Se,be){return Se[be.descriptor.id]=be,Se},{})}),ti=Un(function(ve){return ve.reduce(function(Se,be){return Se[be.descriptor.id]=be,Se},{})}),Ue=Un(function(ve){return Zr(ve)}),fo=Un(function(ve){return Zr(ve)}),So=Un(function(ve,Se){var be=fo(Se).filter(function(je){return ve===je.descriptor.droppableId}).sort(function(je,et){return je.descriptor.index-et.descriptor.index});return be});function rr(ve){return ve.at&&ve.at.type==="REORDER"?ve.at.destination:null}function Xi(ve){return ve.at&&ve.at.type==="COMBINE"?ve.at.combine:null}var Ui=Un(function(ve,Se){return Se.filter(function(be){return be.descriptor.id!==ve.descriptor.id})}),qo=function(ve){var Se=ve.isMovingForward,be=ve.draggable,je=ve.destination,et=ve.insideDestination,$e=ve.previousImpact;if(!je.isCombineEnabled)return null;var ct=rr($e);if(!ct)return null;function pt(br){var Nr={type:"COMBINE",combine:{draggableId:br,droppableId:je.descriptor.id}};return(0,kt.Z)({},$e,{at:Nr})}var Jt=$e.displaced.all,Cn=Jt.length?Jt[0]:null;if(Se)return Cn?pt(Cn):null;var cn=Ui(be,et);if(!Cn){if(!cn.length)return null;var an=cn[cn.length-1];return pt(an.descriptor.id)}var on=Gi(cn,function(br){return br.descriptor.id===Cn});on===-1&&rn(!1);var On=on-1;if(On<0)return null;var Pi=cn[On];return pt(Pi.descriptor.id)},gs=function(ve,Se){return ve.descriptor.droppableId===Se.descriptor.id},Ps={point:uo,value:0},Ro={invisible:{},visible:{},all:[]},Ho={displaced:Ro,displacedBy:Ps,at:null},Rr=function(ve,Se){return function(be){return ve<=be&&be<=Se}},yr=function(ve){var Se=Rr(ve.top,ve.bottom),be=Rr(ve.left,ve.right);return function(je){var et=Se(je.top)&&Se(je.bottom)&&be(je.left)&&be(je.right);if(et)return!0;var $e=Se(je.top)||Se(je.bottom),ct=be(je.left)||be(je.right),pt=$e&&ct;if(pt)return!0;var Jt=je.top<ve.top&&je.bottom>ve.bottom,Cn=je.left<ve.left&&je.right>ve.right,cn=Jt&&Cn;if(cn)return!0;var an=Jt&&ct||Cn&&$e;return an}},Eo=function(ve){var Se=Rr(ve.top,ve.bottom),be=Rr(ve.left,ve.right);return function(je){var et=Se(je.top)&&Se(je.bottom)&&be(je.left)&&be(je.right);return et}},oi={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Na={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},qa=function(ve){return function(Se){var be=Rr(Se.top,Se.bottom),je=Rr(Se.left,Se.right);return function(et){return ve===oi?be(et.top)&&be(et.bottom):je(et.left)&&je(et.right)}}},tl=function(Se,be){var je=be.frame?be.frame.scroll.diff.displacement:uo;return Ei(Se,je)},Ta=function(Se,be,je){return be.subject.active?je(be.subject.active)(Se):!1},sa=function(Se,be,je){return je(be)(Se)},Oa=function(Se){var be=Se.target,je=Se.destination,et=Se.viewport,$e=Se.withDroppableDisplacement,ct=Se.isVisibleThroughFrameFn,pt=$e?tl(be,je):be;return Ta(pt,je,ct)&&sa(pt,et,ct)},nl=function(Se){return Oa((0,kt.Z)({},Se,{isVisibleThroughFrameFn:yr}))},Qt=function(Se){return Oa((0,kt.Z)({},Se,{isVisibleThroughFrameFn:Eo}))},Su=function(Se){return Oa((0,kt.Z)({},Se,{isVisibleThroughFrameFn:qa(Se.destination.axis)}))},Ia=function(Se,be,je){if(typeof je=="boolean")return je;if(!be)return!0;var et=be.invisible,$e=be.visible;if(et[Se])return!1;var ct=$e[Se];return ct?ct.shouldAnimate:!0};function qt(ve,Se){var be=ve.page.marginBox,je={top:Se.point.y,right:0,bottom:0,left:Se.point.x};return io(jo(be,je))}function ys(ve){var Se=ve.afterDragging,be=ve.destination,je=ve.displacedBy,et=ve.viewport,$e=ve.forceShouldAnimate,ct=ve.last;return Se.reduce(function(Jt,Cn){var cn=qt(Cn,je),an=Cn.descriptor.id;Jt.all.push(an);var on=nl({target:cn,destination:be,viewport:et,withDroppableDisplacement:!0});if(!on)return Jt.invisible[Cn.descriptor.id]=!0,Jt;var On=Ia(an,ct,$e),Pi={draggableId:an,shouldAnimate:On};return Jt.visible[an]=Pi,Jt},{all:[],visible:{},invisible:{}})}function Tl(ve,Se){if(!ve.length)return 0;var be=ve[ve.length-1].descriptor.index;return Se.inHomeList?be:be+1}function Ol(ve){var Se=ve.insideDestination,be=ve.inHomeList,je=ve.displacedBy,et=ve.destination,$e=Tl(Se,{inHomeList:be});return{displaced:Ro,displacedBy:je,at:{type:"REORDER",destination:{droppableId:et.descriptor.id,index:$e}}}}function ws(ve){var Se=ve.draggable,be=ve.insideDestination,je=ve.destination,et=ve.viewport,$e=ve.displacedBy,ct=ve.last,pt=ve.index,Jt=ve.forceShouldAnimate,Cn=gs(Se,je);if(pt==null)return Ol({insideDestination:be,inHomeList:Cn,displacedBy:$e,destination:je});var cn=Er(be,function(br){return br.descriptor.index===pt});if(!cn)return Ol({insideDestination:be,inHomeList:Cn,displacedBy:$e,destination:je});var an=Ui(Se,be),on=be.indexOf(cn),On=an.slice(on),Pi=ys({afterDragging:On,destination:je,displacedBy:$e,last:ct,viewport:et.frame,forceShouldAnimate:Jt});return{displaced:Pi,displacedBy:$e,at:{type:"REORDER",destination:{droppableId:je.descriptor.id,index:pt}}}}function Ss(ve,Se){return!!Se.effected[ve]}var eu=function(ve){var Se=ve.isMovingForward,be=ve.destination,je=ve.draggables,et=ve.combine,$e=ve.afterCritical;if(!be.isCombineEnabled)return null;var ct=et.draggableId,pt=je[ct],Jt=pt.descriptor.index,Cn=Ss(ct,$e);return Cn?Se?Jt:Jt-1:Se?Jt+1:Jt},il=function(ve){var Se=ve.isMovingForward,be=ve.isInHomeList,je=ve.insideDestination,et=ve.location;if(!je.length)return null;var $e=et.index,ct=Se?$e+1:$e-1,pt=je[0].descriptor.index,Jt=je[je.length-1].descriptor.index,Cn=be?Jt:Jt+1;return ct<pt||ct>Cn?null:ct},os=function(ve){var Se=ve.isMovingForward,be=ve.isInHomeList,je=ve.draggable,et=ve.draggables,$e=ve.destination,ct=ve.insideDestination,pt=ve.previousImpact,Jt=ve.viewport,Cn=ve.afterCritical,cn=pt.at;if(cn||rn(!1),cn.type==="REORDER"){var an=il({isMovingForward:Se,isInHomeList:be,location:cn.destination,insideDestination:ct});return an==null?null:ws({draggable:je,insideDestination:ct,destination:$e,viewport:Jt,last:pt.displaced,displacedBy:pt.displacedBy,index:an})}var on=eu({isMovingForward:Se,destination:$e,displaced:pt.displaced,draggables:et,combine:cn.combine,afterCritical:Cn});return on==null?null:ws({draggable:je,insideDestination:ct,destination:$e,viewport:Jt,last:pt.displaced,displacedBy:pt.displacedBy,index:on})},rl=function(ve){var Se=ve.displaced,be=ve.afterCritical,je=ve.combineWith,et=ve.displacedBy,$e=!!(Se.visible[je]||Se.invisible[je]);return Ss(je,be)?$e?uo:pn(et.point):$e?et.point:uo},ku=function(ve){var Se=ve.afterCritical,be=ve.impact,je=ve.draggables,et=Xi(be);et||rn(!1);var $e=et.draggableId,ct=je[$e].page.borderBox.center,pt=rl({displaced:be.displaced,afterCritical:Se,combineWith:$e,displacedBy:be.displacedBy});return Ir(ct,pt)},hc=function(Se,be){return be.margin[Se.start]+be.borderBox[Se.size]/2},cu=function(Se,be){return be.margin[Se.end]+be.borderBox[Se.size]/2},Nu=function(Se,be,je){return be[Se.crossAxisStart]+je.margin[Se.crossAxisStart]+je.borderBox[Se.crossAxisSize]/2},ao=function(Se){var be=Se.axis,je=Se.moveRelativeTo,et=Se.isMoving;return zt(be.line,je.marginBox[be.end]+hc(be,et),Nu(be,je.marginBox,et))},vd=function(Se){var be=Se.axis,je=Se.moveRelativeTo,et=Se.isMoving;return zt(be.line,je.marginBox[be.start]-cu(be,et),Nu(be,je.marginBox,et))},Dd=function(Se){var be=Se.axis,je=Se.moveInto,et=Se.isMoving;return zt(be.line,je.contentBox[be.start]+hc(be,et),Nu(be,je.contentBox,et))},bc=function(ve){var Se=ve.impact,be=ve.draggable,je=ve.draggables,et=ve.droppable,$e=ve.afterCritical,ct=So(et.descriptor.id,je),pt=be.page,Jt=et.axis;if(!ct.length)return Dd({axis:Jt,moveInto:et.page,isMoving:pt});var Cn=Se.displaced,cn=Se.displacedBy,an=Cn.all[0];if(an){var on=je[an];if(Ss(an,$e))return vd({axis:Jt,moveRelativeTo:on.page,isMoving:pt});var On=Tr(on.page,cn.point);return vd({axis:Jt,moveRelativeTo:On,isMoving:pt})}var Pi=ct[ct.length-1];if(Pi.descriptor.id===be.descriptor.id)return pt.borderBox.center;if(Ss(Pi.descriptor.id,$e)){var br=Tr(Pi.page,pn($e.displacedBy.point));return ao({axis:Jt,moveRelativeTo:br,isMoving:pt})}return ao({axis:Jt,moveRelativeTo:Pi.page,isMoving:pt})},Ld=function(ve,Se){var be=ve.frame;return be?Ir(Se,be.scroll.diff.displacement):Se},lh=function(Se){var be=Se.impact,je=Se.draggable,et=Se.droppable,$e=Se.draggables,ct=Se.afterCritical,pt=je.page.borderBox.center,Jt=be.at;return!et||!Jt?pt:Jt.type==="REORDER"?bc({impact:be,draggable:je,draggables:$e,droppable:et,afterCritical:ct}):ku({impact:be,draggables:$e,afterCritical:ct})},tr=function(ve){var Se=lh(ve),be=ve.droppable,je=be?Ld(be,Se):Se;return je},ll=function(ve,Se){var be=Bt(Se,ve.scroll.initial),je=pn(be),et=io({top:Se.y,bottom:Se.y+ve.frame.height,left:Se.x,right:Se.x+ve.frame.width}),$e={frame:et,scroll:{initial:ve.scroll.initial,max:ve.scroll.max,current:Se,diff:{value:be,displacement:je}}};return $e};function Ra(ve,Se){return ve.map(function(be){return Se[be]})}function wr(ve,Se){for(var be=0;be<Se.length;be++){var je=Se[be].visible[ve];if(je)return je}return null}var ca=function(ve){var Se=ve.impact,be=ve.viewport,je=ve.destination,et=ve.draggables,$e=ve.maxScrollChange,ct=ll(be,Ir(be.scroll.current,$e)),pt=je.frame?ur(je,Ir(je.frame.scroll.current,$e)):je,Jt=Se.displaced,Cn=ys({afterDragging:Ra(Jt.all,et),destination:je,displacedBy:Se.displacedBy,viewport:ct.frame,last:Jt,forceShouldAnimate:!1}),cn=ys({afterDragging:Ra(Jt.all,et),destination:pt,displacedBy:Se.displacedBy,viewport:be.frame,last:Jt,forceShouldAnimate:!1}),an={},on={},On=[Jt,Cn,cn];Jt.all.forEach(function(br){var Nr=wr(br,On);if(Nr){on[br]=Nr;return}an[br]=!0});var Pi=(0,kt.Z)({},Se,{displaced:{all:Jt.all,invisible:an,visible:on}});return Pi},pa=function(ve,Se){return Ir(ve.scroll.diff.displacement,Se)},Cr=function(ve){var Se=ve.pageBorderBoxCenter,be=ve.draggable,je=ve.viewport,et=pa(je,Se),$e=Bt(et,be.page.borderBox.center);return Ir(be.client.borderBox.center,$e)},Al=function(ve){var Se=ve.draggable,be=ve.destination,je=ve.newPageBorderBoxCenter,et=ve.viewport,$e=ve.withDroppableDisplacement,ct=ve.onlyOnMainAxis,pt=ct===void 0?!1:ct,Jt=Bt(je,Se.page.borderBox.center),Cn=Ei(Se.page.borderBox,Jt),cn={target:Cn,destination:be,withDroppableDisplacement:$e,viewport:et};return pt?Su(cn):Qt(cn)},Bu=function(ve){var Se=ve.isMovingForward,be=ve.draggable,je=ve.destination,et=ve.draggables,$e=ve.previousImpact,ct=ve.viewport,pt=ve.previousPageBorderBoxCenter,Jt=ve.previousClientSelection,Cn=ve.afterCritical;if(!je.isEnabled)return null;var cn=So(je.descriptor.id,et),an=gs(be,je),on=qo({isMovingForward:Se,draggable:be,destination:je,insideDestination:cn,previousImpact:$e})||os({isMovingForward:Se,isInHomeList:an,draggable:be,draggables:et,destination:je,insideDestination:cn,previousImpact:$e,viewport:ct,afterCritical:Cn});if(!on)return null;var On=tr({impact:on,draggable:be,droppable:je,draggables:et,afterCritical:Cn}),Pi=Al({draggable:be,destination:je,newPageBorderBoxCenter:On,viewport:ct.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Pi){var br=Cr({pageBorderBoxCenter:On,draggable:be,viewport:ct});return{clientSelection:br,impact:on,scrollJumpRequest:null}}var Nr=Bt(On,pt),Xr=ca({impact:on,viewport:ct,destination:je,draggables:et,maxScrollChange:Nr});return{clientSelection:Jt,impact:Xr,scrollJumpRequest:Nr}},us=function(Se){var be=Se.subject.active;return be||rn(!1),be},tu=function(ve){var Se=ve.isMovingForward,be=ve.pageBorderBoxCenter,je=ve.source,et=ve.droppables,$e=ve.viewport,ct=je.subject.active;if(!ct)return null;var pt=je.axis,Jt=Rr(ct[pt.start],ct[pt.end]),Cn=Ue(et).filter(function(an){return an!==je}).filter(function(an){return an.isEnabled}).filter(function(an){return!!an.subject.active}).filter(function(an){return yr($e.frame)(us(an))}).filter(function(an){var on=us(an);return Se?ct[pt.crossAxisEnd]<on[pt.crossAxisEnd]:on[pt.crossAxisStart]<ct[pt.crossAxisStart]}).filter(function(an){var on=us(an),On=Rr(on[pt.start],on[pt.end]);return Jt(on[pt.start])||Jt(on[pt.end])||On(ct[pt.start])||On(ct[pt.end])}).sort(function(an,on){var On=us(an)[pt.crossAxisStart],Pi=us(on)[pt.crossAxisStart];return Se?On-Pi:Pi-On}).filter(function(an,on,On){return us(an)[pt.crossAxisStart]===us(On[0])[pt.crossAxisStart]});if(!Cn.length)return null;if(Cn.length===1)return Cn[0];var cn=Cn.filter(function(an){var on=Rr(us(an)[pt.start],us(an)[pt.end]);return on(be[pt.line])});return cn.length===1?cn[0]:cn.length>1?cn.sort(function(an,on){return us(an)[pt.start]-us(on)[pt.start]})[0]:Cn.sort(function(an,on){var On=ir(be,Xn(us(an))),Pi=ir(be,Xn(us(on)));return On!==Pi?On-Pi:us(an)[pt.start]-us(on)[pt.start]})[0]},Qu=function(Se,be){var je=Se.page.borderBox.center;return Ss(Se.descriptor.id,be)?Bt(je,be.displacedBy.point):je},ps=function(Se,be){var je=Se.page.borderBox;return Ss(Se.descriptor.id,be)?Ei(je,pn(be.displacedBy.point)):je},Bl=function(ve){var Se=ve.pageBorderBoxCenter,be=ve.viewport,je=ve.destination,et=ve.insideDestination,$e=ve.afterCritical,ct=et.filter(function(pt){return Qt({target:ps(pt,$e),destination:je,viewport:be.frame,withDroppableDisplacement:!0})}).sort(function(pt,Jt){var Cn=li(Se,Ld(je,Qu(pt,$e))),cn=li(Se,Ld(je,Qu(Jt,$e)));return Cn<cn?-1:cn<Cn?1:pt.descriptor.index-Jt.descriptor.index});return ct[0]||null},Kl=Un(function(Se,be){var je=be[Se.line];return{value:je,point:zt(Se.line,je)}}),Hu=function(Se,be,je){var et=Se.axis;if(Se.descriptor.mode==="virtual")return zt(et.line,be[et.line]);var $e=Se.subject.page.contentBox[et.size],ct=So(Se.descriptor.id,je),pt=ct.reduce(function(cn,an){return cn+an.client.marginBox[et.size]},0),Jt=pt+be[et.line],Cn=Jt-$e;return Cn<=0?null:zt(et.line,Cn)},Kd=function(Se,be){return(0,kt.Z)({},Se,{scroll:(0,kt.Z)({},Se.scroll,{max:be})})},uh=function(Se,be,je){var et=Se.frame;gs(be,Se)&&rn(!1),Se.subject.withPlaceholder&&rn(!1);var $e=Kl(Se.axis,be.displaceBy).point,ct=Hu(Se,$e,je),pt={placeholderSize:$e,increasedBy:ct,oldFrameMaxScroll:Se.frame?Se.frame.scroll.max:null};if(!et){var Jt=Or({page:Se.subject.page,withPlaceholder:pt,axis:Se.axis,frame:Se.frame});return(0,kt.Z)({},Se,{subject:Jt})}var Cn=ct?Ir(et.scroll.max,ct):et.scroll.max,cn=Kd(et,Cn),an=Or({page:Se.subject.page,withPlaceholder:pt,axis:Se.axis,frame:cn});return(0,kt.Z)({},Se,{subject:an,frame:cn})},ch=function(Se){var be=Se.subject.withPlaceholder;be||rn(!1);var je=Se.frame;if(!je){var et=Or({page:Se.subject.page,axis:Se.axis,frame:null,withPlaceholder:null});return(0,kt.Z)({},Se,{subject:et})}var $e=be.oldFrameMaxScroll;$e||rn(!1);var ct=Kd(je,$e),pt=Or({page:Se.subject.page,axis:Se.axis,frame:ct,withPlaceholder:null});return(0,kt.Z)({},Se,{subject:pt,frame:ct})},dh=function(ve){var Se=ve.previousPageBorderBoxCenter,be=ve.moveRelativeTo,je=ve.insideDestination,et=ve.draggable,$e=ve.draggables,ct=ve.destination,pt=ve.viewport,Jt=ve.afterCritical;if(!be){if(je.length)return null;var Cn={displaced:Ro,displacedBy:Ps,at:{type:"REORDER",destination:{droppableId:ct.descriptor.id,index:0}}},cn=tr({impact:Cn,draggable:et,droppable:ct,draggables:$e,afterCritical:Jt}),an=gs(et,ct)?ct:uh(ct,et,$e),on=Al({draggable:et,destination:an,newPageBorderBoxCenter:cn,viewport:pt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return on?Cn:null}var On=Se[ct.axis.line]<=be.page.borderBox.center[ct.axis.line],Pi=function(){var Nr=be.descriptor.index;return be.descriptor.id===et.descriptor.id||On?Nr:Nr+1}(),br=Kl(ct.axis,et.displaceBy);return ws({draggable:et,insideDestination:je,destination:ct,viewport:pt,displacedBy:br,last:Ro,index:Pi})},ol=function(ve){var Se=ve.isMovingForward,be=ve.previousPageBorderBoxCenter,je=ve.draggable,et=ve.isOver,$e=ve.draggables,ct=ve.droppables,pt=ve.viewport,Jt=ve.afterCritical,Cn=tu({isMovingForward:Se,pageBorderBoxCenter:be,source:et,droppables:ct,viewport:pt});if(!Cn)return null;var cn=So(Cn.descriptor.id,$e),an=Bl({pageBorderBoxCenter:be,viewport:pt,destination:Cn,insideDestination:cn,afterCritical:Jt}),on=dh({previousPageBorderBoxCenter:be,destination:Cn,draggable:je,draggables:$e,moveRelativeTo:an,insideDestination:cn,viewport:pt,afterCritical:Jt});if(!on)return null;var On=tr({impact:on,draggable:je,droppable:Cn,draggables:$e,afterCritical:Jt}),Pi=Cr({pageBorderBoxCenter:On,draggable:je,viewport:pt});return{clientSelection:Pi,impact:on,scrollJumpRequest:null}},ul=function(ve){var Se=ve.at;return Se?Se.type==="REORDER"?Se.destination.droppableId:Se.combine.droppableId:null},fc=function(Se,be){var je=ul(Se);return je?be[je]:null},Zh=function(ve){var Se=ve.state,be=ve.type,je=fc(Se.impact,Se.dimensions.droppables),et=!!je,$e=Se.dimensions.droppables[Se.critical.droppable.id],ct=je||$e,pt=ct.axis.direction,Jt=pt==="vertical"&&(be==="MOVE_UP"||be==="MOVE_DOWN")||pt==="horizontal"&&(be==="MOVE_LEFT"||be==="MOVE_RIGHT");if(Jt&&!et)return null;var Cn=be==="MOVE_DOWN"||be==="MOVE_RIGHT",cn=Se.dimensions.draggables[Se.critical.draggable.id],an=Se.current.page.borderBoxCenter,on=Se.dimensions,On=on.draggables,Pi=on.droppables;return Jt?Bu({isMovingForward:Cn,previousPageBorderBoxCenter:an,draggable:cn,destination:ct,draggables:On,viewport:Se.viewport,previousClientSelection:Se.current.client.selection,previousImpact:Se.impact,afterCritical:Se.afterCritical}):ol({isMovingForward:Cn,previousPageBorderBoxCenter:an,draggable:cn,isOver:ct,draggables:On,droppables:Pi,viewport:Se.viewport,afterCritical:Se.afterCritical})};function od(ve){return ve.phase==="DRAGGING"||ve.phase==="COLLECTING"}function yd(ve){var Se=Rr(ve.top,ve.bottom),be=Rr(ve.left,ve.right);return function(et){return Se(et.y)&&be(et.x)}}function Dl(ve,Se){return ve.left<Se.right&&ve.right>Se.left&&ve.top<Se.bottom&&ve.bottom>Se.top}function Uh(ve){var Se=ve.pageBorderBox,be=ve.draggable,je=ve.candidates,et=be.page.borderBox.center,$e=je.map(function(ct){var pt=ct.axis,Jt=zt(ct.axis.line,Se.center[pt.line],ct.page.borderBox.center[pt.crossAxisLine]);return{id:ct.descriptor.id,distance:li(et,Jt)}}).sort(function(ct,pt){return pt.distance-ct.distance});return $e[0]?$e[0].id:null}function hf(ve){var Se=ve.pageBorderBox,be=ve.draggable,je=ve.droppables,et=Ue(je).filter(function($e){if(!$e.isEnabled)return!1;var ct=$e.subject.active;if(!ct||!Dl(Se,ct))return!1;if(yd(ct)(Se.center))return!0;var pt=$e.axis,Jt=ct.center[pt.crossAxisLine],Cn=Se[pt.crossAxisStart],cn=Se[pt.crossAxisEnd],an=Rr(ct[pt.crossAxisStart],ct[pt.crossAxisEnd]),on=an(Cn),On=an(cn);return!on&&!On?!0:on?Cn<Jt:cn>Jt});return et.length?et.length===1?et[0].descriptor.id:Uh({pageBorderBox:Se,draggable:be,candidates:et}):null}var Sd=function(Se,be){return io(Ei(Se,be))},gc=function(ve,Se){var be=ve.frame;return be?Sd(Se,be.scroll.diff.value):Se};function nu(ve){var Se=ve.displaced,be=ve.id;return!!(Se.visible[be]||Se.invisible[be])}function Tu(ve){var Se=ve.draggable,be=ve.closest,je=ve.inHomeList;return be?je&&be.descriptor.index>Se.descriptor.index?be.descriptor.index-1:be.descriptor.index:null}var du=function(ve){var Se=ve.pageBorderBoxWithDroppableScroll,be=ve.draggable,je=ve.destination,et=ve.insideDestination,$e=ve.last,ct=ve.viewport,pt=ve.afterCritical,Jt=je.axis,Cn=Kl(je.axis,be.displaceBy),cn=Cn.value,an=Se[Jt.start],on=Se[Jt.end],On=Ui(be,et),Pi=Er(On,function(Nr){var Xr=Nr.descriptor.id,Ao=Nr.page.borderBox.center[Jt.line],Vo=Ss(Xr,pt),Io=nu({displaced:$e,id:Xr});return Vo?Io?on<=Ao:an<Ao-cn:Io?on<=Ao+cn:an<Ao}),br=Tu({draggable:be,closest:Pi,inHomeList:gs(be,je)});return ws({draggable:be,insideDestination:et,destination:je,viewport:ct,last:$e,displacedBy:Cn,index:br})},Ou=4,Kh=function(ve){var Se=ve.draggable,be=ve.pageBorderBoxWithDroppableScroll,je=ve.previousImpact,et=ve.destination,$e=ve.insideDestination,ct=ve.afterCritical;if(!et.isCombineEnabled)return null;var pt=et.axis,Jt=Kl(et.axis,Se.displaceBy),Cn=Jt.value,cn=be[pt.start],an=be[pt.end],on=Ui(Se,$e),On=Er(on,function(br){var Nr=br.descriptor.id,Xr=br.page.borderBox,Ao=Xr[pt.size],Vo=Ao/Ou,Io=Ss(Nr,ct),fa=nu({displaced:je.displaced,id:Nr});return Io?fa?an>Xr[pt.start]+Vo&&an<Xr[pt.end]-Vo:cn>Xr[pt.start]-Cn+Vo&&cn<Xr[pt.end]-Cn-Vo:fa?an>Xr[pt.start]+Cn+Vo&&an<Xr[pt.end]+Cn-Vo:cn>Xr[pt.start]+Vo&&cn<Xr[pt.end]-Vo});if(!On)return null;var Pi={displacedBy:Jt,displaced:je.displaced,at:{type:"COMBINE",combine:{draggableId:On.descriptor.id,droppableId:et.descriptor.id}}};return Pi},Md=function(ve){var Se=ve.pageOffset,be=ve.draggable,je=ve.draggables,et=ve.droppables,$e=ve.previousImpact,ct=ve.viewport,pt=ve.afterCritical,Jt=Sd(be.page.borderBox,Se),Cn=hf({pageBorderBox:Jt,draggable:be,droppables:et});if(!Cn)return Ho;var cn=et[Cn],an=So(cn.descriptor.id,je),on=gc(cn,Jt);return Kh({pageBorderBoxWithDroppableScroll:on,draggable:be,previousImpact:$e,destination:cn,insideDestination:an,afterCritical:pt})||du({pageBorderBoxWithDroppableScroll:on,draggable:be,destination:cn,insideDestination:an,last:$e.displaced,viewport:ct,afterCritical:pt})},cl=function(ve,Se){var be;return(0,kt.Z)({},ve,(be={},be[Se.descriptor.id]=Se,be))},Yh=function(Se){var be=Se.previousImpact,je=Se.impact,et=Se.droppables,$e=ul(be),ct=ul(je);if(!$e||$e===ct)return et;var pt=et[$e];if(!pt.subject.withPlaceholder)return et;var Jt=ch(pt);return cl(et,Jt)},hh=function(ve){var Se=ve.draggable,be=ve.draggables,je=ve.droppables,et=ve.previousImpact,$e=ve.impact,ct=Yh({previousImpact:et,impact:$e,droppables:je}),pt=ul($e);if(!pt)return ct;var Jt=je[pt];if(gs(Se,Jt)||Jt.subject.withPlaceholder)return ct;var Cn=uh(Jt,Se,be);return cl(ct,Cn)},kd=function(ve){var Se=ve.state,be=ve.clientSelection,je=ve.dimensions,et=ve.viewport,$e=ve.impact,ct=ve.scrollJumpRequest,pt=et||Se.viewport,Jt=je||Se.dimensions,Cn=be||Se.current.client.selection,cn=Bt(Cn,Se.initial.client.selection),an={offset:cn,selection:Cn,borderBoxCenter:Ir(Se.initial.client.borderBoxCenter,cn)},on={selection:Ir(an.selection,pt.scroll.current),borderBoxCenter:Ir(an.borderBoxCenter,pt.scroll.current),offset:Ir(an.offset,pt.scroll.diff.value)},On={client:an,page:on};if(Se.phase==="COLLECTING")return(0,kt.Z)({phase:"COLLECTING"},Se,{dimensions:Jt,viewport:pt,current:On});var Pi=Jt.draggables[Se.critical.draggable.id],br=$e||Md({pageOffset:on.offset,draggable:Pi,draggables:Jt.draggables,droppables:Jt.droppables,previousImpact:Se.impact,viewport:pt,afterCritical:Se.afterCritical}),Nr=hh({draggable:Pi,impact:br,previousImpact:Se.impact,draggables:Jt.draggables,droppables:Jt.droppables}),Xr=(0,kt.Z)({},Se,{current:On,dimensions:{draggables:Jt.draggables,droppables:Nr},impact:br,viewport:pt,scrollJumpRequest:ct||null,forceShouldAnimate:ct?!1:null});return Xr};function Qr(ve,Se){return ve.map(function(be){return Se[be]})}var Nd=function(ve){var Se=ve.impact,be=ve.viewport,je=ve.draggables,et=ve.destination,$e=ve.forceShouldAnimate,ct=Se.displaced,pt=Qr(ct.all,je),Jt=ys({afterDragging:pt,destination:et,displacedBy:Se.displacedBy,viewport:be.frame,forceShouldAnimate:$e,last:ct});return(0,kt.Z)({},Se,{displaced:Jt})},At=function(ve){var Se=ve.impact,be=ve.draggable,je=ve.droppable,et=ve.draggables,$e=ve.viewport,ct=ve.afterCritical,pt=tr({impact:Se,draggable:be,draggables:et,droppable:je,afterCritical:ct});return Cr({pageBorderBoxCenter:pt,draggable:be,viewport:$e})},ni=function(ve){var Se=ve.state,be=ve.dimensions,je=ve.viewport;Se.movementMode!=="SNAP"&&rn(!1);var et=Se.impact,$e=je||Se.viewport,ct=be||Se.dimensions,pt=ct.draggables,Jt=ct.droppables,Cn=pt[Se.critical.draggable.id],cn=ul(et);cn||rn(!1);var an=Jt[cn],on=Nd({impact:et,viewport:$e,destination:an,draggables:pt}),On=At({impact:on,draggable:Cn,droppable:an,draggables:pt,viewport:$e,afterCritical:Se.afterCritical});return kd({impact:on,clientSelection:On,state:Se,dimensions:ct,viewport:$e})},Bf=function(ve){return{index:ve.index,droppableId:ve.droppableId}},Bc=function(ve){var Se=ve.draggable,be=ve.home,je=ve.draggables,et=ve.viewport,$e=Kl(be.axis,Se.displaceBy),ct=So(be.descriptor.id,je),pt=ct.indexOf(Se);pt===-1&&rn(!1);var Jt=ct.slice(pt+1),Cn=Jt.reduce(function(On,Pi){return On[Pi.descriptor.id]=!0,On},{}),cn={inVirtualList:be.descriptor.mode==="virtual",displacedBy:$e,effected:Cn},an=ys({afterDragging:Jt,destination:be,displacedBy:$e,last:null,viewport:et.frame,forceShouldAnimate:!1}),on={displaced:an,displacedBy:$e,at:{type:"REORDER",destination:Bf(Se.descriptor)}};return{impact:on,afterCritical:cn}},Vu=function(ve,Se){return{draggables:ve.draggables,droppables:cl(ve.droppables,Se)}},Dc=function(Se){},Lc=function(Se){},ff=function(ve){var Se=ve.draggable,be=ve.offset,je=ve.initialWindowScroll,et=Tr(Se.client,be),$e=Be(et,je),ct=(0,kt.Z)({},Se,{placeholder:(0,kt.Z)({},Se.placeholder,{client:et}),client:et,page:$e});return ct},gf=function(ve){var Se=ve.frame;return Se||rn(!1),Se},dl=function(ve){var Se=ve.additions,be=ve.updatedDroppables,je=ve.viewport,et=je.scroll.diff.value;return Se.map(function($e){var ct=$e.descriptor.droppableId,pt=be[ct],Jt=gf(pt),Cn=Jt.scroll.diff.value,cn=Ir(et,Cn),an=ff({draggable:$e,offset:cn,initialWindowScroll:je.scroll.initial});return an})},zo=function(ve){var Se=ve.state,be=ve.published;Dc();var je=be.modified.map(function(Vo){var Io=Se.dimensions.droppables[Vo.droppableId],fa=ur(Io,Vo.scroll);return fa}),et=(0,kt.Z)({},Se.dimensions.droppables,{},Fn(je)),$e=ti(dl({additions:be.additions,updatedDroppables:et,viewport:Se.viewport})),ct=(0,kt.Z)({},Se.dimensions.draggables,{},$e);be.removals.forEach(function(Vo){delete ct[Vo]});var pt={droppables:et,draggables:ct},Jt=ul(Se.impact),Cn=Jt?pt.droppables[Jt]:null,cn=pt.draggables[Se.critical.draggable.id],an=pt.droppables[Se.critical.droppable.id],on=Bc({draggable:cn,home:an,draggables:ct,viewport:Se.viewport}),On=on.impact,Pi=on.afterCritical,br=Cn&&Cn.isCombineEnabled?Se.impact:On,Nr=Md({pageOffset:Se.current.page.offset,draggable:pt.draggables[Se.critical.draggable.id],draggables:pt.draggables,droppables:pt.droppables,previousImpact:br,viewport:Se.viewport,afterCritical:Pi});Lc();var Xr=(0,kt.Z)({phase:"DRAGGING"},Se,{phase:"DRAGGING",impact:Nr,onLiftImpact:On,dimensions:pt,afterCritical:Pi,forceShouldAnimate:!1});if(Se.phase==="COLLECTING")return Xr;var Ao=(0,kt.Z)({phase:"DROP_PENDING"},Xr,{phase:"DROP_PENDING",reason:Se.reason,isWaiting:!1});return Ao},zl=function(Se){return Se.movementMode==="SNAP"},hu=function(Se,be,je){var et=Vu(Se.dimensions,be);return!zl(Se)||je?kd({state:Se,dimensions:et}):ni({state:Se,dimensions:et})};function Qs(ve){return ve.isDragging&&ve.movementMode==="SNAP"?(0,kt.Z)({phase:"DRAGGING"},ve,{scrollJumpRequest:null}):ve}var Da={phase:"IDLE",completed:null,shouldFlush:!1},Vl=function(ve,Se){if(ve===void 0&&(ve=Da),Se.type==="FLUSH")return(0,kt.Z)({},Da,{shouldFlush:!0});if(Se.type==="INITIAL_PUBLISH"){ve.phase!=="IDLE"&&rn(!1);var be=Se.payload,je=be.critical,et=be.clientSelection,$e=be.viewport,ct=be.dimensions,pt=be.movementMode,Jt=ct.draggables[je.draggable.id],Cn=ct.droppables[je.droppable.id],cn={selection:et,borderBoxCenter:Jt.client.borderBox.center,offset:uo},an={client:cn,page:{selection:Ir(cn.selection,$e.scroll.initial),borderBoxCenter:Ir(cn.selection,$e.scroll.initial),offset:Ir(cn.selection,$e.scroll.diff.value)}},on=Ue(ct.droppables).every(function(Lg){return!Lg.isFixedOnPage}),On=Bc({draggable:Jt,home:Cn,draggables:ct.draggables,viewport:$e}),Pi=On.impact,br=On.afterCritical,Nr={phase:"DRAGGING",isDragging:!0,critical:je,movementMode:pt,dimensions:ct,initial:an,current:an,isWindowScrollAllowed:on,impact:Pi,afterCritical:br,onLiftImpact:Pi,viewport:$e,scrollJumpRequest:null,forceShouldAnimate:null};return Nr}if(Se.type==="COLLECTION_STARTING"){if(ve.phase==="COLLECTING"||ve.phase==="DROP_PENDING")return ve;ve.phase!=="DRAGGING"&&rn(!1);var Xr=(0,kt.Z)({phase:"COLLECTING"},ve,{phase:"COLLECTING"});return Xr}if(Se.type==="PUBLISH_WHILE_DRAGGING")return ve.phase==="COLLECTING"||ve.phase==="DROP_PENDING"||rn(!1),zo({state:ve,published:Se.payload});if(Se.type==="MOVE"){if(ve.phase==="DROP_PENDING")return ve;od(ve)||rn(!1);var Ao=Se.payload.client;return Ht(Ao,ve.current.client.selection)?ve:kd({state:ve,clientSelection:Ao,impact:zl(ve)?ve.impact:null})}if(Se.type==="UPDATE_DROPPABLE_SCROLL"){if(ve.phase==="DROP_PENDING"||ve.phase==="COLLECTING")return Qs(ve);od(ve)||rn(!1);var Vo=Se.payload,Io=Vo.id,fa=Vo.newScroll,ls=ve.dimensions.droppables[Io];if(!ls)return ve;var Us=ur(ls,fa);return hu(ve,Us,!1)}if(Se.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ve.phase==="DROP_PENDING")return ve;od(ve)||rn(!1);var ju=Se.payload,Rs=ju.id,Lu=ju.isEnabled,Ic=ve.dimensions.droppables[Rs];Ic||rn(!1),Ic.isEnabled===Lu&&rn(!1);var Zc=(0,kt.Z)({},Ic,{isEnabled:Lu});return hu(ve,Zc,!0)}if(Se.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ve.phase==="DROP_PENDING")return ve;od(ve)||rn(!1);var yh=Se.payload,Pd=yh.id,hd=yh.isCombineEnabled,lc=ve.dimensions.droppables[Pd];lc||rn(!1),lc.isCombineEnabled===hd&&rn(!1);var yu=(0,kt.Z)({},lc,{isCombineEnabled:hd});return hu(ve,yu,!0)}if(Se.type==="MOVE_BY_WINDOW_SCROLL"){if(ve.phase==="DROP_PENDING"||ve.phase==="DROP_ANIMATING")return ve;od(ve)||rn(!1),ve.isWindowScrollAllowed||rn(!1);var Rh=Se.payload.newScroll;if(Ht(ve.viewport.scroll.current,Rh))return Qs(ve);var Mu=ll(ve.viewport,Rh);return zl(ve)?ni({state:ve,viewport:Mu}):kd({state:ve,viewport:Mu})}if(Se.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!od(ve))return ve;var Sh=Se.payload.maxScroll;if(Ht(Sh,ve.viewport.scroll.max))return ve;var ng=(0,kt.Z)({},ve.viewport,{scroll:(0,kt.Z)({},ve.viewport.scroll,{max:Sh})});return(0,kt.Z)({phase:"DRAGGING"},ve,{viewport:ng})}if(Se.type==="MOVE_UP"||Se.type==="MOVE_DOWN"||Se.type==="MOVE_LEFT"||Se.type==="MOVE_RIGHT"){if(ve.phase==="COLLECTING"||ve.phase==="DROP_PENDING")return ve;ve.phase!=="DRAGGING"&&rn(!1);var xh=Zh({state:ve,type:Se.type});return xh?kd({state:ve,impact:xh.impact,clientSelection:xh.clientSelection,scrollJumpRequest:xh.scrollJumpRequest}):ve}if(Se.type==="DROP_PENDING"){var Xo=Se.payload.reason;ve.phase!=="COLLECTING"&&rn(!1);var Lf=(0,kt.Z)({phase:"DROP_PENDING"},ve,{phase:"DROP_PENDING",isWaiting:!0,reason:Xo});return Lf}if(Se.type==="DROP_ANIMATE"){var Kg=Se.payload,Eh=Kg.completed,$h=Kg.dropDuration,vf=Kg.newHomeClientOffset;ve.phase==="DRAGGING"||ve.phase==="DROP_PENDING"||rn(!1);var fd={phase:"DROP_ANIMATING",completed:Eh,dropDuration:$h,newHomeClientOffset:vf,dimensions:ve.dimensions};return fd}if(Se.type==="DROP_COMPLETE"){var Dg=Se.payload.completed;return{phase:"IDLE",completed:Dg,shouldFlush:!1}}return ve},ze=function(Se){return{type:"BEFORE_INITIAL_CAPTURE",payload:Se}},Ye=function(Se){return{type:"LIFT",payload:Se}},Qe=function(Se){return{type:"INITIAL_PUBLISH",payload:Se}},Nt=function(Se){return{type:"PUBLISH_WHILE_DRAGGING",payload:Se}},Wt=function(){return{type:"COLLECTION_STARTING",payload:null}},vn=function(Se){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Se}},wn=function(Se){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Se}},Gn=function(Se){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Se}},Jn=function(Se){return{type:"MOVE",payload:Se}},gi=function(Se){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Se}},Ki=function(Se){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Se}},hi=function(){return{type:"MOVE_UP",payload:null}},ji=function(){return{type:"MOVE_DOWN",payload:null}},si=function(){return{type:"MOVE_RIGHT",payload:null}},dr=function(){return{type:"MOVE_LEFT",payload:null}},Vn=function(){return{type:"FLUSH",payload:null}},zi=function(Se){return{type:"DROP_ANIMATE",payload:Se}},lr=function(Se){return{type:"DROP_COMPLETE",payload:Se}},oo=function(Se){return{type:"DROP",payload:Se}},Yr=function(Se){return{type:"DROP_PENDING",payload:Se}},lo=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function co(ve){if(!(ve.length<=1)){for(var Se=ve.map(function(pt){return pt.descriptor.index}),be={},je=1;je<Se.length;je++){var et=Se[je],$e=Se[je-1];et!==$e+1&&(be[et]=!0)}if(Object.keys(be).length)var ct=Se.map(function(pt){var Jt=!!be[pt];return Jt?"[\u{1F525}"+pt+"]":""+pt}).join(", ")}}function Pr(ve,Se){if(0)var be}var $i=function(ve){return function(Se){var be=Se.getState,je=Se.dispatch;return function(et){return function($e){if($e.type!=="LIFT"){et($e);return}var ct=$e.payload,pt=ct.id,Jt=ct.clientSelection,Cn=ct.movementMode,cn=be();cn.phase==="DROP_ANIMATING"&&je(lr({completed:cn.completed})),be().phase!=="IDLE"&&rn(!1),je(Vn()),je(ze({draggableId:pt,movementMode:Cn}));var an={shouldPublishImmediately:Cn==="SNAP"},on={draggableId:pt,scrollOptions:an},On=ve.startPublishing(on),Pi=On.critical,br=On.dimensions,Nr=On.viewport;Pr(Pi,br),je(Qe({critical:Pi,dimensions:br,clientSelection:Jt,movementMode:Cn,viewport:Nr}))}}}},Ea=function(ve){return function(){return function(Se){return function(be){be.type==="INITIAL_PUBLISH"&&ve.dragging(),be.type==="DROP_ANIMATE"&&ve.dropping(be.payload.completed.result.reason),(be.type==="FLUSH"||be.type==="DROP_COMPLETE")&&ve.resting(),Se(be)}}}},$o={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Pa={opacity:{drop:0,combining:.7},scale:{drop:.75}},$a={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ha=$a.outOfTheWay+"s "+$o.outOfTheWay,ja={fluid:"opacity "+Ha,snap:"transform "+Ha+", opacity "+Ha,drop:function(Se){var be=Se+"s "+$o.drop;return"transform "+be+", opacity "+be},outOfTheWay:"transform "+Ha,placeholder:"height "+Ha+", width "+Ha+", margin "+Ha},js=function(Se){return Ht(Se,uo)?null:"translate("+Se.x+"px, "+Se.y+"px)"},Za={moveTo:js,drop:function(Se,be){var je=js(Se);return je?be?je+" scale("+Pa.scale.drop+")":je:null}},ma=$a.minDropTime,es=$a.maxDropTime,zs=es-ma,xs=1500,Cs=.6,Vs=function(ve){var Se=ve.current,be=ve.destination,je=ve.reason,et=li(Se,be);if(et<=0)return ma;if(et>=xs)return es;var $e=et/xs,ct=ma+zs*$e,pt=je==="CANCEL"?ct*Cs:ct;return Number(pt.toFixed(2))},hl=function(ve){var Se=ve.impact,be=ve.draggable,je=ve.dimensions,et=ve.viewport,$e=ve.afterCritical,ct=je.draggables,pt=je.droppables,Jt=ul(Se),Cn=Jt?pt[Jt]:null,cn=pt[be.descriptor.droppableId],an=At({impact:Se,draggable:be,draggables:ct,afterCritical:$e,droppable:Cn||cn,viewport:et}),on=Bt(an,be.client.borderBox.center);return on},Fl=function(ve){var Se=ve.draggables,be=ve.reason,je=ve.lastImpact,et=ve.home,$e=ve.viewport,ct=ve.onLiftImpact;if(!je.at||be!=="DROP"){var pt=Nd({draggables:Se,impact:ct,destination:et,viewport:$e,forceShouldAnimate:!0});return{impact:pt,didDropInsideDroppable:!1}}if(je.at.type==="REORDER")return{impact:je,didDropInsideDroppable:!0};var Jt=(0,kt.Z)({},je,{displaced:Ro});return{impact:Jt,didDropInsideDroppable:!0}},xu=function(ve){var Se=ve.getState,be=ve.dispatch;return function(je){return function(et){if(et.type!=="DROP"){je(et);return}var $e=Se(),ct=et.payload.reason;if($e.phase==="COLLECTING"){be(Yr({reason:ct}));return}if($e.phase!=="IDLE"){var pt=$e.phase==="DROP_PENDING"&&$e.isWaiting;pt&&rn(!1),$e.phase==="DRAGGING"||$e.phase==="DROP_PENDING"||rn(!1);var Jt=$e.critical,Cn=$e.dimensions,cn=Cn.draggables[$e.critical.draggable.id],an=Fl({reason:ct,lastImpact:$e.impact,afterCritical:$e.afterCritical,onLiftImpact:$e.onLiftImpact,home:$e.dimensions.droppables[$e.critical.droppable.id],viewport:$e.viewport,draggables:$e.dimensions.draggables}),on=an.impact,On=an.didDropInsideDroppable,Pi=On?rr(on):null,br=On?Xi(on):null,Nr={index:Jt.draggable.index,droppableId:Jt.droppable.id},Xr={draggableId:cn.descriptor.id,type:cn.descriptor.type,source:Nr,reason:ct,mode:$e.movementMode,destination:Pi,combine:br},Ao=hl({impact:on,draggable:cn,dimensions:Cn,viewport:$e.viewport,afterCritical:$e.afterCritical}),Vo={critical:$e.critical,afterCritical:$e.afterCritical,result:Xr,impact:on},Io=!Ht($e.current.client.offset,Ao)||!!Xr.combine;if(!Io){be(lr({completed:Vo}));return}var fa=Vs({current:$e.current.client.offset,destination:Ao,reason:ct}),ls={newHomeClientOffset:Ao,dropDuration:fa,completed:Vo};be(zi(ls))}}}},qs=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Eu(ve){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(be){be.target!==window&&be.target!==window.document||ve()}}}function Ba(ve){var Se=ve.onWindowScroll;function be(){Se(qs())}var je=ln(be),et=Eu(je),$e=Ot;function ct(){return $e!==Ot}function pt(){ct()&&rn(!1),$e=xn(window,[et])}function Jt(){ct()||rn(!1),je.cancel(),$e(),$e=Ot}return{start:pt,stop:Jt,isActive:ct}}var al=function(Se){return Se.type==="DROP_COMPLETE"||Se.type==="DROP_ANIMATE"||Se.type==="FLUSH"},va=function(ve){var Se=Ba({onWindowScroll:function(je){ve.dispatch(gi({newScroll:je}))}});return function(be){return function(je){!Se.isActive()&&je.type==="INITIAL_PUBLISH"&&Se.start(),Se.isActive()&&al(je)&&Se.stop(),be(je)}}},As=function(ve){var Se=!1,be=!1,je=setTimeout(function(){be=!0}),et=function(ct){Se||be||(Se=!0,ve(ct),clearTimeout(je))};return et.wasCalled=function(){return Se},et},Es=function(){var ve=[],Se=function($e){var ct=Gi(ve,function(Cn){return Cn.timerId===$e});ct===-1&&rn(!1);var pt=ve.splice(ct,1),Jt=pt[0];Jt.callback()},be=function($e){var ct=setTimeout(function(){return Se(ct)}),pt={timerId:ct,callback:$e};ve.push(pt)},je=function(){if(ve.length){var $e=[].concat(ve);ve.length=0,$e.forEach(function(ct){clearTimeout(ct.timerId),ct.callback()})}};return{add:be,flush:je}},_s=function(Se,be){return Se==null&&be==null?!0:Se==null||be==null?!1:Se.droppableId===be.droppableId&&Se.index===be.index},Gu=function(Se,be){return Se==null&&be==null?!0:Se==null||be==null?!1:Se.draggableId===be.draggableId&&Se.droppableId===be.droppableId},ea=function(Se,be){if(Se===be)return!0;var je=Se.draggable.id===be.draggable.id&&Se.draggable.droppableId===be.draggable.droppableId&&Se.draggable.type===be.draggable.type&&Se.draggable.index===be.draggable.index,et=Se.droppable.id===be.droppable.id&&Se.droppable.type===be.droppable.type;return je&&et},da=function(Se,be){Dc(),be(),Lc()},vl=function(Se,be){return{draggableId:Se.draggable.id,type:Se.droppable.type,source:{droppableId:Se.droppable.id,index:Se.draggable.index},mode:be}},Yl=function(Se,be,je,et){if(!Se){je(et(be));return}var $e=As(je),ct={announce:$e};Se(be,ct),$e.wasCalled()||je(et(be))},Ks=function(ve,Se){var be=Es(),je=null,et=function(on,On){je&&rn(!1),da("onBeforeCapture",function(){var Pi=ve().onBeforeCapture;if(Pi){var br={draggableId:on,mode:On};Pi(br)}})},$e=function(on,On){je&&rn(!1),da("onBeforeDragStart",function(){var Pi=ve().onBeforeDragStart;Pi&&Pi(vl(on,On))})},ct=function(on,On){je&&rn(!1);var Pi=vl(on,On);je={mode:On,lastCritical:on,lastLocation:Pi.source,lastCombine:null},be.add(function(){da("onDragStart",function(){return Yl(ve().onDragStart,Pi,Se,Aa.onDragStart)})})},pt=function(on,On){var Pi=rr(On),br=Xi(On);je||rn(!1);var Nr=!ea(on,je.lastCritical);Nr&&(je.lastCritical=on);var Xr=!_s(je.lastLocation,Pi);Xr&&(je.lastLocation=Pi);var Ao=!Gu(je.lastCombine,br);if(Ao&&(je.lastCombine=br),!(!Nr&&!Xr&&!Ao)){var Vo=(0,kt.Z)({},vl(on,je.mode),{combine:br,destination:Pi});be.add(function(){da("onDragUpdate",function(){return Yl(ve().onDragUpdate,Vo,Se,Aa.onDragUpdate)})})}},Jt=function(){je||rn(!1),be.flush()},Cn=function(on){je||rn(!1),je=null,da("onDragEnd",function(){return Yl(ve().onDragEnd,on,Se,Aa.onDragEnd)})},cn=function(){if(je){var on=(0,kt.Z)({},vl(je.lastCritical,je.mode),{combine:null,destination:null,reason:"CANCEL"});Cn(on)}};return{beforeCapture:et,beforeStart:$e,start:ct,update:pt,flush:Jt,drop:Cn,abort:cn}},yl=function(ve,Se){var be=Ks(ve,Se);return function(je){return function(et){return function($e){if($e.type==="BEFORE_INITIAL_CAPTURE"){be.beforeCapture($e.payload.draggableId,$e.payload.movementMode);return}if($e.type==="INITIAL_PUBLISH"){var ct=$e.payload.critical;be.beforeStart(ct,$e.payload.movementMode),et($e),be.start(ct,$e.payload.movementMode);return}if($e.type==="DROP_COMPLETE"){var pt=$e.payload.completed.result;be.flush(),et($e),be.drop(pt);return}if(et($e),$e.type==="FLUSH"){be.abort();return}var Jt=je.getState();Jt.phase==="DRAGGING"&&be.update(Jt.critical,Jt.impact)}}}},Fa=function(ve){return function(Se){return function(be){if(be.type!=="DROP_ANIMATION_FINISHED"){Se(be);return}var je=ve.getState();je.phase!=="DROP_ANIMATING"&&rn(!1),ve.dispatch(lr({completed:je.completed}))}}},Xl=function(ve){var Se=null,be=null;function je(){be&&(cancelAnimationFrame(be),be=null),Se&&(Se(),Se=null)}return function(et){return function($e){if(($e.type==="FLUSH"||$e.type==="DROP_COMPLETE"||$e.type==="DROP_ANIMATION_FINISHED")&&je(),et($e),$e.type==="DROP_ANIMATE"){var ct={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Jt=ve.getState();Jt.phase==="DROP_ANIMATING"&&ve.dispatch(lo())}};be=requestAnimationFrame(function(){be=null,Se=xn(window,[ct])})}}}},Iu=function(ve){return function(){return function(Se){return function(be){(be.type==="DROP_COMPLETE"||be.type==="FLUSH"||be.type==="DROP_ANIMATE")&&ve.stopPublishing(),Se(be)}}}},iu=function(ve){var Se=!1;return function(){return function(be){return function(je){if(je.type==="INITIAL_PUBLISH"){Se=!0,ve.tryRecordFocus(je.payload.critical.draggable.id),be(je),ve.tryRestoreFocusRecorded();return}if(be(je),!!Se){if(je.type==="FLUSH"){Se=!1,ve.tryRestoreFocusRecorded();return}if(je.type==="DROP_COMPLETE"){Se=!1;var et=je.payload.completed.result;et.combine&&ve.tryShiftRecord(et.draggableId,et.combine.draggableId),ve.tryRestoreFocusRecorded()}}}}}},qu=function(Se){return Se.type==="DROP_COMPLETE"||Se.type==="DROP_ANIMATE"||Se.type==="FLUSH"},ad=function(ve){return function(Se){return function(be){return function(je){if(qu(je)){ve.stop(),be(je);return}if(je.type==="INITIAL_PUBLISH"){be(je);var et=Se.getState();et.phase!=="DRAGGING"&&rn(!1),ve.start(et);return}be(je),ve.scroll(Se.getState())}}}},ya=function(ve){return function(Se){return function(be){if(Se(be),be.type==="PUBLISH_WHILE_DRAGGING"){var je=ve.getState();je.phase==="DROP_PENDING"&&(je.isWaiting||ve.dispatch(oo({reason:je.reason})))}}}},Ns=Dt.qC,Ru=function(ve){var Se=ve.dimensionMarshal,be=ve.focusMarshal,je=ve.styleMarshal,et=ve.getResponders,$e=ve.announce,ct=ve.autoScroller;return(0,Dt.MT)(Vl,Ns((0,Dt.md)(Ea(je),Iu(Se),$i(Se),xu,Fa,Xl,ya,ad(ct),va,iu(be),yl(et,$e))))},fl=function(){return{additions:{},removals:{},modified:{}}};function $u(ve){var Se=ve.registry,be=ve.callbacks,je=fl(),et=null,$e=function(){et||(be.collectionStarting(),et=requestAnimationFrame(function(){et=null,Dc();var cn=je,an=cn.additions,on=cn.removals,On=cn.modified,Pi=Object.keys(an).map(function(Xr){return Se.draggable.getById(Xr).getDimension(uo)}).sort(function(Xr,Ao){return Xr.descriptor.index-Ao.descriptor.index}),br=Object.keys(On).map(function(Xr){var Ao=Se.droppable.getById(Xr),Vo=Ao.callbacks.getScrollWhileDragging();return{droppableId:Xr,scroll:Vo}}),Nr={additions:Pi,removals:Object.keys(on),modified:br};je=fl(),Lc(),be.publish(Nr)}))},ct=function(cn){var an=cn.descriptor.id;je.additions[an]=cn,je.modified[cn.descriptor.droppableId]=!0,je.removals[an]&&delete je.removals[an],$e()},pt=function(cn){var an=cn.descriptor;je.removals[an.id]=!0,je.modified[an.droppableId]=!0,je.additions[an.id]&&delete je.additions[an.id],$e()},Jt=function(){et&&(cancelAnimationFrame(et),et=null,je=fl())};return{add:ct,remove:pt,stop:Jt}}var Gl=function(ve){var Se=ve.scrollHeight,be=ve.scrollWidth,je=ve.height,et=ve.width,$e=Bt({x:be,y:Se},{x:et,y:je}),ct={x:Math.max(0,$e.x),y:Math.max(0,$e.y)};return ct},Ds=function(){var ve=document.documentElement;return ve||rn(!1),ve},Ts=function(){var ve=Ds(),Se=Gl({scrollHeight:ve.scrollHeight,scrollWidth:ve.scrollWidth,width:ve.clientWidth,height:ve.clientHeight});return Se},Js=function(){var ve=qs(),Se=Ts(),be=ve.y,je=ve.x,et=Ds(),$e=et.clientWidth,ct=et.clientHeight,pt=je+$e,Jt=be+ct,Cn=io({top:be,left:je,right:pt,bottom:Jt}),cn={frame:Cn,scroll:{initial:ve,current:ve,max:Se,diff:{value:uo,displacement:uo}}};return cn},gl=function(ve){var Se=ve.critical,be=ve.scrollOptions,je=ve.registry;Dc();var et=Js(),$e=et.scroll.current,ct=Se.droppable,pt=je.droppable.getAllByType(ct.type).map(function(an){return an.callbacks.getDimensionAndWatchScroll($e,be)}),Jt=je.draggable.getAllByType(Se.draggable.type).map(function(an){return an.getDimension($e)}),Cn={draggables:ti(Jt),droppables:Fn(pt)};Lc();var cn={dimensions:Cn,critical:Se,viewport:et};return cn};function Ll(ve,Se,be){if(be.descriptor.id===Se.id||be.descriptor.type!==Se.type)return!1;var je=ve.droppable.getById(be.descriptor.droppableId);return je.descriptor.mode==="virtual"}var Xa=function(ve,Se){var be=null,je=$u({callbacks:{publish:Se.publishWhileDragging,collectionStarting:Se.collectionStarting},registry:ve}),et=function(On,Pi){ve.droppable.exists(On)||rn(!1),be&&Se.updateDroppableIsEnabled({id:On,isEnabled:Pi})},$e=function(On,Pi){be&&(ve.droppable.exists(On)||rn(!1),Se.updateDroppableIsCombineEnabled({id:On,isCombineEnabled:Pi}))},ct=function(On,Pi){be&&(ve.droppable.exists(On)||rn(!1),Se.updateDroppableScroll({id:On,newScroll:Pi}))},pt=function(On,Pi){be&&ve.droppable.getById(On).callbacks.scroll(Pi)},Jt=function(){if(be){je.stop();var On=be.critical.droppable;ve.droppable.getAllByType(On.type).forEach(function(Pi){return Pi.callbacks.dragStopped()}),be.unsubscribe(),be=null}},Cn=function(On){be||rn(!1);var Pi=be.critical.draggable;On.type==="ADDITION"&&Ll(ve,Pi,On.value)&&je.add(On.value),On.type==="REMOVAL"&&Ll(ve,Pi,On.value)&&je.remove(On.value)},cn=function(On){be&&rn(!1);var Pi=ve.draggable.getById(On.draggableId),br=ve.droppable.getById(Pi.descriptor.droppableId),Nr={draggable:Pi.descriptor,droppable:br.descriptor},Xr=ve.subscribe(Cn);return be={critical:Nr,unsubscribe:Xr},gl({critical:Nr,registry:ve,scrollOptions:On.scrollOptions})},an={updateDroppableIsEnabled:et,updateDroppableIsCombineEnabled:$e,scrollDroppable:pt,updateDroppableScroll:ct,startPublishing:cn,stopPublishing:Jt};return an},Il=function(ve,Se){return ve.phase==="IDLE"?!0:ve.phase!=="DROP_ANIMATING"||ve.completed.result.draggableId===Se?!1:ve.completed.result.reason==="DROP"},ru=function(ve){window.scrollBy(ve.x,ve.y)},Sl=Un(function(ve){return Ue(ve).filter(function(Se){return!(!Se.isEnabled||!Se.frame)})}),ou=function(Se,be){var je=Er(Sl(be),function(et){return et.frame||rn(!1),yd(et.frame.pageMarginBox)(Se)});return je},Mc=function(ve){var Se=ve.center,be=ve.destination,je=ve.droppables;if(be){var et=je[be];return et.frame?et:null}var $e=ou(Se,je);return $e},Ls={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Se){return Math.pow(Se,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Pu=function(ve,Se){var be=ve[Se.size]*Ls.startFromPercentage,je=ve[Se.size]*Ls.maxScrollAtPercentage,et={startScrollingFrom:be,maxScrollValueAt:je};return et},aa=function(ve){var Se=ve.startOfRange,be=ve.endOfRange,je=ve.current,et=be-Se;if(et===0)return 0;var $e=je-Se,ct=$e/et;return ct},Fs=1,Zu=function(ve,Se){if(ve>Se.startScrollingFrom)return 0;if(ve<=Se.maxScrollValueAt)return Ls.maxPixelScroll;if(ve===Se.startScrollingFrom)return Fs;var be=aa({startOfRange:Se.maxScrollValueAt,endOfRange:Se.startScrollingFrom,current:ve}),je=1-be,et=Ls.maxPixelScroll*Ls.ease(je);return Math.ceil(et)},Uu=Ls.durationDampening.accelerateAt,au=Ls.durationDampening.stopDampeningAt,sd=function(ve,Se){var be=Se,je=au,et=Date.now(),$e=et-be;if($e>=au)return ve;if($e<Uu)return Fs;var ct=aa({startOfRange:Uu,endOfRange:je,current:$e}),pt=ve*Ls.ease(ct);return Math.ceil(pt)},Du=function(ve){var Se=ve.distanceToEdge,be=ve.thresholds,je=ve.dragStartTime,et=ve.shouldUseTimeDampening,$e=Zu(Se,be);return $e===0?0:et?Math.max(sd($e,je),Fs):$e},Yd=function(ve){var Se=ve.container,be=ve.distanceToEdges,je=ve.dragStartTime,et=ve.axis,$e=ve.shouldUseTimeDampening,ct=Pu(Se,et),pt=be[et.end]<be[et.start];return pt?Du({distanceToEdge:be[et.end],thresholds:ct,dragStartTime:je,shouldUseTimeDampening:$e}):-1*Du({distanceToEdge:be[et.start],thresholds:ct,dragStartTime:je,shouldUseTimeDampening:$e})},pc=function(ve){var Se=ve.container,be=ve.subject,je=ve.proposedScroll,et=be.height>Se.height,$e=be.width>Se.width;return!$e&&!et?je:$e&&et?null:{x:$e?0:je.x,y:et?0:je.y}},La=cr(function(ve){return ve===0?0:ve}),Po=function(ve){var Se=ve.dragStartTime,be=ve.container,je=ve.subject,et=ve.center,$e=ve.shouldUseTimeDampening,ct={top:et.y-be.top,right:be.right-et.x,bottom:be.bottom-et.y,left:et.x-be.left},pt=Yd({container:be,distanceToEdges:ct,dragStartTime:Se,axis:oi,shouldUseTimeDampening:$e}),Jt=Yd({container:be,distanceToEdges:ct,dragStartTime:Se,axis:Na,shouldUseTimeDampening:$e}),Cn=La({x:Jt,y:pt});if(Ht(Cn,uo))return null;var cn=pc({container:be,subject:je,proposedScroll:Cn});return cn?Ht(cn,uo)?null:cn:null},Va=cr(function(ve){return ve===0?0:ve>0?1:-1}),sl=function(){var ve=function(be,je){return be<0?be:be>je?be-je:0};return function(Se){var be=Se.current,je=Se.max,et=Se.change,$e=Ir(be,et),ct={x:ve($e.x,je.x),y:ve($e.y,je.y)};return Ht(ct,uo)?null:ct}}(),mc=function(Se){var be=Se.max,je=Se.current,et=Se.change,$e={x:Math.max(je.x,be.x),y:Math.max(je.y,be.y)},ct=Va(et),pt=sl({max:$e,current:je,change:ct});return!pt||ct.x!==0&&pt.x===0||ct.y!==0&&pt.y===0},kc=function(Se,be){return mc({current:Se.scroll.current,max:Se.scroll.max,change:be})},Hs=function(Se,be){if(!kc(Se,be))return null;var je=Se.scroll.max,et=Se.scroll.current;return sl({current:et,max:je,change:be})},Nc=function(Se,be){var je=Se.frame;return je?mc({current:je.scroll.current,max:je.scroll.max,change:be}):!1},su=function(Se,be){var je=Se.frame;return!je||!Nc(Se,be)?null:sl({current:je.scroll.current,max:je.scroll.max,change:be})},xl=function(ve){var Se=ve.viewport,be=ve.subject,je=ve.center,et=ve.dragStartTime,$e=ve.shouldUseTimeDampening,ct=Po({dragStartTime:et,container:Se.frame,subject:be,center:je,shouldUseTimeDampening:$e});return ct&&kc(Se,ct)?ct:null},ba=function(ve){var Se=ve.droppable,be=ve.subject,je=ve.center,et=ve.dragStartTime,$e=ve.shouldUseTimeDampening,ct=Se.frame;if(!ct)return null;var pt=Po({dragStartTime:et,container:ct.pageMarginBox,subject:be,center:je,shouldUseTimeDampening:$e});return pt&&Nc(Se,pt)?pt:null},ec=function(ve){var Se=ve.state,be=ve.dragStartTime,je=ve.shouldUseTimeDampening,et=ve.scrollWindow,$e=ve.scrollDroppable,ct=Se.current.page.borderBoxCenter,pt=Se.dimensions.draggables[Se.critical.draggable.id],Jt=pt.page.marginBox;if(Se.isWindowScrollAllowed){var Cn=Se.viewport,cn=xl({dragStartTime:be,viewport:Cn,subject:Jt,center:ct,shouldUseTimeDampening:je});if(cn){et(cn);return}}var an=Mc({center:ct,destination:ul(Se.impact),droppables:Se.dimensions.droppables});if(an){var on=ba({dragStartTime:be,droppable:an,subject:Jt,center:ct,shouldUseTimeDampening:je});on&&$e(an.descriptor.id,on)}},Ku=function(ve){var Se=ve.scrollWindow,be=ve.scrollDroppable,je=ln(Se),et=ln(be),$e=null,ct=function(cn){$e||rn(!1);var an=$e,on=an.shouldUseTimeDampening,On=an.dragStartTime;ec({state:cn,scrollWindow:je,scrollDroppable:et,dragStartTime:On,shouldUseTimeDampening:on})},pt=function(cn){Dc(),$e&&rn(!1);var an=Date.now(),on=!1,On=function(){on=!0};ec({state:cn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:On,scrollDroppable:On}),$e={dragStartTime:an,shouldUseTimeDampening:on},Lc(),on&&ct(cn)},Jt=function(){$e&&(je.cancel(),et.cancel(),$e=null)};return{start:pt,stop:Jt,scroll:ct}},Td=function(ve){var Se=ve.move,be=ve.scrollDroppable,je=ve.scrollWindow,et=function(Cn,cn){var an=Ir(Cn.current.client.selection,cn);Se({client:an})},$e=function(Cn,cn){if(!Nc(Cn,cn))return cn;var an=su(Cn,cn);if(!an)return be(Cn.descriptor.id,cn),null;var on=Bt(cn,an);be(Cn.descriptor.id,on);var On=Bt(cn,on);return On},ct=function(Cn,cn,an){if(!Cn||!kc(cn,an))return an;var on=Hs(cn,an);if(!on)return je(an),null;var On=Bt(an,on);je(On);var Pi=Bt(an,On);return Pi},pt=function(Cn){var cn=Cn.scrollJumpRequest;if(cn){var an=ul(Cn.impact);an||rn(!1);var on=$e(Cn.dimensions.droppables[an],cn);if(on){var On=Cn.viewport,Pi=ct(Cn.isWindowScrollAllowed,On,on);Pi&&et(Cn,Pi)}}};return pt},Xh=function(ve){var Se=ve.scrollDroppable,be=ve.scrollWindow,je=ve.move,et=Ku({scrollWindow:be,scrollDroppable:Se}),$e=Td({move:je,scrollWindow:be,scrollDroppable:Se}),ct=function(Cn){if(Cn.phase==="DRAGGING"){if(Cn.movementMode==="FLUID"){et.scroll(Cn);return}Cn.scrollJumpRequest&&$e(Cn)}},pt={scroll:ct,start:et.start,stop:et.stop};return pt},tc="data-rbd",nc=function(){var ve=tc+"-drag-handle";return{base:ve,draggableId:ve+"-draggable-id",contextId:ve+"-context-id"}}(),qc=function(){var ve=tc+"-draggable";return{base:ve,contextId:ve+"-context-id",id:ve+"-id"}}(),Xd=function(){var ve=tc+"-droppable";return{base:ve,contextId:ve+"-context-id",id:ve+"-id"}}(),fu={contextId:tc+"-scroll-container-context-id"},Vc=function(Se){return function(be){return"["+be+'="'+Se+'"]'}},Ua=function(Se,be){return Se.map(function(je){var et=je.styles[be];return et?je.selector+" { "+et+" }":""}).join(" ")},ra="pointer-events: none;",gu=function(ve){var Se=Vc(ve),be=function(){var pt=`
|
|
cursor: -webkit-grab;
|
|
cursor: grab;
|
|
`;return{selector:Se(nc.contextId),styles:{always:`
|
|
-webkit-touch-callout: none;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
touch-action: manipulation;
|
|
`,resting:pt,dragging:ra,dropAnimating:pt}}}(),je=function(){var pt=`
|
|
transition: `+ja.outOfTheWay+`;
|
|
`;return{selector:Se(qc.contextId),styles:{dragging:pt,dropAnimating:pt,userCancel:pt}}}(),et={selector:Se(Xd.contextId),styles:{always:"overflow-anchor: none;"}},$e={selector:"body",styles:{dragging:`
|
|
cursor: grabbing;
|
|
cursor: -webkit-grabbing;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
overflow-anchor: none;
|
|
`}},ct=[je,be,et,$e];return{always:Ua(ct,"always"),resting:Ua(ct,"resting"),dragging:Ua(ct,"dragging"),dropAnimating:Ua(ct,"dropAnimating"),userCancel:Ua(ct,"userCancel")}},Gs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?ce.useLayoutEffect:ce.useEffect,Jd=function(){var Se=document.querySelector("head");return Se||rn(!1),Se},fh=function(Se){var be=document.createElement("style");return Se&&be.setAttribute("nonce",Se),be.type="text/css",be};function Rl(ve,Se){var be=Bn(function(){return gu(ve)},[ve]),je=(0,ce.useRef)(null),et=(0,ce.useRef)(null),$e=In(Un(function(an){var on=et.current;on||rn(!1),on.textContent=an}),[]),ct=In(function(an){var on=je.current;on||rn(!1),on.textContent=an},[]);Gs(function(){!je.current&&!et.current||rn(!1);var an=fh(Se),on=fh(Se);return je.current=an,et.current=on,an.setAttribute(tc+"-always",ve),on.setAttribute(tc+"-dynamic",ve),Jd().appendChild(an),Jd().appendChild(on),ct(be.always),$e(be.resting),function(){var On=function(br){var Nr=br.current;Nr||rn(!1),Jd().removeChild(Nr),br.current=null};On(je),On(et)}},[Se,ct,$e,be.always,be.resting,ve]);var pt=In(function(){return $e(be.dragging)},[$e,be.dragging]),Jt=In(function(an){if(an==="DROP"){$e(be.dropAnimating);return}$e(be.userCancel)},[$e,be.dropAnimating,be.userCancel]),Cn=In(function(){et.current&&$e(be.resting)},[$e,be.resting]),cn=Bn(function(){return{dragging:pt,dropping:Jt,resting:Cn}},[pt,Jt,Cn]);return cn}var ld=function(ve){return ve&&ve.ownerDocument?ve.ownerDocument.defaultView:window};function ic(ve){return ve instanceof ld(ve).HTMLElement}function Od(ve,Se){var be="["+nc.contextId+'="'+ve+'"]',je=ro(document.querySelectorAll(be));if(!je.length)return null;var et=Er(je,function($e){return $e.getAttribute(nc.draggableId)===Se});return!et||!ic(et)?null:et}function Tc(ve){var Se=(0,ce.useRef)({}),be=(0,ce.useRef)(null),je=(0,ce.useRef)(null),et=(0,ce.useRef)(!1),$e=In(function(on,On){var Pi={id:on,focus:On};return Se.current[on]=Pi,function(){var Nr=Se.current,Xr=Nr[on];Xr!==Pi&&delete Nr[on]}},[]),ct=In(function(on){var On=Od(ve,on);On&&On!==document.activeElement&&On.focus()},[ve]),pt=In(function(on,On){be.current===on&&(be.current=On)},[]),Jt=In(function(){je.current||et.current&&(je.current=requestAnimationFrame(function(){je.current=null;var on=be.current;on&&ct(on)}))},[ct]),Cn=In(function(on){be.current=null;var On=document.activeElement;On&&On.getAttribute(nc.draggableId)===on&&(be.current=on)},[]);Gs(function(){return et.current=!0,function(){et.current=!1;var on=je.current;on&&cancelAnimationFrame(on)}},[]);var cn=Bn(function(){return{register:$e,tryRecordFocus:Cn,tryRestoreFocusRecorded:Jt,tryShiftRecord:pt}},[$e,Cn,Jt,pt]);return cn}function Jh(){var ve={draggables:{},droppables:{}},Se=[];function be(an){return Se.push(an),function(){var On=Se.indexOf(an);On!==-1&&Se.splice(On,1)}}function je(an){Se.length&&Se.forEach(function(on){return on(an)})}function et(an){return ve.draggables[an]||null}function $e(an){var on=et(an);return on||rn(!1),on}var ct={register:function(on){ve.draggables[on.descriptor.id]=on,je({type:"ADDITION",value:on})},update:function(on,On){var Pi=ve.draggables[On.descriptor.id];Pi&&Pi.uniqueId===on.uniqueId&&(delete ve.draggables[On.descriptor.id],ve.draggables[on.descriptor.id]=on)},unregister:function(on){var On=on.descriptor.id,Pi=et(On);Pi&&on.uniqueId===Pi.uniqueId&&(delete ve.draggables[On],je({type:"REMOVAL",value:on}))},getById:$e,findById:et,exists:function(on){return!!et(on)},getAllByType:function(on){return Zr(ve.draggables).filter(function(On){return On.descriptor.type===on})}};function pt(an){return ve.droppables[an]||null}function Jt(an){var on=pt(an);return on||rn(!1),on}var Cn={register:function(on){ve.droppables[on.descriptor.id]=on},unregister:function(on){var On=pt(on.descriptor.id);On&&on.uniqueId===On.uniqueId&&delete ve.droppables[on.descriptor.id]},getById:Jt,findById:pt,exists:function(on){return!!pt(on)},getAllByType:function(on){return Zr(ve.droppables).filter(function(On){return On.descriptor.type===on})}};function cn(){ve.draggables={},ve.droppables={},Se.length=0}return{draggable:ct,droppable:Cn,subscribe:be,clean:cn}}function xd(){var ve=Bn(Jh,[]);return(0,ce.useEffect)(function(){return function(){requestAnimationFrame(ve.clean)}},[ve]),ve}var Qh=ce.createContext(null),rc=function(){var ve=document.body;return ve||rn(!1),ve},vc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Mh=function(Se){return"rbd-announcement-"+Se};function Qd(ve){var Se=Bn(function(){return Mh(ve)},[ve]),be=(0,ce.useRef)(null);(0,ce.useEffect)(function(){var $e=document.createElement("div");return be.current=$e,$e.id=Se,$e.setAttribute("aria-live","assertive"),$e.setAttribute("aria-atomic","true"),(0,kt.Z)($e.style,vc),rc().appendChild($e),function(){setTimeout(function(){var Jt=rc();Jt.contains($e)&&Jt.removeChild($e),$e===be.current&&(be.current=null)})}},[Se]);var je=In(function(et){var $e=be.current;if($e){$e.textContent=et;return}},[]);return je}var ud=0,Id={separator:"::"};function bl(){ud=0}function Oc(ve,Se){return Se===void 0&&(Se=Id),Bn(function(){return""+ve+Se.separator+ud++},[Se.separator,ve])}function kh(ve){var Se=ve.contextId,be=ve.uniqueId;return"rbd-hidden-text-"+Se+"-"+be}function nt(ve){var Se=ve.contextId,be=ve.text,je=Oc("hidden-text",{separator:"-"}),et=Bn(function(){return kh({contextId:Se,uniqueId:je})},[je,Se]);return(0,ce.useEffect)(function(){var ct=document.createElement("div");return ct.id=et,ct.textContent=be,ct.style.display="none",rc().appendChild(ct),function(){var Jt=rc();Jt.contains(ct)&&Jt.removeChild(ct)}},[et,be]),et}var ut=ce.createContext(null),Ne={react:"^16.8.5","react-dom":"^16.8.5"},En=/(\d+)\.(\d+)\.(\d+)/,pi=function(Se){var be=En.exec(Se);be==null&&rn(!1);var je=Number(be[1]),et=Number(be[2]),$e=Number(be[3]);return{major:je,minor:et,patch:$e,raw:Se}},er=function(Se,be){return be.major>Se.major?!0:be.major<Se.major?!1:be.minor>Se.minor?!0:be.minor<Se.minor?!1:be.patch>=Se.patch},Qi=function(ve,Se){var be=pi(ve),je=pi(Se);er(be,je)},bi=`
|
|
We expect a html5 doctype: <!doctype html>
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
`,bn=function(ve){var Se=ve.doctype;Se&&(Se.name.toLowerCase(),Se.publicId)};function Li(ve){}function xr(ve,Se){}function wo(){xr(function(){Qi(Ne.react,ce.version),bn(document)},[])}function Lr(ve){var Se=(0,ce.useRef)(ve);return(0,ce.useEffect)(function(){Se.current=ve}),Se}function so(){var ve=null;function Se(){return!!ve}function be(ct){return ct===ve}function je(ct){ve&&rn(!1);var pt={abandon:ct};return ve=pt,pt}function et(){ve||rn(!1),ve=null}function $e(){ve&&(ve.abandon(),et())}return{isClaimed:Se,isActive:be,claim:je,release:et,tryAbandon:$e}}var Wr=9,ga=13,kr=27,mr=32,Zo=33,Yo=34,Co=35,To=36,Ar=37,vr=38,Oo=39,Fr=40,po,xo=(po={},po[ga]=!0,po[Wr]=!0,po),Uo=function(ve){xo[ve.keyCode]&&ve.preventDefault()},Si=function(){var ve="visibilitychange";if(typeof document=="undefined")return ve;var Se=[ve,"ms"+ve,"webkit"+ve,"moz"+ve,"o"+ve],be=Er(Se,function(je){return"on"+je in document});return be||ve}(),fr=0,ms=5;function la(ve,Se){return Math.abs(Se.x-ve.x)>=ms||Math.abs(Se.y-ve.y)>=ms}var Vr={type:"IDLE"};function No(ve){var Se=ve.cancel,be=ve.completed,je=ve.getPhase,et=ve.setPhase;return[{eventName:"mousemove",fn:function(ct){var pt=ct.button,Jt=ct.clientX,Cn=ct.clientY;if(pt===fr){var cn={x:Jt,y:Cn},an=je();if(an.type==="DRAGGING"){ct.preventDefault(),an.actions.move(cn);return}an.type!=="PENDING"&&rn(!1);var on=an.point;if(la(on,cn)){ct.preventDefault();var On=an.actions.fluidLift(cn);et({type:"DRAGGING",actions:On})}}}},{eventName:"mouseup",fn:function(ct){var pt=je();if(pt.type!=="DRAGGING"){Se();return}ct.preventDefault(),pt.actions.drop({shouldBlockNextClick:!0}),be()}},{eventName:"mousedown",fn:function(ct){je().type==="DRAGGING"&&ct.preventDefault(),Se()}},{eventName:"keydown",fn:function(ct){var pt=je();if(pt.type==="PENDING"){Se();return}if(ct.keyCode===kr){ct.preventDefault(),Se();return}Uo(ct)}},{eventName:"resize",fn:Se},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){je().type==="PENDING"&&Se()}},{eventName:"webkitmouseforcedown",fn:function(ct){var pt=je();if(pt.type==="IDLE"&&rn(!1),pt.actions.shouldRespectForcePress()){Se();return}ct.preventDefault()}},{eventName:Si,fn:Se}]}function Wo(ve){var Se=(0,ce.useRef)(Vr),be=(0,ce.useRef)(Ot),je=Bn(function(){return{eventName:"mousedown",fn:function(an){if(!an.defaultPrevented&&an.button===fr&&!(an.ctrlKey||an.metaKey||an.shiftKey||an.altKey)){var on=ve.findClosestDraggableId(an);if(on){var On=ve.tryGetLock(on,ct,{sourceEvent:an});if(On){an.preventDefault();var Pi={x:an.clientX,y:an.clientY};be.current(),Cn(On,Pi)}}}}}},[ve]),et=Bn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(an){if(!an.defaultPrevented){var on=ve.findClosestDraggableId(an);if(on){var On=ve.findOptionsForDraggable(on);On&&(On.shouldRespectForcePress||ve.canGetLock(on)&&an.preventDefault())}}}}},[ve]),$e=In(function(){var an={passive:!1,capture:!0};be.current=xn(window,[et,je],an)},[et,je]),ct=In(function(){var cn=Se.current;cn.type!=="IDLE"&&(Se.current=Vr,be.current(),$e())},[$e]),pt=In(function(){var cn=Se.current;ct(),cn.type==="DRAGGING"&&cn.actions.cancel({shouldBlockNextClick:!0}),cn.type==="PENDING"&&cn.actions.abort()},[ct]),Jt=In(function(){var an={capture:!0,passive:!1},on=No({cancel:pt,completed:ct,getPhase:function(){return Se.current},setPhase:function(Pi){Se.current=Pi}});be.current=xn(window,on,an)},[pt,ct]),Cn=In(function(an,on){Se.current.type!=="IDLE"&&rn(!1),Se.current={type:"PENDING",point:on,actions:an},Jt()},[Jt]);Gs(function(){return $e(),function(){be.current()}},[$e])}var mo;function Sa(){}var Ka=(mo={},mo[Yo]=!0,mo[Zo]=!0,mo[To]=!0,mo[Co]=!0,mo);function ts(ve,Se){function be(){Se(),ve.cancel()}function je(){Se(),ve.drop()}return[{eventName:"keydown",fn:function($e){if($e.keyCode===kr){$e.preventDefault(),be();return}if($e.keyCode===mr){$e.preventDefault(),je();return}if($e.keyCode===Fr){$e.preventDefault(),ve.moveDown();return}if($e.keyCode===vr){$e.preventDefault(),ve.moveUp();return}if($e.keyCode===Oo){$e.preventDefault(),ve.moveRight();return}if($e.keyCode===Ar){$e.preventDefault(),ve.moveLeft();return}if(Ka[$e.keyCode]){$e.preventDefault();return}Uo($e)}},{eventName:"mousedown",fn:be},{eventName:"mouseup",fn:be},{eventName:"click",fn:be},{eventName:"touchstart",fn:be},{eventName:"resize",fn:be},{eventName:"wheel",fn:be,options:{passive:!0}},{eventName:Si,fn:be}]}function as(ve){var Se=(0,ce.useRef)(Sa),be=Bn(function(){return{eventName:"keydown",fn:function($e){if($e.defaultPrevented||$e.keyCode!==mr)return;var ct=ve.findClosestDraggableId($e);if(!ct)return;var pt=ve.tryGetLock(ct,cn,{sourceEvent:$e});if(!pt)return;$e.preventDefault();var Jt=!0,Cn=pt.snapLift();Se.current();function cn(){Jt||rn(!1),Jt=!1,Se.current(),je()}Se.current=xn(window,ts(Cn,cn),{capture:!0,passive:!1})}}},[ve]),je=In(function(){var $e={passive:!1,capture:!0};Se.current=xn(window,[be],$e)},[be]);Gs(function(){return je(),function(){Se.current()}},[je])}var ns={type:"IDLE"},Ur=120,xa=.15;function Ma(ve){var Se=ve.cancel,be=ve.getPhase;return[{eventName:"orientationchange",fn:Se},{eventName:"resize",fn:Se},{eventName:"contextmenu",fn:function(et){et.preventDefault()}},{eventName:"keydown",fn:function(et){if(be().type!=="DRAGGING"){Se();return}et.keyCode===kr&&et.preventDefault(),Se()}},{eventName:Si,fn:Se}]}function Ko(ve){var Se=ve.cancel,be=ve.completed,je=ve.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function($e){var ct=je();if(ct.type!=="DRAGGING"){Se();return}ct.hasMoved=!0;var pt=$e.touches[0],Jt=pt.clientX,Cn=pt.clientY,cn={x:Jt,y:Cn};$e.preventDefault(),ct.actions.move(cn)}},{eventName:"touchend",fn:function($e){var ct=je();if(ct.type!=="DRAGGING"){Se();return}$e.preventDefault(),ct.actions.drop({shouldBlockNextClick:!0}),be()}},{eventName:"touchcancel",fn:function($e){if(je().type!=="DRAGGING"){Se();return}$e.preventDefault(),Se()}},{eventName:"touchforcechange",fn:function($e){var ct=je();ct.type==="IDLE"&&rn(!1);var pt=$e.touches[0];if(pt){var Jt=pt.force>=xa;if(Jt){var Cn=ct.actions.shouldRespectForcePress();if(ct.type==="PENDING"){Cn&&Se();return}if(Cn){if(ct.hasMoved){$e.preventDefault();return}Se();return}$e.preventDefault()}}}},{eventName:Si,fn:Se}]}function Os(ve){var Se=(0,ce.useRef)(ns),be=(0,ce.useRef)(Ot),je=In(function(){return Se.current},[]),et=In(function(On){Se.current=On},[]),$e=Bn(function(){return{eventName:"touchstart",fn:function(On){if(!On.defaultPrevented){var Pi=ve.findClosestDraggableId(On);if(Pi){var br=ve.tryGetLock(Pi,pt,{sourceEvent:On});if(br){var Nr=On.touches[0],Xr=Nr.clientX,Ao=Nr.clientY,Vo={x:Xr,y:Ao};be.current(),an(br,Vo)}}}}}},[ve]),ct=In(function(){var On={capture:!0,passive:!1};be.current=xn(window,[$e],On)},[$e]),pt=In(function(){var on=Se.current;on.type!=="IDLE"&&(on.type==="PENDING"&&clearTimeout(on.longPressTimerId),et(ns),be.current(),ct())},[ct,et]),Jt=In(function(){var on=Se.current;pt(),on.type==="DRAGGING"&&on.actions.cancel({shouldBlockNextClick:!0}),on.type==="PENDING"&&on.actions.abort()},[pt]),Cn=In(function(){var On={capture:!0,passive:!1},Pi={cancel:Jt,completed:pt,getPhase:je},br=xn(window,Ko(Pi),On),Nr=xn(window,Ma(Pi),On);be.current=function(){br(),Nr()}},[Jt,je,pt]),cn=In(function(){var On=je();On.type!=="PENDING"&&rn(!1);var Pi=On.actions.fluidLift(On.point);et({type:"DRAGGING",actions:Pi,hasMoved:!1})},[je,et]),an=In(function(On,Pi){je().type!=="IDLE"&&rn(!1);var br=setTimeout(cn,Ur);et({type:"PENDING",point:Pi,actions:On,longPressTimerId:br}),Cn()},[Cn,je,et,cn]);Gs(function(){return ct(),function(){be.current();var Pi=je();Pi.type==="PENDING"&&(clearTimeout(Pi.longPressTimerId),et(ns))}},[je,ct,et]),Gs(function(){var On=xn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return On},[])}function hs(ve){}var Ys={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Zs(ve,Se){if(Se==null)return!1;var be=!!Ys[Se.tagName.toLowerCase()];if(be)return!0;var je=Se.getAttribute("contenteditable");return je==="true"||je===""?!0:Se===ve?!1:Zs(ve,Se.parentElement)}function Jl(ve,Se){var be=Se.target;return ic(be)?Zs(ve,be):!1}var $r=function(ve){return io(ve.getBoundingClientRect()).center};function Wa(ve){return ve instanceof ld(ve).Element}var Is=function(){var ve="matches";if(typeof document=="undefined")return ve;var Se=[ve,"msMatchesSelector","webkitMatchesSelector"],be=Er(Se,function(je){return je in Element.prototype});return be||ve}();function Hl(ve,Se){return ve==null?null:ve[Is](Se)?ve:Hl(ve.parentElement,Se)}function ha(ve,Se){return ve.closest?ve.closest(Se):Hl(ve,Se)}function ta(ve){return"["+nc.contextId+'="'+ve+'"]'}function qi(ve,Se){var be=Se.target;if(!Wa(be))return null;var je=ta(ve),et=ha(be,je);return!et||!ic(et)?null:et}function is(ve,Se){var be=qi(ve,Se);return be?be.getAttribute(nc.draggableId):null}function bs(ve,Se){var be="["+qc.contextId+'="'+ve+'"]',je=ro(document.querySelectorAll(be)),et=Er(je,function($e){return $e.getAttribute(qc.id)===Se});return!et||!ic(et)?null:et}function ss(ve){ve.preventDefault()}function Do(ve){var Se=ve.expected,be=ve.phase,je=ve.isLockActive,et=ve.shouldWarn;return!(!je()||Se!==be)}function oa(ve){var Se=ve.lockAPI,be=ve.store,je=ve.registry,et=ve.draggableId;if(Se.isClaimed())return!1;var $e=je.draggable.findById(et);return!(!$e||!$e.options.isEnabled||!Il(be.getState(),et))}function Ga(ve){var Se=ve.lockAPI,be=ve.contextId,je=ve.store,et=ve.registry,$e=ve.draggableId,ct=ve.forceSensorStop,pt=ve.sourceEvent,Jt=oa({lockAPI:Se,store:je,registry:et,draggableId:$e});if(!Jt)return null;var Cn=et.draggable.getById($e),cn=bs(be,Cn.descriptor.id);if(!cn||pt&&!Cn.options.canDragInteractiveElements&&Jl(cn,pt))return null;var an=Se.claim(ct||Ot),on="PRE_DRAG";function On(){return Cn.options.shouldRespectForcePress}function Pi(){return Se.isActive(an)}function br(ls,Us){Do({expected:ls,phase:on,isLockActive:Pi,shouldWarn:!0})&&je.dispatch(Us())}var Nr=br.bind(null,"DRAGGING");function Xr(ls){function Us(){Se.release(),on="COMPLETED"}on!=="PRE_DRAG"&&(Us(),on!=="PRE_DRAG"&&rn(!1)),je.dispatch(Ye(ls.liftActionArgs)),on="DRAGGING";function ju(Rs,Lu){if(Lu===void 0&&(Lu={shouldBlockNextClick:!1}),ls.cleanup(),Lu.shouldBlockNextClick){var Ic=xn(window,[{eventName:"click",fn:ss,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Ic)}Us(),je.dispatch(oo({reason:Rs}))}return(0,kt.Z)({isActive:function(){return Do({expected:"DRAGGING",phase:on,isLockActive:Pi,shouldWarn:!1})},shouldRespectForcePress:On,drop:function(Lu){return ju("DROP",Lu)},cancel:function(Lu){return ju("CANCEL",Lu)}},ls.actions)}function Ao(ls){var Us=ln(function(Rs){Nr(function(){return Jn({client:Rs})})}),ju=Xr({liftActionArgs:{id:$e,clientSelection:ls,movementMode:"FLUID"},cleanup:function(){return Us.cancel()},actions:{move:Us}});return(0,kt.Z)({},ju,{move:Us})}function Vo(){var ls={moveUp:function(){return Nr(hi)},moveRight:function(){return Nr(si)},moveDown:function(){return Nr(ji)},moveLeft:function(){return Nr(dr)}};return Xr({liftActionArgs:{id:$e,clientSelection:$r(cn),movementMode:"SNAP"},cleanup:Ot,actions:ls})}function Io(){var ls=Do({expected:"PRE_DRAG",phase:on,isLockActive:Pi,shouldWarn:!0});ls&&Se.release()}var fa={isActive:function(){return Do({expected:"PRE_DRAG",phase:on,isLockActive:Pi,shouldWarn:!1})},shouldRespectForcePress:On,fluidLift:Ao,snapLift:Vo,abort:Io};return fa}var El=[Wo,as,Os];function pf(ve){var Se=ve.contextId,be=ve.store,je=ve.registry,et=ve.customSensors,$e=ve.enableDefaultSensors,ct=[].concat($e?El:[],et||[]),pt=(0,ce.useState)(function(){return so()})[0],Jt=In(function(Ao,Vo){Ao.isDragging&&!Vo.isDragging&&pt.tryAbandon()},[pt]);Gs(function(){var Ao=be.getState(),Vo=be.subscribe(function(){var Io=be.getState();Jt(Ao,Io),Ao=Io});return Vo},[pt,be,Jt]),Gs(function(){return pt.tryAbandon},[pt.tryAbandon]);var Cn=In(function(Xr){return oa({lockAPI:pt,registry:je,store:be,draggableId:Xr})},[pt,je,be]),cn=In(function(Xr,Ao,Vo){return Ga({lockAPI:pt,registry:je,contextId:Se,store:be,draggableId:Xr,forceSensorStop:Ao,sourceEvent:Vo&&Vo.sourceEvent?Vo.sourceEvent:null})},[Se,pt,je,be]),an=In(function(Xr){return is(Se,Xr)},[Se]),on=In(function(Xr){var Ao=je.draggable.findById(Xr);return Ao?Ao.options:null},[je.draggable]),On=In(function(){pt.isClaimed()&&(pt.tryAbandon(),be.getState().phase!=="IDLE"&&be.dispatch(Vn()))},[pt,be]),Pi=In(pt.isClaimed,[pt]),br=Bn(function(){return{canGetLock:Cn,tryGetLock:cn,findClosestDraggableId:an,findOptionsForDraggable:on,tryReleaseLock:On,isLockClaimed:Pi}},[Cn,cn,an,on,On,Pi]);hs(ct);for(var Nr=0;Nr<ct.length;Nr++)ct[Nr](br)}var cs=function(Se){return{onBeforeCapture:Se.onBeforeCapture,onBeforeDragStart:Se.onBeforeDragStart,onDragStart:Se.onDragStart,onDragEnd:Se.onDragEnd,onDragUpdate:Se.onDragUpdate}};function Lo(ve){return ve.current||rn(!1),ve.current}function na(ve){var Se=ve.contextId,be=ve.setCallbacks,je=ve.sensors,et=ve.nonce,$e=ve.dragHandleUsageInstructions,ct=(0,ce.useRef)(null);wo();var pt=Lr(ve),Jt=In(function(){return cs(pt.current)},[pt]),Cn=Qd(Se),cn=nt({contextId:Se,text:$e}),an=Rl(Se,et),on=In(function(Rs){Lo(ct).dispatch(Rs)},[]),On=Bn(function(){return(0,Dt.DE)({publishWhileDragging:Nt,updateDroppableScroll:vn,updateDroppableIsEnabled:wn,updateDroppableIsCombineEnabled:Gn,collectionStarting:Wt},on)},[on]),Pi=xd(),br=Bn(function(){return Xa(Pi,On)},[Pi,On]),Nr=Bn(function(){return Xh((0,kt.Z)({scrollWindow:ru,scrollDroppable:br.scrollDroppable},(0,Dt.DE)({move:Jn},on)))},[br.scrollDroppable,on]),Xr=Tc(Se),Ao=Bn(function(){return Ru({announce:Cn,autoScroller:Nr,dimensionMarshal:br,focusMarshal:Xr,getResponders:Jt,styleMarshal:an})},[Cn,Nr,br,Xr,Jt,an]);ct.current=Ao;var Vo=In(function(){var Rs=Lo(ct),Lu=Rs.getState();Lu.phase!=="IDLE"&&Rs.dispatch(Vn())},[]),Io=In(function(){var Rs=Lo(ct).getState();return Rs.isDragging||Rs.phase==="DROP_ANIMATING"},[]),fa=Bn(function(){return{isDragging:Io,tryAbort:Vo}},[Io,Vo]);be(fa);var ls=In(function(Rs){return Il(Lo(ct).getState(),Rs)},[]),Us=In(function(){return od(Lo(ct).getState())},[]),ju=Bn(function(){return{marshal:br,focus:Xr,contextId:Se,canLift:ls,isMovementAllowed:Us,dragHandleUsageInstructionsId:cn,registry:Pi}},[Se,br,cn,Xr,ls,Us,Pi]);return pf({contextId:Se,store:Ao,registry:Pi,customSensors:je,enableDefaultSensors:ve.enableDefaultSensors!==!1}),(0,ce.useEffect)(function(){return Vo},[Vo]),ce.createElement(ut.Provider,{value:ju},ce.createElement(de,{context:Qh,store:Ao},ve.children))}var ds=0;function $s(){ds=0}function Yu(){return Bn(function(){return""+ds++},[])}function pu(){$s(),bl()}function oc(ve){var Se=Yu(),be=ve.dragHandleUsageInstructions||Aa.dragHandleUsageInstructions;return ce.createElement(Sr,null,function(je){return ce.createElement(na,{nonce:ve.nonce,contextId:Se,setCallbacks:je,dragHandleUsageInstructions:be,enableDefaultSensors:ve.enableDefaultSensors,sensors:ve.sensors,onBeforeCapture:ve.onBeforeCapture,onBeforeDragStart:ve.onBeforeDragStart,onDragStart:ve.onDragStart,onDragUpdate:ve.onDragUpdate,onDragEnd:ve.onDragEnd},ve.children)})}var yc=function(Se){return function(be){return Se===be}},qd=yc("scroll"),cd=yc("auto"),Gc=yc("visible"),Bs=function(Se,be){return be(Se.overflowX)||be(Se.overflowY)},gh=function(Se,be){return be(Se.overflowX)&&be(Se.overflowY)},ph=function(Se){var be=window.getComputedStyle(Se),je={overflowX:be.overflowX,overflowY:be.overflowY};return Bs(je,qd)||Bs(je,cd)},wu=function(){return!1;var Se,be,je,et},Xu=function ve(Se){return Se==null?null:Se===document.body?wu()?Se:null:Se===document.documentElement?null:ph(Se)?Se:ve(Se.parentElement)},Nh=function(ve){if(ve)var Se=Xu(ve.parentElement)},Th=function(ve){return{x:ve.scrollLeft,y:ve.scrollTop}},qf=function ve(Se){if(!Se)return!1;var be=window.getComputedStyle(Se);return be.position==="fixed"?!0:ve(Se.parentElement)},$f=function(ve){var Se=Xu(ve),be=qf(ve);return{closestScrollable:Se,isFixedOnPage:be}},qh=function(ve){var Se=ve.descriptor,be=ve.isEnabled,je=ve.isCombineEnabled,et=ve.isFixedOnPage,$e=ve.direction,ct=ve.client,pt=ve.page,Jt=ve.closest,Cn=function(){if(!Jt)return null;var On=Jt.scrollSize,Pi=Jt.client,br=Gl({scrollHeight:On.scrollHeight,scrollWidth:On.scrollWidth,height:Pi.paddingBox.height,width:Pi.paddingBox.width});return{pageMarginBox:Jt.page.marginBox,frameClient:Pi,scrollSize:On,shouldClipSubject:Jt.shouldClipSubject,scroll:{initial:Jt.scroll,current:Jt.scroll,max:br,diff:{value:uo,displacement:uo}}}}(),cn=$e==="vertical"?oi:Na,an=Or({page:pt,withPlaceholder:null,axis:cn,frame:Cn}),on={descriptor:Se,isCombineEnabled:je,isFixedOnPage:et,axis:cn,isEnabled:be,client:ct,page:pt,frame:Cn,subject:an};return on},eg=function(Se,be){var je=eo(Se);if(!be||Se!==be)return je;var et=je.paddingBox.top-be.scrollTop,$e=je.paddingBox.left-be.scrollLeft,ct=et+be.scrollHeight,pt=$e+be.scrollWidth,Jt={top:et,right:pt,bottom:ct,left:$e},Cn=jo(Jt,je.border),cn=Bo({borderBox:Cn,margin:je.margin,border:je.border,padding:je.padding});return cn},tg=function(ve){var Se=ve.ref,be=ve.descriptor,je=ve.env,et=ve.windowScroll,$e=ve.direction,ct=ve.isDropDisabled,pt=ve.isCombineEnabled,Jt=ve.shouldClipSubject,Cn=je.closestScrollable,cn=eg(Se,Cn),an=Be(cn,et),on=function(){if(!Cn)return null;var Pi=eo(Cn),br={scrollHeight:Cn.scrollHeight,scrollWidth:Cn.scrollWidth};return{client:Pi,page:Be(Pi,et),scroll:Th(Cn),scrollSize:br,shouldClipSubject:Jt}}(),On=qh({descriptor:be,isEnabled:!ct,isCombineEnabled:pt,isFixedOnPage:je.isFixedOnPage,direction:$e,client:cn,page:an,closest:on});return On},Ed={passive:!1},Rd={passive:!0},$d=function(ve){return ve.shouldPublishImmediately?Ed:Rd};function Xs(ve){var Se=(0,ce.useContext)(ve);return Se||rn(!1),Se}var Oh=function(Se){return Se&&Se.env.closestScrollable||null};function Df(ve){var Se=(0,ce.useRef)(null),be=Xs(ut),je=Oc("droppable"),et=be.registry,$e=be.marshal,ct=Lr(ve),pt=Bn(function(){return{id:ve.droppableId,type:ve.type,mode:ve.mode}},[ve.droppableId,ve.mode,ve.type]),Jt=(0,ce.useRef)(pt),Cn=Bn(function(){return Un(function(Io,fa){Se.current||rn(!1);var ls={x:Io,y:fa};$e.updateDroppableScroll(pt.id,ls)})},[pt.id,$e]),cn=In(function(){var Io=Se.current;return!Io||!Io.env.closestScrollable?uo:Th(Io.env.closestScrollable)},[]),an=In(function(){var Io=cn();Cn(Io.x,Io.y)},[cn,Cn]),on=Bn(function(){return ln(an)},[an]),On=In(function(){var Io=Se.current,fa=Oh(Io);Io&&fa||rn(!1);var ls=Io.scrollOptions;if(ls.shouldPublishImmediately){an();return}on()},[on,an]),Pi=In(function(Io,fa){Se.current&&rn(!1);var ls=ct.current,Us=ls.getDroppableRef();Us||rn(!1);var ju=$f(Us),Rs={ref:Us,descriptor:pt,env:ju,scrollOptions:fa};Se.current=Rs;var Lu=tg({ref:Us,descriptor:pt,env:ju,windowScroll:Io,direction:ls.direction,isDropDisabled:ls.isDropDisabled,isCombineEnabled:ls.isCombineEnabled,shouldClipSubject:!ls.ignoreContainerClipping}),Ic=ju.closestScrollable;return Ic&&(Ic.setAttribute(fu.contextId,be.contextId),Ic.addEventListener("scroll",On,$d(Rs.scrollOptions))),Lu},[be.contextId,pt,On,ct]),br=In(function(){var Io=Se.current,fa=Oh(Io);return Io&&fa||rn(!1),Th(fa)},[]),Nr=In(function(){var Io=Se.current;Io||rn(!1);var fa=Oh(Io);Se.current=null,fa&&(on.cancel(),fa.removeAttribute(fu.contextId),fa.removeEventListener("scroll",On,$d(Io.scrollOptions)))},[On,on]),Xr=In(function(Io){var fa=Se.current;fa||rn(!1);var ls=Oh(fa);ls||rn(!1),ls.scrollTop+=Io.y,ls.scrollLeft+=Io.x},[]),Ao=Bn(function(){return{getDimensionAndWatchScroll:Pi,getScrollWhileDragging:br,dragStopped:Nr,scroll:Xr}},[Nr,Pi,br,Xr]),Vo=Bn(function(){return{uniqueId:je,descriptor:pt,callbacks:Ao}},[Ao,pt,je]);Gs(function(){return Jt.current=Vo.descriptor,et.droppable.register(Vo),function(){Se.current&&Nr(),et.droppable.unregister(Vo)}},[Ao,pt,Nr,Vo,$e,et.droppable]),Gs(function(){Se.current&&$e.updateDroppableIsEnabled(Jt.current.id,!ve.isDropDisabled)},[ve.isDropDisabled,$e]),Gs(function(){Se.current&&$e.updateDroppableIsCombineEnabled(Jt.current.id,ve.isCombineEnabled)},[ve.isCombineEnabled,$e])}function Zl(){}var mh={width:0,height:0,margin:tn},mf=function(Se){var be=Se.isAnimatingOpenOnMount,je=Se.placeholder,et=Se.animate;return be||et==="close"?mh:{height:je.client.borderBox.height,width:je.client.borderBox.width,margin:je.client.margin}},bg=function(Se){var be=Se.isAnimatingOpenOnMount,je=Se.placeholder,et=Se.animate,$e=mf({isAnimatingOpenOnMount:be,placeholder:je,animate:et});return{display:je.display,boxSizing:"border-box",width:$e.width,height:$e.height,marginTop:$e.margin.top,marginRight:$e.margin.right,marginBottom:$e.margin.bottom,marginLeft:$e.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:et!=="none"?ja.placeholder:null}};function Cu(ve){var Se=(0,ce.useRef)(null),be=In(function(){Se.current&&(clearTimeout(Se.current),Se.current=null)},[]),je=ve.animate,et=ve.onTransitionEnd,$e=ve.onClose,ct=ve.contextId,pt=(0,ce.useState)(ve.animate==="open"),Jt=pt[0],Cn=pt[1];(0,ce.useEffect)(function(){return Jt?je!=="open"?(be(),Cn(!1),Zl):Se.current?Zl:(Se.current=setTimeout(function(){Se.current=null,Cn(!1)}),be):Zl},[je,Jt,be]);var cn=In(function(on){on.propertyName==="height"&&(et(),je==="close"&&$e())},[je,$e,et]),an=bg({isAnimatingOpenOnMount:Jt,animate:ve.animate,placeholder:ve.placeholder});return ce.createElement(ve.placeholder.tagName,{style:an,"data-rbd-placeholder-context-id":ct,onTransitionEnd:cn,ref:ve.innerRef})}var Bg=ce.memo(Cu),vh=ce.createContext(null);function Wd(ve){ve&&ic(ve)||rn(!1)}function Ih(ve){return typeof ve=="boolean"}function ie(ve,Se){Se.forEach(function(be){return be(ve)})}var ae=[function(Se){var be=Se.props;be.droppableId||rn(!1),typeof be.droppableId!="string"&&rn(!1)},function(Se){var be=Se.props;Ih(be.isDropDisabled)||rn(!1),Ih(be.isCombineEnabled)||rn(!1),Ih(be.ignoreContainerClipping)||rn(!1)},function(Se){var be=Se.getDroppableRef;Wd(be())}],fe=[function(Se){var be=Se.props,je=Se.getPlaceholderRef;if(be.placeholder)var et=je()}],he=[function(Se){var be=Se.props;be.renderClone||rn(!1)},function(Se){var be=Se.getPlaceholderRef;be()&&rn(!1)}];function me(ve){xr(function(){ie(ve,ae),ve.props.mode==="standard"&&ie(ve,fe),ve.props.mode==="virtual"&&ie(ve,he)})}var De=function(ve){Lt(Se,ve);function Se(){for(var je,et=arguments.length,$e=new Array(et),ct=0;ct<et;ct++)$e[ct]=arguments[ct];return je=ve.call.apply(ve,[this].concat($e))||this,je.state={isVisible:!!je.props.on,data:je.props.on,animate:je.props.shouldAnimate&&je.props.on?"open":"none"},je.onClose=function(){je.state.animate==="close"&&je.setState({isVisible:!1})},je}Se.getDerivedStateFromProps=function(et,$e){return et.shouldAnimate?et.on?{isVisible:!0,data:et.on,animate:"open"}:$e.isVisible?{isVisible:!0,data:$e.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!et.on,data:et.on,animate:"none"}};var be=Se.prototype;return be.render=function(){if(!this.state.isVisible)return null;var et={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(et)},Se}(ce.PureComponent),Ve={dragging:5e3,dropAnimating:4500},Xe=function(Se,be){return be?ja.drop(be.duration):Se?ja.snap:ja.fluid},Oe=function(Se,be){return Se?be?Pa.opacity.drop:Pa.opacity.combining:null},qe=function(Se){return Se.forceShouldAnimate!=null?Se.forceShouldAnimate:Se.mode==="SNAP"};function Rt(ve){var Se=ve.dimension,be=Se.client,je=ve.offset,et=ve.combineWith,$e=ve.dropping,ct=!!et,pt=qe(ve),Jt=!!$e,Cn=Jt?Za.drop(je,ct):Za.moveTo(je),cn={position:"fixed",top:be.marginBox.top,left:be.marginBox.left,boxSizing:"border-box",width:be.borderBox.width,height:be.borderBox.height,transition:Xe(pt,$e),transform:Cn,opacity:Oe(ct,Jt),zIndex:Jt?Ve.dropAnimating:Ve.dragging,pointerEvents:"none"};return cn}function gt(ve){return{transform:Za.moveTo(ve.offset),transition:ve.shouldAnimateDisplacement?null:"none"}}function Pn(ve){return ve.type==="DRAGGING"?Rt(ve):gt(ve)}function fn(ve,Se,be){be===void 0&&(be=uo);var je=window.getComputedStyle(Se),et=Se.getBoundingClientRect(),$e=ua(et,je),ct=Be($e,be),pt={client:$e,tagName:Se.tagName.toLowerCase(),display:je.display},Jt={x:$e.marginBox.width,y:$e.marginBox.height},Cn={descriptor:ve,placeholder:pt,displaceBy:Jt,client:$e,page:ct};return Cn}function Ci(ve){var Se=Oc("draggable"),be=ve.descriptor,je=ve.registry,et=ve.getDraggableRef,$e=ve.canDragInteractiveElements,ct=ve.shouldRespectForcePress,pt=ve.isEnabled,Jt=Bn(function(){return{canDragInteractiveElements:$e,shouldRespectForcePress:ct,isEnabled:pt}},[$e,pt,ct]),Cn=In(function(On){var Pi=et();return Pi||rn(!1),fn(be,Pi,On)},[be,et]),cn=Bn(function(){return{uniqueId:Se,descriptor:be,options:Jt,getDimension:Cn}},[be,Cn,Jt,Se]),an=(0,ce.useRef)(cn),on=(0,ce.useRef)(!0);Gs(function(){return je.draggable.register(an.current),function(){return je.draggable.unregister(an.current)}},[je.draggable]),Gs(function(){if(on.current){on.current=!1;return}var On=an.current;an.current=cn,je.draggable.update(cn,On)},[cn,je.draggable])}function Bi(ve,Se,be){xr(function(){function je($e){return"Draggable[id: "+$e+"]: "}var et=ve.draggableId;et||rn(!1),typeof et!="string"&&rn(!1),ko(ve.index)||rn(!1),ve.mapped.type!=="DRAGGING"&&(Wd(be()),ve.isEnabled&&(Od(Se,et)||rn(!1)))})}function nr(ve){}function pr(ve){ve.preventDefault()}function hr(ve){var Se=(0,ce.useRef)(null),be=In(function(Rs){Se.current=Rs},[]),je=In(function(){return Se.current},[]),et=Xs(ut),$e=et.contextId,ct=et.dragHandleUsageInstructionsId,pt=et.registry,Jt=Xs(vh),Cn=Jt.type,cn=Jt.droppableId,an=Bn(function(){return{id:ve.draggableId,index:ve.index,type:Cn,droppableId:cn}},[ve.draggableId,ve.index,Cn,cn]),on=ve.children,On=ve.draggableId,Pi=ve.isEnabled,br=ve.shouldRespectForcePress,Nr=ve.canDragInteractiveElements,Xr=ve.isClone,Ao=ve.mapped,Vo=ve.dropAnimationFinished;if(Bi(ve,$e,je),nr(Xr),!Xr){var Io=Bn(function(){return{descriptor:an,registry:pt,getDraggableRef:je,canDragInteractiveElements:Nr,shouldRespectForcePress:br,isEnabled:Pi}},[an,pt,je,Nr,br,Pi]);Ci(Io)}var fa=Bn(function(){return Pi?{tabIndex:0,role:"button","aria-describedby":ct,"data-rbd-drag-handle-draggable-id":On,"data-rbd-drag-handle-context-id":$e,draggable:!1,onDragStart:pr}:null},[$e,ct,On,Pi]),ls=In(function(Rs){Ao.type==="DRAGGING"&&Ao.dropping&&Rs.propertyName==="transform"&&Vo()},[Vo,Ao]),Us=Bn(function(){var Rs=Pn(Ao),Lu=Ao.type==="DRAGGING"&&Ao.dropping?ls:null,Ic={innerRef:be,draggableProps:{"data-rbd-draggable-context-id":$e,"data-rbd-draggable-id":On,style:Rs,onTransitionEnd:Lu},dragHandleProps:fa};return Ic},[$e,fa,On,Ao,ls,be]),ju=Bn(function(){return{draggableId:an.id,type:an.type,source:{index:an.index,droppableId:an.droppableId}}},[an.droppableId,an.id,an.index,an.type]);return on(Us,Ao.snapshot,ju)}var Dr=function(ve,Se){return ve===Se},vo=function(ve){var Se=ve.combine,be=ve.destination;return be?be.droppableId:Se?Se.droppableId:null},Qo=function(Se){return Se.combine?Se.combine.draggableId:null},Kr=function(Se){return Se.at&&Se.at.type==="COMBINE"?Se.at.combine.draggableId:null};function ka(){var ve=Un(function(et,$e){return{x:et,y:$e}}),Se=Un(function(et,$e,ct,pt,Jt){return{isDragging:!0,isClone:$e,isDropAnimating:!!Jt,dropAnimation:Jt,mode:et,draggingOver:ct,combineWith:pt,combineTargetFor:null}}),be=Un(function(et,$e,ct,pt,Jt,Cn,cn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Jt,combineWith:Cn,mode:$e,offset:et,dimension:ct,forceShouldAnimate:cn,snapshot:Se($e,pt,Jt,Cn,null)}}}),je=function($e,ct){if($e.isDragging){if($e.critical.draggable.id!==ct.draggableId)return null;var pt=$e.current.client.offset,Jt=$e.dimensions.draggables[ct.draggableId],Cn=ul($e.impact),cn=Kr($e.impact),an=$e.forceShouldAnimate;return be(ve(pt.x,pt.y),$e.movementMode,Jt,ct.isClone,Cn,cn,an)}if($e.phase==="DROP_ANIMATING"){var on=$e.completed;if(on.result.draggableId!==ct.draggableId)return null;var On=ct.isClone,Pi=$e.dimensions.draggables[ct.draggableId],br=on.result,Nr=br.mode,Xr=vo(br),Ao=Qo(br),Vo=$e.dropDuration,Io={duration:Vo,curve:$o.drop,moveTo:$e.newHomeClientOffset,opacity:Ao?Pa.opacity.drop:null,scale:Ao?Pa.scale.drop:null};return{mapped:{type:"DRAGGING",offset:$e.newHomeClientOffset,dimension:Pi,dropping:Io,draggingOver:Xr,combineWith:Ao,mode:Nr,forceShouldAnimate:null,snapshot:Se(Nr,On,Xr,Ao,Io)}}}return null};return je}function rs(ve){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ve,combineWith:null}}var Ql={mapped:{type:"SECONDARY",offset:uo,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:rs(null)}};function pl(){var ve=Un(function(ct,pt){return{x:ct,y:pt}}),Se=Un(rs),be=Un(function(ct,pt,Jt){return pt===void 0&&(pt=null),{mapped:{type:"SECONDARY",offset:ct,combineTargetFor:pt,shouldAnimateDisplacement:Jt,snapshot:Se(pt)}}}),je=function(pt){return pt?be(uo,pt,!0):null},et=function(pt,Jt,Cn,cn){var an=Cn.displaced.visible[pt],on=!!(cn.inVirtualList&&cn.effected[pt]),On=Xi(Cn),Pi=On&&On.draggableId===pt?Jt:null;if(!an){if(!on)return je(Pi);if(Cn.displaced.invisible[pt])return null;var br=pn(cn.displacedBy.point),Nr=ve(br.x,br.y);return be(Nr,Pi,!0)}if(on)return je(Pi);var Xr=Cn.displacedBy.point,Ao=ve(Xr.x,Xr.y);return be(Ao,Pi,an.shouldAnimate)},$e=function(pt,Jt){if(pt.isDragging)return pt.critical.draggable.id===Jt.draggableId?null:et(Jt.draggableId,pt.critical.draggable.id,pt.impact,pt.afterCritical);if(pt.phase==="DROP_ANIMATING"){var Cn=pt.completed;return Cn.result.draggableId===Jt.draggableId?null:et(Jt.draggableId,Cn.result.draggableId,Cn.impact,Cn.afterCritical)}return null};return $e}var ac=function(){var Se=ka(),be=pl(),je=function($e,ct){return Se($e,ct)||be($e,ct)||Ql};return je},_u={dropAnimationFinished:lo},mu=Pt(ac,_u,null,{context:Qh,pure:!0,areStatePropsEqual:Dr})(hr);function sc(ve){var Se=Xs(vh),be=Se.isUsingCloneFor;return be===ve.draggableId&&!ve.isClone?null:ce.createElement(mu,ve)}function Wu(ve){var Se=typeof ve.isDragDisabled=="boolean"?!ve.isDragDisabled:!0,be=!!ve.disableInteractiveElementBlocking,je=!!ve.shouldRespectForcePress;return ce.createElement(sc,(0,kt.Z)({},ve,{isClone:!1,isEnabled:Se,canDragInteractiveElements:be,shouldRespectForcePress:je}))}function vu(ve){var Se=(0,ce.useContext)(ut);Se||rn(!1);var be=Se.contextId,je=Se.isMovementAllowed,et=(0,ce.useRef)(null),$e=(0,ce.useRef)(null),ct=ve.children,pt=ve.droppableId,Jt=ve.type,Cn=ve.mode,cn=ve.direction,an=ve.ignoreContainerClipping,on=ve.isDropDisabled,On=ve.isCombineEnabled,Pi=ve.snapshot,br=ve.useClone,Nr=ve.updateViewportMaxScroll,Xr=ve.getContainerForClone,Ao=In(function(){return et.current},[]),Vo=In(function(Zc){et.current=Zc},[]),Io=In(function(){return $e.current},[]),fa=In(function(Zc){$e.current=Zc},[]);me({props:ve,getDroppableRef:Ao,getPlaceholderRef:Io});var ls=In(function(){je()&&Nr({maxScroll:Ts()})},[je,Nr]);Df({droppableId:pt,type:Jt,mode:Cn,direction:cn,isDropDisabled:on,isCombineEnabled:On,ignoreContainerClipping:an,getDroppableRef:Ao});var Us=ce.createElement(De,{on:ve.placeholder,shouldAnimate:ve.shouldAnimatePlaceholder},function(Zc){var yh=Zc.onClose,Pd=Zc.data,hd=Zc.animate;return ce.createElement(Bg,{placeholder:Pd,onClose:yh,innerRef:fa,animate:hd,contextId:be,onTransitionEnd:ls})}),ju=Bn(function(){return{innerRef:Vo,placeholder:Us,droppableProps:{"data-rbd-droppable-id":pt,"data-rbd-droppable-context-id":be}}},[be,pt,Us,Vo]),Rs=br?br.dragging.draggableId:null,Lu=Bn(function(){return{droppableId:pt,type:Jt,isUsingCloneFor:Rs}},[pt,Rs,Jt]);function Ic(){if(!br)return null;var Zc=br.dragging,yh=br.render,Pd=ce.createElement(sc,{draggableId:Zc.draggableId,index:Zc.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(hd,lc){return yh(hd,lc,Zc)});return sn.createPortal(Pd,Xr())}return ce.createElement(vh.Provider,{value:Lu},ct(ju,Pi),Ic())}var Mo=function(Se,be){return Se===be.droppable.type},Ms=function(Se,be){return be.draggables[Se.draggable.id]},Ul=function(){var Se={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},be=(0,kt.Z)({},Se,{shouldAnimatePlaceholder:!1}),je=Un(function(ct){return{draggableId:ct.id,type:ct.type,source:{index:ct.index,droppableId:ct.droppableId}}}),et=Un(function(ct,pt,Jt,Cn,cn,an){var on=cn.descriptor.id,On=cn.descriptor.droppableId===ct;if(On){var Pi=an?{render:an,dragging:je(cn.descriptor)}:null,br={isDraggingOver:Jt,draggingOverWith:Jt?on:null,draggingFromThisWith:on,isUsingPlaceholder:!0};return{placeholder:cn.placeholder,shouldAnimatePlaceholder:!1,snapshot:br,useClone:Pi}}if(!pt)return be;if(!Cn)return Se;var Nr={isDraggingOver:Jt,draggingOverWith:on,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:cn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Nr,useClone:null}}),$e=function(pt,Jt){var Cn=Jt.droppableId,cn=Jt.type,an=!Jt.isDropDisabled,on=Jt.renderClone;if(pt.isDragging){var On=pt.critical;if(!Mo(cn,On))return be;var Pi=Ms(On,pt.dimensions),br=ul(pt.impact)===Cn;return et(Cn,an,br,br,Pi,on)}if(pt.phase==="DROP_ANIMATING"){var Nr=pt.completed;if(!Mo(cn,Nr.critical))return be;var Xr=Ms(Nr.critical,pt.dimensions);return et(Cn,an,vo(Nr.result)===Cn,ul(Nr.impact)===Cn,Xr,on)}if(pt.phase==="IDLE"&&pt.completed&&!pt.shouldFlush){var Ao=pt.completed;if(!Mo(cn,Ao.critical))return be;var Vo=ul(Ao.impact)===Cn,Io=!!(Ao.impact.at&&Ao.impact.at.type==="COMBINE"),fa=Ao.critical.droppable.id===Cn;return Vo?Io?Se:be:fa?Se:be}return be};return $e},ks={updateViewportMaxScroll:Ki};function Hc(){return document.body||rn(!1),document.body}var Ml={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Hc},dd=Pt(Ul,ks,null,{context:Qh,pure:!0,areStatePropsEqual:Dr})(vu);dd.defaultProps=Ml},51581:function($t,zn,we){"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var ce=function(){function Gt(Ut,Re){for(var te=0;te<Re.length;te++){var ne=Re[te];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(Ut,ne.key,ne)}}return function(Ut,Re,te){return Re&&Gt(Ut.prototype,Re),te&&Gt(Ut,te),Ut}}(),at=we(59301),Lt=jt(at),kt=we(12708),Dt=jt(kt);function jt(Gt){return Gt&&Gt.__esModule?Gt:{default:Gt}}function Ge(Gt,Ut){var Re={};for(var te in Gt)Ut.indexOf(te)>=0||Object.prototype.hasOwnProperty.call(Gt,te)&&(Re[te]=Gt[te]);return Re}function Mt(Gt,Ut){if(!(Gt instanceof Ut))throw new TypeError("Cannot call a class as a function")}function Ct(Gt,Ut){if(!Gt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ut&&(typeof Ut=="object"||typeof Ut=="function")?Ut:Gt}function Et(Gt,Ut){if(typeof Ut!="function"&&Ut!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ut);Gt.prototype=Object.create(Ut&&Ut.prototype,{constructor:{value:Gt,enumerable:!1,writable:!0,configurable:!0}}),Ut&&(Object.setPrototypeOf?Object.setPrototypeOf(Gt,Ut):Gt.__proto__=Ut)}var xt=function(Gt){Et(Ut,Gt);function Ut(Re){Mt(this,Ut);var te=Ct(this,(Ut.__proto__||Object.getPrototypeOf(Ut)).call(this,Re));return te.scrollListener=te.scrollListener.bind(te),te.eventListenerOptions=te.eventListenerOptions.bind(te),te.mousewheelListener=te.mousewheelListener.bind(te),te}return ce(Ut,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var te=this.getParentElement(this.scrollComponent);te.scrollTop=te.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var te=!1,ne={get passive(){te=!0}};try{document.addEventListener("test",null,ne),document.removeEventListener("test",null,ne)}catch(de){}return te}},{key:"eventListenerOptions",value:function(){var te=this.props.useCapture;return this.isPassiveSupported()&&(te={useCapture:this.props.useCapture,passive:!0}),te}},{key:"setDefaultLoader",value:function(te){this.defaultLoader=te}},{key:"detachMousewheelListener",value:function(){var te=window;this.props.useWindow===!1&&(te=this.scrollComponent.parentNode),te.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var te=window;this.props.useWindow===!1&&(te=this.getParentElement(this.scrollComponent)),te.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),te.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(te){var ne=this.props.getScrollParent&&this.props.getScrollParent();return ne!=null?ne:te&&te.parentNode}},{key:"filterProps",value:function(te){return te}},{key:"attachScrollListener",value:function(){var te=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!te)){var ne=window;this.props.useWindow===!1&&(ne=te),ne.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),ne.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ne.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(te){te.deltaY===1&&!this.isPassiveSupported()&&te.preventDefault()}},{key:"scrollListener",value:function(){var te=this.scrollComponent,ne=window,de=this.getParentElement(te),le=void 0;if(this.props.useWindow){var pe=document.documentElement||document.body.parentNode||document.body,xe=ne.pageYOffset!==void 0?ne.pageYOffset:pe.scrollTop;this.props.isReverse?le=xe:le=this.calculateOffset(te,xe)}else this.props.isReverse?le=de.scrollTop:le=te.scrollHeight-de.scrollTop-de.clientHeight;le<Number(this.props.threshold)&&te&&te.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=de.scrollHeight,this.beforeScrollTop=de.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(te,ne){return te?this.calculateTopPosition(te)+(te.offsetHeight-ne-window.innerHeight):0}},{key:"calculateTopPosition",value:function(te){return te?te.offsetTop+this.calculateTopPosition(te.offsetParent):0}},{key:"render",value:function(){var te=this,ne=this.filterProps(this.props),de=ne.children,le=ne.element,pe=ne.hasMore,xe=ne.initialLoad,Ae=ne.isReverse,ke=ne.loader,Me=ne.loadMore,ot=ne.pageStart,dt=ne.ref,yt=ne.threshold,vt=ne.useCapture,Kt=ne.useWindow,wt=ne.getScrollParent,It=Ge(ne,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);It.ref=function(yn){te.scrollComponent=yn,dt&&dt(yn)};var Yt=[de];return pe&&(ke?Ae?Yt.unshift(ke):Yt.push(ke):this.defaultLoader&&(Ae?Yt.unshift(this.defaultLoader):Yt.push(this.defaultLoader))),Lt.default.createElement(le,It,Yt)}}]),Ut}(at.Component);xt.propTypes={children:Dt.default.node.isRequired,element:Dt.default.node,hasMore:Dt.default.bool,initialLoad:Dt.default.bool,isReverse:Dt.default.bool,loader:Dt.default.node,loadMore:Dt.default.func.isRequired,pageStart:Dt.default.number,ref:Dt.default.func,getScrollParent:Dt.default.func,threshold:Dt.default.number,useCapture:Dt.default.bool,useWindow:Dt.default.bool},xt.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},zn.default=xt,$t.exports=zn.default},26724:function($t,zn,we){$t.exports=we(51581)},38486:function($t,zn){"use strict";var we;var ce=60103,at=60106,Lt=60107,kt=60108,Dt=60114,jt=60109,Ge=60110,Mt=60112,Ct=60113,Et=60120,xt=60115,Gt=60116,Ut=60121,Re=60122,te=60117,ne=60129,de=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;ce=le("react.element"),at=le("react.portal"),Lt=le("react.fragment"),kt=le("react.strict_mode"),Dt=le("react.profiler"),jt=le("react.provider"),Ge=le("react.context"),Mt=le("react.forward_ref"),Ct=le("react.suspense"),Et=le("react.suspense_list"),xt=le("react.memo"),Gt=le("react.lazy"),Ut=le("react.block"),Re=le("react.server.block"),te=le("react.fundamental"),ne=le("react.debug_trace_mode"),de=le("react.legacy_hidden")}function pe(It){if(typeof It=="object"&&It!==null){var Yt=It.$$typeof;switch(Yt){case ce:switch(It=It.type,It){case Lt:case Dt:case kt:case Ct:case Et:return It;default:switch(It=It&&It.$$typeof,It){case Ge:case Mt:case Gt:case xt:case jt:return It;default:return Yt}}case at:return Yt}}}var xe=jt,Ae=ce,ke=Mt,Me=Lt,ot=Gt,dt=xt,yt=at,vt=Dt,Kt=kt,wt=Ct;we=Ge,we=xe,we=Ae,we=ke,we=Me,we=ot,we=dt,we=yt,we=vt,we=Kt,we=wt,we=function(){return!1},we=function(){return!1},zn.isContextConsumer=function(It){return pe(It)===Ge},we=function(It){return pe(It)===jt},we=function(It){return typeof It=="object"&&It!==null&&It.$$typeof===ce},we=function(It){return pe(It)===Mt},we=function(It){return pe(It)===Lt},we=function(It){return pe(It)===Gt},we=function(It){return pe(It)===xt},we=function(It){return pe(It)===at},we=function(It){return pe(It)===Dt},we=function(It){return pe(It)===kt},we=function(It){return pe(It)===Ct},we=function(It){return typeof It=="string"||typeof It=="function"||It===Lt||It===Dt||It===ne||It===kt||It===Ct||It===Et||It===de||typeof It=="object"&&It!==null&&(It.$$typeof===Gt||It.$$typeof===xt||It.$$typeof===jt||It.$$typeof===Ge||It.$$typeof===Mt||It.$$typeof===te||It.$$typeof===Ut||It[0]===Re)},we=pe},53410:function($t,zn,we){"use strict";$t.exports=we(38486)},25510:function($t){"use strict";$t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGd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71ppNR+UBK3Tcybe8s+mAywGXvH5hY3feECZxRZbLBxpwnxOdQ0NNWDxixvJA/rl5V5qX9oZjwJY8qlWAEtEMwEWJqvAh4CHJq8HL3o8XnXE/0ehyFdKfQiE2267LayyUq9uAhb1TRNXbfJAJrWdKeW6CViq+lDVpuEAWMAQV15xhZ177tn27e98x16byyF0fUBiNhaCvo3IQUksMXWqHfutb9huu32gPwHcaA6sm79l56UXX7a777orrLjGTxhnv/7VGbbFVlva6EVG2+tz2J3TFwvCh/iYESPGBBdReHzWXFtkLOf99OlsgNTzzzxvvzj3ZPvhKT+y+/5yv7340qthN82c2XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtdd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TZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/Jd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QI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function($t,zn,we){"use strict";$t.exports=we.p+"static/AssistantCode3.a8740efb.jpeg"},13014:function($t,zn,we){"use strict";$t.exports=we.p+"static/yunying_code.7d649890.jpg"},36723:function($t){"use strict";$t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEYCAYAAADmlsvOAAAgAElEQVR4Xuy9CZwc1XUu/t2q6p6efbSNtpGEhDaEQCALSQizCAzGbN7+YMfxktjx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0VMcDxLQ70ThONwM6bfL9gVakukrPsNvfEyWsNmBujKHhntFUKYXRHsa/JDL6hy3yI1DwGi3pRYDG8BkAlI6YxoqERKmJqh0dNudFhNdoaSECSlgtBLdW1cYYkhjPQtIORnsYX5TEAqmMu5Y6R7WAbO733KkLXAlISoy0SemJJMWEC8dUamou4PXUpg9DPWi1+VpjDLMK0bWCJMZIrMGLJEcy44vX6LGjZHNDCYipqUhIfNEJc4x2JXqJ+8bwV0SE32lJIQJKWCmclCRd8m1lJKpASqN6aRMaNwMC6Y2bA1Q5eT1ffN/N/mWBvxIJiGfogr9U17gLRyLiixIRyYikRELiZzzOUtCduSSrLH3XKGGlb06a3iNf9WR8fBIX/wYv/h/Y0ILvmHItuJbvgxd3PvkiQQYvkh/XUJDtKCBFewwBofAzkgXJhp/xffDibhpfNF4HL5IP39NuxL9MiMD3/Mvv+N5+Tauq1vSlk7oK/x9GzthFmz90vwAAAABJRU5ErkJggg=="},54297:function($t){function zn(we){return we&&we.__esModule?we:{default:we}}$t.exports=zn,$t.exports.__esModule=!0,$t.exports.default=$t.exports}}]);
|