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],{87169:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return bt}});var ue=Ee(96663),et=Ee(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"},Nt=Lt,Bt=Ee(7657),vt=function(yt,Zt){return et.createElement(Bt.Z,(0,ue.Z)({},yt,{ref:Zt,icon:Nt}))},Ue=et.forwardRef(vt),bt=Ue},11724:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return bt}});var ue=Ee(96663),et=Ee(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"},Nt=Lt,Bt=Ee(7657),vt=function(yt,Zt){return et.createElement(Bt.Z,(0,ue.Z)({},yt,{ref:Zt,icon:Nt}))},Ue=et.forwardRef(vt),bt=Ue},32050:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return bt}});var ue=Ee(96663),et=Ee(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"},Nt=Lt,Bt=Ee(7657),vt=function(yt,Zt){return et.createElement(Bt.Z,(0,ue.Z)({},yt,{ref:Zt,icon:Nt}))},Ue=et.forwardRef(vt),bt=Ue},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(qt,kn){"use strict";kn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},76895:function(qt,kn){"use strict";kn.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"}},93055:function(qt,kn){"use strict";kn.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"}},74413:function(){"use strict";function qt(Te,te,ne,de){ne===void 0&&(ne=0),de===void 0&&(de=1/0),this._name=Te,this._defaultValue=te,this._minimum=ne,this._maximum=de}Object.defineProperty(qt.prototype,"name",{get:function(){return this._name},set:function(Te){if(typeof Te!="string"||Te==="")throw new Error("Shape name must be a valid string.");this._name=Te}}),Object.defineProperty(qt.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("The default value must be a real number, not: "+Te);this._defaultValue=Te}}),Object.defineProperty(qt.prototype,"minimum",{get:function(){return this._minimum},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("Minimum must be a real number, not: "+Te);this._minimum=Te}}),Object.defineProperty(qt.prototype,"maximum",{get:function(){return this._maximum},set:function(Te){if(typeof Te!="number"||isNaN(Te))throw new Error("Maximum must be a real number, not: "+Te);this._maximum=Te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Te,te){var ne=go.Shape._FigureParameters[Te];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Te,te,ne){if(!(ne instanceof qt))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[Te];de||(de=[],go.Shape._FigureParameters[Te]=de),de[te]=ne};var kn=[];function Ee(Te,te){var ne=kn.pop();return ne===void 0?new go.Point(Te,te):(ne.x=Te,ne.y=te,ne)}function ue(){var Te=kn.pop();return Te===void 0?new go.Point:Te}function et(Te){kn.push(Te)}function Lt(Te,te,ne,de,le,pe,Se,Ae,Me){Me||(Me=new go.Point);var ke=Te-ne,st=le-Se,dt=NaN,xt=NaN;if(ke===0)if(st===0)Te===ne&&(dt=Te,xt=te);else{var ut=(pe-Ae)/st,It=pe-ut*le;dt=Te,xt=ut*dt+It}else if(st===0){var Et=(te-de)/ke,Tt=te-Et*Te;dt=le,xt=Et*dt+Tt}else{var Et=(te-de)/ke,ut=(pe-Ae)/st,Tt=te-Et*Te,It=pe-ut*le;dt=(It-Tt)/(Et-ut),xt=Et*dt+Tt}return Me.x=dt,Me.y=xt,Me}function Nt(Te,te,ne,de,le,pe,Se,Ae,Me,ke,st,dt,xt,ut){var It=1-Me,Et=Me,Tt=Te*It+ne*Et,Yt=te*It+de*Et,hn=ne*It+le*Et,vi=de*It+pe*Et,ui=le*It+Se*Et,Bn=pe*It+Ae*Et,di=Tt*It+hn*Et,nt=Yt*It+vi*Et,ze=hn*It+ui*Et,gn=vi*It+Bn*Et,Xn=di*It+ze*Et,ti=nt*It+gn*Et;ke.x=Tt,ke.y=Yt,st.x=di,st.y=nt,dt.x=Xn,dt.y=ti,xt.x=ze,xt.y=gn,ut.x=ui,ut.y=Bn}var Bt=new go.Spot(.156,.156),vt=new go.Spot(.844,.844),Ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new qt("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Te,te,ne){var de=Te?Te.parameter1:NaN;(isNaN(de)||de<0)&&(de=5),de=Math.min(de,te/3),de=Math.min(de,ne/3);var le=de*Ue,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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=Bt,le.spot2=vt,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Line1",function(Te,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(Te,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(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Ue*te,0,te,(1-Ue)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Ue*ne,(1-Ue)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Ue*ne,Ue*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Te,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ue)*te,0,0,(1-Ue)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Te,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(Te,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(Te,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(Te,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 qt("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Te,te,ne){var de=Te?Te.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 qt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Te,te,ne){var de=Te?Te.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 qt("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Te,te,ne){var de=Te?Te.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 qt("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Te,te,ne){var de=Te?Te.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 qt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Te,te,ne){var de=Te?Te.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 bt=[];function Ct(){var Te=bt.pop();return Te===void 0?[]:Te}function yt(Te){Te.length=0,bt.push(Te)}function Zt(Te){for(var te=Ct(),ne=.5,de=.5,le=Math.PI*1.5,pe=0,Se=0;Se<Te;Se++)pe=2*Math.PI/Te*Se+le,te[Se]=new go.Point(de+ne*Math.cos(pe),de+ne*Math.sin(pe));return te.push(te[0]),te}function Ot(Te){var te=Ut(Te),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 yt(te),ne}function Ut(Te){for(var te=Zt(Te),ne=Ct(),de=Math.floor(te.length/2),le=te.length-1,pe=Te%2===0?2:1,Se=0;Se<le;Se++){var Ae=te[Se],Me=te[Se+1],ke=te[(de+Se-1)%le],st=te[(de+Se+pe)%le];ne[Se*2]=Ae,ne[Se*2+1]=Lt(Ae.x,Ae.y,ke.x,ke.y,Me.x,Me.y,st.x,st.y,new go.Point)}return ne[ne.length]=ne[0],yt(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Te,te,ne){var de=Zt(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<5;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.2,.22),le.spot2=new go.Spot(.8,.9),le}),go.Shape.defineFigureGenerator("Hexagon",function(Te,te,ne){var de=Zt(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<6;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.07,.25),le.spot2=new go.Spot(.93,.75),le}),go.Shape.defineFigureGenerator("Heptagon",function(Te,te,ne){var de=Zt(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<7;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.2,.15),le.spot2=new go.Spot(.8,.85),le}),go.Shape.defineFigureGenerator("Octagon",function(Te,te,ne){var de=Zt(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<8;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.15,.15),le.spot2=new go.Spot(.85,.85),le}),go.Shape.defineFigureGenerator("Nonagon",function(Te,te,ne){var de=Zt(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<9;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.17,.13),le.spot2=new go.Spot(.82,.82),le}),go.Shape.defineFigureGenerator("Decagon",function(Te,te,ne){var de=Zt(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<10;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("Dodecagon",function(Te,te,ne){var de=Zt(12),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<12;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("FivePointedStar",function(Te,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 Se=1;Se<10;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.266,.333),le.spot2=new go.Spot(.733,.733),le}),go.Shape.defineFigureGenerator("SixPointedStar",function(Te,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 Se=1;Se<12;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.17,.25),le.spot2=new go.Spot(.83,.75),le}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Te,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 Se=1;Se<14;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("EightPointedStar",function(Te,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 Se=1;Se<16;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.25,.25),le.spot2=new go.Spot(.75,.75),le}),go.Shape.defineFigureGenerator("NinePointedStar",function(Te,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 Se=1;Se<18;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("TenPointedStar",function(Te,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 Se=1;Se<20;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,de[Se].x*te,de[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,de[0].x*te,de[0].y*ne).close()),yt(de),le.spot1=new go.Spot(.281,.261),le.spot2=new go.Spot(.723,.748),le}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Te,te,ne){var de=Ot(5),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<de.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[Se+2].x*te,de[Se+2].y*ne,de[Se].x*te,de[Se].y*ne,de[Se+1].x*te,de[Se+1].y*ne));return pe.segments.last().close(),yt(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Te,te,ne){var de=Ot(6),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<de.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[Se+2].x*te,de[Se+2].y*ne,de[Se].x*te,de[Se].y*ne,de[Se+1].x*te,de[Se+1].y*ne));return pe.segments.last().close(),yt(de),le.spot1=new go.Spot(.17,.222),le.spot2=new go.Spot(.833,.777),le}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Te,te,ne){var de=Ot(7),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<de.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[Se+2].x*te,de[Se+2].y*ne,de[Se].x*te,de[Se].y*ne,de[Se+1].x*te,de[Se+1].y*ne));return pe.segments.last().close(),yt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Te,te,ne){var de=Ot(8),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<de.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[Se+2].x*te,de[Se+2].y*ne,de[Se].x*te,de[Se].y*ne,de[Se+1].x*te,de[Se+1].y*ne));return pe.segments.last().close(),yt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Te,te,ne){var de=Ot(9),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<de.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[Se+2].x*te,de[Se+2].y*ne,de[Se].x*te,de[Se].y*ne,de[Se+1].x*te,de[Se+1].y*ne));return pe.segments.last().close(),yt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Te,te,ne){var de=Ot(10),le=new go.Geometry,pe=new go.PathFigure(de[0].x*te,de[0].y*ne,!0);le.add(pe);for(var Se=1;Se<de.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,de[Se+2].x*te,de[Se+2].y*ne,de[Se].x*te,de[Se].y*ne,de[Se+1].x*te,de[Se+1].y*ne));return pe.segments.last().close(),yt(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.setFigureParameter("FramedRectangle",0,new qt("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new qt("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Te,te,ne){var de=Te?Te.parameter1:NaN,le=Te?Te.parameter2:NaN;isNaN(de)&&(de=8),isNaN(le)&&(le=8);var pe=new go.Geometry,Se=new go.PathFigure(0,0,!0);return pe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de<te/2&&le<ne/2&&(Se.add(new go.PathSegment(go.PathSegment.Move,de,le)),Se.add(new go.PathSegment(go.PathSegment.Line,de,ne-le)),Se.add(new go.PathSegment(go.PathSegment.Line,te-de,ne-le)),Se.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 qt("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Te,te,ne){var de=Te?Te.parameter1:NaN;(isNaN(de)||de<0)&&(de=8);var le=te/2,pe=new go.Geometry,Se=new go.PathFigure(te,te/2,!0);pe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Arc,0,360,le,le,le,le).close());var Ae=Math.max(le-de,0);return Ae>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,te/2+Ae,te/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,le,le,Ae,Ae).close())),pe.spot1=Bt,pe.spot2=vt,pe.defaultStretch=go.GraphObject.Uniform,pe}),go.Shape.defineFigureGenerator("Cloud",function(Te,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(Te,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 qt("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new qt("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Te,te,ne){var de=Te?Te.parameter1:NaN,le=Te?Te.parameter2:NaN;isNaN(de)&&(de=0),isNaN(le)&&(le=315);var pe=de%360;pe<0&&(pe+=360);var Se=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,Se,Ae,Ae,Ae,Ae).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Te,te,ne){var de=Ue/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 qt("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Te,te,ne){var de=Te?Te.parameter1:NaN;(isNaN(de)||de<0)&&(de=30);var le=Math.min(de,te)/2,pe=te/2,Se=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,Se-le)).add(new go.PathSegment(go.PathSegment.Line,te,Se-le)).add(new go.PathSegment(go.PathSegment.Line,te,Se+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,Se+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,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se-le)).add(new go.PathSegment(go.PathSegment.Line,pe-le,Se-le).close()))}),go.Shape.setFigureParameter("ThinCross",0,new qt("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Te,te,ne){var de=Te?Te.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=Math.min(de,te)/2,pe=te/2,Se=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,Se-le)).add(new go.PathSegment(go.PathSegment.Line,te,Se-le)).add(new go.PathSegment(go.PathSegment.Line,te,Se+le)).add(new go.PathSegment(go.PathSegment.Line,pe+le,Se+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,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se+le)).add(new go.PathSegment(go.PathSegment.Line,0,Se-le)).add(new go.PathSegment(go.PathSegment.Line,pe-le,Se-le).close()))}),go.Shape.setFigureParameter("ThickX",0,new qt("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Te,te,ne){var de=Te?Te.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,Se=ne/2,Ae=Math.atan2(ne,te),Me=de-Math.min(Math.cos(Ae)*de/2,pe),ke=de-Math.min(Math.sin(Ae)*de/2,Se),le=new go.Geometry,st=new go.PathFigure(Me,0,!0);return le.add(st),st.add(new go.PathSegment(go.PathSegment.Line,pe,.2*ne)),st.add(new go.PathSegment(go.PathSegment.Line,te-Me,0)),st.add(new go.PathSegment(go.PathSegment.Line,te,ke)),st.add(new go.PathSegment(go.PathSegment.Line,.8*te,Se)),st.add(new go.PathSegment(go.PathSegment.Line,te,ne-ke)),st.add(new go.PathSegment(go.PathSegment.Line,te-Me,ne)),st.add(new go.PathSegment(go.PathSegment.Line,pe,.8*ne)),st.add(new go.PathSegment(go.PathSegment.Line,Me,ne)),st.add(new go.PathSegment(go.PathSegment.Line,0,ne-ke)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),st.add(new go.PathSegment(go.PathSegment.Line,0,ke).close()),le}}),go.Shape.setFigureParameter("ThinX",0,new qt("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Te,te,ne){var de=Te?Te.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 qt("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Te,te,ne){var de=Te?Te.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 qt("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Te,te,ne){var de=Te?Te.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(Te,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Ue*te,0,te,(.5-Ue/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Ue/2)*ne,Ue*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Te,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(Te,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(Te,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(Te,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,Se=.3,Ae=0,Me=pe*Ue;return le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+pe+Ae)*ne,(.5-pe+Se)*te,(.5+Me+Ae)*ne,(.5-Me+Se)*te,(.5+pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+Se)*te,(.5+Ae)*ne,(.5+Me+Se)*te,(.5+pe+Ae)*ne,(.5+pe+Se)*te,(.5+Me+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-pe+Ae)*ne,(1-.5+pe+Se)*te,(.5-Me+Ae)*ne,(.5+Me+Se)*te,(.5-pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Me+Se)*te,(.5-pe+Ae)*ne,(.5-pe+Se+.05)*te,(.5-Me+Ae-.02)*ne)),pe=.2,Se=0,Ae=-.3,Me=pe*Ue,le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+Se)*te,(.5+Ae)*ne,(.5+Me+Se)*te,(.5+pe+Ae)*ne,(.5+pe+Se)*te,(.5+Me+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-pe+Ae)*ne,(1-.5+pe+Se)*te,(.5-Me+Ae)*ne,(.5+Me+Se)*te,(.5-pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+Se)*te,(.5+Ae)*ne,(.5-Me+Se)*te,(.5-pe+Ae)*ne,(.5-pe+Se)*te,(.5-Me+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Me+Se)*te,(.5+pe+Ae)*ne,(.5-pe+Se)*te,(.5+Me+Ae)*ne,(.5-Me+Se)*te,(.5+pe+Ae)*ne)),pe=.2,Se=-.3,Ae=0,Me=pe*Ue,le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-pe+Ae)*ne,(1-.5+pe+Se-.05)*te,(.5-Me+Ae-.02)*ne,(.5+Me+Se)*te,(.5-pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+Se)*te,(.5+Ae)*ne,(.5-Me+Se)*te,(.5-pe+Ae)*ne,(.5-pe+Se)*te,(.5-Me+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+pe+Ae)*ne,(.5-pe+Se)*te,(.5+Me+Ae)*ne,(.5-Me+Se)*te,(.5+pe+Ae)*ne)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Me+Se)*te,(.5+pe+Ae)*ne,(.5+pe+Se)*te,(.5+Me+Ae)*ne).close()),de.setSpots(.06,.33,.93,.68),de}),go.Shape.defineFigureGenerator("YinYang",function(Te,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,Se=.5,Ae=.25;return le.add(new go.PathSegment(go.PathSegment.Move,(Se+pe)*te,Ae*ne)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*Se,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((Se+pe)*te,Ae*ne,!0),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*Se,ne*Ae,pe*te,pe*te).close()),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Peace",function(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=.5,Se=.5,Ae=.5,Me=new go.PathFigure(Se*te,(Ae-pe)*ne);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-pe)*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),pe=.4,le=Ue*.4;var ke=ue(),st=ue(),dt=ue(),xt=ue();Nt(Se,Ae-pe,Se+le,Ae-pe,Se+pe,Ae-le,Se+pe,Ae,.42,ke,st,dt,xt,xt);var ut=ue(),It=ue(),Et=ue();Nt(Se,Ae-pe,Se+le,Ae-pe,Se+pe,Ae-le,Se+pe,Ae,.58,xt,xt,Et,ut,It);var Tt=ue(),Yt=ue(),hn=ue();Nt(Se,Ae+pe,Se-le,Ae+pe,Se-pe,Ae+le,Se-pe,Ae,.42,Tt,Yt,hn,xt,xt);var vi=ue(),ui=ue(),Bn=ue();return Nt(Se,Ae+pe,Se-le,Ae+pe,Se-pe,Ae+le,Se-pe,Ae,.58,xt,xt,Bn,vi,ui),Me.add(new go.PathSegment(go.PathSegment.Move,Bn.x*te,Bn.y*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,vi.x*te,vi.y*ne,ui.x*te,ui.y*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,dt.x*te,dt.y*ne,ke.x*te,ke.y*ne,st.x*te,st.y*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,Bn.x*te,Bn.y*ne).close()),Me.add(new go.PathSegment(go.PathSegment.Move,hn.x*te,hn.y*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,Et.x*te,Et.y*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,ut.x*te,ut.y*ne,It.x*te,It.y*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,hn.x*te,hn.y*ne,Tt.x*te,Tt.y*ne,Yt.x*te,Yt.y*ne).close()),et(ke),et(st),et(dt),et(xt),et(ut),et(It),et(Et),et(Tt),et(Yt),et(hn),et(vi),et(ui),et(Bn),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Fragile",function(Te,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 qt("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Te,te,ne){var de=Te?Te.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.4,pe=.4,Se=.5,Ae=.5,Me=ue(),ke=ue(),st=ue(),dt=ue(),xt=new go.PathFigure((Se-pe)*te,Ae*ne,!1);de.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne)),Nt(Se,Ae-pe,Se+le,Ae-pe,Se+pe,Ae-le,Se+pe,Ae,.44,st,dt,ke,Me,Me),xt.add(new go.PathSegment(go.PathSegment.Bezier,ke.x*te,ke.y*ne,st.x*te,st.y*ne,dt.x*te,dt.y*ne));var ut=Ee(ke.x,ke.y);Nt(Se,Ae-pe,Se+le,Ae-pe,Se+pe,Ae-le,Se+pe,Ae,.56,Me,Me,ke,st,dt);var It=Ee(ke.x,ke.y);xt.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.95*.9)*te,ut.y*.1*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,.85*te,ut.y*.1*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),xt.add(new go.PathSegment(go.PathSegment.Line,te,0)),xt.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*te,.15*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,(It.x*.1+.9)*te,(It.y*.1+.05*.9)*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,It.x*te,It.y*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,st.x*te,st.y*ne,dt.x*te,dt.y*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,(Se-le)*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne)),pe=.35,le=Ue*.35;var Et=new go.PathFigure(Se*te,(Ae-pe)*ne,!1);de.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-pe)*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne));var Tt=new go.PathFigure((Se-pe)*te,Ae*ne,!1);return de.add(Tt),et(Me),et(ke),et(st),et(dt),et(ut),et(It),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(Te,te,ne){var de=new go.Geometry,le=.375,pe=0,Se=-.125,Ae=le*Ue,Me=new go.PathFigure((.525+pe)*te,(.5+le+Se)*ne,!1);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+pe)*te,(.5+Se)*ne,(.5+Ae+pe)*te,(.5+le+Se)*ne,(.5+le+pe)*te,(.5+Ae+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-le+Se)*ne,(1-.5+le+pe)*te,(.5-Ae+Se)*ne,(.5+Ae+pe)*te,(.5-le+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+Se)*ne,(.5-Ae+pe)*te,(.5-le+Se)*ne,(.5-le+pe)*te,(.5-Ae+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pe)*te,(.5+le+Se)*ne,(.5-le+pe)*te,(.5+Ae+Se)*ne,(.5-Ae+pe)*te,(.5+le+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),le=.325,pe=0,Se=-.125,Ae=le*Ue;var Me=new go.PathFigure((1-.5+le+pe)*te,(.5+Se)*ne,!1);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5+le+Se)*ne,(.5+le+pe)*te,(.5+Ae+Se)*ne,(.5+Ae+pe)*te,(.5+le+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+Se)*ne,(.5-Ae+pe)*te,(.5+le+Se)*ne,(.5-le+pe)*te,(.5+Ae+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-le+Se)*ne,(.5-le+pe)*te,(.5-Ae+Se)*ne,(.5-Ae+pe)*te,(.5-le+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+pe)*te,(.5+Se)*ne,(.5+Ae+pe)*te,(.5-le+Se)*ne,(1-.5+le+pe)*te,(.5-Ae+Se)*ne));var Me=new go.PathFigure((.525+pe)*te,(.5+le+Se)*ne,!1);return de.add(Me),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(Te,te,ne){var de=Te?Te.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(Te,te,ne){var de=Te?Te.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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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 qt("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new qt("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=.3);var le=Te?Te.parameter2:NaN;isNaN(le)&&(le=.3);var pe=(1-de)*te,Se=(.5-le/2)*ne,Ae=(.5+le/2)*ne,Me=new go.Geometry,ke=new go.PathFigure(0,Se,!0);Me.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,pe,Se)),ke.add(new go.PathSegment(go.PathSegment.Line,pe,0)),ke.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,pe,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,pe,Ae)),ke.add(new go.PathSegment(go.PathSegment.Line,0,Ae).close()),Me.spot1=new go.Spot(0,Se/ne);var st=Lt(0,Ae/ne,1,Ae/ne,pe/te,1,1,.5,ue());return Me.spot2=new go.Spot(st.x,st.y),et(st),Me}),go.Shape.setFigureParameter("Arrow2",0,new qt("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new qt("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=30),de>te&&(de=te);var le=Te?Te.parameter2:NaN;isNaN(le)&&(le=30),le=Math.min(le,ne/2);var pe=te-de,Se=(ne-le)/2,Ae=Se+le,Me=new go.Geometry,ke=new go.PathFigure(0,Se,!0);Me.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,pe,Se)),ke.add(new go.PathSegment(go.PathSegment.Line,pe,0)),ke.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,pe,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,pe,Ae)),ke.add(new go.PathSegment(go.PathSegment.Line,0,Ae).close()),Me.spot1=new go.Spot(0,Se/ne);var st=Lt(0,Ae/ne,1,Ae/ne,pe/te,1,1,.5,ue());return Me.spot2=new go.Spot(st.x,st.y),et(st),Me}),go.Shape.defineFigureGenerator("Chevron",function(Te,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(Te,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 qt("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*ne,pe=(.5+de/2)*ne,Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.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 Me=Lt(0,.5,.3,0,0,le/ne,.1,le/ne,ue());return Se.spot1=new go.Spot(Me.x,Me.y),Me=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,Me),Se.spot2=new go.Spot(Me.x,Me.y),et(Me),Se}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new qt("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new qt("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=40);var le=Te?Te.parameter2:NaN;isNaN(le)&&(le=100);var pe=(ne-de)/2,Se=pe+de,Ae=(ne-le)/2,Me=Ae+le;(de>ne||le>ne)&&(le>de?(de=de*ne/le,pe=(ne-de)/2,Se=pe+de,Ae=0,Me=ne):(pe=0,Se=ne,Ae=0,Me=ne));var ke=new go.Geometry,st=new go.PathFigure(te,.5*ne,!0);ke.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,Me)),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),st.add(new go.PathSegment(go.PathSegment.Line,.3*te,Se)),st.add(new go.PathSegment(go.PathSegment.Line,.3*te,Me)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),st.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ae)),st.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),st.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,ue());return ke.spot1=new go.Spot(dt.x,dt.y),dt=Lt(.7,Me/ne,1,.5,0,Se/ne,1,Se/ne,dt),ke.spot2=new go.Spot(dt.x,dt.y),et(dt),ke}),go.Shape.setFigureParameter("IBeamArrow",0,new qt("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*ne,pe=(.5+de/2)*ne,Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.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()),Se.spot1=new go.Spot(0,le/ne);var Me=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ue());return Se.spot2=new go.Spot(Me.x,Me.y),et(Me),Se}),go.Shape.setFigureParameter("IBeamArrow2",0,new qt("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new qt("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=40);var le=Te?Te.parameter2:NaN;isNaN(le)&&(le=100);var pe=(ne-de)/2,Se=pe+de,Ae=(ne-le)/2,Me=Ae+le;(de>ne||le>ne)&&(le>de?(de=de*ne/le,pe=(ne-de)/2,Se=pe+de,Ae=0,Me=ne):(pe=0,Se=ne,Ae=0,Me=ne));var ke=new go.Geometry,st=new go.PathFigure(te,.5*ne,!0);ke.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,Me)),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,Me)),st.add(new go.PathSegment(go.PathSegment.Line,0,Me)),st.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ae)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),st.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae).close()),ke.spot1=new go.Spot(0,pe/ne);var dt=Lt(.7,Me/ne,1,.5,0,Se/ne,1,Se/ne,ue());return ke.spot2=new go.Spot(dt.x,dt.y),et(dt),ke}),go.Shape.setFigureParameter("Pointer",0,new qt("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Te,te,ne){var de=Te?Te.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 Se=Lt(.2,.65,1,.65,0,1,1,.5,ue());return le.spot2=new go.Spot(Se.x,Se.y),et(Se),le}),go.Shape.setFigureParameter("RoundedPointer",0,new qt("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Te,te,ne){var de=Te?Te.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 Se=Lt(0,.65,1,.65,0,1,1,.5,ue());return le.spot2=new go.Spot(Se.x,Se.y),et(Se),le}),go.Shape.setFigureParameter("SplitEndArrow",0,new qt("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=.4);var le=(.5-de/2)*ne,pe=(.5+de/2)*ne,Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.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()),Se.spot1=new go.Spot(.2,.3);var Me=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ue());return Se.spot2=new go.Spot(Me.x,Me.y),et(Me),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new qt("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=50);var le=(ne-de)/2,pe=le+de;de>ne&&(le=0,pe=ne);var Se=new go.Geometry,Ae=new go.PathFigure(te,.5*ne,!0);Se.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()),Se.spot1=new go.Spot(.2,le/ne);var Me=Lt(.7,1,1,.5,0,pe/ne,1,pe/ne,ue());return Se.spot2=new go.Spot(Me.x,Me.y),et(Me),Se}),go.Shape.setFigureParameter("SquareArrow",0,new qt("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Te,te,ne){var de=Te?Te.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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=Ue*.1,Se=new go.PathFigure(0,.9*ne,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+le)*te,ne)),Se.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(Te,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(Te,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(Te,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(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,pe=Ue*.5,Se=new go.PathFigure(0,de,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ue*de,(.5-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,1*te,de,(.5+pe)*te,0,1*te,Ue*de)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Ue*de,(.5+pe)*te,1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-de,(.5-pe)*te,1*ne,0,ne-Ue*de)),Se.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-Ue*de,(.5+pe)*te,2*de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,de,(.5-pe)*te,2*de,0,2*de-Ue*de)),le.spot1=new go.Spot(0,0,0,2*de),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder2",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,pe=Ue*.5,Se=new go.PathFigure(0,ne-de,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ue*de,(.5-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,de,(.5+pe)*te,0,te,Ue*de)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Ue*de,(.5+pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-de,(.5-pe)*te,ne,0,ne-Ue*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-Ue*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-Ue*de)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,0,-2*de),le}),go.Shape.defineFigureGenerator("Cylinder3",function(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,pe=Ue*.5,Se=new go.PathFigure(de,0,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te-de,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ue*de,0,te,(.5-pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ne,te,(.5+pe)*ne,te-Ue*de,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,de,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ue*de,ne,0,(.5+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-pe)*ne,Ue*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+Ue*de,0,2*de,(.5-pe)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,de,ne,2*de,(.5+pe)*ne,de+Ue*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(Te,te,ne){var de=Te?Te.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,pe=Ue*.5,Se=new go.PathFigure(te-de,0,!0);le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ue*de,0,te,(.5-pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-de,ne,te,(.5+pe)*ne,te-Ue*de,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,de,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ue*de,ne,0,(.5+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-pe)*ne,Ue*de,0)),Se.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-Ue*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-Ue*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(Te,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(Te,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(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=.2,pe=.1,Se=Ue*le,Ae=Ue*pe,Me=.5,ke=.1,st=new go.PathFigure(Me*te,(ke+pe)*ne,!0);de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(Me-le)*te,ke*ne,(Me-Se)*te,(ke+pe)*ne,(Me-le)*te,(ke+Ae)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-pe)*ne,(Me-le)*te,(ke-Ae)*ne,(Me-Se)*te,(ke-pe)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Me+le)*te,ke*ne,(Me+Se)*te,(ke-pe)*ne,(Me+le)*te,(ke-Ae)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke+pe)*ne,(Me+le)*te,(ke+Ae)*ne,(Me+Se)*te,(ke+pe)*ne));var dt=.05,xt=Ue*dt;Me=.05,ke=.25;var ut=new go.PathFigure(.5*te,.2*ne,!0);return de.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Me=.95,ke=.25,ut.add(new go.PathSegment(go.PathSegment.Bezier,(Me+dt)*te,ke*ne,(Me+xt)*te,(ke-dt)*ne,(Me+dt)*te,(ke-xt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),dt=.025,xt=Ue*dt,Me=.825,ke=.35,ut.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-dt)*ne,(Me+dt)*te,(ke-xt)*ne,(Me+xt)*te,(ke-dt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Me-dt)*te,ke*ne,(Me-xt)*te,(ke-dt)*ne,(Me-dt)*te,(ke-xt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),dt=.05,xt=Ue*dt,Me=.5,ke=.7,ut.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-dt)*ne,(Me+dt)*te,(ke-xt)*ne,(Me+xt)*te,(ke-dt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Me-dt)*te,ke*ne,(Me-xt)*te,(ke-dt)*ne,(Me-dt)*te,(ke-xt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),dt=.025,xt=Ue*dt,Me=.175,ke=.35,ut.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-dt)*ne,(Me+dt)*te,(ke-xt)*ne,(Me+xt)*te,(ke-dt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Me-dt)*te,ke*ne,(Me-xt)*te,(ke-dt)*ne,(Me-dt)*te,(ke-xt)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),dt=.05,xt=Ue*dt,Me=.05,ke=.25,ut.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-dt)*ne,(Me-dt)*te,(ke-xt)*ne,(Me-xt)*te,(ke-dt)*ne)),ut.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 qt("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Te,te,ne){var de=Te?Te.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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 Se=new go.PathFigure(0,le*ne,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,le*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,(1-le)*ne)),de}),go.Shape.defineFigureGenerator("Database",function(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=Ue*.1,Se=new go.PathFigure(te,.1*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+le)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*te,ne,0,(.9+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-pe)*ne,(.5-le)*te,0)),Se.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=Ue*.1,Se=new go.PathFigure(te,.1*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+le)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-le)*te,ne,0,(.9+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-pe)*ne,(.5-le)*te,0)),Se.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.parameter1:NaN;isNaN(le)?le=.2:le<.15&&(le=.15);var pe=Ue*.2,Se=new go.PathFigure(0,.2*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-pe)*ne,(.2-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+pe)*te,0,te,(.2-pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+pe)*ne,(.8+pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-pe)*te,ne,0,(.8+pe)*ne)),Se.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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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 Se=new go.PathFigure(0,le*ne,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,le*ne)),de}),go.Shape.defineFigureGenerator("Document",function(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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 Se=new go.PathFigure(le*te,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,le*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,te,le*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-le)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,(1-le)*ne)),de}),go.Shape.defineFigureGenerator("ExternalProcess",function(Te,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(Te,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(Te,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 Se=new go.PathFigure(te,.5*ne,!1);return de.add(Se),Se.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(Te,te,ne){var de=new go.Geometry,le=Te?Te.parameter1:NaN,pe=Te?Te.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.1);var Se=new go.PathFigure(0,0,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.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(Te,te,ne){var de=new go.Geometry,le=1/Math.SQRT2,pe=(1-1/Math.SQRT2)/2,Se=Ue*.5,Ae=.5,Me=new go.PathFigure(te,Ae*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,ne,te,(Ae+Se)*ne,(Ae+Se)*te,ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,0,Ae*ne,(Ae-Se)*te,ne,0,(Ae+Se)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,0,0,(Ae-Se)*ne,(Ae-Se)*te,0)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te,Ae*ne,(Ae+Se)*te,0,te,(Ae-Se)*ne));var ke=new go.PathFigure((pe+le)*te,(pe+le)*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,pe*te,pe*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,pe*te,(pe+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,(pe+le)*te,pe*ne)),de}),go.Shape.defineFigureGenerator("LinedDocument",function(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=.5,Se=new go.PathFigure(.5*te,ne,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-le)*te,ne,0,(pe+le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ne,(pe-le)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+le)*te,0,te,(pe-le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(pe+.1)*te,.9*ne,te,(pe+le)*ne,(pe+le)*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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(Te,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(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.parameter1:NaN;isNaN(le)&&(le=.1);var pe=1-le,Se=new go.PathFigure(0,0,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=.5,Se=new go.PathFigure(te,pe*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,te,(pe+le)*ne,(pe+le)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-le)*te,ne,0,(pe+le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ne,(pe-le)*te,0)),Se.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.parameter1:NaN,pe=Te?Te.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.3);var Se=new go.PathFigure(0,0,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Te,te,ne){var de=new go.Geometry,le=Te?Te.parameter1:NaN,pe=Te?Te.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(pe)&&(pe=.3);var Se=new go.PathFigure(0,0,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),de}),go.Shape.defineFigureGenerator("Procedure",function(Te,te,ne){var de=new go.Geometry,le=Te?Te.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 Se=new go.PathFigure((1-le)*te,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-le)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,le*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),de}),go.Shape.defineFigureGenerator("Process",function(Te,te,ne){var de=new go.Geometry,le=Te?Te.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 Se=new go.PathFigure(le*te,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Sort",function(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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 Se=new go.PathFigure(le*te,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-le)*te,0)),Se.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Te?Te.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(Te,te,ne){var de=new go.Geometry,le=Ue*.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(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=.5,Se=new go.PathFigure(te,pe*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,te,(pe+le)*ne,(pe+le)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-le)*te,ne,0,(pe+le)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-le)*ne,(pe-le)*te,0)),Se.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 Me=new go.PathFigure(.8*te,.75*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),de}),go.Shape.defineFigureGenerator("Ground",function(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.1,pe=.1,Se=.9,Ae=.5,Me=new go.PathFigure(.8*te,.5*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Me.add(new go.PathSegment(go.PathSegment.Line,0,0)),Me.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var ke=new go.PathFigure((Se+pe)*te,Ae*ne,!0);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,(Se-le)*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,(Se+le)*te,(Ae-pe)*ne,(Se+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(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=Ue*.4,Se=Ue*.1,Ae=.1,Me=.9,ke=.5,st=new go.PathFigure(.8*te,.5*ne,!0);de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+pe)*ne,(.4+le)*te,ne)),st.add(new go.PathSegment(go.PathSegment.Line,0,ne)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),st.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((Me+Ae)*te,ke*ne,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke+Ae)*ne,(Me+Ae)*te,(ke+Se)*ne,(Me+Se)*te,(ke+Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae)*te,ke*ne,(Me-Se)*te,(ke+Ae)*ne,(Me-Ae)*te,(ke+Se)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-Ae)*ne,(Me-Ae)*te,(ke-Se)*ne,(Me-Se)*te,(ke-Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae)*te,ke*ne,(Me+Se)*te,(ke-Ae)*ne,(Me+Ae)*te,(ke-Se)*ne)),de.spot1=new go.Spot(0,.05),de.spot2=new go.Spot(.55,.95),de}),go.Shape.defineFigureGenerator("NorGate",function(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*le,Se=0,Ae=.5,Me=new go.PathFigure(.8*te,.5*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(Se+pe)*te,(Ae-le)*ne,.7*te,(Ae-pe)*ne)),le=.1,pe=Ue*.1,Se=.9,Ae=.5;var ke=new go.PathFigure((Se-le)*te,Ae*ne,!0);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*te,Ae*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*te,Ae*ne,(Se-pe)*te,(Ae+le)*ne,(Se-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(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*le,Se=0,Ae=.5,Me=new go.PathFigure(0,0,!0);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(Se+pe+pe)*te,(Ae-le)*ne,.8*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(Ae+pe)*ne,(Se+pe+pe)*te,(Ae+le)*ne)),Me.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(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*le,Se=.2,Ae=.5,Me=new go.PathFigure(.1*te,0,!1);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var ke=new go.PathFigure(.8*te,.5*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(Se+pe)*te,(Ae-le)*ne,.7*te,(Ae-pe)*ne)),le=.1,pe=Ue*.1,Se=.9,Ae=.5;var st=new go.PathFigure((Se-le)*te,Ae*ne,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*te,Ae*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*te,Ae*ne,(Se-pe)*te,(Ae+le)*ne,(Se-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(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*le,Se=.2,Ae=.5,Me=new go.PathFigure(.1*te,0,!1);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var ke=new go.PathFigure(.2*te,0,!0);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(Se+pe)*te,(Ae-le)*ne,.9*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),ke.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(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=Ue*.1,pe=.1,Se=.1,Ae=.5,Me=new go.PathFigure((Se-le*.5)*te,ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-le)*te,ne,(Se-pe)*te,0)),Se=.3,Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+pe)*te,0,(Se+le)*te,ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-le)*te,ne,(Se-pe)*te,0)),Se=.5,Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+pe)*te,0,(Se+le)*te,ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-le)*te,ne,(Se-pe)*te,0)),Se=.7,Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+pe)*te,0,(Se+le)*te,ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-le)*te,ne,(Se-pe)*te,0)),Se=.9,Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le*.5)*te,ne,(Se+pe)*te,0,(Se+le)*te,ne)),de}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Te,te,ne){var de=new go.Geometry,le=Ue*.5,pe=.5,Se=.5,Ae=.5,Me=new go.PathFigure((Se-pe)*te,Ae*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,(Se+le)*te,(Ae-pe)*ne,(Se+pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,(Se-le)*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Move,(Se-pe+.1)*te,Ae*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe-.1)*te,Ae*ne,Se*te,(Ae-pe)*ne,Se*te,(Ae+pe)*ne)),de}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=te,pe=ne;te=te*.38,ne=ne*.6;var Se=Ue*.8,Ae=.8,Me=0,ke=.5,st=(le-te)/2,dt=(pe-ne)/2,xt=new go.PathFigure(Me*te+st,(ke+Ae)*ne+dt,!0);de.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae)*te+st,ke*ne+dt,(Me-Se)*te+st,(ke+Ae)*ne+dt,(Me-Ae)*te+st,(ke+Se)*ne+dt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke-Ae)*ne+dt,(Me-Ae)*te+st,(ke-Se)*ne+dt,(Me-Se)*te+st,(ke-Ae)*ne+dt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae+Se*.5)*te+st,ke*ne+dt,Me*te+st,(ke-Ae)*ne+dt,(Me-Ae+Se*.5)*te+st,(ke-Se)*ne+dt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke+Ae)*ne+dt,(Me-Ae+Se*.5)*te+st,(ke+Se)*ne+dt,Me*te+st,(ke+Ae)*ne+dt).close()),Se=Ue*.4,Ae=.4,Me=.2,ke=.5;var ut=new go.PathFigure(Me*te+st,(ke+Ae)*ne+dt,!0);de.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae)*te+st,ke*ne+dt,(Me-Se)*te+st,(ke+Ae)*ne+dt,(Me-Ae)*te+st,(ke+Se)*ne+dt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke-Ae)*ne+dt,(Me-Ae)*te+st,(ke-Se)*ne+dt,(Me-Se)*te+st,(ke-Ae)*ne+dt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae+Se*.5)*te+st,ke*ne+dt,Me*te+st,(ke-Ae)*ne+dt,(Me-Ae+Se*.5)*te+st,(ke-Se)*ne+dt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke+Ae)*ne+dt,(Me-Ae+Se*.5)*te+st,(ke+Se)*ne+dt,Me*te+st,(ke+Ae)*ne+dt).close()),Se=Ue*.2,Ae=.2,Me=.5,ke=.5;var It=new go.PathFigure((Me-Ae)*te+st,ke*ne+dt,!0);de.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke-Ae)*ne+dt,(Me-Ae)*te+st,(ke-Se)*ne+dt,(Me-Se)*te+st,(ke-Ae)*ne+dt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae)*te+st,ke*ne+dt,(Me+Se)*te+st,(ke-Ae)*ne+dt,(Me+Ae)*te+st,(ke-Se)*ne+dt)),It.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke+Ae)*ne+dt,(Me+Ae)*te+st,(ke+Se)*ne+dt,(Me+Se)*te+st,(ke+Ae)*ne+dt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Ae)*te+st,ke*ne+dt,(Me-Se)*te+st,(ke+Ae)*ne+dt,(Me-Ae)*te+st,(ke+Se)*ne+dt)),Se=Ue*.4,Ae=.4,Me=.8,ke=.5;var Et=new go.PathFigure(Me*te+st,(ke-Ae)*ne+dt,!0);de.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae)*te+st,ke*ne+dt,(Me+Se)*te+st,(ke-Ae)*ne+dt,(Me+Ae)*te+st,(ke-Se)*ne+dt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke+Ae)*ne+dt,(Me+Ae)*te+st,(ke+Se)*ne+dt,(Me+Se)*te+st,(ke+Ae)*ne+dt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae-Se*.5)*te+st,ke*ne+dt,Me*te+st,(ke+Ae)*ne+dt,(Me+Ae-Se*.5)*te+st,(ke+Se)*ne+dt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke-Ae)*ne+dt,(Me+Ae-Se*.5)*te+st,(ke-Se)*ne+dt,Me*te+st,(ke-Ae)*ne+dt).close()),Se=Ue*.8,Ae=.8,Me=1,ke=.5;var Tt=new go.PathFigure(Me*te+st,(ke-Ae)*ne+dt,!0);return de.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae)*te+st,ke*ne+dt,(Me+Se)*te+st,(ke-Ae)*ne+dt,(Me+Ae)*te+st,(ke-Se)*ne+dt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke+Ae)*ne+dt,(Me+Ae)*te+st,(ke+Se)*ne+dt,(Me+Se)*te+st,(ke+Ae)*ne+dt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Ae-Se*.5)*te+st,ke*ne+dt,Me*te+st,(ke+Ae)*ne+dt,(Me+Ae-Se*.5)*te+st,(ke+Se)*ne+dt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te+st,(ke-Ae)*ne+dt,(Me+Ae-Se*.5)*te+st,(ke-Se)*ne+dt,Me*te+st,(ke-Ae)*ne+dt).close()),de}),go.Shape.defineFigureGenerator("Email",function(Te,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(Te,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 Se=new go.PathFigure(.6*te,ne,!0,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),Se.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(Te,te,ne){var de=new go.Geometry,le=Ue*.4,pe=.4,Se=.5,Ae=.5,Me=ue(),ke=ue(),st=ue(),dt=ue();Nt(Se,Ae-pe,Se+le,Ae-pe,Se+pe,Ae-le,Se+pe,Ae,.5,Me,Me,ke,st,dt);var xt=Ee(ke.x,ke.y),ut=new go.PathFigure(ke.x*te,ke.y*ne,!0);de.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,st.x*te,st.y*ne,dt.x*te,dt.y*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,(Se-le)*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne)),Nt(Se-pe,Ae,Se-pe,Ae-le,Se-le,Ae-pe,Se,Ae-pe,.5,st,dt,ke,Me,Me),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke.x*te,ke.y*ne,st.x*te,st.y*ne,dt.x*te,dt.y*ne)),le=Ue*.3,pe=.3,Nt(Se-pe,Ae,Se-pe,Ae-le,Se-le,Ae-pe,Se,Ae-pe,.5,st,dt,ke,Me,Me),ut.add(new go.PathSegment(go.PathSegment.Line,ke.x*te,ke.y*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,Ae*ne,dt.x*te,dt.y*ne,st.x*te,st.y*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+pe)*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,Ae*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Nt(Se,Ae-pe,Se+le,Ae-pe,Se+pe,Ae-le,Se+pe,Ae,.5,Me,Me,ke,st,dt),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke.x*te,ke.y*ne,dt.x*te,dt.y*ne,st.x*te,st.y*ne).close());var ut=new go.PathFigure(.45*te,0,!0);return de.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),et(Me),et(ke),et(st),et(dt),et(xt),de.spot1=new go.Spot(.25,.45),de.spot2=new go.Spot(.75,.8),de}),go.Shape.defineFigureGenerator("Fallout",function(Te,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(Se,Ae,Me){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+Ae)*te,(.8+Me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+Ae)*te,(.5+Me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+Ae)*te,(.5+Me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+Ae)*te,(.8+Me)*ne).close())}return pe(le,0,0),pe(le,.4,0),pe(le,.2,-.3),de}),go.Shape.defineFigureGenerator("IrritationHazard",function(Te,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(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=.5,pe=0,Se=0,Ae=le*Ue,Me=.4*Math.SQRT2/2+.5,ke=.5-.5*Math.SQRT2/2,st=1,dt=.5,xt=.5,ut=0,It=new go.PathFigure(Me*te,(1-ke)*ne,!1);return de.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,st*te,dt*ne,st*te,.7*ne,st*te,dt*ne)),It.add(new go.PathSegment(go.PathSegment.Bezier,(xt+pe)*te,(ut+pe)*ne,(.5+le+pe)*te,(.5-Ae+pe)*ne,(.5+Ae+pe)*te,(.5-le+pe)*ne)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+pe)*te,(.5+Se)*ne,(.5-Ae+pe)*te,(.5-le+Se)*ne,(.5-le+pe)*te,(.5-Ae+Se)*ne)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pe)*te,.9*ne,(.5-le+pe)*te,(.5+Ae+Se)*ne,(.5-Ae+pe)*te,.9*ne)),It.add(new go.PathSegment(go.PathSegment.Move,(.25+pe)*te,.8*ne)),It.add(new go.PathSegment(go.PathSegment.Line,(.35+pe)*te,.9*ne)),It.add(new go.PathSegment(go.PathSegment.Line,(.2+pe)*te,.95*ne)),de}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Te,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(Te,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(Te,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 Se=new go.PathFigure(0,.5*ne,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),de}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Te,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(Te,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(Te,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(Te,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 Se=.5-.285,Ae=.5,Me=Se,ke=Math.PI/4,st=4*(1-Math.cos(ke))/(3*Math.sin(ke)),dt=st*.5,xt=Se,ut=Se,It=st*xt,Et=st*ut;pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xt)*te,Me*ne,(Ae-(It+xt)/2)*te,(Me+(ut+Et)/2)*ne,(Ae-xt)*te,(Me+Et)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Me-ut)*ne,(Ae-xt)*te,(Me-Et)*ne,(Ae-It)*te,(Me-ut)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xt)*te,Me*ne,(Ae+It)*te,(Me-ut)*ne,(Ae+xt)*te,(Me-Et)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(Ae+xt)*te,(Me+Et)*ne,(Ae+(It+xt)/2)*te,(Me+(ut+Et)/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 Tt=new go.PathFigure(.2*te,ne,!1);de.add(Tt),Tt.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(Te,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(Te,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(Te,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 Se=new go.PathFigure(.1*te,ne,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),de}),go.Shape.defineFigureGenerator("Caution",function(Te,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(Te,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 Se=new go.PathFigure(.675*te,.575*ne,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),de}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*.5,Se=new go.PathFigure(te,le*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*te,ne,te,(le+pe)*ne,(le+pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ne,(le-pe)*te,ne,0,(le+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*te,0,0,(le-pe)*ne,(le-pe)*te,0)),Se.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(Te,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(Te,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 Se=new go.PathFigure(0,.5*ne,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),de}),go.Shape.defineFigureGenerator("Component",function(Te,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 Se=new go.PathFigure(0,.6*ne,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),de}),go.Shape.defineFigureGenerator("Boat Shipment",function(Te,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(Te,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(Te,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(Te,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(Te,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 Se=.1,Ae=Ue*.1,Me=.2,ke=.9,st=new go.PathFigure((Me-Se)*te,ke*ne,!0);de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-Se)*ne,(Me-Se)*te,(ke-Ae)*ne,(Me-Ae)*te,(ke-Se)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Se)*te,ke*ne,(Me+Ae)*te,(ke-Se)*ne,(Me+Se)*te,(ke-Ae)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke+Se)*ne,(Me+Se)*te,(ke+Ae)*ne,(Me+Ae)*te,(ke+Se)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Se)*te,ke*ne,(Me-Ae)*te,(ke+Se)*ne,(Me-Se)*te,(ke+Ae)*ne).close()),Se=.1,Ae=Ue*.1,Me=.8,ke=.9;var dt=new go.PathFigure((Me-Se)*te,ke*ne,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke-Se)*ne,(Me-Se)*te,(ke-Ae)*ne,(Me-Ae)*te,(ke-Se)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Me+Se)*te,ke*ne,(Me+Ae)*te,(ke-Se)*ne,(Me+Se)*te,(ke-Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Me*te,(ke+Se)*ne,(Me+Se)*te,(ke+Ae)*ne,(Me+Ae)*te,(ke+Se)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Me-Se)*te,ke*ne,(Me-Ae)*te,(ke+Se)*ne,(Me-Se)*te,(ke+Ae)*ne).close()),de}),go.Shape.defineFigureGenerator("KanbanPost",function(Te,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(Te,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 Se=new go.PathFigure(.5*te,.8*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),Se.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 Me=.1,ke=Ue*.1,st=.1,dt=.9,xt=new go.PathFigure((st-Me)*te,dt*ne,!0);de.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,st*te,(dt-Me)*ne,(st-Me)*te,(dt-ke)*ne,(st-ke)*te,(dt-Me)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(st+Me)*te,dt*ne,(st+ke)*te,(dt-Me)*ne,(st+Me)*te,(dt-ke)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,st*te,(dt+Me)*ne,(st+Me)*te,(dt+ke)*ne,(st+ke)*te,(dt+Me)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(st-Me)*te,dt*ne,(st-ke)*te,(dt+Me)*ne,(st-Me)*te,(dt+ke)*ne)),Me=.1,ke=Ue*.1,st=.4,dt=.9;var ut=new go.PathFigure((st-Me)*te,dt*ne,!0);return de.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,st*te,(dt-Me)*ne,(st-Me)*te,(dt-ke)*ne,(st-ke)*te,(dt-Me)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(st+Me)*te,dt*ne,(st+ke)*te,(dt-Me)*ne,(st+Me)*te,(dt-ke)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,st*te,(dt+Me)*ne,(st+Me)*te,(dt+ke)*ne,(st+ke)*te,(dt+Me)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(st-Me)*te,dt*ne,(st-ke)*te,(dt+Me)*ne,(st-Me)*te,(dt+ke)*ne)),de}),go.Shape.defineFigureGenerator("RailShipment",function(Te,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 Se=new go.PathFigure(.55*te,.4*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var st=.05,dt=Ue*.05,xt=.175,ut=.95,Ae=new go.PathFigure((xt-st)*te,ut*ne,!0);de.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut-st)*ne,(xt-st)*te,(ut-dt)*ne,(xt-dt)*te,(ut-st)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(xt+st)*te,ut*ne,(xt+dt)*te,(ut-st)*ne,(xt+st)*te,(ut-dt)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut+st)*ne,(xt+st)*te,(ut+dt)*ne,(xt+dt)*te,(ut+st)*ne)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(xt-st)*te,ut*ne,(xt-dt)*te,(ut+st)*ne,(xt-st)*te,(ut+dt)*ne));var st=.05,dt=Ue*.05,xt=.375,ut=.95,Me=new go.PathFigure((xt-st)*te,ut*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut-st)*ne,(xt-st)*te,(ut-dt)*ne,(xt-dt)*te,(ut-st)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xt+st)*te,ut*ne,(xt+dt)*te,(ut-st)*ne,(xt+st)*te,(ut-dt)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut+st)*ne,(xt+st)*te,(ut+dt)*ne,(xt+dt)*te,(ut+st)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(xt-st)*te,ut*ne,(xt-dt)*te,(ut+st)*ne,(xt-st)*te,(ut+dt)*ne));var st=.05,dt=Ue*.05,xt=.625,ut=.95,ke=new go.PathFigure((xt-st)*te,ut*ne,!0);de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut-st)*ne,(xt-st)*te,(ut-dt)*ne,(xt-dt)*te,(ut-st)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xt+st)*te,ut*ne,(xt+dt)*te,(ut-st)*ne,(xt+st)*te,(ut-dt)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut+st)*ne,(xt+st)*te,(ut+dt)*ne,(xt+dt)*te,(ut+st)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(xt-st)*te,ut*ne,(xt-dt)*te,(ut+st)*ne,(xt-st)*te,(ut+dt)*ne));var st=.05,dt=Ue*.05,xt=.825,ut=.95,It=new go.PathFigure((xt-st)*te,ut*ne,!0);de.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut-st)*ne,(xt-st)*te,(ut-dt)*ne,(xt-dt)*te,(ut-st)*ne)),It.add(new go.PathSegment(go.PathSegment.Bezier,(xt+st)*te,ut*ne,(xt+dt)*te,(ut-st)*ne,(xt+st)*te,(ut-dt)*ne)),It.add(new go.PathSegment(go.PathSegment.Bezier,xt*te,(ut+st)*ne,(xt+st)*te,(ut+dt)*ne,(xt+dt)*te,(ut+st)*ne)),It.add(new go.PathSegment(go.PathSegment.Bezier,(xt-st)*te,ut*ne,(xt-dt)*te,(ut+st)*ne,(xt-st)*te,(ut+dt)*ne).close());var Et=new go.PathFigure(0,ne,!1);return de.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),de}),go.Shape.defineFigureGenerator("Warehouse",function(Te,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 Se=new go.PathFigure(.15*te,ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var Ae=.05,Me=Ue*.05,ke=.35,st=.775,dt=new go.PathFigure((ke-Ae)*te,st*ne,!0);return de.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(st-Ae)*ne,(ke-Ae)*te,(st-Me)*ne,(ke-Me)*te,(st-Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ae)*te,st*ne,(ke+Me)*te,(st-Ae)*ne,(ke+Ae)*te,(st-Me)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ke*te,(st+Ae)*ne,(ke+Ae)*te,(st+Me)*ne,(ke+Me)*te,(st+Ae)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ae)*te,st*ne,(ke-Me)*te,(st+Ae)*ne,(ke-Ae)*te,(st+Me)*ne).close()),de}),go.Shape.defineFigureGenerator("ControlCenter",function(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=.3,pe=Ue*.3,Se=.5,Ae=.7,Me=new go.PathFigure((Se-le)*te,Ae*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*te,Ae*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*te,Ae*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne));var ke=new go.PathFigure(0,.7*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),de}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Te,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(Te,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(Te,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(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*.5,Se=.5,Ae=.5,Me=new go.PathFigure((Se-le)*te,Ae*ne,!0);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*te,Ae*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*te,Ae*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne));var ke=new go.PathFigure(.15*te,.5*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),de}),go.Shape.defineFigureGenerator("Flag",function(Te,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(Te,te,ne){var de=new go.Geometry,le=.5,pe=Ue*.5,Se=.5,Ae=.5,Me=new go.PathFigure((Se-le)*te,Ae*ne,!1);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*te,Ae*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*te,Ae*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne).close()),le=.05,pe=Ue*.05,Se=.5,Ae=.8;var ke=new go.PathFigure((Se-le)*te,Ae*ne,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae-le)*ne,(Se-le)*te,(Ae-pe)*ne,(Se-pe)*te,(Ae-le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+le)*te,Ae*ne,(Se+pe)*te,(Ae-le)*ne,(Se+le)*te,(Ae-pe)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(Ae+le)*ne,(Se+le)*te,(Ae+pe)*ne,(Se+pe)*te,(Ae+le)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-le)*te,Ae*ne,(Se-pe)*te,(Ae+le)*ne,(Se-le)*te,(Ae+pe)*ne).close()),ke.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),ke.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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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(Te,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 Se=new go.PathFigure(.402*te,.85*ne,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),Se.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 Me=new go.PathFigure(.5*te,.1*ne,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),Me.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),de}),go.Shape.defineFigureGenerator("Staircase",function(Te,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(Te,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 Se=new go.PathFigure(te*.408,ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),Se.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),Se.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 Me=new go.PathFigure(te*.816,ne,!0);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),Me.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),Me.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),de}),go.Shape.defineFigureGenerator("PC",function(Te,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 Se=new go.PathFigure(te*.055,.13*ne,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),Se.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 Me=new go.PathFigure(te*1,0,!0);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),Me.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),de}),go.Shape.defineFigureGenerator("Plane",function(Te,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(Te,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(Te,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 Se=new go.PathFigure(te*.11,ne*.1,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),Se.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 Me=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),Me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),Me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),de}),go.Shape.defineFigureGenerator("FloppyDisk",function(Te,te,ne){var de=new go.Geometry,le=8,pe=le*Ue,Se=new go.PathFigure(le,0,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-le)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-le,ne,te,ne-pe,te-pe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,le,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-le,pe,ne,0,ne-pe)),Se.add(new go.PathSegment(go.PathSegment.Line,0,le)),Se.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 Me=new go.PathFigure(te*.83,ne*1,!1);de.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),Me.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var ke=new go.PathFigure(te*.78,ne*.05,!1);return de.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),ke.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),de}),go.Shape.defineFigureGenerator("SpeechBubble",function(Te,te,ne){var de=Te?Te.parameter1:NaN;(isNaN(de)||de<0)&&(de=15),de=Math.min(de,te/3),de=Math.min(de,ne/3);var le=de*Ue,pe=ne*.8,Se=new go.Geometry,Ae=new go.PathFigure(de,0,!0);return Se.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?(Se.spot1=new go.Spot(0,0,le,le),Se.spot2=new go.Spot(1,.8,-le,-le)):(Se.spot1=go.Spot.TopLeft,Se.spot2=new go.Spot(1,.8)),Se}),go.Shape.defineFigureGenerator("Repeat",function(Te,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(Te,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(Te,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 Se=new go.PathFigure(te*.28,ne*.37,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),de}),go.Shape.defineFigureGenerator("Beaker",function(Te,te,ne){var de=new go.Geometry,le=15,pe=le*Ue,Se=new go.PathFigure(te*.62,ne*.475,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-le)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-le,ne,te,ne-pe,te-pe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,le,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-le,pe,ne,0,ne-pe)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),Se.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(Te,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 Se=new go.PathFigure(te*.4,ne*0,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),Se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),de}),go.Shape.defineFigureGenerator("Bin",function(Te,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(Te,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 Se=new go.PathFigure(te*.5,ne*0,!0);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),de}),go.Shape.defineFigureGenerator("EmptyDrink",function(Te,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(Te,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(Te,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")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var qt={},kn="5.0",Ee={},ue=null,et=!1,Lt=!1,Nt=null,Bt=!1,vt=null,Ue=null,bt=0;bt<arguments.length;bt++){var Ct=arguments[bt];if(Ct!==null)switch(typeof Ct){case"number":kn=Ct.toFixed(1);break;case"string":Ct.match(new RegExp("^[0-9]\\.[0-9]+$"))?kn=Ct:Nt=Ct;break;case"object":typeof Ct.is3D!="undefined"?ue=Ct:Ee=Ct;break;case"boolean":et=Ct,Lt=!0;break}}ue===null&&(ue={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ee.material_id!==void 0&&!Lt&&(et=!0)),Nt!==null&&Ee.id===void 0&&(Ee.id=Nt);var yt="",Zt="",Ot=!1,Ut=null,Te=null,te=null,ne=!1,de=null,le=null,pe=null,Se=null,Ae=null;Ee.height!==void 0&&(Ee.height=Math.round(Ee.height)),Ee.width!==void 0&&(Ee.width=Math.round(Ee.width));var Me=function(nn){return parseFloat(nn)>4?parseFloat(nn):5};qt.setHTML5Codebase=function(nn,vn){Ue=nn,gn(nn,vn)},qt.setJavaCodebase=qt.setJavaCodebaseVersion=qt.isCompiledInstalled=qt.setPreCompiledScriptPath=qt.setPreCompiledResourcePath=function(){},qt.setHTML5CodebaseVersion=function(nn,vn){var An=parseFloat(nn);if(An!==NaN&&An<5){console.log("The GeoGebra HTML5 codebase version "+An+" is deprecated. Using version latest instead.");return}vt=nn,ze(nn,vn)},qt.getHTML5CodebaseVersion=function(){return Te},qt.getParameters=function(){return Ee},qt.setFontsCSSURL=function(nn){Se=nn},qt.setGiacJSURL=function(nn){},qt.setJNLPFile=function(nn){yt=nn},qt.setJNLPBaseDir=function(nn){},qt.inject=function(){function nn(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var vn="auto",An=Ee.id,Si,Vn=!1,Mi=0;Mi<arguments.length;Mi++){var pt=arguments[Mi];typeof pt=="string"?(pt=pt.toLowerCase(),pt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?vn=pt:An=arguments[Mi]):typeof pt=="boolean"?Vn=pt:pt instanceof HTMLElement&&(Si=pt)}ht();function ht(){if(!Bt){setTimeout(ht,200);return}vn=di(vn);var dn=Si||document.getElementById(An);if(!dn){console.log("possibly bug on ajax loading? ");return}if(qt.removeExistingApplet(dn,!1),Ee.width===void 0&&dn.clientWidth&&(Ee.width=dn.clientWidth),Ee.height===void 0&&dn.clientHeight&&(Ee.height=dn.clientHeight),!(Ee.width&&Ee.height)&&vn==="html5"&&(delete Ee.width,delete Ee.height),Ut=vn,vn==="screenshot")Yt(dn,Ee);else{var Oe=!1;Ee.hasOwnProperty("playButton")&&Ee.playButton||Ee.hasOwnProperty("clickToLoad")&&Ee.clickToLoad?Oe=!0:Ee.hasOwnProperty("playButtonAutoDecide")&&Ee.playButtonAutoDecide&&(Oe=(!ke()||nn())&&st()),Oe?(Ut="screenshot",vi(dn,Ee,Vn,vn)):Tt(dn,Ee,Vn)}}};function ke(){try{return window.self!==window.top}catch(nn){return!0}}function st(){return Ee.hasOwnProperty("screenshotGenerator")&&Ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}qt.getViews=function(){return ue},qt.isJavaInstalled=function(){return!1};var dt=function(nn){var vn=function(Mi){var pt=JSON.parse(Mi),ht=function(Ce){return Ce.type=="G"||Ce.type=="E"},dn=pt.elements?pt.elements.filter(ht)[0]:pt;if(!dn||!dn.url){An();return}Ee.fileName=dn.url,xt(dn.settings||{}),ue.is3D=!0;var Oe="https://www.geogebra.org/images/";qt.setPreviewImage(de||dn.previewUrl,Oe+"GeoGebra_loading.png",Oe+"applet_play.png"),nn()},An=function(){Ee.onError&&Ee.onError(),Xn("Error: Fetching material (id "+Ee.material_id+") failed.",Ee)},Si=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Vn="/materials/"+Ee.material_id+"?scope=basic";ut("https://"+Si+"/api/proxy.php?path="+encodeURIComponent(Vn),vn,An)};function xt(nn){var vn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(An){nn[An]=!!nn[An]}),vn.forEach(function(An){Ee[An]===void 0&&nn[An]!==void 0&&(Ee[An]=nn[An])}),Ee.showToolBarHelp===void 0&&(Ee.showToolBarHelp=Ee.showToolBar)}function ut(nn,vn,An){var Si=new XMLHttpRequest;Si.open("GET",nn),Si.onload=function(){vn(Si.responseText)},Si.onerror=An,Si.send()}qt.isHTML5Installed=function(){return!0},qt.getLoadedAppletType=function(){return Ut},qt.setPreviewImage=function(nn,vn,An){de=nn,le=vn,pe=An},qt.removeExistingApplet=function(nn,vn){var An;typeof nn=="string"&&(nn=document.getElementById(nn)),Ut=null;var Si=null;for(An=0;An<nn.childNodes.length;An++){var Vn=nn.childNodes[An],Mi=Vn.className;Mi==="applet_screenshot"?vn?(Vn.style.display="block",Ut="screenshot"):Vn.style.display="none":Mi!=="applet_scaler prerender"&&(nn.removeChild(Vn),Si=Mi&&Mi.indexOf("appletParameters")!=-1?Vn.id:null,An--)}var pt=Ee.id!==void 0?Ee.id:Si,ht=window[pt];ht&&typeof ht.getBase64=="function"&&(ht.remove(),window[pt]=null)},qt.refreshHitPoints=function(){if(Me(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var nn=qt.getAppletObject();return nn&&typeof nn.recalculateEnvironments=="function"?(nn.recalculateEnvironments(),!0):!1},qt.startAnimation=function(){var nn=qt.getAppletObject();return nn&&typeof nn.startAnimation=="function"?(nn.startAnimation(),!0):!1},qt.stopAnimation=function(){var nn=qt.getAppletObject();return nn&&typeof nn.stopAnimation=="function"?(nn.stopAnimation(),!0):!1},qt.getAppletObject=function(){var nn=Ee.id!==void 0?Ee.id:"ggbApplet";return window[nn]},qt.resize=function(){};var It=function(nn,vn,An){var Si=document.createElement("param");Si.setAttribute("name",vn),Si.setAttribute("value",An),nn.appendChild(Si)},Et=function(nn){return nn&&nn!=="false"},Tt=function(nn,vn,An){Me(Te)<=4.2&&(An=!0);var Si=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Te||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Si=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Vn=document.createElement("div");Vn.classList.add("appletParameters","notranslate");var Mi=vn.width,pt=vn.height;if(vn.disableAutoScale=vn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():vn.disableAutoScale,vn.width!==void 0)if(Me(Te)<=4.4)Et(vn.showToolBar)&&(vn.height-=7),Et(vn.showAlgebraInput)&&(vn.height-=37),vn.width<605&&Et(vn.showToolBar)&&(vn.width=605,Mi=605);else{var ht=100;(Et(vn.showToolBar)||Et(vn.showMenuBar))&&(vn.hasOwnProperty("customToolBar")&&(vn.customToolbar=vn.customToolBar),ht=Et(vn.showMenuBar)?245:155),Mi<ht&&(vn.width=ht,Mi=ht)}Vn.style.border="none",Vn.style.display="inline-block";for(var dn in vn)vn.hasOwnProperty(dn)&&dn!=="appletOnLoad"&&Vn.setAttribute("data-param-"+dn,vn[dn]);Se&&Vn.setAttribute("data-param-fontscssurl",Se),qt.resize=function(){GGBAppletUtils.responsiveResize(nn,vn)},window.addEventListener("resize",function(pn){qt.resize()});var Oe=typeof vn.appletOnLoad=="function"?vn.appletOnLoad:function(){};if(!An&&vn.width!==void 0){vn.hasOwnProperty("showSplash")||Vn.setAttribute("data-param-showSplash","false");var Ce=nn.querySelector(".applet_scaler.prerender"),Pe=Ce!==null;if(Pe)var Ie=Ce.querySelector(".ggb_preview");else{var Ie=Bn(Mi,pt,vn.borderColor,!1);Ce=document.createElement("div"),Ce.className="applet_scaler",Ce.style.position="relative",Ce.style.display="block",Ce.style.width=Mi+"px",Ce.style.height=pt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ce,"66%"),Me(Te)>=5?(vn.appletOnLoad=function(pn){var mn=nn.querySelector(".ggb_preview");mn&&mn.parentNode.removeChild(mn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ce),window.GGBT_wsf_view&&$(window).trigger("resize"),Oe(pn)},Pe||Ce.appendChild(Ie)):Vn.appendChild(Ie),Ce.appendChild(Vn),Pe||nn.appendChild(Ce),setTimeout(function(){qt.resize()},1)}else{var Ke=document.createElement("div");Ke.className="applet_scaler",Ke.style.position="relative",Ke.style.display="block",Ke.appendChild(Vn),nn.appendChild(Ke),vn.appletOnLoad=function(pn){qt.resize(),Oe(pn)}}function De(pn,mn){mn&&typeof mn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(pn,mn.appletOnLoad):renderGGBElement(pn),Xn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mn)}function tt(pn,mn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:pn,params:mn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gn){De(Gn.article,Gn.params)}),html5AppletsToProcess=null)},Me(Te)<5&&(pn.className+=" geogebraweb")):De(pn,mn)}if(Si){scriptLoadStarted=!0;for(var He=0;He<Vn.childNodes.length;He++){var mt=Vn.childNodes[He].tagName;mt==="TABLE"&&(Vn.removeChild(Vn.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var Wt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Wt!=null&&Wt.parentNode.removeChild(Wt)}var kt=document.createElement("script"),yn=function(){tt(Vn,vn)};kt.src=Zt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Te,ggbHTML5LoadedScript=kt.src,Xn("GeoGebra HTML5 codebase loaded: '"+Zt+"'.",vn),!Ue&&(!vt||vt=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),yn()):Zt.requirejs?__webpack_require__.e(4184).then(function(){var pn=[__webpack_require__(74620)];yn.apply(null,pn)}.bind(this)).catch(__webpack_require__.oe):(kt.onload=yn,nn.appendChild(kt))}else tt(Vn,vn);vn.height=pt,vn.width=Mi},Yt=function(nn,vn,An){var Si=Bn(vn.width,vn.height,vn.borderColor,An),Vn=document.createElement("div");Vn.style.position="relative",Vn.style.display="block",Vn.style.width=vn.width+"px",Vn.style.height=vn.height+"px",Vn.className="applet_screenshot applet_scaler"+(An?" applet_screenshot_play":""),Vn.appendChild(Si);var Mi=GGBAppletUtils.getScale(vn,nn,An);An?(nn.appendChild(ui()),window.GGBT_wsf_view||(nn.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Vn,"66%"),nn.appendChild(Vn),Mi!==1&&!isNaN(Mi)&&(GGBAppletUtils.scaleElement(Vn,Mi),Vn.style.width=vn.width+"px",Vn.style.height=vn.height+"px",Vn.parentNode.style.width=vn.width*Mi+"px",Vn.parentNode.style.height=vn.height*Mi+"px"),qt.resize=function(){hn(nn,Si,Vn,An)},window.addEventListener("resize",function(pt){qt.resize()}),qt.resize()};function hn(nn,vn,An,Si){if(nn.contains(vn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(nn.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(nn)}var Vn=GGBAppletUtils.getScale(Ee,nn,Si);An.parentNode!==null&&(!isNaN(Vn)&&Vn!==1?(GGBAppletUtils.scaleElement(An,Vn),An.parentNode.style.width=Ee.width*Vn+"px",An.parentNode.style.height=Ee.height*Vn+"px"):(GGBAppletUtils.scaleElement(An,1),An.parentNode.style.width=Ee.width+"px",An.parentNode.style.height=Ee.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()}}qt.onExitFullscreen=function(nn,vn){vn.appendChild(nn)};var vi=function(nn,vn,An,Si){Yt(nn,vn,!0);for(var Vn=function(){var ht=[];for(pt=0;pt<nn.childNodes.length;pt++)ht.push(nn.childNodes[pt]);if(window.GGBT_wsf_view){var dn=window.GGBT_wsf_view.renderFullScreen(nn,vn.id),Oe=document.getElementById("fullscreencontainer"),Ce=jQuery(nn).find(".fullscreencontent");Ce.length>0?(dn.remove(),Ce.attr("id","fullscreencontent").show(),jQuery(Oe).append(Ce),window.dispatchEvent(new Event("resize"))):Tt(dn,vn,!1),window.GGBT_wsf_view.launchFullScreen(Oe)}else Ut=Si,Tt(nn,vn,!1);if(!window.GGBT_wsf_view)for(pt=0;pt<ht.length;pt++)nn.removeChild(ht[pt])},Mi=nn.getElementsByClassName("ggb_preview_play"),pt=0;pt<Mi.length;pt++)Mi[pt].addEventListener("click",Vn,!1),Mi[pt].addEventListener("ontouchstart",Vn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(nn),st()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ui=function(){var nn=document.createElement("div");if(nn.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var vn='.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");}',An=document.createElement("style");An.styleSheet?An.styleSheet.cssText=vn:An.appendChild(document.createTextNode(vn)),document.getElementsByTagName("head")[0].appendChild(An)}return nn},Bn=function(nn,vn,An,Si){var Vn=document.createElement("div");Vn.className="ggb_preview",Vn.style.position="absolute",Vn.style.zIndex="90",Vn.style.width=nn-2+"px",Vn.style.height=vn-2+"px",Vn.style.top="0px",Vn.style.left="0px",Vn.style.overflow="hidden",Vn.style.backgroundColor="white";var Mi="lightgrey";An!==void 0&&(An==="none"?Mi="transparent":Mi=An),Vn.style.border="1px solid "+Mi;var pt=document.createElement("img");if(pt.style.position="relative",pt.style.zIndex="1000",pt.style.top="-1px",pt.style.left="-1px",de!==null&&pt.setAttribute("src",de),pt.style.opacity=.7,le!==null){var ht,dn,Oe;if(!Si){ht=document.createElement("img"),ht.style.position="absolute",ht.style.zIndex="1001",ht.style.opacity=1,pt.style.opacity=.3,dn=360,dn>nn/4*3&&(dn=nn/4*3),Oe=dn/5.8,ht.setAttribute("src",le),ht.setAttribute("width",dn),ht.setAttribute("height",Oe);var Ce=(nn-dn)/2,Pe=(vn-Oe)/2;ht.style.left=Ce+"px",ht.style.top=Pe+"px",Vn.appendChild(ht)}}return Vn.appendChild(pt),Vn},di=function(nn){return nn=nn.toLowerCase(),nn==="html5"||nn==="screenshot"?nn:"html5"},nt=["web","webSimple","web3d","tablet","tablet3d","phone"],ze=function(nn,vn){if(Te=nn,vn){gn(Te,!0);return}var An=!et;if(An){var Si=Me(Te);!isNaN(Si)&&Si<4.4&&(An=!1)}var Vn,Mi;window.location.protocol.substr(0,4)==="http"?Vn=window.location.protocol:Vn="http:";var pt=Te.indexOf("//");pt>0?Mi=Te:pt===0?Mi=Vn+Te:Mi="https://www.geogebra.org/apps/5.2.814.0/";for(var ht in nt)if(Te.slice(nt[ht].length*-1)===nt[ht]||Te.slice((nt[ht].length+1)*-1)===nt[ht]+"/"){gn(Mi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&An&&!ue.is3D&&!ue.AV&&!ue.SV&&!ue.CV&&!ue.EV2&&!ue.CP&&!ue.PC&&!ue.DA&&!ue.FI&&!ue.PV&&!Et(Ee.showToolBar)&&!Et(Ee.showMenuBar)&&!Et(Ee.showAlgebraInput)&&!Et(Ee.enableRightClick)&&(!Ee.appName||Ee.appName=="classic")?Mi+="webSimple/":Mi+="web3d/",gn(Mi,!1)},gn=function(nn,vn){if(nn.requirejs){Zt=nn;return}nn.slice(-1)!=="/"&&(nn+="/"),Zt=nn,vn===null&&(vn=nn.indexOf("http")===-1),Ot=vn,te="web.nocache.js",ne=!1;var An=Zt.split("/");An.length>1&&(!vn&&An[An.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):nt.indexOf(An[An.length-2])>=0&&(te=An[An.length-2]+".nocache.js")),An=nn.split("/"),Te=An[An.length-3],Te.substr(0,4)==="test"?Te=Te.substr(4,1)+"."+Te.substr(5,1):(Te.substr(0,3)==="war"||Te.substr(0,4)==="beta")&&(Te="5.0");var Si=parseFloat(Te);Si!==NaN&&Si<5&&nn.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Si+" is deprecated. Using version latest instead."),ze("5.0",vn))},Xn=function(nn,vn){window.console&&window.console.log&&(!vn||typeof vn.showLogging=="undefined"||vn.showLogging&&vn.showLogging!=="false")&&console.log(nn)};Ee.material_id!==void 0?dt(ti):ti();function ti(){var nn=kn;vt!==null?nn=vt:parseFloat(nn)<5&&(nn="5.0"),ze(nn,!1),Ue!==null&&gn(Ue,Ot),Bt=!0}return qt},GGBAppletUtils=function(){"use strict";function qt(){return window.GGBT_wsf_edit!==void 0}function kn(Bt,vt){vt!=1?(Bt.style.transformOrigin="0% 0% 0px",Bt.style.webkitTransformOrigin="0% 0% 0px",Bt.style.transform="scale("+vt+","+vt+")",Bt.style.webkitTransform="scale("+vt+","+vt+")",Bt.style.maxWidth="initial",Bt.querySelector(".ggb_preview")!==null&&(Bt.querySelector(".ggb_preview").style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Bt.style.transform="none",Bt.style.webkitTransform="none")}function Ee(Bt,vt,Ue,bt,Ct,yt){var Zt=null;if(yt!=null&&yt!="")for(var Ot=Bt.parentNode;Ot!=null;)if((" "+Ot.className+" ").indexOf(" "+yt+" ")>-1){Zt=Ot;break}else Ot=Ot.parentNode;var Ut=0,Te=0,te=0,ne=0,de=0,le=0,pe=0;if(Zt)Ut=Zt.offsetWidth,Te=Math.max(bt?Zt.offsetWidth:0,Zt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ut=Math.min(window.innerWidth,document.documentElement.clientWidth),Te=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Ut):(Ut=window.innerWidth,Te=window.innerHeight,te=window.innerWidth),Bt){var Se=Bt.getBoundingClientRect();Se.left>0&&Se.left<=Ut&&(Ct===void 0||!Ct)&&(document.dir==="rtl"?(de=Ut-Se.width-Se.left,le=te<=480?10:30):(le=Se.left,de=te<=480?10:30),ne=le+de)}if(Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=Bt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,pe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,pe=40)}}return Bt&&((Ue===void 0||!Ue)&&vt>0&&vt+ne<Ut?Ut=vt:Ut-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Te-=pe)),{width:Ut,height:Te}}function ue(Bt,vt,Ue,bt,Ct){if(Bt.isScreenshoGenerator)return 1;var yt=bt!==void 0&&bt,Zt=Bt.noScaleMargin!=null&&Bt.noScaleMargin,Ot=function(Ae){return Ae&&Ae!=="false"},Ut=Ot(Bt.autoHeight),Te=Ee(vt,Bt.width,Ue,Ut,yt&&window.GGBT_wsf_view||Zt,Ct),te=parseInt(Te.width),ne=Bt.width,de=Bt.height;if(ne===void 0){var le=vt.querySelector(".appletParameters");le&&(ne=le.offsetWidth,de=le.offsetHeight)}var pe=te/ne,Se=yt?1:Te.height/de;return Ue!==void 0&&!Ue&&(pe=Math.min(1,pe),Se=Math.min(1,Se)),Math.min(pe,Se)}function et(Bt,vt,Ue){var bt=1,Ct,yt=!1;if(Bt.hasOwnProperty("allowUpscale")&&(yt=Bt.allowUpscale),Bt.hasOwnProperty("scale")&&(bt=parseFloat(Bt.scale),(isNaN(bt)||bt===null||bt===0)&&(bt=1),bt>1&&(yt=!0)),vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(yt=!0),!(Bt.hasOwnProperty("disableAutoScale")&&Bt.disableAutoScale))Ct=ue(Bt,vt,yt,Ue,Bt.scaleContainerClass);else return bt;return yt&&(!Bt.hasOwnProperty("scale")||bt===1)?Ct:Math.min(bt,Ct)}function Lt(Bt){var vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),bt=Bt.getBoundingClientRect(),Ct=(vt-bt.width)/2,yt=(Ue-bt.height)/2;yt<0&&(yt=0),Bt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ct<40?Bt.style.left="40px":Bt.style.left=Ct+"px",Bt.style.top=yt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(yt<40?Bt.style.top="40px":Bt.style.top=yt+"px",Bt.style.left=Ct+"px")}function Nt(Bt,vt){var Ue=Bt.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Bt)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var bt=et(vt,Bt);qt()&&Ue.setAttribute("data-param-scale",bt);for(var Ct=null,yt=0;yt<Bt.childNodes.length;yt++)if(Bt.childNodes[yt].className!==void 0&&Bt.childNodes[yt].className.match(/^applet_scaler/)){Ct=Bt.childNodes[yt];break}if(Ct!==null&&Ct.querySelector(".noscale")!==null)return;var Zt=vt.id!==void 0?vt.id:"ggbApplet",Ot=window[Zt];(Ot==null||!Ot.recalculateEnvironments)&&Ct!==null&&!Ct.className.match(/fullscreen/)&&(Ct.parentNode.style.transform="",!isNaN(bt)&&bt!==1?(Ct.parentNode.style.width=vt.width*bt+"px",Ct.parentNode.style.height=vt.height*bt+"px",kn(Ct,bt)):(kn(Ct,1),Ct.parentNode.style.width=vt.width+"px",Ct.parentNode.style.height=vt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Lt(Bt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:Nt,isFlexibleWorksheetEditor:qt,positionCenter:Lt,getScale:et,scaleElement:kn}}();__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 qt=n.location.search;return qt.indexOf(J)!=-1||qt.indexOf(K)!=-1}function q(qt,kn){}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(qt){var kn=s[L].bindings;s[L].bindings=function(){for(var Ee=kn?kn():{},ue=qt[webModule.__softPermutationId],et=O;et<ue.length;et++){var Lt=ue[et];Ee[Lt[O]]=Lt[P]}return Ee}};var t;function u(){return v(),t}function v(){if(!t){var qt=o.createElement(Q);if(qt.id=L,qt.style.cssText=R+S,qt.tabIndex=-1,o.body.appendChild(qt),t=qt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var kn=document.compatMode==U?V:W;t.write(kn+X),t.close()}}}function w(qt){function kn(ue){function et(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Lt=et();if(Lt){ue();return}function Nt(){if(!Lt){if(!et())return;Lt=!0,ue(),o.removeEventListener&&o.removeEventListener(Z,Nt,!1),Bt&&clearInterval(Bt)}}o.addEventListener&&o.addEventListener(Z,Nt,!1);var Bt=setInterval(function(){Nt()},$)}function Ee(ue){var et=u(),Lt=et.body,Nt=et.createElement(_);Nt.language=ab,Nt.crossOrigin=W,Nt.src=ue,webModule.__errFn&&(Nt.onerror=function(){webModule.__errFn(L,new Error(bb+ue))}),Lt.appendChild(Nt)}kn(function(){Ee(qt)})}webModule.__startLoadingFragment=function(qt){return C(qt)},webModule.__installRunAsyncCode=function(qt){var kn=u(),Ee=kn.body,ue=kn.createElement(_);ue.language=ab,ue.text=qt,Ee.appendChild(ue),Ee.removeChild(ue)};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(qt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(qt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(qt){var kn=c[qt];return kn==null?null:kn},r=d,webModule.__errFn=e}function B(){function qt(Bt){var vt=Bt.lastIndexOf(rb);vt==-1&&(vt=Bt.length);var Ue=Bt.indexOf(sb);Ue==-1&&(Ue=Bt.length);var bt=Bt.lastIndexOf(tb,Math.min(Ue,vt));return bt>=O?Bt.substring(O,bt+P):W}function kn(Bt){if(!Bt.match(/^\w+:\/\//)){var vt=o.createElement(ub);vt.src=Bt+vb,Bt=qt(vt.src)}return Bt}function Ee(){var Bt=__gwt_getMetaProperty(wb);return Bt!=null?Bt:W}function ue(){for(var Bt=o.getElementsByTagName(_),vt=O;vt<Bt.length;++vt)if(Bt[vt].src.indexOf(xb)!=-1)return qt(Bt[vt].src);return W}function et(){var Bt=o.getElementsByTagName(yb);return Bt.length>O?Bt[Bt.length-P].href:W}function Lt(){var Bt=o.location;return Bt.href==Bt.protocol+zb+Bt.host+Bt.pathname+Bt.search+Bt.hash}var Nt=Ee();return Nt==W&&(Nt=ue()),Nt==W&&(Nt=et()),Nt==W&&Lt()&&(Nt=qt(o.location.href)),Nt=kn(Nt),Nt}function C(qt){return qt.match(/^\//)||qt.match(/^[a-zA-Z]+:\/\//)?qt:webModule.__moduleBase+qt}function D(){var qt=[],kn=O,Ee=[],ue=[];function et(Bt){var vt=ue[Bt](),Ue=Ee[Bt];if(vt in Ue)return vt;var bt=[];for(var Ct in Ue)bt[Ue[Ct]]=Ct;throw r&&r(Bt,bt,vt),null}if(__gwt_isKnownPropertyValue=function(Bt,vt){return vt in Ee[Bt]},webModule.__getPropMap=function(){var Bt={};for(var vt in Ee)Ee.hasOwnProperty(vt)&&(Bt[vt]=et(vt));return Bt},webModule.__computePropValue=et,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Lt;try{Lt=Cb;var Nt=Lt.indexOf(Db);Nt!=-1&&(kn=parseInt(Lt.substring(Nt+P),$),Lt=Lt.substring(O,Nt))}catch(Bt){}return webModule.__softPermutationId=kn,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})()},36045:function(qt,kn,Ee){"use strict";Ee.d(kn,{G0:function(){return Ke},JW:function(){return ti},Jd:function(){return Bn},Kl:function(){return nn},L5:function(){return te},MH:function(){return gn},MI:function(){return ht},Qo:function(){return ke},SO:function(){return Te},Tf:function(){return pe},VT:function(){return Yt},XO:function(){return Ot},Xy:function(){return Ae},Y0:function(){return It},Ye:function(){return Pe},Yv:function(){return pt},ZH:function(){return Si},am:function(){return ui},bD:function(){return dn},eA:function(){return Me},fA:function(){return An},fY:function(){return dt},g6:function(){return Ut},g7:function(){return Oe},gT:function(){return xt},gn:function(){return Vn},h$:function(){return Mi},hG:function(){return Se},i8:function(){return vn},j3:function(){return Xn},lH:function(){return nt},li:function(){return ne},n4:function(){return de},pU:function(){return Et},qK:function(){return le},sA:function(){return Tt},sP:function(){return ze},t$:function(){return di},wj:function(){return Ie},zl:function(){return st}});var ue=Ee(99064),et=Ee(955),Lt=Object.defineProperty,Nt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ue=(De,tt,He)=>tt in De?Lt(De,tt,{enumerable:!0,configurable:!0,writable:!0,value:He}):De[tt]=He,bt=(De,tt)=>{for(var He in tt||(tt={}))Bt.call(tt,He)&&Ue(De,He,tt[He]);if(Nt)for(var He of Nt(tt))vt.call(tt,He)&&Ue(De,He,tt[He]);return De},Ct=(De,tt,He)=>new Promise((mt,Wt)=>{var kt=mn=>{try{pn(He.next(mn))}catch(Gn){Wt(Gn)}},yn=mn=>{try{pn(He.throw(mn))}catch(Gn){Wt(Gn)}},pn=mn=>mn.done?mt(mn.value):Promise.resolve(mn.value).then(kt,yn);pn((He=He.apply(De,tt)).next())});const yt=(0,et.oP)(),Zt={};yt!=null&&yt.homework_common_id&&(Zt.homework_common_id=yt==null?void 0:yt.homework_common_id),yt!=null&&yt.exercisesId&&(Zt.exercise_id=yt==null?void 0:yt.exercisesId),console.log(yt,Zt,"urlParamsAll");function Ot(De,tt){return(0,ue.U2)(`tasks/${De}.json`,bt(bt({},tt),Zt))}function Ut(De,tt={}){return(0,ue.U2)(`myshixuns/${De}/challenges.json`,bt({},tt))}function Te(De,tt){return(0,ue.U2)(`myshixuns/${De}/subject_challenges.json`,tt)}function te(De,tt,He){return(0,ue.U2)(`tasks/${De}/star.json`,{shixun_id:tt,star:He})}function ne(De,tt){return tt.path&&(tt.path=encodeURIComponent(tt.path)),(0,ue.U2)(`tasks/${De}/rep_content.json`,bt(bt({},tt),Zt))}function de(De,tt){return(0,ue.v_)(`myshixuns/${De}/update_file.json`,bt(bt({},tt),Zt))}function le(De,tt){return(0,ue.U2)(`tasks/${De}/reset_original_code.json`,bt(bt({},tt),Zt))}function pe(De,tt){return(0,ue.v_)(`myshixuns/${De}/reset_repository.json`,tt)}function Se(De,tt){return(0,ue.U2)(`tasks/${De}/reset_passed_code.json`,bt(bt({},tt),Zt))}function Ae(De,tt){return(0,ue.v_)(`tasks/${De}/game_build.json`,bt(bt({},tt),Zt))}function Me(De){return(0,ue.ZP)("http://localhost:49352/api/game_build",{method:"post",body:De})}function ke(De,tt){return(0,ue.U2)(`tasks/${De}/game_status.json`,bt(bt({},tt),Zt))}function st(De,tt){return(0,ue.v_)(`tasks/${De}/choose_build.json`,bt(bt({},tt),Zt))}function dt(De){return(0,ue.U2)(`myshixuns/${De}/get_remaining_time.json`)}function xt(De){return(0,ue.U2)(`tasks/${De}/picture_display.json`,Zt)}function ut(De,tt){return get(`courses/${De}/inform_detail.json`,tt)}function It(De){return(0,ue.v_)(`tasks/${De}/plus_or_cancel_praise.json`)}function Et(De,tt={}){return(0,ue.v_)(`myshixuns/${De}/repository.json`,tt)}function Tt(De,tt={}){return(0,ue.U2)(`myshixuns/${De}/start.json`,tt)}function Yt(De,tt={}){return(0,ue.v_)(`myshixuns/${De}/force_delete_pod.json`,tt)}function hn(De,tt={}){return get(`myshixuns/${De}/set_tpisession.json`,tt)}function vi(De){return get(`myshixuns/${De}/reset_pod.json`)}function ui(De,tt){return(0,ue.U2)(`myshixuns/${De}/reset_pod.json`,tt)}function Bn(De,tt){return(0,ue.ZP)(`/api/tasks/${De}/reboot_esc.json`,{method:"post",body:tt})}function di(De){return(0,ue.U2)(`tasks/${De}/check_test_sets.json`)}function nt(De){return(0,ue.U2)(`tasks/${De}/get_answer_info.json`)}function ze(De){return(0,ue.U2)(`tasks/${De}/get_choose_answer.json`)}function gn(De){return(0,ue.U2)(`tasks/${De}/unlock_choose_answer.json`)}function Xn(De,tt){return(0,ue.U2)(`tasks/${De}/unlock_answer.json`,{answer_id:tt})}function ti(De,tt,He,mt){return(0,ue.v_)(`tasks/${De}/set_games_status.json`,bt({result:tt,data:He},mt||{}))}function nn(De,tt){return(0,ue.U2)(`myshixuns/${De}/active_pod.json`,tt)}function vn(De,tt){return(0,ue.U2)(`tasks/${De}/rank_list.json`,tt)}function An(De,tt){return(0,ue.v_)(`tasks/${De}/close_windows_vnc.json`,{tpi_id:tt})}function Si(De,tt){return(0,ue.U2)(`tasks/${De}/commit_files.json`,tt)}function Vn(De,tt){return(0,ue.U2)(`tasks/${De}/pull_files.json`,tt)}function Mi(De,tt){return(0,ue.v_)(`tasks/${De}/log_output`,tt)}function pt(De,tt){return(0,ue.U2)(`tasks/${De}/stop_log_output.json`,tt)}function ht(De){return Ct(this,null,function*(){return(0,ue.ZP)(`/api/myshixuns/${De.id}/add_file.json`,{method:"post",body:De})})}function dn(De){return Ct(this,null,function*(){return(0,ue.ZP)(`/api/myshixuns/${De.id}/delete_git_file.json`,{method:"Delete",body:De})})}function Oe(De){return Ct(this,null,function*(){return(0,ue.ZP)(`/api/myshixuns/${De.id}/mv_file.json`,{method:"post",body:De})})}function Ce(De){return Ct(this,null,function*(){return De.path&&(De.path=encodeURIComponent(De.path)),Fetch(`/api/tasks/${De.id}/rep_content.json`,{method:"get",params:De})})}function Pe(De,tt){return(0,ue.ZP)(`/api/shixuns/${De}/set_start_permanent.json`,{method:"put",body:tt})}function Ie(De){return Ct(this,null,function*(){return(0,ue.ZP)("/api/myshixuns/wuying_record.json",{method:"get",params:De})})}function Ke(De){return Ct(this,null,function*(){return(0,ue.ZP)("/api/jupyters/save_with_wuying_tpi.json",{method:"Get",params:De})})}},77903:function(qt,kn,Ee){"use strict";Ee.d(kn,{Ax:function(){return Nt},Ds:function(){return Bt},KI:function(){return Ue},SI:function(){return Lt},f1:function(){return et}});var ue=Ee(3294);function et(bt){let Ct=!0;if(bt.length>0){for(let yt=0;yt<bt.length;yt++)if(bt[yt].compile_success==0||!bt[yt].compile_success){Ct=!1;break}}else Ct=!1;return Ct}function Lt(bt,Ct=""){let yt=[];for(let Zt=0;Zt<bt.length;Zt++){let Ot=bt[Zt],Ut=Ct?`${Ct}/${Ot.name}`:`${Ot.name}`;yt.push({title:Ot.name,type:Ot.type,isLeaf:Ot.type!=="tree",key:Ut})}return yt}function Nt(bt,Ct,yt){for(let Zt=0;Zt<bt.length;Zt++){let Ot=bt[Zt];if(Ot.key===Ct){Ot.children=yt;break}Ot.children&&Nt(Ot.children,Ct,yt)}return bt}function Bt(bt,Ct,yt){let Zt;return function(){let Ot=this,Ut=arguments,Te=function(){Zt=null,yt||bt.apply(Ot,Ut)},te=yt&&!Zt;clearTimeout(Zt),Zt=setTimeout(Te,Ct),te&&bt.apply(Ot,Ut)}}const vt=!0,Ue=ue.Z.API_SERVER},6021:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Te}});var ue=Ee(3113),et=Ee(59301),Lt=Object.defineProperty,Nt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Ct=(te,ne,de)=>ne in te?Lt(te,ne,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ne]=de,yt=(te,ne)=>{for(var de in ne||(ne={}))Ue.call(ne,de)&&Ct(te,de,ne[de]);if(vt)for(var de of vt(ne))bt.call(ne,de)&&Ct(te,de,ne[de]);return te},Zt=(te,ne)=>Nt(te,Bt(ne)),Ot=(te,ne)=>{var de={};for(var le in te)Ue.call(te,le)&&ne.indexOf(le)<0&&(de[le]=te[le]);if(te!=null&&vt)for(var le of vt(te))ne.indexOf(le)<0&&bt.call(te,le)&&(de[le]=te[le]);return de},Ut=(te,ne,de)=>new Promise((le,pe)=>{var Se=ke=>{try{Me(de.next(ke))}catch(st){pe(st)}},Ae=ke=>{try{Me(de.throw(ke))}catch(st){pe(st)}},Me=ke=>ke.done?le(ke.value):Promise.resolve(ke.value).then(Se,Ae);Me((de=de.apply(te,ne)).next())});const Te=te=>{var ne=te,{children:de}=ne,le=Ot(ne,["children"]);const[pe,Se]=(0,et.useState)(!1);return et.createElement(ue.ZP,Zt(yt({},le),{loading:pe,onClick:Ae=>Ut(void 0,null,function*(){try{Se(!0),yield le.onClick(Ae),Se(!1)}catch(Me){console.error(Me),Se(!1)}})}),de)}},927:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return bt}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(43418),Nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gq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yBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/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",vt={tilte:"tilte___IfiMG",flexRow:"flexRow___pQP78",flexColumn:"flexColumn___xrBZQ",footerWrap:"footerWrap___C5kCC",img:"img___GoWZu",content:"content___pumTK",modalContent:"modalContent___XvHiZ"};const Ue=({visible:Ct,occupationValue:yt,onCancel:Zt=()=>{}})=>{const Ot=()=>ue.createElement("div",{className:vt.flexColumn},ue.createElement("img",{className:vt.img,src:Bt}),ue.createElement("span",{className:vt.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1")),Ut=()=>ue.createElement("div",{className:vt.flexColumn},ue.createElement("img",{className:vt.img,src:Nt}),ue.createElement("span",{className:vt.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1")),Te=()=>yt===3?ue.createElement(ue.Fragment,null,Ut(),Ot()):yt===2?Ot():Ut();return ue.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:()=>{Zt(),et.history.push("/account/certification")},onCancel:()=>{Zt()}},ue.createElement("div",{className:vt.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),ue.createElement("div",{className:vt.flexRow},Te()))};var bt=(0,et.connect)(({paperlibrary:Ct,loading:yt,globalSetting:Zt})=>({paperlibrary:Ct,globalSetting:Zt,loading:yt.effects}))(Ue)},9165:function(qt,kn,Ee){"use strict";Ee.d(kn,{t:function(){return Ot}});var ue=Ee(59301),et=Ee(3113),Lt={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Nt=Ee(92310),Bt=Ee.n(Nt),vt=Object.defineProperty,Ue=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,yt=(Ut,Te,te)=>Te in Ut?vt(Ut,Te,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ut[Te]=te,Zt=(Ut,Te)=>{for(var te in Te||(Te={}))bt.call(Te,te)&&yt(Ut,te,Te[te]);if(Ue)for(var te of Ue(Te))Ct.call(Te,te)&&yt(Ut,te,Te[te]);return Ut};const Ot=({cancelText:Ut="\u53D6\u6D88",okText:Te="\u786E\u5B9A",loading:te=!1,hasOkBtn:ne=!0,hasCancelBtn:de=!0,okButtonProps:le={},onCancel:pe=()=>{},onOk:Se=()=>{},className:Ae=""})=>ue.createElement("div",{className:Bt()(Lt.buttonFixed,Ae)},ue.createElement("div",{className:Lt.buttonWrap},de&&ue.createElement(et.ZP,{size:"middle",className:`${Lt.button} mr20`,onClick:pe},Ut),ne&&ue.createElement(et.ZP,Zt({size:"middle",type:"primary",className:`${Lt.button} mr20`,loading:te,onClick:Se},le),Te)))},63454:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Me}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(43418),Nt=Ee(8591),Bt=Ee(92832),vt=Ee(24905),Ue=Ee(1),bt=Ee(927),Ct=Ee(955),yt=Ee(3113),Zt=Ee(87169),Ot={bottom:"bottom___z0ujX",yes:"yes___hodnN",no:"no___hiPz5"},Ut=Ee(32637),Te=Ee(59301);const te=({classroomList:ke,dispatch:st,user:dt})=>Te.createElement(Lt.default,{open:ke.actionTabs.key==="\u5230\u671F\u63D0\u793A",width:464,centered:!0,title:Te.createElement("span",null,Te.createElement(Zt.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u63D0\u793A"),onCancel:()=>{st({type:"classroomList/setActionTabs",payload:{key:""}})},footer:null},Te.createElement("div",{style:{textAlign:"center",marginBottom:30}},Te.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",Te.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"),Te.createElement("img",{style:{width:130,height:130},src:Ut})),Te.createElement("div",{className:Ot.bottom},Te.createElement(yt.ZP,{className:Ot.yes,onClick:()=>{st({type:"classroomList/setActionTabs",payload:{key:""}})}},"\u6211\u77E5\u9053\u4E86")));var ne=(0,et.connect)(({classroomList:ke,user:st})=>({classroomList:ke,user:st}))(te),de=Ee(99064),le=Ee(59301),pe=(ke,st,dt)=>new Promise((xt,ut)=>{var It=Yt=>{try{Tt(dt.next(Yt))}catch(hn){ut(hn)}},Et=Yt=>{try{Tt(dt.throw(Yt))}catch(hn){ut(hn)}},Tt=Yt=>Yt.done?xt(Yt.value):Promise.resolve(Yt.value).then(It,Et);Tt((dt=dt.apply(ke,st)).next())}),Se=(ke=>(ke[ke.Professor=1]="Professor",ke[ke.AssistantProfessor=2]="AssistantProfessor",ke[ke.Student=3]="Student",ke))(Se||{});const Ae=({visible:ke,user:st,account:dt,onCancel:xt=()=>{},dispatch:ut})=>{const[It,Et]=(0,ue.useState)(),[Tt,Yt]=(0,ue.useState)([]),[hn,vi]=(0,ue.useState)(!1),[ui,Bn]=(0,ue.useState)(!1),[di,nt]=(0,ue.useState)(),[ze,gn]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{var vn,An;(vn=st==null?void 0:st.userInfo)!=null&&vn.identity&&Yt([((An=st==null?void 0:st.userInfo)==null?void 0:An.identity)==="student"?3:1])},[st]);const Xn=vn=>{const An=()=>{window.location.href=(vn==null?void 0:vn.jump_url)||`/classrooms/${vn==null?void 0:vn.course_id}/students`};if(Tt.includes(1)){Lt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:le.createElement("div",{className:"tc"},(vn==null?void 0:vn.message)||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{An()}});return}An()},ti=()=>pe(void 0,null,function*(){if(!It){Nt.ZP.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}let vn=yield(0,de.ZP)("/api/courses/get_pro_info.json",{method:"get",params:{invite_code:It}});if(vn!=null&&vn.need_pro_auth&&!Tt.includes(1)&&!Tt.includes(2)){ut({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth",code:It,checkedList:Tt}}),nn();return}vi(!0);const An=yield(0,Ue.cR)({invite_code:It,professor:Tt.includes(1)?1:null,assistant_professor:Tt.includes(2)?1:null,student:Tt.includes(3)?1:null});if(vi(!1),(An==null?void 0:An.status)===-4&&(xt(),ut({type:"classroomList/setActionTabs",payload:{key:"\u5230\u671F\u63D0\u793A"}})),(An==null?void 0:An.status)===-12&&Nt.ZP.warning(An==null?void 0:An.message),(An==null?void 0:An.status)===-2){if(nn(),An.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"){Bn(!0),nt(1);return}if(An.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1"){Bn(!0),nt(2);return}if(An.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1"){Bn(!0),nt(3);return}}if((An==null?void 0:An.status)===0){(0,Ct.L9)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),nn(),An!=null&&An.course_id?Xn(An):Nt.ZP.success(An.message);return}}),nn=()=>pe(void 0,null,function*(){xt()});return le.createElement(le.Fragment,null,le.createElement(Lt.default,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",open:ke,confirmLoading:hn,onOk:ti,onCancel:nn},le.createElement("div",{className:"tc"},le.createElement("div",null,le.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),le.createElement(Bt.default,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:It,onChange:vn=>{if(vn.target.value.length>=7){Nt.ZP.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}Et(vn.target.value)}})),le.createElement("div",{className:"mt10 font14"},le.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),le.createElement(vt.default.Group,{value:Tt,onChange:vn=>Yt(vn)},le.createElement(vt.default,{value:1,disabled:Tt.includes(2)},"\u6559\u5E08"),le.createElement(vt.default,{value:2,disabled:Tt.includes(1)},"\u52A9\u6559"),le.createElement(vt.default,{value:3},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),le.createElement(ne,null),le.createElement(bt.Z,{visible:ui,onCancel:()=>Bn(!1),occupationValue:di}))};var Me=(0,et.connect)(({user:ke,account:st})=>({user:ke,account:st}))(Ae)},61682:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Di},g:function(){return br}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(44e3),Nt=Ee(92832),Bt=Ee(43418),vt={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"},Ue=Ee(8591),bt=Ee(95237),Ct=Ee(43604),yt=Ee(20834),Zt=Ee(38854),Ot=Ee(5112),Ut=Ee(1),Te=Ee(955),te=(En,Yn,Mt)=>new Promise((Ft,sn)=>{var Sr=ai=>{try{Ri(Mt.next(ai))}catch(Ti){sn(Ti)}},Ii=ai=>{try{Ri(Mt.throw(ai))}catch(Ti){sn(Ti)}},Ri=ai=>ai.done?Ft(ai.value):Promise.resolve(ai.value).then(Sr,Ii);Ri((Mt=Mt.apply(En,Yn)).next())}),ne=(En=>(En.Manager="manager",En.Developer="developer",En.Reporter="reporter",En))(ne||{}),le=({visible:En,onCancel:Yn=()=>{}})=>{const[Mt,Ft]=(0,ue.useState)(),[sn,Sr]=(0,ue.useState)(),[Ii,Ri]=(0,ue.useState)(!1),ai=()=>te(void 0,null,function*(){if(!Mt){Ue.ZP.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}if(Mt.length!==6){Ue.ZP.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}if(!sn){Ue.ZP.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01");return}Ri(!0);const Jr=yield(0,Ut.vm)({code:Mt,role:sn});Ri(!1),Ti();const Qr={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(Qr[Jr.status]){Ue.ZP.info(Qr[Jr.status]);return}if(Jr.status===0){sn==="reporter"?(Ue.ZP.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),(0,Te.L9)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),et.history.push(`/projects/${Jr==null?void 0:Jr.project_id}`)):((0,Te.L9)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),Ue.ZP.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01"));return}}),Ti=()=>te(void 0,null,function*(){Yn()});return ue.createElement(ue.Fragment,null,ue.createElement(Bt.default,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",open:En,confirmLoading:Ii,onOk:ai,onCancel:Ti},ue.createElement("div",{className:"tc"},ue.createElement("div",null,ue.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),ue.createElement(Nt.default,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:Mt,onChange:Jr=>{if(Jr.target.value.length>=7){Ue.ZP.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}Ft(Jr.target.value)}})),ue.createElement("div",{className:"mt10 font14"},ue.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),ue.createElement(Ot.ZP.Group,{value:sn,onChange:Jr=>Sr(Jr.target.value)},ue.createElement(Ot.ZP,{value:"manager"},"\u7BA1\u7406\u4EBA\u5458"),ue.createElement(Ot.ZP,{value:"developer"},"\u5F00\u53D1\u4EBA\u5458"),ue.createElement(Ot.ZP,{value:"reporter"},"\u62A5\u544A\u4EBA\u5458"))))))},pe=Ee(63454),Se={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=Ee(46474),Me=Ee(78241),ke=Ee(57809),st=Ee(2742),dt=(En,Yn,Mt)=>new Promise((Ft,sn)=>{var Sr=ai=>{try{Ri(Mt.next(ai))}catch(Ti){sn(Ti)}},Ii=ai=>{try{Ri(Mt.throw(ai))}catch(Ti){sn(Ti)}},Ri=ai=>ai.done?Ft(ai.value):Promise.resolve(ai.value).then(Sr,Ii);Ri((Mt=Mt.apply(En,Yn)).next())});const xt=({globalSetting:En,dispatch:Yn,user:Mt,open:Ft,onCancel:sn=()=>{}})=>{const[Sr,Ii]=(0,ue.useState)([]),[Ri,ai]=(0,ue.useState)([]),[Ti,Jr]=(0,ue.useState)([]),[Qr]=Me.default.useForm(),[Lo,Ln]=(0,ue.useState)(!1),[ja,co]=(0,ue.useState)(!1),Kr=(0,ue.useRef)(null),on=(0,ue.useRef)(1),[Vt,cn]=(0,ue.useState)({keyword:"",source:"",status:"",page:1,limit:20});(0,ue.useEffect)(()=>{Ft&&Jt()},[Ft]);const Jt=()=>dt(void 0,null,function*(){var li;const Ci=yield zn(Vt);if(!(0,Ae.o1)(Yn))return;const{user_school_id:Qn="",department_id:an="",school_name:Vr="",department_name:In=""}=Mt.userInfo||{},Or=(li=Ci==null?void 0:Ci.graduation_years)==null?void 0:li.at(-1);ai([{id:Qn,name:Vr}]),yield sr(Qn),Qr.setFieldsValue({year:Or,school_id:Qn,department_id:Number(an),name:`${Or}${Vr}${In}\u6BD5\u4E1A\u8BBE\u8BA1`})}),zn=li=>dt(void 0,null,function*(){const Ci=yield(0,st.J3)(li);return Ci.status===0&&Ii((Ci==null?void 0:Ci.graduation_years)||[]),Ci}),er=(li,Ci=500)=>{co(!0),clearTimeout(Kr.current),Kr.current=setTimeout(()=>dt(void 0,null,function*(){on.current+=1;const Qn=on.current,an=yield(0,st.NT)({keyword:li});an.status===0&&on.current===Qn&&(ai((an==null?void 0:an.schools)||[]),co(!1))}),Ci)},sr=li=>dt(void 0,null,function*(){if(!li)return;const Ci=yield(0,st.Ps)({page:1,limit:9999,id:li});Ci.status===0&&Jr((Ci==null?void 0:Ci.departments)||[])});return ue.createElement(Bt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:Ft,title:"\u5F00\u542F\u65B0\u4E00\u5C4A\u6BD5\u4E1A\u8BBE\u8BA1",width:578,confirmLoading:Lo,onCancel:sn,onOk:()=>Qr.submit()},ue.createElement(Me.default,{colon:!1,form:Qr,initialValues:{},labelCol:{span:7},size:"large",wrapperCol:{span:17},onValuesChange:(li,Ci)=>{li.school_id&&(sr(Ci.school_id),Qr.setFieldValue("department_id",null))},onFinish:li=>dt(void 0,null,function*(){Ln(!0);const Ci=yield(0,st.Wz)(li);Ci.status===0&&(Ue.ZP.success("\u521B\u5EFA\u6210\u529F"),Qr.resetFields(),sn(),(0,Te.xg)(`/graduations/${Ci==null?void 0:Ci.identifier}/index`)),Ln(!1)})},ue.createElement(Me.default.Item,{name:"year",label:"\u9009\u62E9\u5C4A\u522B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},ue.createElement(ke.default,{style:{width:344},size:"large",options:Sr.map(li=>({value:li,label:li}))})),ue.createElement(Me.default.Item,{name:"school_id",label:"\u5B66\u6821",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u6821"}]},ue.createElement(ke.default,{showSearch:!0,filterOption:!1,onSearch:li=>{er(li)},loading:ja,size:"large",style:{width:344},options:Ri.map(li=>({value:li.id,label:li.name}))})),ue.createElement(Me.default.Item,{name:"department_id",label:"\u5B66\u9662",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u9662"}]},ue.createElement(ke.default,{showSearch:!0,optionFilterProp:"label",style:{width:344},size:"large",options:Ti.map(li=>({value:li.id,label:li.name}))})),ue.createElement(Me.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"}]},ue.createElement(Nt.default,{showCount:!0,style:{width:344},maxLength:60}))))};var ut=(0,et.connect)(({user:En,globalSetting:Yn,loading:Mt})=>({user:En,globalSetting:Yn,loading:Mt}))(xt),It=Ee(99064),Et=Object.defineProperty,Tt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,vi=(En,Yn,Mt)=>Yn in En?Et(En,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):En[Yn]=Mt,ui=(En,Yn)=>{for(var Mt in Yn||(Yn={}))Yt.call(Yn,Mt)&&vi(En,Mt,Yn[Mt]);if(Tt)for(var Mt of Tt(Yn))hn.call(Yn,Mt)&&vi(En,Mt,Yn[Mt]);return En},Bn=(En,Yn,Mt)=>new Promise((Ft,sn)=>{var Sr=ai=>{try{Ri(Mt.next(ai))}catch(Ti){sn(Ti)}},Ii=ai=>{try{Ri(Mt.throw(ai))}catch(Ti){sn(Ti)}},Ri=ai=>ai.done?Ft(ai.value):Promise.resolve(ai.value).then(Sr,Ii);Ri((Mt=Mt.apply(En,Yn)).next())});const di=({globalSetting:En,dispatch:Yn,user:Mt,open:Ft,onCancel:sn=()=>{}})=>{const[Sr]=Me.default.useForm(),[Ii,Ri]=(0,ue.useState)(!1),[ai,Ti]=(0,ue.useState)(null);return(0,ue.useEffect)(()=>{var Jr;if(Ft){const Qr={code:"",user_type:((Jr=Mt==null?void 0:Mt.userInfo)==null?void 0:Jr.identity)==="student"?2:1,major:""};Sr.setFieldsValue(Qr),Ti(ui({},Qr))}},[Ft]),ue.createElement(Bt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:Ft,title:"\u52A0\u5165\u6BD5\u8BBE",width:527,confirmLoading:Ii,onCancel:sn,onOk:()=>Sr.submit()},ue.createElement(Me.default,{colon:!1,form:Sr,initialValues:{user_type:1},labelCol:{span:5},wrapperCol:{span:19},size:"large",onValuesChange:(Jr,Qr)=>Ti(ui({},Qr)),onFinish:Jr=>Bn(void 0,null,function*(){Ri(!0);const Qr=yield(0,It.ZP)("/api/graduations/join.json",{method:"post",body:Jr});Qr.status===0&&(sn(),Qr!=null&&Qr.identifier?(0,Te.xg)(`/graduations/${Qr==null?void 0:Qr.identifier}/index`):Ue.ZP.success(Qr==null?void 0:Qr.message)),Ri(!1)})},ue.createElement(Me.default.Item,{name:"code",label:"\u6BD5\u8BBE\u9080\u8BF7\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u8BBE\u9080\u8BF7\u7801"}]},ue.createElement(Nt.default,{placeholder:"\u8BF7\u8F93\u5165\u6BD5\u8BBE\u9080\u8BF7\u7801",size:"large"})),ue.createElement(Me.default.Item,{name:"user_type",label:"\u8EAB\u4EFD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u8BBE\u9080\u8BF7\u7801"}]},ue.createElement(Ot.ZP.Group,null,ue.createElement(Ot.ZP,{value:1,style:{color:"#000"}},"\u7BA1\u7406\u5458\uFF08\u6559\u5E08\uFF09"),ue.createElement(Ot.ZP,{className:"ml30",style:{color:"#000"},value:2},"\u5B66\u751F"))),(ai==null?void 0:ai.user_type)===2&&ue.createElement(Me.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"}]},ue.createElement(Nt.default,{showCount:!0,maxLength:60}))))};var nt=(0,et.connect)(({user:En,globalSetting:Yn})=>({user:En,globalSetting:Yn}))(di),ze=Ee(59301),gn=Object.defineProperty,Xn=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Si=(En,Yn,Mt)=>Yn in En?gn(En,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):En[Yn]=Mt,Vn=(En,Yn)=>{for(var Mt in Yn||(Yn={}))vn.call(Yn,Mt)&&Si(En,Mt,Yn[Mt]);if(nn)for(var Mt of nn(Yn))An.call(Yn,Mt)&&Si(En,Mt,Yn[Mt]);return En},Mi=(En,Yn)=>Xn(En,ti(Yn)),pt=(En,Yn)=>{var Mt={};for(var Ft in En)vn.call(En,Ft)&&Yn.indexOf(Ft)<0&&(Mt[Ft]=En[Ft]);if(En!=null&&nn)for(var Ft of nn(En))Yn.indexOf(Ft)<0&&An.call(En,Ft)&&(Mt[Ft]=En[Ft]);return Mt},ht=(En=>(En.Projects="projects",En.Shixuns="shixuns",En.Classrooms="classrooms",En))(ht||{}),dn=(En=>(En.Classrooms="classrooms",En.Shixuns="shixuns",En.Paths="paths",En.Projects="projects",En.Videos="videos",En.Topics="topics",En))(dn||{});const Oe=En=>{var Yn=En,{homePage:Mt,user:Ft,globalSetting:sn,loading:Sr,dispatch:Ii}=Yn,Ri=pt(Yn,["homePage","user","globalSetting","loading","dispatch"]),ai,Ti,Jr,Qr,Lo,Ln,ja,co;const[Kr,on]=(0,ue.useState)(),[Vt,cn]=(0,ue.useState)(),[Jt,zn]=(0,ue.useState)(!1),[er,sr]=(0,ue.useState)(!1),li=Or=>{var Tr;if((0,Ae.tJ)(Ii,!1,Or==="classrooms","",!0)){if(Or==="projects"&&!((Tr=Ft.userInfo)!=null&&Tr.email)){Ue.ZP.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Or==="classrooms"?on(!0):Or==="projects"&&cn(!0)}},Ci=(Or,Tr)=>{var fr;if((0,Ae.tJ)(Ii)){if(Tr==="projects"&&!((fr=Ft.userInfo)!=null&&fr.email)){Ue.ZP.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Tr==="shixuns"&&!(0,Ae.xY)()||Or&&(window.location.href=Or)}},Qn=(Ti=(((ai=sn.setting)==null?void 0:ai.navbar)||[]).find(Or=>Or.link==="/classrooms"))==null?void 0:Ti.hidden;let an=(Qr=(((Jr=sn.setting)==null?void 0:Jr.navbar)||[]).find(Or=>Or.link==="/shixuns"))==null?void 0:Qr.hidden;const Vr=(Ln=(((Lo=sn.setting)==null?void 0:Lo.navbar)||[]).find(Or=>Or.link==="/paths"))==null?void 0:Ln.hidden;(ja=sn==null?void 0:sn.setting)!=null&&ja.is_local&&((co=Ft==null?void 0:Ft.userInfo)!=null&&co.is_shixun_marker||(an=!0));const In=Or=>{var Tr,fr,Bo,Gr,Ui,xr,ro,Cn,hi,Ge,To,no,rr,qi,Qi,oa,ys,bs,_o;return ze.createElement(ze.Fragment,null,ze.createElement(bt.Z,{justify:"space-around",className:"pt5 pb5"},ze.createElement(Ct.Z,{className:Se.joinCol},((Tr=Ft.userInfo)==null?void 0:Tr.user_identity)!=="\u5B66\u751F"&&!Qn&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>Ci("/classrooms/new")},(fr=Ft.userInfo)!=null&&fr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!an&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>Ci("/shixuns/new","shixuns")},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((Bo=Ft.userInfo)==null?void 0:Bo.main_site)||!((Gr=Ft.userInfo)!=null&&Gr.main_site)&&!Vr&&(((Ui=Ft.userInfo)==null?void 0:Ui.admin)||((xr=Ft.userInfo)==null?void 0:xr.is_teacher)||((ro=Ft.userInfo)==null?void 0:ro.business)))&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>Ci("/paths/new")},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!((Cn=sn==null?void 0:sn.setting)!=null&&Cn.is_local)&&((hi=Ft.userInfo)==null?void 0:hi.main_site)&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>{var Ea;return Ci(`${(Ea=sn==null?void 0:sn.setting)==null?void 0:Ea.old_url}/projects/deposit/new`,"projects")}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE")),window.location.host!=="narl.educoder.net"&&((Ge=Ft==null?void 0:Ft.userInfo)==null?void 0:Ge.identity)!=="student"&&ze.createElement(yt.default.Item,Mi(Vn({},Or),{onClick:()=>{(0,Ae.o1)(Ii)&&zn(!0)}}),ze.createElement("a",null,"\u65B0\u5EFA\u6BD5\u4E1A\u8BBE\u8BA1")),!((To=Ft.userInfo)!=null&&To.main_site)&&ze.createElement("div",null,!Qn&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>li("classrooms")},(no=Ft.userInfo)!=null&&no.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((rr=Ft.userInfo)==null?void 0:rr.main_site)&&!((qi=sn==null?void 0:sn.setting)!=null&&qi.is_local)&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>li("projects")},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))),((Qi=Ft.userInfo)==null?void 0:Qi.main_site)&&ze.createElement(Ct.Z,null,ze.createElement("div",{className:Se.joinBoard})),((oa=Ft.userInfo)==null?void 0:oa.main_site)&&ze.createElement(Ct.Z,{className:Se.joinCol},!Qn&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>li("classrooms")},(ys=Ft.userInfo)!=null&&ys.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((bs=Ft.userInfo)==null?void 0:bs.main_site)&&!((_o=sn==null?void 0:sn.setting)!=null&&_o.is_local)&&ze.createElement(yt.default.Item,Vn({},Or),ze.createElement("a",{onClick:()=>li("projects")},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")),ze.createElement(yt.default.Item,Mi(Vn({},Or),{onClick:()=>{(0,Ae.o1)(Ii)&&sr(!0)}}),ze.createElement("a",null,"\u52A0\u5165\u6BD5\u4E1A\u8BBE\u8BA1")))))};return ze.createElement("section",null,ze.createElement(Zt.Z,{dropdownRender:()=>ze.createElement(yt.default,{className:`${Se.rightMenu} ${Se.joinMenu} mt10`},ze.createElement(In,null)),placement:"bottomRight"},ze.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),ze.createElement(pe.Z,{visible:Kr,onCancel:()=>on(!1)}),ze.createElement(le,{visible:Vt,onCancel:()=>cn(!1)}),ze.createElement(ut,{open:Jt,onCancel:()=>zn(!1)}),ze.createElement(nt,{open:er,onCancel:()=>sr(!1)}))};var Ce=(0,et.connect)(({homePage:En,loading:Yn,user:Mt,globalSetting:Ft})=>({homePage:En,user:Mt,globalSetting:Ft,loading:Yn.models.index}))(Oe),Pe={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"},Ie=Ee(24065),Ke=Ee(24780),De=Ee(3294),tt=Ee(59301),He=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,kt=(En,Yn)=>{var Mt={};for(var Ft in En)mt.call(En,Ft)&&Yn.indexOf(Ft)<0&&(Mt[Ft]=En[Ft]);if(En!=null&&He)for(var Ft of He(En))Yn.indexOf(Ft)<0&&Wt.call(En,Ft)&&(Mt[Ft]=En[Ft]);return Mt},yn=(En,Yn,Mt)=>new Promise((Ft,sn)=>{var Sr=ai=>{try{Ri(Mt.next(ai))}catch(Ti){sn(Ti)}},Ii=ai=>{try{Ri(Mt.throw(ai))}catch(Ti){sn(Ti)}},Ri=ai=>ai.done?Ft(ai.value):Promise.resolve(ai.value).then(Sr,Ii);Ri((Mt=Mt.apply(En,Yn)).next())});const pn=En=>{var Yn,Mt=RegExp("(^| )"+En+"=([^;]+)(;|$)");return(Yn=document.cookie.match(Mt))?decodeURIComponent(Yn[2]):null},mn=En=>{var Yn=new Date;Yn.setTime(Yn.getTime()-1);var Mt=pn(En);Mt!=null&&(document.cookie=En+"="+Mt+";expires="+Yn.toGMTString())};var Gn=(En=>(En.Classrooms="classrooms",En.Shixuns="shixuns",En.Paths="paths",En.Projects="projects",En.Videos="videos",En.Topics="topics",En))(Gn||{});const Tn=En=>{var Yn=En,{homePage:Mt,user:Ft,globalSetting:sn,loading:Sr,dispatch:Ii,shixunHomeworks:Ri,location:ai,payload:Ti={}}=Yn,Jr=kt(Yn,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),Qr,Lo,Ln,ja,co,Kr,on,Vt,cn,Jt;const zn=(Lo=(((Qr=sn.setting)==null?void 0:Qr.navbar)||[]).find(Qn=>Qn.link==="/classrooms"))==null?void 0:Lo.hidden,er=(ja=(((Ln=sn.setting)==null?void 0:Ln.navbar)||[]).find(Qn=>Qn.link==="/shixuns"))==null?void 0:ja.hidden,sr=(Kr=(((co=sn.setting)==null?void 0:co.navbar)||[]).find(Qn=>Qn.link==="/paths"))==null?void 0:Kr.hidden,li=(on=Ft.userInfo)==null?void 0:on.is_school_manage,Ci=()=>{var Qn,an,Vr,In,Or,Tr,fr,Bo;return(0,Te.Ll)()?tt.createElement(yt.default,{className:`${Pe.rightMenu} ${Pe.menuWrap}`},tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406"))):tt.createElement(yt.default,{className:`${Pe.rightMenu} ${Pe.menuWrap}`},tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:`/users/${(Qn=Ft.userInfo)==null?void 0:Qn.login}/classrooms`},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!zn&&tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:`/users/${(an=Ft.userInfo)==null?void 0:an.login}/classrooms`},(Vr=Ft.userInfo)!=null&&Vr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!er&&tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:`/users/${(In=Ft.userInfo)==null?void 0:In.login}/shixuns`},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!sr&&tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:`/users/${(Or=Ft.userInfo)==null?void 0:Or.login}/paths`},(Tr=Ft.userInfo)!=null&&Tr.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:`/users/${(fr=Ft.userInfo)==null?void 0:fr.login}/teach-group`},"\u6211\u7684\u6559\u7814\u56E2\u961F")),tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:`/users/${(Bo=Ft.userInfo)==null?void 0:Bo.login}/competitions`},"\u6211\u7684\u7ADE\u8D5B\u7BA1\u7406")),tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:"/order"},"\u6211\u8D2D\u4E70\u7684\u8BFE\u7A0B")),(0,Ie.Ny)()&&tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:"/quality"},"\u7CBE\u54C1\u8BFE\u7A0B")),!(0,Ie.JA)()&&tt.createElement(yt.default.Item,null,tt.createElement("a",{onClick:()=>{(0,Ae.tJ)(Ii)&&et.history.push("/problemset")}},"\u8BD5\u9898\u5E93")),!(0,Ie.JA)()&&tt.createElement(yt.default.Item,null,tt.createElement("a",{onClick:()=>{(0,Ae.tJ)(Ii)&&et.history.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{onClick:()=>{localStorage.getItem("Noviceguide")==="0"||Ii({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:tt.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")),li&&tt.createElement(yt.default.Item,null,tt.createElement(et.Link,{to:"/administration/college"},"\u9AD8\u6821\u7BA1\u7406")),tt.createElement(yt.default.Item,{className:Pe.exit},tt.createElement("a",{onClick:()=>yn(void 0,null,function*(){try{const Gr=yield(0,Ke.vR)({});Ue.ZP.success(Gr==null?void 0:Gr.message)}catch(Gr){}(0,Te.d8)("_educoder_session","logout",1),(0,Te.m5)(),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),setTimeout(()=>{window.location.href="/"},800)})},"\u9000\u51FA")))};return(0,Ie.bg)()?tt.createElement(Zt.Z,{className:`${Pe.height67}`,dropdownRender:Ci,placement:"bottomRight"},tt.createElement("section",null,tt.createElement("aside",null,tt.createElement("div",{className:Ri.actionTabs.type===1?Pe.classromediv:""},tt.createElement("img",{className:`${Pe.userPic} current ml15`,src:`${(Vt=De.Z)==null?void 0:Vt.IMG_SERVER}/images/${(cn=Ft.userInfo)==null?void 0:cn.image_url}`,alt:"",onClick:()=>{var Qn;return et.history.push((0,Te.Ll)()?"/account/profile":`/users/${(Qn=Ft.userInfo)==null?void 0:Qn.login}/classrooms`)}}),(0,Te.Ll)()&&tt.createElement("span",{className:"ml10 font16"},(Jt=Ft.userInfo)==null?void 0:Jt.username),tt.createElement("i",{className:`iconfont icon-zhankai4 ${Pe.icon}`}))))):tt.createElement("div",{className:`font15 ${sn.isIlearning?Pe.login:""}`},tt.createElement("span",{className:"ml10 mr5 current c-white",onClick:()=>{Ii({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55 / \u6CE8\u518C"))};var Xt=(0,et.connect)(({homePage:En,loading:Yn,user:Mt,globalSetting:Ft,shixunHomeworks:sn})=>({homePage:En,user:Mt,globalSetting:Ft,shixunHomeworks:sn,loading:Yn.models.index}))(Tn),fi={tip:"tip___a6MfI"},Wn=Ee(61186),bn=Ee.n(Wn),Dn=Ee(59301),Bi=(En,Yn,Mt)=>new Promise((Ft,sn)=>{var Sr=ai=>{try{Ri(Mt.next(ai))}catch(Ti){sn(Ti)}},Ii=ai=>{try{Ri(Mt.throw(ai))}catch(Ti){sn(Ti)}},Ri=ai=>ai.done?Ft(ai.value):Promise.resolve(ai.value).then(Sr,Ii);Ri((Mt=Mt.apply(En,Yn)).next())}),On=(En=>(En[En.Professor=1]="Professor",En[En.AssistantProfessor=2]="AssistantProfessor",En[En.Student=3]="Student",En))(On||{});const Jn=({visible:En,user:Yn,onCancel:Mt=()=>{},dispatch:Ft})=>{var sn,Sr,Ii;const[Ri,ai]=(0,ue.useState)(),[Ti,Jr]=(0,ue.useState)([]),[Qr,Lo]=(0,ue.useState)(!1),[Ln,ja]=(0,ue.useState)(!1),[co,Kr]=(0,ue.useState)(),[on,Vt]=(0,ue.useState)(!1),cn=(sn=window.location.pathname)==null?void 0:sn.includes("classrooms/");(0,ue.useEffect)(()=>{var Ci,Qn;(Ci=Yn==null?void 0:Yn.userInfo)!=null&&Ci.identity&&Jr([((Qn=Yn==null?void 0:Yn.userInfo)==null?void 0:Qn.identity)==="student"?3:1])},[Yn]),(0,ue.useEffect)(()=>{var Ci,Qn,an;if(console.log(Yn==null?void 0:Yn.userInfo),(Ci=Yn==null?void 0:Yn.userInfo)!=null&&Ci.user_status)if(((Qn=Yn==null?void 0:Yn.userInfo)==null?void 0:Qn.role)===15){Vt(!1);return}else{let Vr=JSON.parse(cn?localStorage==null?void 0:localStorage.getItem("delaytip_class"):localStorage==null?void 0:localStorage.getItem("delaytip_user"));Vr&&(Vr==null?void 0:Vr.login)===((an=Yn==null?void 0:Yn.userInfo)==null?void 0:an.login)?(console.log(bn()(Vr==null?void 0:Vr.time).add(1,"days")),console.log(bn()(new Date)),bn()(Vr==null?void 0:Vr.time).add(1,"days").set({hour:0,minute:0,second:0})<bn()(new Date)&&Vt(!0)):Vt(!0)}},[(Sr=Yn==null?void 0:Yn.userInfo)==null?void 0:Sr.user_status]);const Jt=(Ci,Qn)=>{if(Ti.includes(1)){Bt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Dn.createElement("div",{className:"tc"},Qn||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${Ci}/students`}});return}window.location.href=`/classrooms/${Ci}/students`},zn=()=>Bi(void 0,null,function*(){if(!Ri){Ue.ZP.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}Lo(!0);const Ci=yield(0,Ut.cR)({invite_code:Ri,professor:Ti.includes(1)?1:null,assistant_professor:Ti.includes(2)?1:null,student:Ti.includes(3)?1:null});if(Lo(!1),(Ci==null?void 0:Ci.status)===-1&&Ft({type:"classroomList/setActionTabs",payload:{key:"\u5230\u671F\u63D0\u793A"}}),(Ci==null?void 0:Ci.status)===-2){if(er(),Ci.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"){ja(!0),Kr(1);return}if(Ci.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1"){ja(!0),Kr(2);return}if(Ci.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1"){ja(!0),Kr(3);return}}if((Ci==null?void 0:Ci.status)===0){(0,Te.L9)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),er(),Ci!=null&&Ci.course_id?Jt(Ci.course_id,Ci.message):Ue.ZP.success(Ci.message);return}}),er=()=>Bi(void 0,null,function*(){Mt()}),sr=()=>{var Ci,Qn;cn?localStorage.setItem("delaytip_class",JSON.stringify({time:new Date,login:(Ci=Yn==null?void 0:Yn.userInfo)==null?void 0:Ci.login})):localStorage.setItem("delaytip_user",JSON.stringify({time:new Date,login:(Qn=Yn==null?void 0:Yn.userInfo)==null?void 0:Qn.login})),Vt(!1)},li=()=>Bi(void 0,null,function*(){let Ci=yield(0,It.ZP)("/api/business_contacts.json",{method:"post"});(Ci==null?void 0:Ci.status)===0&&Ue.ZP.info("\u7533\u8BF7\u6210\u529F")});return Dn.createElement(Dn.Fragment,null,on&&Dn.createElement("div",{style:{background:"rgba(255,24,24,0.1)",color:"#E30000",display:"none"}},Dn.createElement("div",{className:fi.tip},Dn.createElement("div",null,Dn.createElement("i",{className:"iconfont icon-tishi9 font14 mr10",style:{color:"#E30000"}}),cn?Dn.createElement(Dn.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",((Ii=Yn==null?void 0:Yn.userInfo)==null?void 0:Ii.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'):Dn.createElement(Dn.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')),Dn.createElement("div",null,Dn.createElement("span",{className:"mr15",style:{color:"#666666",cursor:"pointer"},onClick:sr},"\u5FFD\u7565"),Dn.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:li},"\u7533\u8BF7\u5EF6\u671F")))))};var Ki=(0,et.connect)(({user:En})=>({user:En}))(Jn),Pi=Ee(3113),ur="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAACpCAYAAAD6OhnWAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfQWcHEX2/7daxtc17oYFSYIeBPsBgRwECe6BcHDIccghRxIk6MFB4A4NJHiCB7egwXJokLhnXcenu6v+n1fdPTu7O7vZjcHdn/4wzGa3p+dVfeu9932vXlUx/A9c/ecLnxZPDVQsDFOYNQiq0h+KVgYhBoLzfkKIfGomY6wRirIajK0AN6tg8VVcqMu5isWm37Ni1f4s8d/eHey/sQGDXxe5qmLuBW4dyFRtT3BrBwB5Y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/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=",lo=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Hr=(En,Yn)=>{var Mt={};for(var Ft in En)jo.call(En,Ft)&&Yn.indexOf(Ft)<0&&(Mt[Ft]=En[Ft]);if(En!=null&&lo)for(var Ft of lo(En))Yn.indexOf(Ft)<0&&Oo.call(En,Ft)&&(Mt[Ft]=En[Ft]);return Mt};const da=null,zo=En=>{var Yn=En,{homePage:Mt,user:Ft,globalSetting:sn,loading:Sr,dispatch:Ii,location:Ri,text:ai,shixunHomeworks:Ti,payload:Jr={}}=Yn,Qr=Hr(Yn,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]);const[Lo,Ln]=(0,ue.useState)("none");return(0,ue.useEffect)(()=>{Ti.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Ln("flex")},[Ti.actionTabs.key]),(0,ue.useEffect)(()=>{Ti.actionTabs.key==="\u9690\u85CF"&&(Ln("none"),localStorage.setItem("Noviceguide","0"))},[Ti.actionTabs.key]),ue.createElement("div",{style:{display:Lo,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},ue.createElement("div",{style:{margin:"0 auto",width:"1200px"}},ue.createElement("img",{src:ur,style:{position:"absolute",top:"-32px"}}),ue.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ti.actionTabs.text),Ti.actionTabs.type===9?ue.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},ue.createElement(Pi.ZP,{type:"primary",onClick:()=>{localStorage.setItem("Noviceguide","0"),Ln("none"),Ii({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")):ue.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},ue.createElement(Pi.ZP,{type:"primary",onClick:()=>{localStorage.setItem("Noviceguide","0"),Ii({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Ln("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))};var Co=(0,et.connect)(({homePage:En,loading:Yn,user:Mt,globalSetting:Ft,shixunHomeworks:sn})=>({homePage:En,user:Mt,globalSetting:Ft,loading:Yn.models.index,shixunHomeworks:sn}))(zo),xo=Object.defineProperty,Nr=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,to=(En,Yn,Mt)=>Yn in En?xo(En,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):En[Yn]=Mt,jn=(En,Yn)=>{for(var Mt in Yn||(Yn={}))Be.call(Yn,Mt)&&to(En,Mt,Yn[Mt]);if(Nr)for(var Mt of Nr(Yn))ya.call(Yn,Mt)&&to(En,Mt,Yn[Mt]);return En};const Vi=En=>React.createElement("svg",jn({width:46,height:18,xmlns:"http://www.w3.org/2000/svg"},En),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 Wi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNi41NzggOC44Yy4xNjItLjY4Mi4zLS43MzcuOTgyLS43MzcuNjg5IDAgLjc5My4wNTUuNjMyLjczNy0uMTY0LjY4OS0uMjk4Ljc2LS45ODcuNzYtLjY4MiAwLS43OS0uMDcxLS42MjctLjc2Wm0tLjIyMiAxLjE5OGgxLjQ4OGwtMS4wMDQgNC4yM0g1LjM1MmwxLjAwNC00LjIzWk04LjQ2NSAxMS4yNDRoMi40NzRsLS4yNzUgMS4xNkg4LjE4OXpNMTUuMTIgMTIuODg5bC0uMzE3IDEuMzRIMTEuMjNsMS4yOTEtNS40MzdoMS41NmwtLjk3NCA0LjA5N3pNMTguNjg4IDExLjU1Yy4wN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CA1Ljg1OS4wODMgOC43OS0uMDU1YTI5Ljg4NCAyOS44ODQgMCAwIDAgNy41Ni0xLjMzMWMxLjgxNy0uNTc3IDMuNzYzLS42NDIgNS42My0uMjgxIDEuNDcxLjI4IDMuMTg3IDEuNDEzIDQuNjg2Ljk0NCAxLjQyOC0uNDQgMi4wMzMtMS45MzIgMi4zNS0zLjI2NWwuOTIzLTMuODc5aC0xLjQ3WiIgZmlsbD0iIzIzREQ3RiIvPjxwYXRoIGQ9Im0yMC4zODcgNC4xNi0uNzM1LjA3OWMtMS4yODMtMS42ODctMy41MTgtMi43OTctNi4wNDgtMi43OTctMy4xOCAwLTUuODc2IDEuNzUyLTYuODM0IDQuMThsLTEuODEuMTk2QzUuMTcgMi41OCA4LjYzNyAwIDEyLjg4MyAwYzMuNDg5IDAgNi40NTIgMS43MzcgNy41MDQgNC4xNiIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik0yOC4wODYgNi40ODhoLTIuNTA4Yy0xLjAwMy0xLjA3NC0zLjA4Ni0xLjgwMi01LjQ4Ni0xLjgwMi0yLjQwOCAwLTQuNDkxLjczNS01LjQ5NCAxLjgxLjczNi0xLjM2MyAzLjA0My0yLjU2NyA1Ljg3Ni0yLjkyIDMuNDQ2LS40MjYgNy4xMzcgMS4yMSA3LjYxMiAyLjkxMiIgZmlsbD0iIzE5NkVGRCIvPjwvZz48L3N2Zz4=",pi=Ee(89392),qn=Ee(59301),nr=Object.defineProperty,en=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Li=(En,Yn,Mt)=>Yn in En?nr(En,Yn,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):En[Yn]=Mt,yr=(En,Yn)=>{for(var Mt in Yn||(Yn={}))_t.call(Yn,Mt)&&Li(En,Mt,Yn[Mt]);if(en)for(var Mt of en(Yn))zt.call(Yn,Mt)&&Li(En,Mt,Yn[Mt]);return En},Oi=(En,Yn)=>{var Mt={};for(var Ft in En)_t.call(En,Ft)&&Yn.indexOf(Ft)<0&&(Mt[Ft]=En[Ft]);if(En!=null&&en)for(var Ft of en(En))Yn.indexOf(Ft)<0&&zt.call(En,Ft)&&(Mt[Ft]=En[Ft]);return Mt},Zn=(En,Yn,Mt)=>new Promise((Ft,sn)=>{var Sr=ai=>{try{Ri(Mt.next(ai))}catch(Ti){sn(Ti)}},Ii=ai=>{try{Ri(Mt.throw(ai))}catch(Ti){sn(Ti)}},Ri=ai=>ai.done?Ft(ai.value):Promise.resolve(ai.value).then(Sr,Ii);Ri((Mt=Mt.apply(En,Yn)).next())});const{Header:ki}=Lt.default,{Search:zr}=Nt.default;function br(){var En,Yn;const Ft=window.location.pathname.split("/"),sn={};return Ft[1]=="classrooms"&&Ft.length>3&&!((En=Ft[4])!=null&&En.includes("newgold"))&&!((Yn=Ft[5])!=null&&Yn.includes("newgold"))&&Ft[2]!=="coursesId"&&(sn.course_id=Ft[2]),Ft[1]==="shixuns"&&Ft.length>3&&(sn.objective_type="shixun",sn.objective_id=Ft[2]),Ft[1]==="paths"&&Ft.length>3&&(sn.objective_type="path",sn.objective_id=Ft[2]),yr(yr({},sn),{school:1})}const Br=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Pt=En=>{var Yn=En,{homePage:Mt,user:Ft,globalSetting:sn,loading:Sr,dispatch:Ii,isLogin:Ri=!1,shixunHomeworks:ai}=Yn,Ti=Oi(Yn,["homePage","user","globalSetting","loading","dispatch","isLogin","shixunHomeworks"]),Jr,Qr,Lo,Ln,ja,co,Kr,on,Vt;const cn=(0,et.useLocation)(),[Jt,zn]=(0,ue.useState)(!1),[er,sr]=(0,ue.useState)(""),[li,Ci]=(0,ue.useState)(!1),Qn=br();(0,ue.useEffect)(()=>{Ii({type:"user/getNavigationInfo",payload:yr({},Qn)})},[sn.name]),(0,ue.useEffect)(()=>{ai.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(Br!=null&&Br.includes(cn==null?void 0:cn.pathname)||(cn==null?void 0:cn.pathname.indexOf("/classrooms"))===0||Ii({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[cn.pathname]),(0,ue.useEffect)(()=>{ai.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||ai.actionTabs.key||localStorage.setItem("Noviceguide","0")},[ai.actionTabs.key]),(0,ue.useEffect)(()=>{var Ui;if(sn!=null&&sn.setting){let xr=(0,pi.cloneDeep)((Ui=sn==null?void 0:sn.setting)==null?void 0:Ui.navbar);xr=xr==null?void 0:xr.filter(Cn=>{var hi;return!(Cn!=null&&Cn.hidden)&&!((0,Ie.JA)()&&((hi=["/paperlibrary","/problemset"])!=null&&hi.includes(Cn.link)))});for(const Cn of xr)Cn.subitem&&(Cn.subitem=Cn.subitem.filter(hi=>{var Ge;return!(hi!=null&&hi.hidden)&&!((0,Ie.JA)()&&((Ge=["/paperlibrary","/problemset"])!=null&&Ge.includes(hi.link)))}));let ro=!1;xr==null||xr.map(function(Cn,hi){var Ge,To,no;const rr=cn.pathname;Cn.link===rr&&(sr(Cn==null?void 0:Cn.link),(0,Te.Dk)(rr==="/"?(Ge=sn==null?void 0:sn.setting)==null?void 0:Ge.name:Gr(Cn==null?void 0:Cn.name)),Tr(Bo(hi,{name:Cn==null?void 0:Cn.name,link:Cn==null?void 0:Cn.link},xr)),ro=!0),(To=Cn==null?void 0:Cn.subitem)!=null&&To.length&&((no=Cn==null?void 0:Cn.subitem)==null||no.map(qi=>{qi.link===rr&&(sr(qi==null?void 0:qi.link),rr!=="/"&&(0,Te.Dk)(Gr(qi==null?void 0:qi.name)),Tr(Bo(hi,{name:qi==null?void 0:qi.name,link:qi==null?void 0:qi.link},xr)),ro=!0)}))}),ro||Tr(xr)}},[sn==null?void 0:sn.setting,Ft]);const an=(0,ue.useMemo)(()=>{var Ui,xr;return(Ui=sn==null?void 0:sn.setting)!=null&&Ui.nav_logo_url?`${De.Z.IMG_SERVER}/${(xr=sn==null?void 0:sn.setting)==null?void 0:xr.nav_logo_url}`:`${De.Z.IMG_SERVER}/images/avatars/LaboratorySetting/1nav?t=${new Date().getTime()}`},[(Jr=sn==null?void 0:sn.setting)==null?void 0:Jr.nav_logo_url]);function Vr(Ui){et.history.push("/search?value="+Ui)}const In=()=>Jt?qn.createElement("div",{onBlur:()=>{setTimeout(()=>{zn(!1)},300)}},qn.createElement(zr,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Vr,autoFocus:!0})):qn.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:()=>{et.history.push("/search?value=")}}),[Or,Tr]=(0,ue.useState)([]),fr=(Ui,xr)=>Zn(void 0,null,function*(){var ro,Cn,hi,Ge,To,no;if((Ui==null?void 0:Ui.name)==="\u5DE5\u7A0B\u8BA4\u8BC1"){const rr=yield(0,Ke.IU)();(ro=rr==null?void 0:rr.data)!=null&&ro.engineer_url?(hi=(Cn=rr==null?void 0:rr.data)==null?void 0:Cn.engineer_url)!=null&&hi.includes("http")?(0,Te.xg)((Ge=rr==null?void 0:rr.data)==null?void 0:Ge.engineer_url):et.history.push((To=rr==null?void 0:rr.data)==null?void 0:To.engineer_url):(rr==null?void 0:rr.status)!=401&&Ci(!0);return}(no=Ui==null?void 0:Ui.link)!=null&&no.includes("http")?(0,Te.xg)(Ui==null?void 0:Ui.link):((0,Te.Dk)(Ui==null?void 0:Ui.name),et.history.push(Ui==null?void 0:Ui.link)),(Ui==null?void 0:Ui.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Ii({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:qn.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~")}})}),Bo=(Ui,xr,ro)=>{const Cn=ro.slice();return Cn[Ui]&&(Cn[Ui].name=xr.name,Cn[Ui].link=xr.link),Cn||[]},Gr=(Ui="")=>Ui.indexOf("<")>-1?Ui.slice(0,Ui.indexOf("<")):Ui;return sn.showHeader&&sn.showHeaderFooter?qn.createElement(Lt.default,{style:{background:`${cn.pathname=="/training"?"rgba(0,0,0,0)":""}`},className:`${sn.isIlearning?vt["header-iearning"]:vt.header} ${sn.showHeaderFixed?vt.headerFixed:""}`},(sn==null?void 0:sn.showTip)&&qn.createElement(Ki,null),qn.createElement(ki,{className:"header",style:{background:`${cn.pathname=="/training"?"rgba(0,0,0,0)":""}`,zIndex:`${cn.pathname=="/training"?"999":""}`}},qn.createElement("section",{className:vt["edu-menu"]},(!!sn.isIlearning||!((Qr=sn==null?void 0:sn.setting)!=null&&Qr.main_site)&&!!((Lo=sn==null?void 0:sn.setting)!=null&&Lo.navbar))&&qn.createElement(et.Link,{style:{display:"flex",alignItems:"center"},onClick:()=>{Ii({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},qn.createElement("img",{className:vt.logo,title:(Ln=sn.setting)==null?void 0:Ln.name,src:an||Wi})),qn.createElement("ul",{className:`${vt.menu} ${(0,Te.Ll)()&&"ml0"}`},(0,Te.Ll)()&&qn.createElement("li",null,qn.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!(0,Te.Ll)()&&sn.setting&&Or.map(function(Ui,xr){var ro,Cn,hi,Ge,To;return qn.createElement("li",{key:xr,className:!((ro=Ui==null?void 0:Ui.subitem)!=null&&ro.length)&&er===(Ui==null?void 0:Ui.link)||(Cn=Ui==null?void 0:Ui.subitem)!=null&&Cn.some(no=>er===(no==null?void 0:no.link))?vt.actived:""},qn.createElement("div",{onClick:()=>fr(Ui,xr),className:vt.name},qn.createElement("span",{dangerouslySetInnerHTML:{__html:(()=>{var no;let rr=Ui==null?void 0:Ui.name;return(no=Ui==null?void 0:Ui.subitem)==null||no.map((qi,Qi)=>(qi.link===cn.pathname&&(rr=qi.name),qi)),rr})()}}),((hi=Ui==null?void 0:Ui.subitem)==null?void 0:hi.length)>0&&qn.createElement("i",{className:"iconfont icon-zhankai4"})),((Ge=Ui==null?void 0:Ui.subitem)==null?void 0:Ge.length)>0&&qn.createElement("div",{className:vt.dropDown},(To=Ui==null?void 0:Ui.subitem)==null?void 0:To.map((no,rr)=>qn.createElement("div",{className:vt.subName,onClick:()=>fr(no,xr),key:xr+"-"+rr},!!rr&&qn.createElement("div",{className:vt.line}),qn.createElement("aside",{className:"font16 c-black"},Gr(no.name)),qn.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},no.content)))))})),qn.createElement("div",{className:"search-bar",style:{flex:sn.isIlearning?"initial":"1 0 auto"}},!(0,Te.Ll)()&&!(sn!=null&&sn.isIlearning)&&qn.createElement(qn.Fragment,null,qn.createElement(In,null),!Ri&&qn.createElement(Ce,null),!Ri&&!!((ja=Ft==null?void 0:Ft.userInfo)!=null&&ja.login)&&qn.createElement(et.Link,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:`/messages/${(co=Ft==null?void 0:Ft.userInfo)==null?void 0:co.login}/user_tidings`},((Kr=Ft==null?void 0:Ft.navigationInfo)==null?void 0:Kr.new_message)&&qn.createElement("span",{className:vt.newslight}))),!Ri&&qn.createElement(Xt,{payload:Qn}))),qn.createElement(Bt.default,{centered:!0,destroyOnClose:!0,open:li,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Te.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:()=>Ci(!1)},qn.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},qn.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"),qn.createElement("img",{src:`${De.Z.IMG_SERVER}/${(on=sn==null?void 0:sn.setting)==null?void 0:on.homepage_tea_qq_qrcode_url}`,width:200,height:200,className:"mb10"}),qn.createElement("p",null,"\u7FA4\u53F7\uFF1A",(Vt=sn==null?void 0:sn.setting)==null?void 0:Vt.homepage_tea_qq_number)))),qn.createElement(Co,null)):qn.createElement(qn.Fragment,null)};var Di=(0,et.connect)(({homePage:En,loading:Yn,user:Mt,globalSetting:Ft,shixunHomeworks:sn})=>({homePage:En,user:Mt,globalSetting:Ft,loading:Yn.models.index,shixunHomeworks:sn}))(Pt)},73524:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Zt}});var ue=Ee(59301),et={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Lt=Ee(92310),Nt=Ee.n(Lt),Bt=Ee(71418),vt=Ee(2859),Ue=Ee(99064),bt=Ee(955),Ct=(Ot,Ut,Te)=>new Promise((te,ne)=>{var de=Se=>{try{pe(Te.next(Se))}catch(Ae){ne(Ae)}},le=Se=>{try{pe(Te.throw(Se))}catch(Ae){ne(Ae)}},pe=Se=>Se.done?te(Se.value):Promise.resolve(Se.value).then(de,le);pe((Te=Te.apply(Ot,Ut)).next())}),Zt=({data:Ot,className:Ut,fullWidth:Te,style:te={},onClose:ne,onOk:de,showFullTools:le,noAssociationId:pe})=>{const Se=(0,ue.useRef)(null),Ae=(0,ue.useRef)(null),Me=(0,ue.useRef)(null),ke=(0,ue.useRef)(null),[st,dt]=(0,ue.useState)(!1),[xt,ut]=(0,ue.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ue.useEffect)(()=>(Me.current||(Me.current=document.createElement("style"),document.head.appendChild(Me.current)),Ot!=null&&Ot.visible?(document.body.setAttribute("data-custom","y-hidden"),Me.current.innerHTML=" html { overflow-y: hidden; }",Ot!=null&&Ot.src&&It()):(document.body.removeAttribute("data-custom"),Me.current&&(document.head.removeChild(Me.current),Me.current=null)),()=>{document.body.removeAttribute("data-custom"),Me.current&&(document.head.removeChild(Me.current),Me.current=null)}),[Ot==null?void 0:Ot.visible]);const It=()=>Ct(void 0,null,function*(){dt(!0),ut("\u6B63\u5728\u52A0\u8F7D\u4E2D");const hn=yield(0,bt.ZJ)(Ot==null?void 0:Ot.src);Se.current.src="",Se.current.src=hn,Se.current.onload=function(){Yt()},dt(!1),ut("")}),Et=hn=>Ct(void 0,null,function*(){dt(!0),ut("\u6B63\u5728\u4FDD\u5B58\u4E2D");const vi=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ot.title,file:hn.dataUrl}});vi!=null&&vi.id&&!pe?(yield(0,Ue.ZP)(`/api/attachments/${Ot.id}/add_subitem.json`,{method:"post",body:{subitem_id:vi==null?void 0:vi.id,settings:JSON.stringify(hn.state)}})).status===0&&de():vi!=null&&vi.id&&de(vi),dt(!1),ut("")}),Tt=()=>{const hn=document.querySelector('a[href="https://markerjs.com/"]');hn&&hn.parentNode&&(hn.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(ui=>{const Bn=document.querySelector(ui.name);Bn&&Bn.setAttribute("title",ui.title)})},Yt=()=>{Ae.current=new vt.hP(Se.current),Ae.current.targetRoot=ke.current,Ae.current.addEventListener("render",Et),Ae.current.addEventListener("beforeclose",ne),le&&(Ae.current.availableMarkerTypes=Ae.current.ALL_MARKER_TYPES,Ae.current.uiStyleSettings.redoButtonVisible=!0,Ae.current.uiStyleSettings.notesButtonVisible=!0,Ae.current.uiStyleSettings.zoomButtonVisible=!0,Ae.current.uiStyleSettings.zoomOutButtonVisible=!0,Ae.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ae.current.uiStyleSettings,Ae.current.show(),Ot!=null&&Ot.snapshotData&&Ae.current.restoreState(Ot.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Tt()},300)};return ue.createElement(ue.Fragment,null,(Ot==null?void 0:Ot.visible)&&ue.createElement(Bt.Z,{spinning:st,tip:xt,style:{position:"absolute",width:"100vw"}},ue.createElement("div",{ref:ke,className:Nt()(et.imageDimensions,Ut,Te?et.fullWidth:""),style:te},ue.createElement("img",{className:et.img,ref:Se}))))}},41588:function(qt,kn,Ee){"use strict";var ue=Ee(59301),et=Ee(95237),Lt=Ee(43604),Nt=Ee(99313),Bt=Ee(3113),vt=Ee(85149),Ue=Ee(88010),bt=Ee(48136),Ct=Ee(59301);const yt=(0,ue.forwardRef)(({callback:Zt,showSaveButton:Ot,value:Ut=""},Te)=>{const te=(0,ue.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(et.Z,{className:Ue.Z.lists,gutter:[10,10]},ne.map((Ae,Me)=>Ct.createElement(Lt.Z,{flex:"110px",className:Ue.Z.item},Ct.createElement("div",null,Ct.createElement(vt.Z,{value:`$$${Ae.value}$$`}),Ae.name),Ct.createElement("div",{className:Ue.Z.children},Ae.children.map((ke,st)=>Ct.createElement("div",{key:st},Ct.createElement("h1",null,ke.name),Ct.createElement(et.Z,{gutter:[10,10]},ke.data.map((dt,xt)=>Ct.createElement(Lt.Z,{key:xt,onClick:()=>le(dt),className:Ue.Z.diamond},Ct.createElement(vt.Z,{value:"`$$"+dt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ct.createElement(et.Z,{className:Ue.Z.lists,gutter:[10,10]},de.map((Ae,Me)=>Ct.createElement(Lt.Z,{flex:"110px",className:Ue.Z.item},Ct.createElement("div",null,Ct.createElement(vt.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),Ct.createElement("div",{className:Ue.Z.children},Ae.children.map((ke,st)=>Ct.createElement("div",{key:st},ke.name&&Ct.createElement("h1",null,ke.name),Ct.createElement(et.Z,{gutter:[10,10]},ke.data.map((dt,xt)=>Ct.createElement(Lt.Z,{key:xt,onClick:()=>le(dt),className:Ue.Z.diamond},Ct.createElement(vt.Z,{value:"`$$"+dt.value+"$$`"}))))))))))}],Se=()=>{var Ae=document.createElement("div");Ae.innerHTML=te.current.getValue();var Me=Ae.innerText;return Zt&&Zt(Me),Me};return(0,ue.useImperativeHandle)(Te,()=>({getData:Se})),Ct.createElement("div",{className:Ue.Z.mathWrap},Ct.createElement(Nt.default,{defaultActiveKey:"1",items:pe}),Ct.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Ut||""),Ot&&Ct.createElement("div",{className:Ue.Z.button},Ct.createElement(Bt.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});kn.Z=yt},23210:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Se}});var ue=Ee(59301),et={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Lt=Ee(3113),Nt=Ee(70557),Bt=Ee(23954),vt=Ee(6848),Ue=Ee(955),bt=Ee(94941),Ct=Ee(8797),yt=Ee(3294),Zt=Ee(19381),Ot=Ee(59301),Ut=Object.defineProperty,Te=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,de=(Ae,Me,ke)=>Me in Ae?Ut(Ae,Me,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Ae[Me]=ke,le=(Ae,Me)=>{for(var ke in Me||(Me={}))te.call(Me,ke)&&de(Ae,ke,Me[ke]);if(Te)for(var ke of Te(Me))ne.call(Me,ke)&&de(Ae,ke,Me[ke]);return Ae},pe=(Ae,Me,ke)=>new Promise((st,dt)=>{var xt=Et=>{try{It(ke.next(Et))}catch(Tt){dt(Tt)}},ut=Et=>{try{It(ke.throw(Et))}catch(Tt){dt(Tt)}},It=Et=>Et.done?st(Et.value):Promise.resolve(Et.value).then(xt,ut);It((ke=ke.apply(Ae,Me)).next())}),Se=({editOffice:Ae="view",data:Me,theme:ke,type:st,filename:dt,monacoEditor:xt,className:ut,style:It,close:Et,onClose:Tt,hasMask:Yt,disabledDownload:hn,onImgDimensions:vi,showNodata:ui,recordInfo:Bn})=>{const[di,nt]=(0,ue.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ze,gn]=(0,ue.useState)(""),[Xn,ti]=(0,ue.useState)(),nn=window.ENV==="build"?"/react/build":"",vn=location.host.startsWith("localhost")?yt.Z.PROXY_SERVER:yt.Z.API_SERVER,Si=10*(1024*1024),Vn=(0,ue.useRef)();Me!=null&&Me.startsWith("/api")&&st!=="txt"&&(Me=yt.Z.API_SERVER+Me);const Mi=Oe=>Oe.substring(Oe.lastIndexOf("/")+1).split(".").pop();dt&&xt&&(xt.filename=dt),(0,ue.useEffect)(()=>{var Oe,Ce;const Pe=(Ce=(Oe=document.cookie)==null?void 0:Oe.replace(/\s/g,""))==null?void 0:Ce.split(";");Pe==null||Pe.map(Ie=>{let Ke=Ie.split("=");Ke[0]==="_educoder_session"&&gn(Ke[1])})},[]),(0,ue.useEffect)(()=>{st==="office"&&(Me.indexOf("bigfilescdn.")>-1||Me.indexOf("bigfiles1")>-1?ti({url:Me,fileType:Mi(Me),model:Me.indexOf("model=edit")?"edit":"view"}):pt())},[st,Me]);const pt=()=>pe(void 0,null,function*(){console.log("data:",Me);let Oe=Me;Me.startsWith("http")||(Oe=location.origin+Oe);let Ce=new URL(Oe).pathname.split("/").pop();const Pe=yield(0,bt.gJ)({attachment_id:Ce});Pe.url=vn+Pe.url,ti(Pe)}),ht=()=>{if(Me.startsWith("http")||Me.startsWith("blob:")){dn();return}(0,Ue.Sv)(dt||"educoder",Me,dt)},dn=()=>{Bn&&(0,Zt.fc)({id:Bn==null?void 0:Bn.id,watch_type:1,course_id:Bn==null?void 0:Bn.course_id}),(0,Ue.Nd)(dt||"educoder",decodeURIComponent(Me))};return Ot.createElement("div",{style:le({},It||{}),className:`${Yt&&et.bgBlack} ${st?et.wrp:"hide"}`},Et&&Ot.createElement("div",{className:et.close,ref:Vn},!!vi&&Ot.createElement(vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Vn.current},Ot.createElement("span",{onClick:()=>{Tt(),vi()}},Ot.createElement("i",{className:"icon-yulanpizhu"}))),!hn&&Ot.createElement(vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Vn.current},Ot.createElement("span",{onClick:dn},Ot.createElement("i",{className:"icon-quxiaozhiding"}))),Ot.createElement(vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Vn.current},Ot.createElement("span",{className:"",onClick:Tt},Ot.createElement("i",{className:"icon-guanbi1"})))),Ot.createElement("div",{className:`${et[ut]} ${ut} ${et.monaco} ${st==="txt"?"show":"hide"}`},st==="txt"&&Ot.createElement(Ot.Fragment,null,Ot.createElement(Bt.ZP,le({},xt)))),st==="audio"&&Ot.createElement("audio",{src:`${(Me==null?void 0:Me.indexOf("http://"))>-1||(Me==null?void 0:Me.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Me}`,autoPlay:!0}),st==="video"&&Ot.createElement(Ot.Fragment,null,(Me==null?void 0:Me.indexOf("http"))>-1?Ot.createElement("video",{controls:!0,src:`${Me}`,autoPlay:!0}):Ot.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Me}`,autoPlay:!0})),st==="office"&&Xn&&Ot.createElement("iframe",{src:`${nn}/office.html?key=${Xn.key}&url=${btoa(Xn.url)}&callbackUrl=${vn+(Xn.callbackUrl||"")}&fileType=${Xn.fileType}&title=${Xn.title||""}&model=${Ae}&officeServer=${yt.Z.ONLYOFFICE}&disabledDownload=${!!hn}`}),st==="html"&&Ot.createElement("iframe",{src:Me+"&disposition=inline"}),st==="pdf"&&Ot.createElement("iframe",{src:`${nn}/js/pdfview/index.html?filename=${dt||"educoder.pdf"}&url=${encodeURIComponent(Me)}&disabledDownload=${!!hn}`}),st==="image"&&Ot.createElement("img",{src:`${(Me==null?void 0:Me.indexOf("http://"))>-1||(Me==null?void 0:Me.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Me}`}),(st==="other"||st==="download")&&Ot.createElement(Ot.Fragment,null,ui?Ot.createElement(Ct.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ot.createElement(Lt.ZP,{icon:Ot.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ht,disabled:hn},"\u4E0B\u8F7D")}):Ot.createElement(Lt.ZP,{type:"primary",size:"middle",onClick:ht,disabled:hn},Ot.createElement(Nt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(qt,kn,Ee){"use strict";Ee.d(kn,{z:function(){return st},Z:function(){return dt}});var ue=Ee(59301),et=Ee(50304),Lt=Ee(24768),Nt=Ee(64018),Bt=Ee(40846),vt=Ee(3294),Ue=Ee(955),bt=Ee(15342),Ct=Ee(1012),yt=Ee(23210),Zt=Ee(59301),Ut=({html:xt})=>{const ut=(0,ue.useRef)(null),It=(0,ue.useRef)(null),Et=`.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,ue.useEffect)(()=>{const Tt=ut.current.attachShadow({mode:"open"});It.current=document.createElement("div"),It.current.className="markdown-body",It.current.innerHTML=xt,Tt.appendChild(It.current);const Yt=document.createElement("style");return Yt.textContent=Et,Tt.appendChild(Yt),()=>{Tt.innerHTML=""}},[]),(0,ue.useEffect)(()=>{It.current&&(It.current.innerHTML=xt)},[xt]),Zt.createElement("div",{ref:ut})},Te=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,le=(xt,ut,It)=>ut in xt?Te(xt,ut,{enumerable:!0,configurable:!0,writable:!0,value:It}):xt[ut]=It,pe=(xt,ut)=>{for(var It in ut||(ut={}))ne.call(ut,It)&&le(xt,It,ut[It]);if(te)for(var It of te(ut))de.call(ut,It)&&le(xt,It,ut[It]);return xt};const Se="@\u2581\u2581@",Ae="@\u2581@",Me=/<pre[^>]*>/g;function ke(xt){let ut=document.createElement("div");return ut.innerHTML=xt,ut.childNodes.length===0?"":ut.childNodes[0].nodeValue}const st=(xt,ut)=>{xt=xt||"";const It=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/\(\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 ut?xt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(It,(hn,vi,ui,Bn,di,nt,ze)=>{const gn=vi||Bn||nt,Xn=ui||di||ze||"?";return vt.Z.API_SERVER+"/api/attachments/"+gn+Xn+"&t="+(0,Ue.Jn)(gn,Date.now())+(hn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(xt=xt.replace(Yt,(hn,vi,ui,Bn,di,nt,ze)=>{const gn=vi||Bn||nt,Xn=ui||di||ze||"?";return vt.Z.API_SERVER+"/attachments/download/"+gn+Xn+"&t="+(0,Ue.Jn)(gn,Date.now())+(hn.indexOf(")")>-1?")":"&")}).replace(It,(hn,vi,ui,Bn,di,nt,ze)=>{const gn=vi||Bn||nt,Xn=ui||di||ze||"?";return vt.Z.API_SERVER+"/api/attachments/"+gn+Xn+"&t="+(0,Ue.Jn)(gn,Date.now())+(hn.indexOf(")")>-1?")":"&")}).replace(Et,(hn,vi,ui,Bn,di)=>{const nt=vi||Bn,ze=ui||di||"";return'"'+vt.Z.API_SERVER+"/api/attachments/"+nt+ze+nt+ze+"&t="+(0,Ue.Jn)(nt,Date.now())}).replace(Tt,(hn,vi,ui,Bn,di)=>{const nt=vi||Bn,ze=ui||di||"";return"("+vt.Z.API_SERVER+"/files/uploads/"+nt+ze+nt+ze+"&t="+(0,Ue.Jn)(nt,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,`
|
|
`),xt)};var dt=({value:xt="",className:ut,showTextOnly:It,showLines:Et,style:Tt={},stylesPrev:Yt={},highlightKeywords:hn,showProgramFill:vi,isProgramFill:ui,disabledFill:Bn=!1,programFillValue:di,onFillChange:nt=Xn=>{},onFillBlur:ze=()=>{},onFillFocus:gn=()=>{}})=>{let Xn=String(xt);const[ti,nn]=(0,ue.useState)(""),[vn,An]=(0,ue.useState)("office"),[Si,Vn]=(0,ue.useState)([]),Mi=(0,ue.useRef)("a"+(0,Ct.Z)()),pt={},ht=(kt,yn,pn)=>{const mn=document.createElement(kt===Ae?"input":"textarea");mn.style.width="100%",mn.style.height=kt===Ae?"40px":"151px",mn.rows=5,mn.spellcheck=!1,mn.name="edu-program-fill",mn.placeholder="\u8BF7\u8F93\u5165",mn.dataset.id=yn;const Gn=Object.keys(pt).length;return pt[Gn]=mn,`<span class="edu-program-fill-wrap ${kt===Ae?"":"show"}" style="width:${kt===Ae?"400px":"100%"}" title=${pn||""}><span>${mn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function dn(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),kt=kt.replace(/<embed.*?>/g,""),kt=kt.replace(/<img.*?>/g,""),kt=kt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),kt=kt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),kt=kt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),kt}const Oe=kt=>kt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(yn,pn){let mn=pn.replace(/(\n|\r)/g,"").split("}"),Gn=[];return mn.map(Tn=>{Tn!=""&&Gn.push(`.${Mi.current} ${Tn}`)}),`<style>${Gn.join("}")}</style>`}),Ce=(0,ue.useMemo)(()=>{try{const mn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Gn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Tn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xt=/\(\/attachments\/download\//g;Xn=Xn.replace(Xt,"("+vt.Z.API_SERVER+"/attachments/download/").replace(mn,"("+vt.Z.API_SERVER+"/api/attachments/").replace(Gn,'"'+vt.Z.API_SERVER+"/api/attachments/").replace(Tn,'"'+vt.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(mn){}if(vi){let mn=-1;return Xn=Xn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Gn,Tn,Xt){var fi;return++mn,ht(Gn,mn,(fi=di==null?void 0:di[mn])==null?void 0:fi.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Oe(Xn||"")}</pre>`}let kt=Oe(Xn);kt=(0,Lt.ZP)(kt);const yn=(0,Lt.ez)();Xn.match(/\[TOC\]/)&&(kt=kt.replace("<p>[TOC]</p>",(0,Lt.Qv)()),(0,Lt.Iy)()),kt=kt.replace(/(__special_katext_id_\d+__)/g,(mn,Gn)=>{const{type:Tn,expression:Xt}=yn[Gn];return(0,bt.renderToString)(ke(Xt)||"",{displayMode:Tn==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Lt.AL)();const pn=document.createElement("div");if(pn.innerHTML=kt,It)return pn.innerText;if(hn){const mn=hn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return De(pn,mn),pn.innerHTML}return setTimeout(()=>mt(),500),pn.innerHTML},[Xn,hn]);(0,ue.useEffect)(()=>{tt.current&&tt.current.querySelectorAll(["input","textarea"]).forEach(yn=>{yn.oninput=Pe,yn.onblur=Ie,yn.onfocus=Ke})},[Si]),(0,ue.useEffect)(()=>{var kt,yn,pn,mn,Gn;if(di!=null&&di.length)try{const Tn=tt.current.querySelectorAll(".edu-program-fill-score"),Xt=tt.current.querySelectorAll('[name="edu-program-fill"]');for(const[fi,Wn]of Xt.entries())Wn.value=((kt=di==null?void 0:di[fi])==null?void 0:kt.value)||"",((yn=di==null?void 0:di[fi])==null?void 0:yn.type)==="warning"?Wn.className="program-fill-warning":((pn=di==null?void 0:di[fi])==null?void 0:pn.type)==="success"?Wn.className="program-fill-success":Wn.className="";for(const[fi,Wn]of Tn.entries())Wn.innerHTML=(mn=di==null?void 0:di[fi])!=null&&mn.score?`${(Gn=di==null?void 0:di[fi])==null?void 0:Gn.score}\u5206`:"";Vn(di)}catch(Tn){console.log(Tn,"error")}},[di]);const Pe=kt=>{Si[kt.target.dataset.id]=Si[kt.target.dataset.id]||{},Si[kt.target.dataset.id].value=kt.target.value,Vn([...Si]),nt(Si,kt.target.dataset.id)},Ie=kt=>{Si[kt.target.dataset.id]=Si[kt.target.dataset.id]||{},Si[kt.target.dataset.id].value=kt.target.value,Vn([...Si]),ze(Si,kt.target.dataset.id)},Ke=kt=>{Si[kt.target.dataset.id]=Si[kt.target.dataset.id]||{},Si[kt.target.dataset.id].value=kt.target.value,Vn([...Si]),gn(Si,kt.target.dataset.id)};function De(kt,yn){return kt.childNodes.forEach(pn=>{var mn;if(pn.childNodes.length>0)De(pn,yn);else if(pn.nodeName!=="IMG")if(pn.innerHTML)pn.innerHTML=(mn=pn.innerHTML)==null?void 0:mn.replace(new RegExp(yn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Gn=document.createElement("span");Gn.innerHTML=pn.textContent.replace(new RegExp(yn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),pn.replaceWith(Gn)}})}const tt=(0,ue.useRef)();Lt.jb.WebkitLineClamp=Et,Et&&(Tt=pe(pe({},Tt),Lt.jb));function He(kt){let yn=kt.target;if(yn.tagName.toUpperCase()==="A"){let pn=yn.getAttribute("href");if(pn.indexOf("office")>-1)kt.preventDefault(),nn(pn),An("office");else if(pn.indexOf("application/pdf")>-1)kt.preventDefault(),nn(pn),An("pdf");else if(pn.indexOf("text/html")>-1)kt.preventDefault(),nn(pn),An("html");else if(pn.startsWith("#")){kt.preventDefault();let mn=document.getElementById(pn.replace("#",""));mn&&mn.scrollIntoView(!0)}}}const mt=()=>{var kt;const yn=(kt=tt.current)==null?void 0:kt.querySelectorAll("video");yn==null||yn.forEach(pn=>{if(pn.oncontextmenu=()=>!1,pn.src.indexOf(".m3u8")>-1&&!pn.canPlayType("application/vnd.apple.mpegurl")){if(Bt.ZP.isSupported()){var mn=new Bt.ZP;mn.loadSource(pn.src),mn.attachMedia(pn)}}})};(0,ue.useEffect)(()=>{if(tt.current&&Ce&&Ce.match(Me)&&window.PR.prettyPrint(),tt.current)return tt.current.addEventListener("click",He),()=>{var kt;(kt=tt.current)==null||kt.removeEventListener("click",He),(0,Lt.AL)(),(0,Lt.Iy)()}},[Ce,tt.current,He]),(0,ue.useEffect)(()=>{var kt;const yn=pn=>{pn.preventDefault(),pn.clipboardData.setData("text",window.getSelection().toString())};return(kt=tt.current)==null||kt.addEventListener("copy",yn),()=>{var pn;(pn=tt.current)==null||pn.removeEventListener("copy",yn)}},[tt.current]);const Wt=kt=>/<style[\s\S]*?>/i.test(kt||"");return ue.createElement(ue.Fragment,null,It&&ue.createElement("div",{ref:tt},Ce),!It&&!Wt(Ce)&&ue.createElement("div",{ref:tt,style:pe({},Tt),className:`${ut||""} ${Bn?"disabled-fill":""} markdown-body ${Mi.current}`,dangerouslySetInnerHTML:{__html:Ce}}),!It&&Wt(Ce)&&ue.createElement(Ut,{html:Ce}),ue.createElement(yt.Z,{close:!0,data:ti,type:ti!=null&&ti.length?vn:"",style:pe({},Yt),onClose:()=>nn("")}))}},14636:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return st}});var ue=Ee(59301),et=Ee(6848),Lt=Ee(92832),Nt=Ee(71418),Bt=Ee(64165),vt=Ee(92310),Ue=Ee.n(vt),bt={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=Ee(36723),yt=Ee(99064),Zt=Ee(89392),Ot=Object.defineProperty,Ut=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,le=(dt,xt,ut)=>xt in dt?Ot(dt,xt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):dt[xt]=ut,pe=(dt,xt)=>{for(var ut in xt||(xt={}))ne.call(xt,ut)&&le(dt,ut,xt[ut]);if(te)for(var ut of te(xt))de.call(xt,ut)&&le(dt,ut,xt[ut]);return dt},Se=(dt,xt)=>Ut(dt,Te(xt)),Ae=(dt,xt,ut)=>new Promise((It,Et)=>{var Tt=vi=>{try{hn(ut.next(vi))}catch(ui){Et(ui)}},Yt=vi=>{try{hn(ut.throw(vi))}catch(ui){Et(ui)}},hn=vi=>vi.done?It(vi.value):Promise.resolve(vi.value).then(Tt,Yt);hn((ut=ut.apply(dt,xt)).next())});const Me=({className:dt,dispatch:xt,skin:ut="white",value:It=null,loading:Et=!1,data:Tt=[],otherData:Yt=[],tags:hn=[],onChange:vi=()=>{},onSearchWord:ui=()=>{},shixun_type:Bn,extraContent:di,tab_type:nt,is_create_mirror:ze,hiddenCreateOnline:gn})=>{const[Xn,ti]=(0,ue.useState)(""),[nn,vn]=(0,ue.useState)(!1),[An,Si]=(0,ue.useState)([]),[Vn,Mi]=(0,ue.useState)(0),pt=(0,ue.useRef)(null),ht=(0,ue.useRef)(String(Math.floor(Math.random()*1e6))).current,dn=(0,ue.useRef)(),Oe=(0,ue.useRef)(null),Ce=(0,ue.useRef)(0),Pe=(0,ue.useRef)([]);(0,ue.useEffect)(()=>(window.addEventListener("keydown",Ie),()=>{window.removeEventListener("keydown",Ie)}),[Xn,nn,An]),(0,ue.useEffect)(()=>{Si([])},[nt]);const Ie=Wn=>{if(!nn||Wn.keyCode!==40&&Wn.keyCode!==38)return;let bn=0;Wn.keyCode===40&&nn&&(Vn<An.length-1?bn=Vn+1:bn=0,console.log("\u4E0B"),He(bn,"down")),Wn.keyCode===38&&nn&&(Vn===0?bn=An.length-1:bn=Vn-1,He(bn,"up")),Mi(bn),De(Xn,bn,!0)},Ke=(Wn,bn)=>{const Dn=On=>{var Jn=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Ki={};return Ki["^"]="\\^",Ki["."]="\\.",Ki["\\"]="\\\\",Ki["|"]="\\|",Ki["("]="\\(",Ki[")"]="\\)",Ki["*"]="\\*",Ki["+"]="\\+",Ki["-"]="\\-",Ki.$="$",Ki["["]="\\[",Ki["]"]="\\]",Ki["?"]="\\?",On=On.replace(Jn,function(Pi){return Ki[Pi]}),On};var Bi=new RegExp(Dn(bn),"gi");return Wn=Wn.replace(Bi,function(On){return"<span style='color:#0152d9;'>"+On+"</span>"}),Wn},De=(Wn,bn,Dn)=>Ae(void 0,null,function*(){let Bi=Ce.current+1;Ce.current=Bi;const On=Jn=>Jn==null?void 0:Jn.map((Pi,ur)=>{const{id:lo,name:jo}=Pi,Oo=Se(pe({},Pi),{label:ue.createElement("ul",{id:`search-${ht}-${ur}`,onClick:()=>kt(lo,Oo),className:ur===bn?bt.searchListActive:bt.searchList},ue.createElement("li",{className:bt.name,dangerouslySetInnerHTML:{__html:Ke(jo,Wn)}}),Pi.private&&ue.createElement(et.Z,{title:"\u8BE5\u955C\u50CF\u9762\u5411\u6307\u5B9A\u7528\u6237\u5F00\u653E"},ue.createElement("li",{className:bt.tag,style:{color:"#FF9D18",border:"1px solid #FFCF8D",fontSize:10}},"\u9650\u5B9A")),Pi.is_base&&ue.createElement(et.Z,{title:"\u4EC5\u63D0\u4F9B\u4E00\u4E2A\u57FA\u672C\u7684\u64CD\u4F5C\u7CFB\u7EDF\u73AF\u5883"},ue.createElement("li",{className:bt.tag,style:{color:"#165DFF",border:"1px solid #BACFFE",fontSize:10}},"\u57FA\u7840")))});return Oo});if(Dn){const Jn=On(Pe.current);Si(Jn);return}clearTimeout(Oe.current),Oe.current=setTimeout(()=>Ae(void 0,null,function*(){var Jn,Ki;const Pi={keywords:encodeURIComponent(Wn||""),page:1,limit:1e5,tab_type:nt};Bn&&(Pi.shixun_type=Bn);const ur=yield(0,yt.ZP)("/api/shixuns/search_image.json",{method:"get",params:Se(pe({},Pi),{is_create_mirror:ze})});if((ur==null?void 0:ur.status)===0){const lo=On(((Jn=ur==null?void 0:ur.data)==null?void 0:Jn.mirrors)||[]);Bi===Ce.current&&(Si(lo),Pe.current=(0,Zt.cloneDeep)(((Ki=ur==null?void 0:ur.data)==null?void 0:Ki.mirrors)||[]))}}),300)}),tt=Wn=>{const bn=document.getElementById(`scroll-${ht}-${Wn}`);if(!bn)return;document.getElementById(`scroll-${ht}`).scrollTo(0,bn.offsetTop)},He=(Wn,bn)=>{const Dn=document.getElementById(`search-${ht}-${Wn}`);if(!Dn)return;const Bi=document.getElementById(`search-${ht}`);Dn.offsetTop-Bi.scrollTop>0&&Dn.offsetTop-Bi.scrollTop<Bi.clientHeight||(bn==="down"?Bi.scrollTo(0,Dn.offsetTop-Bi.clientHeight+Dn.clientHeight):Bi.scrollTo(0,Dn.offsetTop))},mt=Wn=>{De(Wn,0)},Wt=Wn=>{var bn;if(!An.length)return;const Dn=(bn=An==null?void 0:An[Vn])==null?void 0:bn.id;vi(Dn),Si([]),Mi(0),tt(Dn),dn.current.blur()},kt=(Wn,bn)=>{vi(Wn),Si([]),Mi(0),tt(Wn)},yn=()=>{Si([]),ti(""),ui("")},pn=Wn=>{vi(Wn),Si([])},mn=()=>Xn===""?ue.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):ue.createElement("i",{onClick:Wn=>{Wn.stopPropagation(),yn()},className:"iconfont icon-shanchu4 c-grey-c"}),Gn=()=>{xt({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Tn=()=>{xt({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Xt=()=>{pt.current=setTimeout(()=>{vn(!1),Mi(0)},200)},fi=!(Tt!=null&&Tt.length)&&!(Yt!=null&&Yt.length);return ue.createElement("div",{className:Ue()(ut==="night"?bt.darklySelectEnvironment:bt.selectEnvironment,dt)},di&&ue.createElement("div",{style:{marginTop:20,marginLeft:20}},di),ue.createElement("div",{className:bt.search},ue.createElement(Lt.default,{suffix:mn(),bordered:!1,ref:dn,value:Xn,onKeyDown:Wn=>{(Wn.keyCode===40||Wn.keyCode===38||Wn.keyCode===13)&&Wn.preventDefault()},size:"middle",onFocus:()=>{clearTimeout(pt.current),Xn&&mt(Xn),vn(!0)},onBlur:Xt,onChange:Wn=>{ti(Wn.target.value),Wn.target.value&&mt(Wn.target.value),ui(Wn.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:Wt}),nn&&ue.createElement("div",{id:`search-${ht}`,className:bt.searchListWrap},An.map((Wn,bn)=>ue.createElement(ue.Fragment,{key:bn}," ",Wn.label)))),Et?ue.createElement(Nt.Z,{className:bt.spin}):ue.createElement(ue.Fragment,null,!!hn.length&&ue.createElement("aside",{className:bt.common},ue.createElement("div",{className:bt.title},"\u63A8\u8350\u73AF\u5883:"),ue.createElement("ul",{className:bt.tags},hn.map((Wn,bn)=>ue.createElement("li",{key:bn,onClick:()=>pn(Wn.id),className:It===Wn.id?`${bt.tag} ${bt.tagActive}`:bt.tag},Wn.name)))),fi&&ue.createElement(Bt.Z,{style:{margin:"60px 0"},image:Ct,description:ue.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),ue.createElement("aside",{className:bt.wrap,id:`scroll-${ht}`},Tt.map((Wn,bn)=>{var Dn;return(Dn=Wn==null?void 0:Wn.image)!=null&&Dn.length?ue.createElement(ke,{key:bn,data:Wn,id:It,handleClick:Bi=>pn(Bi)}):null}),ue.createElement("ul",{className:bt.allList},Yt.map(Wn=>ue.createElement("li",{key:`key-${Wn.id}`,id:`scroll-${ht}-${Wn.id}`,className:Wn.id===It?`${bt.item} ${bt.itemActive}`:bt.item,onClick:()=>vi(Wn.id)},ue.createElement("div",{className:bt.name},Wn.name),Wn.private&&ue.createElement(et.Z,{title:"\u8BE5\u955C\u50CF\u9762\u5411\u6307\u5B9A\u7528\u6237\u5F00\u653E"},ue.createElement("div",{className:bt.tag,style:{color:"#FF9D18",border:"1px solid #FFCF8D",fontSize:10}},"\u9650\u5B9A")),Wn.is_base&&ue.createElement(et.Z,{title:"\u4EC5\u63D0\u4F9B\u4E00\u4E2A\u57FA\u672C\u7684\u64CD\u4F5C\u7CFB\u7EDF\u73AF\u5883"},ue.createElement("div",{className:bt.tag,style:{color:"#165DFF",border:"1px solid #BACFFE",fontSize:10}},"\u57FA\u7840"))))))),ue.createElement("div",{className:bt.apply},ue.createElement("span",{className:bt.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),ue.createElement("span",{className:bt.p2,onClick:Gn}," \u7533\u8BF7\u65B0\u5EFA"),!gn&&ue.createElement("span",{className:bt.p2,onClick:Tn}," \u5728\u7EBF\u521B\u5EFA")))},ke=({data:dt,id:xt,handleClick:ut})=>{const[It,Et]=(0,ue.useState)(!0),{name:Tt,image:Yt}=dt;return ue.createElement("div",{className:bt.list},ue.createElement("header",{onClick:()=>Et(!It)},ue.createElement("div",{className:bt.title},Tt),ue.createElement("i",{style:{transition:"0.5s",transform:It?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),ue.createElement("ul",{className:bt.items,style:{height:It?"auto":0}},Yt.map(hn=>ue.createElement("li",{key:hn.id,className:hn.id===xt?`${bt.item} ${bt.itemActive}`:bt.item,onClick:()=>ut(hn.id)},ue.createElement("div",{className:bt.name},hn.name),hn.private&&ue.createElement(et.Z,{title:"\u8BE5\u955C\u50CF\u9762\u5411\u6307\u5B9A\u7528\u6237\u5F00\u653E"},ue.createElement("div",{className:bt.tag,style:{color:"#FF9D18",border:"1px solid #FFCF8D",fontSize:10}},"\u9650\u5B9A")),hn.is_base&&ue.createElement(et.Z,{title:"\u4EC5\u63D0\u4F9B\u4E00\u4E2A\u57FA\u672C\u7684\u64CD\u4F5C\u7CFB\u7EDF\u73AF\u5883"},ue.createElement("div",{className:bt.tag,style:{color:"#165DFF",border:"1px solid #BACFFE",fontSize:10}},"\u57FA\u7840")))),ue.createElement("li",{className:bt.line})))};var st=Me},88412:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return pt}});var ue=Ee(59301),et=Ee(5112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sW86xSrvxazJBfm0z5tZosp+7elqU67nf6g5TtwfJr/iP5HMBeKAQCgUAgoiRhx8pmYy5PXkxcITMZ18tS0ADZnMxZjgdkqegxWbJ8VpYtX5Fj9e9IScuQEjAbYnaEKM3WCdIk+ZiNk4/hGPmYPiUf4+HyMb9XTqoOkF+T6+XX6Er5NTtbfg1xGTECgUAgEAkoY0dLITtelo64hHSqnAg7U0raOXJKjC/LvUius+gne3Zu8JG2/5VZlofk/ZHcJP20zK6NlsLxqhznHy95VzZXT5EZnGxZ8tKTZ1B2pvthqu7vf1f3cV+Xn8sYWVobJT/X38mM4FB5WfA98t82QK4d4H/z/8jH4DvyMblAPkbn/P9Bw0wIGoa8aNNyoLBmGk15o2AUjCwAAJpj3XJMmgW8AAAAAElFTkSuQmCC";function Ct(){return(0,vt.U2)("teach_groups.json")}function yt(ht){return(0,vt.v_)("teach_groups.json",ht)}function Zt(ht,dn){return(0,vt.gz)(`teach_groups/${ht}.json`,dn)}function Ot(ht){return(0,vt.v_)("teach_group_members.json",ht)}function Ut(ht){return(0,vt.IV)(`teach_group_members/${ht}.json`)}function Te(ht,dn){return(0,vt.IV)(`teach_groups/${ht}/del_member.json`,{member_id:dn})}function te(ht){return(0,vt.IV)(`teach_groups/${ht}.json`)}var ne=Ee(92832),de=({callback:ht,visible:dn,onCancel:Oe,id:Ce,name:Pe})=>{function Ie(De){ht(De)}const[Ke]=Lt.default.useForm();return(0,ue.useEffect)(()=>{Ke.setFieldsValue({name:Pe})},[Pe]),ue.createElement(Ue.default,{centered:!0,title:Ce?"\u6539\u540D":"\u65B0\u5EFA",open:dn,onCancel:Oe,footer:null},ue.createElement(Lt.default,{layout:"vertical",form:Ke,initialValues:{name:Pe},onFinish:Ie},ue.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"}]},ue.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),ue.createElement(Lt.default.Item,null,ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(Bt.ZP,{type:"ghost",onClick:Oe,style:{marginRight:20}}," \u53D6\u6D88 ")," ",ue.createElement(Bt.ZP,{type:"primary",htmlType:"submit"}," \u786E\u5B9A ")))))},le=Ee(96663),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"},Se=pe,Ae=Ee(7657),Me=function(dn,Oe){return ue.createElement(Ae.Z,(0,le.Z)({},dn,{ref:Oe,icon:Se}))},ke=ue.forwardRef(Me),st=ke,dt=Ee(43531);const xt=50;var ut=({data:ht,isAdminOrTeacher:dn,onDelGroup:Oe,onChangeGroupName:Ce,onPlusMember:Pe,onDelMember:Ie,onExitGroup:Ke})=>{const[De,tt]=(0,ue.useState)(0),[He,mt]=(0,ue.useState)(0);function Wt(pn){let mn=parseInt(pn.target.id,10);Ue.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:()=>{Oe(mn)}})}function kt(pn){let mn=parseInt(pn.target.id,10);Ue.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:()=>{Ke(mn)}})}function yn(pn,mn){Ue.default.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:()=>{Ie(pn,mn)}})}return ue.createElement("ul",{className:"teaching-list"},ht.map((pn,mn)=>ue.createElement("li",{key:pn.id,onClick:()=>tt(mn)},ue.createElement("div",{className:"item-group"},ue.createElement("span",null,pn.name," \xA0 ",mn!==De&&ue.createElement("i",{className:"iconfont icon-jiantou9"})," "),ue.createElement("div",{className:"action-group"},dn?ue.createElement("a",{onClick:()=>{Ce(pn)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,pn.is_creat?ue.createElement("a",{id:pn.id+"",className:"c-grey-c",onClick:Wt},"\u89E3\u6563"):ue.createElement("a",{id:pn.id+"",className:"c-grey-c",onClick:kt},"\u9000\u51FA"))),mn===De?ue.createElement("ul",{className:"info"},pn.memers.map(Gn=>ue.createElement("li",{key:Gn.id||Gn.name,onClick:()=>{mt(Gn.id)},className:He===Gn.id?"active":""},ue.createElement("div",null,Gn.name),pn.is_creat&&Gn.id&&He===Gn.id?ue.createElement("a",{className:"btn-del",onClick:Tn=>{Tn.preventDefault(),Tn.stopPropagation(),yn(pn.id,He)}},ue.createElement(st,null)):null)),dn?ue.createElement("li",null,ue.createElement(Bt.ZP,{type:"link",disabled:pn.memers.length>=50,title:pn.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:()=>{Pe(pn)}}," ",ue.createElement(dt.Z,null)," \u6DFB\u52A0\u7EC4\u5458 ")):null):null)))},It=Ee(89070),Et=Ee(47362),Tt=Object.defineProperty,Yt=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,di=(ht,dn,Oe)=>dn in ht?Tt(ht,dn,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ht[dn]=Oe,nt=(ht,dn)=>{for(var Oe in dn||(dn={}))ui.call(dn,Oe)&&di(ht,Oe,dn[Oe]);if(vi)for(var Oe of vi(dn))Bn.call(dn,Oe)&&di(ht,Oe,dn[Oe]);return ht},ze=(ht,dn)=>Yt(ht,hn(dn)),gn=(ht,dn,Oe)=>new Promise((Ce,Pe)=>{var Ie=tt=>{try{De(Oe.next(tt))}catch(He){Pe(He)}},Ke=tt=>{try{De(Oe.throw(tt))}catch(He){Pe(He)}},De=tt=>tt.done?Ce(tt.value):Promise.resolve(tt.value).then(Ie,Ke);De((Oe=Oe.apply(ht,dn)).next())});function Xn({children:ht}){return ue.createElement("div",{className:"no-data"},ue.createElement("img",{src:bt,alt:"no-data",width:300}),ht)}const ti={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 vn(ht,dn){switch(dn.type){case 0:return nt(nt({},ht),dn.payload);case 1:return ze(nt({},ht),{loading:dn.payload});case 5:return ze(nt({},ht),{index:dn.payload});case 2:return nt(nt({},ht),dn.payload);case 3:return nt(nt({},ht),dn.payload);case 4:return ze(nt({},ht),{selectedGroup:dn.payload,showFormPanel:!0});default:throw new Error}}function An({user:ht}){var dn;const[Oe,Ce]=(0,ue.useReducer)(vn,ti),{data:Pe,index:Ie,loading:Ke,showFormPanel:De,selectedGroup:tt,showMemberPanel:He}=Oe,mt=(dn=ht.userInfo)==null?void 0:dn.role,Wt=(0,ue.useMemo)(()=>{let On=[],Jn=[];for(let Ki of Pe)Ki.is_creat?On.push(Ki):Jn.push(Ki);return[On,Jn]},[Pe]);(0,ue.useEffect)(()=>{mt===15&&Ce({type:5,payload:1})},[mt]);function kt(){return gn(this,null,function*(){const On=yield Ct();Ce({type:0,payload:{loading:!1,showFormPanel:!1,data:On.groups}})})}(0,ue.useEffect)(()=>{kt()},[]);function yn(On){return gn(this,null,function*(){tt.id?yield Zt(tt.id,On):yield yt(On),kt()})}function pn(){Ce({type:2,payload:{showFormPanel:!0,selectedGroup:{}}})}function mn(On){Ce({type:4,payload:On})}function Gn(){Ce({type:2,payload:{showFormPanel:!1}})}function Tn(){Ce({type:3,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Xt(On){Ce({type:3,payload:{showMemberPanel:!0,selectedGroup:On}})}function fi(On,Jn){return gn(this,null,function*(){yield Te(On,Jn),kt()})}function Wn(On){return gn(this,null,function*(){yield te(On),kt()})}function bn(On){return gn(this,null,function*(){yield Ut(On),kt()})}function Dn(On){Ce({type:5,payload:parseInt(On.target.id,10)})}function Bi(On,Jn){return gn(this,null,function*(){Tn(),yield Ot({user_ids:On,group_id:Jn}),kt()})}return ue.createElement(ue.Fragment,null,ue.createElement("div",{className:"teaching-circling-container"},ue.createElement("h3",null," \u6559\u7814\u56E2\u961F ",mt<=12&&ue.createElement(Bt.ZP,{type:"primary",disabled:Pe.length>=50,title:Pe.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:pn},"\u65B0\u5EFA")," "),ue.createElement("div",{className:"teaching-circling-body"},mt===15?null:ue.createElement("ul",{className:"navs"},ue.createElement("li",{className:Ie===0?"active":""},ue.createElement("a",{id:"0",onClick:Dn},"\u6211\u521B\u5EFA\u7684")),ue.createElement("li",{className:Ie===1?"active":""},ue.createElement("a",{id:"1",onClick:Dn},"\u6211\u52A0\u5165\u7684"))),ue.createElement("div",{className:Wt[Ie].length===0?"nodata-content":"main-content"},Wt[Ie].length===0?ue.createElement(Xn,null,mt<=12?ue.createElement(ue.Fragment,null," ",ue.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")," ",ue.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")," "):ue.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 ")):ue.createElement(ut,{onExitGroup:bn,onPlusMember:Xt,onDelMember:fi,onDelGroup:Wn,isAdminOrTeacher:mt<=12,onChangeGroupName:mn,data:Wt[Ie]}))),ue.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 ")),ue.createElement(de,{callback:yn,visible:De,onCancel:Gn,id:tt.id,name:tt.name}),ue.createElement(Ue.default,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",open:He,onCancel:Tn,footer:null,width:1100,bodyStyle:{minHeight:200}},ue.createElement(Et.Z,{container_id:tt.id,container_type:4,onSelect:Bi,onCancel:Tn})))}var Si=(0,It.connect)(({user:ht})=>({user:ht}))(An),Vn=(ht,dn,Oe)=>new Promise((Ce,Pe)=>{var Ie=tt=>{try{De(Oe.next(tt))}catch(He){Pe(He)}},Ke=tt=>{try{De(Oe.throw(tt))}catch(He){Pe(He)}},De=tt=>tt.done?Ce(tt.value):Promise.resolve(tt.value).then(Ie,Ke);De((Oe=Oe.apply(ht,dn)).next())});const Mi=et.ZP.Group;var pt=({onSelect:ht,onCancel:dn})=>{const[Oe,Ce]=(0,ue.useState)([]),[Pe,Ie]=(0,ue.useState)(!0);(0,ue.useEffect)(()=>{function tt(){return Vn(this,null,function*(){const{groups:He}=yield(0,vt.U2)("teach_groups/my.json");Ce(He),Ie(!1)})}tt()},[]);const Ke=(0,ue.useMemo)(()=>{let tt=[],He=[];for(let mt of Oe)mt.is_creat?tt.push(mt):He.push(mt);return[tt,He]},[Oe]);function De(tt){ht(tt)}return ue.createElement(Lt.default,{className:"select-teach-group",onFinish:De},Pe?ue.createElement(Nt.Z,{paragraph:!0}):Oe.length===0?ue.createElement(Xn,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",ue.createElement(It.Link,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):ue.createElement(ue.Fragment,null,ue.createElement(Lt.default.Item,{name:"group_id",style:{width:"100%"}},ue.createElement(Mi,{style:{width:"100%"}},ue.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),ue.createElement("ul",{className:"groups"},Ke[0].map(tt=>ue.createElement("li",{key:tt.id},ue.createElement(et.ZP,{value:tt.id},tt.name)))),ue.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),ue.createElement("ul",{className:"groups"},Ke[1].map(tt=>ue.createElement("li",{key:tt.id},ue.createElement(et.ZP,{value:tt.id},tt.name)))))),ue.createElement("div",{className:"btn-actions"},ue.createElement(Bt.ZP,{type:"default",onClick:dn,style:{marginRight:10}},"\u53D6\u6D88"),ue.createElement(Bt.ZP,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},47362:function(qt,kn,Ee){"use strict";var ue=Ee(59301),et=Ee(78241),Lt=Ee(95237),Nt=Ee(57809),Bt=Ee(92832),vt=Ee(88522),Ue=Ee(3113),bt=Ee(24905),Ct=Ee(6848),yt=Ee(8591),Zt=Ee(1710),Ot=Ee(89070),Ut=Ee(61186),Te=Ee.n(Ut),te=Ee(26724),ne=Ee.n(te),de=Ee(58143),le=Ee(92365),pe=Ee(85057),Se=Ee(76895),Ae=Ee(59301),Me=Object.defineProperty,ke=Object.defineProperties,st=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,It=(nt,ze,gn)=>ze in nt?Me(nt,ze,{enumerable:!0,configurable:!0,writable:!0,value:gn}):nt[ze]=gn,Et=(nt,ze)=>{for(var gn in ze||(ze={}))xt.call(ze,gn)&&It(nt,gn,ze[gn]);if(dt)for(var gn of dt(ze))ut.call(ze,gn)&&It(nt,gn,ze[gn]);return nt},Tt=(nt,ze)=>ke(nt,st(ze)),Yt=(nt,ze,gn)=>new Promise((Xn,ti)=>{var nn=Si=>{try{An(gn.next(Si))}catch(Vn){ti(Vn)}},vn=Si=>{try{An(gn.throw(Si))}catch(Vn){ti(Vn)}},An=Si=>Si.done?Xn(Si.value):Promise.resolve(Si.value).then(nn,vn);An((gn=gn.apply(nt,ze)).next())});const hn=[];function vi({onSearch:nt,schools:ze}){return Ae.createElement(et.default,{colon:!1,layout:"horizontal",onFinish:nt,initialValues:{keyword:"",school_name:"",search_type:"1"}},Ae.createElement(Lt.Z,{style:{flexWrap:"nowrap"}},Ae.createElement(et.default.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},Ae.createElement(Nt.default,{popupClassName:Se.Z.selectdown,style:{width:106}},Ae.createElement(Nt.default.Option,{value:"1"},"\u59D3\u540D"),Ae.createElement(Nt.default.Option,{value:"2"},"\u624B\u673A\u53F7"),Ae.createElement(Nt.default.Option,{value:"3"},"\u90AE\u7BB1"))),Ae.createElement(et.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(Bt.default,{allowClear:!0,style:{width:300},size:"middle"})),Ae.createElement(et.default.Item,{style:{marginLeft:20},label:"\u5355\u4F4D",name:"school_name"},Ae.createElement(vt.Z,{options:ze,style:{width:300},size:"middle",showSearch:!0,filterOption:(gn,Xn)=>Xn.value.toUpperCase().indexOf(gn.toUpperCase())!==-1,placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),Ae.createElement(Ue.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 ui=(nt=>(nt[nt.INITDATA=0]="INITDATA",nt[nt.INITSCHOOLS=1]="INITSCHOOLS",nt[nt.SHOWLOADING=2]="SHOWLOADING",nt[nt.SELECTEDIDS=3]="SELECTEDIDS",nt[nt.SETQUERY=4]="SETQUERY",nt[nt.SETPAGE=5]="SETPAGE",nt))(ui||{});function Bn(nt,ze){switch(ze.type){case 0:return Et(Et({},nt),ze.payload);case 4:return Et(Et({},nt),ze.payload);case 5:return Tt(Et({},nt),{page:ze.payload,reload:!1});case 2:return Tt(Et({},nt),{loading:ze.payload});case 1:return Tt(Et({},nt),{schools:ze.payload});case 3:return Tt(Et({},nt),{selectedIds:ze.payload});default:throw new Error}}const di={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};kn.Z=({onSelect:nt,onCancel:ze,container_id:gn,container_type:Xn})=>{const[ti,nn]=(0,ue.useReducer)(Bn,di),{data:vn,schools:An,loading:Si,selectedIds:Vn,page:Mi,count:pt,query:ht,reload:dn}=ti;(0,ue.useEffect)(()=>{function tt(){return Yt(this,null,function*(){const{users:He,user_count:mt}=yield(0,le.nQ)(Tt(Et({},ht),{page:Mi,container_type:Xn,container_id:gn,display_aliases:!0}));nn({type:0,payload:{data:dn?He:[...vn,...He],count:mt}})})}ht&&tt()},[Mi,ht,dn,gn,Xn]),(0,ue.useEffect)(()=>{function tt(){return Yt(this,null,function*(){const{school_names:He}=yield(0,le.K$)({display_aliases:!0});nn({type:1,payload:He.map(mt=>({value:mt}))})})}tt()},[]);const Oe=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:(tt,He)=>Ae.createElement(bt.default,{value:He.numid,checked:Vn.includes(He.numid),disabled:!!tt})},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:(tt,He)=>Ae.createElement("div",null,Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement(Ot.Link,{style:{color:"#000000"},className:"bold c-black",to:`/users/${He.login}`,target:"_blank"},tt||"--")))},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:tt=>Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement("span",{style:{color:"#000000"}},tt||"--"))},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:tt=>Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement("span",{style:{color:"#000000"}},tt||"--"))},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:tt=>Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement("span",{style:{color:"#000000"}},tt||"--"))},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:tt=>Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement("span",{style:{color:"#000000"}},tt||"--"))},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:tt=>Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement("span",{style:{color:"#000000"}},tt||"--"))},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:tt=>Ae.createElement("span",{style:{color:"#000000"}},tt?"\u662F":"\u5426")},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:tt=>Ae.createElement(Ct.Z,{placement:"bottom",title:tt},Ae.createElement("span",{style:{color:"#000000"}},Te()(tt).format("YYYY-MM-DD HH:mm")))},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:tt=>{if(tt===1)return Ae.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Ce(tt){nn({type:4,payload:{page:1,reload:!0,query:tt}})}function Pe(tt){nn({type:5,payload:tt})}function Ie(tt){let He=Vn.indexOf(tt);He>=0?Vn.splice(He,1):Vn.push(tt),nn({type:3,payload:[...Vn]})}function Ke(){Vn.length===0?yt.ZP.warning("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(nt(Vn,gn),nn({type:0,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}const De=pt>Mi*10;return Ae.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},Ae.createElement(vi,{onSearch:Ce,schools:An}),ht?Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{className:"flexd-table-header mt20"},Ae.createElement(pe.Gi,null,Ae.createElement(Zt.default,{pagination:!1,dataSource:hn,columns:Oe}))),Ae.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},Ae.createElement(ne(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Pe,hasMore:De,useWindow:!1},Ae.createElement(pe.Gi,null,Ae.createElement(Zt.default,{loading:Si,showHeader:!1,pagination:!1,dataSource:vn,columns:Oe,onRow:tt=>({onClick:He=>{tt.added!==1&&Ie(tt.numid)}})})))),Ae.createElement("div",{className:"flex-container flex-end"},Ae.createElement(Ue.ZP,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ze},"\u53D6\u6D88"),Ae.createElement(Ue.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:Ke},"\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")))}},97692:function(qt,kn,Ee){"use strict";Ee.d(kn,{h:function(){return Ae}});var ue=Ee(59301),et=Ee(57809),Lt=Ee(78241),Nt=Ee(3113),Bt=Ee(89780),vt=Ee.n(Bt),Ue=Ee(37036),bt=Ee(95625),Ct=Object.defineProperty,yt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,te=(Me,ke,st)=>ke in Me?Ct(Me,ke,{enumerable:!0,configurable:!0,writable:!0,value:st}):Me[ke]=st,ne=(Me,ke)=>{for(var st in ke||(ke={}))Ut.call(ke,st)&&te(Me,st,ke[st]);if(Ot)for(var st of Ot(ke))Te.call(ke,st)&&te(Me,st,ke[st]);return Me},de=(Me,ke)=>yt(Me,Zt(ke));const le=et.default.Option,pe={labelCol:{span:4},wrapperCol:{span:20}},Se={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"]};kn.Z=({callback:Me,onCancel:ke})=>{const[st,dt]=(0,ue.useState)("python");function xt(It){dt(Se[It][1])}function ut(It){Me(It)}return ue.createElement(Lt.default,de(ne({},pe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ut,style:{width:500}}),ue.createElement(Lt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ue.createElement(et.default,{getPopupContainer:It=>It.parentNode,onChange:xt},Object.keys(Se).map(It=>ue.createElement(le,{key:It,value:It},Se[It][0])))),ue.createElement(Lt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ue.createElement(Ae,{mode:st})),ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(Nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Nt.ZP,{type:"ghost",onClick:ke},"\u53D6\u6D88")))};function Ae({value:Me,onChange:ke,mode:st,options:dt={}}){const xt=(0,ue.useRef)(),[ut,It]=(0,ue.useState)();return(0,ue.useEffect)(()=>{if(ut){let Et=function(Tt){const Yt=Tt.getValue();ke&&ke(Yt)};return ut.on("change",Et),()=>{ut.off("change",Et)}}},[ut,ke]),(0,ue.useEffect)(()=>{ut&&ut.setOption("mode",st)},[ut,st]),(0,ue.useEffect)(()=>{ut&&(Me!==ut.getValue()||Me==="")&&setTimeout(()=>{ut.setValue(Me||"")},300)},[ut,Me]),(0,ue.useEffect)(()=>{if(xt.current&&!ut){const Et=vt().fromTextArea(xt.current,ne({mode:st,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},dt));It(Et)}},[xt.current,ut]),ue.createElement("div",{className:"my-codemirror-container"},ue.createElement("textarea",{ref:xt}))}},12290:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return nr}});var ue=Ee(59301),et=Ee(89780),Lt=Ee.n(et),Nt=Ee(76374),Bt=Ee(37036),vt=Ee(6313),Ue=Ee(25717),bt=Ee(99498),Ct=Ee(25419),yt=Ee(67549),Zt=Ee(85149),Ot=({value:en="",className:_t,showTextOnly:zt,showLines:Li,style:yr={}})=>{const Oi=(0,ue.useMemo)(()=>"",[en]);return ue.createElement(ue.Fragment,null,ue.createElement("div",{dangerouslySetInnerHTML:{__html:Oi}}))},Ut=Ee(59301),Te=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Se=(en,_t,zt)=>_t in en?Te(en,_t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):en[_t]=zt,Ae=(en,_t)=>{for(var zt in _t||(_t={}))le.call(_t,zt)&&Se(en,zt,_t[zt]);if(de)for(var zt of de(_t))pe.call(_t,zt)&&Se(en,zt,_t[zt]);return en},Me=(en,_t)=>te(en,ne(_t));let ke=[{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 st({onActionCallback:en,title:_t,icon:zt,actionName:Li,className:yr="",children:Oi}){function Zn(){en(Li)}return Ut.createElement("a",{title:_t,className:yr,onClick:Zn},Ut.createElement("i",{className:`${zt}`}),Oi)}var dt=({watch:en,showNullButton:_t,showNullProgramButton:zt,onActionCallback:Li,fullScreen:yr,insertTemp:Oi,hidetoolBar:Zn,extraUse:ki})=>{const zr=[...ke,{title:`${en?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${en?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ut.createElement("ul",{className:"markdown-toolbar-container"},!Zn&&zr.map((br,Br)=>Ut.createElement("li",{key:Br},br.actionName?Ut.createElement(st,Me(Ae({},br),{onActionCallback:Li})):Ut.createElement("span",{className:"v-line"}))),_t?Ut.createElement("li",null,Ut.createElement(st,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Li},Ut.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,zt?Ut.createElement(Ut.Fragment,null,Ut.createElement("li",null,Ut.createElement(st,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Li},Ut.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ut.createElement("li",null,Ut.createElement(st,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Li},Ut.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Oi&&Ut.createElement("li",null,Ut.createElement(st,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Oi}`,onActionCallback:Li},Ut.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ki&&Ut.createElement("li",null,ki),Ut.createElement("li",{className:"btn-full-screen"},Ut.createElement(st,{icon:`${yr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Li})))},xt=Ee(79346),ut=Ee(78241),It=Ee(92832),Et=Ee(3113),Tt=Object.defineProperty,Yt=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,di=(en,_t,zt)=>_t in en?Tt(en,_t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):en[_t]=zt,nt=(en,_t)=>{for(var zt in _t||(_t={}))ui.call(_t,zt)&&di(en,zt,_t[zt]);if(vi)for(var zt of vi(_t))Bn.call(_t,zt)&&di(en,zt,_t[zt]);return en},ze=(en,_t)=>Yt(en,hn(_t));const gn={labelCol:{span:4},wrapperCol:{span:20}};var Xn=({callback:en,onCancel:_t})=>{function zt(Li){en(Li)}return ue.createElement(ut.default,ze(nt({},gn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:zt,style:{width:500}}),ue.createElement(ut.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ue.createElement(It.default,null)),ue.createElement(ut.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ue.createElement(It.default,null)),ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(Et.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Et.ZP,{type:"ghost",onClick:_t},"\u53D6\u6D88")))},ti=Ee(97692),nn=Ee(28451),vn=Ee(43418),An=Ee(95237),Si=Ee(73524),Vn=Ee(59301),Mi=({callback:en,onCancel:_t})=>{const zt=document.createElement("canvas"),Li=zt.getContext("2d");zt.width=1e3,zt.height=800,Li.fillStyle="#ffffff",Li.fillRect(0,0,zt.width,zt.height);const yr=zt.toDataURL("image/png");return Vn.createElement(vn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Vn.createElement(An.Z,{style:{height:"100vh"}},Vn.createElement(Si.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yr,visible:!0,title:String(Date.now())},onOk:Oi=>{en({src:Oi.url})},onClose:_t})))},pt=Ee(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 en=this.diagram;return!(en===null||en.isReadOnly||en.isModelReadOnly||en.selection.count<2)},ht.prototype.alignLeft=function(){var en=this.diagram;en.startTransaction("aligning left");var _t=1/0;en.selection.each(function(zt){zt instanceof go.Link||(_t=Math.min(zt.position.x,_t))}),en.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(_t,zt.position.y))}),en.commitTransaction("aligning left")},ht.prototype.alignRight=function(){var en=this.diagram;en.startTransaction("aligning right");var _t=-1/0;en.selection.each(function(zt){if(!(zt instanceof go.Link)){var Li=zt.actualBounds.x+zt.actualBounds.width;_t=Math.max(Li,_t)}}),en.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(_t-zt.actualBounds.width,zt.position.y))}),en.commitTransaction("aligning right")},ht.prototype.alignTop=function(){var en=this.diagram;en.startTransaction("alignTop");var _t=1/0;en.selection.each(function(zt){zt instanceof go.Link||(_t=Math.min(zt.position.y,_t))}),en.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(zt.position.x,_t))}),en.commitTransaction("alignTop")},ht.prototype.alignBottom=function(){var en=this.diagram;en.startTransaction("aligning bottom");var _t=-1/0;en.selection.each(function(zt){if(!(zt instanceof go.Link)){var Li=zt.actualBounds.y+zt.actualBounds.height;_t=Math.max(Li,_t)}}),en.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(zt.actualBounds.x,_t-zt.actualBounds.height))}),en.commitTransaction("aligning bottom")},ht.prototype.alignCenterX=function(){var en=this.diagram,_t=en.selection.first();if(_t){en.startTransaction("aligning Center X");var zt=_t.actualBounds.x+_t.actualBounds.width/2;en.selection.each(function(Li){Li instanceof go.Link||Li.move(new go.Point(zt-Li.actualBounds.width/2,Li.actualBounds.y))}),en.commitTransaction("aligning Center X")}},ht.prototype.alignCenterY=function(){var en=this.diagram,_t=en.selection.first();if(_t){en.startTransaction("aligning Center Y");var zt=_t.actualBounds.y+_t.actualBounds.height/2;en.selection.each(function(Li){Li instanceof go.Link||Li.move(new go.Point(Li.actualBounds.x,zt-Li.actualBounds.height/2))}),en.commitTransaction("aligning Center Y")}},ht.prototype.alignColumn=function(en){var _t=this.diagram;_t.startTransaction("align Column"),en===void 0&&(en=0),en=parseFloat(en);var zt=new Array;_t.selection.each(function(ki){ki instanceof go.Link||zt.push(ki)});for(var Li=0;Li<zt.length-1;Li++){var yr=zt[Li],Oi=yr.actualBounds.y+yr.actualBounds.height+en,Zn=zt[Li+1];Zn.move(new go.Point(yr.actualBounds.x,Oi))}_t.commitTransaction("align Column")},ht.prototype.alignRow=function(en){en===void 0&&(en=0),en=parseFloat(en);var _t=this.diagram;_t.startTransaction("align Row");var zt=new Array;_t.selection.each(function(ki){ki instanceof go.Link||zt.push(ki)});for(var Li=0;Li<zt.length-1;Li++){var yr=zt[Li],Oi=yr.actualBounds.x+yr.actualBounds.width+en,Zn=zt[Li+1];Zn.move(new go.Point(Oi,yr.actualBounds.y))}_t.commitTransaction("align Row")},ht.prototype.canRotate=function(en){var _t=this.diagram;return!(_t===null||_t.isReadOnly||_t.isModelReadOnly||_t.selection.count<1)},ht.prototype.rotate=function(en){en===void 0&&(en=90);var _t=this.diagram;_t.startTransaction("rotate "+en.toString());var _t=this.diagram;_t.selection.each(function(zt){zt instanceof go.Link||zt instanceof go.Group||(zt.angle+=en)}),_t.commitTransaction("rotate "+en.toString())},ht.prototype.pullToFront=function(){var en=this.diagram;en.startTransaction("pullToFront");var _t=new go.Map;en.selection.each(function(zt){_t.set(zt.layer,0)}),_t.iteratorKeys.each(function(zt){var Li=0;zt.parts.each(function(yr){if(!yr.isSelected){var Oi=yr.zOrder;isNaN(Oi)?yr.zOrder=0:Li=Math.max(Li,Oi)}}),_t.set(zt,Li)}),en.selection.each(function(zt){ht._assignZOrder(zt,_t.get(zt.layer)+1)}),en.commitTransaction("pullToFront")},ht.prototype.pushToBack=function(){var en=this.diagram;en.startTransaction("pushToBack");var _t=new go.Map;en.selection.each(function(zt){_t.set(zt.layer,0)}),_t.iteratorKeys.each(function(zt){var Li=0;zt.parts.each(function(yr){if(!yr.isSelected){var Oi=yr.zOrder;isNaN(Oi)?yr.zOrder=0:Li=Math.min(Li,Oi)}}),_t.set(zt,Li)}),en.selection.each(function(zt){ht._assignZOrder(zt,_t.get(zt.layer)-1-ht._findGroupDepth(zt))}),en.commitTransaction("pushToBack")},ht._assignZOrder=function(en,_t,zt){zt===void 0&&(zt=en),en.layer===zt.layer&&(en.zOrder=_t),en instanceof go.Group&&en.memberParts.each(function(Li){ht._assignZOrder(Li,_t+1,zt)})},ht._findGroupDepth=function(en){if(en instanceof go.Group){var _t=0;return en.memberParts.each(function(zt){_t=Math.max(_t,ht._findGroupDepth(zt))}),_t+1}else return 0},ht.prototype.doKeyDown=function(){var en=this.diagram;if(en!==null){var _t=en.lastInput;if(_t.key==="Up"||_t.key==="Down"||_t.key==="Left"||_t.key==="Right"){var zt=this.arrowKeyBehavior;if(zt==="none")return;if(zt==="select"){this._arrowKeySelect();return}else if(zt==="move"){this._arrowKeyMove();return}else if(zt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ht.prototype._getAllParts=function(){var en=new Array;return this.diagram.nodes.each(function(_t){en.push(_t)}),this.diagram.parts.each(function(_t){en.push(_t)}),en},ht.prototype._arrowKeyMove=function(){var en=this.diagram,_t=en.lastInput,zt=0,Li=0;if(_t.control||_t.meta)zt=1,Li=1;else if(en.grid!==null){var yr=en.grid.gridCellSize;Li=yr.width,zt=yr.height}en.startTransaction("arrowKeyMove"),en.selection.each(function(Oi){_t.key==="Up"?Oi.move(new go.Point(Oi.actualBounds.x,Oi.actualBounds.y-zt)):_t.key==="Down"?Oi.move(new go.Point(Oi.actualBounds.x,Oi.actualBounds.y+zt)):_t.key==="Left"?Oi.move(new go.Point(Oi.actualBounds.x-Li,Oi.actualBounds.y)):_t.key==="Right"&&Oi.move(new go.Point(Oi.actualBounds.x+Li,Oi.actualBounds.y))}),en.commitTransaction("arrowKeyMove")},ht.prototype._arrowKeySelect=function(){var en=this.diagram,_t=en.lastInput,zt=null;_t.key==="Up"?zt=this._findNearestPartTowards(270):_t.key==="Down"?zt=this._findNearestPartTowards(90):_t.key==="Left"?zt=this._findNearestPartTowards(180):_t.key==="Right"&&(zt=this._findNearestPartTowards(0)),zt!==null&&(_t.shift?zt.isSelected=!0:_t.control||_t.meta?zt.isSelected=!zt.isSelected:en.select(zt))},ht.prototype._findNearestPartTowards=function(en){var _t=this.diagram.selection.first();if(_t===null)return null;for(var zt=_t.actualBounds.center,Li=this._getAllParts(),yr=1/0,Oi=_t,Zn=0;Zn<Li.length;Zn++){var ki=Li[Zn];if(ki!==_t&&ki.canSelect()){var zr=ki.actualBounds.center,br=zt.directionPoint(zr),Br=this._angleCloseness(br,en);if(Br<=45){var Pt=zt.distanceSquaredPoint(zr);Pt*=1+Math.sin(Br*Math.PI/180),Pt<yr&&(yr=Pt,Oi=ki)}}}return Oi},ht.prototype._angleCloseness=function(en,_t){return Math.min(Math.abs(_t-en),Math.min(Math.abs(_t+360-en),Math.abs(_t-360-en)))},ht.prototype._arrowKeyTree=function(){var en=this.diagram,_t=en.selection.first();if(_t instanceof go.Node){var zt=en.lastInput;if(zt.key==="Right"){if(!_t.isTreeLeaf)if(!_t.isTreeExpanded)en.commandHandler.canExpandTree(_t)&&en.commandHandler.expandTree(_t);else{var Li=this._sortTreeChildrenByY(_t).first();Li!==null&&en.select(Li)}}else if(zt.key==="Left")if(!_t.isTreeLeaf&&_t.isTreeExpanded)en.commandHandler.canCollapseTree(_t)&&en.commandHandler.collapseTree(_t);else{var yr=_t.findTreeParentNode();yr!==null&&en.select(yr)}else if(zt.key==="Up"){var yr=_t.findTreeParentNode();if(yr!==null){var Oi=this._sortTreeChildrenByY(yr),Zn=Oi.indexOf(_t);if(Zn>0){for(var ki=Oi.elt(Zn-1);ki!==null&&ki.isTreeExpanded&&!ki.isTreeLeaf;){var zr=this._sortTreeChildrenByY(ki);ki=zr.last()}ki!==null&&en.select(ki)}else en.select(yr)}}else if(zt.key==="Down")if(_t.isTreeExpanded&&!_t.isTreeLeaf){var Li=this._sortTreeChildrenByY(_t).first();Li!==null&&en.select(Li)}else for(;_t!==null;){var yr=_t.findTreeParentNode();if(yr===null)break;var Oi=this._sortTreeChildrenByY(yr),Zn=Oi.indexOf(_t);if(Zn<Oi.length-1){en.select(Oi.elt(Zn+1));break}else _t=yr}var br=en.selection.first();br!==null&&en.scrollToRect(br.actualBounds)}},ht.prototype._sortTreeChildrenByY=function(en){var _t=new go.List().addAll(en.findTreeChildrenNodes());return _t.sort(function(zt,Li){var yr=zt.location,Oi=Li.location;return yr.y<Oi.y?-1:yr.y>Oi.y?1:yr.x<Oi.x?-1:yr.x>Oi.x?1:0}),_t},ht.prototype.copyToClipboard=function(en){go.CommandHandler.prototype.copyToClipboard.call(this,en),this._lastPasteOffset.set(this.pasteOffset)},ht.prototype.pasteFromClipboard=function(){var en=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(en,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),en},Object.defineProperty(ht.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(en){if(en!=="move"&&en!=="select"&&en!=="scroll"&&en!=="tree"&&en!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+en);this._arrowKeyBehavior=en}}),Object.defineProperty(ht.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(en){if(!(en instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+en);this._pasteOffset.set(en)}});var dn=ht,Oe=Ee(74413),Ce=Ee(43604),Pe=Ee(99064),Ie={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ke=Ee(24065),De=Ee(59301),tt=(en,_t,zt)=>new Promise((Li,yr)=>{var Oi=zr=>{try{ki(zt.next(zr))}catch(br){yr(br)}},Zn=zr=>{try{ki(zt.throw(zr))}catch(br){yr(br)}},ki=zr=>zr.done?Li(zr.value):Promise.resolve(zr.value).then(Oi,Zn);ki((zt=zt.apply(en,_t)).next())});function He({onCancel:en,callback:_t}){let zt=(0,ue.useRef)(),Li=(0,ue.useRef)(),yr=(0,ue.useRef)(),Oi=(0,ue.useRef)(!1);const Zn=(0,ue.useRef)(!1),[ki,zr]=(0,ue.useState)(0);function br(){const Pt=pt.bx.make,Di={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"};zt.current=new pt.S0(Li.current,{padding:20,grid:Pt(pt.s_,"Grid",Pt(pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pt(pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Vt=>{var cn=Vt.diagram.commandHandler.addTopLevelParts(Vt.diagram.selection,!0);cn||Vt.diagram.currentTool.doCancel()},commandHandler:Pt(dn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Vt=>{var cn=Vt.subject;cn.location=cn.location.copy().snapToGridPoint(Vt.diagram.grid.gridOrigin,Vt.diagram.grid.gridCellSize),setTimeout(()=>{Vt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Vt=>{var cn=Vt.subject;setTimeout(()=>{Vt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Vt=>{var cn=Vt.parameter.part;cn.invalidateConnectedLinks();var Jt=Vt.subject;Vt.diagram.toolManager.linkingTool.isForwards?Jt.toNode.invalidateConnectedLinks():Jt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),zt.current.nodeTemplate=Pt(pt.NB,"Auto",{locationSpot:pt.z6.Center,locationObjectName:"SHAPE",desiredSize:new pt.$u(120,60),minSize:new pt.$u(40,40),resizable:!0,resizeCellSize:new pt.$u(10,10),rotatable:!0},new pt.KX("location","loc",pt.E9.parse).makeTwoWay(pt.E9.stringify),new pt.KX("desiredSize","size",pt.$u.parse).makeTwoWay(pt.$u.stringify),Pt(pt.bn,{name:"SHAPE",fill:Di.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:pt.z6.AllSides,toSpot:pt.z6.AllSides},new pt.KX("figure"),new pt.KX("fill"),new pt.KX("stroke","borderColor"),new pt.KX("strokeWidth","thickness"),new pt.KX("strokeDashArray","dash")),Pt(pt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pt(pt.al,{margin:1,textAlign:"center",overflow:pt.al.OverflowEllipsis,editable:!0},new pt.KX("text").makeTwoWay(),new pt.KX("stroke","color"))),zt.current.nodeTemplate.toolTip=Pt("ToolTip",Pt(pt.s_,"Vertical",{maxSize:new pt.$u(200,NaN)},Pt(pt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new pt.KX("text")),Pt(pt.al,{font:"10pt sans-serif",textAlign:"center"},new pt.KX("text","details"))));function En(Vt,cn){var Jt=(zn,er)=>{zn.handled=!0,zn.diagram.model.commit(sr=>{var li=er.part.adornedPart,Ci=new pt.E9().setRectSpot(li.actualBounds,Vt);Ci.subtract(li.location),Ci.scale(2,2),Ci.x+=Math.sign(Ci.x)*130,Ci.y+=Math.sign(Ci.y)*130,Ci.add(li.location),Ci.snapToGridPoint(zn.diagram.grid.gridOrigin,zn.diagram.grid.gridCellSize);var Qn=sr.copyNodeData(li.data);sr.setGroupKeyForNodeData(Qn,sr.getGroupKeyForNodeData(li.data)),sr.addNodeData(Qn);var an={from:li.key,to:sr.getKeyForNodeData(Qn)};sr.addLinkData(an);var Vr=zn.diagram.findNodeForData(Qn);Vr.location=Ci,zn.diagram.select(Vr),setTimeout(()=>{zn.diagram.commandHandler.editTextBlock()},20)})};return Pt(pt.bn,{figure:cn,alignment:Vt,alignmentFocus:Vt.opposite(),width:Vt.equals(pt.z6.Top)||Vt.equals(pt.z6.Bottom)?25:18,height:Vt.equals(pt.z6.Top)||Vt.equals(pt.z6.Bottom)?18:25,fill:"orange",stroke:Di.white,strokeWidth:4,mouseEnter:(zn,er)=>er.fill="dodgerblue",mouseLeave:(zn,er)=>er.fill="orange",isActionable:!0,click:Jt,contextClick:Jt})}function Yn(Vt){return Pt(pt.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:(cn,Jt)=>Jt.fill="dodgerblue",mouseLeave:(cn,Jt)=>Jt.fill="orange",click:(cn,Jt)=>{cn.diagram.commandHandler.showContextMenu(Jt.part.adornedPart)}},Vt||{})}zt.current.nodeTemplate.selectionAdornmentTemplate=Pt(pt.uz,"Spot",Pt(pt.Vm,{padding:10}),En(pt.z6.Top,"TriangleUp"),En(pt.z6.Left,"TriangleLeft"),En(pt.z6.Right,"TriangleRight"),En(pt.z6.Bottom,"TriangleDown"),Yn({alignment:new pt.z6(.75,0)}));function Mt(Vt,cn){return(Jt,zn)=>{Jt.handled=!0,Jt.diagram.model.commit(er=>{er.set(zn.part.adornedPart.data,Vt,cn)})}}function Ft(Vt,cn){return cn||(cn="color"),Pt(pt.bn,{width:16,height:16,stroke:"lightgray",fill:Vt,margin:1,background:"transparent",mouseEnter:(Jt,zn)=>zn.stroke="dodgerblue",mouseLeave:(Jt,zn)=>zn.stroke="lightgray",click:Mt(cn,Vt),contextClick:Mt(cn,Vt)})}function sn(){return[Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ft(Di.white,"fill"),Ft(Di.beige,"fill"),Ft(Di.extralightblue,"fill"),Ft(Di.extralightred,"fill"))),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ft(Di.lightgray,"fill"),Ft(Di.lightgreen,"fill"),Ft(Di.lightblue,"fill"),Ft(Di.lightred,"fill")))]}function Sr(){return[Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ft(Di.black),Ft(Di.green),Ft(Di.blue),Ft(Di.red))),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ft(Di.white),Ft(Di.magenta),Ft(Di.purple),Ft(Di.orange)))]}function Ii(Vt,cn){return cn||(cn="thickness"),Pt(pt.bn,"LineH",{width:16,height:16,strokeWidth:Vt,margin:1,background:"transparent",mouseEnter:(Jt,zn)=>zn.background="dodgerblue",mouseLeave:(Jt,zn)=>zn.background="transparent",click:Mt(cn,Vt),contextClick:Mt(cn,Vt)})}function Ri(Vt,cn){return cn||(cn="dash"),Pt(pt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Vt,margin:1,background:"transparent",mouseEnter:(Jt,zn)=>zn.background="dodgerblue",mouseLeave:(Jt,zn)=>zn.background="transparent",click:Mt(cn,Vt),contextClick:Mt(cn,Vt)})}function ai(){return[Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ii(1),Ii(2),Ii(3),Ii(4))),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ri(null),Ri([2,4]),Ri([4,4])))]}function Ti(Vt,cn){return cn||(cn="figure"),Pt(pt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Vt,margin:1,background:"transparent",mouseEnter:(Jt,zn)=>zn.fill="dodgerblue",mouseLeave:(Jt,zn)=>zn.fill="lightgray",click:Mt(cn,Vt),contextClick:Mt(cn,Vt)})}zt.current.nodeTemplate.contextMenu=Pt("ContextMenu",Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ti("Rectangle"),Ti("RoundedRectangle"),Ti("Ellipse"),Ti("Diamond"))),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ti("Parallelogram2"),Ti("ManualOperation"),Ti("Procedure"),Ti("Cylinder1"))),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Ti("Terminator"),Ti("CreateRequest"),Ti("Document"),Ti("TriangleDown"))),sn(),Sr(),ai()),zt.current.groupTemplate=Pt(pt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:pt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Vt,cn)=>{var Jt=cn.addMembers(cn.diagram.selection,!0);Jt||cn.diagram.currentTool.doCancel()},avoidable:!1},new pt.KX("location","loc",pt.E9.parse).makeTwoWay(pt.E9.stringify),Pt(pt.s_,"Auto",{name:"BODY"},Pt(pt.bn,{parameter1:10,fill:Di.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:pt.z6.AllSides,toSpot:pt.z6.AllSides},new pt.KX("fill"),new pt.KX("stroke","color"),new pt.KX("strokeWidth","thickness"),new pt.KX("strokeDashArray","dash")),Pt(pt.Vm,{background:"transparent",margin:20})),Pt(pt.al,{alignment:pt.z6.Top,alignmentFocus:pt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new pt.KX("text"),new pt.KX("stroke","color"))),zt.current.groupTemplate.selectionAdornmentTemplate=Pt(pt.uz,"Spot",Pt(pt.s_,"Auto",Pt(pt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pt(pt.Vm,{margin:1.5})),Yn({alignment:pt.z6.TopRight,alignmentFocus:pt.z6.BottomRight})),zt.current.groupTemplate.contextMenu=Pt("ContextMenu",sn(),Sr(),ai()),zt.current.linkTemplate=Pt(pt.rU,{layerName:"Foreground",routing:pt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new pt.KX("fromSpot","fromSpot",pt.z6.parse),new pt.KX("toSpot","toSpot",pt.z6.parse),new pt.KX("fromShortLength","dir",Vt=>Vt>=1?10:0),new pt.KX("toShortLength","dir",Vt=>Vt>=1?10:0),new pt.KX("points").makeTwoWay(),Pt(pt.bn,{strokeWidth:2},new pt.KX("stroke","color"),new pt.KX("strokeWidth","thickness"),new pt.KX("strokeDashArray","dash")),Pt(pt.bn,{segmentIndex:0,segmentOffset:new pt.E9(15,0),segmentOrientation:pt.rU.OrientAlong,alignmentFocus:pt.z6.Right,figure:"circle",width:10,strokeWidth:0},new pt.KX("fill","color"),new pt.KX("visible","dir",Vt=>Vt===1)),Pt(pt.bn,{segmentIndex:-1,segmentOffset:new pt.E9(-10,6),segmentOrientation:pt.rU.OrientPlus90,alignmentFocus:pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new pt.KX("fill","color"),new pt.KX("visible","dir",Vt=>Vt>=1),new pt.KX("width","thickness",Vt=>7+3*Vt),new pt.KX("height","thickness",Vt=>7+3*Vt),new pt.KX("segmentOffset","thickness",Vt=>new pt.E9(-15,4+1.5*Vt))),Pt(pt.bn,{segmentIndex:0,segmentOffset:new pt.E9(15,-6),segmentOrientation:pt.rU.OrientMinus90,alignmentFocus:pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new pt.KX("fill","color"),new pt.KX("visible","dir",Vt=>Vt===2),new pt.KX("width","thickness",Vt=>7+3*Vt),new pt.KX("height","thickness",Vt=>7+3*Vt),new pt.KX("segmentOffset","thickness",Vt=>new pt.E9(-15,4+1.5*Vt))),Pt(pt.al,{alignmentFocus:new pt.z6(0,1,-4,0),editable:!0},new pt.KX("text").makeTwoWay(),new pt.KX("stroke","color"))),zt.current.linkTemplate.selectionAdornmentTemplate=Pt(pt.uz,Pt(pt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Jr(2)},new pt.KX("pathPattern","thickness",Jr)),Yn({alignmentFocus:new pt.z6(0,0,-6,-4)}));function Jr(Vt){return Pt(pt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Vt+4).toString()+" H3"})}function Qr(Vt){var cn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Vt===0?cn="M0 0 M16 16 M0 8 L16 8":Vt===2&&(cn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pt(pt.bn,{geometryString:cn,margin:2,background:"transparent",mouseEnter:(Jt,zn)=>zn.background="dodgerblue",mouseLeave:(Jt,zn)=>zn.background="transparent",click:Mt("dir",Vt),contextClick:Mt("dir",Vt)})}function Lo(Vt){var cn=(Jt,zn)=>{Jt.handled=!0,Jt.diagram.model.commit(er=>{var sr=zn.part.adornedPart;er.set(sr.data,Vt?"toSpot":"fromSpot",pt.z6.stringify(pt.z6.AllSides)),(Vt?sr.toNode:sr.fromNode).invalidateConnectedLinks()})};return Pt(pt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Jt,zn)=>zn.background="dodgerblue",mouseLeave:(Jt,zn)=>zn.background="transparent",click:cn,contextClick:cn})}function Ln(Vt,cn){var Jt=0,zn=pt.z6.RightSide;Vt.equals(pt.z6.Top)?(Jt=270,zn=pt.z6.TopSide):Vt.equals(pt.z6.Left)?(Jt=180,zn=pt.z6.LeftSide):Vt.equals(pt.z6.Bottom)&&(Jt=90,zn=pt.z6.BottomSide),cn||(Jt-=180);var er=(sr,li)=>{sr.handled=!0,sr.diagram.model.commit(Ci=>{var Qn=li.part.adornedPart;Ci.set(Qn.data,cn?"toSpot":"fromSpot",pt.z6.stringify(zn)),(cn?Qn.toNode:Qn.fromNode).invalidateConnectedLinks()})};return Pt(pt.bn,{alignment:Vt,alignmentFocus:Vt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Jt,background:"transparent",mouseEnter:(sr,li)=>li.background="dodgerblue",mouseLeave:(sr,li)=>li.background="transparent",click:er,contextClick:er})}zt.current.linkTemplate.contextMenu=Pt("ContextMenu",Sr(),ai(),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Qr(0),Qr(1),Qr(2))),Pt("ContextMenuButton",Pt(pt.s_,"Horizontal",Pt(pt.s_,"Spot",Lo(!1),Ln(pt.z6.Top,!1),Ln(pt.z6.Left,!1),Ln(pt.z6.Right,!1),Ln(pt.z6.Bottom,!1)),Pt(pt.s_,"Spot",{margin:new pt.Zt(0,0,0,2)},Lo(!0),Ln(pt.z6.Top,!0),Ln(pt.z6.Left,!0),Ln(pt.z6.Right,!0),Ln(pt.z6.Bottom,!0)))));const ja=`{ "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 co=["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 Kr(Vt){return console.log("shapeName:",Vt),co.indexOf(Vt)>=0}var on=new pt.YI(yr.current,{maxSelectionCount:1,linkTemplate:Pt(pt.rU,{locationSpot:pt.z6.Center,selectionAdornmentTemplate:Pt(pt.uz,"Link",{locationSpot:pt.z6.Center},Pt(pt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pt(pt.bn,{toArrow:"Standard",stroke:null}))},{routing:pt.rU.AvoidsNodes,curve:pt.rU.JumpOver,corner:5,toShortLength:4},new pt.KX("points"),Pt(pt.bn,{isPanelMain:!0,strokeWidth:2}),Pt(pt.bn,{toArrow:"Standard",stroke:null})),model:new pt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...pt.bn.getFigureGenerators().toArray().map(Vt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Vt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return zt.current.addDiagramListener("TextEdited",function(Vt){var cn;const Jt=Vt.subject.part;var zn=(cn=document.activeElement)==null?void 0:cn.value;typeof zn=="string"&&zn.trim()===""&&zt.current.model.commit(function(er){er.set(Jt.data,"text","\u672A\u547D\u540D"),zt.current.commandHandler.stopCommand()},"increment")}),on.nodeTemplate=Pt(pt.NB,"Auto",{locationSpot:pt.z6.Center},new pt.KX("location","location",pt.E9.parse).makeTwoWay(pt.E9.stringify),Pt(pt.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 pt.KX("stroke").makeTwoWay(),new pt.KX("fill").makeTwoWay(),new pt.KX("figure")),Pt(pt.al,{margin:new pt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new pt.$u(16,16),maxSize:new pt.$u(10,NaN),textAlign:"center",editable:!0},new pt.KX("key").makeTwoWay())),setTimeout(()=>{zt.current.grid=Pt(pt.s_,"Grid",Pt(pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pt(pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),zt.current.grid.visible=!0,zt.current.grid.gridCellStroke="darkgray",zt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=zt.current,zt.current}const Br=()=>tt(this,null,function*(){var Pt,Di=zt.current.makeImage();const En=yield(0,Pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Di.src,file_data:JSON.stringify({login:(Pt=(0,Ke.eY)())==null?void 0:Pt.login,data:JSON.parse(zt.current.model.toJson())})}});_t({src:En.url})});return(0,ue.useEffect)(()=>(setTimeout(()=>{br()},500),zr(ki+1),()=>{zt.current=null}),[]),De.createElement("div",{ref:Zn,className:Oi.current?`${Ie.maxH60} body-overflow-initial`:"body-overflow-initial"},De.createElement(vn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ki,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:De.createElement(An.Z,null,De.createElement(Ce.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),De.createElement(Ce.Z,{onClick:()=>{var Pt,Di,En=zt.current.selection.first();if(Oi.current=!Oi.current,document.activeElement&&En){let Yn=(Di=(Pt=document.activeElement)==null?void 0:Pt.value)==null?void 0:Di.trim();typeof Yn=="string"&&zt.current.model.commit(function(Mt){Mt.set(En.data,"text",Yn||"\u672A\u547D\u540D"),zt.current.commandHandler.stopCommand()},"increment")}zr(ki+1)}},De.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:en},De.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ie.flowChartWrp},De.createElement("div",{style:{display:"flex",height:"100%"}},De.createElement("div",{style:{width:"300px",height:"100%"}},De.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),De.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ie.myPaletteDiv,ref:yr})),De.createElement("div",{style:{flex:1,position:"relative"}},De.createElement("div",{ref:Li,style:{height:"80vh"}}))),De.createElement("div",{className:"tr"},De.createElement(Et.ZP,{size:"large",onClick:Br,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var mt=He,Wt=Ee(5112),kt=Ee(5871);const yn=Wt.ZP.Group,pn={margin:"0 8px"};var mn=({callback:en,onCancel:_t})=>{function zt(Li){en(Li)}return ue.createElement(ut.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:zt},ue.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ue.createElement("span",{style:pn},"\u5355\u5143\u683C\u6570\uFF1A"),ue.createElement("span",{style:pn},"\u884C\u6570"),ue.createElement(ut.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ue.createElement(kt.Z,null)),ue.createElement("span",{style:pn},"\u5217\u6570"),ue.createElement(ut.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ue.createElement(kt.Z,null))),ue.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ue.createElement("span",{style:pn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ue.createElement(ut.default.Item,{name:"align"},ue.createElement(yn,null,ue.createElement(Wt.ZP,{value:"default"},ue.createElement("i",{className:"fa fa-align-justify"})),ue.createElement(Wt.ZP,{value:"left"},ue.createElement("i",{className:"fa fa-align-left"})),ue.createElement(Wt.ZP,{value:"center"},ue.createElement("i",{className:"fa fa-align-center"})),ue.createElement(Wt.ZP,{value:"right"},ue.createElement("i",{className:"fa fa-align-right"}))))),ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(Et.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Et.ZP,{type:"ghost",onClick:_t},"\u53D6\u6D88")))},Gn=Ee(78673),Tn=Ee(80727),Xt=Ee.n(Tn),Wn=(0,ue.forwardRef)(({use3d:en,width:_t,height:zt,callback:Li,showSaveButton:yr},Oi)=>{const Zn=(0,ue.useRef)(),ki=(0,ue.useRef)(),[zr,br]=(0,ue.useState)(!1),Br=(0,ue.useRef)({id:Zn,appName:"graphing",width:_t||1e3,height:zt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ue.useEffect)(()=>{ki.current=new(Xt())(Br.current,!0),window.onload=function(){ki.current.inject("applet_container")}},[]);const Pt=()=>{var Di=window.ggbApplet.getPNGBase64(1,!0,72);return Li&&Li(Di),Di};return(0,ue.useEffect)(()=>{Br.current.appName=zr?"3D":"graphing",ki.current.inject("applet_container")},[zr]),(0,ue.useEffect)(()=>{br(en)},[en]),(0,ue.useImperativeHandle)(Oi,()=>({getImgData:Pt})),ue.createElement(ue.Fragment,null,ue.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Zn}),ue.createElement(An.Z,{align:"middle"},ue.createElement(Ce.Z,{flex:1},ue.createElement(Gn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:zr,onChange:Di=>br(Di)})),ue.createElement(Ce.Z,null,ue.createElement(Et.ZP,{size:"large",onClick:Pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),bn=Ee(41588),Dn=Ee(8591);const Bi="link",On="upload-image",Jn="add-flowchart",Ki="draw-image",Pi="add-flowchart",ur="code-block",lo="add-table",jo="------------",Oo={default:jo,left:`:${jo}`,center:`:${jo}:`,right:`${jo}:`};var Hr=Ee(58856);function da(){}let zo=0;const Co=1e4,xo="\u2581",Nr="@\u2581\u2581@",Be="@\u2581@",ya=`
|
|
**\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`,to=["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 jn(en){return/^\d+$/.test(en)?`${en}px`:en}const Wi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",pi={[Wi+"-B"]:"bold",[Wi+"-I"]:"italic"},qn={[Bi]:"\u6DFB\u52A0\u94FE\u63A5",[ur]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[On]:"\u6DFB\u52A0\u56FE\u7247",[Ki]:"\u6DFB\u52A0\u753B\u56FE",[Jn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[lo]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var nr=({defaultValue:en="",onChange:_t,width:zt="100%",height:Li=400,miniToolbar:yr=!1,isFocus:Oi=!1,watch:Zn,insertTemp:ki,mode:zr="markdown",id:br="markdown-editor-id",showResizeBar:Br=!1,noStorage:Pt=!1,showNullButton:Di=!1,showNullProgramButton:En=!1,hidetoolBar:Yn=!1,fullScreen:Mt=!1,onBlur:Ft,onCMBeforeChange:sn,onFullScreen:Sr,className:Ii="",disablePaste:Ri=!1,disabled:ai=!1,disabledFill:Ti=!1,placeholder:Jr="",values:Qr="",extraUse:Lo})=>{const[Ln,ja]=(0,ue.useState)(null),[co,Kr]=(0,ue.useState)(en),[on,Vt]=(0,ue.useState)(Zn),[cn,Jt]=(0,ue.useState)(Mt),[zn,er]=(0,ue.useState)(""),[sr,li]=(0,ue.useState)(0),[Ci,Qn]=(0,ue.useState)(Li),[an,Vr]=(0,ue.useState)(!1),[In,Or]=(0,ue.useState)(0),[Tr,fr]=(0,ue.useState)(0),Bo=(0,ue.useRef)(),Gr=(0,ue.useRef)(),Ui=(0,ue.useRef)(),xr=(0,ue.useRef)();(0,ue.useEffect)(()=>{const Mr=window.scrollY||window.pageYOffset;Kr(Qr),Ln==null||Ln.setValue(Qr),window.scrollTo(0,Mr)},[Qr]),(0,ue.useEffect)(()=>{Sr==null||Sr(cn)},[cn]),(0,ue.useEffect)(()=>{if(Bo.current){let Mr=function(gi,ho){var Ba;if(Ri){ho.preventDefault();return}const Ws=ho.clipboardData;if(Ws){const Xa=Ws.types.toString(),la=Ws.items;if(Xa==="Files"||Ws.types.indexOf("Files")>-1){if(ho.preventDefault(),zr=="stex")return;try{let Ta=la[1];((Ba=la[0])==null?void 0:Ba.kind)==="file"&&(Ta=la[0]);const Ls=Ta.getAsFile(),ll=Ls.name.split(".").pop();(0,nn.I)(Ls,rn=>{var Va,tn,Ss;rn.id?((Va=Ls==null?void 0:Ls.type)==null?void 0:Va.indexOf("image"))>-1?Ir.replaceSelection(`<img width="100%" src="/api/attachments/${rn.id}?type=${rn.content_type})" alt="" />`):((tn=Ls==null?void 0:Ls.type)==null?void 0:tn.indexOf("video"))>-1?Ir.replaceSelection(`<video width="100%" controls src="/api/attachments/${rn.id}"></video>`):((Ss=Ls==null?void 0:Ls.type)==null?void 0:Ss.indexOf("pdf"))>-1?Ir.replaceSelection(`<a href="/api/attachments/${rn.id}?type=${Ls.type}&disposition=inline" target="_blank">${Ls.name}</a>`):to.includes(ll)?Ir.replaceSelection(`<a href="/api/attachments/${rn.id}?type=office&disposition=inline" target="_blank">${Ls.name}</a>`):Ir.replaceSelection(`[${Ls.name}](/api/attachments/${rn.id}?type=${rn.content_type})`):(rn==null?void 0:rn.status)===401&&(document.location.href="/user/login")})}catch(Ta){Dn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ir=Lt().fromTextArea(Bo.current,{mode:zr,lineNumbers:!yr,lineWrapping:!0,value:en,autoCloseTags:!0,autoCloseBrackets:!0});return Ir.on("keyup",function(gi,ho){ho.keyCode===8&&(gi.getValue()==""?Ir.setOption("placeholder",Jr):Ir.setOption("placeholder",null))}),Ir.on("keydown",function(gi,ho){if(ho.keyCode===8){var Ba=Cn(gi);Ba&&ho.preventDefault()}}),Oi&&Ir.focus(),Ir.on("paste",Mr),ai&&Ir.on("beforeChange",function(gi,ho){(ho.origin==="paste"||ho.origin==="+input")&&ho.cancel()}),ja(Ir),()=>{Ir.off("paste",Mr)}}},[]);const ro=(0,ue.useCallback)(()=>{if(Gr.current)try{}catch(Mr){console.log(Mr,"---- to set md editor body height")}},[Ci,Gr,cn]);(0,ue.useEffect)(()=>{function Mr(){let Ir=new Nt.Z(gi=>{for(let ho of gi)(ho.target.offsetHeight>0||ho.target.offsetWidth>0)&&(ro(),Ln.setSize("100%","100%"),Ln.refresh())});return Ir.observe(Bo.current.parentElement),Ir}if(Ln){const Ir=Mr();return()=>{var gi,ho;(gi=Bo.current)!=null&&gi.parentElement&&Ir.unobserve((ho=Bo.current)==null?void 0:ho.parentElement)}}},[Ln,ro]),(0,ue.useEffect)(()=>{if(Ln){let Mr=[];for(const[Ir,gi]of Object.entries(pi)){let ho={[Ir]:()=>{hi(gi)}};Mr.push(ho),Ln.addKeyMap(ho)}return()=>{for(let Ir of Mr)Ln.removeKeyMap(Ir)}}},[Ln]),(0,ue.useEffect)(()=>{Mt!==cn&&Jt(Mt)},[Mt]),(0,Hr.Z)(()=>{if(!Pt&&sr>0){let Mr=new Date().getTime(),Ir=window.sessionStorage.getItem(br);Mr>=sr+Co&&(!Ir||Ir!==co)&&(window.sessionStorage.setItem(br,co),Vr(!0))}},Co),(0,ue.useEffect)(()=>{Vt(Zn)},[Ln,Zn]),(0,ue.useEffect)(()=>{Ln&&Oi&&Ln.focus()},[Ln,Oi]),(0,ue.useEffect)(()=>{if(on&&Ln){let Mr=function(gi){let ho=gi.target;if(xr.current){let Ba=ho.scrollTop/ho.scrollHeight;xr.current.scrollTop=xr.current.scrollHeight*Ba}};const Ir=Ln.getScrollerElement();return Ir.addEventListener("scroll",Mr),()=>{Ir.removeEventListener("scroll",Mr)}}},[Ln,on]),(0,ue.useEffect)(()=>{if(Ln&&sn){let Mr=function(Ir,gi){sn(Ir,gi)};return Ln.on("beforeChange",Mr),()=>{Ln.off("beforeChange",Mr)}}},[Ln,sn]),(0,ue.useEffect)(()=>{if(Ln&&Ft){let Mr=function(){Ft(Ln.getValue())};return Ln.on("blur",Mr),()=>{Ln.off("blur",Mr)}}},[Ln,Ft]);function Cn(Mr,Ir){var gi=Mr.getDoc(),ho=gi.getCursor(),Ba=gi.getLine(ho.line),Ws=Ba.charAt(ho.ch-1),Xa=Ba.lastIndexOf("@\u2581@",ho.ch),la=Ba.lastIndexOf("@\u2581\u2581@",ho.ch),Ta=Xa>la?Xa:la,Ls=Xa>la?3:4;if(Nr.indexOf(Ws)===-1)return null;if(console.log("change1:",Ir,Mr,Ba,ho,Ta,Xa,la,Ws),Ta>=0&&ho.ch-Ta<5){var ll=Ta+Ls;return gi.replaceRange("",{line:ho.line,ch:Ta},{line:ho.line,ch:ll}),{line:ho.line,ch:ll}}return null}(0,ue.useEffect)(()=>{if(Ln){let Mr=function(Ir,gi){const ho=Ir.getValue();Kr(ho),li(new Date().getTime()),Ir.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),_t&&(En?_t(ho,ys(ho)):_t(ho))};return Ln.on("change",Mr),()=>{Ln.off("change",Mr)}}},[Ln,_t]),(0,ue.useEffect)(()=>{if(Ln)if(en==null)Ln.setValue(""),Kr("");else{const Mr=window.scrollY||window.pageYOffset;en!==Ln.getValue()&&(Ln.setValue(en),Kr(en),Ln.setCursor(ai?1:Ln.lineCount(),0),window.scrollTo(0,Mr))}},[Ln,en]);const hi=(0,ue.useCallback)(Mr=>{const Ir=Ln.getCursor(),gi=Ln.getSelection();let ho=gi.split(`
|
|
`);switch(Mr){case"bold":return Ln.replaceSelection("**"+gi+"**"),gi===""&&Ln.setCursor(Ir.line,Ir.ch+2),Ln.focus();case"italic":return Ln.replaceSelection("*"+gi+"*"),gi===""&&Ln.setCursor(Ir.line,Ir.ch+1),Ln.focus();case"code":return Ln.replaceSelection("`"+gi+"`"),gi===""&&Ln.setCursor(Ir.line,Ir.ch+1),Ln.focus();case"inline-latex":return er("inline-latex"),Ln.focus();case"latex":return Ln.replaceSelection("```latex\n"+gi+"\n```"),Ln.setCursor(Ir.line+1,gi.length+1),Ln.focus();case"line-break":return Ln.replaceSelection(`<br/>
|
|
`),Ln.focus();case"list-ul":return gi===""?Ln.replaceSelection("- "+gi):Ln.replaceSelection(ho.map(Ba=>Ba===""?"":`- ${Ba}`).join(`
|
|
`)),Ln.focus();case"list-ol":return gi===""?Ln.replaceSelection("1. "+gi):Ln.replaceSelection(ho.map((Ba,Ws)=>Ba===""?"":`${Ws+1}. ${Ba}`).join(`
|
|
`)),Ln.focus();case"add-null-ch":return gi===""&&Ln.setCursor(Ir.line,Ir.ch),Ln.replaceSelection(xo),Ln.focus();case"add-signal":return gi===""&&Ln.setCursor(Ir.line,Ir.ch),Ln.replaceSelection(Be),Ln.focus();case"add-multiple":return gi===""&&Ln.setCursor(Ir.line,Ir.ch),Ln.replaceSelection(Nr),Ln.focus();case"inster-template-1":return gi===""&&Ln.setCursor(Ir.line,Ir.ch),Ln.replaceSelection(ya),Ln.focus();case"eraser":return Ln.setValue(""),Ln.focus();case"trigger-watch":return Vt(!on),Ln.focus();case"trigger-full-screen":return Jt(!cn),Ln.focus();case Bi:er(Bi);return;case ur:er(ur);return;case On:er(On);return;case Ki:er(Ki);return;case"maths-latex":er("maths-latex");return;case Jn:er(Jn);return;case lo:er(lo);return;default:throw new Error}},[Ln,on,cn]),Ge=(0,ue.useCallback)((Mr,Ir)=>{var gi,ho,Ba,Ws,Xa,la;switch(er(""),zn){case Bi:const{title:Va,link:tn}=Mr;return Ln.replaceSelection(`[${Va}](${tn})`),Ln.focus();case ur:const{language:Ss,content:yu}=Mr;return Ln.replaceSelection(["```"+Ss,yu,"```"].join(`
|
|
`)),Ln.focus();case"maths-latex":for(var Ta=atob(Mr),Ls=new Uint8Array(Ta.length),ll=0;ll<Ta.length;ll++)Ls[ll]=Ta.charCodeAt(ll);var rn=new Blob([Ls],{type:"image/png"});(0,nn.I)(rn,du=>{du.id?Ln.replaceSelection(``):(du==null?void 0:du.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ln.replaceSelection("`$$"+Mr+"$$`");break;case On:case Ki:case Pi:const{src:fl,alt:Vl}=Mr,is=Ir,kl=(Ba=(ho=(gi=is==null?void 0:is.name)==null?void 0:gi.split("."))==null?void 0:ho.pop)==null?void 0:Ba.call(ho);return((Ws=is==null?void 0:is.type)==null?void 0:Ws.indexOf("image"))>-1||!(is!=null&&is.type)?is!=null&&is.align||is!=null&&is.width?Ln.replaceSelection(`<p style="text-align:${is.align||"initial"}"><img width="${is.width?is.width+"%":"initial"}" src="${fl}" alt="${Vl||""}" /></p>`):Ln.replaceSelection(`<img width="100%" src="${fl}" alt="${Vl||""}" />`):((Xa=is==null?void 0:is.type)==null?void 0:Xa.indexOf("video"))>-1?Ln.replaceSelection(`<video width="100%" controls src="${fl}"></video>`):((la=is==null?void 0:is.type)==null?void 0:la.indexOf("pdf"))>-1?Ln.replaceSelection(`<a href="${fl}?type=${is.type}&disposition=inline" target="_blank">${is.name}</a>`):to.includes(kl)?Ln.replaceSelection(`<a href="${fl}?type=office&disposition=inline" target="_blank">${is.name}</a>`):Ln.replaceSelection(`[${is.name}](${fl})`),Ln.focus();case lo:const{row:Nl,col:ga,align:gl}=Mr;let Vc=`
|
|
`;for(let du=0;du<Nl;du++){let Su=[],xu=[];for(let oo=0;oo<ga;oo++)du===1&&xu.push(Oo[gl]),Su.push(" ");du===1&&(Vc+=`| ${xu.join(" | ")} |
|
|
`),Vc+=`| ${Su.join(ga===1?"":" | ")} |
|
|
`}return Ln.replaceSelection(Vc+`
|
|
`),Ln.focus();default:throw new Error}},[Ln,zn]),To=(0,ue.useMemo)(()=>{switch(zn){case Bi:return ue.createElement(Xn,{callback:Ge,onCancel:no});case ur:return ue.createElement(ti.Z,{callback:Ge,onCancel:no});case On:return ue.createElement(nn.Z,{callback:Ge,onCancel:no});case Jn:return ue.createElement(mt,{callback:Ge,onCancel:no});case lo:return ue.createElement(mn,{callback:Ge,onCancel:no});case"maths-latex":return ue.createElement(Wn,{showSaveButton:!0,callback:Ge});case"inline-latex":return ue.createElement(bn.Z,{showSaveButton:!0,callback:Ge});default:return null}},[zn]);function no(){er("")}(0,ue.useEffect)(()=>{if(Ui.current){let Mr=function(Xa){Ba=!0,Ws=Xa.pageY},Ir=function(){Ba=!1},gi=function(Xa){if(Ba){let la=Xa.pageY-Ws;la<0&&(la=0),la>300&&(la=300);let Ta=Li+la+"px";Qn(Ta)}},ho=Ui.current,Ba=!1,Ws=0;return ho.addEventListener("mousedown",Mr),document.addEventListener("mousemove",gi),document.addEventListener("mouseup",Ir),()=>{ho.removeEventListener("mousedown",Mr),document.removeEventListener("mousemove",gi),document.removeEventListener("mouseup",Ir)}}},[Ln,Ui]),(0,ue.useEffect)(()=>{Qn(Li)},[Li]);const rr=jn(zt),qi=jn(Ci),Qi={width:rr,height:qi},oa=(0,ue.useMemo)(()=>{if(sr){let Mr=new Date(sr),Ir=Mr.getHours(),gi=Mr.getMinutes(),ho=Mr.getSeconds();return Ir=Ir<10?"0"+Ir:Ir,gi=gi<10?"0"+gi:gi,ho=ho<10?"0"+ho:ho,`${Ir}:${gi}:${ho}`}return 0},[sr]),ys=Mr=>{const Ir=[];if(En){let gi=-1;Mr=Mr.replace(/(@▁▁@|@▁@)/g,function(ho,Ba,Ws){Ir.push({multiLine:ho!==Be})})}return Ir};function bs(){window.sessionStorage.removeItem(br),Vr(!1),li(0)}function _o(){Vr(!1),li(0),Ln.setValue(window.sessionStorage.getItem(br))}(0,ue.useEffect)(()=>{qn[zn]&&zn!==Ki&&zn!==Jn&&setTimeout(()=>{const Mr=document.getElementsByClassName("markdown-popup-form")[0],Ir=window.innerWidth/2-Mr.offsetWidth/2,gi=window.innerHeight/2-Mr.offsetHeight/2;Or(Ir),fr(gi)},0)},[zn]);const Ea=Mr=>{Mr.preventDefault();const Ir=Mr.clientX-In,gi=Mr.clientY-Tr;document.body.onmousemove=ho=>{let Ba=ho.clientX-Ir,Ws=ho.clientY-gi;const Xa=document.getElementsByClassName("markdown-popup-form")[0],la=window.innerWidth-Xa.offsetWidth,Ta=window.innerHeight-Xa.offsetHeight;Ba=Math.max(0,Math.min(Ba,la)),Ws=Math.max(0,Math.min(Ws,Ta)),za(ho.clientX,ho.clientY,Ir,gi)&&(Or(Ba),fr(Ws))},document.body.onmouseup=function(){document.body.onmousemove=null}},za=(Mr,Ir,gi,ho)=>{const Ba=document.body.clientHeight,Ws=document.body.clientWidth;return Mr<20&&gi>Mr||Mr>Ws-20&&gi<Mr||Ir<20&&ho>Ir||Ir>Ba-20&&ho<Ir?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ue.createElement(ue.Fragment,null,ue.createElement("div",{className:"markdown-editor-wrapper",ref:Gr},ue.createElement("div",{className:`markdown-editor-container ${Ii} ${on?"on-preview":""} ${yr?"mini":""} ${cn?"full-screen":""}`,style:Qi},ue.createElement(dt,{insertTemp:ki,watch:on,fullScreen:cn,showNullButton:Di,showNullProgramButton:En,onActionCallback:hi,hidetoolBar:Yn,extraUse:Lo}),ue.createElement("div",{className:"markdown-editor-body"},ue.createElement("div",{className:"codemirror-container"},ue.createElement("textarea",{ref:Bo,placeholder:Jr})),on?ue.createElement("div",{ref:xr,className:"preview-container"},zr==="stex"&&ue.createElement(Ot,{value:co}),zr!=="stex"&&ue.createElement(Zt.Z,{disabledFill:Ti,showProgramFill:En,value:co})):null))),Br?ue.createElement("a",{ref:Ui,className:"editor-resize"}):null,zn===Ki&&ue.createElement(Mi,{callback:Ge,onCancel:no}),zn===Jn&&ue.createElement(mt,{callback:Ge,onCancel:no}),ue.createElement(xt.Z,null,qn[zn]&&zn!==Ki&&zn!==Jn?ue.createElement(vn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:In,top:Tr},title:ue.createElement("div",{style:{cursor:"move"},onMouseDown:Ea},qn[zn]),open:!0,onCancel:no,footer:null,destroyOnClose:!0,width:zn===Jn?"1200px":null,height:zn===Jn?"80vh":null,className:"markdown-popup-form"},To):null))}},28451:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return ke},I:function(){return dt}});var ue=Ee(78241),et=Ee(8591),Lt=Ee(92832),Nt=Ee(81327),Bt=Ee(5871),vt=Ee(5112),Ue=Ee(3113),bt=Ee(77903),Ct=Ee(59301),yt=Ee(59301),Zt=Object.defineProperty,Ot=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,de=(xt,ut,It)=>ut in xt?Zt(xt,ut,{enumerable:!0,configurable:!0,writable:!0,value:It}):xt[ut]=It,le=(xt,ut)=>{for(var It in ut||(ut={}))te.call(ut,It)&&de(xt,It,ut[It]);if(Te)for(var It of Te(ut))ne.call(ut,It)&&de(xt,It,ut[It]);return xt},pe=(xt,ut)=>Ot(xt,Ut(ut));const{useForm:Se}=ue.default,Ae={width:280,marginRight:10},Me={labelCol:{span:5},wrapperCol:{span:19}};var ke=({callback:xt,onCancel:ut})=>{const[It]=Se();let Et=(0,Ct.useRef)();function Tt(vi){Et.current.width=It.getFieldValue("width"),Et.current.align=It.getFieldValue("align"),xt(vi,Et.current)}function Yt(vi,ui){if(vi.status===-1){et.ZP.error(vi.message);return}It.setFieldsValue({src:`/api/attachments/${vi.id}`,type:ui.type})}function hn(vi){let ui=vi.target.files[0];Et.current=ui,dt(ui,Yt)}return yt.createElement(ue.default,pe(le({form:It},Me),{className:"upload-image-panel",onFinish:Tt,style:{width:470,overflow:"hidden"}}),yt.createElement(ue.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},yt.createElement("div",{className:"flex-container"},yt.createElement(ue.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},yt.createElement(Lt.default,{style:Ae})),yt.createElement(st,{onFileChange:hn}))),yt.createElement(ue.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},yt.createElement(Lt.default,{style:{width:264}})),yt.createElement(ue.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},yt.createElement(Nt.Z,null,yt.createElement(ue.default.Item,{name:"width",style:{margin:0}},yt.createElement(Bt.Z,{style:{width:264}})),yt.createElement("span",{className:"ml8"},"%"))),yt.createElement(ue.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},yt.createElement(vt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),yt.createElement("aside",null,yt.createElement(ue.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},yt.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),yt.createElement(Ue.ZP,{type:"default",onClick:ut},"\u53D6\u6D88"))))};function st({onFileChange:xt}){return yt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",yt.createElement("input",{type:"file",onChange:xt}))}function dt(xt,ut){if(!xt)throw new String("\u6CA1\u6709\u6587\u4EF6");let It=new FormData;It.append("editormd-image-file",xt),It.append("file_param_name","editormd-image-file"),It.append("byxhr","true");var Et=new window.XMLHttpRequest;Et.withCredentials=!0,Et.addEventListener("load",function(Tt){ut(JSON.parse(Tt.target.responseText),xt)},!1),Et.addEventListener("error",function(Tt){console.error(Tt)},!1),Et.open("POST",`${bt.KI}/api/attachments.json`),Et.send(It)}},79346:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Lt}});var ue=Ee(59301),et=Ee(4676);class Lt extends ue.Component{constructor(Bt){super(Bt);const vt=window.document;this.node=vt.createElement("div"),vt.body.appendChild(this.node)}render(){const{children:Bt}=this.props;return(0,et.createPortal)(Bt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(qt,kn,Ee){"use strict";Ee.d(kn,{SV:function(){return tt},ZP:function(){return De}});var ue=Ee(59301),et=Ee(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"]},Nt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Bt={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},vt={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(`
|
|
`)}]},Ue={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 bt=Ee(53184),Ct=Ee.n(bt),yt=Object.defineProperty,Zt=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(He,mt,Wt)=>mt in He?yt(He,mt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):He[mt]=Wt,de=(He,mt)=>{for(var Wt in mt||(mt={}))Te.call(mt,Wt)&&ne(He,Wt,mt[Wt]);if(Ut)for(var Wt of Ut(mt))te.call(mt,Wt)&&ne(He,Wt,mt[Wt]);return He},le=(He,mt)=>Zt(He,Ot(mt)),pe=(He,mt,Wt)=>new Promise((kt,yn)=>{var pn=Tn=>{try{Gn(Wt.next(Tn))}catch(Xt){yn(Xt)}},mn=Tn=>{try{Gn(Wt.throw(Tn))}catch(Xt){yn(Xt)}},Gn=Tn=>Tn.done?kt(Tn.value):Promise.resolve(Tn.value).then(pn,mn);Gn((Wt=Wt.apply(He,mt)).next())});const Se={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=(He,mt)=>mt.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Keyword,insertText:Wt})),Me=He=>Object.keys(Se.tables).map(mt=>({label:mt,kind:He.languages.CompletionItemKind.Variable,insertText:mt})),ke=(He,mt)=>{const Wt=Se.tables[He];return Wt?Wt.map(kt=>({label:kt,kind:mt.languages.CompletionItemKind.Field,insertText:kt})):[]};function st(He,mt,Wt,kt,yn){let pn=mt.getWordUntilPosition(Wt),mn={startLineNumber:Wt.lineNumber,endLineNumber:Wt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},Gn=kt.map(Tn=>({label:Tn,kind:He.languages.CompletionItemKind.Keyword,insertText:Tn,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mn}));return yn.map(Tn=>{Gn.push(le(de({},Tn),{range:mn}))}),Gn}var dt=He=>{Se.languages.map(yn=>(He.languages.registerDocumentFormattingEditProvider(yn,{provideDocumentFormattingEdits(pn,mn,Gn){return pe(this,null,function*(){const Tn=Ct()(pn.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:pn.getFullModelRange(),text:Tn}]})}}),yn));const mt=Bt.quickKey.map(yn=>({label:yn.label,kind:He.languages.CompletionItemKind.Method,insertText:yn.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Wt=vt.quickKey.map(yn=>({label:yn.label,kind:He.languages.CompletionItemKind.Method,insertText:yn.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),kt=Nt.quickKey.map(yn=>({label:yn.label,kind:He.languages.CompletionItemKind.Method,insertText:yn.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(yn,pn){var mn=yn.getWordUntilPosition(pn),Gn={startLineNumber:pn.lineNumber,endLineNumber:pn.lineNumber,startColumn:mn.startColumn,endColumn:mn.endColumn},Tn=yn.getLineContent(pn.lineNumber).substring(mn.startColumn-2,mn.endColumn);return{suggestions:[...Bt.keywords.map(Xt=>({label:Xt,kind:He.languages.CompletionItemKind.Function,documentation:Xt,insertText:Xt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Bt.quickKey.map(Xt=>({label:Xt.label,kind:He.languages.CompletionItemKind.Function,documentation:Xt.content,insertText:Tn.startsWith("#")?Xt.content.replace(/#/,""):Xt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(yn,pn){var mn=yn.getWordUntilPosition(pn),Gn={startLineNumber:pn.lineNumber,endLineNumber:pn.lineNumber,startColumn:mn.startColumn,endColumn:mn.endColumn};return{suggestions:[...Lt.keywords.map(Tn=>({label:Tn,kind:He.languages.CompletionItemKind.Function,documentation:Tn,insertText:Tn,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(yn,pn){var mn=yn.getWordUntilPosition(pn),Gn={startLineNumber:pn.lineNumber,endLineNumber:pn.lineNumber,startColumn:mn.startColumn,endColumn:mn.endColumn},Tn=yn.getLineContent(pn.lineNumber).substring(mn.startColumn-2,mn.endColumn);return{suggestions:[...Nt.keywords.map(Xt=>({label:Xt,kind:He.languages.CompletionItemKind.Function,documentation:Xt,insertText:Xt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Nt.quickKey.map(Xt=>({label:Xt.label,kind:He.languages.CompletionItemKind.Function,documentation:Xt.content,insertText:Tn.startsWith("#")?Xt.content.replace(/#/,""):Xt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(yn,pn){var mn=yn.getWordUntilPosition(pn),Gn={startLineNumber:pn.lineNumber,endLineNumber:pn.lineNumber,startColumn:mn.startColumn,endColumn:mn.endColumn},Tn=yn.getLineContent(pn.lineNumber).substring(mn.startColumn-2,mn.endColumn);return{suggestions:[...Ue.keywords.map(Xt=>({label:Xt,kind:He.languages.CompletionItemKind.Function,documentation:Xt,insertText:Xt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Ue.quickKey.map(Xt=>({label:Xt.label,kind:He.languages.CompletionItemKind.Function,documentation:Xt.content,insertText:Tn.startsWith("#")?Xt.content.replace(/#/,""):Xt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(yn,pn){var mn=yn.getWordUntilPosition(pn),Gn={startLineNumber:pn.lineNumber,endLineNumber:pn.lineNumber,startColumn:mn.startColumn,endColumn:mn.endColumn},Tn=yn.getLineContent(pn.lineNumber).substring(mn.startColumn-2,mn.endColumn);return{suggestions:[...vt.keywords.map(Xt=>({label:Xt,kind:He.languages.CompletionItemKind.Function,documentation:Xt,insertText:Xt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...vt.quickKey.map(Xt=>({label:Xt.label,kind:He.languages.CompletionItemKind.Function,documentation:Xt.content,insertText:Tn.startsWith("#")?Xt.content.replace(/#/,""):Xt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}})};const xt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ut=Object.defineProperty,It=(He,mt,Wt)=>mt in He?ut(He,mt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):He[mt]=Wt,Et=(He,mt,Wt)=>It(He,typeof mt!="symbol"?mt+"":mt,Wt);const Tt=class bx{constructor(mt,Wt,kt){this.placeholder=mt,this.editor=Wt,this.monaco=kt,Wt.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)}};Et(Tt,"ID","editor.widget.placeholderHint");var hn=Tt,vi=Ee(96236),ui=Ee(8591),Bn=Ee(6848),di=Ee(89392),nt=Ee(34604),ze=Ee(56102),gn=Object.defineProperty,Xn=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Si=(He,mt,Wt)=>mt in He?gn(He,mt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):He[mt]=Wt,Vn=(He,mt)=>{for(var Wt in mt||(mt={}))vn.call(mt,Wt)&&Si(He,Wt,mt[Wt]);if(nn)for(var Wt of nn(mt))An.call(mt,Wt)&&Si(He,Wt,mt[Wt]);return He},Mi=(He,mt)=>Xn(He,ti(mt)),pt=(He,mt)=>{var Wt={};for(var kt in He)vn.call(He,kt)&&mt.indexOf(kt)<0&&(Wt[kt]=He[kt]);if(He!=null&&nn)for(var kt of nn(He))mt.indexOf(kt)<0&&An.call(He,kt)&&(Wt[kt]=He[kt]);return Wt},ht=(He,mt,Wt)=>new Promise((kt,yn)=>{var pn=Tn=>{try{Gn(Wt.next(Tn))}catch(Xt){yn(Xt)}},mn=Tn=>{try{Gn(Wt.throw(Tn))}catch(Xt){yn(Xt)}},Gn=Tn=>Tn.done?kt(Tn.value):Promise.resolve(Tn.value).then(pn,mn);Gn((Wt=Wt.apply(He,mt)).next())});function dn(He){return/^\d+$/.test(He)?`${He}px`:He}function Oe(){}let Ce=!1;const Pe={"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 Ie(He=[]){let mt=He;if(Array.isArray(He)){for(let Wt=0;Wt<He.length;Wt++){let kt=Pe[He[Wt]];if(kt)return kt}return mt[0]}return Pe[mt]||mt}let Ke=null;var De=He=>{var mt=He,{width:Wt="100%",height:kt="100%",value:yn,language:pn="javascript",style:mn={},options:Gn={},overrideServices:Tn={},theme:Xt="vs-dark",onEditBlur:fi,isCopy:Wn=!1,onSave:bn,autoHeight:Dn=!1,forbidCopy:Bi=!1,onChange:On=Oe,editorDidMount:Jn=Oe,onFocus:Ki=Oe,onBreakPoint:Pi=Oe,breakPointValue:ur=[],filename:lo="educoder.txt",errorLine:jo,errorContent:Oo="",highlightLine:Hr,openBreakPoint:da=!1,placeholder:zo=""}=mt,Co=pt(mt,["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 xo=(0,ue.useRef)(),Nr=(0,ue.useRef)({}),Be=(0,ue.useRef)(),ya=(0,ue.useRef)(),to=(0,ue.useRef)([]),jn=(0,ue.useRef)(!1),Vi=(0,ue.useRef)(),Wi=(0,ue.useRef)(),pi=(0,ue.useRef)(!1),[qn,nr]=(0,ue.useState)(!1);function en(){let Mt;return xo.current&&(Mt=new et.Z(Ft=>{for(let sn of Ft)(sn.target.offsetHeight>0||sn.target.offsetWidth>0)&&Nr.current.instance.layout()}),Mt.observe(xo.current)),Mt}function _t(){ui.ZP.warning({content:decodeURIComponent(xt),key:"monaco-editor-tip"})}const zt=()=>{let Mt=Nr.current.instance;if(yn!=null&&Mt&&qn){const Ft=Mt.getModel();Ft&&yn!==Ft.getValue()&&(Ce=!0,Ft.setValue(yn),Mt.layout(),Ce=!1)}};(0,ue.useEffect)(()=>{const Mt=nt.Z.subscribe("formatDocument",Ft=>{var sn;let Sr=Nr.current.instance;(sn=Sr==null?void 0:Sr.getAction)==null||sn.call(Sr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ft=>{On(Ft)},Mt},[]),(0,ue.useEffect)(()=>{var Mt;let Ft=Nr.current.instance;ya.current&&clearTimeout(ya.current),ya.current=setTimeout(()=>{zt()},500),yn&&(yn!=null&&yn.length)&&((Mt=Ft==null?void 0:Ft.updateOptions)==null||Mt.call(Ft,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(yn.split(/\r\n|\r|\n/g).length))+3,5)}))},[yn,qn,Nr.current]),(0,ue.useEffect)(()=>{if(jo&&Nr.current&&Nr.current.instance){let Ft=Nr.current.instance;Ft.changeViewZones(function(sn){var Sr=document.createElement("div");Sr.style.padding="10px 20px",Sr.style.width="calc(100% - 20px)",Sr.className="my-error-line-wrp",Sr.innerHTML=Oo,sn.addZone({afterLineNumber:jo||11,heightInLines:3,domNode:Sr})});var Mt={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}};Ft.addOverlayWidget(Mt),Ft.revealPositionInCenter({lineNumber:20,column:1})}},[jo,Nr.current,qn]);const Li=(Mt="",Ft)=>{if(!Mt||Mt.trim()==="")return!0;const Sr=Nr.current.instance.getModel().getLineTokens(Ft);let Ii=!1;for(let Ri=0;Ri<2;Ri++)Sr.getStandardTokenType(Ri)===1&&(Ii=!0);return Ii};(0,ue.useEffect)(()=>{var Mt;const Ft=(Mt=Nr.current)==null?void 0:Mt.instance;if(Ft&&qn&&Bi){const sn=Ft.onDidBlurEditorWidget(()=>{pi.current=!1}),Sr=Ft.onDidFocusEditorText(()=>{pi.current=!0});return()=>{sn.dispose(),Sr.dispose()}}},[Nr.current,qn,Bi]),(0,ue.useEffect)(()=>{var Mt;if((Mt=Nr.current)!=null&&Mt.instance&&qn&&da){let Ft=Nr.current.instance,sn=Ft.getModel();if(!sn)return;(()=>{var Kr;let on=[],Vt=[];const cn=sn.getAllDecorations();for(let zn of cn)zn.options.className==="highlighted-line"&&(on.push((Kr=zn==null?void 0:zn.range)==null?void 0:Kr.startLineNumber),Vt.push(zn==null?void 0:zn.id));if(Hr===on[0])return;sn.deltaDecorations(Vt,[]);const Jt=sn.getLineCount();Hr&&Hr<=Jt&&(Ft.deltaDecorations([],[{range:new Ke.Range(Hr,1,Hr,sn.getLineMaxColumn(Hr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ft.revealLineInCenter(Hr))})();const Ii=(Kr=!1)=>{var on;let Vt=[],cn=[];const Jt=sn.getAllDecorations();for(let zn of Jt)zn.options.linesDecorationsClassName==="breakpoints-select"&&(Vt.push((on=zn==null?void 0:zn.range)==null?void 0:on.startLineNumber),cn.push(zn==null?void 0:zn.id));if(Kr)return{lines:Vt,ids:cn};Pi(Vt)},Ri=Kr=>ht(void 0,null,function*(){let on={range:new Ke.Range(Kr,1,Kr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield sn.deltaDecorations([],[on]),Ii()}),ai=Kr=>ht(void 0,null,function*(){let on=[];const Vt=Ft.getLineDecorations(Kr);for(let cn of Vt)cn.options.linesDecorationsClassName==="breakpoints-select"&&on.push(cn.id);yield sn.deltaDecorations(on,[]),Ii()}),Ti=Kr=>{let on=Ft.getLineDecorations(Kr);for(let Vt of on)if(Vt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,di.isEqual)(ur,Ii(!0).lines)){sn.deltaDecorations(Ii(!0).ids,[]);const Kr=ur.map(on=>({range:new Ke.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));sn.deltaDecorations([],Kr)}const Jr=Ft.onDidChangeModelContent(Kr=>{let on=Ft.getPosition();if(on){let Vt=on.lineNumber;clearTimeout(Wi.current),Wi.current=setTimeout(()=>{Li(sn.getLineContent(Vt),Vt)?ai(Vt):Ti(Vt)?(ai(Vt),Ri(Vt)):Ii()},100)}}),Qr=Ft.onMouseDown(Kr=>{var on,Vt,cn;if(Kr.target.detail&&((cn=(Vt=(on=Kr.target)==null?void 0:on.element)==null?void 0:Vt.className)!=null&&cn.includes("line-numbers"))){let Jt=Kr.target.position.lineNumber;if(Li(sn.getLineContent(Jt),Jt))return;Ti(Jt)?ai(Jt):Ri(Jt)}}),Lo=Kr=>{let on={range:new Ke.Range(Kr,1,Kr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};to.current=Ft.deltaDecorations(to.current,[on])},Ln=()=>{to.current=Ft.deltaDecorations(to.current,[])},ja=Ft.onMouseMove(Kr=>{var on,Vt,cn;if(Ln(),Kr.target.detail&&((cn=(Vt=(on=Kr.target)==null?void 0:on.element)==null?void 0:Vt.className)!=null&&cn.includes("line-numbers"))){let Jt=Kr.target.position.lineNumber;if(Li(sn.getLineContent(Jt),Jt))return;Lo(Jt)}}),co=Ft.onMouseLeave(()=>{Ln()});return()=>{Jr.dispose(),Qr.dispose(),ja.dispose(),co.dispose()}}},[Nr.current,qn,ur,Hr,da,pn]),(0,ue.useEffect)(()=>{var Mt;(Mt=Nr.current)!=null&&Mt.instance&&da&&Nr.current.instance.setPosition({lineNumber:0,column:0})},[Hr]);function yr(){let Mt=Nr.current.instance;if(Mt){const Ft=Mt.getSelection(),sn=Nr.current.pastePos||{},Sr=new Ke.Range(sn.startLineNumber||Ft.endLineNumber,sn.startColumn||Ft.endColumn,sn.endLineNumber||Ft.endLineNumber,sn.endColumn||Ft.endColumn);setTimeout(()=>{Mt.executeEdits("",[{range:Sr,text:""}])},300)}}function Oi(Mt){(window.navigator.platform.match("Mac")?Mt.metaKey:Mt.ctrlKey)&&Mt.keyCode==83&&(Mt.preventDefault(),bn())}const Zn=()=>{if(Dn&&Nr.current.instance){const Mt=Nr.current.instance.getContentHeight();En(Mt<kt?kt:Mt)}else En(kt)};function ki(Mt){var Ft=document.createEvent("MouseEvents");Ft.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Mt.dispatchEvent(Ft)}const zr=Mt=>{if(!pi.current)return;const{keyCode:Ft,ctrlKey:sn,metaKey:Sr,target:Ii,type:Ri}=Mt;return(Ri==="paste"||(Ft===67||Ft===86)&&(Sr||sn))&&Ii.nodeName==="TEXTAREA"&&(_t(),Mt.preventDefault()),!1};function br(Mt,Ft){var sn=window.URL||window.webkitURL||window,Sr=new Blob([Ft]),Ii=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ii.href=sn.createObjectURL(Sr),Ii.download=Mt,ki(Ii)}(0,ue.useEffect)(()=>{Zn()},[Zn]),(0,ue.useEffect)(()=>{xo.current&&!qn&&Promise.all([Ee.e(8909),Ee.e(3267)]).then(Ee.bind(Ee,71448)).then(Mt=>{try{Ke=Mt,Nr.current.instance=Ke.editor.create(xo.current,{value:yn,language:Ie(pn),theme:Xt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Tn);const Ft=Nr.current.instance;let Ii=[...vi.BH._menuItems].find(Jr=>Jr[0]._debugName=="EditorContext")[1],Ri=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ai=(Jr,Qr)=>{var Lo,Ln;let ja=Jr._first;do Qr.includes((Ln=(Lo=ja.element)==null?void 0:Lo.command)==null?void 0:Ln.id)&&Jr._remove(ja);while(ja=ja.next)};if(Jn(Ft,Ke),setTimeout(()=>{Zn(),Nr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{br(lo||"educoder.txt",Ft.getValue())}})},500),Nr.current.subscription=Ft.onDidChangeModelContent(Jr=>{jn.current?clearTimeout(Vi.current):(Zn(),On(Ft.getValue(),Jr)),Vi.current=setTimeout(()=>{jn.current=!1},500)}),window.Monaco||dt(Ke,Ie(pn)),Bi&&(ai(Ii,Ri),xo.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",zr),window.removeEventListener("paste",zr),window.addEventListener("keydown",zr),window.addEventListener("paste",zr)),window.Monaco=Ke,fi&&Ft.onDidBlurEditorWidget(()=>{fi(Ft.getValue())}),Ki&&Ft.onDidFocusEditorText(()=>{Ki(Ft.getValue())}),Bi)try{Ft.onDidPaste(Jr=>{const Qr=Ft.getSelection(),Lo=Nr.current.pastePos||{},Ln=new Ke.Range(Lo.startLineNumber||Qr.endLineNumber,Lo.startColumn||Qr.endColumn,Lo.endLineNumber||Qr.endLineNumber,Lo.endColumn||Qr.endColumn);Ft.executeEdits("",[{range:Jr.range,text:""}])})}catch(Jr){}let Ti=en();return zo&&typeof zo=="string"&&new hn(zo,Ft,Ke),nr(!0),()=>{const Jr=Nr.current.instance;Jr.dispose();const Qr=Jr.getModel();Qr&&Qr.dispose(),Nr.current.subscription&&Nr.current.subscription.dispose(),Ti.unobserve(xo.current)}}catch(Ft){}})},[]),(0,ue.useEffect)(()=>{if(Nr.current.instance&&qn)return document.addEventListener("keydown",Oi,!1),()=>{document.removeEventListener("keydown",Oi)}},[bn,qn]),(0,ue.useEffect)(()=>{let Mt=Nr.current.instance;if(Mt&&qn){let Ft=Ie(pn);Ke.editor.setModelLanguage(Mt.getModel(),Ft)}},[pn,qn]),(0,ue.useEffect)(()=>{Nr.current.instance&&qn&&Ke.editor.setTheme(Xt)},[Xt,qn]),(0,ue.useEffect)(()=>{let Mt=Nr.current.instance;Be.current=Gn,Mt&&qn&&(Mt.updateOptions(Vn({},Gn)),setTimeout(()=>{Mt.getModel().updateOptions(Vn({},Gn))},200))},[JSON.stringify(Gn),qn]),(0,ue.useEffect)(()=>{let Mt=Nr.current.instance;Mt&&qn&&Mt.layout()},[Wt,kt,qn]);const[Br,Pt]=(0,ue.useState)(dn(Wt)),[Di,En]=(0,ue.useState)(dn(kt)),Yn=Mi(Vn({},mn),{width:Br,height:Di,position:"relative"});return ue.createElement("div",{className:"my-monaco-editor",ref:xo,style:Yn},Wn&&ue.createElement(ze.CopyToClipboard,{text:yn,onCopy:()=>ui.ZP.success("\u590D\u5236\u6210\u529F")},ue.createElement(Bn.Z,{title:"\u590D\u5236\u4EE3\u7801"},ue.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ue.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function tt({width:He="100%",height:mt="100%",original:Wt,modified:kt,language:yn,options:pn={}}){const mn=(0,ue.useRef)(),[Gn,Tn]=(0,ue.useState)(null);function Xt(Dn){let Bi;return mn.current&&(Bi=new et.Z(On=>{for(let Jn of On)(Jn.target.offsetHeight>0||Jn.target.offsetWidth>0)&&Dn.layout()}),Bi.observe(mn.current)),Bi}(0,ue.useEffect)(()=>(mn.current&&Promise.all([Ee.e(8909),Ee.e(9404)]).then(Ee.bind(Ee,2550)).then(Dn=>{Ke=Dn;const Bi=Ke.editor.createDiffEditor(mn.current,Mi(Vn({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},pn),{wordWrap:!0}));Tn(Bi);let On=Xt(Bi);return()=>{Bi.dispose();const Jn=Bi.getModel();Jn&&Jn.dispose(),On.unobserve(mn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ue.useEffect)(()=>{Gn&&Gn.setModel({original:Ke.editor.createModel(Wt,yn),modified:Ke.editor.createModel(kt,yn)})},[Wt,kt,yn,Gn]);const fi=dn(He),Wn=dn(mt),bn={width:fi,height:Wn};return ue.createElement("div",{className:"my-diff-editor",ref:mn,style:bn})}},58856:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return et}});var ue=Ee(59301);function et(Lt,Nt){const Bt=(0,ue.useRef)();(0,ue.useEffect)(()=>{Bt.current=Lt}),(0,ue.useEffect)(()=>{function vt(){Bt.current()}if(Nt!==null){let Ue=setInterval(vt,Nt);return()=>clearInterval(Ue)}},[Nt])}},62517:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return ne}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(78241),Nt=Ee(8591),Bt=Ee(43418),vt=Ee(92832),Ue={wrap:"wrap___TwY3U",content:"content___Ks95W",mainPathWrap:"mainPathWrap___CrMaa",colorBlue:"colorBlue___dvWbP"},bt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Ot=(de,le,pe)=>le in de?bt(de,le,{enumerable:!0,configurable:!0,writable:!0,value:pe}):de[le]=pe,Ut=(de,le)=>{for(var pe in le||(le={}))yt.call(le,pe)&&Ot(de,pe,le[pe]);if(Ct)for(var pe of Ct(le))Zt.call(le,pe)&&Ot(de,pe,le[pe]);return de},Te=(de,le,pe)=>new Promise((Se,Ae)=>{var Me=dt=>{try{st(pe.next(dt))}catch(xt){Ae(xt)}},ke=dt=>{try{st(pe.throw(dt))}catch(xt){Ae(xt)}},st=dt=>dt.done?Se(dt.value):Promise.resolve(dt.value).then(Me,ke);st((pe=pe.apply(de,le)).next())});const te=({shixunsDetail:de,globalSetting:le,loading:pe,dispatch:Se,title:Ae,pathList:Me=[],showInputPath:ke=!1,isMergeSelectFile:st=!1,onFinish:dt=()=>{}})=>{const[xt]=Lt.default.useForm(),ut=(0,et.useParams)(),It=(0,et.useLocation)(),Et=(0,ue.useRef)(),[Tt,Yt]=(0,ue.useState)(""),[hn,vi]=(0,ue.useState)(""),[ui,Bn]=(0,ue.useState)([]),[di,nt]=(0,ue.useState)([]);(0,ue.useEffect)(()=>{var vn,An;Et.current=((An=(vn=It.pathname)==null?void 0:vn.split("/"))==null?void 0:An[3])==="repository"},[]),(0,ue.useEffect)(()=>{if(de.actionTabs.key!=="Repository-SelectFilePath")return;const vn=Me.join("/");let An=[];Me.map((Si,Vn)=>{Vn===0?An.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${Si}`,path:vn}):An.push({val:`/${Si}`,path:vn})}),Bn(An),Yt(vn),vi(vn),ze(vn)},[de.actionTabs.key]);const ze=vn=>Te(void 0,null,function*(){const An=yield Se({type:Et.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:ut.id,path:vn}});An&&nt(An.trees||[])}),gn=vn=>{let An=Tt;vn.type==="tree"&&(ui.length?ui.push({val:`/${vn.name}`,path:vn.name}):ui.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${vn.name}`,path:vn.name}),Bn(ui),An=Tt?`${Tt}/${vn.name}`:vn.name,Yt(An)),ze(An)},Xn=(vn,An)=>{const Si=ui.filter((Mi,pt)=>pt<=An);Bn(Si);const Vn=Si.filter((Mi,pt)=>pt!==0).map(Mi=>Mi.val).join("").substr(1);Yt(Vn),ze(Vn)},ti=()=>Te(void 0,null,function*(){const vn=xt==null?void 0:xt.getFieldsValue(),An=Tt?`${Tt}${vn!=null&&vn.name?`/${vn==null?void 0:vn.name}`:""}`:vn==null?void 0:vn.name;if(st){dt(An),nn();return}if(ke){yield xt.validateFields();const Si=yield Se({type:"shixunsDetail/uploadGitFolder",payload:Ut(Ut({},{id:ut.id,path:An}),Et.current?{}:{secret_repository:!0})});dt(hn),Si.status===0&&Nt.ZP.info("\u65B0\u5EFA\u6210\u529F")}else dt(An),Nt.ZP.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");nn()}),nn=()=>{Se({type:"shixunsDetail/setActionTabs",payload:{}}),xt.resetFields()};return ue.createElement(Bt.default,{centered:!0,title:Ae||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,open:de.actionTabs.key==="Repository-SelectFilePath",onOk:ti,onCancel:nn},ue.createElement("div",{className:Ue.wrap},ue.createElement("div",{className:Ue.content},ue.createElement("div",{className:Ue.mainPathWrap},!!(ui!=null&&ui.length)&&ui.map((vn,An)=>ue.createElement("a",{key:An,onClick:()=>Xn(vn,An)},vn.val))),!!(di!=null&&di.length)&&di.map((vn,An)=>vn.type==="tree"&&ue.createElement("a",{key:An,onClick:()=>gn(vn)},ue.createElement("i",{className:`iconfont icon-wenjianjia ${Ue.colorBlue}`}),vn.name))),ue.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),ue.createElement("div",{className:"mt5 mb5"},Tt),ke&&ue.createElement(Lt.default,{form:xt,scrollToFirstError:!0,className:"mt20"},ue.createElement(Lt.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ue.createElement(vt.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};var ne=(0,et.connect)(({shixunsDetail:de,loading:le,globalSetting:pe})=>({shixunsDetail:de,globalSetting:pe,loading:le.models.index}))(te)},81833:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return di}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(36381),Nt=Ee(92832),Bt=Ee(78241),vt=Ee(8591),Ue=Ee(43418),bt=Ee(24905),Ct=Ee(6848),yt=Ee(5871),Zt=Ee(5112),Ot=Ee(81327),Ut=Ee(95237),Te=Ee(57809),te=Ee(78673),ne=Ee(9165),de=Ee(85057),le={wrap:"wrap___BgpUe",row:"row___UWxAG",textarea:"textarea___gaLin",btn:"btn___ZpuhS",sub:"sub___Jd_ZS"},pe=Ee(23954),Se=Ee(99064),Ae=Ee(24065),Me=Ee(59301),ke=Object.defineProperty,st=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Et=(nt,ze,gn)=>ze in nt?ke(nt,ze,{enumerable:!0,configurable:!0,writable:!0,value:gn}):nt[ze]=gn,Tt=(nt,ze)=>{for(var gn in ze||(ze={}))ut.call(ze,gn)&&Et(nt,gn,ze[gn]);if(xt)for(var gn of xt(ze))It.call(ze,gn)&&Et(nt,gn,ze[gn]);return nt},Yt=(nt,ze)=>st(nt,dt(ze)),hn=(nt,ze,gn)=>new Promise((Xn,ti)=>{var nn=Si=>{try{An(gn.next(Si))}catch(Vn){ti(Vn)}},vn=Si=>{try{An(gn.throw(Si))}catch(Vn){ti(Vn)}},An=Si=>Si.done?Xn(Si.value):Promise.resolve(Si.value).then(nn,vn);An((gn=gn.apply(nt,ze)).next())});const{Panel:vi}=Lt.default,{TextArea:ui}=Nt.default;var di=({active:nt,type:ze="jupyter"})=>{var gn,Xn;const ti=(0,et.useParams)(),[nn]=Bt.default.useForm(),[vn,An]=(0,ue.useState)({}),[Si,Vn]=(0,ue.useState)(!1),[Mi,pt]=(0,ue.useState)(0),[ht,dn]=(0,ue.useState)([]),[Oe,Ce]=(0,ue.useState)([]),[Pe,Ie]=(0,ue.useState)([]),Ke=(Xn=(gn=(0,Ae.eY)())==null?void 0:gn.shixun)==null?void 0:Xn.editable;(0,ue.useEffect)(()=>{nt==="testCase"&&De()},[nt]),(0,ue.useEffect)(()=>{tt()},[]);const De=()=>hn(void 0,null,function*(){var Tn,Xt,fi,Wn,bn,Dn,Bi,On,Jn,Ki,Pi,ur,lo,jo;const Oo=[{hidden:0,input:"",output:"",score:100}],Hr=yield(0,Se.ZP)(`/api/shixuns/${ti==null?void 0:ti.id}/jupyter_evalute_setting.json`,{method:"get"});if((Hr==null?void 0:Hr.status)===0){Ie((Tn=Hr==null?void 0:Hr.data)==null?void 0:Tn.standard_scripts);const da={open_evaluate:(Xt=Hr==null?void 0:Hr.data)==null?void 0:Xt.open_evaluate,exec_time:((fi=Hr==null?void 0:Hr.data)==null?void 0:fi.exec_time)||3,test_set_score:((Wn=Hr==null?void 0:Hr.data)==null?void 0:Wn.test_set_score)===null?!1:(bn=Hr==null?void 0:Hr.data)==null?void 0:bn.test_set_score,test_set_average:((Dn=Hr==null?void 0:Hr.data)==null?void 0:Dn.test_set_average)===null?!0:(Bi=Hr==null?void 0:Hr.data)==null?void 0:Bi.test_set_average,choice_standard_scripts:((On=Hr==null?void 0:Hr.data)==null?void 0:On.choice_standard_scripts)||null,evaluate_script:((Jn=Hr==null?void 0:Hr.data)==null?void 0:Jn.evaluate_script)||"",evaluate_method:(Ki=Hr==null?void 0:Hr.data)==null?void 0:Ki.evaluate_method,use_jupyter_result:(Pi=Hr==null?void 0:Hr.data)==null?void 0:Pi.use_jupyter_result};nn.setFieldsValue(da),An(da),dn((lo=(ur=Hr==null?void 0:Hr.data)==null?void 0:ur.test_sets)!=null&&lo.length?(jo=Hr==null?void 0:Hr.data)==null?void 0:jo.test_sets:Oo)}}),tt=()=>hn(void 0,null,function*(){var Tn;const Xt=yield(0,Se.ZP)(`/api/shixuns/${ti==null?void 0:ti.id}/get_jupyter_tags.json`,{method:"get"});(Xt==null?void 0:Xt.status)===0&&Ce(((Tn=Xt==null?void 0:Xt.data)==null?void 0:Tn.list)||[])}),He=Tn=>hn(void 0,null,function*(){const fi=ht.map(bn=>bn.score).reduce((bn,Dn)=>bn+Dn,0);if(Tn.test_set_score&&fi!==100){vt.ZP.warning("\u6D4B\u8BD5\u7528\u4F8B\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(Tn.evaluate_method===3&&(ht!=null&&ht.some(bn=>!bn.tags))){vt.ZP.warning("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EE3\u7801\u5757");return}Vn(!0),(yield(0,Se.ZP)(`/api/shixuns/${ti==null?void 0:ti.id}/update_jupyter_evaluate_setting.json`,{method:"post",body:Yt(Tt({},Tn),{mirror_script_id:Tn==null?void 0:Tn.choice_standard_scripts,open_evaluate:Tn!=null&&Tn.open_evaluate?1:0,test_set:ht.map(bn=>Yt(Tt({},bn),{is_file:!1}))})})).status===0&&vt.ZP.success("\u4FDD\u5B58\u6210\u529F"),Vn(!1)}),mt=Tn=>{An(Tt({},nn.getFieldsValue())),"test_set_average"in Tn&&(Tn!=null&&Tn.test_set_average)&&Wt(ht),"test_set_score"in Tn&&(Tn!=null&&Tn.test_set_score)&&(nn.setFieldsValue({test_set_average:!0}),An(Yt(Tt({},nn.getFieldsValue()),{test_set_average:!0})),Wt(ht)),"choice_standard_scripts"in Tn&&Ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Me.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",Me.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>hn(void 0,null,function*(){const Xt=yield(0,Se.ZP)(`/api/shixuns/${ti==null?void 0:ti.id}/get_script_contents.json`,{method:"get",params:{id:ti==null?void 0:ti.id,script_id:Tn==null?void 0:Tn.choice_standard_scripts}});Xt!=null&&Xt.content&&(Ue.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:Me.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")}),nn.setFieldsValue({evaluate_script:Xt==null?void 0:Xt.content}),An(Yt(Tt({},nn.getFieldsValue()),{evaluate_script:Xt==null?void 0:Xt.content})))})})},Wt=Tn=>{let Xt=0;const fi=Math.floor((100-Xt)/Tn.length),Wn=fi+(100-Xt)%Tn.length;Tn=Tn.map((bn,Dn)=>Dn===Tn.length-1?Yt(Tt({},bn),{score:Wn}):Yt(Tt({},bn),{score:fi})),dn(Tn)},kt=()=>{const Tn=[...ht,{hidden:0,input:"",output:"",score:0}];nn.getFieldValue("test_set_average")?Wt(Tn):dn(Tn)},{test_set_score:yn,test_set_average:pn,choice_standard_scripts:mn,open_evaluate:Gn}=vn;return Me.createElement("section",{className:le.wrap},Me.createElement(Bt.default,{form:nn,disabled:!Gn,layout:"vertical",onValuesChange:mt,onFinish:He},Me.createElement(Bt.default.Item,{name:"open_evaluate",style:{marginTop:10},valuePropName:"checked"},Me.createElement(bt.default,{disabled:!1},"\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD")),Me.createElement("h4",{className:"font14"},"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),Me.createElement(Ct.Z,{title:!Gn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},Me.createElement(Bt.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"}]},Me.createElement(yt.Z,{size:"large",style:{width:400},min:3}))),Me.createElement("h4",{className:"font14 mb10"},"\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219"),Me.createElement(Ct.Z,{title:!Gn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},Me.createElement(Bt.default.Item,{name:"test_set_score"},Me.createElement(Zt.ZP.Group,null,Me.createElement(Ot.Z,{direction:"vertical"},Me.createElement(Zt.ZP,{value:!1},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",Me.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")),Me.createElement(Zt.ZP,{value:!0},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",Me.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")))))),Me.createElement(Bt.default.Item,{label:Me.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"}]},Me.createElement(Zt.ZP.Group,null,Me.createElement(Ot.Z,{direction:"vertical"},Me.createElement(Zt.ZP,{value:1},"\u901A\u8FC7\u6240\u6709\u4EE3\u7801\u5757\u8BC4\u6D4B",Me.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")),Me.createElement(Zt.ZP,{value:3},"\u901A\u8FC7\u6307\u5B9A\u4EE3\u7801\u5757\u8BC4\u6D4B",Me.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"))))),Me.createElement(Ut.Z,{align:"middle",justify:"space-between",className:"font14"},Me.createElement("div",{style:{fontWeight:500}},Me.createElement("span",{className:le.sub},"*"),"\u6D4B\u8BD5\u7528\u4F8B"),Me.createElement(Ct.Z,{title:!Gn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},Me.createElement(de.op,{style:{borderRadius:2},onClick:kt},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B"))),yn&&Me.createElement(Bt.default.Item,{name:"test_set_average"},Me.createElement(Zt.ZP.Group,null,Me.createElement(Zt.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),Me.createElement(Zt.ZP,{value:!1,style:{marginLeft:50}},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),Me.createElement(Ct.Z,{title:!Gn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},Me.createElement("div",null,ht.map((Tn,Xt)=>Me.createElement(Lt.default,{activeKey:Mi,key:Xt,onChange:()=>{pt(fi=>fi===Xt?null:Xt)}},Me.createElement(vi,{header:Me.createElement("div",{className:"font16"},Me.createElement("span",{className:"mr10"},"\u6D4B\u8BD5\u7528\u4F8B",Xt+1),vn.test_set_score&&Me.createElement("span",{style:{marginLeft:40}},Me.createElement(yt.Z,{style:{width:120},value:Tn.score,onClick:fi=>fi.stopPropagation(),min:0,max:100,precision:0,onBlur:fi=>{if(Number(fi)<0||Number(fi)>100){vt.ZP.info("\u6D4B\u8BD5\u7528\u4F8B\u7684\u6743\u91CD\u6BD4\u4F8B\u503C\u9650\u5236\u4E3A 0-100");const Wn=ht.map((Dn,Bi)=>Bi===Xt?Yt(Tt({},Dn),{score:100}):Dn),bn={test_set_average:!1};An(Tt(Tt({},vn),bn)),nn.setFieldsValue(bn),dn(Wn)}},disabled:pn,onChange:fi=>{const Wn=ht.map((Dn,Bi)=>Bi===Xt?Yt(Tt({},Dn),{score:fi?Number(fi):0}):Dn),bn={test_set_average:!1};An(Tt(Tt({},vn),bn)),nn.setFieldsValue(bn),dn(Wn)}}),Me.createElement("span",{className:"ml10 mr10"},"%")),Me.createElement("span",{className:"tr flex1",style:{float:"right"}},Xt!==0&&Me.createElement(Ct.Z,{placement:"bottom",title:"\u5220\u9664"},Me.createElement("span",{style:{color:"#c5c5c5"},className:"current iconfont icon-shanchu4",onClick:fi=>{fi.stopPropagation(),Ue.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 Wn=ht.filter((bn,Dn)=>Dn!==Xt);Wt(Wn)}})}})))),key:Xt},Me.createElement("div",null,vn.evaluate_method===3&&Me.createElement(Ut.Z,{align:"middle",className:"mb20"},Me.createElement("div",null,Me.createElement("span",{className:le.sub},"*"),Me.createElement("span",null,"\u6307\u5B9A\u4EE3\u7801\u5757"),Me.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"},Me.createElement("i",{style:{marginLeft:6,marginRight:20,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),Me.createElement(Te.default,{value:Tn.tags,size:"large",style:{width:450},onChange:fi=>{const Wn=ht.map((bn,Dn)=>Dn===Xt?Yt(Tt({},bn),{tags:fi}):bn);dn(Wn)}},Oe==null?void 0:Oe.map(fi=>Me.createElement(Te.default.Option,{value:fi==null?void 0:fi.tags,key:fi==null?void 0:fi.tags},fi==null?void 0:fi.tags)))),Me.createElement(Ut.Z,{align:"middle"},Me.createElement("div",null," ",Me.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),Me.createElement(ui,{bordered:!1,className:le.textarea,rows:5,placeholder:"\u9884\u671F\u8F93\u51FA",value:Tn.output,onChange:fi=>{const Wn=ht.map((bn,Dn)=>Dn===Xt?Yt(Tt({},bn),{output:fi.target.value}):bn);dn(Wn)}})),Me.createElement(Ut.Z,{className:"mt20",align:"middle"},Me.createElement("div",null,Me.createElement("span",null,"\u53EF\u89C1\u6027"),Me.createElement(Ct.Z,{title:Me.createElement("div",null,Me.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'),Me.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"),Me.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"))},Me.createElement("i",{style:{marginLeft:6,marginRight:13,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),Me.createElement("div",null,Me.createElement(bt.default,{className:"font14 ml5",checked:Tn.hidden===1,onChange:fi=>{const Wn=ht.map((bn,Dn)=>{if(Dn===Xt){let Bi={is_invisible:!1,actual_output_visible:!1};return fi.target.checked&&(Bi={is_invisible:!0,actual_output_visible:!0}),Yt(Tt(Tt({},bn),Bi),{hidden:fi.target.checked?1:0})}return bn});dn(Wn)}},"\u5168\u90E8\u9690\u85CF")),Me.createElement(bt.default,{checked:Tn.is_invisible,style:{margin:"0 60px"},onChange:fi=>{const Wn=ht.map((bn,Dn)=>{if(Dn===Xt){let Bi=0;return fi.target.checked&&bn.actual_output_visible&&(Bi=1),Yt(Tt({},bn),{hidden:Bi,is_invisible:fi.target.checked})}return bn});dn(Wn)}},"\u9690\u85CF\u9884\u671F\u8F93\u51FA"),Me.createElement(bt.default,{checked:Tn.actual_output_visible,onChange:fi=>{const Wn=ht.map((bn,Dn)=>{if(Dn===Xt){let Bi=0;return fi.target.checked&&bn.is_invisible&&(Bi=1),Yt(Tt({},bn),{hidden:Bi,actual_output_visible:fi.target.checked})}return bn});dn(Wn)}},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA")),Me.createElement("div",{className:"mt20"},Me.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),Me.createElement(bt.default,{checked:Tn.last_match_rule,onChange:fi=>{const Wn=ht.map((bn,Dn)=>Dn===Xt?Yt(Tt({},bn),{last_match_rule:fi.target.checked}):bn);dn(Wn)}},Me.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",Me.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")))))))))),Me.createElement("h4",{className:"font14 mt20 mb10"},Me.createElement("span",{className:le.sub},"*"),"\u8BC4\u6D4B\u811A\u672C"),Me.createElement(Ct.Z,{title:!Gn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},Me.createElement(Bt.default.Item,{name:"choice_standard_scripts",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"}]},Me.createElement(Te.default,{getPopupContainer:Tn=>Tn.parentNode,size:"large",style:{width:400},placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"},Pe.map((Tn,Xt)=>Me.createElement(Te.default.Option,{value:Tn.id,key:Xt},Tn.scptname))))),Me.createElement(Ct.Z,{title:!Gn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},Me.createElement(Bt.default.Item,{name:"evaluate_script"},Me.createElement(pe.ZP,{height:450,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light",options:{readOnly:!Gn}}))),(0,Ae.Ny)()&&Me.createElement(Ut.Z,{className:"mb20",align:"middle"},Me.createElement(Bt.default.Item,{name:"use_jupyter_result",className:"mt10",valuePropName:"checked",noStyle:!0},Me.createElement(te.Z,null)),Me.createElement("div",{className:"ml10"},"\u662F\u5426\u6CBF\u7528Jupyter\u8FD0\u884C\u7ED3\u679C"))),Me.createElement(ne.t,{okText:"\u4FDD\u5B58",hasOkBtn:Ke,loading:Si,onCancel:()=>et.history.push(`/shixuns/${ti==null?void 0:ti.id}/challenges`),onOk:()=>nn.submit(),className:ze==="jupyterLab"?le.btn:""}))}},46539:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return dt}});var ue=Ee(59301),et=Ee(43418),Lt=Ee(3113),Nt=Ee(8591),Bt=Ee(99313),vt=Ee(71418),Ue=Ee(10311),bt=Ee(5871),Ct={modal:"modal___NEEbt",con_warp:"con_warp___fZ8It",flex:"flex___Vqd1D",config_Warp:"config_Warp___m6wfT",config_btn:"config_btn___OL6qH",sceneList:"sceneList___SKegj",sceneItem:"sceneItem___RPw0S",sceneItemActive:"sceneItemActive___O_xTR"},yt=Ee(11724),Zt=Ee(62772),Ot=Ee(99064),Ut=Ee(59301),Te=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Se=(xt,ut,It)=>ut in xt?Te(xt,ut,{enumerable:!0,configurable:!0,writable:!0,value:It}):xt[ut]=It,Ae=(xt,ut)=>{for(var It in ut||(ut={}))le.call(ut,It)&&Se(xt,It,ut[It]);if(de)for(var It of de(ut))pe.call(ut,It)&&Se(xt,It,ut[It]);return xt},Me=(xt,ut)=>te(xt,ne(ut)),ke=(xt,ut,It)=>new Promise((Et,Tt)=>{var Yt=ui=>{try{vi(It.next(ui))}catch(Bn){Tt(Bn)}},hn=ui=>{try{vi(It.throw(ui))}catch(Bn){Tt(Bn)}},vi=ui=>ui.done?Et(ui.value):Promise.resolve(ui.value).then(Yt,hn);vi((It=It.apply(xt,ut)).next())}),dt=({visible:xt,onOk:ut,onCancel:It,info:Et})=>{const[Tt,Yt]=(0,ue.useState)("1"),[hn,vi]=(0,ue.useState)([{name:"gpu_limit",label:"GPU\u663E\u5361\u6570\u91CF",value:1,min:0,max:4,typeName:"\u4E2A"},{name:"gpu_memory_limit",label:"GPU\u663E\u5B58\u5927\u5C0F",value:1,min:0,max:64,typeName:"GB"}]),[ui,Bn]=(0,ue.useState)([]),[di,nt]=(0,ue.useState)(0),[ze,gn]=(0,ue.useState)(null),[Xn,ti]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{xt&&nn()},[xt]);const nn=()=>{Yt("1"),gn(null),nt(0),hn[0].value=(Et==null?void 0:Et.gpu_limit)||1,hn[1].value=(Et==null?void 0:Et.gpu_memory_limit)||16,vi([...hn])};(0,ue.useEffect)(()=>{var Oe,Ce;((Ce=(Oe=ui==null?void 0:ui[di])==null?void 0:Oe.content)==null?void 0:Ce.length)>0&&gn(Me(Ae({},ui[di].content[0]),{index:0}))},[Tt,di,ui]);const vn=()=>ke(void 0,null,function*(){yield(0,Ot.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(Oe=>{var Ce;if(Bn(Oe),(Oe==null?void 0:Oe.length)>0){let Pe=Me(Ae({},(Ce=Oe==null?void 0:Oe[0])==null?void 0:Ce.content[0]),{index:0});gn(Pe)}})}),An=Oe=>{Yt(Oe),Oe==="2"&&nt(0)},Si=(Oe,Ce)=>{vi(hn.map(Pe=>Pe.name===Oe?Ce(Pe):Pe))},Vn=(Oe,Ce)=>{isNaN(Oe)||Si(Ce,Pe=>Me(Ae({},Pe),{value:Oe}))},Mi=(Oe,Ce)=>{var Pe;if(console.log("decline",Oe.value),Oe.value=Number(Oe.value),Oe.value<=((Pe=Oe.min)!=null?Pe:-1/0))return;let Ie=Oe.value-.5<Oe.min?Oe.min:Oe.value-(Ce||.5);Si(Oe.name,Ke=>Me(Ae({},Ke),{value:Ie}))},pt=(Oe,Ce)=>{var Pe;if(Oe.value=Number(Oe.value),Oe.value>=((Pe=Oe.max)!=null?Pe:1/0))return;let Ie=Oe.value+.5>Oe.max?Oe.max:Oe.value+(Ce||.5);Si(Oe.name,Ke=>Me(Ae({},Ke),{value:Ie}))},ht=(Oe,Ce)=>{isNaN(Oe)||Si(Ce,Pe=>Me(Ae({},Pe),{value:Oe}))},dn=Oe=>{if(Oe==null||Number.isInteger(Oe))return Oe;const Ce=Oe%1;return Ce===.5?Oe:Math.floor(Oe)+(Ce<.5?.5:1)};return Ut.createElement(Ut.Fragment,null,Ut.createElement(et.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:xt,width:752,destroyOnClose:!0,centered:!0,onCancel:It,className:Ct.modal,footer:[Ut.createElement("div",{className:Ct.btn_warp,key:"1"},Ut.createElement(Lt.ZP,{onClick:It},"\u53D6\u6D88"),Ut.createElement(Lt.ZP,{type:"primary",onClick:()=>{let Oe=Ae({},Et);if(Tt=="1")Oe.gpu_limit=hn[0].value,Oe.gpu_memory_limit=hn[1].value;else if(Tt=="2"){if(!ze){Nt.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}Oe=Me(Ae({},Oe),{gpu_limit:ze.gpu_limit,gpu_memory_limit:ze.gpu_memory_limit})}ut(Oe)}},"\u4FDD\u5B58"))]},Ut.createElement(Bt.default,{activeKey:Tt,onChange:An},Ut.createElement(Bt.default.TabPane,{tab:"GPU\u914D\u7F6E",key:1},Ut.createElement(vt.Z,{spinning:Xn},hn==null?void 0:hn.map(Oe=>Ut.createElement("div",{className:Ct.con_warp,key:Oe==null?void 0:Oe.name},Ut.createElement("div",null,Oe==null?void 0:Oe.label),Ut.createElement("div",null,Ut.createElement(Ue.Z,{min:Oe==null?void 0:Oe.min,max:Oe==null?void 0:Oe.max,onChange:Ce=>Vn(Ce,Oe==null?void 0:Oe.name),value:Oe==null?void 0:Oe.value,step:Oe.name==="gpu_limit"?1:.5,style:{width:422,height:6,margin:"0 20px 0 12px"}})),Ut.createElement("div",{className:`${Ct.config_Warp} ${Ct.flex}`},Ut.createElement("div",{className:`${Ct.config_btn} ${Ct.flex}`,onClick:()=>Mi(Oe,Oe.name==="gpu_limit"?1:.5)},Ut.createElement(yt.Z,null)),Ut.createElement(bt.Z,{min:Oe==null?void 0:Oe.min,max:Oe==null?void 0:Oe.max,size:"large",step:Oe.name==="gpu_limit"?1:.5,controls:!1,style:{width:55},value:Oe==null?void 0:Oe.value,onChange:Ce=>{const Pe=dn(Ce);ht(Pe,Oe==null?void 0:Oe.name)}}),Ut.createElement("div",{className:`${Ct.config_btn} ${Ct.flex}`,onClick:()=>pt(Oe,Oe.name==="gpu_limit"?1:.5)},Ut.createElement(Zt.Z,null))),Ut.createElement("div",null,Oe==null?void 0:Oe.typeName))))))))}},14996:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Bt}});var ue=Ee(59301),et={label:"label___CZ1_z",left:"left___ZKFRV",right:"right___zVTRn",error:"error___oNJNo"},Lt=Ee(6848),Bt=({name:vt,tooltipTitle:Ue,children:bt,required:Ct,errorKey:yt,errorValue:Zt,errorName:Ot,errorStyle:Ut={},nameWidth:Te=112,align:te="center",contentStyle:ne={}})=>ue.createElement(ue.Fragment,null,ue.createElement("div",{className:et.label,style:{alignItems:te}},ue.createElement("div",{className:et.left,style:{width:Te}},Ct&&ue.createElement("span",null,"*"),ue.createElement("div",null,vt),!!Ue&&ue.createElement(Lt.Z,{title:Ue},ue.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),ue.createElement("div",{className:et.right,style:ne},bt,Ot&&Zt===yt&&ue.createElement("div",{className:et.error,style:Ut},Ot))))},48843:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return vt}});var ue=Ee(59301),et={mirrorModal:"mirrorModal___Pi3tF",right:"right___Hot5f",title:"title___jjMKh",content:"content___BmOkD",des:"des___oGTUM",modal:"modal___yy3VB"},Lt=Ee(43418),Nt=Ee(85149),vt=({title:Ue,children:bt,value:Ct})=>{const[yt,Zt]=(0,ue.useState)(!1);return ue.createElement(ue.Fragment,null,ue.createElement("span",{onClick:()=>Zt(!0)},bt),ue.createElement(Lt.default,{title:Ue,open:yt,width:1e3,destroyOnClose:!0,centered:!0,onCancel:()=>Zt(!1),className:et.modal,footer:null},typeof Ct=="string"&&ue.createElement(Nt.Z,{value:Ct||""}),Object.prototype.toString.call(Ct)==="[object Array]"&&ue.createElement(ue.Fragment,null,Ct==null?void 0:Ct.map((Ot,Ut)=>ue.createElement("div",{key:Ut},ue.createElement("b",null,Ot.name||Ot.type_name),ue.createElement(Nt.Z,{value:Ot.description||""}))))))}},43181:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Ce}});var ue=Ee(59301),et=Ee(43418),Lt=Ee(8591),Nt=Ee(43428),Bt=Ee(99313),vt=Ee(71418),Ue=Ee(6848),bt=Ee(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"},yt=Ee(99267),Zt=Ee(61485),Ot=Ee(13014),Ut=Ee(93314),Te=Ee(99064),te=Ee(76411),ne={lineChart:"lineChart___dCEZW"},de=Ee(61186),le=Ee.n(de),pe=Ee(59301),Ae=({dataInfo:Pe,indexKey:Ie,valueName:Ke,startAndEndTime:De,colors:tt=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"],imageTypeName:He})=>{let mt=null;(0,ue.useEffect)(()=>{Tn()},[Pe]),(0,ue.useEffect)(()=>{window.addEventListener("resize",Wt(()=>{mt&&mt.resize()},200))},[window.onresize]);const Wt=(Xt,fi,Wn=!1)=>{let bn,Dn;return(...Bi)=>{if(Wn){Xt.apply(Dn,Bi),Wn=!1;return}clearTimeout(bn),bn=setTimeout(()=>{Xt.apply(Dn,Bi)},fi)}},kt=Xt=>Xt?Xt.map(fi=>{const Wn=new Date(fi),bn=String(Wn.getMonth()+1).padStart(2,"0"),Dn=String(Wn.getDate()).padStart(2,"0"),Bi=String(Wn.getHours()).padStart(2,"0"),On=String(Wn.getMinutes()).padStart(2,"0");return`${bn}/${Dn} ${Bi}:${On}`}):[],yn=(Xt,fi)=>Xt.map(Wn=>{const bn=fi.timestamps.indexOf(Wn);return bn!==-1?fi.values[bn]:null});function pn(Xt){let fi=1/0;for(let bn=0;bn<Xt.length-1;bn++){let Dn=Xt[bn+1]-Xt[bn];Dn<fi&&(fi=Dn)}return{newArray:mn(Xt[0],Xt[Xt.length-1],fi),minInterval:fi}}const mn=(Xt,fi,Wn)=>{let bn=[];for(let Dn=Xt;Dn<=fi;Dn+=Wn)bn.push(Dn);return bn},Gn=()=>{var Xt;const fi=((Xt=Pe==null?void 0:Pe.x)==null?void 0:Xt.flat())||[];let Wn=[...new Set(fi)].sort((ur,lo)=>ur-lo),bn=pn(Wn),Dn=bn==null?void 0:bn.newArray,Bi=bn==null?void 0:bn.minInterval;Wn=[...new Set([...Wn,...Dn])].sort((ur,lo)=>ur-lo);let On=le()(De[0],"YYYY-MM-DD HH:mm").valueOf(),Jn=mn(On,Wn[0]-Bi,Bi),Ki=le()(De[1],"YYYY-MM-DD HH:mm").valueOf(),Pi=mn(Wn[Wn.length-1]+Bi,Ki,Bi);return Wn=[...Jn,...Wn,...Pi],[...new Set(Wn)].sort((ur,lo)=>ur-lo)},Tn=()=>{var Xt;mt=te.init(document.getElementById(`lineChart${Ie}`));let fi=Gn(),Wn=(Xt=Pe==null?void 0:Pe.y)==null?void 0:Xt.map((Dn,Bi)=>{var On;let Jn={timestamps:(On=Pe==null?void 0:Pe.x)==null?void 0:On[Bi],values:Dn};return Dn=yn(fi,Jn),{name:Ke[Bi],type:"line",itemStyle:{show:!1},lineStyle:{color:tt[Bi]},data:Dn}}),bn={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(Dn){var Bi;let On="";return Dn.forEach((Jn,Ki)=>{console.log("item",Jn),On+=`<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: ${tt[Jn==null?void 0:Jn.componentIndex]}; margin-right: 4px;"></div>
|
|
<span style="width: 144px; color: rgba(43,49,63,0.5); font-size: 12px;">${He[Jn==null?void 0:Jn.componentIndex]}</span>
|
|
</div>
|
|
<div style="color: #393971; font-size: 13px; font-weight: 600;">${Jn.value>0?Jn.value.toFixed(5):Jn.value==0?0:"--"} ${Ie==0?"Cores":"MiB"}</div>
|
|
</div>`}),`<div>
|
|
<div style="color: #333333; padding-top: 6px;">${(Bi=Dn[0])==null?void 0:Bi.name}</div>
|
|
${On}
|
|
</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:kt(fi)}],yAxis:[{type:"value",gridIndex:0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,color:"#9096A3",formatter:Ie==1?"{value} MiB":"{value} Cores"},splitLine:{show:!0,lineStyle:{color:"#EDEDED",type:"dashed"}}}],series:Wn};mt.setOption(bn)};return pe.createElement("div",{id:`lineChart${Ie}`,className:ne.lineChart})},Me=Ee(85057),ke={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"},st=Ee(57809),dt=Ee(5083),xt=Ee(88522);const ut=Pe=>{const Ie=new Date,De=(tt=>{const He=new Date(Ie);switch(tt){case"\u6700\u8FD130\u5206\u949F":He.setMinutes(Ie.getMinutes()-30);break;case"\u6700\u8FD13\u5C0F\u65F6":He.setHours(Ie.getHours()-3);break;case"\u6700\u8FD124\u5C0F\u65F6":He.setDate(Ie.getDate()-1);break;case"\u6700\u8FD17\u5929":He.setDate(Ie.getDate()-7);break;case"\u6700\u8FD115\u5929":He.setDate(Ie.getDate()-15);break;default:return null}return He})(Pe);return De?{startTime:De,endTime:Ie}:null},It=(Pe,Ie,Ke)=>{if(!Pe)return!1;const De=le()(),[tt,He]=Ie;if(Pe.isAfter(De))return!0;if(tt){const mt=tt.clone().add(Ke,"days");if(He&&Pe.isAfter(mt))return!0}if(He){const mt=He.clone().subtract(Ke,"days");return Pe.isBefore(mt)||Pe.isAfter(De)}return!1},Et=Pe=>Pe<=5?"30s":Pe<=15?"1m":Pe<=30?"2m":Pe<=60?"5m":Pe<=180?"10m":Pe<=360?"30m":Pe<=720?"1h":Pe<=1440?"2h":Pe<=2880?"4h":Pe<=4320?"8h":Pe<=10080||Pe<=14400?"12h":Pe<=21600?"1d":"\u6CA1\u6709\u5339\u914D\u7684\u65F6\u95F4\u95F4\u9694",Tt=Pe=>{const[Ie,Ke]=Pe,De=moment.isMoment(Ie)?Ie:moment(Ie),tt=moment.isMoment(Ke)?Ke:moment(Ke);if(!De.isValid()||!tt.isValid())throw new Error("Invalid date provided");const mt=moment.duration(tt.diff(De)).asMinutes();return Et(mt)},Yt=(Pe,Ie,Ke=20)=>{const De=new Date(Pe).getTime(),tt=new Date(Ie).getTime(),He=Ke*1e3,mt=[];let Wt=De;for(;Wt<=tt;)mt.push(Wt),Wt+=He;return mt};var hn=Ee(89392),vi=Ee(8797),ui=Ee(4901),Bn=Ee(59301),di=(Pe,Ie,Ke)=>new Promise((De,tt)=>{var He=kt=>{try{Wt(Ke.next(kt))}catch(yn){tt(yn)}},mt=kt=>{try{Wt(Ke.throw(kt))}catch(yn){tt(yn)}},Wt=kt=>kt.done?De(kt.value):Promise.resolve(kt.value).then(He,mt);Wt((Ke=Ke.apply(Pe,Ie)).next())});const nt=st.default.Option,{RangePicker:ze}=dt.default;var Xn=({identifier:Pe,data:Ie,isFirst:Ke,setIsFirst:De,info:tt})=>{var He;const[mt,Wt]=(0,ue.useState)([]),[kt,yn]=(0,ue.useState)([]),[pn,mn]=(0,ue.useState)(null),[Gn,Tn]=(0,ue.useState)(""),[Xt,fi]=(0,ue.useState)([null,null]),[Wn,bn]=(0,ue.useState)([]),[Dn,Bi]=(0,ue.useState)(!1),[On,Jn]=(0,ue.useState)([]),[Ki,Pi]=(0,ue.useState)(!1),[ur,lo]=(0,ue.useState)(!1),[jo,Oo]=(0,ue.useState)(""),[Hr,da]=(0,ue.useState)(1),zo=["\u6700\u8FD130\u5206\u949F","\u6700\u8FD13\u5C0F\u65F6","\u6700\u8FD124\u5C0F\u65F6","\u6700\u8FD17\u5929","\u6700\u8FD115\u5929"],Co=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"];(0,ue.useEffect)(()=>{var pi,qn,nr,en;if(Ie&&Ke){Vi(),Wt(Ie==null?void 0:Ie.recent_users),yn(Ie==null?void 0:Ie.managers);const _t=(tt==null?void 0:tt.type)==="\u6311\u6218\u9875\u9762";((pi=Ie==null?void 0:Ie.managers)==null?void 0:pi.length)>0?mn(_t?tt==null?void 0:tt.myshixun_id:(qn=Ie==null?void 0:Ie.managers[0])==null?void 0:qn.id):((nr=Ie==null?void 0:Ie.recent_users)==null?void 0:nr.length)>0&&mn(_t?tt==null?void 0:tt.myshixun_id:(en=Ie==null?void 0:Ie.recent_users[0])==null?void 0:en.id),Tn("\u6700\u8FD130\u5206\u949F"),De(!1)}},[Ie]),(0,ue.useEffect)(()=>{if(Gn){let pi=ut(Gn);fi([le()(pi==null?void 0:pi.startTime),le()(pi==null?void 0:pi.endTime)])}},[Gn]),(0,ue.useEffect)(()=>{pn&&(Xt!=null&&Xt[0])&&(Xt!=null&&Xt[1])&&xo()},[pn,Xt]);const xo=()=>di(void 0,null,function*(){var pi;Bi(!0);let qn={startTimeString:Xt[0]?Xt[0].format("YYYY-MM-DD HH:mm"):null,endTimeString:Xt[1]?Xt[1].format("YYYY-MM-DD HH:mm"):null,samplingInterval:"20s",isSortBoolean:!1,id:pn};const nr=yield(0,Te.ZP)(`/api/shixuns/${Pe}/cpu_rank_data.json`,{method:"get",params:qn});(nr==null?void 0:nr.status)==0&&(Jn((pi=nr==null?void 0:nr.data)==null?void 0:pi.statisticsList),da(Hr+1)),Bi(!1)}),Nr=(0,ue.useRef)((0,hn.throttle)(pi=>Be(pi),1200,{leading:!0,trailing:!0})).current,Be=pi=>di(void 0,null,function*(){if(pi=="")return;const qn=yield(0,Te.ZP)(`/api/shixuns/${Pe}/cpu_search_data`,{method:"get",params:{search:pi}});(qn==null?void 0:qn.status)==0&&bn(qn==null?void 0:qn.data)}),ya=(pi,qn)=>{pi==="CPU"?(Ki?(0,ui.BU)():(0,ui.Dj)(document.getElementById(`tj${qn}`)),Pi(!Ki)):(ur?(0,ui.BU)():(0,ui.Dj)(document.getElementById(`tj${qn}`)),lo(!ur))},to=(pi,qn,nr)=>{const en=qn==="CPU"?"cpuUsageChart":"memoryUsageChart";let _t=pi.map(Li=>{var yr,Oi,Zn,ki;const zr=(yr=Li.promQueryResult)==null?void 0:yr[en],br=`${Li.envId}-${Li.myPracticalTrainingId}_${qn}`,Br=((ki=(Zn=(Oi=zr==null?void 0:zr.results[br])==null?void 0:Oi.frames[0])==null?void 0:Zn.data)==null?void 0:ki.values)||[];return Br.length>0?Br[nr]:[]});return _t.some(Li=>Array.isArray(Li)&&Li.length>0)?_t:[]},jn=pi=>{mn(pi),Vi()},Vi=()=>{bn([]),Oo("")},Wi=pi=>{let qn=!1;for(let nr=0;nr<(On==null?void 0:On.length);nr++){let en=to(On,pi,1)[nr];if(en&&(en==null?void 0:en.length)>0){qn=!0;break}}return(On==null?void 0:On.length)>0&&qn};return Bn.createElement(Bn.Fragment,null,Bn.createElement("div",{className:`${ke.flex_warp}`},Bn.createElement(xt.Z,{allowClear:!0,showSearch:!0,value:jo,style:{width:280},onSearch:Nr,placeholder:"\u641C\u7D22\u59D3\u540D/\u624B\u673A\u53F7/\u90AE\u7BB1",onChange:(pi,qn)=>{Oo(pi),qn!=null&&qn.key&&mn(Number(qn==null?void 0:qn.key))},onClear:Vi,size:"large"},Wn==null?void 0:Wn.map((pi,qn)=>Bn.createElement(nt,{key:pi.id,value:pi.name},pi.name.length>4?`${pi.name.slice(0,4)}...`:pi.name,`( ${pi.phone?pi.phone:""} ${pi.mail?` - ${pi.mail}`:""})`))),Bn.createElement("div",null,Bn.createElement(st.default,{style:{width:130,marginRight:20},placeholder:"\u8BF7\u9009\u62E9",size:"large",value:Gn,onChange:pi=>{Tn(pi)}},zo.map((pi,qn)=>Bn.createElement(st.default.Option,{key:qn,value:pi},pi))),Bn.createElement(ze,{style:{width:320},showTime:!0,size:"large",allowClear:!1,value:Xt,disabledDate:pi=>It(pi,Xt,15),format:"YYYY-MM-DD HH:mm",onChange:pi=>{fi(pi),Tn(void 0)}}))),Bn.createElement(Me.qp,{title:"\u5408\u4F5C\u6210\u5458",style:{marginTop:"24px"},value:pn,onChange:pi=>jn(pi),dataSource:kt,titleWidth:60,key:1}),Bn.createElement(Me.qp,{title:"\u6700\u8FD1\u5B9E\u9A8C",className:(mt==null?void 0:mt.length)==0?"mt0":"",style:{marginBottom:(mt==null?void 0:mt.length)>0?"0px":"17px"},value:pn,onChange:pi=>jn(pi),dataSource:mt,titleWidth:60,key:2}),(He=[{name:"CPU",type:"CPU"},{name:"\u5185\u5B58",type:"MEMORY"}])==null?void 0:He.map((pi,qn)=>Bn.createElement("div",{className:`${ke.chart_content}`,key:qn,id:`tj${qn}`},Bn.createElement("div",{className:ke.chart_title},Bn.createElement("span",null,pi==null?void 0:pi.name,"\u4F7F\u7528\u91CF"),Bn.createElement("i",{className:`${ke.fullscreen}
|
|
iconfont
|
|
${(pi==null?void 0:pi.type)=="CPU"?Ki?"icon-tuichuquanping2":"icon-quanping2":ur?"icon-tuichuquanping2":"icon-quanping2"}
|
|
`,onClick:()=>ya(pi.type,qn)})),Bn.createElement(vt.Z,{spinning:Dn},Wi(pi.type)?Bn.createElement("div",{style:{marginTop:(pi==null?void 0:pi.type)=="CPU"?Ki?"7%":"":ur?"7%":""}},Bn.createElement(Ae,{dataInfo:{y:to(On,pi==null?void 0:pi.type,1)||[],x:to(On,pi==null?void 0:pi.type,0)||[]},startAndEndTime:Xt,colors:Co,indexKey:qn,valueName:On.map(nr=>nr.name),imageTypeName:On.map(nr=>{var en;return(en=nr==null?void 0:nr.promQueryResult)==null?void 0:en.imageTypeName}),key:`${qn}-${Hr}`}),Bn.createElement("div",{className:ke.info_con},Bn.createElement("div",{className:ke.info_top},Bn.createElement("div",null,"\u6700\u5927\u503C"),Bn.createElement("div",null,"\u6700\u5C0F\u503C"),Bn.createElement("div",null,"\u5E73\u5747\u503C")),On.map((nr,en)=>{var _t;let zt=nr==null?void 0:nr.promQueryResult;return Bn.createElement("div",{className:ke.listdata,key:en},Bn.createElement("div",{className:ke.block,style:{backgroundColor:Co[en],marginRight:10}}),Bn.createElement("div",{className:ke.typename},(_t=nr==null?void 0:nr.promQueryResult)==null?void 0:_t.imageTypeName),Bn.createElement("div",{className:ke.val},(pi==null?void 0:pi.type)=="CPU"?`${zt==null?void 0:zt.cpuMaxDoubleValue}Cores`:`${zt==null?void 0:zt.memoryDoubleMaxValue}MiB`),Bn.createElement("div",{className:ke.val},(pi==null?void 0:pi.type)=="CPU"?`${zt==null?void 0:zt.cpuMinDoubleValue}Cores`:`${zt==null?void 0:zt.memoryDoubleMinValue}MiB`),Bn.createElement("div",{className:ke.val},(pi==null?void 0:pi.type)=="CPU"?`${zt==null?void 0:zt.cpuAvgDoubleValue}Cores`:`${zt==null?void 0:zt.memoryDoubleAvgValue}MiB`))}))):Bn.createElement(vi.Z,null)))))},ti=Ee(59301),nn=(Pe,Ie,Ke)=>new Promise((De,tt)=>{var He=kt=>{try{Wt(Ke.next(kt))}catch(yn){tt(yn)}},mt=kt=>{try{Wt(Ke.throw(kt))}catch(yn){tt(yn)}},Wt=kt=>kt.done?De(kt.value):Promise.resolve(kt.value).then(He,mt);Wt((Ke=Ke.apply(Pe,Ie)).next())}),An=({getApi:Pe,identifier:Ie,visible:Ke,info:De})=>{const[tt,He]=(0,ue.useState)({}),[mt,Wt]=(0,ue.useState)(!0);(0,ue.useEffect)(()=>{Wt(!0)},[Ke]),(0,ue.useEffect)(()=>{Pe&&mt&&kt()},[Pe]);const kt=()=>nn(void 0,null,function*(){const yn=yield(0,Te.ZP)(`/api/shixuns/${Ie}/cpu_basic_data.json`,{method:"get"});(yn==null?void 0:yn.status)==0&&He(yn)});return ti.createElement("div",null,ti.createElement(Xn,{isFirst:mt,setIsFirst:yn=>Wt(yn),identifier:Ie,data:tt,info:De}))},Si=Ee(955),Vn=Ee(89070),Mi=Ee(49692),pt=Ee(46474),ht=Ee(59301),dn=(Pe,Ie,Ke)=>new Promise((De,tt)=>{var He=kt=>{try{Wt(Ke.next(kt))}catch(yn){tt(yn)}},mt=kt=>{try{Wt(Ke.throw(kt))}catch(yn){tt(yn)}},Wt=kt=>kt.done?De(kt.value):Promise.resolve(kt.value).then(He,mt);Wt((Ke=Ke.apply(Pe,Ie)).next())});const Oe=({globalSetting:Pe,dispatch:Ie,practiceSetting:Ke,shixunsDetail:De,visible:tt,onCancel:He,info:mt,identifier:Wt,isJupyter:kt,onOk:yn})=>{const[pn,mn]=(0,ue.useState)("1"),[Gn,Tn]=(0,ue.useState)("\u63A8\u8350\u914D\u7F6E"),[Xt,fi]=(0,ue.useState)([]),[Wn,bn]=(0,ue.useState)(!1),[Dn,Bi]=(0,ue.useState)(!1),[On,Jn]=(0,ue.useState)({}),[Ki,Pi]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{tt&&(Bi(!1),mn("1"),Tn("\u63A8\u8350\u914D\u7F6E"),(mt==null?void 0:mt.type)=="\u6311\u6218\u9875\u9762"?fi(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E"]):fi(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E","\u589E\u5F3A\u914D\u7F6E"]),Jn({}),ur(),(mt==null?void 0:mt.type)=="\u6311\u6218\u9875\u9762"&&Ie({type:"shixunsDetail/getShixunsDetail",payload:{id:Wt}}))},[tt]);const ur=()=>dn(void 0,null,function*(){Pi(!0);const xo=yield(0,Mi.HS)(Wt);[0,-10].includes(xo.status)&&(Jn(xo),Pi(!1))}),lo=xo=>{xo=="2"?Bi(!0):Bi(!1),mn(xo)},jo=()=>{et.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:Ot,alt:"\u4E8C\u7EF4\u7801",width:182,height:182,style:{pointerEvents:"none",userSelect:"none"}})),okText:"\u6211\u77E5\u9053\u4E86"})},Oo=()=>dn(void 0,null,function*(){if((0,pt.gy)(Ie,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")||Gn=="\u5F53\u524D\u914D\u7F6E")return;bn(!0),(yield(0,Te.ZP)(`/api/shixuns/${Wt}/apply_recommend_config.json`,{method:"put",body:{data:Gn=="\u63A8\u8350\u914D\u7F6E"?On==null?void 0:On.recommend:On==null?void 0:On.high}})).status==0&&(Lt.ZP.success("\u5E94\u7528\u6210\u529F"),bn(!1),He(),yn())}),Hr=()=>dn(void 0,null,function*(){var xo,Nr;if(yield da(),(0,Si.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),(xo=De.detail)!=null&&xo.is_jupyter||(Nr=De.detail)!=null&&Nr.is_jupyter_lab){Ie({type:"shixunsDetail/execJupyter",payload:{id:Wt}}).then(ya=>{var to;ya!=null&&ya.identifier&&((to=Vn.history)==null||to.push(`/tasks/${ya.identifier}/jupyter`))});return}Ie({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const Be=kt?yield(0,Mi.BK)({id:Wt}):yield(0,Mi.Ir)({id:Wt});if(Ie({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),Be!=null&&Be.game_identifier||Be!=null&&Be.identifier){(0,Si.xg)(kt?`/tasks/${Be==null?void 0:Be.identifier}/jupyter`:`/tasks/${Be.game_identifier}`);return}(Be==null?void 0:Be.status)===-3?(0,Si.eF)():(Be==null?void 0:Be.status)===2?zo(Be==null?void 0:Be.message):(Be==null?void 0:Be.status)===3&&Co(Be==null?void 0:Be.message)}),da=()=>new Promise((xo,Nr)=>{var Be;(Be=Ke==null?void 0:Ke.sideBar)!=null&&Be.confirmLeave?et.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:()=>{Ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),xo()},onCancel:()=>{Nr()}}):xo()}),zo=xo=>{xo=xo!=null&&xo.includes(".json")?xo:`${xo}.json`,et.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:()=>dn(void 0,null,function*(){const Nr=yield(0,Te.ZP)("/api"+xo,{method:"get"});if(!Nr)return;Lt.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const Be=yield(0,Mi.Ir)({id:Nr.shixun_identifier});if(Be!=null&&Be.game_identifier){(0,Si.xg)(`/tasks/${Be.game_identifier}`);return}(Be==null?void 0:Be.status)===2?zo(Be==null?void 0:Be.message):(Be==null?void 0:Be.status)===3&&Co(Be==null?void 0:Be.message)})})},Co=xo=>{et.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",xo,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})};return ht.createElement(ht.Fragment,null,ht.createElement(Nt.Z,{title:null,placement:"right",open:tt,width:1e3,onClose:He,closeIcon:null,footer:null},ht.createElement("div",{className:Ct.header_body},ht.createElement("span",null,"\u914D\u7F6E\u4E0E\u76D1\u63A7"),ht.createElement(yt.Z,{className:Ct.close,onClick:He})),ht.createElement(Bt.default,{activeKey:pn,onChange:lo},ht.createElement(Bt.default.TabPane,{tab:"\u63A8\u8350\u914D\u7F6E",key:1},ht.createElement(vt.Z,{spinning:Ki,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"))},(On==null?void 0:On.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},Xt.map((xo,Nr)=>ht.createElement("div",{className:`${Ct.recommend_config_item} ${xo==Gn?Ct.recommend_config_active_item:""}`,key:xo,onClick:()=>Tn(xo)},ht.createElement("div",{className:Ct.item_title},ht.createElement("div",null,xo),Nr==1?ht.createElement("div",{className:Ct.recommend_text},"\u63A8\u8350"):ht.createElement(ht.Fragment,null)),(xo=="\u5F53\u524D\u914D\u7F6E"&&(On==null?void 0:On.current)||xo=="\u63A8\u8350\u914D\u7F6E"&&(On==null?void 0:On.recommend)||xo=="\u589E\u5F3A\u914D\u7F6E"&&(On==null?void 0:On.high)||[]).map((Be,ya)=>ht.createElement("div",{className:Ct.item_content,key:ya},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(Ue.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(Zt.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(bt.ZP,{type:"primary",shape:"round",disabled:Gn=="\u5F53\u524D\u914D\u7F6E",onClick:Oo,loading:Wn},"\u4E00\u952E\u5E94\u7528"))):Ki?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~"),(mt==null?void 0:mt.type)!="\u6311\u6218\u9875\u9762"&&ht.createElement("div",{className:Ct.application,onClick:()=>{Hr(),He()}},"\u6A21\u62DF\u5B9E\u6218")))),ht.createElement(Bt.default.TabPane,{tab:"\u8D44\u6E90\u76D1\u63A7",key:2},ht.createElement(An,{getApi:Dn,identifier:Wt,visible:tt,info:mt})))))};var Ce=(0,Vn.connect)(({globalSetting:Pe,practiceSetting:Ie,shixunsDetail:Ke})=>({globalSetting:Pe,practiceSetting:Ie,shixunsDetail:Ke}))(Oe)},1535:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return ut}});var ue=Ee(59301),et=Ee(43418),Lt=Ee(3113),Nt=Ee(8591),Bt=Ee(99313),vt=Ee(71418),Ue=Ee(10311),bt=Ee(5871),Ct=Ee(1710),yt={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"},Zt=Ee(11724),Ot=Ee(62772),Ut=Ee(99064),Te=Ee(8797),te=Ee(59301),ne=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Me=(It,Et,Tt)=>Et in It?ne(It,Et,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):It[Et]=Tt,ke=(It,Et)=>{for(var Tt in Et||(Et={}))Se.call(Et,Tt)&&Me(It,Tt,Et[Tt]);if(pe)for(var Tt of pe(Et))Ae.call(Et,Tt)&&Me(It,Tt,Et[Tt]);return It},st=(It,Et)=>de(It,le(Et)),dt=(It,Et,Tt)=>new Promise((Yt,hn)=>{var vi=di=>{try{Bn(Tt.next(di))}catch(nt){hn(nt)}},ui=di=>{try{Bn(Tt.throw(di))}catch(nt){hn(nt)}},Bn=di=>di.done?Yt(di.value):Promise.resolve(di.value).then(vi,ui);Bn((Tt=Tt.apply(It,Et)).next())}),ut=({visible:It,onOk:Et,onCancel:Tt,info:Yt})=>{var hn,vi,ui,Bn,di;const[nt,ze]=(0,ue.useState)("1"),[gn,Xn]=(0,ue.useState)([]),[ti,nn]=(0,ue.useState)([]),[vn,An]=(0,ue.useState)(0),[Si,Vn]=(0,ue.useState)(null),[Mi,pt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{It&&(ht(),dn(),Oe())},[It]);const ht=()=>{ze("1"),Xn([]),Vn(null),An(0)};(0,ue.useEffect)(()=>{var mt,Wt;((Wt=(mt=ti==null?void 0:ti[vn])==null?void 0:mt.content)==null?void 0:Wt.length)>0&&Vn(st(ke({},ti[vn].content[0]),{index:0}))},[nt,vn,ti]);const dn=()=>dt(void 0,null,function*(){pt(!0),yield(0,Ut.ZP)("/api/home/cpu_memory_limit.json",{method:"GET"}).then(mt=>{let{max_cpu:Wt,max_memory:kt,min_cpu:yn,min_memory:pn}=mt,{cpu:mn,memory:Gn}=Yt;Xn([{name:"CPU",value:mn,min:yn,max:Wt,typeName:"\u6838"},{name:"\u5185\u5B58",value:Gn,min:pn,max:kt,typeName:"GB"}])}),pt(!1)}),Oe=()=>dt(void 0,null,function*(){yield(0,Ut.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(mt=>{var Wt;if(nn(mt),(mt==null?void 0:mt.length)>0){let kt=st(ke({},(Wt=mt==null?void 0:mt[0])==null?void 0:Wt.content[0]),{index:0});Vn(kt)}})}),Ce=mt=>{ze(mt),mt==="2"&&An(0)},Pe=(mt,Wt)=>{Xn(gn.map(kt=>kt.name===mt?Wt(kt):kt))},Ie=(mt,Wt)=>{isNaN(mt)||Pe(Wt,kt=>st(ke({},kt),{value:mt}))},Ke=mt=>{var Wt;if(console.log("decline",mt.value),mt.value=Number(mt.value),mt.value<=((Wt=mt.min)!=null?Wt:-1/0))return;let kt=mt.value-.5<mt.min?mt.min:mt.value-.5;Pe(mt.name,yn=>st(ke({},yn),{value:kt}))},De=mt=>{var Wt;if(mt.value=Number(mt.value),mt.value>=((Wt=mt.max)!=null?Wt:1/0))return;let kt=mt.value+.5>mt.max?mt.max:mt.value+.5;Pe(mt.name,yn=>st(ke({},yn),{value:kt}))},tt=(mt,Wt)=>{isNaN(mt)||Pe(Wt,kt=>st(ke({},kt),{value:mt}))},He=mt=>{if(mt==null||Number.isInteger(mt))return mt;const Wt=mt%1;return Wt===.5?mt:Math.floor(mt)+(Wt<.5?.5:1)};return te.createElement(te.Fragment,null,te.createElement(et.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:It,width:752,destroyOnClose:!0,centered:!0,onCancel:Tt,className:yt.modal,footer:[te.createElement("div",{className:yt.btn_warp,key:"1"},te.createElement(Lt.ZP,{onClick:Tt},"\u53D6\u6D88"),te.createElement(Lt.ZP,{type:"primary",onClick:()=>{let mt=ke({},Yt);if(nt=="1")mt.cpu=gn[0].value,mt.memory=gn[1].value;else if(nt=="2"){if(!Si){Nt.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}mt=st(ke({},mt),{cpu:Si.cpu,memory:Si.memory})}Et(mt)}},"\u4FDD\u5B58"))]},te.createElement(Bt.default,{activeKey:nt,onChange:Ce},te.createElement(Bt.default.TabPane,{tab:"\u81EA\u5B9A\u4E49\u914D\u7F6E",key:1},te.createElement(vt.Z,{spinning:Mi},gn==null?void 0:gn.map(mt=>te.createElement("div",{className:yt.con_warp,key:mt==null?void 0:mt.name},te.createElement("div",null,mt==null?void 0:mt.name),te.createElement("div",null,te.createElement(Ue.Z,{min:mt==null?void 0:mt.min,max:mt==null?void 0:mt.max,onChange:Wt=>Ie(Wt,mt==null?void 0:mt.name),value:mt==null?void 0:mt.value,step:.5,style:{width:482,height:6,margin:"0 20px 0 12px"}})),te.createElement("div",{className:`${yt.config_Warp} ${yt.flex}`},te.createElement("div",{className:`${yt.config_btn} ${yt.flex}`,onClick:()=>Ke(mt)},te.createElement(Zt.Z,null)),te.createElement(bt.Z,{min:mt==null?void 0:mt.min,max:mt==null?void 0:mt.max,size:"large",step:"0.1",controls:!1,style:{width:50},value:mt==null?void 0:mt.value,onChange:Wt=>{const kt=He(Wt);tt(kt,mt==null?void 0:mt.name)}}),te.createElement("div",{className:`${yt.config_btn} ${yt.flex}`,onClick:()=>De(mt)},te.createElement(Ot.Z,null))),te.createElement("div",null,mt==null?void 0:mt.typeName))))),(ti==null?void 0:ti.length)>0&&te.createElement(Bt.default.TabPane,{tab:"\u6309\u573A\u666F\u9009\u62E9",key:2},te.createElement("div",{className:yt.sceneList},ti==null?void 0:ti.map((mt,Wt)=>te.createElement("div",{className:`${yt.sceneItem} ${vn==Wt&&yt.sceneItemActive}`,key:mt==null?void 0:mt.id,onClick:()=>{An(Wt)}},mt==null?void 0:mt.name))),((vi=(hn=ti==null?void 0:ti[vn])==null?void 0:hn.content)==null?void 0:vi.length)>0?te.createElement(Ct.default,{rowSelection:{type:"radio",selectedRowKeys:[Si==null?void 0:Si.index],onChange:(mt,Wt)=>{Vn(Wt[0])}},columns:[{title:"CPU",dataIndex:"cpu",align:"center",render:(mt,Wt)=>te.createElement("div",null,mt,"\u6838")},{title:"\u5185\u5B58",dataIndex:"memory",align:"center",render:(mt,Wt)=>te.createElement("div",null,mt,"GB")}],dataSource:(ui=ti==null?void 0:ti[vn])==null?void 0:ui.content.map((mt,Wt)=>st(ke({},mt),{index:Wt})),rowKey:"index",pagination:!1,scroll:((di=(Bn=ti==null?void 0:ti[vn])==null?void 0:Bn.content)==null?void 0:di.length)>3?{y:148}:{}}):te.createElement(Te.Z,null)))))}},44373:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return xt}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(43418),Nt=Ee(8591),Bt=Ee(3113),vt=Ee(24905),Ue=Ee(5112),bt=Ee(88522),Ct=Ee(49127),yt=Ee(5083),Zt=Ee(5871),Ot=Ee(10527),Ut=Ee(9165),Te=Ee(46474),te=Ee(61186),ne=Ee.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,Se=Object.prototype.propertyIsEnumerable,Ae=(ut,It)=>{var Et={};for(var Tt in ut)pe.call(ut,Tt)&&It.indexOf(Tt)<0&&(Et[Tt]=ut[Tt]);if(ut!=null&&le)for(var Tt of le(ut))It.indexOf(Tt)<0&&Se.call(ut,Tt)&&(Et[Tt]=ut[Tt]);return Et},Me=(ut,It,Et)=>new Promise((Tt,Yt)=>{var hn=Bn=>{try{ui(Et.next(Bn))}catch(di){Yt(di)}},vi=Bn=>{try{ui(Et.throw(Bn))}catch(di){Yt(di)}},ui=Bn=>Bn.done?Tt(Bn.value):Promise.resolve(Bn.value).then(hn,vi);ui((Et=Et.apply(ut,It)).next())});const ke=ut=>{if(!ut)return ut;const It=ut.split(":");if(It[1]=="00"||It[1]=="30")return ut;const Et=parseInt(It[1]);if(Et<30||Et==60)return[It[0],"30"].join(":");if(Et<60){const Tt=[It[0],"00"].join(":"),Yt="YYYY-MM-DD HH:mm",hn=ne()(Tt,Yt);return hn.add(1,"hours"),hn.format(Yt)}return ut},st="YYYY-MM-DD HH:mm",dt=ut=>{var It=ut,{shixunsDetail:Et,globalSetting:Tt,loading:Yt,user:hn,dispatch:vi}=It,ui=Ae(It,["shixunsDetail","globalSetting","loading","user","dispatch"]),Bn,di,nt,ze,gn,Xn,ti,nn,vn;const An=(0,ue.useRef)(),[Si,Vn]=(0,ue.useState)(),[Mi,pt]=(0,ue.useState)(),[ht,dn]=(0,ue.useState)([]),[Oe,Ce]=(0,ue.useState)([]),[Pe,Ie]=(0,ue.useState)(""),[Ke,De]=(0,ue.useState)(),[tt,He]=(0,ue.useState)(),[mt,Wt]=(0,ue.useState)(),kt=(di=(Bn=hn.userInfo)==null?void 0:Bn.shixun)==null?void 0:di.editable;(0,ue.useEffect)(()=>{var Xt,fi;An.current=(fi=(Xt=location.pathname)==null?void 0:Xt.split("/"))==null?void 0:fi[2],yn()},[]),(0,ue.useEffect)(()=>{var Xt,fi,Wn,bn,Dn,Bi,On,Jn,Ki,Pi,ur,lo;Et.setting&&(Vn((fi=(Xt=Et.setting)==null?void 0:Xt.shixun)==null?void 0:fi.can_copy),pt((bn=(Wn=Et.setting)==null?void 0:Wn.shixun)==null?void 0:bn.use_scope),De(!!((Bi=(Dn=Et.setting)==null?void 0:Dn.shixun)!=null&&Bi.opening_time)),He((Jn=(On=Et.setting)==null?void 0:On.shixun)==null?void 0:Jn.opening_time),dn((Pi=(Ki=Et.setting)==null?void 0:Ki.shixun)==null?void 0:Pi.scope_partment),Wt((lo=(ur=Et.setting)==null?void 0:ur.shixun)==null?void 0:lo.git_size))},[Et.setting]);const yn=Xt=>Me(void 0,null,function*(){const fi=yield vi({type:"shixunsDetail/getDepartments",payload:{q:Xt}});fi&&Ce(fi.shools_name||[])}),pn=()=>Me(void 0,null,function*(){var Xt,fi,Wn,bn,Dn,Bi;const On=(yield vi({type:"shixunsDetail/getShixunQuote",payload:{id:An.current}}))||{};Lt.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:ue.createElement("div",{className:`tc font14 ${de.modal}`},!!((Xt=On.subjects)!=null&&Xt.length)&&ue.createElement(ue.Fragment,null,ue.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230 ",(Wn=(fi=On.subjects)==null?void 0:fi.splice(0,2))==null?void 0:Wn.map(Jn=>`\u300A${Jn}\u300B`),"\u7B49",ue.createElement("span",{className:de.colorOrange},On==null?void 0:On.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),ue.createElement("br",null)),!!((bn=On.courses)!=null&&bn.length)&&ue.createElement(ue.Fragment,null,ue.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(Bi=(Dn=On.courses)==null?void 0:Dn.splice(0,2))==null?void 0:Bi.map(Jn=>`\u300A${Jn}\u300B`),"\u7B49",ue.createElement("span",{className:de.colorOrange},On==null?void 0:On.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),ue.createElement("br",null)),ue.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:()=>Me(void 0,null,function*(){(yield vi({type:"shixunsDetail/deleteShixun",payload:{id:An.current}})).status===1&&(Nt.ZP.success("\u64CD\u4F5C\u6210\u529F"),et.history.push("/shixuns"))})})}),mn=()=>{(0,Te.gy)(vi,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664")},Gn=Xt=>{if(ht.includes(Xt)){Nt.ZP.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Ie(null),dn([...ht,Xt])},Tn=()=>Me(void 0,null,function*(){if(Ke&&!tt){Nt.ZP.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4");return}if(Mi===1&&!ht.length){Nt.ZP.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00");return}(yield vi({type:"shixunsDetail/updatePermissionSetting",payload:{id:An.current,scope_partment:Mi===0?null:ht,shixun:{can_copy:Si,use_scope:Mi,opening_time:tt,git_size:mt}}})).status!==-1&&(Nt.ZP.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),vi({type:"shixunsDetail/getSettingsData",payload:{id:An.current}}),vi({type:"shixunsDetail/getShixunsDetail",payload:{id:An.current}}))});return ue.createElement("div",null,ue.createElement("section",{className:de.wrap},ue.createElement("div",{style:{position:"absolute",top:"25px",right:"25px"}},((nt=Et==null?void 0:Et.detail)==null?void 0:nt.shixun_status)!==2?ue.createElement(Bt.ZP,{danger:!0,onClick:pn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):ue.createElement(Bt.ZP,{danger:!0,onClick:mn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),ue.createElement("div",{className:de.labelWrap},ue.createElement("label",{className:de.label},"\u590D\u5236\uFF1A"),ue.createElement("div",{className:de.labelContent},ue.createElement("div",null,ue.createElement(vt.default,{checked:Si,onChange:Xt=>Vn(Xt.target.checked),disabled:!kt}),ue.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")))),!((((ze=Et.detail)==null?void 0:ze.shixun_status)>1||((gn=Et.detail)==null?void 0:gn.public)===2)&&((ti=(Xn=Et.setting)==null?void 0:Xn.shixun)==null?void 0:ti.use_scope)===0&&((nn=Et.detail)==null?void 0:nn.identity)>2)&&ue.createElement("div",{className:de.labelWrap},ue.createElement("label",{className:de.label},"\u516C\u5F00\u7A0B\u5EA6\uFF1A"),ue.createElement("div",{className:de.labelContent},ue.createElement(Ue.ZP.Group,{value:Mi,onChange:Xt=>pt(Xt.target.value),disabled:!kt},ue.createElement(Ue.ZP,{className:de.radio,value:0},ue.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),ue.createElement("span",{className:de.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),ue.createElement(Ue.ZP,{className:de.radio,value:1},ue.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),ue.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"))),Mi===1&&ue.createElement(ue.Fragment,null,ue.createElement("div",{className:"mt10"},ue.createElement(bt.Z,{showSearch:!0,className:de.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Pe,onChange:Xt=>{Ie(Xt),yn(Xt)},disabled:!kt,onSelect:Gn,options:Oe==null?void 0:Oe.map(Xt=>({value:Xt}))}),ue.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")),ue.createElement("div",{className:"mt10"},ht==null?void 0:ht.map(Xt=>kt?ue.createElement(Ct.Z,{count:"x",className:"mr20 current",onClick:()=>dn(ht.filter(fi=>fi!==Xt))},ue.createElement(Bt.ZP,{type:"primary",ghost:!0},Xt)):ue.createElement(Bt.ZP,{type:"primary",ghost:!0,className:"mr20"},Xt)))))),ue.createElement("div",{className:de.labelWrap},ue.createElement("label",{className:de.label},"\u5F00\u542F\u65F6\u95F4\uFF1A"),ue.createElement("div",{className:de.labelContent},ue.createElement("div",null,ue.createElement(vt.default,{checked:Ke,onChange:Xt=>De(Xt.target.checked),disabled:!kt}),ue.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")),Ke&&ue.createElement(yt.default,{className:`${de.dataPicker} mt10`,format:st,locale:Ot.Z,disabled:!kt,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:Xt=>Xt&&Xt<ne()().endOf("day").subtract(1,"days"),showTime:{minuteStep:30},value:tt&&ne()(tt,st),onChange:(Xt,fi)=>He(ke(fi))}))),((vn=hn==null?void 0:hn.userInfo)==null?void 0:vn.role)===1&&ue.createElement("div",{className:de.labelWrap,style:{alignItems:"center"}},ue.createElement("label",{className:de.label},"\u4EE3\u7801\u4ED3\u5E93\u5BB9\u91CF\uFF1A"),ue.createElement("div",{className:de.labelContent},ue.createElement("div",null,ue.createElement(Zt.Z,{style:{width:150},placeholder:"\u8BF7\u8F93\u5165\u4EE3\u7801\u4ED3\u5E93\u5BB9\u91CF",min:1,max:10240,value:mt,onChange:Xt=>{Wt(Xt)}}),ue.createElement("span",{className:"c-grey-999"}," M "))))),ue.createElement(Ut.t,{okText:"\u4FDD\u5B58",hasOkBtn:kt,loading:Yt.effects["shixunsDetail/updatePermissionSetting"],onCancel:()=>et.history.push(`/shixuns/${An.current}/challenges`),onOk:Tn,className:de.bottomButton}))};var xt=(0,et.connect)(({shixunsDetail:ut,loading:It,globalSetting:Et,user:Tt})=>({shixunsDetail:ut,globalSetting:Et,user:Tt,loading:It}))(dt)},10149: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__(5083),antd__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(78673),antd__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5871),umi__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(89070),_index_less_modules__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(93055),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__(44373),_utils_env__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3294),_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(46474),_utils_authority__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(24065),_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(16349),React=__webpack_require__(59301),__async=(qt,kn,Ee)=>new Promise((ue,et)=>{var Lt=vt=>{try{Bt(Ee.next(vt))}catch(Ue){et(Ue)}},Nt=vt=>{try{Bt(Ee.throw(vt))}catch(Ue){et(Ue)}},Bt=vt=>vt.done?ue(vt.value):Promise.resolve(vt.value).then(Lt,Nt);Bt((Ee=Ee.apply(qt,kn)).next())});const timeFormat="YYYY-MM-DD HH:mm",handleDateString=qt=>{if(!qt)return qt;const kn=qt.split(":");if(kn[1]=="00"||kn[1]=="30")return qt;const Ee=parseInt(kn[1]);if(Ee<30||Ee==60)return[kn[0],"30"].join(":");if(Ee<60){const ue=[kn[0],"00"].join(":"),et="YYYY-MM-DD HH:mm",Lt=moment__WEBPACK_IMPORTED_MODULE_3___default()(ue,et);return Lt.add(1,"hours"),Lt.format(et)}return qt};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=qt=>__async(this,null,function*(){const kn=yield dispatch({type:"shixunsDetail/getDepartments",payload:{q:qt}});kn&&setDepartmentList(kn.shools_name||[])});(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{var qt,kn;(kn=(qt=shixunsDetail.setting)==null?void 0:qt.shixun)!=null&&kn.main_type&&handleInitState()},[shixunsDetail.setting]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{dispatch({type:"shixunsDetail/getSettingsData",payload:params})},[]);const handleSelectDepartment=qt=>{if(selectDepartmentList.includes(qt)){antd__WEBPACK_IMPORTED_MODULE_9__.ZP.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([...selectDepartmentList,qt])},handleInitState=()=>{var qt,kn,Ee,ue,et,Lt,Nt,Bt,vt,Ue,bt,Ct,yt,Zt,Ot,Ut,Te,te,ne,de,le,pe,Se,Ae,Me,ke,st,dt,xt,ut,It,Et,Tt,Yt,hn,vi,ui,Bn,di,nt,ze,gn,Xn,ti,nn,vn,An;setCodeEditPermission((kn=(qt=shixunsDetail.setting)==null?void 0:qt.shixun)==null?void 0:kn.code_edit_permission),setAllowFileUpload((ue=(Ee=shixunsDetail.setting)==null?void 0:Ee.shixun)==null?void 0:ue.allow_file_upload),setCodeHidden((Lt=(et=shixunsDetail.setting)==null?void 0:et.shixun)==null?void 0:Lt.show_code_dir),setForbidCopy((Bt=(Nt=shixunsDetail.setting)==null?void 0:Nt.shixun)==null?void 0:Bt.forbid_copy),setTaskPass((Ue=(vt=shixunsDetail.setting)==null?void 0:vt.shixun)==null?void 0:Ue.task_pass),setTestSetPermission((Ct=(bt=shixunsDetail.setting)==null?void 0:bt.shixun)==null?void 0:Ct.test_set_permission),set_display_git_address((yt=shixunsDetail.setting.shixun)==null?void 0:yt.display_git_address),setIsCopy((Ot=(Zt=shixunsDetail.setting)==null?void 0:Zt.shixun)==null?void 0:Ot.can_copy),setOpenValue((Te=(Ut=shixunsDetail.setting)==null?void 0:Ut.shixun)==null?void 0:Te.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((Se=(pe=shixunsDetail.setting)==null?void 0:pe.shixun)==null?void 0:Se.opening_time),setSelectDepartmentList((Me=(Ae=shixunsDetail.setting)==null?void 0:Ae.shixun)==null?void 0:Me.scope_partment),setDisableDiscuss((st=(ke=shixunsDetail.setting)==null?void 0:ke.shixun)==null?void 0:st.is_disable_discuss),setdisableAI((xt=(dt=shixunsDetail.setting)==null?void 0:dt.shixun)==null?void 0:xt.ai_reply),setresource_recommend((It=(ut=shixunsDetail==null?void 0:shixunsDetail.setting)==null?void 0:ut.shixun)==null?void 0:It.resource_recommend),setOpenCodeDebugger((Tt=(Et=shixunsDetail.setting)==null?void 0:Et.shixun)==null?void 0:Tt.open_code_debugger),setStartPermanent((hn=(Yt=shixunsDetail.setting)==null?void 0:Yt.shixun)==null?void 0:hn.start_permanent),setOpenSelfRun((ui=(vi=shixunsDetail.setting)==null?void 0:vi.shixun)==null?void 0:ui.open_self_run),setgitSize((di=(Bn=shixunsDetail.setting)==null?void 0:Bn.shixun)==null?void 0:di.git_size),setcourse_workspace_file_time((ze=(nt=shixunsDetail.setting)==null?void 0:nt.shixun)==null?void 0:ze.course_workspace_file_time),setPodSwitch((Xn=(gn=shixunsDetail.setting)==null?void 0:gn.shixun)==null?void 0:Xn.exit_delete_pod_switch),setai_user((nn=(ti=shixunsDetail.setting)==null?void 0:ti.shixun)==null?void 0:nn.ai_user),setOpenLocalEvaluate((An=(vn=shixunsDetail.setting)==null?void 0:vn.shixun)==null?void 0:An.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((qt,kn)=>{var Ee,ue;qt!=((ue=(Ee=shixunsDetail.setting)==null?void 0:Ee.shixun)==null?void 0:ue.scope_partment[kn])&&(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(qt=!1,kn=1){return __async(this,null,function*(){var Ee,ue;const et=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:qt}});(et==null?void 0:et.status)===0&&((Ee=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&Ee.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}),(ue=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&ue.copy_for_exercise&&(0,_utils__WEBPACK_IMPORTED_MODULE_8__.m)(dispatch,shixunsDetail,params.id,kn))})}const handleDeleteShixun=()=>__async(this,null,function*(){var qt,kn,Ee,ue,et,Lt;const Nt=(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,!!((qt=Nt.subjects)!=null&&qt.length)&&React.createElement(React.Fragment,null,React.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Ee=(kn=Nt.subjects)==null?void 0:kn.splice(0,2))==null?void 0:Ee.map(Bt=>`\u300A${Bt}\u300B`),"\u7B49",React.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.colorOrange},Nt==null?void 0:Nt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),React.createElement("br",null)),!!((ue=Nt.courses)!=null&&ue.length)&&React.createElement(React.Fragment,null,React.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(Lt=(et=Nt.courses)==null?void 0:et.splice(0,2))==null?void 0:Lt.map(Bt=>`\u300A${Bt}\u300B`),"\u7B49",React.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_2__.Z.colorOrange},Nt==null?void 0:Nt.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(qt){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(qt),parseInt(qt)===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:qt=>{var kn;if((kn=practiceSetting==null?void 0:practiceSetting.sideBar)!=null&&kn.confirmLeave){showExitmodel(qt.key);return}setMenuSelectKey(qt.key),parseInt(qt.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:qt=>setTaskPass(qt.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:qt=>setTestSetPermission(qt.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:qt=>setIsCopy(qt.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:qt=>setOpenValue(qt.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:qt=>{setDepartmentValue(qt),handleGetDepartments(qt)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(qt=>({value:qt}))})),React.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(qt=>editable?React.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{count:"x",className:"mr20 current",onClick:()=>setSelectDepartmentList(selectDepartmentList.filter(kn=>kn!==qt))},React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{type:"primary",ghost:!0},qt)):React.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.ZP,{type:"primary",ghost:!0,className:"mr20"},qt)))))),!((_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:qt=>setOpenAnswer(qt.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:qt=>{setIsOpenTime(qt.target.checked),qt.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:qt=>qt&&qt<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:(qt,kn)=>setOpenTime(handleDateString(kn))})))),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:qt=>set_display_git_address(qt.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:qt=>{setCodeHidden(qt.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:qt=>{setCodeEditPermission(qt.target.checked),qt.target.checked||setAllowFileUpload(qt.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:qt=>{setAllowFileUpload(qt.target.checked),qt.target.checked&&setCodeEditPermission(qt.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:qt=>setForbidCopy(qt.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:qt=>setOpenCodeDebugger(qt)}),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:qt=>setOpenSelfRun(qt)}),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:qt=>setOpenLocalEvaluate(qt)}),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:qt=>{setgitSize(qt)}}),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:qt=>{if(!(0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__.Ny)()){(0,_utils_verifyLogin__WEBPACK_IMPORTED_MODULE_6__.pW)(2);return}setStartPermanent(qt)}}),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:qt=>{setPodSwitch(qt)}}),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:qt=>setDisableDiscuss(!qt)}),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:qt=>{setresource_recommend(qt)}}),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:qt=>{setdisableAI(qt)}}),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:qt=>{setai_user(qt.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 qt,kn;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}(qt=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&qt.is_fork_from_creator&&((kn=shixunsDetail==null?void 0:shixunsDetail.detail)!=null&&kn.copy_for_exercise)?dispatch({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"setting",fn:(Ee,ue)=>{handSubmeit(Ee,ue)}}}):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:qt,shixunsDetail:kn,practiceSetting:Ee})=>({user:qt,shixunsDetail:kn,practiceSetting:Ee}))(Setting)},86566:function(qt,kn,Ee){"use strict";Ee.r(kn),Ee.d(kn,{default:function(){return on}});var ue=Ee(59301),et={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=Ee(89070),Nt=Ee(99313),Bt=Ee(6848),vt=Ee(8591),Ue=Ee(20834),bt=Ee(95237),Ct=Ee(43604),yt=Ee(38854),Zt=Ee(43418),Ot=Ee(71418),Ut=Ee(3113),Te=Ee(17574),te=Ee(78673),ne=Ee(56102),de=Ee(78241),le=Ee(92832),pe={wrap:"wrap___yTLAj",modal:"modal___B3dwx",title:"title___FHscn",path:"path___o7aJh",colorBlue:"colorBlue___p4I9Y",width240:"width240___UNGpD",filePath:"filePath___uTJLX"},Se=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,st=(Vt,cn,Jt)=>cn in Vt?Se(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,dt=(Vt,cn)=>{for(var Jt in cn||(cn={}))Me.call(cn,Jt)&&st(Vt,Jt,cn[Jt]);if(Ae)for(var Jt of Ae(cn))ke.call(cn,Jt)&&st(Vt,Jt,cn[Jt]);return Vt},xt=(Vt,cn)=>{var Jt={};for(var zn in Vt)Me.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&Ae)for(var zn of Ae(Vt))cn.indexOf(zn)<0&&ke.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},ut=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const It=Vt=>{var cn=Vt,{shixunsDetail:Jt,globalSetting:zn,loading:er,user:sr,dispatch:li,isRepository:Ci}=cn,Qn=xt(cn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const an=(0,Lt.useLocation)(),Vr=(0,Lt.useParams)(),[In,Or]=(0,ue.useState)({}),Tr=(0,ue.useRef)(),[fr]=de.default.useForm(),[Bo,Gr]=(0,ue.useState)("");(0,ue.useEffect)(()=>{Qn.visible&&fr.resetFields()},[Qn.visible]),(0,ue.useEffect)(()=>{const ro=sessionStorage.getItem("pathArray");if(ro){const Cn=ro.split(",").join("/"),hi=Cn.indexOf("/")===0?Cn.substr(1):Cn;Gr(hi)}},[]),(0,ue.useEffect)(()=>{var ro,Cn;Tr.current=(Cn=(ro=an.pathname)==null?void 0:ro.split("/"))==null?void 0:Cn[2]},[]);const Ui=(...ro)=>ut(void 0,[...ro],function*(Cn={}){const hi=yield li({type:"shixunsDetail/addRepositoryFile",payload:{id:Vr.id,message:Cn.commitMessage,content:"",path:(Qn.defaultPath?Qn.defaultPath+"/":"")+Cn.path+"/"+(Cn.file||".gitkeep"),secret_repository:Ci?void 0:!0}});hi!=null&&hi.url&&(vt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Qn.onOK({path:(Qn.defaultPath?Qn.defaultPath+"/":"")+Cn.path+"/"+(Cn.file||".gitkeep"),name:Cn.path.split("/")[Cn.path.split("/").length-1]}),Qn.onClose())}),xr=()=>{var ro,Cn;Lt.history.push(`/shixuns/${Tr.current}/${(Cn=(ro=an.pathname)==null?void 0:ro.split("/"))==null?void 0:Cn[3]}${Bo?`/master/shixun_show/${Bo}`:""}`)};return ue.createElement(Zt.default,{width:"60%",centered:!0,open:Qn.visible,wrapClassName:pe.modal,onOk:()=>{fr.submit()},onCancel:Qn.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},ue.createElement("section",{className:pe.bg},ue.createElement("div",{className:pe.wrap},ue.createElement(de.default,{className:"mt10",form:fr,scrollToFirstError:!0,layout:"vertical",onFinish:Ui,onChange:()=>{var ro,Cn,hi,Ge;const To=dt({},fr.getFieldsValue()),no=(ro=To==null?void 0:To.path)==null?void 0:ro.split(""),rr=(Cn=To==null?void 0:To.file)==null?void 0:Cn.split("");(hi=no==null?void 0:no.filter(qi=>qi=="/"))!=null&&hi.length&&(To.path=To.path.substring(0,To.path.length-1)),(Ge=rr==null?void 0:rr.filter(qi=>qi=="/"))!=null&&Ge.length&&(To.file=To.file.substring(0,To.path.length-1)),fr.setFieldsValue(dt({},To)),Or(To)}},ue.createElement(de.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},ue.createElement(bt.Z,null,ue.createElement(Ct.Z,null,ue.createElement("span",{className:pe.filePath},Qn.defaultPath+"/")),ue.createElement(Ct.Z,{flex:"1"},ue.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"}]},ue.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"middle"}))))),ue.createElement(de.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},ue.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"})),ue.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"}]},ue.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 Et=(0,Lt.connect)(({shixunsDetail:Vt,loading:cn,globalSetting:Jt,user:zn})=>({shixunsDetail:Vt,globalSetting:Jt,user:zn,loading:cn.models.index}))(It),Tt=Ee(97692),Yt=Ee(16349),hn=Ee(59301),vi=Object.defineProperty,ui=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,nt=(Vt,cn,Jt)=>cn in Vt?vi(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,ze=(Vt,cn)=>{for(var Jt in cn||(cn={}))Bn.call(cn,Jt)&&nt(Vt,Jt,cn[Jt]);if(ui)for(var Jt of ui(cn))di.call(cn,Jt)&&nt(Vt,Jt,cn[Jt]);return Vt},gn=(Vt,cn)=>{var Jt={};for(var zn in Vt)Bn.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&ui)for(var zn of ui(Vt))cn.indexOf(zn)<0&&di.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},Xn=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const ti=Vt=>{var cn=Vt,{shixunsDetail:Jt,globalSetting:zn,loading:er,user:sr,dispatch:li,isRepository:Ci}=cn,Qn=gn(cn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const an=(0,Lt.useLocation)(),Vr=(0,Lt.useParams)(),[In,Or]=(0,ue.useState)({}),Tr=(0,ue.useRef)(),[fr]=de.default.useForm(),[Bo,Gr]=(0,ue.useState)("");(0,ue.useEffect)(()=>{Qn.visible&&fr.resetFields()},[Qn.visible]),(0,ue.useEffect)(()=>{const ro=sessionStorage.getItem("pathArray");if(ro){const Cn=ro.split(",").join("/"),hi=Cn.indexOf("/")===0?Cn.substr(1):Cn;Gr(hi)}},[]),(0,ue.useEffect)(()=>{var ro,Cn;Tr.current=(Cn=(ro=an.pathname)==null?void 0:ro.split("/"))==null?void 0:Cn[2]},[]);const Ui=(...ro)=>Xn(void 0,[...ro],function*(Cn={},hi=!1,Ge=1){var To,no;const rr=yield li({type:"shixunsDetail/addRepositoryFile",payload:{id:Vr.id,message:Cn.commitMessage,content:Cn.codeMirror,path:(Qn.defaultPath?Qn.defaultPath+"/":"")+Cn.path,secret_repository:Ci?void 0:!0,sync_origin_shixun:hi}});rr!=null&&rr.url&&((To=Jt==null?void 0:Jt.detail)!=null&&To.copy_for_exercise||vt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Qn.onOK({path:(Qn.defaultPath?Qn.defaultPath+"/":"")+Cn.path,name:Cn.path.split("/")[Cn.path.split("/").length-1]}),Qn.onClose()),(no=Jt==null?void 0:Jt.detail)!=null&&no.copy_for_exercise&&(0,Yt.m)(li,Jt,Vr.id,Ge)}),xr=()=>{var ro,Cn;Lt.history.push(`/shixuns/${Tr.current}/${(Cn=(ro=an.pathname)==null?void 0:ro.split("/"))==null?void 0:Cn[3]}${Bo?`/master/shixun_show/${Bo}`:""}`)};return hn.createElement(Zt.default,{width:"60%",open:Qn.visible,wrapClassName:pe.modal,destroyOnClose:!0,centered:!0,onOk:()=>{fr.submit()},onCancel:Qn.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},hn.createElement("section",{className:pe.bg},hn.createElement("div",{className:pe.wrap},hn.createElement(de.default,{className:"mt10",form:fr,scrollToFirstError:!0,layout:"vertical",onFinish:ro=>{var Cn,hi;(Cn=Jt==null?void 0:Jt.detail)!=null&&Cn.is_fork_from_creator&&((hi=Jt==null?void 0:Jt.detail)!=null&&hi.copy_for_exercise)?(Qn.onClose(),li({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:ro,type:"wareHouse",fn:(Ge,To,no)=>{Ui(Ge,To,no)}}})):Ui(ro)},onChange:()=>{var ro,Cn;const hi=ze({},fr.getFieldsValue()),Ge=(ro=hi==null?void 0:hi.path)==null?void 0:ro.split("");((Cn=Ge==null?void 0:Ge.filter(To=>To=="/"))==null?void 0:Cn.length)>1&&(hi.path=hi.path.substring(0,hi.path.length-1)),fr.setFieldsValue(ze({},hi)),Or(hi)}},hn.createElement(de.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},hn.createElement(bt.Z,null,hn.createElement(Ct.Z,null,hn.createElement("span",{className:pe.filePath},Qn.defaultPath+"/")),hn.createElement(Ct.Z,{flex:"1"},hn.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"}]},hn.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"middle"}))))),hn.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"}]},hn.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"})),hn.createElement("div",{className:"mt10 mb20"},hn.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}},hn.createElement(Tt.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:Vt,loading:cn,globalSetting:Jt,user:zn})=>({shixunsDetail:Vt,globalSetting:Jt,user:zn,loading:cn.models.index}))(ti),vn=Object.defineProperty,An=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,Mi=(Vt,cn,Jt)=>cn in Vt?vn(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,pt=(Vt,cn)=>{for(var Jt in cn||(cn={}))Si.call(cn,Jt)&&Mi(Vt,Jt,cn[Jt]);if(An)for(var Jt of An(cn))Vn.call(cn,Jt)&&Mi(Vt,Jt,cn[Jt]);return Vt},ht=(Vt,cn)=>{var Jt={};for(var zn in Vt)Si.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&An)for(var zn of An(Vt))cn.indexOf(zn)<0&&Vn.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},dn=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const Oe=Vt=>{var cn=Vt,{shixunsDetail:Jt,globalSetting:zn,loading:er,user:sr,dispatch:li,isRepository:Ci}=cn,Qn=ht(cn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const an=(0,Lt.useLocation)(),Vr=(0,Lt.useParams)(),[In,Or]=(0,ue.useState)({}),Tr=(0,ue.useRef)(),[fr]=de.default.useForm(),[Bo,Gr]=(0,ue.useState)(""),[Ui,xr]=(0,ue.useState)("");(0,ue.useEffect)(()=>{Qn.visible&&fr.resetFields()},[Qn.visible]),(0,ue.useEffect)(()=>{const hi=Qn.defaultPath.split("/");hi.length===1?(Gr(""),xr(Qn.defaultPath)):(xr(hi.pop()),Gr(hi.join("/")+"/"))},[Qn.defaultPath]),(0,ue.useEffect)(()=>{var hi,Ge;Tr.current=(Ge=(hi=an.pathname)==null?void 0:hi.split("/"))==null?void 0:Ge[2]},[]);const ro=(...hi)=>dn(void 0,[...hi],function*(Ge={}){const To=yield li({type:"shixunsDetail/moveGitFile",payload:{id:Vr.id,from:Qn.defaultPath,to:Bo+Ge.path,message:Ge.commitMessage||`${Qn.defaultPath} rename to ${Bo}${Ge.path} `,secret_repository:Ci}});(To==null?void 0:To.status)===0&&(vt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Qn.onOK({path:Ge.path,name:Ge.path}),Qn.onClose())}),Cn=()=>{var hi,Ge;Lt.history.push(`/shixuns/${Tr.current}/${(Ge=(hi=an.pathname)==null?void 0:hi.split("/"))==null?void 0:Ge[3]}${Bo?`/master/shixun_show/${Bo}`:""}`)};return ue.createElement(Zt.default,{width:"40%",open:Qn.visible,wrapClassName:pe.modal,centered:!0,onOk:()=>{fr.submit()},onCancel:Qn.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},ue.createElement("section",{className:pe.bg},ue.createElement("div",{className:pe.wrap},ue.createElement(de.default,{className:"mt10",form:fr,scrollToFirstError:!0,layout:"vertical",onFinish:ro,onChange:()=>{var hi,Ge;const To=pt({},fr.getFieldsValue()),no=(hi=To==null?void 0:To.path)==null?void 0:hi.split("");((Ge=no==null?void 0:no.filter(rr=>rr=="/"))==null?void 0:Ge.length)>1&&(To.path=To.path.substring(0,To.path.length-1)),fr.setFieldsValue(pt({},To)),Or(To)}},ue.createElement(de.default.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},ue.createElement(bt.Z,null,ue.createElement(Ct.Z,{flex:"1"},ue.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"}]},ue.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"middle",defaultValue:Ui}))))),ue.createElement(de.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},ue.createElement(le.default,{placeholder:`\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08${Qn.defaultPath} rename to \u65B0\u7684\u540D\u79F0 \uFF09`,size:"middle"}))))))};var Ce=(0,Lt.connect)(({shixunsDetail:Vt,loading:cn,globalSetting:Jt,user:zn})=>({shixunsDetail:Vt,globalSetting:Jt,user:zn,loading:cn.models.index}))(Oe),Pe=Ee(3294),Ie=Ee(99064),Ke=Ee(54580),De=Ee(62517),tt={wrap:"wrap___T4tjB",title:"title____QnQT",path:"path___PLUeD",colorBlue:"colorBlue___eL7QF"},He=Ee(59301),mt=Object.defineProperty,Wt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,pn=(Vt,cn,Jt)=>cn in Vt?mt(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,mn=(Vt,cn)=>{for(var Jt in cn||(cn={}))kt.call(cn,Jt)&&pn(Vt,Jt,cn[Jt]);if(Wt)for(var Jt of Wt(cn))yn.call(cn,Jt)&&pn(Vt,Jt,cn[Jt]);return Vt},Gn=(Vt,cn)=>{var Jt={};for(var zn in Vt)kt.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&Wt)for(var zn of Wt(Vt))cn.indexOf(zn)<0&&yn.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},Tn=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const{Dragger:Xt}=Ke.default,fi=Vt=>{var cn=Vt,{shixunsDetail:Jt,globalSetting:zn,loading:er,user:sr,dispatch:li,isRepository:Ci}=cn,Qn=Gn(cn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const an=(0,Lt.useLocation)(),Vr=(0,Lt.useParams)(),[In,Or]=(0,ue.useState)({}),Tr=(0,ue.useRef)(),[fr]=de.default.useForm(),[Bo,Gr]=(0,ue.useState)([]),[Ui,xr]=(0,ue.useState)();let ro;(0,ue.useEffect)(()=>{Qn.visible&&(fr.resetFields(),Gr([]))},[Qn.visible]),(0,ue.useEffect)(()=>{Tr.current=Vr.id},[]),(0,ue.useEffect)(()=>{const rr=sessionStorage.getItem("pathArray");if(rr){const qi=rr.split(",").join("/"),Qi=qi.indexOf("/")===0?qi.substr(1):qi;xr(Qi)}},[]);const Cn=rr=>{var qi,Qi,oa,ys;if(ro=rr.file.name,rr.file.status==="done"||rr.file.status==="uploading"){if(Gr(rr.fileList),!rr.file.response)return;if(((qi=rr.file.response)==null?void 0:qi.status)===0){(Qi=Jt==null?void 0:Jt.detail)!=null&&Qi.copy_for_exercise||(vt.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),fr.validateFields());return}Gr(Bo.filter(bs=>bs.uid!==rr.file.uid)),(oa=rr.file.response)!=null&&oa.message&&vt.ZP.info((ys=rr.file.response)==null?void 0:ys.message)}},hi=rr=>Tn(void 0,null,function*(){if(!rr.response){vt.ZP.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01");return}(yield li({type:"shixunsDetail/deleteGitFile",payload:{id:Vr.id,path:Ui?`${Ui}/${rr.name}`:rr.name,message:fr.getFieldValue("commitMessage")||`\u5220\u9664\u4E86${Ui?`${Ui}/${rr.name}`:rr.name}`,secret_repository:Ci?null:!0}})).status===0&&(Gr(Bo.filter(Qi=>Qi.uid!==rr.uid)),vt.ZP.info("\u5220\u9664\u6210\u529F"))}),Ge={height:300,multiple:!0,withCredentials:!0,openFileDialogOnClick:!!fr.getFieldValue("commitMessage"),data:()=>Tn(void 0,null,function*(){return new Promise((rr,qi)=>Tn(void 0,null,function*(){setTimeout(()=>Tn(void 0,null,function*(){const Qi=yield fr.getFieldsValue(),oa=mn(mn({},{path:Qn.defaultPath?Qn.defaultPath:"",message:In.commitMessage||`\u4E0A\u4F20\u4E86${ro}`}),Ci?{}:{secret_repository:!0});rr(oa)}),200)}))}),fileList:Bo,method:"post",action:`${Pe.Z.API_SERVER}/api/shixuns/${Tr.current}/upload_git_file.json`,onChange:Cn,onRemove:hi,beforeUpload:rr=>(ro=rr.name,rr.size/1024/1024>50?(vt.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0)},To=(rr=!1,qi=1)=>Tn(void 0,null,function*(){var Qi;const oa=mn(mn({},{path:Qn.defaultPath?Qn.defaultPath:"",message:In.commitMessage||`\u4E0A\u4F20\u4E86${ro}`}),Ci?{}:{secret_repository:!0});for(let ys=0;ys<Bo.length;ys++){const bs=new FormData;bs.append("file",Bo[ys].originFileObj),bs.append("sync_origin_shixun",rr.toString()),Object.keys(oa).forEach(Ea=>{bs.append(Ea,oa[Ea].toString())});const _o=yield(0,Ie.ZP)(`/api/shixuns/${Tr.current}/upload_git_file.json`,{method:"post",body:bs},!0)}Qn.onClose(),Qn.onOK({path:Qn.defaultPath}),no(),(Qi=Jt==null?void 0:Jt.detail)!=null&&Qi.copy_for_exercise&&(0,Yt.m)(li,Jt,Vr.id,qi)}),no=()=>{var rr,qi;Lt.history.push(`/shixuns/${Tr.current}/${(qi=(rr=an.pathname)==null?void 0:rr.split("/"))==null?void 0:qi[3]}${Ui?`/master/shixun_show/${Ui}`:""}`)};return He.createElement(Zt.default,{open:Qn.visible,onOk:rr=>{fr.submit()},centered:!0,onCancel:Qn.onClose,width:"70%"},He.createElement("section",{className:tt.bg},He.createElement("div",{className:tt.wrap},He.createElement("div",{className:tt.title},"\u4E0A\u4F20\u6587\u4EF6"),He.createElement(de.default,{className:"mt10",form:fr,scrollToFirstError:!0,layout:"vertical",onFinish:()=>Tn(void 0,null,function*(){var rr,qi;yield fr.validateFields(),(rr=Jt==null?void 0:Jt.detail)!=null&&rr.is_fork_from_creator&&((qi=Jt==null?void 0:Jt.detail)!=null&&qi.copy_for_exercise)?(Qn.onClose(),li({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"wareHouse",fn:(Qi,oa)=>{To(Qi,oa)}}})):To()}),onValuesChange:()=>Or(mn({},fr.getFieldsValue()))},He.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"}]},He.createElement(le.default,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),He.createElement(de.default.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,validator(rr,qi){return(Bo==null?void 0:Bo.length)===0?Promise.reject(new Error("\u8BF7\u9009\u62E9\u6587\u4EF6")):Promise.resolve()}}]},He.createElement("div",{onClick:()=>{if(!fr.getFieldValue("commitMessage")){vt.ZP.warning("\u8BF7\u5148\u586B\u5199\u63D0\u4EA4\u4FE1\u606F");return}}},He.createElement(Xt,mn({},Ge),He.createElement("div",null,He.createElement("i",{className:`iconfont icon-shangchuan font50 ${tt.colorBlue}`})),He.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",He.createElement("span",{className:`${tt.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"))))))),He.createElement(De.Z,{onFinish:rr=>xr(rr)})))};var Wn=(0,Lt.connect)(({shixunsDetail:Vt,loading:cn,globalSetting:Jt,user:zn})=>({shixunsDetail:Vt,globalSetting:Jt,user:zn,loading:cn.models.index}))(fi),bn={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"},Dn={wrap:"wrap___qIbzI",content:"content___cWjqb",mainPathWrap:"mainPathWrap___QP5mq",colorBlue:"colorBlue___zUy77"},Bi=Object.defineProperty,On=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Pi=(Vt,cn,Jt)=>cn in Vt?Bi(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,ur=(Vt,cn)=>{for(var Jt in cn||(cn={}))Jn.call(cn,Jt)&&Pi(Vt,Jt,cn[Jt]);if(On)for(var Jt of On(cn))Ki.call(cn,Jt)&&Pi(Vt,Jt,cn[Jt]);return Vt},lo=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const jo=({shixunsDetail:Vt,globalSetting:cn,loading:Jt,dispatch:zn,title:er,pathList:sr=[],showInputPath:li=!1,isMergeSelectFile:Ci=!1,onFinish:Qn=()=>{}})=>{const[an]=de.default.useForm(),Vr=(0,Lt.useParams)(),In=(0,Lt.useLocation)(),Or=(0,ue.useRef)(),[Tr,fr]=(0,ue.useState)(""),[Bo,Gr]=(0,ue.useState)(""),[Ui,xr]=(0,ue.useState)([]),[ro,Cn]=(0,ue.useState)([]);(0,ue.useEffect)(()=>{var qi,Qi;Or.current=((Qi=(qi=In.pathname)==null?void 0:qi.split("/"))==null?void 0:Qi[3])==="repository"},[]),(0,ue.useEffect)(()=>{if(Vt.actionTabs.key!=="Repository-SelectFilePath")return;const qi=sr.join("/");let Qi=[];sr.map((oa,ys)=>{ys===0?Qi.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${oa}`,path:qi}):Qi.push({val:`/${oa}`,path:qi})}),xr(Qi),fr(qi),Gr(qi),hi(qi)},[Vt.actionTabs.key]);const hi=qi=>lo(void 0,null,function*(){const Qi=yield zn({type:Or.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Vr.id,path:qi}});Qi&&Cn(Qi.trees||[])}),Ge=qi=>{let Qi=Tr;qi.type==="tree"&&(Ui.length?Ui.push({val:`/${qi.name}`,path:qi.name}):Ui.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${qi.name}`,path:qi.name}),xr(Ui),Qi=Tr?`${Tr}/${qi.name}`:qi.name,fr(Qi)),hi(Qi)},To=(qi,Qi)=>{const oa=Ui.filter((bs,_o)=>_o<=Qi);xr(oa);const ys=oa.filter((bs,_o)=>_o!==0).map(bs=>bs.val).join("").substr(1);fr(ys),hi(ys)},no=()=>lo(void 0,null,function*(){const qi=an==null?void 0:an.getFieldsValue(),Qi=Tr?`${Tr}${qi!=null&&qi.name?`/${qi==null?void 0:qi.name}`:""}`:qi==null?void 0:qi.name;if(Ci){Qn(Qi),rr();return}if(li){yield an.validateFields();const oa=yield zn({type:"shixunsDetail/uploadGitFolder",payload:ur(ur({},{id:Vr.id,path:Qi}),Or.current?{}:{secret_repository:!0})});Qn(Bo),oa.status===0&&vt.ZP.info("\u65B0\u5EFA\u6210\u529F")}else Qn(Qi),vt.ZP.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");rr()}),rr=()=>{zn({type:"shixunsDetail/setActionTabs",payload:{}}),an.resetFields()};return ue.createElement(Zt.default,{centered:!0,title:er||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,open:Vt.actionTabs.key==="Repository-SelectFilePath",onOk:no,onCancel:rr},ue.createElement("div",{className:Dn.wrap},ue.createElement("div",{className:Dn.content},ue.createElement("div",{className:Dn.mainPathWrap},!!(Ui!=null&&Ui.length)&&Ui.map((qi,Qi)=>ue.createElement("a",{key:Qi,onClick:()=>To(qi,Qi)},qi.val))),!!(ro!=null&&ro.length)&&ro.map((qi,Qi)=>qi.type==="tree"&&ue.createElement("a",{key:Qi,onClick:()=>Ge(qi)},ue.createElement("i",{className:`iconfont icon-wenjianjia ${Dn.colorBlue}`}),qi.name))),ue.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),ue.createElement("div",{className:"mt5 mb5"},Tr),li&&ue.createElement(de.default,{form:an,scrollToFirstError:!0,className:"mt20"},ue.createElement(de.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ue.createElement(le.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};var Oo=(0,Lt.connect)(({shixunsDetail:Vt,loading:cn,globalSetting:Jt})=>({shixunsDetail:Vt,globalSetting:Jt,loading:cn.models.index}))(jo),Hr=Ee(18785),da=Ee(84105),zo=Ee(49692),Co=Ee(955),xo=Ee(46474),Nr=Ee(79219),Be=Object.defineProperty,ya=Object.defineProperties,to=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable,pi=(Vt,cn,Jt)=>cn in Vt?Be(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,qn=(Vt,cn)=>{for(var Jt in cn||(cn={}))Vi.call(cn,Jt)&&pi(Vt,Jt,cn[Jt]);if(jn)for(var Jt of jn(cn))Wi.call(cn,Jt)&&pi(Vt,Jt,cn[Jt]);return Vt},nr=(Vt,cn)=>ya(Vt,to(cn)),en=(Vt,cn)=>{var Jt={};for(var zn in Vt)Vi.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&jn)for(var zn of jn(Vt))cn.indexOf(zn)<0&&Wi.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},_t=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const{DirectoryTree:zt}=Te.default,Li=Vt=>{var cn=Vt,{shixunsDetail:Jt,globalSetting:zn,loading:er,user:sr,activeKey:li,dispatch:Ci,practiceSetting:Qn,isRepository:an,treeData:Vr,setTreeData:In}=cn,Or=en(cn,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Tr,fr,Bo,Gr,Ui,xr,ro;const Cn=(0,Lt.useParams)(),hi=(0,Lt.useLocation)(),[Ge,To]=(0,ue.useState)(),[no,rr]=(0,ue.useState)(!1),[qi,Qi]=(0,ue.useState)(!1),[oa,ys]=(0,ue.useState)(!1),[bs,_o]=(0,ue.useState)(!1),[Ea,za]=(0,ue.useState)("");let[Mr,Ir]=(0,ue.useState)([]),[gi,ho]=(0,ue.useState)([]);const[Ba,Ws]=(0,ue.useState)([]),[Xa,la]=(0,ue.useState)(!1),[Ta,Ls]=(0,ue.useState)(),[ll,rn]=(0,ue.useState)(),[Va,tn]=(0,ue.useState)(""),[Ss,yu]=(0,ue.useState)(),[fl,Vl]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{In([]),Su(""),localStorage.warehouseHideTip||la(!0)},[hi.pathname,an]);const is=(wr="")=>_t(void 0,null,function*(){(yield(0,zo.Zt)({id:Cn.id,secret_dir_path:wr}))&&yu(wr)}),kl=wr=>{var ao;return ue.createElement(Ue.default,{className:bn.menu,onClick:ua=>{switch(za(wr.path||""),ua.key){case"1":(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),rr(!0);break;case"2":(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),ys(!0);break;case"3":(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),_o(!0);break;case"4":(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),Qi(!0);break;case"5":(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),xd(wr.path,wr.name,wr);break;case"6":(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ed(wr);break}}},(wr.type==="topTree"||wr.type==="tree")&&ue.createElement(Ue.default.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(wr.type==="topTree"||wr.type==="tree")&&ue.createElement(Ue.default.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(wr.type==="topTree"||wr.type==="tree")&&ue.createElement(Ue.default.Item,{key:"3"},"\u4E0A\u4F20"),wr.type!=="topTree"&&wr.type!=="tree"&&((ao=Jt==null?void 0:Jt.detail)==null?void 0:ao.public)<2&&ue.createElement(Ue.default.Item,{key:"4"},"\u91CD\u547D\u540D"),wr.type!=="topTree"&&ue.createElement(ne.CopyToClipboard,{text:`/data/workspace/myshixun/${an?"":"secret/"}${wr==null?void 0:wr.path}`,onCopy:()=>vt.ZP.success("\u590D\u5236\u6210\u529F")},ue.createElement(Ue.default.Item,{key:"6"},ue.createElement(ue.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),wr.type!=="topTree"&&ue.createElement(Ue.default.Item,{key:"5"},"\u5220\u9664"))},Nl=(wr,ao)=>wr.map(ua=>(ao==""?ua.path=ao+ua.name:ua.path=ao+"/"+ua.name,ua.title=ue.createElement(bt.Z,{className:"font14"},ue.createElement(Ct.Z,{flex:"1"},ue.createElement(bt.Z,null,ua.type==="blob"&&ue.createElement(Ct.Z,{flex:"20px",style:{marginLeft:-20}},ue.createElement("span",{className:"iconfont icon-wenjian11 font12"})),ue.createElement(Ct.Z,{flex:"1"},ue.createElement("span",{className:" multi_ellipsis1"},ua.name)))),ue.createElement(Ct.Z,null,(ua.type==="blob"||ua.type==="tree")&&ue.createElement(yt.Z,{dropdownRender:()=>kl(ua),className:bn.ellipsis},ue.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),ua.disableCheckbox=Ge&&Ge!==ua.name,ua.className=ua.type==="tree"?bn.pl23:"",ua.checkable=ua.type!=="tree",ua.isLeaf=ua.type!=="tree",ua.children=ua.type==="tree"&&[],ua.key=ua.path,ua)),ga=wr=>{Ci({type:"practiceSetting/setSideBarTabs",payload:{selectPath:wr}})},gl=(wr,ao)=>_t(void 0,null,function*(){const ua=wr.split("/");yield Su(Ea),setTimeout(()=>{ga(wr),Mr=[ua[0]||""],gi=[wr],ho([...gi]),Ir([...Mr])},150)}),Vc=(wr,ao)=>{if(ao=="")Vr=[...wr],In([...wr]);else{let ua=du(Vr,ao,wr);Vr=ua,In([...ua])}};function du(wr,ao,ua){return wr.map(Dr=>Dr.key===ao?(Dr.children=[...ua],qn({},Dr)):Dr.children?nr(qn({},Dr),{children:du(Dr.children,ao,ua)}):Dr)}const Su=(wr="")=>_t(void 0,null,function*(){var ao,ua;const Dr=yield Ci({type:an?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Cn.id,path:wr}});if(Dr){if((ao=Dr.trees)!=null&&ao.length){let Bl=Nl([...Dr.trees],wr);Vc(Bl,wr),Ws(Dr.trees||[]),rn(wr||""),console.log("handleGetRepository:",Bl,wr),setTimeout(()=>console.log(Vr,Dr.trees,wr,999999),2e3)}else wr==""&&In([]);Ls(((ua=Dr.commits)==null?void 0:ua[0])||{})}return Dr}),xu=wr=>_t(void 0,null,function*(){return new Promise((ao,ua)=>_t(void 0,null,function*(){wr.children.length&&ao(),tn(wr.path),yield Su(wr.path),ao()}))}),oo=(wr,ao)=>_t(void 0,null,function*(){var ua;console.log("handleSelectTree",wr,ao.nativeEvent.target.nodeName,ao);const Dr=()=>{ga(ao.node.path),wr=[ao.node.path],ho([...wr])};ao.nativeEvent.target.nodeName==="svg"||ao.nativeEvent.target.nodeName==="LI"||ao.nativeEvent.target.nodeName==="I"||ao.node.type==="blob"&&((ua=Qn==null?void 0:Qn.sideBar)!=null&&ua.confirmLeave?Zt.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:()=>{Dr(),Ci({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Dr())}),xd=(wr,ao,ua)=>{Zt.default.confirm({centered:!0,title:`\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6${ua.children?"\u5939":""}?`,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_t(void 0,null,function*(){const Dr=yield Ci({type:"shixunsDetail/deleteGitFile",payload:{id:Cn.id,path:wr,message:`\u5220\u9664${wr}`,secret_repository:an?null:!0}});let Bl=wr.split("/");if((Dr==null?void 0:Dr.status)===0){vt.ZP.info("\u5220\u9664\u6210\u529F"),Bl.splice(Bl.length-1,1);const ku=yield Su(Bl.length>1?Bl.join("/"):"");return ku!=null&&ku.trees||(Bl.splice(Bl.length-1,1),yield Su(Bl.length>1?Bl.join("/"):"")),ga(""),!0}else(Dr==null?void 0:Dr.status)===-3?Zt.default.confirm({title:"\u5220\u9664\u5931\u8D25",centered:!0,content:ue.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/${Cn.id}/edit/${Dr==null?void 0:Dr.message}/tab=2`}}):(Dr==null?void 0:Dr.status)===-4&&Zt.default.confirm({title:"\u5220\u9664\u5931\u8D25",centered:!0,content:ue.createElement("div",null,Dr==null?void 0:Dr.message),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:()=>{window.location.href=`/shixuns/${Cn.id}/edit?tabId=service`}})})})},Ed=wr=>{console.log(wr,"item")},Bc=(wr,ao)=>_t(void 0,null,function*(){if(console.log("handleExpand",ao),ao.nativeEvent.target.nodeName==="svg"||ao.nativeEvent.target.nodeName==="path"||ao.nativeEvent.target.nodeName==="LI")return!0;yield xu(ao.node),Mr.includes(ao.node.path)?Mr.splice(Mr.indexOf(ao.node.path),1):Mr.push(ao.node.path),Ir([...Mr])}),Od=()=>{la(!1),localStorage.warehouseHideTip=!0},Nh=wr=>_t(void 0,null,function*(){var ao;let ua,Dr="",Bl,ku;switch(an){case!0:Dr="\u5F00\u542F\u7248\u672C\u5E93",Bl="\u5F00\u542F",ku="\u4E0D\u5F00\u542F",ua=ue.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:(ao=Jt==null?void 0:Jt.detail)!=null&&ao.secret_repository?(Dr="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Bl="\u786E\u5B9A",ku="\u53D6\u6D88",ua=ue.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")):(Dr="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Bl="\u4E0D\u4F7F\u7528",ku="\u4F7F\u7528",ua=ue.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}!an&&(0,xo.gy)(Ci,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93")||Zt.default.confirm({title:Dr,okText:Bl,cancelText:ku,content:ua,onOk:()=>{var xs;(0,Co.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",Dr]),!an&&!((xs=Jt==null?void 0:Jt.detail)!=null&&xs.secret_repository)||ir(wr)},onCancel:()=>{var xs;!an&&!((xs=Jt==null?void 0:Jt.detail)!=null&&xs.secret_repository)&&ir(wr)}})}),ir=wr=>_t(void 0,null,function*(){an?(yield(0,zo.h4)(qn({},Cn)),Ci({type:"practiceSetting/getCommonData",payload:qn({},Cn)})):yield(0,zo.K0)(nr(qn({},Cn),{is_secret_repository:wr})),Su(),Ci({type:"shixunsDetail/getShixunsDetail",payload:{id:Cn.id}})}),il=wr=>{console.log(wr)},bl=wr=>_t(void 0,null,function*(){console.log(wr);const ao=wr.node.key,ua=wr.dragNode.key,Dr=wr.node.pos.split("-"),Bl=wr.dropPosition-Number(Dr[Dr.length-1]);if(wr.dragNode.type==="tree"){vt.ZP.warning("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55");return}if(wr.node.type!=="tree"){vt.ZP.warning("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E");return}if((yield Ci({type:"shixunsDetail/moveGitFile",payload:qn({id:Cn.id,from:wr.dragNode.path,to:wr.node.path+"/"+wr.dragNode.name,message:`${wr.dragNode.path} move to ${wr.node.path+"/"+wr.dragNode.name} `},an?{}:{secret_repository:!0})})).status===0){ga(""),yield Su("");for(let Ms=0;Ms<Mr.length;Ms++)Mr[Ms]!=""&&(yield Su(Mr[Ms]))}});return ue.createElement("section",{className:bn.bg},ue.createElement("div",{className:bn.contentbg},ue.createElement("div",{className:bn.wrap},ue.createElement(bt.Z,{className:bn.gitCode},ue.createElement(Ct.Z,{flex:"1"},ue.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),an?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",ue.createElement(te.Z,{className:an&&((Tr=Jt==null?void 0:Jt.detail)!=null&&Tr.init_repository)?"hide":"ml10",checked:an?(Bo=Jt==null?void 0:Jt.detail)==null?void 0:Bo.init_repository:(fr=Jt==null?void 0:Jt.detail)==null?void 0:fr.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:Nh})),ue.createElement(Ct.Z,null,ue.createElement(yt.Z,{dropdownRender:()=>kl({type:"topTree"}),className:"current"},ue.createElement(Bt.Z,{open:Xa,title:ue.createElement("div",{className:"font16"},ue.createElement(Hr.Z,{style:{position:"relative",left:-35},onClick:()=>Od()}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",ue.createElement("span",{onClick:()=>Od(),className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:bn.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},an&&((Gr=Jt==null?void 0:Jt.detail)==null?void 0:Gr.init_repository)&&ue.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!an&&((Ui=Jt==null?void 0:Jt.detail)==null?void 0:Ui.secret_repository)&&ue.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!Vr.length&&!an&&ue.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},ue.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")),Vr.length?ue.createElement(ue.Fragment,null,ue.createElement("div",{className:bn.content},li==="1"&&ue.createElement("div",{className:bn.tips},"\u63D0\u793A\uFF1A",ue.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'),ue.createElement(zt,{disabled:!!er.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:Vr,switcherIcon:ue.createElement(da.Z,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:5,left:-2}}),onExpand:Bc,expandedKeys:Mr,selectedKeys:gi,onSelect:oo,draggable:!0,onDragEnter:il,onDrop:bl,className:bn.gitTree}))):"",!Vr.length&&an&&((xr=Jt==null?void 0:Jt.detail)==null?void 0:xr.init_repository)&&ue.createElement(yr,null),!Vr.length&&!an&&((ro=Jt==null?void 0:Jt.detail)==null?void 0:ro.secret_repository)&&ue.createElement(yr,null))),ue.createElement(Ce,{visible:qi,defaultPath:Ea,onClose:()=>Qi(!1),isRepository:!an,onOK:wr=>_t(void 0,null,function*(){const ao=Ea.split("/");ao.pop(),yield Su(ao.join("/")),ga("")})}),ue.createElement(nn,{visible:no,defaultPath:Ea,onClose:()=>rr(!1),isRepository:an,onOK:wr=>{gl(wr.path,wr.name)}}),ue.createElement(Et,{visible:oa,defaultPath:Ea,onClose:()=>ys(!1),isRepository:an,onOK:wr=>{gl(wr.path,wr.name)}}),ue.createElement(Wn,{defaultPath:Ea,visible:bs,isRepository:an,onClose:()=>_o(!1),onOK:wr=>_t(void 0,null,function*(){const ao=Ea.split("/");yield Su(Ea),Mr=[ao[0]||""],gi=[Ea],ho([...gi]),Ir([...Mr])})}),ue.createElement(Oo,{pathList:Ea==null?void 0:Ea.split("/"),showInputPath:!0,isMergeSelectFile:fl,onFinish:wr=>{fl?is(wr):Su(wr),Vl(!1)}}))},yr=()=>ue.createElement("div",{className:`mt20 pb50 ${bn.nodata}`},ue.createElement("div",{className:bn.headLeft},"\u63D0\u793A\uFF1A",ue.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",ue.createElement("br",null),"\u4E24\u79CD\u65B9\u5F0F\u6765\u4F7F\u7528\uFF1A",ue.createElement("br",null),"1\u3001",ue.createElement("a",{href:"/forums/2784",target:"_blank"},"Git\u5BA2\u6237\u7AEF")," \u4E0A\u4F20\u5DF2\u6709\u6587\u4EF6\u6765\u5F00\u59CB\u4F7F\u7528\u3002",ue.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",ue.createElement("br",null),"3\u3001\u5982\u679C\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC750MB,\u8BF7\u4E0A\u4F20\u81F3\u6570\u636E\u96C6\u3002"),ue.createElement("img",{width:"100%",src:Nr.Oe}));var Oi=(0,Lt.connect)(({shixunsDetail:Vt,loading:cn,globalSetting:Jt,practiceSetting:zn,user:er})=>({shixunsDetail:Vt,globalSetting:Jt,user:er,practiceSetting:zn,loading:cn}))(Li),Zn={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"},ki=Ee(28103),zr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Pt=(Vt,cn)=>{var Jt={};for(var zn in Vt)br.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&zr)for(var zn of zr(Vt))cn.indexOf(zn)<0&&Br.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},Di=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const En=Vt=>{var cn=Vt,{shixunsDetail:Jt,globalSetting:zn,loading:er,user:sr,dispatch:li,isRepository:Ci}=cn,Qn=Pt(cn,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]);const an=(0,Lt.useParams)(),[Vr,In]=(0,ue.useState)([]);(0,ue.useEffect)(()=>{Or()},[Ci]);const Or=()=>Di(void 0,null,function*(){const Tr=yield li({type:"shixunsDetail/getRepositoryCommit",payload:{id:an.id,secret_repository:Ci?void 0:!0}});Tr&&In(Tr.commits||[])});return ue.createElement(ue.Fragment,null,Vr==""&&ue.createElement("div",{className:Zn.empty},ue.createElement("img",{src:Nr.em,width:"258"}),ue.createElement("br",null),ue.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Vr!=""&&ue.createElement("section",{className:Zn.bg},ue.createElement("div",{className:Zn.wrap},ue.createElement("div",{className:Zn.content},Vr==null?void 0:Vr.map(Tr=>{var fr,Bo;return ue.createElement("div",null,ue.createElement(bt.Z,{align:"middle",className:"c-white font16"},ue.createElement(Ct.Z,null,Tr.title)),ue.createElement(bt.Z,{align:"middle",className:"mt20 "},ue.createElement(Ct.Z,null,ue.createElement("img",{className:Zn.imageUrl,src:Pe.Z.IMG_SERVER+"/"+((fr=Tr.author)==null?void 0:fr.image_url)})),ue.createElement(Ct.Z,{className:Zn.blueLight},ue.createElement("span",{className:"ml20"},(Bo=Tr.author)==null?void 0:Bo.username)),ue.createElement(Ct.Z,null,ue.createElement("span",{className:`ml20 ${Zn.blueLight}`},"\u63D0\u4EA4\u4E8E"),ue.createElement("span",{className:`ml20 ${Zn.blueLight}`},Tr.time))),ue.createElement(ki.Z,{className:Zn.divider}))})))))};var Yn=(0,Lt.connect)(({shixunsDetail:Vt,loading:cn,globalSetting:Jt,user:zn})=>({shixunsDetail:Vt,globalSetting:Jt,user:zn,loading:cn.models.index}))(En),Mt=Ee(23210),Ft=Ee(59301),sn=Object.defineProperty,Sr=Object.defineProperties,Ii=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,Jr=(Vt,cn,Jt)=>cn in Vt?sn(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Vt[cn]=Jt,Qr=(Vt,cn)=>{for(var Jt in cn||(cn={}))ai.call(cn,Jt)&&Jr(Vt,Jt,cn[Jt]);if(Ri)for(var Jt of Ri(cn))Ti.call(cn,Jt)&&Jr(Vt,Jt,cn[Jt]);return Vt},Lo=(Vt,cn)=>Sr(Vt,Ii(cn)),Ln=(Vt,cn)=>{var Jt={};for(var zn in Vt)ai.call(Vt,zn)&&cn.indexOf(zn)<0&&(Jt[zn]=Vt[zn]);if(Vt!=null&&Ri)for(var zn of Ri(Vt))cn.indexOf(zn)<0&&Ti.call(Vt,zn)&&(Jt[zn]=Vt[zn]);return Jt},ja=(Vt,cn,Jt)=>new Promise((zn,er)=>{var sr=Qn=>{try{Ci(Jt.next(Qn))}catch(an){er(an)}},li=Qn=>{try{Ci(Jt.throw(Qn))}catch(an){er(an)}},Ci=Qn=>Qn.done?zn(Qn.value):Promise.resolve(Qn.value).then(sr,li);Ci((Jt=Jt.apply(Vt,cn)).next())});const{TabPane:co}=Nt.default,Kr=Vt=>{var cn=Vt,{globalSetting:Jt,loading:zn,dispatch:er,practiceSetting:sr,shixunsDetail:li}=cn,Ci=Ln(cn,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Qn,an,Vr,In,Or,Tr,fr,Bo,Gr,Ui,xr,ro,Cn,hi,Ge,To,no,rr,qi;const[Qi,oa]=(0,ue.useState)("1"),[ys,bs]=(0,ue.useState)("1");let[_o,Ea]=(0,ue.useState)();const za=(0,ue.useRef)(),[Mr,Ir]=(0,ue.useState)(!0),[gi,ho]=(0,ue.useState)(["2","1"]),[Ba,Ws]=(0,ue.useState)([]),Xa=(0,ue.useRef)(),la=(0,Lt.useParams)(),Ta=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:Ft.createElement("span",null,Ft.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),Ft.createElement(Bt.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"},Ft.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];(0,ue.useEffect)(()=>{var Va,tn,Ss,yu,fl,Vl,is,kl,Nl,ga,gl,Vc,du,Su,xu,oo,xd,Ed;try{((Ss=(tn=(Va=li==null?void 0:li.fileContent)==null?void 0:Va.content)==null?void 0:tn.content)!=null&&Ss.length||((fl=(yu=li==null?void 0:li.fileContent)==null?void 0:yu.content)==null?void 0:fl.content)=="")&&(((Vl=li==null?void 0:li.fileContent)==null?void 0:Vl.file_type)==="txt"?(za.current=window.decodeURIComponent(escape(window.atob((kl=(is=li==null?void 0:li.fileContent)==null?void 0:is.content)==null?void 0:kl.content))),_o=window.decodeURIComponent(escape(window.atob((ga=(Nl=li==null?void 0:li.fileContent)==null?void 0:Nl.content)==null?void 0:ga.content))),Ea(_o)):(za.current=(Vc=(gl=li==null?void 0:li.fileContent)==null?void 0:gl.content)==null?void 0:Vc.content,_o=(Su=(du=li==null?void 0:li.fileContent)==null?void 0:du.content)==null?void 0:Su.content,Ea(_o)))}catch(Bc){za.current=window.atob((oo=(xu=li==null?void 0:li.fileContent)==null?void 0:xu.content)==null?void 0:oo.content),_o=window.atob((Ed=(xd=li==null?void 0:li.fileContent)==null?void 0:xd.content)==null?void 0:Ed.content),Ea(_o),vt.ZP.warning("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",li.fileContent.content)},[(Qn=li==null?void 0:li.fileContent)==null?void 0:Qn.content]),(0,ue.useEffect)(()=>{var Va;const tn=(Va=sr==null?void 0:sr.sideBar)==null?void 0:Va.selectPath.split("/");ho(tn)},[(an=sr==null?void 0:sr.sideBar)==null?void 0:an.selectPath]);const Ls=Va=>{Ea(Va);let tn=-1;Va===za.current?tn=0:tn=1,er({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!tn}})};(0,ue.useEffect)(()=>{new Promise((Va,tn)=>ja(void 0,null,function*(){var Ss,yu,fl;if(((Ss=sr==null?void 0:sr.sideBar)==null?void 0:Ss.selectPath)!==""&&((yu=sr==null?void 0:sr.sideBar)!=null&&yu.selectPath)){const Vl=yield er({type:"shixunsDetail/getFileContent",payload:{id:la.id,path:(fl=sr==null?void 0:sr.sideBar)==null?void 0:fl.selectPath,secret_repository:Mr?null:!0}});Vl!=null&&Vl.content||(Vl==null?void 0:Vl.content)==""||er({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}})}}))},[(Vr=sr==null?void 0:sr.sideBar)==null?void 0:Vr.selectPath]);const ll=Ft.createElement(Ue.default,{className:et.menu,style:{background:"#24294b"},onClick:Va=>{var tn;!((tn=li==null?void 0:li.detail)!=null&&tn.secret_repository)&&Va.key==="2"&&bs("1"),oa(Va.key),Va.key==="1"?Ir(!0):Ir(!1)}},Ft.createElement(Ue.default.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ta.filter(Va=>{var tn,Ss;return!((tn=li==null?void 0:li.detail)!=null&&tn.init_repository)||(Ss=li==null?void 0:li.detail)!=null&&Ss.is_jupyter_lab?Va.id!=="2":Va}).map((Va,tn)=>Ft.createElement(Ue.default.Item,{className:"leaveClick",key:Va.id},Va.name))),rn=(Va=!1,tn=1)=>ja(void 0,null,function*(){var Ss,yu,fl,Vl;const is=yield er({type:"shixunsDetail/updateRepositoryFile",payload:{id:la.id,path:(yu=(Ss=li==null?void 0:li.fileContent)==null?void 0:Ss.params)==null?void 0:yu.path,content:_o,secret_repository:Mr?null:!0,sync_origin_shixun:Va}});is!=null&&is.content&&((fl=li==null?void 0:li.detail)!=null&&fl.copy_for_exercise||vt.ZP.success("\u4FDD\u5B58\u6210\u529F"),er({type:"practiceSetting/setSideBarTabs",payload:Lo(Qr({},sr.sideBar),{confirmLeave:!1})})),(Vl=li==null?void 0:li.detail)!=null&&Vl.copy_for_exercise&&(0,Yt.m)(er,li,la.id,tn)});return Ft.createElement("div",{className:et.warehouse},Ft.createElement("div",{className:et.header},Ft.createElement(bt.Z,{align:"middle",className:"w100 c-white",style:{height:60}},Ft.createElement(Ct.Z,{flex:"1"},Ft.createElement(bt.Z,{align:"middle"},Ft.createElement(Ct.Z,null,Ft.createElement(yt.Z,{dropdownRender:()=>ll,className:et.menu},Ft.createElement("span",{className:"font16 c-white current ml20"},Ta.find(Va=>Va.id===Qi).name," ",Ft.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),Ft.createElement(Ct.Z,{flex:"81px"},Ft.createElement("div",{className:et.line})),Ft.createElement(Ct.Z,null,Ft.createElement(Nt.default,{className:et.tabs,activeKey:ys,onChange:Va=>{var tn;(tn=sr==null?void 0:sr.sideBar)!=null&&tn.confirmLeave?Zt.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:()=>{bs(Va),er({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(bs(Va),er({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},Ft.createElement(co,{tab:Ft.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),Mr&&((In=li==null?void 0:li.detail)==null?void 0:In.init_repository)&&Ft.createElement(co,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!Mr&&((Or=li==null?void 0:li.detail)==null?void 0:Or.secret_repository)&&Ft.createElement(co,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(Mr&&((Tr=li==null?void 0:li.repository)==null?void 0:Tr.git_url)||!Mr&&((fr=li==null?void 0:li.secretRepository)==null?void 0:fr.git_url))&&Ft.createElement(Ft.Fragment,null,Ft.createElement(Ct.Z,null,Ft.createElement("span",{className:et.title},"\u4ED3\u5E93\u5730\u5740:"),Ft.createElement("input",{value:Mr?(Bo=li==null?void 0:li.repository)==null?void 0:Bo.git_url:(Gr=li==null?void 0:li.secretRepository)==null?void 0:Gr.git_url}),Ft.createElement(ne.CopyToClipboard,{text:Mr?(Ui=li==null?void 0:li.repository)==null?void 0:Ui.git_url:(xr=li==null?void 0:li.secretRepository)==null?void 0:xr.git_url,onCopy:()=>vt.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(Bt.Z,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},Ft.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),Ft.createElement("div",{className:et.content,style:{overflow:"auto"}},ys==="1"&&Ft.createElement(Ft.Fragment,null,Ft.createElement("aside",{className:et.left},Ft.createElement(Ot.Z,{spinning:!!zn.effects["shixunsDetail/getRepository"],wrapperClassName:`${et.loading} ${et.bottom0}`},Ft.createElement(Oi,{setTreeData:Ws,treeData:Ba,activeKey:Qi,isRepository:Mr}))),Ft.createElement("aside",{className:et.right,ref:Xa},((ro=sr==null?void 0:sr.sideBar)==null?void 0:ro.selectPath)!==""&&Ft.createElement(Ft.Fragment,null,Ft.createElement(Ot.Z,{spinning:!!zn.effects["shixunsDetail/getFileContent"],wrapperClassName:et.loading},Ft.createElement("div",{className:et.filePathWrp},Ft.createElement(bt.Z,{align:"middle",className:"w100"},Ft.createElement(Ct.Z,null,Ft.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),Ft.createElement(Ct.Z,{flex:"40px"},Ft.createElement("div",{className:et.line,style:{marginLeft:20}})),Ft.createElement(Ct.Z,{className:et.filePath},gi.map((Va,tn)=>Ft.createElement("span",{className:"c-blue"},Va))))),Ft.createElement("div",{className:zn.effects["shixunsDetail/getFileContent"]?"hide":"show"},Ft.createElement(Mt.Z,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:(Cn=li==null?void 0:li.fileContent)==null?void 0:Cn.filename,type:((hi=li==null?void 0:li.fileContent)==null?void 0:hi.file_type)==="office"?"download":(Ge=li==null?void 0:li.fileContent)==null?void 0:Ge.file_type,data:_o,monacoEditor:{value:_o,language:(To=li==null?void 0:li.fileContent)==null?void 0:To.language,onChange:Va=>Ls(Va),options:{fontSize:14}}}))),((no=li==null?void 0:li.fileContent)==null?void 0:no.file_type)==="txt"&&Ft.createElement(bt.Z,{align:"middle",justify:"center",className:et.footer},Ft.createElement(Ct.Z,null,Ft.createElement(Ut.ZP,{type:"primary",size:"middle",ghost:!0,onClick:()=>{Lt.history.push(`/shixuns/${la.id}/challenges`)}},"\u53D6\u6D88"),Ft.createElement(Ut.ZP,{type:"primary",size:"middle",className:"ml40",onClick:Va=>{var tn,Ss;(tn=li==null?void 0:li.detail)!=null&&tn.is_fork_from_creator&&((Ss=li==null?void 0:li.detail)!=null&&Ss.copy_for_exercise)?er({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"wareHouse",fn:(yu,fl)=>{rn(yu,fl)}}}):rn()}},"\u63D0\u4EA4")))),((rr=sr==null?void 0:sr.sideBar)==null?void 0:rr.selectPath)==""&&((qi=li==null?void 0:li.detail)==null?void 0:qi.init_repository)&&Ft.createElement("div",{className:et.empty},Ft.createElement("img",{src:Nr.x7,width:"258"}),Ft.createElement("br",null),Ft.createElement("span",{className:"c-grey-c"},!!(Ba!=null&&Ba.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(Ba!=null&&Ba.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),ys==="2"&&Ft.createElement("div",{className:et.commit},Ft.createElement(Yn,{isRepository:Mr}))))};var on=(0,Lt.connect)(({loading:Vt,globalSetting:cn,practiceSetting:Jt,shixunsDetail:zn})=>({globalSetting:cn,loading:Vt,practiceSetting:Jt,shixunsDetail:zn}))(Kr)},37129:function(qt,kn,Ee){"use strict";Ee.r(kn),Ee.d(kn,{default:function(){return Ht}});var ue=Ee(59301),et={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"},Nt=Ee(955),Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg==",vt=Ee(49692),Ue=Ee(43418),bt=Ee(8591),Ct=Ee(99064),yt=Ee(89070),Zt=Ee(59301),Ot=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,te=(it,lt)=>{var ot={};for(var xn in it)Ut.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&Ot)for(var xn of Ot(it))lt.indexOf(xn)<0&&Te.call(it,xn)&&(ot[xn]=it[xn]);return ot},ne=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const de=it=>{var lt=it,{globalSetting:ot,loading:xn,dispatch:wi,practiceSetting:Yi,shixunsDetail:dr}=lt,xi=te(lt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Fn,Fi;const Yr=(0,yt.useLocation)(),Po=(0,ue.useRef)(""),kr=(0,yt.useParams)(),{title:$r,base_info_warning:No,challenges_warning:So,service_warning:po,repository_warning:lr,mirror_warning:ma}=Yi;(0,ue.useEffect)(()=>{var yo;Po.current=(yo=Yr.pathname.split("/"))==null?void 0:yo[2],wi({type:"practiceSetting/setParams",payload:{id:Po.current}}),wi({type:"practiceSetting/getCommonData",payload:{id:Po.current}})},[Yr.pathname]),(0,ue.useEffect)(()=>((0,Nt.Dk)($r||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),()=>{(0,Nt.Dk)()}));const Vo=()=>ne(void 0,null,function*(){yield mo(),yt.history.push(`/shixuns/${Po.current}/challenges`)}),mo=()=>new Promise((yo,ca)=>{var xa;(xa=Yi==null?void 0:Yi.sideBar)!=null&&xa.confirmLeave?Ue.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:()=>{wi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),yo()},onCancel:()=>{ca()}}):yo()}),Fo=yo=>{var ca;if(yo===(Yi==null?void 0:Yi.sideBar.tabsActive))return;const xa=()=>{yt.history.push(`/shixuns/${Po.current}/edit?tabId=${yo}`),wi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:yo,selectPath:"",confirmLeave:!1}})};(ca=Yi==null?void 0:Yi.sideBar)!=null&&ca.confirmLeave?Ue.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:()=>{xa()}}):xa()},Pr=(yo,ca=!1)=>{yo=yo!=null&&yo.includes(".json")?yo:`${yo}.json`,Ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Zt.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 xa=yield(0,Ct.ZP)("/api"+yo,{method:"get"});if(!xa)return;bt.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const $n=yield(0,vt.Ir)({id:xa.shixun_identifier,jump_challenge_setting:ca});if($n!=null&&$n.game_identifier){(0,Nt.xg)(`/tasks/${$n.game_identifier}`);return}($n==null?void 0:$n.status)===2?Pr($n==null?void 0:$n.message):($n==null?void 0:$n.status)===3&&gr($n==null?void 0:$n.message)})})},gr=yo=>{Ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Zt.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",yo,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Mo=(yo,ca)=>ne(void 0,null,function*(){var xa,$n,wo,Yo;if(yield mo(),(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),(xa=dr.detail)!=null&&xa.is_jupyter||($n=dr.detail)!=null&&$n.is_jupyter_lab){wi({type:"shixunsDetail/execJupyter",payload:{id:Po.current}}).then(Qo=>{var ms;Qo!=null&&Qo.identifier&&((ms=yt.history)==null||ms.push(`/tasks/${Qo.identifier}/jupyter`))});return}wi({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const Jo=ca?yield(0,vt.BK)({id:yo}):yield(0,vt.Ir)({id:yo});if(wi({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(Jo==null?void 0:Jo.status)==5&&!ca){Ue.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:Zt.createElement("div",{className:"mb10"},"\u68C0\u6D4B\u5230",(Yo=(wo=Jo==null?void 0:Jo.data)==null?void 0:wo.challenge_errors)==null?void 0:Yo.map((Qo,ms)=>{var Cr;return Zt.createElement("span",{key:ms,style:{color:"#3061D0"}},"\u7B2C",Qo==null?void 0:Qo.challenge_position,"\u5173",ms!=((Cr=Jo==null?void 0:Jo.data)==null?void 0:Cr.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 Qo,ms,Cr;window.location.href=`/shixuns/${Po.current}/edit/${(Cr=(ms=(Qo=Jo==null?void 0:Jo.data)==null?void 0:Qo.challenge_errors)==null?void 0:ms[0])==null?void 0:Cr.challenge_id}/tab=2`},onCancel:()=>{(0,vt.Ir)({id:Po.current,jump_challenge_setting:!0}).then(Qo=>{if(Qo!=null&&Qo.game_identifier||Qo!=null&&Qo.identifier){(0,Nt.xg)(`/tasks/${Qo.game_identifier}`);return}(Qo==null?void 0:Qo.status)===-3?(0,Nt.eF)():(Qo==null?void 0:Qo.status)===2?Pr(Qo==null?void 0:Qo.message,!0):(Qo==null?void 0:Qo.status)===3&&gr(Qo==null?void 0:Qo.message)})}});return}if((Jo==null?void 0:Jo.status)==6&&!ca){Ue.default.confirm({centered:!0,icon:null,width:430,okText:"\u5B8C\u5584\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E",title:"\u63D0\u793A",content:Zt.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/${Po.current}/edit?tabId=environment`}});return}if(Jo!=null&&Jo.game_identifier||Jo!=null&&Jo.identifier){(0,Nt.xg)(ca?`/tasks/${Jo==null?void 0:Jo.identifier}/jupyter`:`/tasks/${Jo.game_identifier}`);return}(Jo==null?void 0:Jo.status)===-3?(0,Nt.eF)():(Jo==null?void 0:Jo.status)===2?Pr(Jo==null?void 0:Jo.message):(Jo==null?void 0:Jo.status)===3&&gr(Jo==null?void 0:Jo.message)}),Ur=()=>ne(void 0,null,function*(){yield mo(),wi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}})}),Do=yo=>({borderBottomColor:(Yi==null?void 0:Yi.sideBar.tabsActive)===yo?"#0152d9":"transparent"});return Zt.createElement("div",{className:Lt.header},Zt.createElement("aside",{className:Lt.title},Zt.createElement("i",{onClick:Vo,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),Zt.createElement("span",{className:Lt.edit},$r||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),Zt.createElement("i",{onClick:Ur,className:"icon iconfont icon-xiugai1"})),Zt.createElement("aside",{className:Lt.schedule},Zt.createElement("div",null,Zt.createElement("span",{style:Do("information"),className:Lt.clickWarp,onClick:()=>Fo("information")},No?Zt.createElement("span",{className:Lt.num},"1"):Zt.createElement("img",{src:Bt}),Zt.createElement("span",{className:Lt.subject},"\u57FA\u672C\u4FE1\u606F")),Zt.createElement("i",{className:"iconfont icon-lujing"})),Zt.createElement("div",null,Zt.createElement("span",{style:Do("warehouse"),className:Lt.clickWarp,onClick:()=>Fo("warehouse")},lr?Zt.createElement("span",{className:Lt.num},"2"):Zt.createElement("img",{src:Bt}),Zt.createElement("span",{className:Lt.subject},"\u4EE3\u7801\u4ED3\u5E93")),Zt.createElement("i",{className:"iconfont icon-lujing"})),(dr==null?void 0:dr.detail)&&!((Fn=dr==null?void 0:dr.detail)!=null&&Fn.is_jupyter_lab)&&Zt.createElement("div",null,Zt.createElement("span",{style:Do("level"),className:Lt.clickWarp,onClick:()=>Fo("level")},So?Zt.createElement("span",{className:Lt.num},"3"):Zt.createElement("img",{src:Bt}),Zt.createElement("span",{className:Lt.subject},"\u4EFB\u52A1\u5173\u5361")),Zt.createElement("i",{className:"iconfont icon-lujing"})),(dr==null?void 0:dr.detail)&&((Fi=dr==null?void 0:dr.detail)==null?void 0:Fi.is_jupyter_lab)&&Zt.createElement("div",null,Zt.createElement("span",{style:Do("service"),className:Lt.clickWarp,onClick:()=>Fo("service")},po?Zt.createElement("span",{className:Lt.num},"3"):Zt.createElement("img",{src:Bt}),Zt.createElement("span",{className:Lt.subject},"\u670D\u52A1")),Zt.createElement("i",{className:"iconfont icon-lujing"})),Zt.createElement("div",null,Zt.createElement("span",{style:Do("environment"),className:Lt.clickWarp,onClick:()=>Fo("environment")},ma?Zt.createElement("span",{className:Lt.num},"4"):Zt.createElement("img",{src:Bt}),Zt.createElement("span",{className:Lt.subject},"\u5B9E\u9A8C\u73AF\u5883")))),Zt.createElement("aside",{className:Lt.btns},Zt.createElement("div",{className:Lt.simulate,onClick:()=>Mo(Po.current,!1)},"\u6A21\u62DF\u5B9E\u6218")))};var le=(0,yt.connect)(({loading:it,globalSetting:lt,practiceSetting:ot,shixunsDetail:xn})=>({globalSetting:lt,loading:it,practiceSetting:ot,shixunsDetail:xn}))(de),pe={information:"information___HnFAg",scroll:"scroll___SzyY_",formWrap:"formWrap___dlZEW",img:"img___ESi1t"},Se=Ee(12290),Ae=Ee(78241),Me=Ee(3113),ke=Ee(92832),st=Ee(19842),dt=Ee(95237),xt=Ee(43604),ut=Ee(54580),It=Ee(24905),Et={btn:"btn___CiIEf",s1:"s1___JCH7l",s2:"s2___jSyjE"},Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg==",Yt=Object.defineProperty,hn=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,Bn=(it,lt,ot)=>lt in it?Yt(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,di=(it,lt)=>{for(var ot in lt||(lt={}))vi.call(lt,ot)&&Bn(it,ot,lt[ot]);if(hn)for(var ot of hn(lt))ui.call(lt,ot)&&Bn(it,ot,lt[ot]);return it},nt=(it,lt)=>{var ot={};for(var xn in it)vi.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&hn)for(var xn of hn(it))lt.indexOf(xn)<0&&ui.call(it,xn)&&(ot[xn]=it[xn]);return ot},gn=it=>{var lt=it,{InputRight:ot,value:xn=[],onChange:wi}=lt,Yi=nt(lt,["InputRight","value","onChange"]);const[dr,xi]=(0,ue.useState)(),Fn=Yr=>{const Po=xn.filter((kr,$r)=>$r!==Yr);wi(Po)},Fi=Yr=>{if(Yr.preventDefault(),!!dr){if(xn.findIndex(Po=>Po.name===dr)>-1){bt.ZP.warning("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wi([...xn,{id:null,name:dr}]),xi(null)}};return ue.createElement("div",null,ue.createElement(ke.default,di({bordered:!1,style:{width:600},value:dr,onChange:Yr=>xi(Yr.target.value),onPressEnter:Fi,onBlur:Fi},Yi)),ot||ue.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),ue.createElement("div",{className:"mt20"},xn==null?void 0:xn.map((Yr,Po)=>ue.createElement("div",{key:Po,className:Et.btn},ue.createElement("span",{className:Et.s1},Yr.name),ue.createElement("img",{src:Tt,className:Et.s2,onClick:()=>Fn(Po)})))))},Xn=Ee(89392),ti=Ee(3294),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 vn=({dispatch:it,onCancel:lt,onSave:ot,loading:xn=!1})=>ue.createElement("div",{className:nn.complete},ue.createElement("div",{onClick:lt,className:nn.cancel},"\u53D6\u6D88"),ue.createElement(Me.ZP,{type:"primary",loading:xn,onClick:ot,className:nn.save},"\u4FDD\u5B58"));var An=(0,yt.connect)()(vn),Si=Ee(16349),Vn=Ee(32050),Mi=Ee(19248),pt=Ee(85149),ht=Ee(59301),dn=Object.defineProperty,Oe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,De=(it,lt,ot)=>lt in it?dn(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,tt=(it,lt)=>{for(var ot in lt||(lt={}))Ie.call(lt,ot)&&De(it,ot,lt[ot]);if(Pe)for(var ot of Pe(lt))Ke.call(lt,ot)&&De(it,ot,lt[ot]);return it},He=(it,lt)=>Oe(it,Ce(lt)),mt=(it,lt)=>{var ot={};for(var xn in it)Ie.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&Pe)for(var xn of Pe(it))lt.indexOf(xn)<0&&Ke.call(it,xn)&&(ot[xn]=it[xn]);return ot},Wt=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const kt=it=>{var lt=it,{globalSetting:ot,loading:xn,dispatch:wi,practiceSetting:Yi,problemset:dr,shixunsDetail:xi}=lt,Fn=mt(lt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Fi,Yr;const[Po]=Ae.default.useForm(),[kr,$r]=(0,ue.useState)({}),[No,So]=(0,ue.useState)(!1),[po,lr]=(0,ue.useState)(!1),[ma,Vo]=(0,ue.useState)(!1),[mo,Fo]=(0,ue.useState)(""),[Pr,gr]=(0,ue.useState)(""),[Mo,Ur]=(0,ue.useState)(""),[Do,yo]=(0,ue.useState)(),ca=(0,ue.useRef)({}),xa=(0,ue.useRef)(""),$n=(0,ue.useRef)(""),wo=(0,ue.useRef)(""),Yo=(0,ue.useRef)(null),Jo=(0,ue.useRef)((0,Xn.throttle)(()=>Ua(),2e3,{leading:!0,trailing:!1})).current,{id:Qo}=Yi,[ms,Cr]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{Qo&&Ha()},[Qo]),(0,ue.useEffect)(()=>(JSON.stringify(kr)!=="{}"&&Xo(),()=>{clearTimeout(Yo.current)}),[kr,mo,Mo,Pr]);const Xo=()=>{clearTimeout(Yo.current),Yo.current=setTimeout(()=>{!(0,Xn.isEqual)(kr,ca.current)||mo!==xa.current||Mo!==$n.current||Pr!==wo.current?wi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):wi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Ha=()=>Wt(void 0,null,function*(){var La,Ro,na,Yl,Ru,tc,fa;wi({type:"problemset/getEditDisciplines",payload:{source:"shixun"}});const Za=yield(0,Ct.ZP)(`/api/shixuns/${Qo}/edit_base_info.json`,{method:"get"});if(Za.status===0){const Eo=He(tt({},Za.data),{description:(0,Si.S)(Za.data.description)}),Rr={description:Eo.description,shixun_tags:Eo.shixun_tags,name:Eo.name,course:((La=Eo==null?void 0:Eo.disciplines)==null?void 0:La.length)>0?[(na=(Ro=Eo==null?void 0:Eo.disciplines)==null?void 0:Ro[0])==null?void 0:na.id,(tc=(Ru=(Yl=Eo==null?void 0:Eo.disciplines)==null?void 0:Yl[0])==null?void 0:Ru.sub_discipline)==null?void 0:tc.id]:[]};(fa=xi.detail)!=null&&fa.is_jupyter_lab&&(Rr.jupyter_show_description=Za.data.jupyter_show_description),Po.setFieldsValue(Rr),ca.current=tt({},Rr),xa.current=Eo.attachment_id||"",$n.current=Eo.cover_image_id||"",wo.current=Eo.attachment_id_b||"",$r(tt({},Rr)),Fo(Eo.attachment_id||""),gr(Eo.attachment_id_b||""),Ur(Eo.cover_image_id||""),yo(Eo.cover_image||"")}}),ls=(La,Ro)=>{$r(tt({},Ro))},hs=()=>{Ho()},Ua=()=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Po.submit()},pr=(La,Ro=!1,na=1)=>{var Yl;const{name:Ru,description:tc,shixun_tags:fa,course:Za,jupyter_show_description:Eo=!1}=La;let Rr={name:Ru,description:tc,shixun_tags:fa,attachment_id:mo,cover_image_id:Mo,attachment_id_b:Pr,sub_discipline_ids:Za[1]};(Yl=xi.detail)!=null&&Yl.is_jupyter_lab&&(Rr=He(tt({},Rr),{jupyter_show_description:Eo})),(0,Ct.ZP)(`/api/shixuns/${Qo}/base_info_save.json`,{method:"post",body:{shixun:tt({},Rr),sync_origin_shixun:Ro}}).then(Ka=>Wt(void 0,null,function*(){var Qs,Sc,Xl,sc;if(Ka.status===0&&((Qs=xi==null?void 0:xi.detail)!=null&&Qs.copy_for_exercise||bt.ZP.success("\u4FDD\u5B58\u6210\u529F"),wi({type:"practiceSetting/getCommonData",payload:{id:Qo}}),wi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ca.current={description:kr.description,shixun_tags:kr.shixun_tags,name:kr.name},xa.current=mo,$n.current=Mo,wo.current=Pr,(Sc=xi==null?void 0:xi.detail)!=null&&Sc.copy_for_exercise)){const Jl=yield wi({type:"shixunsDetail/saveCopyForExercise",payload:{id:Qo,save_type:na}});na===1?(Xl=Jl==null?void 0:Jl.data)!=null&&Xl.exists_same_shixun_name?wi({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(sc=Jl==null?void 0:Jl.data)==null?void 0:sc.shixun_name,getBaseInfo:()=>{Ha()}}}):(bt.ZP.info("\u4FDD\u5B58\u6210\u529F"),wi({type:"classroomList/setActionTabs",payload:{}})):(wi({type:"classroomList/setActionTabs",payload:{}}),(Jl==null?void 0:Jl.status)===0&&Ue.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 nd,mr;(0,Nt.xg)(`/shixuns/${(mr=(nd=xi==null?void 0:xi.detail)==null?void 0:nd.fork_from)==null?void 0:mr.fork_identifier}/challenges`)}}))}}))},Ho=()=>{var La;const Ro=()=>{yt.history.push(`/shixuns/${Qo}/challenges`),wi({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(La=Yi==null?void 0:Yi.sideBar)!=null&&La.confirmLeave?Ue.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:()=>{Ro()}}):Ro()};function Wa(La){const Ro=La.type==="image/jpeg"||La.type==="image/png";return Ro||bt.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),Ro}const Ko=ht.createElement(Me.ZP,{loading:No,icon:ht.createElement(Vn.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),ts=ht.createElement(Me.ZP,{loading:ma,icon:ht.createElement(Vn.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),fs=ht.createElement(Me.ZP,{loading:po,icon:ht.createElement(Vn.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function al(La,Ro){const na=new FileReader;na.addEventListener("load",()=>Ro(na.result)),na.readAsDataURL(La)}const Xs=La=>{var Ro,na;if(La.file.status==="uploading"){So(!0);return}La.file.status==="done"&&(So(!1),Fo((na=(Ro=La==null?void 0:La.file)==null?void 0:Ro.response)==null?void 0:na.id))},Os=La=>{var Ro,na;if(La.file.status==="uploading"){lr(!0);return}La.file.status==="done"&&(lr(!1),gr((na=(Ro=La==null?void 0:La.file)==null?void 0:Ro.response)==null?void 0:na.id))},eo=()=>ht.createElement("div",{className:pe.img},ht.createElement("img",{src:(0,pt.z)("/api/attachments/"+mo,!0),alt:"avatar",style:{width:"100%"}}),ht.createElement("div",null,ht.createElement(Mi.Z,{onClick:()=>Fo(""),style:{fontSize:"16px",color:"red"}}))),qa=()=>ht.createElement("div",{className:pe.img},ht.createElement("img",{src:(0,pt.z)("/api/attachments/"+Pr,!0),alt:"avatar",style:{width:"100%"}}),ht.createElement("div",null,ht.createElement(Mi.Z,{onClick:()=>gr(""),style:{fontSize:"16px",color:"red"}}))),sl=La=>{var Ro,na;if(La.file.status==="uploading"){Vo(!0);return}La.file.status==="done"&&(Vo(!1),Ur((na=(Ro=La==null?void 0:La.file)==null?void 0:Ro.response)==null?void 0:na.id),Cr(!0))},Kl=()=>ht.createElement("div",{className:pe.img},ht.createElement("img",{src:(0,pt.z)(ms?"/api/attachments/"+Mo:Do,!0),alt:"avatar",style:{width:"100%"}}),ht.createElement("div",null,ht.createElement(Mi.Z,{onClick:()=>{Ur(""),yo("")},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:Po,scrollToFirstError:!0,layout:"vertical",onValuesChange:ls,onFinish:La=>{var Ro,na;(Ro=xi==null?void 0:xi.detail)!=null&&Ro.is_fork_from_creator&&((na=xi==null?void 0:xi.detail)!=null&&na.copy_for_exercise)?wi({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:La,type:"information",fn:(Yl,Ru,tc)=>{pr(Yl,Ru,tc)}}}):pr(La)}},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(ke.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((Fi=kr.name)==null?void 0:Fi.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(gn,{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(st.Z,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:dr.courseOptions,getPopupContainer:La=>La.parentNode})),ht.createElement(dt.Z,null,ht.createElement(xt.Z,null,ht.createElement(Ae.default.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},mo?eo():ht.createElement(ut.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${ti.Z.API_SERVER}/api/attachments.json`,beforeUpload:Wa,onChange:Xs},Ko))),ht.createElement(xt.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(xt.Z,null,ht.createElement(Ae.default.Item,{label:"\u9876\u90E8\u5185\u5BB9\u56FE:"},Pr?qa():ht.createElement(ut.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${ti.Z.API_SERVER}/api/attachments.json`,beforeUpload:Wa,onChange:Os},fs))),ht.createElement(xt.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(xt.Z,null,ht.createElement(Ae.default.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Mo||Do?Kl():ht.createElement(ut.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${ti.Z.API_SERVER}/api/attachments.json`,beforeUpload:Wa,onChange:sl},ts))),ht.createElement(xt.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(Se.Z,{defaultValue:kr.description||"",watch:!0})),((Yr=xi.detail)==null?void 0:Yr.is_jupyter_lab)&&ht.createElement(Ae.default.Item,{name:"jupyter_show_description",valuePropName:"checked"},ht.createElement(It.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(An,{onSave:Jo,onCancel:hs,loading:No||ma||po}))};var yn=(0,yt.connect)(({problemset:it,loading:lt,globalSetting:ot,practiceSetting:xn,shixunsDetail:wi})=>({globalSetting:ot,loading:lt,practiceSetting:xn,problemset:it,shixunsDetail:wi}))(kt),pn=Ee(86566),mn={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:"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EdKiMcwX6HZHOvpFOraeTQDhtKjKEd7wGo0jAaAleapxt/NEDw519OtEg73Xj+Z0FEDuLcRe5T7Luh4tmj/2qV5uYrhZWlzbmFdtSyU1ebXIcTtmMU8tc/Mt175ir15PNK6ry6BNBGUyc/sV2A8J2/jqXAMTawBw+ScoDzxIun+K4GRcMogMAOZUexU+RaaiSV6tCRRp6/s8uVUc0o9qetpL5jAUW5ugpgS4GlFJjLgWukcv0gWc0PtPnp5Uo7eoojlSzD3fYXzJaDOkY6tlSnVdPx5QDilu2WMxIBK6kPO7caMJTrG+EelXCyIG40Unq/yPXSGyCUtSQOA1c1nVFuhFT6vhTxK82nmvhufwQBcLRgq6ZfR1OGP3/hRqsNCP7AgVAJAUfTWZXk92bFLQW8KurzpwWEavSDKjr5DyHp2IDwh9CyiTpW1ANFE3NFySYi/3H1gJiYx6In/HH1xJ94ayaA8CcOAGl+IBCUYzMoNaNgnDHMNkbV7eXy9r8Pil9JHqXa6+Yhcdw2lyvD39hS8YPydtOOpr1FghZTVkI7pf8/eEZf5Vj+hMIAAAAASUVORK5CYII=",Tn=Ee(46474),Xt=Ee(71418),fi=Ee(64165),Wn=Ee(54203),bn=Object.defineProperty,Dn=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,Pi=(it,lt,ot)=>lt in it?bn(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,ur=(it,lt)=>{for(var ot in lt||(lt={}))Jn.call(lt,ot)&&Pi(it,ot,lt[ot]);if(On)for(var ot of On(lt))Ki.call(lt,ot)&&Pi(it,ot,lt[ot]);return it},lo=(it,lt)=>Dn(it,Bi(lt)),jo=(it,lt)=>{var ot={};for(var xn in it)Jn.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&On)for(var xn of On(it))lt.indexOf(xn)<0&&Ki.call(it,xn)&&(ot[xn]=it[xn]);return ot},Oo=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const Hr=it=>{var lt=it,{globalSetting:ot,dispatch:xn,practiceSetting:wi}=lt,Yi=jo(lt,["globalSetting","dispatch","practiceSetting"]);const dr=(0,yt.useLocation)(),[xi]=(0,yt.useSearchParams)(),[Fn,Fi]=(0,ue.useState)(!1),[Yr,Po]=(0,ue.useState)({}),[kr,$r]=(0,ue.useState)(!0),[No,So]=(0,ue.useState)(!1),[po,lr]=(0,ue.useState)(null),ma=(0,ue.useRef)(!1),{id:Vo,updateIndex:mo,is_published:Fo,newQuestion:Pr}=wi,{challenge_list:gr=[]}=Yr;(0,ue.useEffect)(()=>{if(Vo)return Ur(),()=>{xn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}},[Vo,mo]),(0,ue.useEffect)(()=>{Mo()},[dr]);const Mo=()=>{const Cr=dr.pathname.split("/");(Cr.includes("newquestion")||Cr.includes("new")||xi.get("tabId"))&&(ma.current=!0)},Ur=()=>Oo(void 0,null,function*(){var Cr,Xo,Ha;$r(!0);const ls=yield(0,vt.n5)({id:Vo});if((Cr=ls==null?void 0:ls.challenge_list)!=null&&Cr.length){const hs=dr.pathname.split("/"),Ua=ls.challenge_list.find(pr=>String(pr.challenge_id)===hs[4]);if(hs.includes("newquestion")||hs.includes("new")){const pr=ls.challenge_list[((Xo=ls.challenge_list)==null?void 0:Xo.length)-1];xn({type:"practiceSetting/setParams",payload:{newQuestion:{st:hs.includes("new")?0:1,name:""}}}),lr(void 0),$n(pr)}else hs[4]&&Ua?Do(Ua,!1):Do(ls.challenge_list[0])}(Ha=ls==null?void 0:ls.challenge_list)!=null&&Ha.length||lr(null),Po(ls),$r(!1)}),Do=(Cr,Xo=!0)=>{if(lr(Cr.challenge_id),$n(Cr),Xo){const Ha=`/shixuns/${Vo}/edit/${Cr.challenge_id}/${Cr.st===1?"editquestion":"editcheckpoint"}`;yt.history.push(Ha)}},yo=(Cr,Xo)=>{Xo.stopPropagation();const{challenge_id:Ha}=Cr,ls=()=>Oo(void 0,null,function*(){var hs,Ua;if((yield(0,vt.rO)({id:Vo,challengesId:Ha})).status===1){const Ho=yield(0,vt.n5)({id:Vo});if(Po(Ho),Ha===po&&((hs=Ho.challenge_list)!=null&&hs.length)){Do(Ho.challenge_list[0]);return}(Ua=Ho.challenge_list)!=null&&Ua.length||(lr(null),ma.current=!0,$n({}),yt.history.push(`/shixuns/${Vo}/edit?tabId=level`))}});Ue.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:ls})},ca=(Cr,Xo,Ha)=>{const ls=Array.from(Cr),[hs]=ls.splice(Xo,1);return ls.splice(Ha,0,hs),ls},xa=(Cr,Xo)=>{if(!Cr.destination)return;const Ha=ca(Xo,Cr.source.index,Cr.destination.index);Po(lo(ur({},Yr),{challenge_list:Ha}));const ls=Ha.map(hs=>hs.challenge_id);(0,vt.xg)({id:Vo,ids:ls}).then(hs=>{hs.status!==0&&Po(lo(ur({},Yr),{challenge_list:Xo}))})},$n=Cr=>{xn({type:"practiceSetting/setParams",payload:{selectQuestionParams:Cr}})},wo=(Cr,Xo)=>Oo(void 0,null,function*(){if(Cr===po)return;yield Yo(),lr(Cr),$n(Xo),xn({type:"practiceSetting/setParams",payload:{newQuestion:null}});const Ha=`/shixuns/${Vo}/edit/${Cr}/${Xo.st===1?"editquestion":"editcheckpoint"}`;yt.history.push(Ha)}),Yo=()=>new Promise((Cr,Xo)=>{var Ha;(Ha=wi==null?void 0:wi.sideBar)!=null&&Ha.confirmLeave?Ue.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:()=>{xn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Cr()},onCancel:()=>{Xo()}}):Cr()}),Jo=Cr=>ue.createElement(ue.Fragment,null,ue.createElement(Wn.Z5,{onDragEnd:Xo=>xa(Xo,Cr)},ue.createElement(Wn.bK,{droppableId:"droppable"},(Xo,Ha)=>ue.createElement("div",lo(ur({ref:Xo.innerRef},Xo.droppableProps),{style:{width:"100%"}}),Cr.map((ls,hs)=>{const{st:Ua,name:pr,challenge_id:Ho}=ls;return ue.createElement(Wn._l,{key:Ho,draggableId:Ho.toString(),index:hs,isDragDisabled:Fo},(Wa,Ko)=>ue.createElement("div",lo(ur(ur({ref:Wa.innerRef},Wa.draggableProps),Wa.dragHandleProps),{className:po===Ho?mn.listActive:mn.list,onClick:()=>wo(Ho,ls)}),ue.createElement("span",{className:mn.s1},Ua===0?ue.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):ue.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),ue.createElement("span",{className:mn.s2},"\u7B2C",hs+1,"\u5173: ",pr),!Fo&&ue.createElement("span",{className:mn.s3,onClick:ts=>yo(ls,ts)},ue.createElement("i",{className:"iconfont icon-shanchu7"}))))})))),Pr&&ue.createElement("div",{className:mn.listActive},ue.createElement("span",{className:mn.s1},(Pr==null?void 0:Pr.st)===0?ue.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):ue.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),ue.createElement("span",{className:mn.s2},"\u7B2C",Cr.length+1,"\u5173: ",Pr==null?void 0:Pr.name)),!Fo&&ue.createElement("div",{className:mn.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--")),Qo=Cr=>Oo(void 0,null,function*(){yield Yo(),Cr==="new"?yt.history.push(`/shixuns/${Vo}/edit/new`):yt.history.push(`/shixuns/${Vo}/edit/newquestion`),Fi(!1),lr(void 0),xn({type:"practiceSetting/setParams",payload:{newQuestion:{st:Cr==="new"?0:1,name:""}}})}),ms=()=>{(0,Tn.gy)(xn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361")||Fi(!Fn)};return ue.createElement("div",{className:mn.level},ue.createElement("aside",{className:mn.left,style:{width:No?"0":"25%"}},ue.createElement("div",{className:mn.container},ue.createElement("div",{className:mn.title},"\u4EFB\u52A1\u5173\u5361(",gr.length,")"),ue.createElement("div",{className:mn.listWrap},kr?ue.createElement(Xt.Z,{size:"middle"}):gr.length||Pr?Jo(gr):ue.createElement(fi.Z,{image:Gn,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!No&&ue.createElement("div",{className:mn.btns},ue.createElement("aside",{className:mn.btnsWrap},ue.createElement("div",{style:{transform:Fn?"rotate(45deg)":"rotate(0deg)"},className:mn.icon,onClick:ms},"+"),ue.createElement("div",{className:mn.btn,style:{left:Fn?20:-154}},ue.createElement("div",{className:mn.d1,onClick:()=>Qo("new")},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),ue.createElement("div",{className:mn.d2,onClick:()=>Qo("newquestion")},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),ue.createElement("div",{className:No?mn.elseShrink:mn.shrink,onClick:()=>So(!No)},ue.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),ue.createElement("aside",{className:mn.right,id:"modal-level-question"},po===null&&ma.current?ue.createElement("div",{className:mn.addIcon},ue.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):ue.createElement(yt.Outlet,null)))};var da=(0,yt.connect)(({globalSetting:it,practiceSetting:lt})=>({globalSetting:it,practiceSetting:lt}))(Hr),zo=Ee(61621),Co=Ee(38854),xo=Ee(20834),Nr=Ee(58421),Be=Ee(5112),ya={title:"title___NTpKq",content:"content___oL0Iy",add:"add___L4cbC",colorBlue:"colorBlue___xRARA",radio:"radio___cfwvc"},to=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,Wi=(it,lt)=>{var ot={};for(var xn in it)jn.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&to)for(var xn of to(it))lt.indexOf(xn)<0&&Vi.call(it,xn)&&(ot[xn]=it[xn]);return ot},pi=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const qn=it=>{var lt=it,{shixunsDetail:ot,globalSetting:xn,loading:wi,dispatch:Yi,onReloadData:dr}=lt,xi=Wi(lt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]);const[Fn,Fi]=(0,ue.useState)(),[Yr,Po]=(0,ue.useState)([]);(0,ue.useEffect)(()=>{ot.actionTabs.key==="Collaborators-ChangeManager"&&kr()},[ot.actionTabs.key]);const kr=()=>pi(void 0,null,function*(){var po;const lr=yield Yi({type:"shixunsDetail/getChangeManager",payload:{id:(po=ot.actionTabs.params)==null?void 0:po.id}});Po(lr||[])}),$r=()=>{var po;Yi({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(po=ot.actionTabs.params)==null?void 0:po.id}}})},No=()=>pi(void 0,null,function*(){var po;if(!Fn){bt.ZP.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F");return}const lr=yield Yi({type:"shixunsDetail/changeManager",payload:{id:(po=ot.actionTabs.params)==null?void 0:po.id,user_id:Fn}});So(),lr&&(dr(),bt.ZP.info(lr.message))}),So=()=>{Yi({type:"shixunsDetail/setActionTabs",payload:{}}),Fi(null)};return ue.createElement(Ue.default,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",open:ot.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:wi.effects["shixunsDetail/changeManager"],onOk:No,onCancel:So},ue.createElement("div",null,ue.createElement("div",{className:ya.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",ue.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"),ue.createElement("div",{className:ya.content},Yr.length?ue.createElement(Be.ZP.Group,{value:Fn,onChange:po=>Fi(po.target.value)},Yr.map((po,lr)=>ue.createElement(Be.ZP,{className:ya.radio,key:lr,value:po.user_id},po.name))):ue.createElement("div",{className:ya.add},ue.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",ue.createElement("a",{className:ya.colorBlue,onClick:$r},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))};var nr=(0,yt.connect)(({shixunsDetail:it,loading:lt,globalSetting:ot})=>({shixunsDetail:it,globalSetting:ot,loading:lt}))(qn),en=Ee(99313),_t=Ee(47362),zt=Ee(88412);const{TabPane:Li}=en.default;var yr=({visible:it,onCancel:lt,onSelectGroup:ot,shixunId:xn,onSelectCollaborator:wi})=>ue.createElement(Ue.default,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",open:it,width:1100,centered:!0,keyboard:!1,onCancel:lt,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400},footer:null},ue.createElement(en.default,{defaultActiveKey:"1"},ue.createElement(Li,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},ue.createElement(_t.Z,{onCancel:lt,container_type:2,container_id:xn,onSelect:wi})),ue.createElement(Li,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},ue.createElement(zt.Z,{onCancel:lt,onSelect:ot})))),Oi={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"},Zn=Ee(84105),ki=Ee(61682),zr=Object.defineProperty,br=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Di=(it,lt,ot)=>lt in it?zr(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,En=(it,lt)=>{for(var ot in lt||(lt={}))Br.call(lt,ot)&&Di(it,ot,lt[ot]);if(br)for(var ot of br(lt))Pt.call(lt,ot)&&Di(it,ot,lt[ot]);return it},Yn=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const Mt=({shixunsDetail:it,globalSetting:lt,loading:ot,user:xn,dispatch:wi})=>{var Yi,dr,xi,Fn,Fi,Yr;const Po=(0,yt.useParams)(),kr=(0,ue.useRef)(),[$r,No]=(0,ue.useState)(0),[So,po]=(0,ue.useState)([]),[lr,ma]=(0,ue.useState)({id:null,page:1}),Vo=(dr=(Yi=xn.userInfo)==null?void 0:Yi.shixun)==null?void 0:dr.editable,mo=((xi=xn.userInfo)==null?void 0:xi.role)<=2||((Fi=(Fn=xn.userInfo)==null?void 0:Fn.shixun)==null?void 0:Fi.is_creator);(0,ue.useEffect)(()=>{kr.current=Po.id,lr.id=kr.current,ma(lr),Fo(lr)},[]);const Fo=$n=>Yn(void 0,null,function*(){const wo=yield wi({type:"shixunsDetail/getCollaboratorsData",payload:$n});wo&&(po(wo.members||[]),No(wo.member_count))}),Pr=()=>Yn(void 0,null,function*(){lr.page=1,ma(lr);const $n=(0,ki.g)();yield wi({type:"user/getUserInfo",payload:$n}),yield Fo(lr)}),gr=$n=>{lr.page=$n,ma(lr),Fo(lr)},Mo=$n=>{Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ue.createElement("div",{className:Oi.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:()=>Yn(void 0,null,function*(){var wo;const Yo=yield wi({type:"shixunsDetail/deleteCollaborators",payload:{id:kr.current,userId:$n}});if(((wo=xn.userInfo)==null?void 0:wo.user_id)===$n){yt.history.push("/shixuns");return}bt.ZP.info(Yo==null?void 0:Yo.message),lr.page=1,ma(lr),Fo(lr)})})},Ur=()=>{wi({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:kr.current}}})};function Do($n,wo,Yo,Jo){return Yn(this,null,function*(){yield wi({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:$n,user_id:wo,editable:Yo?0:1}}),Fo(lr)})}const yo=()=>{wi({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:kr.current}}})};function ca(){wi({type:"shixunsDetail/setActionTabs",payload:{}})}const xa={visible:it.actionTabs.key==="Collaborators-AddCollaborator",onCancel:ca,shixunId:kr.current,onSelectCollaborator:$n=>Yn(void 0,null,function*(){ca(),(yield wi({type:"shixunsDetail/addCollaborator",payload:{id:kr.current,user_ids:$n}}))&&(bt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Pr())}),onSelectGroup:$n=>Yn(void 0,null,function*(){ca(),(yield wi({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:kr.current,group_id:$n.group_id}}))&&(bt.ZP.success("\u6DFB\u52A0\u6210\u529F"),Pr())})};return ue.createElement("section",null,ue.createElement("div",{className:Oi.wrap},ue.createElement("div",{className:Oi.content},((Yr=it.detail)==null?void 0:Yr.identity)<5&&ue.createElement("div",{className:Oi.head},ue.createElement("span",{className:Oi.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",$r,"\u4EBA\uFF09"),ue.createElement("div",null,mo&&ue.createElement(Me.ZP,{type:"primary",ghost:!0,className:Oi.button,style:{marginRight:"20px"},onClick:Ur},"\u66F4\u6362\u7BA1\u7406\u5458"),Vo&&ue.createElement(Me.ZP,{type:"primary",className:Oi.button,style:{marginRight:"40px"},onClick:yo},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),ue.createElement("div",{className:Oi.list},ue.createElement(zo.Z,{loading:ot.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},So.map(($n,wo)=>{var Yo,Jo,Qo,ms,Cr,Xo,Ha,ls;return ue.createElement("div",{style:{display:"inline-block",width:"50%"}},ue.createElement("div",{className:Oi.itemWrap,key:wo},ue.createElement("a",{href:(Yo=$n.user)==null?void 0:Yo.user_url,target:"_blank",className:Oi.imgWrap},ue.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Oi.img,src:`${ti.Z.IMG_SERVER}/images/${(Jo=$n.user)==null?void 0:Jo.image_url}`}),((Qo=$n.user)==null?void 0:Qo.shixun_manager)&&ue.createElement("span",{className:Oi.manager},"\u521B\u5EFA\u8005")),ue.createElement("div",{className:Oi.itemContent},ue.createElement("p",{className:Oi.nameWrap},ue.createElement("a",{href:$n.user.user_url,target:"_blank",className:Oi.name},(ms=$n.user)==null?void 0:ms.name,$n.user.user_id===((Cr=xn.userInfo)==null?void 0:Cr.user_id)?ue.createElement("span",null,"\u6211"):null),ue.createElement("div",{className:Oi.actionGroup},mo?(Xo=$n.user)!=null&&Xo.shixun_manager?null:ue.createElement(Co.Z,{dropdownRender:()=>ue.createElement(xo.default,{selectedKeys:[$n.editable?"1":"2"],onClick:()=>{var hs;Do(it.detail.identifier,$n.user.user_id,$n.editable,(hs=$n.user)==null?void 0:hs.name)}},ue.createElement(xo.default.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),ue.createElement(xo.default.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},ue.createElement("div",null,$n.editable?ue.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):ue.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",ue.createElement(Zn.Z,{style:{fontSize:"14px",color:"#888888"}}))):$n.editable?ue.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):ue.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((Ha=$n.user)!=null&&Ha.shixun_manager)&&Vo?ue.createElement("a",{className:Oi.deletetitle,onClick:()=>{var hs;return Mo((hs=$n.user)==null?void 0:hs.user_id)}},"\u5220\u9664"):null)),ue.createElement("p",{className:Oi.schoolWrap},ue.createElement("span",{className:Oi.school},(ls=$n.user)==null?void 0:ls.school_name)))))})))),$r>10&&ue.createElement("div",{className:Oi.countWrap},ue.createElement(Nr.Z,{showQuickJumper:!1,showSizeChanger:!1,total:$r,onChange:$n=>gr($n),pageSize:10,current:lr.page}))),ue.createElement(nr,{onReloadData:Pr}),ue.createElement(yr,En({},xa)))};var Ft=(0,yt.connect)(({shixunsDetail:it,loading:lt,globalSetting:ot,user:xn})=>({shixunsDetail:it,globalSetting:ot,user:xn,loading:lt}))(Mt),sn=Ee(10149),Sr=Ee(57809),Ii=Ee(6848),Ri=Ee(78673),ai=Ee(14996),Ti=Ee(36723),Jr=Ee(14636),Qr={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"},Lo=Ee(9583),Ln=Ee(55508),ja=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const co=({newShixuns:it,user:lt,dispatch:ot,visible:xn,onOk:wi,onCancel:Yi,useId:dr=null,identifier:xi,shixun_environment_id:Fn,tab_type:Fi})=>{var Yr,Po;const[kr,$r]=(0,ue.useState)(null),[No,So]=(0,ue.useState)({}),[po,lr]=(0,ue.useState)(""),{environmentData:ma}=it,{frequence_image:Vo=[],environments:mo=[],other_image:Fo=[]}=ma,{name:Pr,description:gr}=No;(0,ue.useEffect)(()=>{xn&&(ot({type:"newShixuns/getEnvironmentData",payload:{tab_type:Fi}}),lr(""),$r(dr))},[xn,dr]),(0,ue.useEffect)(()=>{it.actionTabs.key==="NewShixuns-Apply"&&Yi()},[(Yr=it==null?void 0:it.actionTabs)==null?void 0:Yr.key]),(0,ue.useEffect)(()=>{kr!==null&&Mo()},[kr]);const Mo=()=>ja(void 0,null,function*(){const Ur=yield(0,vt.Q1)({mirror_repository_id:kr,identifier:xi,shixun_environment_id:Fn});So(Ur.data)});return ue.createElement(ue.Fragment,null,ue.createElement(Ue.default,{title:"\u9009\u62E9\u5B9E\u9A8C\u955C\u50CF",open:xn,width:1e3,destroyOnClose:!0,centered:!0,onCancel:Yi,className:Qr.modal,footer:null},ue.createElement("div",{className:Qr.mirrorModal},ue.createElement(Jr.Z,{dispatch:ot,value:kr,data:mo,otherData:Fo,tags:Vo,onChange:Ur=>$r(Ur),onSearchWord:Ur=>lr(Ur),tab_type:Fi}),ue.createElement("div",{className:Qr.right},ue.createElement("header",null,ue.createElement("div",{className:Qr.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",ue.createElement("span",{dangerouslySetInnerHTML:{__html:kr===null?"\u2014 \u2014":(Po=Pr||"")==null?void 0:Po.replace(new RegExp(po==null?void 0:po.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}}))),ue.createElement("div",{className:Qr.content},kr===null&&ue.createElement(fi.Z,{image:Ti,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),kr!==null&&ue.createElement("div",{className:Qr.des},ue.createElement(pt.Z,{value:gr,highlightKeywords:po})),ue.createElement("div",{className:Qr.btns},ue.createElement(Me.ZP,{onClick:()=>{$r(null),So({}),Yi()},className:Qr.cancel},"\u53D6\u6D88 "),ue.createElement(Me.ZP,{onClick:()=>{wi(No)},className:Qr.confirm,type:"primary"},"\u4FDD\u5B58 ")))))),ue.createElement(Lo.Z,null),ue.createElement(Ln.Z,null))};var Kr=(0,yt.connect)(({newShixuns:it,globalSetting:lt,user:ot})=>({newShixuns:it,globalSetting:lt,user:ot}))(co),on={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"},Vt=Ee(43428),cn=Ee(46400),Jt=Ee(60324),zn=Ee(88522),er=Ee(5083),sr=Ee(5871),li=Ee(23954),Ci={footerWrap:"footerWrap___lXI4I"},Qn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,In=(it,lt)=>{var ot={};for(var xn in it)an.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&Qn)for(var xn of Qn(it))lt.indexOf(xn)<0&&Vr.call(it,xn)&&(ot[xn]=it[xn]);return ot},Or=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const Tr=ke.default.TextArea,fr=it=>{var lt=it,{shixunsDetail:ot,globalSetting:xn,loading:wi,dispatch:Yi,onFinish:dr=()=>{}}=lt,xi=In(lt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]);const[Fn]=Ae.default.useForm(),Fi=Po=>Or(void 0,null,function*(){var kr;const $r=yield Yi({type:"shixunsDetail/getCustomScript",payload:{id:(kr=ot.actionTabs.params)==null?void 0:kr.id,compile:Po.execute,excutive:Po.compile}});Yr(),$r&&dr($r==null?void 0:$r.shixun_script)}),Yr=()=>{Yi({type:"shixunsDetail/setActionTabs",payload:{}})};return ue.createElement(Ue.default,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",open:ot.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Yr},ue.createElement(Ae.default,{form:Fn,scrollToFirstError:!0,layout:"vertical",onFinish:Fi},ue.createElement(Ae.default.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},ue.createElement(Tr,{rows:4})),ue.createElement(Ae.default.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},ue.createElement(Tr,{rows:4})),ue.createElement("div",{className:Ci.footerWrap},ue.createElement(Ae.default.Item,null,ue.createElement(Me.ZP,{className:"mr5",size:"middle",onClick:Yr},"\u53D6\u6D88"),ue.createElement(Me.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:wi.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};var Bo=(0,yt.connect)(({shixunsDetail:it,loading:lt,globalSetting:ot})=>({shixunsDetail:it,globalSetting:ot,loading:lt}))(fr),Gr=Ee(24065),Ui=Ee(61186),xr=Ee.n(Ui),ro=Ee(29679),Cn=Ee(59301),hi=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const Ge="YYYY-MM-DD HH:mm",To=({shixunsDetail:it,visible:lt,onOk:ot,onCancel:xn,dispatch:wi,is_published:Yi,id:dr,has_relation:xi,environment:Fn=[],verifyModal:Fi})=>{var Yr,Po,kr;const $r=(0,yt.useParams)(),[No,So]=(0,ue.useState)(1),[po,lr]=(0,ue.useState)(!0),[ma,Vo]=(0,ue.useState)(!1),[mo,Fo]=(0,ue.useState)(null),[Pr,gr]=(0,ue.useState)(),[Mo,Ur]=(0,ue.useState)(),[Do,yo]=(0,ue.useState)([]),[ca,xa]=(0,ue.useState)(!1),[$n,wo]=(0,ue.useState)(""),[Yo,Jo]=(0,ue.useState)(null),[Qo]=Ae.default.useForm(),[ms,Cr]=(0,ue.useState)([]),[Xo,Ha]=(0,ue.useState)(""),[ls,hs]=(0,ue.useState)([{id:1,name:"\u8BC4\u6D4B\u811A\u672C\u8BBE\u7F6E"},{id:2,name:"\u5B9E\u9A8C\u73AF\u5883\u8BBE\u7F6E"}]),Ua=(0,ue.useRef)((0,Xn.throttle)(eo=>Ho(eo),1200,{leading:!0,trailing:!0})).current;(0,ue.useEffect)(()=>{var eo;((0,Gr.Ny)()||(eo=it==null?void 0:it.detail)!=null&&eo.manager_of_shixun)&&hs([{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,ue.useEffect)(()=>{dr&<&&pr()},[dr,lt]);const pr=(eo=null)=>hi(void 0,null,function*(){var qa,sl,Kl;eo||lr(!0);const La=yield(0,Ct.ZP)(`/api/shixuns/${dr}/get_shixun_env_setting.json`,{method:"get",params:{shixun_environment_id:eo}});if(La.status===0&&!eo){const{data:Ro}=La;console.log("data",Ro),Fo((Ro==null?void 0:Ro.shixun_environment_id)||null),gr((Ro==null?void 0:Ro.evaluate_script)||""),Ur((Ro==null?void 0:Ro.choice_standard_scripts)||null),yo((Ro==null?void 0:Ro.standard_scripts)||[]),xa(((qa=Ro.shixun)==null?void 0:qa.close_internet)||!1),wo((sl=Ro.shixun)==null?void 0:sl.survival_time);let na=(Kl=Ro.shixun)==null?void 0:Kl.important_shixun_configs;Qo.setFieldsValue({identifier:(na==null?void 0:na.identifier)||"",people_number:(na==null?void 0:na.people_number)||"",school_id:(na==null?void 0:na.school_name)||"",times:na!=null&&na.start_time&&(na!=null&&na.end_time)?[xr()(na==null?void 0:na.start_time),xr()(na==null?void 0:na.end_time)]:["",""]}),Ha((na==null?void 0:na.verify_reason)||""),Jo((na==null?void 0:na.process)||null),yield Ho(na==null?void 0:na.school_name)}if(La.status===0&&eo){const{data:Ro}=La;gr((Ro==null?void 0:Ro.evaluate_script)||""),Ur(null),yo((Ro==null?void 0:Ro.standard_scripts)||[]),yield Ho()}lr(!1)}),Ho=eo=>hi(void 0,null,function*(){const qa=yield wi({type:"account/getSchoolOption",payload:{keyword:eo,limit:99999,display_aliases:!0}});Cr(qa==null?void 0:qa.schools)}),Wa=()=>{Fi()||wi({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:$r.id}}})},Ko=eo=>hi(void 0,null,function*(){const qa=yield wi({type:"shixunsDetail/getScriptContent",payload:{id:$r.id,script_id:eo}});qa&&gr(qa.content)}),ts=eo=>{Ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Cn.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",Cn.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>hi(void 0,null,function*(){yield Ko(eo),Ur(eo),Ue.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:Cn.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")})})})},fs=(eo=!1,qa=1)=>hi(void 0,null,function*(){var sl,Kl,La;let Ro;if(No===1&&(Vo(!0),Ro=yield(0,Ct.ZP)(`/api/shixuns/${$r.id}/update_evaluate_script_setting.json`,{method:"put",body:{shixun_environment_id:mo,mirror_script_id:Mo,evaluate_script:Pr,sync_origin_shixun:eo}})),No===2){Vo(!0);let na={close_internet:ca,survival_time:$n,sync_origin_shixun:eo};Ro=yield(0,Ct.ZP)(`/api/shixuns/${$r.id}/update_environment_setting.json`,{method:"put",body:na})}if(No===3){let na=Qo.getFieldsValue();yield Qo.validateFields(),Vo(!0);let Yl={close_internet:ca,survival_time:$n,sync_origin_shixun:eo};Yl.important_shixun_configs={identifier:na==null?void 0:na.identifier,people_number:na==null?void 0:na.people_number,school_id:(sl=ms.find(Ru=>Ru.name===(na==null?void 0:na.school_id)))==null?void 0:sl.id,start_time:xr()(na==null?void 0:na.times[0]).format("YYYY-MM-DD HH:mm"),end_time:xr()(na==null?void 0:na.times[1]).format("YYYY-MM-DD HH:mm")},Ro=yield(0,Ct.ZP)(`/api/shixuns/${$r.id}/resources_first_ensure.json`,{method:"post",body:Yl})}Ro.status===0&&((!((Kl=it==null?void 0:it.detail)!=null&&Kl.copy_for_exercise)||No===3)&&bt.ZP.success(`${No==3?"\u63D0\u4EA4\u7533\u8BF7\u6210\u529F":"\u4FDD\u5B58\u6210\u529F"}`),(La=it==null?void 0:it.detail)!=null&&La.copy_for_exercise&&No!=3&&(0,Si.m)(wi,it,dr,qa),pr(),ot()),Vo(!1)}),al=(eo,qa)=>{const sl=/^[^0-9][a-zA-Z0-9]*$/,Kl=/^.{4,30}$/;return qa&&!/^[a-zA-Z0-9]+$/.test(qa)?Promise.reject("\u8F93\u5165\u5185\u5BB9\u53EA\u80FD\u5305\u542B\u6570\u5B57\u548C\u5B57\u6BCD"):qa&&!sl.test(qa)?Promise.reject("\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"):qa&&!Kl.test(qa)?Promise.reject("\u8F93\u5165\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u57284\u523030\u4E2A\u5B57\u7B26\u4E4B\u95F4"):Promise.resolve()},Xs=eo=>parseInt(eo||"0",10),Os=(eo,qa)=>{if(qa&&qa.length===2){const[sl,Kl]=qa;if(!sl||!Kl)return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8D77\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"))}return Promise.resolve()};return Cn.createElement(Cn.Fragment,null,Cn.createElement(Vt.Z,{title:null,width:1e3,placement:"right",closable:!1,onClose:xn,open:lt},Cn.createElement("div",{className:on.content},Cn.createElement(zo.Z,{loading:po,active:!0},Cn.createElement(dt.Z,{className:"mt10",justify:"space-between"},Cn.createElement("b",{className:"c-grey-333 font16"},"\u8BBE\u7F6E"),Cn.createElement("i",{onClick:xn,className:"iconfont icon-guanbi11 current",style:{color:"#979797"}})),Cn.createElement("div",{className:on.tabs},ls.map(eo=>{const{name:qa,id:sl}=eo;return Cn.createElement("div",{key:sl,className:No===sl?on.active:"",onClick:()=>So(sl)},qa)})),No===1&&Cn.createElement(ue.Fragment,null,Cn.createElement(cn.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}),Cn.createElement(dt.Z,{align:"middle",className:"mt20"},Cn.createElement("span",{className:"c-grey-333 font16"},"\u8FD0\u884C\u73AF\u5883"),Cn.createElement(Sr.default,{onClick:Fi,getPopupContainer:eo=>eo.parentNode,bordered:!1,className:"ml10",style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},value:mo,onChange:eo=>{Fo(eo),pr(eo)},showArrow:!0,placeholder:"\u5B9E\u9A8C\u73AF\u5883"},(Yr=Fn.filter(eo=>eo.id!==0))==null?void 0:Yr.map((eo,qa)=>Cn.createElement(Sr.default.Option,{value:eo.id,name:eo.name,key:eo.id},eo.name)))),Cn.createElement(dt.Z,{align:"middle",className:"mt20"},Cn.createElement("span",{className:"c-grey-333 font16"},"\u8BC4\u6D4B\u811A\u672C"),Cn.createElement(Sr.default,{onClick:Fi,getPopupContainer:eo=>eo.parentNode,bordered:!1,className:"ml10 mr10",style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0,value:Mo,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:eo=>{ts(eo)}},(Do||[]).map((eo,qa)=>Cn.createElement(Sr.default.Option,{value:parseInt(eo.id),name:eo.scptname,key:qa},eo.scptname))),Cn.createElement("span",{className:on.explain,onClick:Wa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),Cn.createElement(Jt.Z,{className:on.popover,content:Cn.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",Cn.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",Cn.createElement("br",null),"challengeProgramNames",Cn.createElement("br",null),"sourceClassNames",Cn.createElement("br",null),Cn.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",Cn.createElement("br",null),Cn.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",Cn.createElement("br",null),"src/step1/HelloWorld.java",Cn.createElement("br",null),"src/step2/Other.java",Cn.createElement("br",null),Cn.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",Cn.createElement("br",null),"step1.HelloWorld",Cn.createElement("br",null),"step2.Other",Cn.createElement("br",null),Cn.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",Cn.createElement("br",null),'ff challengeProgramNames=("src/step1/',Cn.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',Cn.createElement("br",null),'sourceClassNames=("step1.HelloWorld',Cn.createElement("br",null),'" "step2.Other")',Cn.createElement("br",null),Cn.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},Cn.createElement("span",{style:{color:"#999",fontSize:14,marginTop:2,marginLeft:4},className:"iconfont icon-tishi11 c-grey-999"}))),Cn.createElement(li.ZP,{style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"30px"},language:"shell",theme:"vs-light",value:Pr,options:{readOnly:Yi},onChange:eo=>{gr(eo)}})),No===2&&Cn.createElement("div",{style:{flex:1,overflowY:"auto"}},Cn.createElement(dt.Z,{align:"middle",className:"mt20"},Cn.createElement("span",{className:"c-grey-333 font16 ml30 mr10"},"\u5B9E\u8BAD\u5BB9\u5668\u7F51\u7EDC"),Cn.createElement(It.default,{checked:ca,onChange:eo=>xa(eo.target.checked)},Cn.createElement("span",{className:"c-grey-333 font14"},"\u5173\u95ED\u5916\u7F51"),Cn.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"))),Cn.createElement(dt.Z,{align:"middle",className:"mt20"},Cn.createElement("span",{className:"c-grey-333 font16 mr10"},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F"),Cn.createElement(ke.default,{bordered:!1,value:$n,onChange:eo=>wo(eo.target.value),style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4}}),Cn.createElement("span",{className:"ml10 c-grey-999 font14"},"\u5206"))),No===3&&((0,Gr.Ny)()||((Po=it==null?void 0:it.detail)==null?void 0:Po.manager_of_shixun))&&Cn.createElement("div",{style:{flex:1,overflowY:"auto"}},Cn.createElement(dt.Z,{align:"middle",className:"mt20"},Cn.createElement(Ae.default,{form:Qo,layout:"horizontal",className:on.zybzForm},Cn.createElement(dt.Z,{align:"middle"},Cn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:55}},Cn.createElement("span",{className:on.must},"*"),"\u4FDD\u969C\u6807\u8BC6"),Cn.createElement(Ae.default.Item,{label:"",name:"identifier",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"},{validator:al}]},Cn.createElement(ke.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"})),Cn.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",Cn.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")),Cn.createElement(dt.Z,{align:"middle",className:"mt25"},Cn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:7}},Cn.createElement("span",{className:on.must},"*"),"\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"),Cn.createElement("div",{style:{position:"relative"}},Cn.createElement(Ae.default.Item,{label:"",name:"school_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"}]},Cn.createElement(zn.Z,{bordered:!1,style:{width:300,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},onChange:Ua,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"},(kr=ms==null?void 0:ms.filter(eo=>(eo==null?void 0:eo.id)!==0))==null?void 0:kr.map((eo,qa)=>Cn.createElement(Sr.default.Option,{key:qa+1,title:eo==null?void 0:eo.name,value:eo==null?void 0:eo.name},eo==null?void 0:eo.name)))),Cn.createElement("span",{className:on.selecticon},Cn.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Cn.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"}))))),Cn.createElement(dt.Z,{align:"middle",className:"mt25"},Cn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:55}},Cn.createElement("span",{className:on.must},"*"),"\u4FDD\u969C\u65F6\u95F4"),Cn.createElement("div",{className:on.graaytitle},Cn.createElement(Ae.default.Item,{label:"",name:"times",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"},{validator:Os}]},Cn.createElement(er.default.RangePicker,{disabledDate:eo=>eo&&eo<xr()().startOf("days"),className:`${on.dataPicker}`,format:Ge,showTime:{format:"HH:mm"},bordered:!1,allowClear:!1,onChange:eo=>{if(eo&&eo[0]&&eo[1]){const qa=eo[0].isBefore(xr()())?xr()():eo[0];Qo.setFieldValue("times",[qa,eo[1]])}else Qo.setFieldValue("times",eo)}})))),Cn.createElement(dt.Z,{align:"middle",className:"mt25"},Cn.createElement("span",{className:"c-grey-333 font16 mr10",style:{marginLeft:55}},Cn.createElement("span",{className:on.must},"*"),"\u4FDD\u969C\u4EBA\u6570"),Cn.createElement(Ae.default.Item,{label:"",name:"people_number",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570"}]},Cn.createElement(sr.Z,{parser:Xs,style:{width:200},placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",min:1})))),Cn.createElement("div",{className:`${on.examineStatus} mt25`},Yo>=1&&Cn.createElement("div",null," ",Cn.createElement(ro.Z,{className:on.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"),Yo>=2&&Yo!=3&&Cn.createElement("div",null," ",Cn.createElement(ro.Z,{className:on.suc_status})," \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"),Yo==3&&Cn.createElement("div",null," ",Cn.createElement(Mi.Z,{className:on.fail_status}),"\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ",Cn.createElement("span",{title:Xo,className:on.bohui},Xo),") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB",Cn.createElement("span",{className:on.contacts},Cn.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Cn.createElement("div",{className:on.contacts_img}))),Yo>=4&&Yo!=5&&Yo!=7&&Cn.createElement("div",null," ",Cn.createElement(ro.Z,{className:on.suc_status})," \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"),(Yo==5||Yo==7)&&Cn.createElement("div",null," ",Cn.createElement(Mi.Z,{className:on.fail_status}),"\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB",Cn.createElement("span",{className:on.contacts},Cn.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Cn.createElement("div",{className:on.contacts_img}))),Yo>5&&Cn.createElement("div",null," ",Cn.createElement(ro.Z,{className:on.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F")))),Cn.createElement("div",{className:on.btns},Cn.createElement(Me.ZP,{onClick:xn},"\u53D6\u6D88"),Cn.createElement(Me.ZP,{disabled:No==3&&[2,4,5].includes(Yo),onClick:()=>hi(void 0,null,function*(){var eo,qa;if(No===1&&!mo){bt.ZP.warning("\u8BF7\u9009\u62E9\u8FD0\u884C\u73AF\u5883");return}(eo=it==null?void 0:it.detail)!=null&&eo.is_fork_from_creator&&((qa=it==null?void 0:it.detail)!=null&&qa.copy_for_exercise)&&No!=3&&(Fn.filter(sl=>sl.id===mo)[0].has_relation&&No===1||No===2)?wi({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"environment",fn:(sl,Kl)=>{fs(sl,Kl)},zIndex:1e4}}):fs()}),loading:ma,type:"primary",className:"ml20"},No==3?"\u63D0\u4EA4\u7533\u8BF7":"\u4FDD\u5B58"))))),Cn.createElement(Bo,{onFinish:eo=>gr(eo)}))};var no=(0,yt.connect)(({shixunsDetail:it})=>({shixunsDetail:it}))(To),rr=Ee(48843),qi=Ee(25510),Qi={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"},oa=Ee(76895),ys=Ee(1535),bs=Ee(46539),_o=Ee(43181),Ea={list:"list___p00l5",head:"head___JcQe0",row:"row___kLpLL"},za=Ee(59301),Mr=Object.defineProperty,Ir=Object.defineProperties,gi=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,Ws=Object.prototype.propertyIsEnumerable,Xa=(it,lt,ot)=>lt in it?Mr(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,la=(it,lt)=>{for(var ot in lt||(lt={}))Ba.call(lt,ot)&&Xa(it,ot,lt[ot]);if(ho)for(var ot of ho(lt))Ws.call(lt,ot)&&Xa(it,ot,lt[ot]);return it},Ta=(it,lt)=>Ir(it,gi(lt)),ll=({showError:it,value:lt,onChange:ot,optionsLevelList:xn})=>{const[wi,Yi]=(0,ue.useState)([]);(0,ue.useEffect)(()=>{if(!lt.length){Yi([{command:"",challenge_ids:[]}]);return}Yi(lt)},[JSON.stringify(lt)]);const dr=(xi,Fn,Fi)=>{let Yr=JSON.parse(JSON.stringify(wi));Fn==="add"?Yr.push({command:"",challenge_ids:[-1]}):Fn==="delete"?Yr.splice(Fi,1):Yr[Fi][Fn]=xi,Yi(Yr),ot(Yr)};return console.log(wi,"value2"),za.createElement("div",{className:Ea.list},za.createElement("div",{className:Ea.head},za.createElement("div",{style:{width:400}},"\u547D\u4EE4"),za.createElement("div",null,"\u5E94\u7528\u5173\u5361")),wi==null?void 0:wi.map((xi,Fn)=>{var Fi,Yr,Po;let kr=xn.map(($r,No)=>{const So=`\u7B2C${No+1}\u5173\uFF1A${$r.name}`;let po=So,lr=!1;return $r.st===1&&(po=za.createElement(Ii.Z,{placement:"left",title:"\u7406\u8BBA\u9898\u5173\u5361\u65E0\u6CD5\u89E6\u53D1\u547D\u4EE4"},So),lr=!0),Ta(la({},$r),{value:$r.challenge_id,label:po,disabled:lr})});return kr=[{label:"\u6240\u6709\u5173\u5361",value:-1},...kr],za.createElement(dt.Z,{wrap:!1,align:"middle",style:{position:"relative"},className:Fn<wi.length-1?"mb20":"",key:Fn},it&&za.createElement(za.Fragment,null,!xi.command&&!!((Fi=xi.challenge_ids)!=null&&Fi.length)&&za.createElement("div",{style:{position:"absolute",zIndex:1,left:0,bottom:-18,color:"#FF0000",fontSize:12}},"\u8BF7\u8F93\u5165\u89E6\u53D1\u547D\u4EE4"),xi.command&&!((Yr=xi.challenge_ids)!=null&&Yr.length)&&za.createElement("div",{style:{position:"absolute",zIndex:1,left:420,bottom:-18,color:"#FF0000",fontSize:12}},"\u8BF7\u9009\u62E9\u5E94\u7528\u5173\u5361")),za.createElement(ke.default,{value:xi==null?void 0:xi.command,onChange:$r=>dr($r.target.value,"command",Fn),bordered:!1,placeholder:"\u4F8B\u5982\uFF1Amysql -uroot -p123123 -h127.0.0.1",style:{width:400,height:50,background:"#F5F5F5",borderRadius:4}}),za.createElement(Sr.default,{options:kr,getPopupContainer:$r=>$r.parentNode,value:xi==null?void 0:xi.challenge_ids,onChange:$r=>{var No,So;let po=$r;!((No=xi==null?void 0:xi.challenge_ids)!=null&&No.includes(-1))&&($r!=null&&$r.includes(-1))&&(po=[-1]),(So=xi==null?void 0:xi.challenge_ids)!=null&&So.includes(-1)&&($r!=null&&$r.includes(-1))&&(po=$r==null?void 0:$r.filter(lr=>lr!==-1)),dr(po,"challenge_ids",Fn)},mode:"multiple",maxTagTextLength:(Po=xi==null?void 0:xi.challenge_ids)!=null&&Po.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"}}),za.createElement(dt.Z,{wrap:!1},za.createElement("i",{onClick:()=>dr("","add",Fn),style:{color:"#3061D0"},className:"iconfont icon-tianjiatimu font20 current ml20"}),Fn!==0&&za.createElement("i",{onClick:()=>dr("","delete",Fn),style:{color:"#E30000"},className:"iconfont icon-shanjian font20 ml20"})))}))},rn=Ee(59301),Va=Object.defineProperty,tn=Object.defineProperties,Ss=Object.getOwnPropertyDescriptors,yu=Object.getOwnPropertySymbols,fl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,is=(it,lt,ot)=>lt in it?Va(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,kl=(it,lt)=>{for(var ot in lt||(lt={}))fl.call(lt,ot)&&is(it,ot,lt[ot]);if(yu)for(var ot of yu(lt))Vl.call(lt,ot)&&is(it,ot,lt[ot]);return it},Nl=(it,lt)=>tn(it,Ss(lt)),ga=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const gl=Sr.default.Option,Vc=5,du=({practiceSetting:it,dispatch:lt,globalSetting:ot,shixunsDetail:xn,user:wi})=>{var Yi,dr,xi,Fn,Fi,Yr,Po,kr,$r,No;const{id:So,is_published:po}=it,[lr,ma]=(0,ue.useState)([]),[Vo,mo]=(0,ue.useState)(null),[Fo,Pr]=(0,ue.useState)([]),[gr,Mo]=(0,ue.useState)([]),Ur=(0,ue.useRef)(null),[Do,yo]=(0,ue.useState)({}),ca=(0,ue.useRef)({}),xa=(0,ue.useRef)({}),{shixun_environment:$n={},mirror_repository:wo={},small_type:Yo=[],new_service_configs:Jo=[],network_mode_list:Qo=[],boosters:ms=[]}=Do,[Cr,Xo]=(0,ue.useState)(""),[Ha,ls]=(0,ue.useState)("\u8BF7\u8F93\u5165\u7AEF\u53E3"),[hs,Ua]=(0,ue.useState)(!1),[pr,Ho]=(0,ue.useState)(!1),[Wa,Ko]=(0,ue.useState)(!0),[ts,fs]=(0,ue.useState)(!0),[al,Xs]=(0,ue.useState)(!1),[Os,eo]=(0,ue.useState)(!1),[qa,sl]=(0,ue.useState)(!1),[Kl,La]=(0,ue.useState)(!1),[Ro,na]=(0,ue.useState)(0),[Yl,Ru]=(0,ue.useState)(!1),[tc,fa]=(0,ue.useState)({}),[Za,Eo]=(0,ue.useState)({}),[Rr,qo]=(0,ue.useState)({}),[Ka,Qs]=(0,ue.useState)(""),[Sc,Xl]=(0,ue.useState)(!1),[sc,Jl]=(0,ue.useState)(!1),[nd,mr]=(0,ue.useState)(!1),[vs,Aa]=(0,ue.useState)({}),[qs,Uu]=(0,ue.useState)({}),[Zs,ru]=(0,ue.useState)([]),gd=(0,ue.useRef)([]);console.log("--1111-",ms,Zs);const Vd=[{id:1,name:"\u901A\u7528\u4E91"},{id:2,name:"\u4E13\u6709\u4E91"}],of=[{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"}],bu=[{id:1,name:"VNC"},{id:2,name:"RDP"}],Ef=[{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"}],ng=(gr==null?void 0:gr.find(Rt=>Rt.id===$n.instance_startup_template_id))||{},{desc:Nf,virt_type:nh}=ng,af=((Yi=Fo==null?void 0:Fo.find(Rt=>Rt.id===($n==null?void 0:$n.private_cloud_id)))==null?void 0:Yi.cloud_type)===1,ih=((dr=Fo==null?void 0:Fo.find(Rt=>Rt.id===($n==null?void 0:$n.private_cloud_id)))==null?void 0:dr.cloud_type)===4;(0,ue.useEffect)(()=>(window.addEventListener("click",bd),()=>{window.removeEventListener("click",bd)}),[]),(0,ue.useEffect)(()=>{sf(),Gh(),vh(),Vh()},[]),(0,ue.useEffect)(()=>{(0,Xn.isEqual)(xa.current,Do)?lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}):lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}),ca.current=Do},[Do]);const Js=()=>ga(void 0,null,function*(){var Rt,ii,Ji,or;const vr=yield(0,Ct.ZP)("/api/shixuns/new.json",{method:"get",params:{tab_type:(Rt=Ef[Number(Ro)])==null?void 0:Rt.type}});(vr==null?void 0:vr.status)===0&&(((Ji=(ii=vr==null?void 0:vr.data)==null?void 0:ii.environments)==null?void 0:Ji.length)===0&&((or=vr==null?void 0:vr.data)==null?void 0:or.other_image.length)===0?Ru(!0):Ru(!1))});(0,ue.useEffect)(()=>{Js()},[Ro]);const zh=()=>{var Rt;const ii=()=>{yt.history.push(`/shixuns/${So}/challenges`),lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Rt=it==null?void 0:it.sideBar)!=null&&Rt.confirmLeave?Ue.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()}}):ii()},sf=()=>ga(void 0,null,function*(){var Rt;const ii=yield(0,Ct.ZP)(`/api/shixuns/${So}/get_shixun_env_tabs.json`,{method:"get"});if(ii.status===0){const Ji=((Rt=ii.data)==null?void 0:Rt.shixun_environments_tabs)||[];Ji.length&&Vo===null&&mo(Ji[0].id),ma(Ji)}}),vh=()=>ga(void 0,null,function*(){var Rt;fs(!0);const ii=yield(0,Ct.ZP)("/api/shixuns/get_private_clouds.json",{method:"get"});ii.status===0&&Pr((Rt=ii==null?void 0:ii.data)==null?void 0:Rt.list),fs(!1)}),Vh=()=>ga(void 0,null,function*(){const Rt=yield(0,Ct.ZP)(`/api/shixuns/${So}/challenges.json`,{method:"get"});Rt.challenge_list&&ru(Rt.challenge_list||[])}),yh=(Rt,ii)=>ga(void 0,null,function*(){var Ji;const or=yield(0,Ct.ZP)("/api/shixuns/get_instance_startup_template.json",{method:"get",params:{private_cloud_id:Rt,operating_system:ii}});or.status===0&&Mo((Ji=or==null?void 0:or.data)==null?void 0:Ji.list)}),Gh=(Rt=null)=>ga(void 0,null,function*(){var ii,Ji,or,vr,Wr,Er,ea,ws,Ml,us,wl,Hs,$s,wu,rs;Ko(!0);const Fs=yield(0,Ct.ZP)(`/api/shixuns/${So}/get_multi_environments.json`,{method:"get",params:{shixun_environment_id:Rt}});if(Fs.status===0){xa.current=(0,Xn.cloneDeep)(Fs.data||{}),yo(Fs.data||{}),na(Number((Ji=(ii=Fs.data)==null?void 0:ii.shixun_environment)==null?void 0:Ji.mirror_tab_type)||0),Number((vr=(or=Fs.data)==null?void 0:or.shixun_environment)==null?void 0:vr.mirror_tab_type)===0?(fa((Wr=Fs.data)==null?void 0:Wr.mirror_repository),Eo({}),qo({})):Number((ea=(Er=Fs.data)==null?void 0:Er.shixun_environment)==null?void 0:ea.mirror_tab_type)===1?(Eo((ws=Fs.data)==null?void 0:ws.mirror_repository),fa({}),qo({})):Number((us=(Ml=Fs.data)==null?void 0:Ml.shixun_environment)==null?void 0:us.mirror_tab_type)===2&&(qo((wl=Fs.data)==null?void 0:wl.mirror_repository),fa({}),qo({}));const gs=($s=(Hs=Fs==null?void 0:Fs.data)==null?void 0:Hs.shixun_environment)==null?void 0:$s.private_cloud_id,dl=(rs=(wu=Fs==null?void 0:Fs.data)==null?void 0:wu.shixun_environment)==null?void 0:rs.operating_system;gs&&dl&&yh(gs,dl)}Ko(!1)}),Bu=()=>ga(void 0,null,function*(){var Rt;const ii=yield(0,Ct.ZP)(`/api/shixuns/${So}/check_code_editor.json`,{method:"get",params:{shixun_environment_id:Vo}});return ii.status===0&&ii.is_exist_code_editor?(Ue.default.confirm({icon:null,centered:!0,className:oa.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},width:425,okText:"\u524D\u5F80\u5173\u95ED",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:rn.createElement("div",null,rn.createElement("div",null,"\u6BCF\u4E2A\u5B9E\u8DF5\u9879\u76EE\u53EA\u80FD\u5F00\u542F\u4E00\u4E2A\u4EE3\u7801\u7F16\u8F91\u5668\u754C\u9762\u3002"),rn.createElement("div",null,"\u201C",(Rt=ii==null?void 0:ii.shixun_environment)==null?void 0:Rt.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:()=>ga(void 0,null,function*(){mo(ii.shixun_environment.id),Gh(ii.shixun_environment.id),sf()})}),Promise.reject()):Promise.resolve()}),Bg={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:[]},Sh=(Rt,ii)=>{var Ji,or;if(typeof(Rt==null?void 0:Rt.className)=="string"&&((Ji=Rt==null?void 0:Rt.className)!=null&&Ji.includes(ii)))return Rt;for(let vr=0,Wr=Rt;Wr=Wr.parentNode;vr++){if(typeof(Rt==null?void 0:Rt.className)=="string"&&((or=Wr==null?void 0:Wr.className)!=null&&or.includes(ii)))return Wr;if(Wr==document.documentElement)return!1}},bd=Rt=>{Sh(Rt.target,"editor-scrollable")&&lu()},lu=()=>(0,Tn.gy)(lt,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"),ie=Rt=>rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u5B9E\u9A8C\u754C\u9762",errorKey:"interface",errorValue:Cr,align:"start",errorName:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u754C\u9762",tooltipTitle:rn.createElement("div",{className:"p10"},Rt&&rn.createElement(rn.Fragment,null,rn.createElement("b",{className:"font14"},"\u4EE3\u7801\u7F16\u8F91\u5668"),rn.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",rn.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",rn.createElement("br",null),"\u6BCF\u4E2A\u5B9E\u8DF5\u9879\u76EE",rn.createElement("b",null,"\u53EA\u80FD\u5F00\u542F\u4E00\u4E2A"),"\u4EE3\u7801\u7F16\u8F91\u5668\u754C\u9762\u3002",rn.createElement("br",null)),rn.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",rn.createElement("br",null),rn.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",Rt&&rn.createElement(rn.Fragment,null,rn.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"))},rn.createElement("div",{className:Qi.interface},Rt&&rn.createElement("div",{onClick:()=>$t("shixun_environment","is_support_code_editor",!($n!=null&&$n.is_support_code_editor)),className:$n!=null&&$n.is_support_code_editor?Qi.active:""},rn.createElement("span",{className:"iconfont icon-xuanzhong9"}),rn.createElement("div",null,rn.createElement("i",{className:"iconfont icon-daimabianjiqi1"}),rn.createElement("span",null,"\u4EE3\u7801\u7F16\u8F91\u5668")),rn.createElement("aside",null," \u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u7F16\u8BD1\u5668\uFF0C\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177")),$n!=null&&$n[Rt?"disabled_support_vnc":"disabled2_support_vnc"]?rn.createElement(Ii.Z,{title:"\u9009\u62E9\u7684\u5B9E\u9A8C\u955C\u50CF\u4E0D\u652F\u6301\u56FE\u5F62\u5316\u684C\u9762"},rn.createElement("div",{className:Qi.disabled},rn.createElement("span",{className:"iconfont icon-xuanzhong9"}),rn.createElement("div",null,rn.createElement("i",{className:"iconfont icon-tuxinghuazhuomian"}),rn.createElement("span",null,"\u56FE\u5F62\u5316\u684C\u9762")),rn.createElement("aside",null,"\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762"))):rn.createElement("div",{onClick:()=>$t("shixun_environment",Rt?"is_support_vnc":"private_is_support_vnc",!($n!=null&&$n[Rt?"is_support_vnc":"private_is_support_vnc"])),className:$n!=null&&$n[Rt?"is_support_vnc":"private_is_support_vnc"]?Qi.active:""},rn.createElement("span",{className:"iconfont icon-xuanzhong9"}),rn.createElement("div",null,rn.createElement("i",{className:"iconfont icon-tuxinghuazhuomian"}),rn.createElement("span",null,"\u56FE\u5F62\u5316\u684C\u9762")),rn.createElement("aside",null,"\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762")),$n!=null&&$n[Rt?"disabled_support_webssh":"disabled2_support_webssh"]?rn.createElement(Ii.Z,{title:"\u9009\u62E9\u7684\u5B9E\u9A8C\u955C\u50CF\u4E0D\u652F\u6301\u547D\u4EE4\u884C\u7EC8\u7AEF"},rn.createElement("div",{className:Qi.disabled},rn.createElement("span",{className:"iconfont icon-xuanzhong9"}),rn.createElement("div",null,rn.createElement("i",{className:"iconfont icon-minglinghang"}),rn.createElement("span",null,"\u547D\u4EE4\u884C\u7EC8\u7AEF")),rn.createElement("aside",null,"\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3"))):rn.createElement("div",{onClick:()=>$t("shixun_environment",Rt?"is_support_webssh":"private_is_support_webssh",!($n!=null&&$n[Rt?"is_support_webssh":"private_is_support_webssh"])),className:$n!=null&&$n[Rt?"is_support_webssh":"private_is_support_webssh"]?Qi.active:""},rn.createElement("span",{className:"iconfont icon-xuanzhong9"}),rn.createElement("div",null,rn.createElement("i",{className:"iconfont icon-minglinghang"}),rn.createElement("span",null,"\u547D\u4EE4\u884C\u7EC8\u7AEF")),rn.createElement("aside",null," \u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3")),Rt&&rn.createElement("div",{onClick:()=>$t("shixun_environment","is_support_thiry_party",!($n!=null&&$n.is_support_thiry_party)),className:$n!=null&&$n.is_support_thiry_party?Qi.active:""},rn.createElement("span",{className:"iconfont icon-xuanzhong9"}),rn.createElement("div",null,rn.createElement("i",{className:"iconfont icon-rongqi1"}),rn.createElement("span",null,"\u5BB9\u5668\u5185\u670D\u52A1")),rn.createElement("aside",null," \u76F4\u63A5\u9884\u89C8\u5BB9\u5668\u5185\u90E8Web\u670D\u52A1")))),ae=(Rt,ii,Ji)=>{const or=Array.from(Rt),[vr]=or.splice(ii,1);return or.splice(Ji,0,vr),or},fe=(Rt,ii)=>ga(void 0,null,function*(){if(!Rt.destination)return;const Ji=ae(ii,Rt.source.index,Rt.destination.index);ma(Ji),(0,Ct.ZP)(`/api/shixuns/${So}/update_environment_position.json`,{method:"put",body:{tabs:Ji}})}),he=(Rt,ii)=>{let Ji=ii;Ue.default.confirm({icon:null,centered:!0,className:oa.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},width:460,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",title:"\u91CD\u547D\u540D",content:rn.createElement("div",null,rn.createElement("div",{className:"mb5 c-grey-333"},"\u5B9E\u9A8C\u73AF\u5883\u540D\u79F0"),rn.createElement("div",null,rn.createElement(ke.default,{defaultValue:Ji,onChange:or=>Ji=or.target.value,maxLength:8,style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u73AF\u5883\u540D\u79F0"}),rn.createElement("span",{className:"c-grey-999 font14 ml10"},"\u6700\u591A8\u4E2A\u5B57"))),onOk:()=>ga(void 0,null,function*(){if(!Ji)return bt.ZP.warning("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const or=lr.map(Wr=>Wr.id===Rt?Nl(kl({},Wr),{name:Ji}):Wr);if(Vo===0){ma(or);return}(yield(0,Ct.ZP)(`/api/shixuns/${So}/update_environment_name.json`,{method:"put",body:{shixun_environment_id:Rt,name:Ji}})).status===0&&ma(or)})})},me=(Rt,ii)=>{lu()||Ue.default.confirm({icon:null,centered:!0,className:oa.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:()=>ga(void 0,null,function*(){var Ji;if((Vo===0?{status:0}:yield(0,Ct.ZP)(`/api/shixuns/${So}/delete_environment.json`,{method:"delete",body:{shixun_environment_id:Rt}})).status===0){const vr=lr.filter(Wr=>Wr.id!==Rt);if(Rt===Vo){const Wr=((Ji=vr==null?void 0:vr[0])==null?void 0:Ji.id)||null;mo(Wr),Gh(Wr),ma(vr)}else ma(vr)}})})},Le=Rt=>{var ii;if(Rt===Vo)return;const Ji=()=>{mo(Rt),Gh(Rt),sf()};(ii=it==null?void 0:it.sideBar)!=null&&ii.confirmLeave?Ue.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:()=>{Ji()}}):Ji()},je=Rt=>{const ii=Nl(kl({},Do),{shixun_environment:Nl(kl({},$n),{is_support_code_editor:Rt.no_used_code_editor,is_support_vnc:!1,is_support_webssh:!1,is_support_thiry_party:!1,disabled_support_vnc:Rt.disabled_support_vnc,disabled_support_webssh:Rt.disabled_support_webssh,open_start_command:Rt.open_start_command,start_command:Rt.start_command,open_envs:Rt.open_envs,envs:Rt.envs,privileged:Rt.privileged,add_cap:Rt.add_cap,drop_cap:Rt.drop_cap}),mirror_repository:Nl(kl({},wo),{id:Rt.id,name:Rt.name,choice_small_type:[],choice_small_mirrors:[],shixun_service_configs:Rt.shixun_service_configs||[],description:Rt.description}),small_type:Rt.small_type});Ro===0?fa(ii==null?void 0:ii.mirror_repository):Ro===1?Eo(ii==null?void 0:ii.mirror_repository):Ro===2&&qo(ii==null?void 0:ii.mirror_repository),yo(ii),La(!1),Xo("")},Je=Rt=>{La(!1)},Ye=(Rt=!1,ii=1)=>ga(void 0,null,function*(){var Ji,or,vr;Xs(!0);const Wr=(Ji=lr.find(ea=>ea.id===Vo))==null?void 0:Ji.name,Er=yield(0,Ct.ZP)(`/api/shixuns/${So}/update_for_multi.json`,{method:"put",body:{tabs:lr,shixun_environment_id:Vo,sub_type:wo==null?void 0:wo.choice_small_type,main_type:wo.id,shixun_environment:Nl(kl({},$n),{name:Wr,mirror_tab_type:Ro,network_mode:Ka}),shixun_service_configs:wo==null?void 0:wo.shixun_service_configs,new_service_configs:Jo,sync_origin_shixun:Rt,command_settings:$n==null?void 0:$n.command_settings}});Er.status===0&&(Gh(Er.shixun_environment_id),mo(Er.shixun_environment_id),sf(),(or=xn==null?void 0:xn.detail)!=null&&or.copy_for_exercise||bt.ZP.success("\u4FDD\u5B58\u6210\u529F"),(vr=xn==null?void 0:xn.detail)!=null&&vr.copy_for_exercise&&(0,Si.m)(lt,xn,So,ii)),Xs(!1)}),gt=()=>{var Rt;if(lu())return;if(Vo===0||(Rt=it==null?void 0:it.sideBar)!=null&&Rt.confirmLeave){bt.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 ii=(0,Xn.cloneDeep)(Bg);console.log("cloneData---",ii),ma([...lr,{id:0,name:`\u5B9E\u9A8C\u73AF\u5883${lr.length+1}`}]),na(0),fa({}),Eo({}),qo({}),mo(0),yo(ii)},$t=(Rt,ii,Ji)=>ga(void 0,null,function*(){var or,vr,Wr,Er,ea,ws,Ml,us,wl,Hs,$s,wu,rs,Fs,gs,dl,Wu,Zu,id,Wl,Oc,ve;if(lu())return;const ye=(0,Xn.cloneDeep)(ca.current);if(ii==="is_support_code_editor"&&Ji&&(yield Bu()),ii==="resource_type"&&(ye.shixun_environment.instance_startup_type=1,ye.shixun_environment.command_settings=gd.current,gd.current=ca.current.shixun_environment.command_settings,Ji===2&&!ye.shixun_environment.private_cloud_id&&(ye.shixun_environment.private_cloud_id=(or=Fo==null?void 0:Fo[0])==null?void 0:or.id,ye.shixun_environment.operating_system=1,yh(ye.shixun_environment.private_cloud_id,ye.shixun_environment.operating_system))),ii==="private_cloud_id"&&(ye.shixun_environment.private_is_support_vnc=!1,ye.shixun_environment.private_is_support_webssh=!1,ye.shixun_environment.private_is_support_jupyter_lab=!1,ye.shixun_environment.operating_system=1,ye.shixun_environment.instance_startup_template_id=null,ye.shixun_environment.instance_startup_type=1,yh(Ji,ye.shixun_environment.operating_system)),ii==="operating_system"&&Ji&&(ye.shixun_environment.private_is_support_vnc=!1,ye.shixun_environment.private_is_support_webssh=!1,ye.shixun_environment.private_is_support_jupyter_lab=!1,ye.shixun_environment.instance_startup_template_id=null,ye.shixun_environment.instance_startup_type=1,yh(ye.shixun_environment.private_cloud_id,Ji)),ii==="instance_startup_template_id"){ye.shixun_environment.private_is_support_vnc=!1,ye.shixun_environment.private_is_support_webssh=!1,ye.shixun_environment.private_is_support_jupyter_lab=!1,ye.shixun_environment.instance_startup_type=1;const be=gr.find(Re=>Re.id===Ji);ye.shixun_environment.disabled2_support_vnc=be.disabled_support_vnc,ye.shixun_environment.disabled2_support_webssh=be.disabled_support_webssh,ye.shixun_environment.disabled2_support_jupyter_lab=be.disabled_support_jupyter_lab,ye.boosters=be.boosters,ye.network_mode_list=be.network_mode_list,Qs((Er=(Wr=(vr=be.network_mode_list)==null?void 0:vr.filter(Re=>Re.is_default))==null?void 0:Wr[0])==null?void 0:Er.network_mode),ye.new_service_configs=be!=null&&be.service_config_info?[be.service_config_info]:[]}if((ii==="private_is_support_vnc"||ii==="private_is_support_webssh")&&(ye.shixun_environment.instance_startup_type=1),ii==="choice_small_type"){ye.mirror_repository.choice_small_mirrors=Yo.filter(Xe=>Ji.includes(Xe.id));const be=ye.mirror_repository.choice_small_mirrors,Re=wo.choice_small_mirrors;if(be.length>Re.length){const Xe=(0,Xn.differenceBy)(be,Re,"id");if((ea=Xe==null?void 0:Xe[0])!=null&&ea.mirror_name){const qe={cpu_limit:((us=(Ml=(ws=Xe==null?void 0:Xe[0])==null?void 0:ws.shixun_service_configs)==null?void 0:Ml[0])==null?void 0:us.cpu_limit)||1,lower_cpu_limit:(($s=(Hs=(wl=Xe==null?void 0:Xe[0])==null?void 0:wl.shixun_service_configs)==null?void 0:Hs[0])==null?void 0:$s.lower_cpu_limit)||.1,memory_limit:((Fs=(rs=(wu=Xe==null?void 0:Xe[0])==null?void 0:wu.shixun_service_configs)==null?void 0:rs[0])==null?void 0:Fs.memory_limit)||1,mirror_repository_id:(gs=Xe==null?void 0:Xe[0])==null?void 0:gs.id,name:(dl=Xe==null?void 0:Xe[0])==null?void 0:dl.mirror_name,request_limit:((id=(Zu=(Wu=Xe==null?void 0:Xe[0])==null?void 0:Wu.shixun_service_configs)==null?void 0:Zu[0])==null?void 0:id.request_limit)||10,resource_limit:((ve=(Oc=(Wl=Xe==null?void 0:Xe[0])==null?void 0:Wl.shixun_service_configs)==null?void 0:Oc[0])==null?void 0:ve.resource_limit)||10};ye.mirror_repository.shixun_service_configs.push(qe)}}else{const Xe=(0,Xn.differenceBy)(Re,be,"id");ye.mirror_repository.shixun_service_configs=ye.mirror_repository.shixun_service_configs.filter(qe=>{var ct;return qe.mirror_repository_id!==((ct=Xe==null?void 0:Xe[0])==null?void 0:ct.id)})}}ii?ye[Rt][ii]=Ji:ye[Rt]=Ji,console.log("cloneData",ye),Xo(""),yo(ye)}),wt=(Rt,ii,Ji)=>{var or,vr;const Wr=/^\d*(\.\d*)?$/,Er=["cpu_limit","lower_cpu_limit","memory_limit","request_limit","resource_limit","gpu_memory_limit","gpu_limit"],ea=(0,Xn.cloneDeep)((vr=(or=ca.current)==null?void 0:or.mirror_repository)==null?void 0:vr.shixun_service_configs);if(Er.includes(ii)){Ji.match(Wr)&&(ea[Rt][ii]=Ji,$t("mirror_repository","shixun_service_configs",ea));return}ea[Rt][ii]=Ji,$t("mirror_repository","shixun_service_configs",ea)},Kn=()=>{Ue.default.info({centered:!0,icon:null,width:460,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:rn.createElement("div",{className:"tc"},rn.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:qi,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"})},Nn=()=>{var Rt,ii,Ji,or,vr,Wr,Er,ea,ws,Ml;if(!lu()){if(($n==null?void 0:$n.resource_type)===1){if(!(wo!=null&&wo.id)){Xo("mirror");return}if(!($n!=null&&$n.is_support_code_editor)&&!($n!=null&&$n.is_support_vnc)&&!($n!=null&&$n.is_support_webssh)&&!($n!=null&&$n.is_support_thiry_party)){Xo("interface");return}if($n.is_support_thiry_party&&!($n!=null&&$n.proxy_port)){Xo("port"),ls("\u8BF7\u8F93\u5165\u7AEF\u53E3");return}if($n.is_support_thiry_party&&($n!=null&&$n.proxy_port)&&parseInt($n==null?void 0:$n.proxy_port)>65535||((Rt=$n==null?void 0:$n.proxy_port)==null?void 0:Rt.length)>1&&((ii=$n==null?void 0:$n.proxy_port)==null?void 0:ii[0])==="0"){Xo("port"),ls("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7AEF\u53E3");return}if(!((Ji=wo==null?void 0:wo.shixun_service_configs)!=null&&Ji.length)){Xo("shixun_service_configs");return}for(let us of wo==null?void 0:wo.shixun_service_configs){if(us!=null&&us.open_start_command&&!(us!=null&&us.start_command)){Xo("start_command");return}if(us!=null&&us.open_envs&&!(us!=null&&us.envs)){Xo("envs");return}}if($n!=null&&$n.webssh_host&&!/^[a-z0-9\-]*$/.test($n==null?void 0:$n.webssh_host)){bt.ZP.warning("\u4E3B\u673A\u540D\u53EA\u80FD\u8F93\u5165\u6570\u5B57\u3001\u5C0F\u5199\u5B57\u6BCD\u3001\u8FDE\u5B57\u7B26");return}if((vr=(or=wo==null?void 0:wo.shixun_service_configs)==null?void 0:or[0])!=null&&vr.webssh_host&&!/^(?![0-9]+$)(?!.*--)[a-z0-9](?:[a-z0-9-]{0,60}[a-z0-9])$/.test((Er=(Wr=wo==null?void 0:wo.shixun_service_configs)==null?void 0:Wr[0])==null?void 0:Er.webssh_host)){eo(!0);return}}if(($n==null?void 0:$n.resource_type)===2){if(!($n!=null&&$n.operating_system)){Xo("system");return}if(!($n!=null&&$n.instance_startup_template_id)){Xo("template");return}if(!($n!=null&&$n.private_is_support_vnc)&&!($n!=null&&$n.private_is_support_webssh)&&!($n!=null&&$n.private_is_support_jupyter_lab)){Xo("interface");return}if(($n==null?void 0:$n.operating_system)===1&&($n!=null&&$n.private_is_support_vnc)&&af&&!($n!=null&&$n.instance_startup_type)){Xo("instance_startup_type");return}}if(($n!=null&&$n.is_support_webssh||$n!=null&&$n.private_is_support_webssh)&&((ea=$n==null?void 0:$n.command_settings)==null?void 0:ea.some(wl=>{var Hs,$s;return!wl.command&&!!((Hs=wl.challenge_ids)!=null&&Hs.length)||wl.command&&!(($s=wl.challenge_ids)!=null&&$s.length)}))){Xo("command_settings");return}(ws=xn==null?void 0:xn.detail)!=null&&ws.is_fork_from_creator&&((Ml=xn==null?void 0:xn.detail)!=null&&Ml.copy_for_exercise)&&Vo!=0&&($n!=null&&$n.has_relation)?lt({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"environment",fn:(us,wl)=>{Ye(us,wl)}}}):Ye()}},Zi=Rt=>ga(void 0,null,function*(){yield wt(Rt.index,"cpu_limit",String(Rt==null?void 0:Rt.cpu)),yield wt(Rt.index,"memory_limit",String(Rt==null?void 0:Rt.memory))}),Xi=Rt=>{const ii=(0,Xn.cloneDeep)(Jo);ii[Rt.index]=Nl(kl({},ii[Rt.index]),{cpu_limit:String(Rt==null?void 0:Rt.cpu),memory_limit:String(Rt==null?void 0:Rt.memory)}),$t("new_service_configs","",ii)};return rn.createElement("div",{className:Qi.wrap},rn.createElement("div",{className:Qi.content},rn.createElement("div",{className:Qi.head},rn.createElement("div",{className:Qi.title},"\u5B9E\u9A8C\u73AF\u5883"),lr.length<Vc?rn.createElement("div",{onClick:gt,className:Qi.add},"\u6DFB\u52A0\u5B9E\u9A8C\u73AF\u5883"):rn.createElement(Ii.Z,{title:`\u6700\u591A\u53EF\u4EE5\u6DFB\u52A0${Vc}\u4E2A\u5B9E\u9A8C\u73AF\u5883`},rn.createElement("div",{className:Qi.addDisable},"\u6DFB\u52A0\u5B9E\u9A8C\u73AF\u5883")),rn.createElement("div",{onClick:()=>sl(!0),className:Qi.setting},"\u8BBE\u7F6E")),!!lr.length&&rn.createElement(ue.Fragment,null,rn.createElement(Wn.Z5,{onDragEnd:Rt=>fe(Rt,lr)},rn.createElement(Wn.bK,{droppableId:"droppable",direction:"horizontal"},(Rt,ii)=>rn.createElement("div",Nl(kl({},Rt.droppableProps),{ref:Rt.innerRef,className:Qi.tabs}),lr.map((Ji,or)=>{const{name:vr,id:Wr}=Ji;return rn.createElement(Wn._l,{key:Wr,draggableId:Wr.toString(),index:or},(Er,ea)=>rn.createElement("div",Nl(kl(kl({},Er.draggableProps),Er.dragHandleProps),{ref:Er.innerRef,className:Vo===Wr?Qi.active:"",key:Wr}),rn.createElement("i",{className:"iconfont icon-tuodong"}),rn.createElement("span",{className:Qi.name,onClick:()=>Le(Wr)},vr),rn.createElement(Co.Z,{trigger:["click"],dropdownRender:()=>rn.createElement(xo.default,{style:{width:92}},rn.createElement(xo.default.Item,{onClick:()=>he(Wr,vr),className:"font14"},"\u91CD\u547D\u540D"),rn.createElement(xo.default.Item,{onClick:()=>me(Wr,vr),className:"font14"},"\u5220\u9664")),getPopupContainer:ws=>ws.parentNode},rn.createElement("i",{className:"iconfont icon-zhankai5 current"}))))}),Rt.placeholder))),rn.createElement("div",{className:Qi.line})),rn.createElement(zo.Z,{loading:Wa||ts,active:!0},!!lr.length&&rn.createElement(ue.Fragment,null,rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u5B9E\u9A8C\u8D44\u6E90",tooltipTitle:rn.createElement("div",{className:"p10"},rn.createElement("b",{className:"font14"},"\u901A\u7528\u4E91"),rn.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",rn.createElement("br",null),rn.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")},rn.createElement("div",{className:Qi.resource},Vd.map(Rt=>rn.createElement("div",{key:Rt.id,className:($n==null?void 0:$n.resource_type)===Rt.id?Qi.active:"",onClick:()=>{($n==null?void 0:$n.resource_type)!==Rt.id&&$t("shixun_environment","resource_type",Rt.id)}},Rt.name)))),($n==null?void 0:$n.resource_type)===1&&rn.createElement(ue.Fragment,null,rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u5B9E\u9A8C\u955C\u50CF"},rn.createElement("div",{className:Qi.resource,style:{width:300}},Ef.map(Rt=>rn.createElement("div",{key:Rt.id,className:Ro===Rt.id?Qi.active:"",onClick:()=>{Ro!==Rt.id&&(lu()||(na(Rt.id),Xo(""),Rt.id===0&&yo(Nl(kl({},Do),{mirror_repository:kl({},tc)})),Rt.id===1&&yo(Nl(kl({},Do),{mirror_repository:kl({},Za)})),Rt.id===2&&yo(Nl(kl({},Do),{mirror_repository:kl({},Rr)}))))}},Rt.name)))),rn.createElement(ai.Z,{nameWidth:150,errorKey:"mirror",errorValue:Cr,errorName:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u955C\u50CF"},rn.createElement(dt.Z,{align:"middle"},Yl===!1?rn.createElement(rn.Fragment,null,!!(wo!=null&&wo.id)&&rn.createElement(rn.Fragment,null,rn.createElement("div",{onClick:()=>{lu()||La(!0)},className:Qi.mirror},rn.createElement("div",null,wo==null?void 0:wo.name),rn.createElement("i",{className:"iconfont icon-genghuan"})),rn.createElement(rr.Z,{value:[{description:wo==null?void 0:wo.description,name:wo==null?void 0:wo.name}],title:"\u5B9E\u9A8C\u955C\u50CF\u8BF4\u660E"},rn.createElement("span",{className:Qi.explain},"\u5B9E\u9A8C\u955C\u50CF\u8BF4\u660E"))),!(wo!=null&&wo.id)&&rn.createElement("div",{onClick:()=>{La(!0)},className:Qi.mirror},rn.createElement("i",{className:"iconfont icon-tianjia3 font14 mr10"}),rn.createElement("div",null,"\u9009\u62E9\u5B9E\u9A8C\u955C\u50CF"))):"\u6682\u65E0\u6570\u636E")),ie(!0),($n==null?void 0:$n.is_support_webssh)&&rn.createElement(ai.Z,{nameWidth:150,align:"start",name:"\u5F00\u542F\u65F6\u89E6\u53D1\u547D\u4EE4",tooltipTitle:rn.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")},rn.createElement(ll,{showError:Cr==="command_settings",value:$n==null?void 0:$n.command_settings,onChange:Rt=>$t("shixun_environment","command_settings",Rt),optionsLevelList:Zs})),($n==null?void 0:$n.is_support_thiry_party)&&rn.createElement(ai.Z,{required:!0,nameWidth:150,align:"start",name:"\u7AEF\u53E3\u914D\u7F6E",errorKey:"port",errorValue:Cr,errorName:Ha},rn.createElement(dt.Z,null,rn.createElement("div",{className:"font14",style:{lineHeight:"14px"}},rn.createElement("div",null,"\u5BB9\u5668\u7AEF\u53E3"),rn.createElement(ke.default,{onClick:lu,value:$n==null?void 0:$n.proxy_port,onChange:Rt=>{const ii=Rt.target.value;(ii===""||/^[0-9]\d*$/.test(ii))&&$t("shixun_environment","proxy_port",Rt.target.value)},bordered:!1,style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:6}})),rn.createElement("div",{className:"ml20"},rn.createElement("div",{className:"font14",style:{lineHeight:"14px"}},"\u8DEF\u7531\uFF08\u9009\u586B\uFF09"),rn.createElement(ke.default,{onClick:lu,value:$n==null?void 0:$n.web_route,onChange:Rt=>$t("shixun_environment","web_route",Rt.target.value),bordered:!1,style:{width:450,height:50,background:"#F5F5F5",borderRadius:4,marginTop:6}})))),rn.createElement(ai.Z,{name:"\u9644\u5E26\u73AF\u5883",nameWidth:150},rn.createElement(dt.Z,{align:"middle"},rn.createElement(Sr.default,{getPopupContainer:Rt=>Rt.parentNode,onClick:lu,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:wo==null?void 0:wo.choice_small_type,onChange:Rt=>$t("mirror_repository","choice_small_type",Rt),showArrow:!0,maxTagCount:5},Yo.map((Rt,ii)=>rn.createElement(gl,{key:Rt.id,value:Rt.id},Rt.type_name))),!!((xi=wo==null?void 0:wo.choice_small_mirrors)!=null&&xi.length)&&rn.createElement(rr.Z,{value:(wo==null?void 0:wo.choice_small_mirrors)||[],title:"\u9644\u5E26\u73AF\u5883\u8BF4\u660E"},rn.createElement("span",{className:Qi.explain},"\u9644\u5E26\u73AF\u5883\u8BF4\u660E")))),(0,Gr.Ny)()&&rn.createElement(ue.Fragment,null,rn.createElement("div",{onClick:()=>Ua(!hs),className:Qi.grade},"\u9AD8\u7EA7\u8BBE\u7F6E",rn.createElement("i",{className:`iconfont ${hs?"icon-shouqi4":"icon-a-xialazhankai"}`})),hs&&rn.createElement(ue.Fragment,null,rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u955C\u50CF\u914D\u7F6E",align:"start",errorKey:"shixun_service_configs",errorValue:Cr,errorName:"\u8BF7\u6DFB\u52A0\u955C\u50CF\u914D\u7F6E",contentStyle:{overflow:(Fn=wo==null?void 0:wo.shixun_service_configs)!=null&&Fn.length?"hidden":"initial"}},rn.createElement("div",{className:Qi.tabsBox},!((Fi=wo==null?void 0:wo.shixun_service_configs)!=null&&Fi.length)&&rn.createElement(fi.Z,{image:Ti,imageStyle:{height:180,marginTop:67},description:""}),!!((Yr=wo==null?void 0:wo.shixun_service_configs)!=null&&Yr.length)&&rn.createElement(en.default,{destroyInactiveTabPane:!0,moreIcon:rn.createElement("span",{className:Qi.more},"\u66F4\u591A ",rn.createElement("i",{className:"iconfont icon-xiala1"}))},(Po=wo==null?void 0:wo.shixun_service_configs)==null?void 0:Po.map((Rt,ii)=>{var Ji,or,vr,Wr;const{cpu_limit:Er,lower_cpu_limit:ea,memory_limit:ws,request_limit:Ml,resource_limit:us,name:wl,shixun_update_logs:Hs,gpu_limit:$s,gpu_memory_limit:wu}=Rt;return rn.createElement(en.default.TabPane,{className:"p20",tab:rn.createElement("div",{title:wl,className:Qi.tabTitle},wl),key:ii},(Hs==null?void 0:Hs.user_name)&&rn.createElement("div",{style:{margin:"-15px 0 15px 0"}},"\u6700\u8FD1\u4FEE\u6539\u4EBA\uFF1A ",Hs==null?void 0:Hs.user_name,"\uFF08",Hs==null?void 0:Hs.user_login,"\uFF09 \u4FEE\u6539\u65F6\u95F4\uFF1A",Hs!=null&&Hs.created_at?xr()(Hs==null?void 0:Hs.created_at).format("YYYY-MM-DD HH:mm:ss"):"--"),rn.createElement(ai.Z,{nameWidth:150,name:"\u8D44\u6E90\u914D\u7F6E",align:"center"},rn.createElement(dt.Z,{align:"middle"},rn.createElement(dt.Z,{align:"middle",className:"mr20",wrap:!1},rn.createElement("div",{className:Qi.serverConfig,onClick:()=>{lu()||(Aa({index:ii,cpu:Er,memory:ws}),Xl(!0))}},rn.createElement("div",null,rn.createElement("span",null,Er,"\u6838")," ",rn.createElement("span",null,ws,"GB")),rn.createElement("i",{className:"iconfont icon-bianji21"}))),ii==0&&rn.createElement(dt.Z,{align:"middle",wrap:!1},rn.createElement("div",{className:Qi.viewRecommendConfig,onClick:()=>mr(!0)},"\u67E5\u770B\u63A8\u8350\u914D\u7F6E")))),(((vr=(Ji=ot==null?void 0:ot.setting)==null?void 0:Ji.big_model_users)==null?void 0:vr.includes((or=wi==null?void 0:wi.userInfo)==null?void 0:or.login))||(0,Gr.fn)())&&rn.createElement(ai.Z,{nameWidth:150,name:"GPU\u914D\u7F6E",align:"center"},rn.createElement(dt.Z,{align:"middle"},rn.createElement(dt.Z,{align:"middle",className:"mr20",wrap:!1},rn.createElement("div",{className:Qi.serverConfig,onClick:()=>{Uu({index:ii,gpu_limit:$s||0,gpu_memory_limit:wu||0}),Jl(!0)}},$s&&rn.createElement(rn.Fragment,null,rn.createElement("div",null,rn.createElement("span",null,"\u663E\u5361",$s,"\u4E2A")," ",rn.createElement("span",null,"\u663E\u5B58",wu,"GB")),rn.createElement("i",{className:"iconfont icon-bianji21"})),!$s&&rn.createElement(rn.Fragment,null,rn.createElement("div",null,"\u672A\u914D\u7F6EGPU"),rn.createElement("i",{className:"iconfont icon-bianji21"})))))),rn.createElement(ai.Z,{nameWidth:150,name:"\u6587\u4EF6\u5927\u5C0F\u9650\u5236",align:"center"},rn.createElement(dt.Z,{align:"middle"},rn.createElement(dt.Z,{align:"middle",wrap:!1},rn.createElement(ke.default,{onClick:lu,style:{width:400},value:us,maxLength:5,onChange:rs=>{const{value:Fs}=rs.target,gs=/^\d*(\.\d*)?$/;Fs.match(gs)&&wt(ii,"resource_limit",rs.target.value)},addonAfter:"M"}),rn.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")))),rn.createElement(ai.Z,{nameWidth:150,name:"\u542F\u52A8\u8BBE\u7F6E",align:"start",required:Rt==null?void 0:Rt.open_start_command,errorKey:"start_command",errorValue:Cr,errorName:"\u8BF7\u8F93\u5165\u542F\u52A8\u547D\u4EE4"},rn.createElement("div",{className:"font14 mb5"},"\u7528\u6237\u540D",rn.createElement("span",{className:"c-grey-999"},"\uFF08\u767B\u5F55\u5BB9\u5668\u65F6\u53EF\u4F7F\u7528\u7684\u7528\u6237\u540D\uFF09")),rn.createElement(Sr.default,{getPopupContainer:rs=>rs.parentNode,onClick:lu,bordered:!1,fieldNames:{label:"name",value:"id"},options:(Wr=Do==null?void 0:Do.mirror_repository)==null?void 0:Wr.webssh_user_arr,value:(Rt==null?void 0:Rt.webssh_user)||"root",onChange:rs=>wt(ii,"webssh_user",rs),style:{minWidth:400,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10,marginBottom:20}}),rn.createElement("div",{className:"font14 mb5"},"\u4E3B\u673A\u540D",rn.createElement("span",{className:"c-grey-999"},"\uFF08\u767B\u5F55\u5BB9\u5668\u65F6\u53EF\u6307\u5B9A\u4E3B\u673A\u540D\uFF09")),rn.createElement(dt.Z,{className:"mb20"},rn.createElement(ke.default,{bordered:!1,onClick:lu,value:Rt==null?void 0:Rt.webssh_host,maxLength:255,placeholder:"\u9009\u586B\uFF0C\u64CD\u4F5C\u7CFB\u7EDF\u5185\u90E8\u7684\u8BA1\u7B97\u673A\u540D",onChange:rs=>{wt(ii,"webssh_host",rs.target.value),rs.target.value?/^(?![0-9]+$)(?!.*--)[a-z0-9](?:[a-z0-9-]{0,60}[a-z0-9])$/.test(rs.target.value)?eo(!1):eo(!0):eo(!1)},style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:5,marginRight:10}}),rn.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",rn.createElement("br",null),"\u4E0D\u80FD\u8FDE\u7EED\u4F7F\u7528 \u201C-\u201D\uFF0C\u4E0D\u80FD\u4F7F\u7528\u7EAF\u6570\u5B57")),Os&&rn.createElement("div",{style:{color:"#E53333",marginTop:"-15px",marginBottom:"5px"}},"\u8BF7\u8F93\u5165\u89C4\u8303\u7684\u4E3B\u673A\u540D"),rn.createElement(It.default,{checked:Rt==null?void 0:Rt.open_start_command,onChange:rs=>wt(ii,"open_start_command",rs.target.checked),style:{marginTop:-4},className:"font14"},"\u542F\u52A8\u547D\u4EE4",rn.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")),(Rt==null?void 0:Rt.open_start_command)&&rn.createElement(li.ZP,{width:"90%",height:250,placeholder:"\u4F8B\u5982\uFF1Aecho helloworld > /data/workspace/01.txt",style:{border:"1px solid #ccc",background:"#dedede",marginTop:"20px"},value:Rt==null?void 0:Rt.start_command,language:"shell",theme:"vs-light",onChange:rs=>wt(ii,"start_command",rs)})),rn.createElement(ai.Z,{required:Rt==null?void 0:Rt.open_envs,nameWidth:150,name:"\u73AF\u5883\u53D8\u91CF",align:"start",errorKey:"envs",errorValue:Cr,errorName:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF"},rn.createElement(It.default,{checked:Rt==null?void 0:Rt.open_envs,onChange:rs=>wt(ii,"open_envs",rs.target.checked),style:{marginTop:-4},className:"font14"},"\u73AF\u5883\u53D8\u91CF",rn.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u5BB9\u5668\u6DFB\u52A0\u73AF\u5883\u53D8\u91CF\uFF09")),(Rt==null?void 0:Rt.open_envs)&&rn.createElement(li.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:Rt==null?void 0:Rt.envs,onChange:rs=>wt(ii,"envs",rs)})),rn.createElement(ai.Z,{name:"\u8BBF\u95EE\u6A21\u5F0F",nameWidth:150},rn.createElement(dt.Z,{align:"middle"},rn.createElement(Ri.Z,{checked:Rt==null?void 0:Rt.privileged,onChange:rs=>wt(ii,"privileged",rs)}),rn.createElement("span",{className:"ml10 c-grey-333 font14"},"\u7279\u6743\u6A21\u5F0F"),rn.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"))),rn.createElement(ai.Z,{name:"\u6743\u9650\u63A7\u5236",nameWidth:150,align:"start"},rn.createElement("div",{className:"font14"},"\u6DFB\u52A0\u6743\u9650",rn.createElement("span",{className:"c-grey-999"},"\uFF08\u6DFB\u52A0\u591A\u4E2A\u6743\u9650\u7528\u82F1\u6587 , \u5206\u9694\uFF09")),rn.createElement(ke.default,{onClick:lu,value:Rt==null?void 0:Rt.add_cap,onChange:rs=>wt(ii,"add_cap",rs.target.value),bordered:!1,placeholder:"\u4F8B\u5982\uFF1ANET_ADMIN",style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:5}}),rn.createElement("div",{className:"font14 mt20"},"\u79FB\u9664\u6743\u9650",rn.createElement("span",{className:"c-grey-999"},"\uFF08\u79FB\u9664\u591A\u4E2A\u6743\u9650\u7528\u82F1\u6587 , \u5206\u9694\uFF09")),rn.createElement(ke.default,{onClick:lu,value:Rt==null?void 0:Rt.drop_cap,onChange:rs=>wt(ii,"drop_cap",rs.target.value),bordered:!1,placeholder:"\u4F8B\u5982\uFF1ASYS_PTRACE",style:{width:400,height:50,background:"#F5F5F5",borderRadius:4,marginTop:5}})))}))))))),($n==null?void 0:$n.resource_type)===2&&rn.createElement(ue.Fragment,null,rn.createElement(ai.Z,{nameWidth:150},rn.createElement(Sr.default,{getPopupContainer:Rt=>Rt.parentNode,bordered:!1,onClick:lu,className:"mr10",style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0,value:$n==null?void 0:$n.private_cloud_id,onChange:Rt=>$t("shixun_environment","private_cloud_id",Rt)},Fo.map((Rt,ii)=>rn.createElement(gl,{key:Rt.id,value:Rt.id},Rt.name)))),rn.createElement(ai.Z,{name:"\u64CD\u4F5C\u7CFB\u7EDF",nameWidth:150,required:!0,errorKey:"system",errorValue:Cr,errorName:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7CFB\u7EDF"},rn.createElement("div",{className:Qi.system},of.map(Rt=>rn.createElement("div",{onClick:()=>{$n.operating_system!==Rt.id&&$t("shixun_environment","operating_system",Rt.id)},key:Rt.id,className:($n==null?void 0:$n.operating_system)===Rt.id?Qi.active:""},rn.createElement("i",{className:Rt.icon}),rn.createElement("span",null,Rt.name))))),rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248",errorKey:"template",errorValue:Cr,errorName:"\u8BF7\u9009\u62E9\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248"},rn.createElement(dt.Z,{align:"middle"},rn.createElement(Sr.default,{getPopupContainer:Rt=>Rt.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:lu,ref:Ur,showArrow:!0,dropdownRender:Rt=>rn.createElement("div",{className:Qi.template},rn.createElement("div",{className:Qi.liWrap},gr.map(ii=>rn.createElement("div",{className:Qi.li,key:ii.id,onClick:()=>{Ur.current.blur(),$t("shixun_environment","instance_startup_template_id",ii.id)}},rn.createElement("span",{title:ii.name,style:{color:($n==null?void 0:$n.instance_startup_template_id)===ii.id?"#0152d9":"initial"}},ii.name),!ii.is_public&&rn.createElement("b",{className:Qi.tag},"\u79C1\u6709")))),rn.createElement("div",{style:{padding:12}},!gr.length&&rn.createElement(fi.Z,{image:Ti,imageStyle:{height:120,marginTop:20},description:"\u6682\u65E0\u6570\u636E"}),rn.createElement("div",{style:{marginTop:gr!=null&&gr.length?0:20},className:"c-grey-999 font14"},"\u672A\u627E\u5230\u5408\u9002\u7684\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1F",rn.createElement("span",{onClick:Kn,className:"c-light-primary current"},"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458")))),options:gr==null?void 0:gr.map(Rt=>({label:Rt.name,value:Rt.id})),value:$n==null?void 0:$n.instance_startup_template_id}),!!Nf&&rn.createElement(rr.Z,{value:Nf,title:"\u6A21\u7248\u63CF\u8FF0"},rn.createElement("span",{className:Qi.explain},"\u6A21\u7248\u63CF\u8FF0")))),ie(!1),($n==null?void 0:$n.private_is_support_webssh)&&rn.createElement(ai.Z,{align:"start",nameWidth:150,name:"\u5F00\u542F\u65F6\u89E6\u53D1\u547D\u4EE4",tooltipTitle:rn.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")},rn.createElement(ll,{showError:Cr==="command_settings",value:$n==null?void 0:$n.command_settings,onChange:Rt=>$t("shixun_environment","command_settings",Rt),optionsLevelList:Zs})),($n==null?void 0:$n.operating_system)===1&&($n==null?void 0:$n.private_is_support_vnc)&&(af||ih&&nh===1)&&rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F",errorKey:"instance_startup_type",errorValue:Cr,errorName:"\u8BF7\u9009\u62E9\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248"},rn.createElement("div",{className:Qi.resource},bu.map(Rt=>rn.createElement("div",{key:Rt.id,className:($n==null?void 0:$n.instance_startup_type)===Rt.id?Qi.active:"",onClick:()=>$t("shixun_environment","instance_startup_type",Rt.id)},Rt.name)))),(0,Gr.Ny)()&&nh===1&&rn.createElement(ue.Fragment,null,rn.createElement("div",{onClick:()=>Ho(!pr),className:Qi.grade},"\u9AD8\u7EA7\u8BBE\u7F6E",rn.createElement("i",{className:`iconfont ${pr?"icon-shouqi4":"icon-a-xialazhankai"}`})),pr&&rn.createElement(ue.Fragment,null,rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u8D44\u6E90\u914D\u7F6E",align:"start",errorKey:"shixun_service_configs",errorValue:Cr,errorName:"\u8BF7\u6DFB\u52A0\u8D44\u6E90\u914D\u7F6E",contentStyle:{overflow:Jo!=null&&Jo.length?"hidden":"initial"}},rn.createElement("div",{className:Qi.tabsBox},!(Jo!=null&&Jo.length)&&rn.createElement(fi.Z,{image:Ti,imageStyle:{height:180,marginTop:67},description:""}),!!(Jo!=null&&Jo.length)&&rn.createElement(en.default,{destroyInactiveTabPane:!0,moreIcon:rn.createElement("span",{className:Qi.more},"\u66F4\u591A ",rn.createElement("i",{className:"iconfont icon-xiala1"}))},Jo==null?void 0:Jo.map((Rt,ii)=>{const{cpu_limit:Ji,lower_cpu_limit:or,memory_limit:vr,request_limit:Wr,resource_limit:Er,name:ea}=Rt;return rn.createElement(en.default.TabPane,{className:"p20",tab:rn.createElement("div",{title:ea,className:Qi.tabTitle},ea),key:ii},rn.createElement(dt.Z,{align:"middle"},rn.createElement(dt.Z,{align:"middle",className:"mr20",wrap:!1},rn.createElement("div",{className:Qi.serverConfig,onClick:()=>{Aa({index:ii,cpu:Ji,memory:vr}),Xl(!0)}},rn.createElement("div",null,rn.createElement("span",null,Ji,"\u6838")," ",rn.createElement("span",null,vr,"GB")),rn.createElement("i",{className:"iconfont icon-bianji21"}))),ii==0&&rn.createElement(dt.Z,{align:"middle",wrap:!1},rn.createElement("div",{className:Qi.viewRecommendConfig,onClick:()=>mr(!0)},"\u67E5\u770B\u63A8\u8350\u914D\u7F6E"))))})))),(0,Gr.Ny)()&&(ms==null?void 0:ms.length)>0&&rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"GPU\u52A0\u901F\u5668",align:"center"},rn.createElement(Sr.default,{disabled:!0,getPopupContainer:Rt=>Rt.parentNode,bordered:!1,className:"mr10",value:ms[0],style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0},ms.map(Rt=>rn.createElement(Sr.default.Option,{key:Rt,value:Rt},Rt)))),(0,Gr.Ny)()&&(Qo==null?void 0:Qo.length)>0&&rn.createElement(ai.Z,{required:!0,nameWidth:150,name:"\u7F51\u7EDC\u6A21\u5F0F",align:"center",tooltipTitle:rn.createElement("div",{className:"p10"},rn.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"),rn.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"))},rn.createElement(Sr.default,{disabled:!0,getPopupContainer:Rt=>Rt.parentNode,bordered:!1,className:"mr10",value:($r=(kr=Qo==null?void 0:Qo.filter(Rt=>Rt.is_default))==null?void 0:kr[0])==null?void 0:$r.network_mode,onChange:Rt=>{Qs(Rt)},style:{width:460,backgroundColor:"#f5f5f5",height:50,borderRadius:4,paddingTop:10},showArrow:!0},Qo==null?void 0:Qo.map(Rt=>rn.createElement(Sr.default.Option,{key:Rt==null?void 0:Rt.network_mode,value:Rt==null?void 0:Rt.network_mode},Rt.name)))))))),!lr.length&&rn.createElement(fi.Z,{image:Ti,imageStyle:{height:180,marginTop:100},description:"\u8BF7\u6DFB\u52A0\u5B9E\u9A8C\u73AF\u5883"}))),rn.createElement("div",{className:Qi.btns},rn.createElement(Me.ZP,{onClick:zh,style:{marginRight:40}},"\u53D6\u6D88"),rn.createElement(Me.ZP,{loading:al,type:"primary",disabled:!(lr!=null&&lr.length),onClick:()=>{Nn()}},"\u4FDD\u5B58")),rn.createElement(Kr,{identifier:So,shixun_environment_id:Vo,useId:wo==null?void 0:wo.id,visible:Kl,onCancel:()=>La(!1),onOk:Rt=>je(Rt),tab_type:(No=Ef[Number(Ro)])==null?void 0:No.type}),rn.createElement(no,{verifyModal:lu,id:So,environment:lr,is_published:po,dispatch:lt,visible:qa,onCancel:()=>sl(!1),onOk:Rt=>Je(Rt)}),rn.createElement(ys.Z,{visible:Sc,onOk:Rt=>{let ii=$n==null?void 0:$n.resource_type;ii==1&&Zi(Rt),ii==2&&Xi(Rt),Xl(!1)},onCancel:()=>Xl(!1),info:vs}),rn.createElement(bs.Z,{visible:sc,onOk:Rt=>ga(void 0,null,function*(){yield wt(Rt.index,"gpu_memory_limit",String(Rt==null?void 0:Rt.gpu_memory_limit)),setTimeout(()=>ga(void 0,null,function*(){yield wt(Rt.index,"gpu_limit",String(Rt==null?void 0:Rt.gpu_limit)),Jl(!1)}))}),onCancel:()=>Jl(!1),info:qs}),rn.createElement(_o.Z,{onOk:()=>{Gh($n==null?void 0:$n.id)},identifier:So,visible:nd,onCancel:()=>mr(!1),info:null,isJupyter:!1}))};var Su=(0,yt.connect)(({practiceSetting:it,globalSetting:lt,shixunsDetail:ot,user:xn})=>({practiceSetting:it,globalSetting:lt,shixunsDetail:ot,user:xn}))(du),xu=Ee(1710),oo=Ee(87169),xd={footerWrap:"footerWrap___Qaahm"},Ed=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,Nh=(it,lt)=>{var ot={};for(var xn in it)Bc.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&Ed)for(var xn of Ed(it))lt.indexOf(xn)<0&&Od.call(it,xn)&&(ot[xn]=it[xn]);return ot},ir=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const il=ke.default.TextArea,bl=it=>{var lt=it,{shixunsDetail:ot,globalSetting:xn,loading:wi,dispatch:Yi,onFinish:dr=()=>{}}=lt,xi=Nh(lt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]);const[Fn]=Ae.default.useForm(),Fi=Po=>ir(void 0,null,function*(){var kr;const $r=yield Yi({type:"shixunsDetail/getCustomScript",payload:{id:(kr=ot.actionTabs.params)==null?void 0:kr.id,compile:Po.execute,excutive:Po.compile}});Yr(),$r&&dr($r==null?void 0:$r.shixun_script)}),Yr=()=>{Yi({type:"shixunsDetail/setActionTabs",payload:{}})};return ue.createElement(Ue.default,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",open:ot.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Yr},ue.createElement(Ae.default,{form:Fn,scrollToFirstError:!0,layout:"vertical",onFinish:Fi},ue.createElement(Ae.default.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},ue.createElement(il,{rows:4})),ue.createElement(Ae.default.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},ue.createElement(il,{rows:4})),ue.createElement("div",{className:xd.footerWrap},ue.createElement(Ae.default.Item,null,ue.createElement(Me.ZP,{className:"mr5",size:"middle",onClick:Yr},"\u53D6\u6D88"),ue.createElement(Me.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:wi.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};var wr=(0,yt.connect)(({shixunsDetail:it,loading:lt,globalSetting:ot})=>({shixunsDetail:it,globalSetting:ot,loading:lt}))(bl),ao={wrap:"wrap___tkKvJ",head:"head___qUdlR",active:"active___fcOZ0",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",otherPractice:"otherPractice___qlpPQ",box:"box___TdGJn",popover:"popover___s3ipd",serverConfig:"serverConfig___tirr2",viewRecommendConfig:"viewRecommendConfig___vFIgu"},ua=Ee(85057),Dr=Ee(6021),Bl=Object.defineProperty,ku=Object.defineProperties,xs=Object.getOwnPropertyDescriptors,hu=Object.getOwnPropertySymbols,ic=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Tl=(it,lt,ot)=>lt in it?Bl(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Gl=(it,lt)=>{for(var ot in lt||(lt={}))ic.call(lt,ot)&&Tl(it,ot,lt[ot]);if(hu)for(var ot of hu(lt))Ms.call(lt,ot)&&Tl(it,ot,lt[ot]);return it},Yu=(it,lt)=>ku(it,xs(lt)),ed=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const Jd=Sr.default.Option,Qh=({practiceSetting:it,dispatch:lt,shixunsDetail:ot,globalSetting:xn,user:wi})=>{var Yi,dr,xi,Fn;const[Fi,Yr]=(0,ue.useState)(null),[Po,kr]=(0,ue.useState)([]),[$r,No]=(0,ue.useState)(!0),[So,po]=(0,ue.useState)({}),[lr,ma]=(0,ue.useState)([]),[Vo,mo]=(0,ue.useState)(),[Fo,Pr]=(0,ue.useState)(),[gr,Mo]=(0,ue.useState)([]),[Ur,Do]=(0,ue.useState)({}),yo=(0,ue.useRef)(null),ca=(0,ue.useRef)(!0),xa=(0,ue.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),$n=(0,ue.useRef)(null),[wo,Yo]=(0,ue.useState)(!1),[Jo,Qo]=(0,ue.useState)(!1),[ms,Cr]=(0,ue.useState)(!1),[Xo,Ha]=(0,ue.useState)({}),[ls,hs]=(0,ue.useState)({}),[Ua,pr]=(0,ue.useState)(!0),[Ho,Wa]=(0,ue.useState)(!1),[Ko,ts]=(0,ue.useState)(""),[fs,al]=(0,ue.useState)(""),{id:Xs,is_published:Os}=it,{frequence_image:eo=[],environments:qa=[],choice_small_type:sl=[],other_image:Kl=[]}=Ur,{name:La,description:Ro,authorization:na,small_type:Yl=[]}=So;(0,ue.useEffect)(()=>{Fi!==null&&(fa(),yo.current&&(yo.current.scrollTop=0))},[Fi]),(0,ue.useEffect)(()=>{Xs&&tc()},[Xs]),(0,ue.useEffect)(()=>{if(Fi!==null)return Ru(),()=>{clearTimeout($n.current)}},[Fi,Po,lr,Vo,Fo]);const Ru=()=>{clearTimeout($n.current),$n.current=setTimeout(()=>{!(0,Xn.isEqual)(xa.current.activeId,Fi)||!(0,Xn.isEqual)(xa.current.selectId,Po)||!(0,Xn.isEqual)(xa.current.serviceConfigList,lr)||!(0,Xn.isEqual)(xa.current.evaluateScript,Vo)||!(0,Xn.isEqual)(xa.current.evaluationScript,Fo)?lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},tc=()=>ed(void 0,null,function*(){var mr,vs,Aa;No(!0);const qs=yield(0,Ct.ZP)(`/api/shixuns/${Xs}/edit_environment_info.json`,{method:"get"});qs.status===0&&(Do(Gl({},qs.data)),No(!1),(mr=qs==null?void 0:qs.data)!=null&&mr.id?(xa.current.activeId=(vs=qs==null?void 0:qs.data)==null?void 0:vs.id,Yr((Aa=qs==null?void 0:qs.data)==null?void 0:Aa.id)):Yr(null))}),fa=()=>ed(void 0,null,function*(){var mr,vs,Aa,qs,Uu,Zs,ru,gd,Vd,of;pr(!0);const bu=yield(0,Ct.ZP)(`/api/shixuns/${Xs}/edit_environment_info.json`,{method:"get",params:{mirror_repository_id:Fi}});po(bu.data),xa.current.selectId=(mr=bu.data)==null?void 0:mr.choice_small_type,kr((vs=bu.data)==null?void 0:vs.choice_small_type),xa.current.serviceConfigList=(Aa=bu.data)==null?void 0:Aa.shixun_service_configs,ma((qs=bu.data)==null?void 0:qs.shixun_service_configs),xa.current.evaluateScript=bu.data.evaluate_script,mo(bu.data.evaluate_script),xa.current.evaluationScript=bu.data.choice_standard_scripts,Pr(bu.data.choice_standard_scripts),Mo(bu.data.standard_scripts),Wa((Uu=bu==null?void 0:bu.data)==null?void 0:Uu.is_jupyter_lab_private_cloud),ts(((Zs=bu==null?void 0:bu.data)==null?void 0:Zs.jupyter_lab_private_cloud_id)||((Vd=(gd=(ru=bu==null?void 0:bu.data)==null?void 0:ru.jupyter_lab_private_clouds)==null?void 0:gd[0])==null?void 0:Vd.id)),al((of=bu==null?void 0:bu.data)==null?void 0:of.jupyter_lab_private_instance_id),pr(!1)}),Za=()=>{var mr;const vs=()=>{yt.history.push(`/shixuns/${Xs}/challenges`),lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(mr=it==null?void 0:it.sideBar)!=null&&mr.confirmLeave?Ue.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:()=>{vs()}}):vs()},Eo=(mr=!1)=>ed(void 0,null,function*(){if((0,Tn.gy)(lt,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;let vs={sub_type:Po,main_type:Fi,shixun:{mirror_script_id:Fo,is_jupyter_lab_private_cloud:!1},shixun_info:{evaluate_script:Vo},shixun_service_configs:lr.map(qs=>({mirror_repository_id:qs.mirror_repository_id,cpu_limit:qs.cpu_limit,lower_cpu_limit:qs.lower_cpu_limit,memory_limit:qs.memory_limit,request_limit:qs.request_limit,resource_limit:qs.resource_limit}))};if(Ho){if(!fs){bt.ZP.warning("\u8BF7\u9009\u62E9\u5B9E\u4F8B");return}vs.shixun=Yu(Gl({},vs.shixun),{is_jupyter_lab_private_cloud:!0,jupyter_lab_private_cloud_id:Ko,jupyter_lab_private_instance_id:fs})}(yield(0,Ct.ZP)(`/api/shixuns/${Xs}`,{method:"put",body:vs})).status===0&&(bt.ZP.success("\u7F16\u8F91\u6210\u529F"),xa.current={activeId:Fi,selectId:Po,serviceConfigList:lr,evaluateScript:Vo,evaluationScript:Fo},lt({type:"practiceSetting/getCommonData",payload:{id:Xs}}),lt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}))}),Rr=Yl.filter(mr=>Po.includes(mr.id)),qo=()=>{Za()},Ka=(mr,vs,Aa)=>{ma(qs=>qs.map((Uu,Zs)=>Zs===Aa?Yu(Gl({},Uu),{[vs]:mr}):Uu))},Qs=()=>{(0,Tn.gy)(lt,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")||lt({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:Xs}}})},Sc=mr=>ed(void 0,null,function*(){const vs=yield lt({type:"shixunsDetail/getScriptContent",payload:{id:Xs,script_id:mr}});vs&&mo(vs.content)}),Xl=mr=>{Ue.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ue.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",ue.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>ed(void 0,null,function*(){yield Sc(mr),Ue.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:ue.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")})})})},sc=(mr,vs)=>{const Aa=lr[0]?[lr[0]]:[];vs.forEach(qs=>{const Uu=lr.find(Zs=>Zs.mirror_repository_id===Number(qs.key));if(Uu)Aa.push(Uu);else{const Zs=Yl.find(ru=>ru.id===Number(qs.key));if(Zs.mirror_name){const ru={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1,mirror_repository_id:Number(qs.key),name:Zs.mirror_name,request_limit:10};Aa.push(ru)}}}),ma(Aa),kr(mr)},Jl=mr=>{Ka(String(mr==null?void 0:mr.cpu),"cpu_limit",mr.index),Ka(String(mr==null?void 0:mr.memory),"memory_limit",mr.index),Yo(!1)},nd=mr=>{Ka(String(mr==null?void 0:mr.gpu_limit),"gpu_limit",mr.index),Ka(String(mr==null?void 0:mr.gpu_memory_limit),"gpu_memory_limit",mr.index),Qo(!1)};return ue.createElement(zo.Z,{loading:Ua,active:!0},ue.createElement("div",{className:ao.wrap},ue.createElement("div",{className:ao.head},[{key:!1,name:"\u901A\u7528\u4E91"},{key:!0,name:"\u4E13\u6709\u4E91"}].map(mr=>ue.createElement("div",{key:mr.name,className:Ho===mr.key?ao.active:"",onClick:()=>Wa(mr.key)},mr.name))),ue.createElement("div",{className:ao.practice,style:{display:Ho===!1?"flex":"none"}},ue.createElement(Jr.Z,{loading:$r,skin:"night",className:ao.left,dispatch:lt,value:Fi,data:qa,otherData:Kl,tags:eo,onChange:mr=>Yr(mr),onSearchWord:()=>{}}),ue.createElement("div",{className:ao.right},ue.createElement("header",null,ue.createElement("div",{className:ao.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",Fi===null?"\u2014 \u2014":La)),ue.createElement("div",{className:ao.content,ref:yo},Fi===null&&ue.createElement(fi.Z,{image:Ti,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),Fi!==null&&ue.createElement("div",{className:ao.des},ue.createElement("div",{className:ao.mainBody},ue.createElement(pt.Z,{value:Ro})),ue.createElement("div",{className:ao.title},"\u9644\u5E26\u73AF\u5883"),ue.createElement("div",{className:ao.selectBox},ue.createElement(Sr.default,{onChange:(mr,vs)=>sc(mr,vs),getPopupContainer:mr=>mr.parentNode,mode:"multiple",bordered:!1,value:Po,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},Yl.map((mr,vs)=>ue.createElement(Jd,{key:mr.id,value:mr.id},mr.type_name))),ue.createElement("div",{className:ao.smallType},Rr.map(mr=>mr.description?ue.createElement("span",{key:mr.id},mr.description):null))),!((Yi=ot==null?void 0:ot.detail)!=null&&Yi.is_jupyter_lab)&&ue.createElement(ue.Fragment,null,ue.createElement("div",{className:ao.title},"\u8BC4\u6D4B\u811A\u672C"),ue.createElement("div",{className:ao.evaluating},ue.createElement("div",{className:ao.evaluatingLabel},Os&&ue.createElement("div",{onClick:()=>{(0,Tn.gy)(lt,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")},className:ao.mask}),ue.createElement(Sr.default,{style:{width:400},bordered:!1,getPopupContainer:mr=>mr.parentNode,value:Fo,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:mr=>{Xl(mr),Pr(mr)}},(gr||[]).map((mr,vs)=>ue.createElement(Jd,{value:parseInt(mr.id),name:mr.scptname,key:vs},mr.scptname))),ue.createElement("span",{className:ao.evaluatingS1,onClick:Qs},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),ue.createElement(Jt.Z,{overlayClassName:ao.popover,placement:"bottomLeft",content:ue.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",ue.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",ue.createElement("br",null),"challengeProgramNames",ue.createElement("br",null),"sourceClassNames",ue.createElement("br",null),ue.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",ue.createElement("br",null),ue.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",ue.createElement("br",null),"src/step1/HelloWorld.java",ue.createElement("br",null),"src/step2/Other.java",ue.createElement("br",null),ue.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",ue.createElement("br",null),"step1.HelloWorld",ue.createElement("br",null),"step2.Other",ue.createElement("br",null),ue.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",ue.createElement("br",null),'ff challengeProgramNames=("src/step1/',ue.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',ue.createElement("br",null),'sourceClassNames=("step1.HelloWorld',ue.createElement("br",null),'" "step2.Other")',ue.createElement("br",null),ue.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},ue.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},ue.createElement(oo.Z,null)))),ue.createElement(li.ZP,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:Vo,onChange:mr=>{if(ca.current){ca.current=!1;return}mo(mr),(0,Tn.gy)(lt,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(()=>{ca.current=!0,mo(xa.current.evaluateScript)},200)}}))),((dr=ot.detail)==null?void 0:dr.identity)<3&&!!lr.length&&ue.createElement(ue.Fragment,null,ue.createElement("div",{className:ao.title},"\u8D44\u6E90\u914D\u7F6E"),ue.createElement("div",{className:ao.serviceSettingWrap},lr==null?void 0:lr.map((mr,vs)=>{var Aa,qs,Uu;return ue.createElement("div",{key:vs,className:"mb30"},ue.createElement("div",{className:"mb20"},ue.createElement("span",{className:"font16"},mr.name)),ue.createElement("div",{style:{color:"#333",marginBottom:4}},"CPU\u548C\u5185\u5B58"),ue.createElement(dt.Z,{align:"middle"},ue.createElement(dt.Z,{align:"middle",wrap:!1},ue.createElement("div",{className:ao.serverConfig,style:Os?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{},onClick:()=>{Os||(Ha({index:vs,cpu:mr==null?void 0:mr.cpu_limit,memory:mr==null?void 0:mr.memory_limit}),Yo(!0))}},ue.createElement("div",null,ue.createElement("span",null,mr==null?void 0:mr.cpu_limit,"\u6838")," ",ue.createElement("span",null,mr==null?void 0:mr.memory_limit,"GB")),ue.createElement("i",{className:"iconfont icon-bianji21",style:Os?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{}}))),ue.createElement(dt.Z,{align:"middle",wrap:!1},ue.createElement("div",{className:ao.viewRecommendConfig,onClick:()=>Cr(!0)},"\u67E5\u770B\u63A8\u8350\u914D\u7F6E"))),(((Uu=(Aa=xn==null?void 0:xn.setting)==null?void 0:Aa.big_model_users)==null?void 0:Uu.includes((qs=wi==null?void 0:wi.userInfo)==null?void 0:qs.login))||(0,Gr.fn)())&&ue.createElement(ue.Fragment,null,ue.createElement("div",{style:{color:"#333",marginBottom:4,marginTop:15}},"GPU\u548C\u663E\u5B58"),ue.createElement(dt.Z,{align:"middle"},ue.createElement(dt.Z,{align:"middle",wrap:!1},ue.createElement("div",{className:ao.serverConfig,style:Os?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{},onClick:()=>{Os||(hs({index:vs,gpu_limit:(mr==null?void 0:mr.gpu_limit)||0,gpu_memory_limit:(mr==null?void 0:mr.gpu_memory_limit)||0}),Qo(!0))}},!!(mr!=null&&mr.gpu_limit)&&ue.createElement(ue.Fragment,null,ue.createElement("div",null,ue.createElement("span",null,"\u663E\u5361",mr==null?void 0:mr.gpu_limit,"\u4E2A")," ",ue.createElement("span",null,"\u663E\u5B58",mr==null?void 0:mr.gpu_memory_limit,"GB")),ue.createElement("i",{className:"iconfont icon-bianji21",style:Os?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{}})),!(mr!=null&&mr.gpu_limit)&&ue.createElement(ue.Fragment,null,ue.createElement("div",null,"\u672A\u914D\u7F6EGPU"),ue.createElement("i",{className:"iconfont icon-bianji21",style:Os?{color:"rgba(0, 0, 0, 0.25)",cursor:"not-allowed"}:{}})))))),ue.createElement("div",{className:ao.serviceBox},ue.createElement("div",{className:ao.serviceSetLeft},"\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),ue.createElement(ke.default,{value:mr.resource_limit,style:{width:400,height:50},disabled:Os,maxLength:5,onChange:Zs=>{const{value:ru}=Zs.target,gd=/^\d*(\.\d*)?$/;ru.match(gd)&&Ka(Zs.target.value,"resource_limit",vs)},addonAfter:"M"}),ue.createElement("label",{className:ao.serviceSetTip},"File size limit\u53C2\u6570\uFF0C\u8868\u793A\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u7684\u5927\u5C0F\u9650\u5236")))}))))),ue.createElement("div",{className:ao.btns},ue.createElement(Me.ZP,{size:"middle",style:{marginRight:20},onClick:qo},"\u53D6\u6D88"),ue.createElement(Me.ZP,{size:"middle",type:"primary",disabled:Fi===null,onClick:()=>Eo()},"\u4FDD\u5B58"))),ue.createElement(Lo.Z,null),ue.createElement(wr,{onFinish:mr=>mo(mr)}),ue.createElement(Ln.Z,null),ue.createElement(ys.Z,{visible:wo,onOk:mr=>Jl(mr),onCancel:()=>Yo(!1),info:Xo}),ue.createElement(bs.Z,{visible:Jo,onOk:mr=>nd(mr),onCancel:()=>Qo(!1),info:ls}),ue.createElement(_o.Z,{identifier:Xs,visible:ms,onCancel:()=>Cr(!1),info:null,isJupyter:!0})),ue.createElement("div",{className:ao.otherPractice,style:{display:Ho===!0?"flex":"none"}},ue.createElement("div",{className:ao.box},ue.createElement(ua.qp,{title:"",titleWidth:0,dataSource:(So==null?void 0:So.jupyter_lab_private_clouds)||[],value:Ko,style:{marginLeft:-20},onChange:mr=>ts(mr)}),ue.createElement(xu.default,{rowSelection:{columnWidth:120,type:"radio",onChange:mr=>{al(mr[0])},selectedRowKeys:[fs]},style:{marginTop:13},rowKey:"id",columns:[{title:"\u540D\u79F0",dataIndex:"name"},{title:"\u63CF\u8FF0",dataIndex:"des"}],dataSource:((Fn=(xi=So==null?void 0:So.jupyter_lab_private_clouds)==null?void 0:xi.find(mr=>mr.id===Ko))==null?void 0:Fn.image)||[],pagination:!1})),ue.createElement("div",{className:ao.btns},ue.createElement(Me.ZP,{size:"middle",style:{marginRight:20},onClick:qo},"\u53D6\u6D88"),ue.createElement(Dr.Z,{size:"middle",type:"primary",disabled:Fi===null,onClick:Eo},"\u4FDD\u5B58")))))};var Th=(0,yt.connect)(({practiceSetting:it,globalSetting:lt,shixunsDetail:ot,user:xn})=>({practiceSetting:it,globalSetting:lt,shixunsDetail:ot,user:xn}))(Qh);const Id=({shixunsDetail:it})=>{var lt,ot,xn,wi;const[Yi,dr]=(0,ue.useState)(!0);return(0,ue.useEffect)(()=>{var xi;typeof((xi=it==null?void 0:it.detail)==null?void 0:xi.is_jupyter_lab)=="boolean"&&Yi&&dr(!1)},[(lt=it==null?void 0:it.detail)==null?void 0:lt.is_jupyter_lab,Yi]),console.log((ot=it==null?void 0:it.detail)==null?void 0:ot.is_jupyter_lab,Yi),ue.createElement(zo.Z,{loading:Yi,active:!0},((xn=it==null?void 0:it.detail)==null?void 0:xn.is_jupyter_lab)===!1&&ue.createElement(Su,null),((wi=it==null?void 0:it.detail)==null?void 0:wi.is_jupyter_lab)===!0&&ue.createElement(Th,null))};var Ol=(0,yt.connect)(({shixunsDetail:it})=>({shixunsDetail:it}))(Id),rc=Ee(56102),Il={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"},Dc={wrap:"wrap___EmsVa",colorBlue:"colorBlue___XqtfP",repeatedName:"repeatedName___yMQsm"},Pd=Ee(81939),Ul=Object.defineProperty,qh=Object.defineProperties,xf=Object.getOwnPropertyDescriptors,wd=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable,_u=(it,lt,ot)=>lt in it?Ul(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,ul=(it,lt)=>{for(var ot in lt||(lt={}))hh.call(lt,ot)&&_u(it,ot,lt[ot]);if(wd)for(var ot of wd(lt))Vu.call(lt,ot)&&_u(it,ot,lt[ot]);return it},ou=(it,lt)=>qh(it,xf(lt)),Oh=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const{Dragger:Qd}=ut.default;var $h=({dispatch:it,id:lt,onClose:ot,onOK:xn,visible:wi,wrapClassName:Yi,local:dr,containerId:xi,rootIdentifier:Fn})=>{var Fi;const[Yr,Po]=(0,ue.useState)({}),[kr,$r]=(0,ue.useState)([]),[No,So]=(0,ue.useState)([]),[po,lr]=(0,ue.useState)(0),[ma,Vo]=(0,ue.useState)(!1),[mo,Fo]=(0,ue.useState)(!1),[Pr]=Ae.default.useForm(),[gr,Mo]=(0,ue.useState)([]),Ur=(0,ue.useRef)([]);(0,ue.useEffect)(()=>{wi&&(Pr.resetFields(),Mo([]),So([]),$r([]),lr(0),Fo(!1),Vo(!1))},[wi]);const Do=pr=>{var Ho,Wa,Ko;if(pr.file.status==="done"||pr.file.status==="uploading"){if(Mo(pr.fileList),!pr.file.response)return;if((Ho=pr.file.response)!=null&&Ho.id){bt.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Mo(gr.filter(ts=>ts.uid!==pr.file.uid)),(Wa=pr.file.response)!=null&&Wa.message&&bt.ZP.info((Ko=pr.file.response)==null?void 0:Ko.message)}},yo=pr=>Oh(void 0,null,function*(){var Ho;if(!po){const Ko=gr.filter(ts=>ts.uid!==pr.uid);Mo(Ko),Ur.current=[...Ko],$r(kr.filter(ts=>ts!==pr.name)),bt.ZP.info("\u5220\u9664\u6210\u529F"),Ko.length||(Pr.setFieldsValue({file:void 0}),Pr.validateFields());return}if(!pr.response){bt.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/${lt}/destroy_data_sets.json`,{method:"Delete",body:{id:[(Ho=pr==null?void 0:pr.response)==null?void 0:Ho.id]}})).status===0&&(Mo(gr.filter(Ko=>Ko.uid!==pr.uid)),bt.ZP.info("\u5220\u9664\u6210\u529F"))}),ca=pr=>{if(gr!=null&&gr.some(Wa=>Wa.name===pr.name))return bt.ZP.info(`${pr.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(pr.size/1024/1024>500)return bt.ZP.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;const Ho={name:pr.name,uid:pr.uid,file:pr,percent:0};return gr.push(Ho),Ur.current=[...gr],Mo([...gr]),!1},xa={height:300,multiple:!0,disabled:po>0,withCredentials:!0,fileList:gr,action:`${ti.Z.API_SERVER}/api/attachments.json`,onChange:Do,onRemove:yo,beforeUpload:ca},$n=(pr,Ho,Wa,Ko,ts)=>{const fs=new FormData;Object.keys(pr).forEach(Xs=>{fs.append(Xs,pr[Xs])});const al=new window.XMLHttpRequest;return al.withCredentials=!0,al.addEventListener("load",function(Xs){var Os;Wa(JSON.parse((Os=Xs==null?void 0:Xs.target)==null?void 0:Os.response))},!1),al.addEventListener("error",function(Xs){ts&&ts(Xs)},!1),al.upload.onprogress=Xs=>{Ko&&Ko(Xs)},al.open("POST",Ho),al.send(fs),al},wo=(pr,Ho)=>{if(pr.lengthComputable){const Wa=Math.floor(pr.loaded/pr.total*100),Ko=ou(ul({},Ho),{percent:Wa,status:Wa===100?"done":"uploading"});console.log(Ur.current,333),Ur.current=Ur.current.map(ts=>ts.uid===Ho.uid?Ko:ts),Mo(Ur.current)}},Yo=(pr,Ho)=>{const Wa=ou(ul({},Ho),{status:"error"});bt.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ur.current=Ur.current.map(Ko=>Ko.uid===Ho.uid?Wa:Ko),Ur.current.every(Ko=>Ko.status==="done"||Ko.status==="error")&&(Fo(!1),lr(2)),Mo(Ur.current)},Jo=(pr,Ho)=>{let Wa=ou(ul({},Ho),{status:"done"});if(pr.status===0||(Wa=ou(ul({},Ho),{status:"error"}),bt.ZP.error("\u4E0A\u4F20\u5931\u8D25!")),Ur.current=Ur.current.map(Ko=>Ko.uid===Ho.uid?Wa:Ko),Ur.current.every(Ko=>Ko.status==="done")){bt.ZP.success("\u4E0A\u4F20\u5B8C\u6210!"),Ha(!0);return}Ur.current.every(Ko=>Ko.status==="done"||Ko.status==="error")&&(Fo(!1),lr(2)),Mo(Ur.current)},Qo=()=>{let pr=!0;return window.navigator.onLine==!0?pr=!0:pr=!1,pr},ms=pr=>Oh(void 0,null,function*(){if(Fo(!0),po===3){lr(2);return}if(po===2||po===1){Cr();return}const{commitMessage:Ho="",fileOss:Wa=[]}=pr||{},ts=(dr?gr:Wa).map(al=>al.name);if(ts.filter(al=>al.indexOf("\u3001")!=-1||al.indexOf(" ")!=-1).length>0){bt.ZP.info("\u6570\u636E\u96C6\u540D\u79F0\u7981\u6B62\u6709\u7A7A\u683C\u4E0E\u3001"),Fo(!1);return}const fs=yield(0,Ct.ZP)(`/api/shixuns/${lt}/check_data_sets`,{method:"post",body:{files_name:ts}});if(fs.status===-3){$r(fs==null?void 0:fs.exist_files),Fo(!1);return}if(JSON.stringify(fs)==="{}"){Fo(!1),bt.ZP.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!");return}fs.status===0&&(gr.forEach(al=>{const Xs=$n({file:al.file,description:Ho},`${ti.Z.API_SERVER}/api/shixuns/${lt}/upload_data_sets.json`,Os=>Jo(Os,al),Os=>wo(Os,al),Os=>Yo(Os,al));No.push(Xs)}),lr(1))}),Cr=()=>{const{commitMessage:pr=""}=ul({},Pr.getFieldsValue())||{},Ho=Ur.current.filter(Ko=>Ko.status==="error"),Wa=Ur.current.map(Ko=>ou(ul({},Ko),{status:Ko.status==="error"?"uploading":Ko.status}));Mo(Wa),Ho.forEach(Ko=>{const ts=$n({file:Ko.file,description:pr},`${ti.Z.API_SERVER}/api/shixuns/${lt}/upload_data_sets.json`,fs=>Jo(fs,Ko),fs=>wo(fs,Ko),fs=>Yo(fs,Ko));No.push(ts)})},Xo=pr=>{var Ho,Wa;if(console.log(pr,"changedValues"),"fileOss"in pr){if(pr!=null&&pr.fileOss.every(Ko=>Ko.status==="done")&&((Ho=pr==null?void 0:pr.fileOss)!=null&&Ho.length)){bt.ZP.success("\u4E0A\u4F20\u5B8C\u6210!"),Ha(!0);return}if(pr!=null&&pr.fileOss.every(Ko=>Ko.status==="done"||Ko.status==="error")&&((Wa=pr==null?void 0:pr.fileOss)!=null&&Wa.length)){lr(3),Fo(!1);return}$r(kr.filter(Ko=>{var ts;return(ts=pr==null?void 0:pr.fileOss)==null?void 0:ts.some(fs=>fs.name===Ko)}))}Po(ul({},Pr.getFieldsValue()))},Ha=pr=>{pr||(Vo(!0),No.forEach(Ho=>{Ho.abort()})),xn(),ot()},ls=()=>{const{fileOss:pr=[]}=ul({},Pr.getFieldsValue())||{},Ho=gr==null?void 0:gr.every(Ko=>Ko.status==="done"),Wa=pr==null?void 0:pr.every(Ko=>Ko.status==="done");if(!Ho||!Wa){Ue.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:()=>{Ha()}});return}Ha()},hs=()=>ue.createElement(ue.Fragment,null,ue.createElement("div",null,ue.createElement("i",{className:`iconfont icon-shangchuan font50 ${Dc.colorBlue}`})),ue.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",ue.createElement("span",{className:`${Dc.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20"))),Ua=pr=>{console.log(pr,444)};return ue.createElement(Ue.default,{open:wi,onOk:()=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),Pr.submit()},centered:!0,okText:po===0?"\u786E\u5B9A":po===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:mo},onCancel:ls,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},ue.createElement("div",{className:Dc.wrap},ue.createElement(Ae.default,{className:"mt10",form:Pr,scrollToFirstError:!0,layout:"vertical",onFinish:ms,onValuesChange:Xo},dr?ue.createElement(Ae.default.Item,{label:ue.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",ue.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},ue.createElement(Qd,ul({},xa)," ",hs())):ue.createElement(Ae.default.Item,{label:ue.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",ue.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},ue.createElement(Pd.ZP,{identifier:Fn,cancelUpload:ma,container_type:"Shixun",container_id:xi,uploading:po<3?po:0,disabled:po>0,height:300,maxSize:100*1024*1024*1024,description:Yr.commitMessage||"",text:hs(),onComplete:Ua,realFileName:!0})),!!kr.length&&ue.createElement("span",{className:Dc.repeatedName},kr.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),ue.createElement(Ae.default.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ue.createElement(ke.default,{bordered:!1,disabled:po>0,maxLength:100,suffix:`${((Fi=Yr.commitMessage)==null?void 0:Fi.length)||0}/100`,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))},qd=Ee(79219),Rd=Ee(31708),qr=Ee(19683),Ih=Object.defineProperty,Dt=Object.defineProperties,si=Object.getOwnPropertyDescriptors,ef=Object.getOwnPropertySymbols,Rh=Object.prototype.hasOwnProperty,cd=Object.prototype.propertyIsEnumerable,hc=(it,lt,ot)=>lt in it?Ih(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Au=(it,lt)=>{for(var ot in lt||(lt={}))Rh.call(lt,ot)&&hc(it,ot,lt[ot]);if(ef)for(var ot of ef(lt))cd.call(lt,ot)&&hc(it,ot,lt[ot]);return it},Gc=(it,lt)=>Dt(it,si(lt)),tf=(it,lt)=>{var ot={};for(var xn in it)Rh.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&ef)for(var xn of ef(it))lt.indexOf(xn)<0&&cd.call(it,xn)&&(ot[xn]=it[xn]);return ot},el=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const{Fragment:Zo}=ue,{TabPane:au}=en.default,Xu=it=>{var lt=it,{globalSetting:ot,dispatch:xn,practiceSetting:wi,shixunsDetail:Yi,user:dr}=lt,xi=tf(lt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Fn,Fi,Yr,Po,kr,$r;const{id:No}=wi,[So,po]=(0,ue.useState)([]),[lr,ma]=(0,ue.useState)({}),[Vo,mo]=(0,ue.useState)([]),[Fo,Pr]=(0,ue.useState)(!1),[gr,Mo]=(0,ue.useState)(!0),[Ur,Do]=(0,ue.useState)(!1),[yo,ca]=(0,ue.useState)(!1),[xa,$n]=(0,ue.useState)(!1),[wo,Yo]=(0,ue.useState)(!1),[Jo,Qo]=(0,ue.useState)("all"),[ms,Cr]=(0,ue.useState)([]),[Xo,Ha]=(0,ue.useState)([]),[ls,hs]=(0,ue.useState)(!1),[Ua,pr]=(0,ue.useState)({}),[Ho,Wa]=(0,ue.useState)(!1),[Ko,ts]=(0,ue.useState)([]),[fs,al]=(0,ue.useState)({page:1,limit:10,total:0}),[Xs,Os]=(0,ue.useState)({page:1,limit:10,search:"",order:"mine"});(0,ue.useEffect)(()=>{No&&qa()},[No]);const eo=fa=>{const Za=Gc(Au({},fs),{page:fa});Ha([]),al(Za),qa(Za)},qa=fa=>el(void 0,null,function*(){const Eo=fa||{page:1,limit:10,total:0};Pr(!0);const Rr=yield xn({type:"shixunsDetail/getSetData",payload:Gc(Au({},Eo),{id:No})});Rr!=null&&Rr.data_sets&&(Pr(!1),po([...Rr.data_sets]),al(Gc(Au({},Eo),{total:Rr==null?void 0:Rr.data_sets_count})),Mo(!1),ma(Au({},Rr)))}),sl=()=>ue.createElement("div",{className:Il.empty},ue.createElement("img",{src:qd.x7,width:"258"}),ue.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~")),La={selectedRowKeys:Xo,columnWidth:70,onChange:fa=>{console.log("selectedRowKeys changed: ",fa),Ha(fa)}},Ro=fa=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);const Za=fa?[fa]:Xo;Ue.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>el(void 0,null,function*(){if((yield(0,Ct.ZP)(`/api/shixuns/${No}/destroy_data_sets.json`,{method:"Delete",body:{id:Za}})).status===0){const Rr=Za.length===So.length&&fs.page>1?fs.page-1:fs.page;bt.ZP.success("\u5220\u9664\u6210\u529F"),qa(Gc(Au({},fs),{page:Rr})),Ha([])}})})},na=()=>el(void 0,null,function*(){const{title:fa}=Ua;let Za=null;if(console.log(fa,"title"),fa===""){Za="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pr(Gc(Au({},Ua),{errorDes:Za}));return}if(fa.includes(" ")){Za="\u6587\u4EF6\u540D\u4E0D\u80FD\u6709\u7A7A\u683C",pr(Gc(Au({},Ua),{errorDes:Za}));return}const Eo=So.find(Ka=>Ka.id===(Ua==null?void 0:Ua.id)).title;if(fa===Eo.substring(0,Eo.lastIndexOf("."))||fa===Eo){Za="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pr(Gc(Au({},Ua),{errorDes:Za}));return}const Rr=Eo.includes(".")?Eo.substring(Eo.lastIndexOf("."),Eo.length):"";(yield(0,Ct.ZP)(`/api/shixuns/${No}/rename_data_sets.json`,{method:"post",body:{id:Ua==null?void 0:Ua.id,new_file_name:fa+Rr}})).status===0&&(bt.ZP.success("\u91CD\u547D\u540D\u6210\u529F"),qa(fs),Do(!1),pr({}))}),Yl=()=>{const{download_url:fa}=Ua;Ru(fa),bt.ZP.success("\u590D\u5236\u6210\u529F"),ca(!1),pr({})},Ru=fa=>{const Za=fa,Eo=document.createElement("input");Eo.value=Za,document.body.appendChild(Eo),Eo.select(),document.execCommand("Copy"),Eo.style.display="none"},tc=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:fa=>ue.createElement(Ii.Z,{title:fa},ue.createElement("span",null,fa))},{title:"\u6570\u636E\u96C6\u6765\u6E90",dataIndex:"data_set_title",key:"data_set_title",align:"left",ellipsis:!0,render:(fa,Za)=>Za!=null&&Za.data_set_id?ue.createElement(Ii.Z,{title:fa},ue.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{(0,Nt.xg)(`/dataset/${Za==null?void 0:Za.data_set_id}/detail?tabId=public`)}},fa)):"--"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:fa=>ue.createElement(Ii.Z,{title:fa},ue.createElement("span",null,fa||"--"))},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:(fa,Za)=>xr()(Za.created_on).format("YYYY-MM-DD HH:mm")},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:(fa,Za)=>ue.createElement("div",{className:Il.path},ue.createElement(Ii.Z,{title:fa},ue.createElement("span",{className:Il.text},fa)),ue.createElement(rc.CopyToClipboard,{text:fa,onCopy:()=>bt.ZP.success("\u590D\u5236\u6210\u529F")},ue.createElement(Ii.Z,{title:"\u590D\u5236"},ue.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:(fa,Za)=>ue.createElement("div",{className:Il.actionsBtns},ue.createElement(Ii.Z,{title:"\u91CD\u547D\u540D"},ue.createElement("span",{className:"iconfont icon-zhongmingming",onClick:()=>{var Eo;pr((0,Xn.clone)(Gc(Au({},Za),{title:Za!=null&&Za.title.includes(".")?(Eo=Za==null?void 0:Za.title)==null?void 0:Eo.substring(0,Za.title.lastIndexOf(".")):Za==null?void 0:Za.title}))),Do(!0),(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),ue.createElement(Ii.Z,{title:"\u5206\u4EAB"},ue.createElement("span",{className:"iconfont icon-fenxiang",onClick:()=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pr((0,Xn.clone)(Za)),ca(!0)}})),ue.createElement(Ii.Z,{title:"\u4E0B\u8F7D"},ue.createElement("span",{className:"iconfont icon-xiazai3",onClick:()=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),(0,Nt.Nd)(Za.title,Za==null?void 0:Za.download_url)}})),ue.createElement(Ii.Z,{title:"\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6\u4E2D"},ue.createElement("span",{className:"iconfont icon-tongbushuju",onClick:()=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u540C\u6B65"]),Yo(!0),ts([Za]),Cr([Za.id])}})),ue.createElement(Ii.Z,{title:"\u5220\u9664"},ue.createElement("span",{className:"iconfont icon-shanchu8",onClick:()=>{(0,Nt.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),Ro(Za.id)}})))}];return ue.createElement("div",{className:Il.dataset},ue.createElement("div",{className:Il.header},ue.createElement("div",{className:Il.title},"\u6570\u636E\u96C6(",fs.total,")"),ue.createElement("div",{className:Il.dataPath},ue.createElement("span",{className:Il.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),ue.createElement("input",{value:lr==null?void 0:lr.folder_name,disabled:!0}),ue.createElement(rc.CopyToClipboard,{text:lr==null?void 0:lr.folder_name,onCopy:()=>bt.ZP.success("\u590D\u5236\u6210\u529F")},ue.createElement(Ii.Z,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},ue.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),ue.createElement("div",{className:Il.btns},ue.createElement(Me.ZP,{type:"primary",ghost:!0,onClick:()=>Ro(),disabled:!Xo.length,style:{width:"60px"}},"\u5220\u9664"),ue.createElement(Me.ZP,{type:"primary",className:"ml10",style:{width:"60px"},ghost:!0,onClick:()=>{Yo(!0),Cr(Xo),ts(So.filter(fa=>Xo.includes(fa.id)))},disabled:!Xo.length},"\u540C\u6B65"),ue.createElement(Co.Z,{className:"ml10",disabled:((Fn=dr==null?void 0:dr.userInfo)==null?void 0:Fn.user_status)===2,dropdownRender:()=>ue.createElement(xo.default,null,ue.createElement(xo.default.Item,{key:1,onClick:()=>{hs(!0)}},"\u4E0A\u4F20\u6570\u636E\u96C6"),ue.createElement(xo.default.Item,{key:2,onClick:()=>{$n(!0),Qo("all")}},"\u9009\u62E9\u6570\u636E\u96C6"))},ue.createElement("span",{className:Il.selectBtn},ue.createElement("span",null,"\u589E\u52A0\u6570\u636E\u96C6"))))),ue.createElement("div",{className:Il.content},ue.createElement(zo.Z,{loading:gr,active:!0,paragraph:{rows:5}},fs.total?ue.createElement(xu.default,{rowSelection:La,className:Il.customTable,dataSource:So,bordered:!1,rowKey:fa=>fa.id,rowClassName:Il.row,columns:tc,loading:Fo,pagination:{pageSize:fs.limit,total:fs.total,current:fs.page,onChange:eo,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):sl())),ue.createElement($h,{rootIdentifier:(Fi=Yi==null?void 0:Yi.detail)==null?void 0:Fi.root_identifier,wrapClassName:Il.uploadFileModal,id:No,containerId:(Yr=Yi==null?void 0:Yi.detail)==null?void 0:Yr.id,local:(Po=ot==null?void 0:ot.setting)==null?void 0:Po.is_local,dispatch:xn,visible:ls,onClose:()=>hs(!1),onOK:qa}),ue.createElement(Ue.default,{title:"\u91CD\u547D\u540D",open:Ur,onOk:na,centered:!0,wrapClassName:Il.renameModal,onCancel:()=>{Do(!1),pr({})},width:"1000px"},ue.createElement("div",null,ue.createElement("div",{className:Il.fileName},ue.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),ue.createElement(ke.default,{value:Ua==null?void 0:Ua.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:fa=>{pr(Gc(Au({},Ua),{title:fa.target.value,errorDes:null}))},maxLength:60,suffix:`${((kr=Ua==null?void 0:Ua.title)==null?void 0:kr.length)||0}/60`}),(Ua==null?void 0:Ua.errorDes)&&ue.createElement("div",{className:Il.errorDes},Ua==null?void 0:Ua.errorDes))),ue.createElement(Ue.default,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",open:yo,onOk:Yl,centered:!0,wrapClassName:Il.shareModal,onCancel:()=>{ca(!1),pr({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},ue.createElement("div",null,ue.createElement("div",{className:Il.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",ue.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),ue.createElement(ke.default,{bordered:!1,addonBefore:"\u94FE\u63A5",value:Ua==null?void 0:Ua.download_url}))),ue.createElement(Rd.Z,{setVisible:$n,visible:xa,recordId:ms,type:Jo,updateData:qa,identifier:($r=Yi.detail)==null?void 0:$r.identifier}),ue.createElement(Ue.default,{title:"\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6",open:wo,width:400,centered:!0,keyboard:!1,onCancel:()=>Yo(!1),maskClosable:!1,footer:ue.createElement("div",{style:{display:"flex",justifyContent:"center"}},ue.createElement("div",{className:Il.leftButton,onClick:()=>{Wa(!0)}},"\u751F\u6210\u65B0\u7684\u6570\u636E\u96C6"),ue.createElement("div",{className:Il.rightButton,onClick:()=>{Yo(!1),$n(!0),Qo("my")}},"\u53D1\u9001\u5230\u5DF2\u6709\u6570\u636E\u96C6\u4E2D"))},ue.createElement("div",{className:Il.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")),ue.createElement(qr.Z,{visible:Ho,attachmentInfo:Ko,onClose:()=>Wa(!1),onSuccess:fa=>{Wa(!1),yt.history.push(`/dataset/${fa}/detail?tabId=mine`)}}))};var tl=(0,yt.connect)(({globalSetting:it,shixunsDetail:lt,practiceSetting:ot,user:xn})=>({globalSetting:it,shixunsDetail:lt,user:xn,practiceSetting:ot}))(Xu),Oa=Ee(31797),ml={wrap:"wrap___VIvSS",content:"content___pqoZT",mainPathWrap:"mainPathWrap___v3uSU",colorBlue:"colorBlue___AjQlz"},We=Object.defineProperty,Ze=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Gt=(it,lt,ot)=>lt in it?We(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Sn=(it,lt)=>{for(var ot in lt||(lt={}))$e.call(lt,ot)&&Gt(it,ot,lt[ot]);if(Ze)for(var ot of Ze(lt))jt.call(lt,ot)&&Gt(it,ot,lt[ot]);return it},Pn=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const Hn=it=>it!=null&&it.length?it.filter((lt,ot)=>ot!==0).map(lt=>lt.val).join("").substr(1):"",ni=({shixunsDetail:it,globalSetting:lt,loading:ot,dispatch:xn,fileType:wi,path:Yi,onFinish:dr=()=>{}})=>{const xi=(0,yt.useParams)(),[Fn,Fi]=(0,ue.useState)(""),[Yr,Po]=(0,ue.useState)([]),[kr,$r]=(0,ue.useState)([]),So=[yl.OriginalPicturePath,yl.ExpectPicturePath,yl.PicturePath].includes(wi);(0,ue.useEffect)(()=>{it.actionTabs.key==="EditPracticeSetting-SelectFilePath"&&(Fi(Yi||""),po())},[it.actionTabs.key]);const po=(gr="")=>Pn(void 0,null,function*(){var Mo;const Ur=yield xn({type:"shixunsDetail/getRepository",payload:{id:xi.id,path:gr}});if(gr===""&&!((Mo=Ur==null?void 0:Ur.trees)!=null&&Mo.length)&&bt.ZP.warning("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Ur!=null&&Ur.trees){const Do=Ur.trees.map(yo=>Sn(Sn({},yo),{name:yo.name,val:yo.name}));$r(Do||[])}}),lr=gr=>{const Mo=Hn(Yr),Ur=`${Mo&&`${Mo}/`}${gr}`;wi===yl.Path?!(Fn!=null&&Fn.includes(`${Ur}\uFF1B`))&&Fi(`${Fn}${Ur}\uFF1B`):wi===yl.ExecPath&&Fi(Ur)},ma=gr=>{if(gr.type==="tree"){Yr.length?Yr.push({val:`/${gr.val}`,path:gr.val}):Yr.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${gr.val}`,path:gr.val}),Po(Yr);const Mo=Hn(Yr);So&&Fi(Mo),po(Mo)}},Vo=(gr,Mo)=>{const Ur=Yr.filter((yo,ca)=>ca<=Mo);Po(Ur);const Do=Hn(Ur);So&&Fi(Do),po(Do)},mo=()=>Pn(void 0,null,function*(){dr(Fn),Fo()}),Fo=()=>{Fi(""),Po([]),$r([]),xn({type:"shixunsDetail/setActionTabs",payload:{}})},Pr=Hn(Yr);return ue.createElement(Ue.default,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,open:it.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:mo,onCancel:Fo},ue.createElement("div",{className:ml.wrap},ue.createElement("div",{className:ml.content},ue.createElement("div",{className:ml.mainPathWrap},!!(Yr!=null&&Yr.length)&&Yr.map((gr,Mo)=>ue.createElement("a",{key:Mo,onClick:()=>Vo(gr,Mo)},gr.val))),!!(kr!=null&&kr.length)&&kr.map((gr,Mo)=>gr.type==="tree"?ue.createElement("a",{key:Mo,onClick:()=>ma(gr)},ue.createElement("i",{className:`iconfont icon-wenjianjia ${ml.colorBlue}`}),Pr&&`${Pr}/`,gr.name):ue.createElement("a",{key:Mo,onClick:()=>lr(`${gr.name}`)},ue.createElement("i",{className:`iconfont icon-zuoye ${ml.colorBlue}`}),Pr&&`${Pr}/`,gr.name))),ue.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),ue.createElement(ke.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Fn,onChange:gr=>Fi(gr.target.value)})))};var yi=(0,yt.connect)(({shixunsDetail:it,loading:lt,globalSetting:ot})=>({shixunsDetail:it,globalSetting:ot,loading:lt.models.index}))(ni),$i={wrap:"wrap___AnxZp",fixBtn:"fixBtn___sQhsA"},mi=Ee(9165),Gi=Object.defineProperty,ci=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,ji=(it,lt,ot)=>lt in it?Gi(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,cr=(it,lt)=>{for(var ot in lt||(lt={}))hr.call(lt,ot)&&ji(it,ot,lt[ot]);if(ci)for(var ot of ci(lt))Un.call(lt,ot)&&ji(it,ot,lt[ot]);return it},so=(it,lt)=>{var ot={};for(var xn in it)hr.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&ci)for(var xn of ci(it))lt.indexOf(xn)<0&&Un.call(it,xn)&&(ot[xn]=it[xn]);return ot},Zr=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const fo=it=>{var lt=it,{shixunsDetail:ot,globalSetting:xn,user:wi,dispatch:Yi}=lt,dr=so(lt,["shixunsDetail","globalSetting","user","dispatch"]),xi,Fn;const Fi=(0,yt.useLocation)(),Yr=(0,ue.useRef)((Fn=(xi=Fi.pathname)==null?void 0:xi.split("/"))==null?void 0:Fn[2]),[Po]=Ae.default.useForm(),[kr,$r]=(0,ue.useState)(""),[No,So]=(0,ue.useState)(!1),[po,lr]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{Yr.current&&ma()},[Yr.current]);const ma=()=>Zr(void 0,null,function*(){So(!0);const mo=yield(0,Ct.ZP)(`/api/shixuns/${Yr.current}/get_standard_answer.json`,{method:"get",params:{from:"edit"}});mo.status===0&&($r((mo==null?void 0:mo.standard_answer)||""),Po.setFieldsValue({hide_answer:mo==null?void 0:mo.hide_answer,disable_copy:mo==null?void 0:mo.disable_copy}),So(!1))}),Vo=mo=>Zr(void 0,null,function*(){lr(!0),(yield(0,Ct.ZP)(`/api/shixuns/${Yr.current}/set_standard_answer.json`,{method:"post",body:cr({},mo)})).status===0&&bt.ZP.success("\u4FDD\u5B58\u6210\u529F"),lr(!1)});return ue.createElement("section",{className:$i.wrap},ue.createElement(zo.Z,{loading:No},ue.createElement(Ae.default,{form:Po,scrollToFirstError:!0,layout:"vertical",onFinish:Vo},ue.createElement(Ae.default.Item,{name:"hide_answer",valuePropName:"checked"},ue.createElement(It.default,null,"\u9690\u85CF\u53C2\u8003\u7B54\u6848\u6A21\u5757")),ue.createElement(Ae.default.Item,{name:"disable_copy",valuePropName:"checked"},ue.createElement(It.default,null,"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848")),ue.createElement(Ae.default.Item,{name:"standard_answer",label:"\u53C2\u8003\u7B54\u6848:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8003\u7B54\u6848"}]},ue.createElement(Se.Z,{defaultValue:kr})),ue.createElement(Ae.default.Item,null,ue.createElement(mi.t,{okText:"\u4FDD\u5B58",loading:po,hasCancelBtn:!1,className:$i.fixBtn,okButtonProps:{htmlType:"submit"}})))))};var vo=(0,yt.connect)(({shixunsDetail:it,globalSetting:lt,user:ot})=>({shixunsDetail:it,globalSetting:lt,user:ot}))(fo),uo=Ee(34604),tr=Ee(61485),Ca=Ee(81833),ia=Ee(36045),Io=Ee(59301),cs=Object.defineProperty,$a=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,js=Object.getOwnPropertySymbols,es=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,ss=(it,lt,ot)=>lt in it?cs(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,ks=(it,lt)=>{for(var ot in lt||(lt={}))es.call(lt,ot)&&ss(it,ot,lt[ot]);if(js)for(var ot of js(lt))Ga.call(lt,ot)&&ss(it,ot,lt[ot]);return it},_s=(it,lt)=>$a(it,Ja(lt)),ds=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const{Countdown:zs}=Oa.default;var vl=(it=>(it[it.LoadingFail=1]="LoadingFail",it[it.Loading=2]="Loading",it[it.Finish=3]="Finish",it))(vl||{}),yl=(it=>(it.Path="path",it.ExecPath="exec_path",it.OriginalPicturePath="original_picture_path",it.ExpectPicturePath="expect_picture_path",it.PicturePath="picture_path",it))(yl||{});const Nu=({globalSetting:it,loading:lt,dispatch:ot,practiceSetting:xn,shixunsDetail:wi})=>{var Yi,dr;const[xi,Fn]=(0,ue.useState)(),[Fi,Yr]=(0,ue.useState)(),Po=(0,ue.useRef)(),[kr,$r]=(0,ue.useState)(),[No,So]=(0,ue.useState)(),[po,lr]=(0,ue.useState)(!0),[ma,Vo]=(0,ue.useState)(700),[mo,Fo]=(0,ue.useState)(""),[Pr,gr]=(0,ue.useState)("1"),Mo=(0,yt.useParams)(),[Ur,Do]=(0,ue.useState)(!0);(0,ue.useEffect)(()=>{var Cr;(Cr=wi==null?void 0:wi.detail)!=null&&Cr.id&&ca()},[(Yi=wi==null?void 0:wi.detail)==null?void 0:Yi.id]);const yo=()=>ds(void 0,null,function*(){var Cr,Xo;const Ha=yield ot({type:"shixunsDetail/updateRepositoryFile",payload:{id:Mo.id,path:(Xo=(Cr=wi==null?void 0:wi.fileContent)==null?void 0:Cr.params)==null?void 0:Xo.path,content:xi,secret_repository:po?null:!0}});Ha!=null&&Ha.content&&(bt.ZP.info("\u4FDD\u5B58\u6210\u529F"),ot({type:"practiceSetting/setSideBarTabs",payload:_s(ks({},xn.sideBar),{confirmLeave:!1})}))}),ca=()=>ds(void 0,null,function*(){var Cr,Xo,Ha,ls,hs,Ua;Do(!0);let pr=yield(0,vt.Ui)({identifier:Mo.id});if((Cr=wi==null?void 0:wi.detail)!=null&&Cr.is_wuying){if((pr==null?void 0:pr.status)!==0)return;let Ho;do if(Ho=yield(0,ia.wj)({requestId:pr==null?void 0:pr.requestId}),Ho!=null&&Ho.data){console.log("\u64CD\u4F5C\u6210\u529F");break}else if((Ho==null?void 0:Ho.data)===null)console.log("\u8BC6\u522B\u4E2D\uFF0C\u7EE7\u7EED\u8F6E\u8BE2..."),yield new Promise(Wa=>setTimeout(Wa,1e4));else{console.log("\u72B6\u6001\u5F02\u5E38");break}while((Ho==null?void 0:Ho.data)===null);if((Ho==null?void 0:Ho.status)===0){const Wa=((Xo=Ho==null?void 0:Ho.data)==null?void 0:Xo.data)||{};pr={status:0,url:Wa==null?void 0:Wa.url}}}if(Do(!1),(ls=(Ha=pr==null?void 0:pr.data)==null?void 0:Ha.data_list)!=null&&ls.length){uo.Z.publish("pod-restrict-data",{identifier:(hs=pr==null?void 0:pr.data)==null?void 0:hs.identifier,data_list:(Ua=pr==null?void 0:pr.data)==null?void 0:Ua.data_list});return}pr!=null&&pr.url&&Fo(pr==null?void 0:pr.url)}),xa=()=>ds(void 0,null,function*(){const Cr=yield(0,vt.K_)({identifier:Mo.id});(Cr==null?void 0:Cr.status)===0&&(Cr!=null&&Cr.remainingSeconds?($r(Date.now()+Cr.remainingSeconds*1e3),So(Cr.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(Cr.remainingSeconds-300)*1e3)):$n())}),$n=()=>{Ue.default.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:Io.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:()=>ds(void 0,null,function*(){wo()})})},wo=()=>ds(void 0,null,function*(){Yr(2);const Cr=yield(0,vt.zH)({identifier:Mo.id});(Cr==null?void 0:Cr.status)===0&&(Yr(3),Fo(Cr.url),Po.current=Cr.port,bt.ZP.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!"))}),Yo=()=>{Ue.default.destroyAll(),Ue.default.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:Io.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",Io.createElement("span",null,Io.createElement(zs,{value:kr,format:"HH:mm:ss",onFinish:Jo})),"\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:()=>ds(void 0,null,function*(){(yield(0,vt.q9)({identifier:Mo.id})).status===0&&(yield xa(),bt.ZP.success("\u5EF6\u957F\u6210\u529F!"))})})},Jo=()=>{Ue.default.destroyAll(),Ue.default.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:Io.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:()=>{wo()}})},Qo=Cr=>{ot({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},ms=Cr=>ds(void 0,null,function*(){yield(0,vt.QA)({id:Mo.id,startup_file:Cr}),ca(),ot({type:"practiceSetting/getCommonData",payload:ks({},Mo)}),ot({type:"shixunsDetail/getShixunsDetail",payload:Mo})});return Io.createElement(en.default,{activeKey:Pr,onChange:Cr=>gr(Cr),tabBarStyle:{paddingLeft:20},items:[{key:"1",label:"\u670D\u52A1\u8BBE\u7F6E",children:Io.createElement("div",null,Io.createElement(Xt.Z,{spinning:Ur},Io.createElement(dt.Z,{className:"mt20 ml20 font14",align:"middle"},Io.createElement(xt.Z,null,Io.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),Io.createElement(xt.Z,{className:"mr10"},Io.createElement(Ii.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"},Io.createElement(tr.Z,{style:{cursor:"pointer"}}))),Io.createElement(xt.Z,{flex:"300px",onClick:()=>Qo("exec_path")},Io.createElement(ke.default,{value:mo})),Io.createElement(xt.Z,{flex:"1"},Io.createElement(Me.ZP,{type:"primary",className:"ml10",onClick:()=>Qo("exec_path")},"\u8BBE\u7F6E"))),Io.createElement("iframe",{onLoad:Cr=>{},src:mo,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),Io.createElement(yi,{fileType:"path",path:(dr=wi==null?void 0:wi.detail)==null?void 0:dr.startup_file,onFinish:Cr=>ms(Cr)})))},{key:"2",label:"\u8BC4\u6D4B\u8BBE\u7F6E",children:Pr==="2"?Io.createElement(Ca.Z,{active:"testCase",type:"jupyterLab"}):null},{key:"3",label:"\u53C2\u8003\u7B54\u6848",children:Io.createElement(vo,null)}]})};var Rl=(0,yt.connect)(({loading:it,globalSetting:lt,practiceSetting:ot,shixunsDetail:xn})=>({globalSetting:lt,loading:it,practiceSetting:ot,shixunsDetail:xn}))(Nu),Eu={catechism:"catechism___lS6Ml",tab:"tab___vw6iE"},Ma={collect:"collect___pxqYO",head:"head___WuH5D"},Vs=Ee(59301),Pa=Object.defineProperty,Bs=Object.getOwnPropertySymbols,As=Object.prototype.hasOwnProperty,Gs=Object.prototype.propertyIsEnumerable,Tu=(it,lt,ot)=>lt in it?Pa(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,aa=(it,lt)=>{for(var ot in lt||(lt={}))As.call(lt,ot)&&Tu(it,ot,lt[ot]);if(Bs)for(var ot of Bs(lt))Gs.call(lt,ot)&&Tu(it,ot,lt[ot]);return it},Ys=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())}),su=({onOk:it,onCancel:lt,visible:ot,modalParams:xn,forceIn:wi})=>{const[Yi]=Ae.default.useForm(),[dr,xi]=(0,ue.useState)(!1),Fn=wi?!1:typeof ot=="number";(0,ue.useEffect)(()=>{ot?Yi.setFieldsValue(aa({},xn)):Yi.resetFields()},[ot]);const Fi=Yr=>Ys(void 0,null,function*(){xi(!0),yield it(Yr),xi(!1)});return Vs.createElement(Ue.default,{centered:!0,destroyOnClose:!0,onCancel:()=>lt(),onOk:()=>Yi.submit(),open:!!ot,confirmLoading:dr,title:Fn?"\u7F16\u8F91\u95EE\u7B54":"\u65B0\u589E\u95EE\u7B54",width:900,okText:Fn?"\u786E\u5B9A":"\u52A0\u5165\u95EE\u9898\u96C6"},Vs.createElement(Ae.default,{form:Yi,size:"large",onFinish:Fi},Vs.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"}]},Vs.createElement(ke.default,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"})),Vs.createElement(Ae.default.Item,{className:"mb0",name:"content",label:"\u56DE\u7B54",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54"}]},Vs.createElement(Se.Z,{className:"mb0",placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54",watch:!0,defaultValue:xn==null?void 0:xn.content}))))},pa=Ee(59301),Sl=Object.defineProperty,Da=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,fc=Object.prototype.propertyIsEnumerable,$l=(it,lt,ot)=>lt in it?Sl(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Fu=(it,lt)=>{for(var ot in lt||(lt={}))Gu.call(lt,ot)&&$l(it,ot,lt[ot]);if(Da)for(var ot of Da(lt))fc.call(lt,ot)&&$l(it,ot,lt[ot]);return it},Lc=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())}),Ns=({})=>{const it=(0,yt.useParams)(),[lt,ot]=(0,ue.useState)(!1),[xn,wi]=(0,ue.useState)(0),[Yi,dr]=(0,ue.useState)([]),[xi,Fn]=(0,ue.useState)(!1),[Fi,Yr]=(0,ue.useState)({title:"",content:""}),[Po,kr]=(0,ue.useState)(!1),[$r,No]=(0,ue.useState)(!1),[So,po]=(0,ue.useState)([]),[lr,ma]=(0,ue.useState)({keywords:"",page:1,limit:10});(0,ue.useEffect)(()=>{Vo(lr)},[]);const Vo=Do=>Lc(void 0,null,function*(){var yo,ca;ot(!0);const xa=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_sets.json`,{method:"get",params:Do});xa.status===0&&(dr(((yo=xa==null?void 0:xa.data)==null?void 0:yo.qna_sets)||[]),wi((ca=xa==null?void 0:xa.data)==null?void 0:ca.total_count)),ot(!1)}),mo=Do=>{lr.keywords=Do,lr.page=1,ma(Fu({},lr)),Vo(lr)},Fo=(Do,yo)=>{lr.page=Do,lr.limit=yo,ma(Fu({},lr)),Vo(lr)},Pr=Do=>Lc(void 0,null,function*(){if(typeof xi=="number"){const yo=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_sets/${xi}.json`,{method:"put",body:Do});(yo==null?void 0:yo.status)===0&&(bt.ZP.success("\u7F16\u8F91\u6210\u529F"),Vo(lr),Fn(!1))}else{const yo=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_sets.json`,{method:"post",body:Do});(yo==null?void 0:yo.status)===0&&(bt.ZP.success("\u6DFB\u52A0\u6210\u529F"),lr.page=1,lr.keywords="",ma(Fu({},lr)),Vo(lr),Fn(!1))}}),gr=Do=>Lc(void 0,null,function*(){Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",onOk:()=>Lc(void 0,null,function*(){const yo=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_sets/${Do.id}.json`,{method:"delete"});if((yo==null?void 0:yo.status)===0){const ca=Yi.length===1&&lr.page>1?lr.page-1:lr.page;lr.page=ca,ma(Fu({},lr)),Vo(lr),bt.ZP.success("\u5220\u9664\u6210\u529F")}})})}),Mo=[{title:"\u95EE\u9898",dataIndex:"title",ellipsis:!0,render:Do=>pa.createElement(Ii.Z,{placement:"topLeft",title:Do},pa.createElement("span",{className:"c-black"},Do||"--"))},{title:"\u56DE\u7B54",dataIndex:"content",ellipsis:!0,render:Do=>pa.createElement(Ii.Z,{placement:"topLeft",title:Do},pa.createElement("span",{className:"c-black"},Do||"--"))},{title:"\u64CD\u4F5C",width:104,align:"right",dataIndex:"id",ellipsis:!0,render:(Do,yo)=>pa.createElement("span",null,pa.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{Fn(Do),Yr({title:yo==null?void 0:yo.title,content:yo==null?void 0:yo.content})}},"\u7F16\u8F91"),pa.createElement("span",{className:"current c-red",onClick:()=>gr(yo)},"\u5220\u9664"))}],Ur={onRemove:()=>{po([])},beforeUpload:Do=>{if((Do==null?void 0:Do.size)>1024*1024*50)return bt.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!(Do.type==="application/vnd.ms-excel"||Do.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))return bt.ZP.info("\u8BF7\u4E0A\u4F20 .xls \u6216 .xlsx \u6587\u4EF6\uFF01"),!1;let ca=[];return ca.push(Do),po([...ca]),!1},fileList:So,accept:".xls,.xlsx"};return pa.createElement("div",{className:Ma.collect},pa.createElement("div",{className:Ma.head},pa.createElement(ua.t7,{style:{width:480},placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898",value:lr.keywords,onChange:mo}),pa.createElement(ua.op,{className:"ml40 mr20",shape:"default",onClick:()=>{Fn(!0),Yr({title:"",content:""})}},"\u65B0\u589E\u95EE\u7B54"),pa.createElement(ua.op,{type:"primary",shape:"default",onClick:()=>kr(!0)},"\u5BFC\u5165\u95EE\u7B54")),pa.createElement(xu.default,{columns:Mo,style:{marginTop:33},dataSource:Yi,loading:lt,rowKey:"id",pagination:{current:lr.page,hideOnSinglePage:!xn,showQuickJumper:!0,showSizeChanger:!0,pageSize:lr.limit,pageSizeOptions:["10","20","50","100","200"],total:xn,size:"default",showTotal:Nt.rU,onChange:Fo}}),pa.createElement(Ue.default,{title:"\u5BFC\u5165\u95EE\u7B54",open:Po,centered:!0,confirmLoading:$r,onCancel:()=>{kr(!1),po([])},onOk:()=>Lc(void 0,null,function*(){var Do;const yo=new FormData;if(So.length>0)yo.append("file",So[0]);else{bt.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}No(!0);let ca=yield(0,Ct.ZP)(`/api/shixuns/${it==null?void 0:it.id}/qna_sets/import.json`,{method:"post",body:yo},!0);(ca==null?void 0:ca.status)===0&&((Do=ca==null?void 0:ca.fail)!=null&&Do.length?Ue.default.confirm({icon:null,width:485,title:"\u5BFC\u5165\u5931\u8D25",centered:!0,content:pa.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",pa.createElement("a",{href:`${ti.Z.API_SERVER}/api/shixuns/${it==null?void 0:it.id}/qna_sets/down_error_import_file.json`},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}):(bt.ZP.success("\u5BFC\u5165\u6210\u529F"),lr.page=1,lr.keywords="",ma(Fu({},lr)),Vo(lr),kr(!1),po([]))),No(!1)})},pa.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E00\uFF1A",pa.createElement("span",{className:"ml15 mr5"},"\u4E0B\u8F7D"),pa.createElement("a",{href:`${ti.Z.API_SERVER}/api/shixuns/${it==null?void 0:it.id}/qna_sets/down_template.json`},"\u5BFC\u5165\u95EE\u7B54\u96C6\u6A21\u677F"),"\uFF0C\u5E76\u586B\u5199\u5BF9\u5E94\u5185\u5BB9"),pa.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E8C\uFF1A",pa.createElement("span",{className:"ml15"},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u5BFC\u5165\u95EE\u7B54\u6A21\u677F\u300B")),pa.createElement("div",{style:{marginLeft:74}},pa.createElement(ut.default,Fu({},Ur),pa.createElement(ua.op,{shape:"default",icon:pa.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6")))),pa.createElement(su,{visible:xi,onCancel:()=>Fn(!1),onOk:Pr,modalParams:Fi}))},Ou={record:"record___Ueu3j",head:"head___UOVq4"},wa=Ee(59301),gc=Object.defineProperty,eu=Object.defineProperties,Ds=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,tu=(it,lt,ot)=>lt in it?gc(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Ia=(it,lt)=>{for(var ot in lt||(lt={}))El.call(lt,ot)&&tu(it,ot,lt[ot]);if(Ts)for(var ot of Ts(lt))cl.call(lt,ot)&&tu(it,ot,lt[ot]);return it},Zl=(it,lt)=>eu(it,Ds(lt)),fu=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())}),gu=({})=>{const it=(0,yt.useParams)(),[lt]=Ae.default.useForm(),[ot,xn]=(0,ue.useState)(!1),[wi,Yi]=(0,ue.useState)(0),[dr,xi]=(0,ue.useState)([]),[Fn,Fi]=(0,ue.useState)(!1),[Yr,Po]=(0,ue.useState)({title:"",content:""});let[kr,$r]=(0,ue.useState)({page:1,limit:10});(0,ue.useEffect)(()=>{po(kr)},[]);const No=[{value:"ai",label:"AI\u6A21\u578B"},{value:"qna_set",label:"\u5B9E\u8BAD\u95EE\u7B54\u96C6"}],So=[{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"}],po=Pr=>fu(void 0,null,function*(){var gr,Mo;xn(!0);const Ur=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_records.json`,{method:"get",params:Pr});Ur.status===0&&(xi(((gr=Ur==null?void 0:Ur.data)==null?void 0:gr.qna_records)||[]),Yi((Mo=Ur==null?void 0:Ur.data)==null?void 0:Mo.total_count)),xn(!1)}),lr=Pr=>{kr.page=1,kr=Ia(Ia({},kr),Pr),$r(Ia({},kr)),po(kr)},ma=(Pr,gr)=>{kr.page=Pr,kr.limit=gr,$r(Ia({},kr)),po(kr)},Vo=Pr=>fu(void 0,null,function*(){const gr=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_sets.json`,{method:"post",body:Zl(Ia({},Pr),{qna_record_id:Fn})});(gr==null?void 0:gr.status)===0&&(bt.ZP.success("\u6DFB\u52A0\u6210\u529F"),po(kr),Fi(!1))}),mo=Pr=>fu(void 0,null,function*(){Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5FFD\u7565\u5417\uFF1F",onOk:()=>fu(void 0,null,function*(){const gr=yield(0,Ct.ZP)(`/api/shixuns/${it.id}/qna_records/${Pr.id}/update_status.json`,{method:"post",body:{status:"ignored"}});(gr==null?void 0:gr.status)===0&&po(kr)})})}),Fo=[{title:"\u95EE\u9898",dataIndex:"question",ellipsis:!0,render:Pr=>wa.createElement(Ii.Z,{placement:"topLeft",title:Pr},wa.createElement("span",{className:"c-black"},Pr||"--"))},{title:"\u56DE\u7B54",dataIndex:"answer",ellipsis:!0,render:Pr=>wa.createElement(Ii.Z,{placement:"topLeft",title:Pr},wa.createElement("span",{className:"c-black"},Pr||"--"))},{title:"\u56DE\u7B54\u6765\u6E90",dataIndex:"answer_source",width:110,render:Pr=>{var gr;return wa.createElement("span",{className:"c-black"},(gr=No==null?void 0:No.find(Mo=>Mo.value===Pr))==null?void 0:gr.label)}},{title:"\u72B6\u6001",dataIndex:"status",width:120,render:Pr=>{var gr;return wa.createElement("span",{className:"c-black"},(gr=So==null?void 0:So.find(Mo=>Mo.value===Pr))==null?void 0:gr.label)}},{title:"\u64CD\u4F5C",width:140,align:"right",dataIndex:"id",ellipsis:!0,render:(Pr,gr)=>wa.createElement("span",null,["pending","ignored"].includes(gr.status)&&wa.createElement(wa.Fragment,null,wa.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{Fi(Pr),Po({title:gr==null?void 0:gr.question,content:gr==null?void 0:gr.answer})}},"\u52A0\u5165\u95EE\u7B54\u96C6"),wa.createElement("span",{className:"current c-light-primary",onClick:()=>mo(gr)},"\u5FFD\u7565")),["skipped"].includes(gr.status)&&wa.createElement(Ii.Z,{placement:"topRight",title:"\u56DE\u7B54\u6765\u81EA\u95EE\u9898\u96C6\uFF0C\u65E0\u9700\u518D\u6B21\u52A0\u5165"},wa.createElement("span",{style:{cursor:"not-allowed",color:"#CCCCCC"}},"\u52A0\u5165\u95EE\u7B54\u96C6")),["added_to_set"].includes(gr.status)&&wa.createElement(Ii.Z,{placement:"topRight",title:"\u5DF2\u7ECF\u52A0\u5165\u95EE\u7B54\u96C6\uFF0C\u65E0\u9700\u518D\u6B21\u52A0\u5165"},wa.createElement("span",{style:{cursor:"not-allowed",color:"#CCCCCC"}},"\u52A0\u5165\u95EE\u7B54\u96C6")))}];return wa.createElement("div",{className:Ou.record},wa.createElement("div",{className:Ou.head},wa.createElement(Ae.default,{layout:"inline",form:lt,colon:!1,size:"large",onFinish:lr},wa.createElement(Ae.default.Item,{name:"keywords",label:"\u95EE\u9898"},wa.createElement(ke.default,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898",style:{width:300}})),wa.createElement(Ae.default.Item,{name:"answer_source",label:"\u56DE\u7B54\u6765\u6E90"},wa.createElement(Sr.default,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u56DE\u7B54\u6765\u6E90",options:No,style:{width:200}})),wa.createElement(Ae.default.Item,{name:"status",label:"\u72B6\u6001"},wa.createElement(Sr.default,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",options:So,style:{width:200}})),wa.createElement(Ae.default.Item,{style:{marginRight:0}},wa.createElement(Me.ZP,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))),wa.createElement(xu.default,{columns:Fo,style:{marginTop:33},dataSource:dr,loading:ot,rowKey:"id",pagination:{current:kr.page,hideOnSinglePage:!wi,showQuickJumper:!0,showSizeChanger:!0,pageSize:kr.limit,pageSizeOptions:["10","20","50","100","200"],total:wi,size:"default",showTotal:Nt.rU,onChange:ma}}),wa.createElement(su,{visible:Fn,onCancel:()=>Fi(!1),onOk:Vo,modalParams:Yr,forceIn:!0}))},Qu=Ee(59301);const Us=({dispatch:it,practiceSetting:lt,shixunsDetail:ot})=>{const[xn,wi]=(0,ue.useState)("1");return Qu.createElement("div",{className:Eu.catechism},Qu.createElement(ua.tp,{dataSource:[{id:"1",name:"\u95EE\u7B54\u96C6"},{id:"2",name:"\u95EE\u7B54\u8BB0\u5F55"}],value:xn,onChange:Yi=>wi(Yi),className:Eu.tab}),xn==="1"&&Qu.createElement(Ns,null),xn==="2"&&Qu.createElement(gu,null))};var Iu=(0,yt.connect)(({practiceSetting:it,shixunsDetail:lt})=>({practiceSetting:it,shixunsDetail:lt}))(Us),ha=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Mc=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,nu=(it,lt,ot)=>lt in it?ha(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,pc=(it,lt)=>{for(var ot in lt||(lt={}))Mc.call(lt,ot)&&nu(it,ot,lt[ot]);if(Ps)for(var ot of Ps(lt))Ju.call(lt,ot)&&nu(it,ot,lt[ot]);return it},mc=(it,lt)=>{var ot={};for(var xn in it)Mc.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&Ps)for(var xn of Ps(it))lt.indexOf(xn)<0&&Ju.call(it,xn)&&(ot[xn]=it[xn]);return ot},kc=it=>{var lt=it,{tabsActive:ot}=lt,xn=mc(lt,["tabsActive"]);return ue.createElement(ue.Fragment,null,ot==="information"&&ue.createElement(yn,null),ot==="warehouse"&&ue.createElement(pn.default,null),ot==="level"&&ue.createElement(da,pc({},xn)),ot==="collaborate"&&ue.createElement(Ft,pc({},xn)),ot==="setting"&&ue.createElement(sn.Z,null),ot==="environment"&&ue.createElement(Ol,pc({},xn)),ot==="dataset"&&ue.createElement(tl,null),ot==="service"&&ue.createElement(Rl,pc({},xn)),ot==="catechism"&&ue.createElement(Iu,pc({},xn)))},Sa={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"},Ao=Object.defineProperty,Qa=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,oc=Object.prototype.propertyIsEnumerable,td=(it,lt,ot)=>lt in it?Ao(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,dd=(it,lt)=>{for(var ot in lt||(lt={}))rl.call(lt,ot)&&td(it,ot,lt[ot]);if(Qa)for(var ot of Qa(lt))oc.call(lt,ot)&&td(it,ot,lt[ot]);return it};const Uc=it=>React.createElement("svg",dd({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},it),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 Hl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOCAwYTggOCAwIDEgMS04IDggOC4wMSA4LjAxIDAgMCAxIDgtOFoiIGZpbGw9IiNGRUIzMDAiLz48cGF0aCBkPSJNOC4xMTEgMTJhLjc4Ljc4IDAgMSAwIC4wMDYtMS41Ni43OC43OCAwIDAgMC0uMDA2IDEuNTZaTTcuNTU2IDRhLjIxLjIxIDAgMCAwLS4yMTIuMjE4bC4yNDQgNS4xMzNhLjExNy4xMTcgMCAwIDAgLjExNi4xMWguODE1YS4xMTguMTE4IDAgMCAwIC4xMTctLjExbC4yNDMtNS4xMzNBLjIwOC4yMDggMCAwIDAgOC42NjYgNGgtMS4xMVoiIGZpbGw9IiNGRkYiLz48L2c+PC9zdmc+",ka=Ee(59301),Ra=Object.defineProperty,vc=Object.defineProperties,ac=Object.getOwnPropertyDescriptors,hd=Object.getOwnPropertySymbols,Wh=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,$u=(it,lt,ot)=>lt in it?Ra(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Wd=(it,lt)=>{for(var ot in lt||(lt={}))Wh.call(lt,ot)&&$u(it,ot,lt[ot]);if(hd)for(var ot of hd(lt))qu.call(lt,ot)&&$u(it,ot,lt[ot]);return it},$d=(it,lt)=>vc(it,ac(lt)),Pu=(it,lt)=>{var ot={};for(var xn in it)Wh.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&hd)for(var xn of hd(it))lt.indexOf(xn)<0&&qu.call(it,xn)&&(ot[xn]=it[xn]);return ot};const Nc=[{name:"\u57FA\u672C\u4FE1\u606F",icon:ka.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:ka.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:ka.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:ka.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:ka.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1\u4E0E\u8BC4\u6D4B",icon:ka.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:ka.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:ka.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"},{name:"\u95EE\u7B54\u96C6",icon:ka.createElement("i",{className:"icon iconfont icon-wendaji"}),tabId:"catechism"}],ol=it=>{var lt=it,{globalSetting:ot,loading:xn,dispatch:wi,shixunsDetail:Yi,practiceSetting:dr}=lt,xi=Pu(lt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),Fn;const{base_info_warning:Fi,challenges_warning:Yr,id:Po,repository_warning:kr,sideBar:$r,service_warning:No}=dr,So=(0,yt.useLocation)(),po=(0,yt.useParams)(),[lr]=(0,yt.useSearchParams)();(0,ue.useEffect)(()=>{var mo;const Fo=lr.get("tabId"),Pr=So.pathname.split("/").length,Mo=((mo=Yi==null?void 0:Yi.detail)!=null&&mo.windows_vnc?Nc.filter(Ur=>Ur.tabId!=="dataset"):Nc).map(Ur=>Ur.tabId).includes(Fo);if(Fo&&Mo){wi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Fo}});return}if(Pr>4){wi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Fo||Fo&&!Mo){wi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[(Fn=Yi==null?void 0:Yi.detail)==null?void 0:Fn.windows_vnc]),(0,ue.useEffect)(()=>()=>{wi({type:"practiceSetting/setSideBarTabs",payload:$d(Wd({},dr.sideBar),{selectPath:""})})},[po.id]);const ma=mo=>{var Fo;if(mo===$r.tabsActive)return;const Pr=()=>{yt.history.push(`/shixuns/${Po}/edit?tabId=${mo}`),wi({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:mo,selectPath:"",confirmLeave:!1}})};(Fo=dr==null?void 0:dr.sideBar)!=null&&Fo.confirmLeave?Ue.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:()=>{Pr()}}):Pr()},Vo=()=>{var mo;return((mo=Yi==null?void 0:Yi.detail)!=null&&mo.windows_vnc?Nc.filter(Pr=>Pr.tabId!=="dataset"):Nc).filter(Pr=>{var gr;return(gr=Yi==null?void 0:Yi.detail)!=null&&gr.is_jupyter_lab?Pr.tabId!=="level":Pr.tabId!=="service"}).map(Pr=>{const{name:gr,icon:Mo,tabId:Ur}=Pr;return ka.createElement("div",{key:Ur,className:`${dr.sideBar.tabsActive===Ur?Sa.itemActive:Sa.item} font12`,onClick:()=>ma(Ur)},Mo,ka.createElement("span",{className:Sa.name},gr),Ur==="information"&&Fi&&ka.createElement(Ii.Z,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},ka.createElement("img",{src:Hl,alt:""})),Ur==="level"&&Yr&&ka.createElement(Ii.Z,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},ka.createElement("img",{src:Hl,alt:""})),Ur==="service"&&No&&ka.createElement(Ii.Z,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},ka.createElement("img",{src:Hl,alt:""})),Ur==="warehouse"&&kr&&ka.createElement(Ii.Z,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},ka.createElement("img",{src:Hl,alt:""})))})};return ka.createElement("div",{className:Sa.sidebar},ka.createElement("div",{className:Sa.items},Vo()),ka.createElement("div",{className:Sa.question},ka.createElement(Ii.Z,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},ka.createElement("span",{style:{cursor:"pointer"},onClick:()=>window.open("https://www.educoder.net/forums/4692")},ka.createElement("img",{src:qd.Pt,height:44,width:44,alt:""})))))};var sa=(0,yt.connect)(({loading:it,globalSetting:lt,shixunsDetail:ot,practiceSetting:xn})=>({globalSetting:lt,loading:it,practiceSetting:xn,shixunsDetail:ot}))(ol),pu={bottom:"bottom___AZ7c_",yes:"yes___iDEVN",no:"no___E02he"},Na=Ee(59301),eh=Object.defineProperty,gh=Object.getOwnPropertySymbols,iu=Object.prototype.hasOwnProperty,th=Object.prototype.propertyIsEnumerable,ec=(it,lt,ot)=>lt in it?eh(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,Cd=(it,lt)=>{for(var ot in lt||(lt={}))iu.call(lt,ot)&&ec(it,ot,lt[ot]);if(gh)for(var ot of gh(lt))th.call(lt,ot)&&ec(it,ot,lt[ot]);return it},jd=(it,lt,ot)=>new Promise((xn,wi)=>{var Yi=Fn=>{try{xi(ot.next(Fn))}catch(Fi){wi(Fi)}},dr=Fn=>{try{xi(ot.throw(Fn))}catch(Fi){wi(Fi)}},xi=Fn=>Fn.done?xn(Fn.value):Promise.resolve(Fn.value).then(Yi,dr);xi((ot=ot.apply(it,lt)).next())});const nf=({classroomList:it,loading:lt,dispatch:ot,shixunsDetail:xn})=>{var wi,Yi;const dr=(0,yt.useParams)(),xi=(0,yt.useLocation)(),[Fn,Fi]=(0,ue.useState)(!1),[Yr,Po]=(0,ue.useState)(!1),{actionTabs:kr}=it,[$r]=Ae.default.useForm(),[No,So]=(0,ue.useState)({name:"string"}),po=mo=>mo&&mo<xr()().startOf("day"),[lr,ma]=(0,ue.useState)();(0,ue.useEffect)(()=>{console.log(dr),it.actionTabs.key==="\u91CD\u540D\u4FEE\u6539"&&(No.name=kr==null?void 0:kr.name),So(Cd({},No)),$r.setFieldsValue({name:kr==null?void 0:kr.name})},[it.actionTabs.key]);const Vo={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 Na.createElement(Na.Fragment,null,Na.createElement(Ue.default,{centered:!0,title:"\u63D0\u793A",open:it.actionTabs.key==="\u540C\u6B65\u4FEE\u6539",width:460,zIndex:((wi=it==null?void 0:it.actionTabs)==null?void 0:wi.zIndex)||1e3,footer:null,onOk:()=>jd(void 0,null,function*(){console.log(123123)}),onCancel:()=>{ot({type:"classroomList/setActionTabs",payload:{}})}},Na.createElement("div",null,Na.createElement("p",null,"\u672C\u5B9E\u8BAD\u4E3A\u521B\u5EFA\u4F5C\u4E1A/\u8003\u8BD5\u65F6\u590D\u5236\u751F\u6210\u7684\uFF0C",Vo[it.actionTabs.type],"\uFF1F")),Na.createElement("div",{className:pu.bottom},Na.createElement(Me.ZP,{loading:lt["shixunsDetail/saveCopyForExercise"]&&Yr,className:pu.no,onClick:()=>jd(void 0,null,function*(){var mo;Po(!0),(mo=it.actionTabs)!=null&&mo.value?it.actionTabs.fn(it.actionTabs.value,!0,2):it.actionTabs.fn(!0,2)})},"\u540C\u6B65\u4FEE\u6539\u539F\u5B9E\u8BAD"),Na.createElement(Me.ZP,{loading:lt["shixunsDetail/saveCopyForExercise"]&&!Yr,className:pu.yes,onClick:()=>jd(void 0,null,function*(){var mo;Po(!1),(mo=it.actionTabs)!=null&&mo.value?it.actionTabs.fn(it.actionTabs.value,!1,1):it.actionTabs.fn(!1,1)})},"\u4EC5\u4FDD\u5B58\u672C\u5B9E\u8BAD"))),Na.createElement(Ue.default,{centered:!0,title:"\u63D0\u793A",open:it.actionTabs.key==="\u91CD\u540D\u4FEE\u6539",okText:"\u4FDD\u5B58\u540D\u79F0",cancelText:"\u4E0D\u66F4\u6362\u540D\u79F0",destroyOnClose:!0,width:550,confirmLoading:Fn,onOk:()=>jd(void 0,null,function*(){var mo,Fo;yield $r.validateFields();const Pr=$r.getFieldValue();Fi(!0);const gr=yield(0,Ct.ZP)(`/api/shixuns/${dr==null?void 0:dr.id}/update_shixun_name.json`,{method:"post",body:{shixun_name:Pr.name}});Fi(!1),gr.status===0&&(bt.ZP.success("\u4FEE\u6539\u6210\u529F"),ot({type:"practiceSetting/getCommonData",payload:{id:dr.id}}),(mo=it.actionTabs)!=null&&mo.getBaseInfo&&((Fo=it.actionTabs)==null||Fo.getBaseInfo())),ot({type:"classroomList/setActionTabs",payload:{}})}),onCancel:()=>{ot({type:"classroomList/setActionTabs",payload:{}})}},Na.createElement("div",null,Na.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"),Na.createElement(Ae.default,{form:$r,initialValues:{name:lr},onChange:()=>{So($r.getFieldValue())}},Na.createElement(Ae.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0"}]},Na.createElement(dt.Z,{className:"mt30",align:"middle"},Na.createElement(xt.Z,{className:"font14"},"\u5B9E\u8BAD\u540D\u79F0\uFF1A"),Na.createElement(xt.Z,{flex:"1"},Na.createElement(ke.default,{maxLength:60,defaultValue:kr==null?void 0:kr.name,suffix:Na.createElement("span",null,((Yi=No==null?void 0:No.name)==null?void 0:Yi.length)||0,"/",60)}))))))))};var Ad=(0,yt.connect)(({classroomList:it,loading:lt,shixunsDetail:ot})=>({classroomList:it,loading:lt.effects,shixunsDetail:ot}))(nf),Zc=Ee(59301),Hc=Object.defineProperty,Tc=Object.defineProperties,rf=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,fd=Object.prototype.hasOwnProperty,zd=Object.prototype.propertyIsEnumerable,Pl=(it,lt,ot)=>lt in it?Hc(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):it[lt]=ot,yc=(it,lt)=>{for(var ot in lt||(lt={}))fd.call(lt,ot)&&Pl(it,ot,lt[ot]);if(Fd)for(var ot of Fd(lt))zd.call(lt,ot)&&Pl(it,ot,lt[ot]);return it},ph=(it,lt)=>Tc(it,rf(lt)),jh=(it,lt)=>{var ot={};for(var xn in it)fd.call(it,xn)&<.indexOf(xn)<0&&(ot[xn]=it[xn]);if(it!=null&&Fd)for(var xn of Fd(it))lt.indexOf(xn)<0&&zd.call(it,xn)&&(ot[xn]=it[xn]);return ot};const mh=it=>{var lt=it,{globalSetting:ot,loading:xn,dispatch:wi,practiceSetting:Yi}=lt,dr=jh(lt,["globalSetting","loading","dispatch","practiceSetting"]);const{sideBar:xi}=Yi,{tabsActive:Fn}=xi;let Fi=(0,yt.useParams)();return(0,ue.useEffect)(()=>(wi({type:"globalSetting/headerFooterToggle",payload:!1}),wi({type:"shixunsDetail/getShixunsDetail",payload:ph(yc({},Fi),{shixun_managed:!0})}),()=>{wi({type:"globalSetting/headerFooterToggle",payload:!0}),wi({type:"practiceSetting/setParams",payload:{id:""}})}),[]),Zc.createElement("div",{className:et.practiceSetting},Zc.createElement("div",{className:et.wrapHeader},Zc.createElement(le,null)),Zc.createElement("div",{className:et.wrapLayout},Zc.createElement("div",{className:et.wrapSidebar},Zc.createElement(sa,null)),Zc.createElement("div",{className:et.wrapContent},Zc.createElement(kc,ph(yc({},dr),{tabsActive:Yi.sideBar.tabsActive})))),Zc.createElement(Ad,null))};var Ht=(0,yt.connect)(({loading:it,globalSetting:lt,practiceSetting:ot})=>({globalSetting:lt,loading:it,practiceSetting:ot}))(mh)},16349:function(qt,kn,Ee){"use strict";Ee.d(kn,{S:function(){return vt},m:function(){return Ue}});var ue=Ee(955),et=Ee(8591),Lt=Ee(43418),Nt=Ee(59301),Bt=(bt,Ct,yt)=>new Promise((Zt,Ot)=>{var Ut=ne=>{try{te(yt.next(ne))}catch(de){Ot(de)}},Te=ne=>{try{te(yt.throw(ne))}catch(de){Ot(de)}},te=ne=>ne.done?Zt(ne.value):Promise.resolve(ne.value).then(Ut,Te);te((yt=yt.apply(bt,Ct)).next())});const vt=bt=>{let Ct=document.createElement("textarea");return Ct.value=bt,Ct.value},Ue=(bt,Ct,yt,Zt,Ot)=>Bt(void 0,null,function*(){var Ut,Te;const te=yield bt({type:"shixunsDetail/saveCopyForExercise",payload:{id:yt,save_type:Zt}});Zt===1?((te==null?void 0:te.status)==0&&et.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Ut=te==null?void 0:te.data)!=null&&Ut.exists_same_shixun_name?bt({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(Te=te==null?void 0:te.data)==null?void 0:Te.shixun_name}}):bt({type:"classroomList/setActionTabs",payload:{}})):(bt({type:"classroomList/setActionTabs",payload:{}}),(te==null?void 0:te.status)===0&&Lt.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Nt.createElement("div",null,Nt.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,ue.xg)(`/shixuns/${(de=(ne=Ct==null?void 0:Ct.detail)==null?void 0:ne.fork_from)==null?void 0:de.fork_identifier}/challenges`)}}))})},9583:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return pe}});var ue=Ee(59301),et=Ee(89070),Lt=Ee(92832),Nt=Ee(78241),Bt=Ee(43418),vt=Ee(8591),Ue=Ee(54580),bt=Ee(3113),Ct=Ee(3294),yt=Ee(55351),Zt={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"},Ot=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,te=(Se,Ae)=>{var Me={};for(var ke in Se)Ut.call(Se,ke)&&Ae.indexOf(ke)<0&&(Me[ke]=Se[ke]);if(Se!=null&&Ot)for(var ke of Ot(Se))Ae.indexOf(ke)<0&&Te.call(Se,ke)&&(Me[ke]=Se[ke]);return Me},ne=(Se,Ae,Me)=>new Promise((ke,st)=>{var dt=It=>{try{ut(Me.next(It))}catch(Et){st(Et)}},xt=It=>{try{ut(Me.throw(It))}catch(Et){st(Et)}},ut=It=>It.done?ke(It.value):Promise.resolve(It.value).then(dt,xt);ut((Me=Me.apply(Se,Ae)).next())});const de=Lt.default.TextArea,le=Se=>{var Ae=Se,{newShixuns:Me,globalSetting:ke,loading:st,dispatch:dt}=Ae,xt=te(Ae,["newShixuns","globalSetting","loading","dispatch"]);const[ut]=Nt.default.useForm(),[It,Et]=(0,ue.useState)([]),Tt=Bn=>{["uploading","done","removed"].includes(Bn.file.status)&&Et(Bn.fileList)},Yt=Bn=>{var di;if(!Bn.percent||Bn.percent==100){const nt=(di=Bn.response)==null?void 0:di.id;return Bt.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:nt}}))&&Et(It.filter(gn=>{var Xn;return((Xn=gn.response)==null?void 0:Xn.id)!==nt}))})}),!1}},hn=Bn=>It.length?!1:Bn.size/1024/1024>50?(vt.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0,vi=Bn=>ne(void 0,null,function*(){var di,nt;const{language:ze,env:gn,mode:Xn,code:ti}=Bn||{},nn=yield dt({type:"newShixuns/applyShixunMirror",payload:{language:ze,runtime:gn,run_method:Xn,attachment_id:(nt=(di=It==null?void 0:It[0])==null?void 0:di.response)==null?void 0:nt.id}});dt({type:"newShixuns/setActionTabs",payload:{}}),nn&&vt.ZP.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002")}),ui=()=>{ut.resetFields(),Et([])};return ue.createElement(Bt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Me.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:ui},ue.createElement("section",{className:Zt.qrCode},ue.createElement("aside",{className:Zt.a1},ue.createElement("div",{className:Zt.code},ue.createElement("img",{width:120,height:120,src:yt,alt:"\u4E8C\u7EF4\u7801"})),ue.createElement("div",{className:Zt.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),ue.createElement("div",{className:Zt.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),ue.createElement("aside",{className:Zt.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",ue.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")),ue.createElement(Nt.default,{className:Zt.formWrap,form:ut,labelCol:{span:4},wrapperCol:{span:20},onFinish:vi},ue.createElement(Nt.default.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},ue.createElement(de,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),ue.createElement(Nt.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"}]},ue.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})),ue.createElement(Nt.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"}]},ue.createElement(de,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),ue.createElement(Nt.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},ue.createElement("div",{className:Zt.upload},ue.createElement(Ue.default,{fileList:It,action:`${Ct.Z.API_SERVER}/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a`,onChange:Tt,onRemove:Yt,beforeUpload:hn,withCredentials:!0},ue.createElement("span",{className:`${Zt.color0152d9} current`},"\u4E0A\u4F20\u9644\u4EF6"),ue.createElement("span",{className:`${Zt.colorCCC} ml10`},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),ue.createElement("div",{className:Zt.footerWrap},ue.createElement(Nt.default.Item,null,ue.createElement(bt.ZP,{className:"mr5",size:"middle",onClick:()=>{dt({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),ue.createElement(bt.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:st["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};var pe=(0,et.connect)(({newShixuns:Se,loading:Ae,globalSetting:Me})=>({newShixuns:Se,globalSetting:Me,loading:Ae.effects}))(le)},55508:function(qt,kn,Ee){"use strict";var ue=Ee(59301),et=Ee(89070),Lt=Ee(43418),Nt=Ee(55351);const Bt=({newShixuns:vt,dispatch:Ue,user:bt})=>{var Ct;const[yt,Zt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{vt.actionTabs.key==="Create-Environment"&&Ut()},[(Ct=vt==null?void 0:vt.actionTabs)==null?void 0:Ct.key]);const Ot=()=>{Ue({type:"newShixuns/setActionTabs",payload:{}})},Ut=()=>{var Te,te,ne,de;Ot(),((Te=bt.userInfo)==null?void 0:Te.mirror_marker_status)===0?Zt(!0):((te=bt.userInfo)==null?void 0:te.mirror_marker_status)===1?et.history.push(`/users/${(ne=bt.userInfo)==null?void 0:ne.login}/experiment-img/add`):((de=bt.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;et.history.push(`/users/${(le=bt.userInfo)==null?void 0:le.login}/experiment-img`)}})};return ue.createElement(Lt.default,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",open:yt,footer:null,onCancel:()=>{Zt(!1)}},ue.createElement("div",{style:{textAlign:"center"}},ue.createElement("br",null),ue.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:Nt,alt:"\u4E8C\u7EF4\u7801"})),ue.createElement("img",null))};kn.Z=(0,et.connect)(({newShixuns:vt,user:Ue,globalSetting:bt})=>({newShixuns:vt,globalSetting:bt,user:Ue}))(Bt)},4901:function(qt,kn,Ee){"use strict";Ee.d(kn,{BU:function(){return et},Dj:function(){return ue},gH:function(){return Lt},vp:function(){return Nt}});function ue(Bt){try{Bt.mozRequestFullScreen?Bt.mozRequestFullScreen():Bt.webkitRequestFullScreen&&Bt.webkitRequestFullScreen()}catch(vt){console.log(vt,":e")}}function et(){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 Nt(){var Bt=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,vt=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Bt),window.isFullScreen?window.isFullScreen:Bt!=null}},24768:function(qt,kn,Ee){"use strict";Ee.d(kn,{AL:function(){return Ae},Iy:function(){return Zt},Qv:function(){return Te},ez:function(){return Se},jb:function(){return Ot}});var ue=Ee(32834),et=Ee.n(ue),Lt=Ee(11690),Nt=Ee.n(Lt);let Bt=1;function vt(xt,ut){const It=xt.match(/^(\s+)(?:```)/);if(It===null)return ut;const Et=It[1];return ut.split(`
|
|
`).map(Tt=>{const Yt=Tt.match(/^\s+/);if(Yt===null)return Tt;const[hn]=Yt;return hn.length>=Et.length?Tt.slice(Et.length):Tt}).join(`
|
|
`)}let Ue=[],bt=["<ul>"];const Ct=new(et()).Renderer,yt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Zt(){Ue.length=0,bt=["<ul>"]}const Ot={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ut(xt,ut,It,Et){if(ut>=xt.length||xt[ut].level<=It)return ut;var Tt=xt[ut];Et.push("<li><a href='#"+Bt+Tt.anchor+"'>"+Tt.text+"</a>"),ut++;var Yt=[];return ut=Ut(xt,ut,Tt.level,Yt),Yt.length>0&&(Et.push("<ul>"),Yt.forEach(function(hn){Et.push(hn)}),Et.push("</ul>")),Et.push("</li>"),ut=Ut(xt,ut,It,Et),ut}function Te(){return Ut(Ue,0,0,bt),bt.push("</ul>"),bt.join("")}const te={heading(xt){const ut=yt.exec(xt);if(Bt+=1,ut)return{type:"heading",raw:ut[0],depth:ut[1].length,text:ut[2]}},fences(xt){const ut=this.rules.block.fences.exec(xt);if(ut){const It=ut[0];let Et=vt(It,ut[3]||"");const Tt=ut[2]?ut[2].trim():ut[2];if(["latex","katex","math"].indexOf(Tt)>=0){const Yt=le(),hn=Et;Et=Yt,pe[Yt]={type:"block",expression:hn}}return{type:"code",raw:It,lang:Tt,text:Et}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let de=0;const le=()=>`__special_katext_id_${de++}__`;let pe={};function Se(){return pe}function Ae(){de=0,pe={}}function Me(xt){return xt=xt.replace(ne,(ut,It)=>{const Et=le();return pe[Et]={type:"inline",expression:It},Et}),xt}const ke=Ct.listitem;Ct.listitem=function(xt){return ke(Me(xt))};const st=Ct.paragraph;Ct.paragraph=function(xt){return st(Me(xt))};const dt=Ct.tablecell;Ct.tablecell=function(xt,ut){return dt(Me(xt),ut)},Ct.code=function(xt,ut,It){const Et=(ut||"").match(/\S*/)[0];return Et?["latex","katex","math"].indexOf(Et)>=0?`<p class='editormd-tex'>${xt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ut}">${It?xt:(0,Lt.escape)(xt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(It?xt:(0,Lt.escape)(xt,!0))+"</code></pre>"},Ct.heading=function(xt,ut,It){let Et=this.options.headerPrefix+It.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:Et,level:ut,text:xt}),"<h"+ut+' id="'+Bt+Et+'">'+xt+"</h"+ut+">"},et().setOptions({silent:!0,gfm:!0,pedantic:!1}),et().use({tokenizer:te,renderer:Ct}),kn.ZP=et()},46474:function(qt,kn,Ee){"use strict";Ee.d(kn,{rX:function(){return Me},pW:function(){return ke},gy:function(){return st},xY:function(){return Ae},O5:function(){return Se},hs:function(){return ne},tJ:function(){return Te},o1:function(){return te},Rd:function(){return pe}});var ue=Ee(89070),et=Ee(43418),Lt=Ee(28103),Nt=Ee(8591),Bt=Ee(24065),vt=Ee(955),Ue=Ee(87169),bt=Ee(25510),Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQb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wM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",yt=Ee.p+"static/newqrcode.a8740efb.png",Zt=Ee(32637),Ot=Ee(59301),Ut=(dt,xt,ut)=>new Promise((It,Et)=>{var Tt=vi=>{try{hn(ut.next(vi))}catch(ui){Et(ui)}},Yt=vi=>{try{hn(ut.throw(vi))}catch(ui){Et(ui)}},hn=vi=>vi.done?It(vi.value):Promise.resolve(vi.value).then(Tt,Yt);hn((ut=ut.apply(dt,xt)).next())});const Te=(dt,xt=!1,ut=!1,It="",Et=!1)=>!!(te(dt)&&de(dt,xt,ut,It,Et)),te=dt=>(0,Bt.bg)()?!0:(dt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=dt=>{var xt,ut,It;const{user:Et}=(0,ue.getDvaApp)()._store.getState();(0,Bt.bg)()&&!((ut=(xt=Et==null?void 0:Et.userInfo)==null?void 0:xt.course)!=null&&ut.course_public)&&!((It=Et==null?void 0:Et.userInfo)!=null&&It.profile_completed)&&dt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},de=(dt,xt=!1,ut=!0,It="",Et=!1)=>{var Tt;const{user:Yt}=(0,ue.getDvaApp)()._store.getState();return(Tt=Yt.userInfo)!=null&&Tt.profile_completed?!0:(ut?dt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:It,isCurrentPage:Et}}):et.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,vt.xg)("/account/profile/edit"),le()}}),!1)},le=()=>{et.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()}})},pe=()=>{et.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Ot.createElement("div",{style:{textAlign:"center"}},Ot.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"),Ot.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Zt}),Ot.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},Se=()=>{var dt;const{user:xt}=(0,ue.getDvaApp)()._store.getState();return(dt=xt.userInfo)!=null&&dt.professional_certification?!0:(et.default.confirm({title:"\u63D0\u793A",centered:!0,content:Ot.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,vt.xg)("/account/certification")}}),!1)},Ae=()=>(0,Bt.V9)()?!0:(et.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Ot.createElement("div",{className:"tc",style:{marginLeft:-38}},Ot.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Ot.createElement("img",{src:yt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Me=(dt,xt)=>dt?!0:(et.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Ot.createElement("div",null,Ot.createElement("p",null,xt||"\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"),Ot.createElement("div",{style:{marginLeft:"110px"}},Ot.createElement("img",{src:Ct,width:200}),Ot.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,vt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ke=dt=>{et.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Ot.createElement("div",null,Ot.createElement("div",null,Ot.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"),Ot.createElement(Lt.Z,null),Ot.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ot.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 ",Ot.createElement("a",null,dt),"\u5929\u3002"),Ot.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ot.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")),Ot.createElement("div",{style:{textAlign:"center",marginTop:30}},Ot.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:bt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},st=(dt,xt="")=>{const{shixunsDetail:{detail:ut}}=(0,ue.getDvaApp)()._store.getState();if((ut==null?void 0:ut.public)===2||(ut==null?void 0:ut.public)===1||(ut==null?void 0:ut.shixun_status)===3){let It="";return(ut==null?void 0:ut.public)===2&&(It="\u5DF2\u516C\u5F00"),(ut==null?void 0:ut.public)===1&&(It="\u5F85\u5BA1\u6838"),(ut==null?void 0:ut.shixun_status)===3&&(It="\u5DF2\u5173\u95ED"),et.default.info({centered:!0,icon:Ot.createElement(Ue.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Ot.createElement("div",{className:"tc",style:{marginLeft:-38}},Ot.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Ot.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",It,"\uFF0C",xt,"\u3002"),Ot.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Ot.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:bt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(ut==null?void 0:ut.shixun_status)===2?(et.default.confirm({centered:!0,icon:Ot.createElement(Ue.Z,null),title:"\u63D0\u793A",content:Ot.createElement("div",null,Ot.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",xt,"\u3002"),Ot.createElement("br",null),Ot.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:()=>{et.default.confirm({width:440,centered:!0,icon:Ot.createElement(Ue.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 dt({type:"shixunsDetail/cancelRelease",payload:{id:ut==null?void 0:ut.identifier}})).status!==401&&(Nt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),dt({type:"shixunsDetail/getShixunsDetail",payload:{id:ut==null?void 0:ut.identifier}}),dt({type:"practiceSetting/getCommonData",payload:{id:ut==null?void 0:ut.identifier}}))})})}}),!0):!1}},77578:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return ue}});const ue=et=>et?typeof et=="function"?et():et:null},46400:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return ui}});var ue=Ee(29679),et=Ee(19248),Lt=Ee(99267),Nt=Ee(96512),Bt=Ee(78987),vt=Ee(92310),Ue=Ee.n(vt),bt=Ee(77900),Ct=Ee(26112),yt=Ee(59301),Zt=Ee(92343),Ot=Ee(36355),Ut=Ee(17313),Te=Ee(83116);const te=(Bn,di,nt,ze,gn)=>({backgroundColor:Bn,border:`${ze.lineWidth}px ${ze.lineType} ${di}`,[`${gn}-icon`]:{color:nt}}),ne=Bn=>{const{componentCls:di,motionDurationSlow:nt,marginXS:ze,marginSM:gn,fontSize:Xn,fontSizeLG:ti,lineHeight:nn,borderRadiusLG:vn,motionEaseInOutCirc:An,withDescriptionIconSize:Si,colorText:Vn,colorTextHeading:Mi,withDescriptionPadding:pt,defaultPadding:ht}=Bn;return{[di]:Object.assign(Object.assign({},(0,Ut.Wf)(Bn)),{position:"relative",display:"flex",alignItems:"center",padding:ht,wordWrap:"break-word",borderRadius:vn,[`&${di}-rtl`]:{direction:"rtl"},[`${di}-content`]:{flex:1,minWidth:0},[`${di}-icon`]:{marginInlineEnd:ze,lineHeight:0},"&-description":{display:"none",fontSize:Xn,lineHeight:nn},"&-message":{color:Mi},[`&${di}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${nt} ${An}, opacity ${nt} ${An},
|
|
padding-top ${nt} ${An}, padding-bottom ${nt} ${An},
|
|
margin-bottom ${nt} ${An}`},[`&${di}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${di}-with-description`]:{alignItems:"flex-start",padding:pt,[`${di}-icon`]:{marginInlineEnd:gn,fontSize:Si,lineHeight:0},[`${di}-message`]:{display:"block",marginBottom:ze,color:Mi,fontSize:ti},[`${di}-description`]:{display:"block",color:Vn}},[`${di}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},de=Bn=>{const{componentCls:di,colorSuccess:nt,colorSuccessBorder:ze,colorSuccessBg:gn,colorWarning:Xn,colorWarningBorder:ti,colorWarningBg:nn,colorError:vn,colorErrorBorder:An,colorErrorBg:Si,colorInfo:Vn,colorInfoBorder:Mi,colorInfoBg:pt}=Bn;return{[di]:{"&-success":te(gn,ze,nt,Bn,di),"&-info":te(pt,Mi,Vn,Bn,di),"&-warning":te(nn,ti,Xn,Bn,di),"&-error":Object.assign(Object.assign({},te(Si,An,vn,Bn,di)),{[`${di}-description > pre`]:{margin:0,padding:0}})}}},le=Bn=>{const{componentCls:di,iconCls:nt,motionDurationMid:ze,marginXS:gn,fontSizeIcon:Xn,colorIcon:ti,colorIconHover:nn}=Bn;return{[di]:{"&-action":{marginInlineStart:gn},[`${di}-close-icon`]:{marginInlineStart:gn,padding:0,overflow:"hidden",fontSize:Xn,lineHeight:`${Xn}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${nt}-close`]:{color:ti,transition:`color ${ze}`,"&:hover":{color:nn}}},"&-close-text":{color:ti,transition:`color ${ze}`,"&:hover":{color:nn}}}}},pe=Bn=>[ne(Bn),de(Bn),le(Bn)];var Se=(0,Te.Z)("Alert",Bn=>[pe(Bn)],Bn=>({withDescriptionIconSize:Bn.fontSizeHeading3,defaultPadding:`${Bn.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${Bn.paddingMD}px ${Bn.paddingContentHorizontalLG}px`})),Ae=function(Bn,di){var nt={};for(var ze in Bn)Object.prototype.hasOwnProperty.call(Bn,ze)&&di.indexOf(ze)<0&&(nt[ze]=Bn[ze]);if(Bn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,ze=Object.getOwnPropertySymbols(Bn);gn<ze.length;gn++)di.indexOf(ze[gn])<0&&Object.prototype.propertyIsEnumerable.call(Bn,ze[gn])&&(nt[ze[gn]]=Bn[ze[gn]]);return nt};const Me={success:ue.Z,info:Bt.Z,error:et.Z,warning:Nt.Z},ke=Bn=>{const{icon:di,prefixCls:nt,type:ze}=Bn,gn=Me[ze]||null;return di?(0,Zt.wm)(di,yt.createElement("span",{className:`${nt}-icon`},di),()=>({className:Ue()(`${nt}-icon`,{[di.props.className]:di.props.className})})):yt.createElement(gn,{className:`${nt}-icon`})},st=Bn=>{const{isClosable:di,prefixCls:nt,closeIcon:ze,handleClose:gn}=Bn,Xn=ze===!0||ze===void 0?yt.createElement(Lt.Z,null):ze;return di?yt.createElement("button",{type:"button",onClick:gn,className:`${nt}-close-icon`,tabIndex:0},Xn):null};var xt=Bn=>{const{description:di,prefixCls:nt,message:ze,banner:gn,className:Xn,rootClassName:ti,style:nn,onMouseEnter:vn,onMouseLeave:An,onClick:Si,afterClose:Vn,showIcon:Mi,closable:pt,closeText:ht,closeIcon:dn,action:Oe}=Bn,Ce=Ae(Bn,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[Pe,Ie]=yt.useState(!1),Ke=yt.useRef(null),{getPrefixCls:De,direction:tt,alert:He}=yt.useContext(Ot.E_),mt=De("alert",nt),[Wt,kt]=Se(mt),yn=fi=>{var Wn;Ie(!0),(Wn=Bn.onClose)===null||Wn===void 0||Wn.call(Bn,fi)},pn=yt.useMemo(()=>Bn.type!==void 0?Bn.type:gn?"warning":"info",[Bn.type,gn]),mn=yt.useMemo(()=>ht?!0:typeof pt=="boolean"?pt:dn!==!1&&dn!==null&&dn!==void 0,[ht,dn,pt]),Gn=gn&&Mi===void 0?!0:Mi,Tn=Ue()(mt,`${mt}-${pn}`,{[`${mt}-with-description`]:!!di,[`${mt}-no-icon`]:!Gn,[`${mt}-banner`]:!!gn,[`${mt}-rtl`]:tt==="rtl"},He==null?void 0:He.className,Xn,ti,kt),Xt=(0,Ct.Z)(Ce,{aria:!0,data:!0});return Wt(yt.createElement(bt.default,{visible:!Pe,motionName:`${mt}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:fi=>({maxHeight:fi.offsetHeight}),onLeaveEnd:Vn},fi=>{let{className:Wn,style:bn}=fi;return yt.createElement("div",Object.assign({ref:Ke,"data-show":!Pe,className:Ue()(Tn,Wn),style:Object.assign(Object.assign(Object.assign({},He==null?void 0:He.style),nn),bn),onMouseEnter:vn,onMouseLeave:An,onClick:Si,role:"alert"},Xt),Gn?yt.createElement(ke,{description:di,icon:Bn.icon,prefixCls:mt,type:pn}):null,yt.createElement("div",{className:`${mt}-content`},ze?yt.createElement("div",{className:`${mt}-message`},ze):null,di?yt.createElement("div",{className:`${mt}-description`},di):null),Oe?yt.createElement("div",{className:`${mt}-action`},Oe):null,yt.createElement(st,{isClosable:mn,prefixCls:mt,closeIcon:ht||dn,handleClose:yn}))}))},ut=Ee(52884),It=Ee(95727),Et=Ee(65711),Tt=Ee(85745),hn=function(Bn){(0,Et.Z)(nt,Bn);var di=(0,Tt.Z)(nt);function nt(){var ze;return(0,ut.Z)(this,nt),ze=di.apply(this,arguments),ze.state={error:void 0,info:{componentStack:""}},ze}return(0,It.Z)(nt,[{key:"componentDidCatch",value:function(gn,Xn){this.setState({error:gn,info:Xn})}},{key:"render",value:function(){const{message:gn,description:Xn,children:ti}=this.props,{error:nn,info:vn}=this.state,An=vn&&vn.componentStack?vn.componentStack:null,Si=typeof gn=="undefined"?(nn||"").toString():gn,Vn=typeof Xn=="undefined"?An:Xn;return nn?yt.createElement(xt,{type:"error",message:Si,description:yt.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Vn)}):ti}}]),nt}(yt.Component);const vi=xt;vi.ErrorBoundary=hn;var ui=vi},88522:function(qt,kn,Ee){"use strict";var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(11592),Nt=Ee(2738),Bt=Ee(59301),vt=Ee(53487),Ue=Ee(92343),bt=Ee(36355),Ct=Ee(57809);const{Option:yt}=Ct.default;function Zt(te){return te&&te.type&&(te.type.isSelectOption||te.type.isSelectOptGroup)}const Ot=(te,ne)=>{const{prefixCls:de,className:le,popupClassName:pe,dropdownClassName:Se,children:Ae,dataSource:Me}=te,ke=(0,Lt.Z)(Ae);let st;ke.length===1&&(0,Ue.l$)(ke[0])&&!Zt(ke[0])&&([st]=ke);const dt=st?()=>st:void 0;let xt;ke.length&&Zt(ke[0])?xt=Ae:xt=Me?Me.map(Et=>{if((0,Ue.l$)(Et))return Et;switch(typeof Et){case"string":return Bt.createElement(yt,{key:Et,value:Et},Et);case"object":{const{value:Tt}=Et;return Bt.createElement(yt,{key:Tt,value:Tt},Et.text)}default:return}}):[];const{getPrefixCls:ut}=Bt.useContext(bt.E_),It=ut("select",de);return Bt.createElement(Ct.default,Object.assign({ref:ne,suffixIcon:null},(0,Nt.Z)(te,["dataSource","dropdownClassName"]),{prefixCls:It,popupClassName:pe||Se,className:et()(`${It}-auto-complete`,le),mode:Ct.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:dt}),xt)},Ut=Bt.forwardRef(Ot),Te=(0,vt.Z)(Ut);Ut.Option=yt,Ut._InternalPanelDoNotUseOrYouWillBeFired=Te,kn.Z=Ut},49127:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return di}});var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(77900),Nt=Ee(59301),Bt=Ee(36785),vt=Ee(92343),Ue=Ee(36355),bt=Ee(93083),Ct=Ee(17313),yt=Ee(45157),Zt=Ee(37613),Ot=Ee(83116);const Ut=new bt.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Te=new bt.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),te=new bt.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),ne=new bt.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),de=new bt.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),le=new bt.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pe=nt=>{const{componentCls:ze,iconCls:gn,antCls:Xn,badgeShadowSize:ti,motionDurationSlow:nn,textFontSize:vn,textFontSizeSM:An,statusSize:Si,dotSize:Vn,textFontWeight:Mi,indicatorHeight:pt,indicatorHeightSM:ht,marginXS:dn}=nt,Oe=`${Xn}-scroll-number`,Ce=(0,yt.Z)(nt,(Pe,Ie)=>{let{darkColor:Ke}=Ie;return{[`&${ze} ${ze}-color-${Pe}`]:{background:Ke,[`&:not(${ze}-count)`]:{color:Ke}}}});return{[ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(nt)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${ze}-count`]:{zIndex:nt.indicatorZIndex,minWidth:pt,height:pt,color:nt.badgeTextColor,fontWeight:Mi,fontSize:vn,lineHeight:`${pt}px`,whiteSpace:"nowrap",textAlign:"center",background:nt.badgeColor,borderRadius:pt/2,boxShadow:`0 0 0 ${ti}px ${nt.badgeShadowColor}`,transition:`background ${nt.motionDurationMid}`,a:{color:nt.badgeTextColor},"a:hover":{color:nt.badgeTextColor},"a:hover &":{background:nt.badgeColorHover}},[`${ze}-count-sm`]:{minWidth:ht,height:ht,fontSize:An,lineHeight:`${ht}px`,borderRadius:ht/2},[`${ze}-multiple-words`]:{padding:`0 ${nt.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${ze}-dot`]:{zIndex:nt.indicatorZIndex,width:Vn,minWidth:Vn,height:Vn,background:nt.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ti}px ${nt.badgeShadowColor}`},[`${ze}-dot${Oe}`]:{transition:`background ${nn}`},[`${ze}-count, ${ze}-dot, ${Oe}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${gn}-spin`]:{animationName:le,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${ze}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${ze}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:Si,height:Si,verticalAlign:"middle",borderRadius:"50%"},[`${ze}-status-success`]:{backgroundColor:nt.colorSuccess},[`${ze}-status-processing`]:{overflow:"visible",color:nt.colorPrimary,backgroundColor:nt.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ti,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Ut,animationDuration:nt.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${ze}-status-default`]:{backgroundColor:nt.colorTextPlaceholder},[`${ze}-status-error`]:{backgroundColor:nt.colorError},[`${ze}-status-warning`]:{backgroundColor:nt.colorWarning},[`${ze}-status-text`]:{marginInlineStart:dn,color:nt.colorText,fontSize:nt.fontSize}}}),Ce),{[`${ze}-zoom-appear, ${ze}-zoom-enter`]:{animationName:Te,animationDuration:nt.motionDurationSlow,animationTimingFunction:nt.motionEaseOutBack,animationFillMode:"both"},[`${ze}-zoom-leave`]:{animationName:te,animationDuration:nt.motionDurationSlow,animationTimingFunction:nt.motionEaseOutBack,animationFillMode:"both"},[`&${ze}-not-a-wrapper`]:{[`${ze}-zoom-appear, ${ze}-zoom-enter`]:{animationName:ne,animationDuration:nt.motionDurationSlow,animationTimingFunction:nt.motionEaseOutBack},[`${ze}-zoom-leave`]:{animationName:de,animationDuration:nt.motionDurationSlow,animationTimingFunction:nt.motionEaseOutBack},[`&:not(${ze}-status)`]:{verticalAlign:"middle"},[`${Oe}-custom-component, ${ze}-count`]:{transform:"none"},[`${Oe}-custom-component, ${Oe}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${Oe}`]:{overflow:"hidden",[`${Oe}-only`]:{position:"relative",display:"inline-block",height:pt,transition:`all ${nt.motionDurationSlow} ${nt.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${Oe}-only-unit`]:{height:pt,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${Oe}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${ze}-count, ${ze}-dot, ${Oe}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Se=nt=>{const{fontSize:ze,lineHeight:gn,lineWidth:Xn,marginXS:ti,colorBorderBg:nn}=nt,vn=Math.round(ze*gn),An=Xn,Si=nt.colorBgContainer,Vn=nt.colorError,Mi=nt.colorErrorHover;return(0,Zt.TS)(nt,{badgeFontHeight:vn,badgeShadowSize:An,badgeTextColor:Si,badgeColor:Vn,badgeColorHover:Mi,badgeShadowColor:nn,badgeProcessingDuration:"1.2s",badgeRibbonOffset:ti,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ae=nt=>{const{fontSize:ze,lineHeight:gn,fontSizeSM:Xn,lineWidth:ti}=nt;return{indicatorZIndex:"auto",indicatorHeight:Math.round(ze*gn)-2*ti,indicatorHeightSM:ze,dotSize:Xn/2,textFontSize:Xn,textFontSizeSM:Xn,textFontWeight:"normal",statusSize:Xn/2}};var Me=(0,Ot.Z)("Badge",nt=>{const ze=Se(nt);return[pe(ze)]},Ae);const ke=nt=>{const{antCls:ze,badgeFontHeight:gn,marginXS:Xn,badgeRibbonOffset:ti}=nt,nn=`${ze}-ribbon`,vn=`${ze}-ribbon-wrapper`,An=(0,yt.Z)(nt,(Si,Vn)=>{let{darkColor:Mi}=Vn;return{[`&${nn}-color-${Si}`]:{background:Mi,color:Mi}}});return{[`${vn}`]:{position:"relative"},[`${nn}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(nt)),{position:"absolute",top:Xn,padding:`0 ${nt.paddingXS}px`,color:nt.colorPrimary,lineHeight:`${gn}px`,whiteSpace:"nowrap",backgroundColor:nt.colorPrimary,borderRadius:nt.borderRadiusSM,[`${nn}-text`]:{color:nt.colorTextLightSolid},[`${nn}-corner`]:{position:"absolute",top:"100%",width:ti,height:ti,color:"currentcolor",border:`${ti/2}px solid`,transform:nt.badgeRibbonCornerTransform,transformOrigin:"top",filter:nt.badgeRibbonCornerFilter}}),An),{[`&${nn}-placement-end`]:{insetInlineEnd:-ti,borderEndEndRadius:0,[`${nn}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${nn}-placement-start`]:{insetInlineStart:-ti,borderEndStartRadius:0,[`${nn}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var st=(0,Ot.Z)(["Badge","Ribbon"],nt=>{const ze=Se(nt);return[ke(ze)]},Ae),xt=nt=>{const{className:ze,prefixCls:gn,style:Xn,color:ti,children:nn,text:vn,placement:An="end",rootClassName:Si}=nt,{getPrefixCls:Vn,direction:Mi}=Nt.useContext(Ue.E_),pt=Vn("ribbon",gn),ht=(0,Bt.o2)(ti,!1),dn=et()(pt,`${pt}-placement-${An}`,{[`${pt}-rtl`]:Mi==="rtl",[`${pt}-color-${ti}`]:ht},ze),[Oe,Ce]=st(pt),Pe={},Ie={};return ti&&!ht&&(Pe.background=ti,Ie.color=ti),Oe(Nt.createElement("div",{className:et()(`${pt}-wrapper`,Si,Ce)},nn,Nt.createElement("div",{className:et()(dn,Ce),style:Object.assign(Object.assign({},Pe),Xn)},Nt.createElement("span",{className:`${pt}-text`},vn),Nt.createElement("div",{className:`${pt}-corner`,style:Ie}))))};function ut(nt){let{prefixCls:ze,value:gn,current:Xn,offset:ti=0}=nt,nn;return ti&&(nn={position:"absolute",top:`${ti}00%`,left:0}),Nt.createElement("span",{style:nn,className:et()(`${ze}-only-unit`,{current:Xn})},gn)}function It(nt,ze,gn){let Xn=nt,ti=0;for(;(Xn+10)%10!==ze;)Xn+=gn,ti+=gn;return ti}function Et(nt){const{prefixCls:ze,count:gn,value:Xn}=nt,ti=Number(Xn),nn=Math.abs(gn),[vn,An]=Nt.useState(ti),[Si,Vn]=Nt.useState(nn),Mi=()=>{An(ti),Vn(nn)};Nt.useEffect(()=>{const dn=setTimeout(()=>{Mi()},1e3);return()=>{clearTimeout(dn)}},[ti]);let pt,ht;if(vn===ti||Number.isNaN(ti)||Number.isNaN(vn))pt=[Nt.createElement(ut,Object.assign({},nt,{key:ti,current:!0}))],ht={transition:"none"};else{pt=[];const dn=ti+10,Oe=[];for(let Ie=ti;Ie<=dn;Ie+=1)Oe.push(Ie);const Ce=Oe.findIndex(Ie=>Ie%10===vn);pt=Oe.map((Ie,Ke)=>{const De=Ie%10;return Nt.createElement(ut,Object.assign({},nt,{key:Ie,value:De,offset:Ke-Ce,current:Ke===Ce}))});const Pe=Si<nn?1:-1;ht={transform:`translateY(${-It(vn,ti,Pe)}00%)`}}return Nt.createElement("span",{className:`${ze}-only`,style:ht,onTransitionEnd:Mi},pt)}var Tt=function(nt,ze){var gn={};for(var Xn in nt)Object.prototype.hasOwnProperty.call(nt,Xn)&&ze.indexOf(Xn)<0&&(gn[Xn]=nt[Xn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ti=0,Xn=Object.getOwnPropertySymbols(nt);ti<Xn.length;ti++)ze.indexOf(Xn[ti])<0&&Object.prototype.propertyIsEnumerable.call(nt,Xn[ti])&&(gn[Xn[ti]]=nt[Xn[ti]]);return gn},hn=Nt.forwardRef((nt,ze)=>{const{prefixCls:gn,count:Xn,className:ti,motionClassName:nn,style:vn,title:An,show:Si,component:Vn="sup",children:Mi}=nt,pt=Tt(nt,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:ht}=Nt.useContext(Ue.E_),dn=ht("scroll-number",gn),Oe=Object.assign(Object.assign({},pt),{"data-show":Si,style:vn,className:et()(dn,ti,nn),title:An});let Ce=Xn;if(Xn&&Number(Xn)%1===0){const Pe=String(Xn).split("");Ce=Nt.createElement("bdi",null,Pe.map((Ie,Ke)=>Nt.createElement(Et,{prefixCls:dn,count:Number(Xn),value:Ie,key:Pe.length-Ke})))}return vn&&vn.borderColor&&(Oe.style=Object.assign(Object.assign({},vn),{boxShadow:`0 0 0 1px ${vn.borderColor} inset`})),Mi?(0,vt.Tm)(Mi,Pe=>({className:et()(`${dn}-custom-component`,Pe==null?void 0:Pe.className,nn)})):Nt.createElement(Vn,Object.assign({},Oe,{ref:ze}),Ce)}),vi=function(nt,ze){var gn={};for(var Xn in nt)Object.prototype.hasOwnProperty.call(nt,Xn)&&ze.indexOf(Xn)<0&&(gn[Xn]=nt[Xn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ti=0,Xn=Object.getOwnPropertySymbols(nt);ti<Xn.length;ti++)ze.indexOf(Xn[ti])<0&&Object.prototype.propertyIsEnumerable.call(nt,Xn[ti])&&(gn[Xn[ti]]=nt[Xn[ti]]);return gn};const ui=(nt,ze)=>{var gn,Xn,ti,nn,vn;const{prefixCls:An,scrollNumberPrefixCls:Si,children:Vn,status:Mi,text:pt,color:ht,count:dn=null,overflowCount:Oe=99,dot:Ce=!1,size:Pe="default",title:Ie,offset:Ke,style:De,className:tt,rootClassName:He,classNames:mt,styles:Wt,showZero:kt=!1}=nt,yn=vi(nt,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:pn,direction:mn,badge:Gn}=Nt.useContext(Ue.E_),Tn=pn("badge",An),[Xt,fi]=Me(Tn),Wn=dn>Oe?`${Oe}+`:dn,bn=Wn==="0"||Wn===0,Dn=dn===null||bn&&!kt,Bi=(Mi!=null||ht!=null)&&Dn,On=Ce&&!bn,Jn=On?"":Wn,Ki=(0,Nt.useMemo)(()=>(Jn==null||Jn===""||bn&&!kt)&&!On,[Jn,bn,kt,On]),Pi=(0,Nt.useRef)(dn);Ki||(Pi.current=dn);const ur=Pi.current,lo=(0,Nt.useRef)(Jn);Ki||(lo.current=Jn);const jo=lo.current,Oo=(0,Nt.useRef)(On);Ki||(Oo.current=On);const Hr=(0,Nt.useMemo)(()=>{if(!Ke)return Object.assign(Object.assign({},Gn==null?void 0:Gn.style),De);const to={marginTop:Ke[1]};return mn==="rtl"?to.left=parseInt(Ke[0],10):to.right=-parseInt(Ke[0],10),Object.assign(Object.assign(Object.assign({},to),Gn==null?void 0:Gn.style),De)},[mn,Ke,De,Gn==null?void 0:Gn.style]),da=Ie!=null?Ie:typeof ur=="string"||typeof ur=="number"?ur:void 0,zo=Ki||!pt?null:Nt.createElement("span",{className:`${Tn}-status-text`},pt),Co=!ur||typeof ur!="object"?void 0:(0,vt.Tm)(ur,to=>({style:Object.assign(Object.assign({},Hr),to.style)})),xo=(0,Bt.o2)(ht,!1),Nr=et()(mt==null?void 0:mt.indicator,(gn=Gn==null?void 0:Gn.classNames)===null||gn===void 0?void 0:gn.indicator,{[`${Tn}-status-dot`]:Bi,[`${Tn}-status-${Mi}`]:!!Mi,[`${Tn}-color-${ht}`]:xo}),Be={};ht&&!xo&&(Be.color=ht,Be.background=ht);const ya=et()(Tn,{[`${Tn}-status`]:Bi,[`${Tn}-not-a-wrapper`]:!Vn,[`${Tn}-rtl`]:mn==="rtl"},tt,He,Gn==null?void 0:Gn.className,(Xn=Gn==null?void 0:Gn.classNames)===null||Xn===void 0?void 0:Xn.root,mt==null?void 0:mt.root,fi);if(!Vn&&Bi){const to=Hr.color;return Xt(Nt.createElement("span",Object.assign({},yn,{className:ya,style:Object.assign(Object.assign(Object.assign({},Wt==null?void 0:Wt.root),(ti=Gn==null?void 0:Gn.styles)===null||ti===void 0?void 0:ti.root),Hr)}),Nt.createElement("span",{className:Nr,style:Object.assign(Object.assign(Object.assign({},Wt==null?void 0:Wt.indicator),(nn=Gn==null?void 0:Gn.styles)===null||nn===void 0?void 0:nn.indicator),Be)}),pt&&Nt.createElement("span",{style:{color:to},className:`${Tn}-status-text`},pt)))}return Xt(Nt.createElement("span",Object.assign({ref:ze},yn,{className:ya,style:Object.assign(Object.assign({},(vn=Gn==null?void 0:Gn.styles)===null||vn===void 0?void 0:vn.root),Wt==null?void 0:Wt.root)}),Vn,Nt.createElement(Lt.default,{visible:!Ki,motionName:`${Tn}-zoom`,motionAppear:!1,motionDeadline:1e3},to=>{let{className:jn,ref:Vi}=to;var Wi,pi;const qn=pn("scroll-number",Si),nr=Oo.current,en=et()(mt==null?void 0:mt.indicator,(Wi=Gn==null?void 0:Gn.classNames)===null||Wi===void 0?void 0:Wi.indicator,{[`${Tn}-dot`]:nr,[`${Tn}-count`]:!nr,[`${Tn}-count-sm`]:Pe==="small",[`${Tn}-multiple-words`]:!nr&&jo&&jo.toString().length>1,[`${Tn}-status-${Mi}`]:!!Mi,[`${Tn}-color-${ht}`]:xo});let _t=Object.assign(Object.assign(Object.assign({},Wt==null?void 0:Wt.indicator),(pi=Gn==null?void 0:Gn.styles)===null||pi===void 0?void 0:pi.indicator),Hr);return ht&&!xo&&(_t=_t||{},_t.background=ht),Nt.createElement(hn,{prefixCls:qn,show:!Ki,motionClassName:jn,className:en,count:jo,title:da,style:_t,key:"scrollNumber",ref:Vi},Co)}),zo))},Bn=Nt.forwardRef(ui);Bn.Ribbon=xt;var di=Bn},19842:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return to}});var ue=Ee(19127),et=Ee(59301),Lt=Ee(33853),Nt=Ee(58617),Bt=Ee(38819),vt=Ee(92310),Ue=Ee.n(vt),bt=Ee(96663),Ct=Ee(72071),yt=Ee(6620),Zt=Ee(77861),Ot=Ee(17115),Ut=Ee(90782),Te=Ee(6089),te=Ee(18929),ne=et.createContext(null),de=ne,le=Ee(20135),pe=Ee(90493),Se=Ee(44127),Ae="__rc_cascader_search_mark__",Me=function(Vi,Wi,pi){var qn=pi.label;return Wi.some(function(nr){return String(nr[qn]).toLowerCase().includes(Vi.toLowerCase())})},ke=function(Vi,Wi,pi,qn){return Wi.map(function(nr){return nr[qn.label]}).join(" / ")},st=function(jn,Vi,Wi,pi,qn,nr){var en=qn.filter,_t=en===void 0?Me:en,zt=qn.render,Li=zt===void 0?ke:zt,yr=qn.limit,Oi=yr===void 0?50:yr,Zn=qn.sort;return et.useMemo(function(){var ki=[];if(!jn)return[];function zr(br,Br){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;br.forEach(function(Di){if(!(!Zn&&Oi!==!1&&Oi>0&&ki.length>=Oi)){var En=[].concat((0,ue.Z)(Br),[Di]),Yn=Di[Wi.children],Mt=Pt||Di.disabled;if((!Yn||Yn.length===0||nr)&&_t(jn,En,{label:Wi.label})){var Ft;ki.push((0,Se.Z)((0,Se.Z)({},Di),{},(Ft={disabled:Mt},(0,pe.Z)(Ft,Wi.label,Li(jn,En,pi,Wi)),(0,pe.Z)(Ft,Ae,En),(0,pe.Z)(Ft,Wi.children,void 0),Ft)))}Yn&&zr(Di[Wi.children],En,Mt)}})}return zr(Vi,[]),Zn&&ki.sort(function(br,Br){return Zn(br[Ae],Br[Ae],jn,Wi)}),Oi!==!1&&Oi>0?ki.slice(0,Oi):ki},[jn,Vi,Wi,pi,Li,nr,_t,Zn,Oi])},dt="__RC_CASCADER_SPLIT__",xt="SHOW_PARENT",ut="SHOW_CHILD";function It(jn){return jn.join(dt)}function Et(jn){return jn.map(It)}function Tt(jn){return jn.split(dt)}function Yt(jn){var Vi=jn||{},Wi=Vi.label,pi=Vi.value,qn=Vi.children,nr=pi||"value";return{label:Wi||"label",value:nr,key:nr,children:qn||"children"}}function hn(jn,Vi){var Wi,pi;return(Wi=jn.isLeaf)!==null&&Wi!==void 0?Wi:!((pi=jn[Vi.children])!==null&&pi!==void 0&&pi.length)}function vi(jn){var Vi=jn.parentElement;if(Vi){var Wi=jn.offsetTop-Vi.offsetTop;Wi-Vi.scrollTop<0?Vi.scrollTo({top:Wi}):Wi+jn.offsetHeight-Vi.scrollTop>Vi.offsetHeight&&Vi.scrollTo({top:Wi+jn.offsetHeight-Vi.offsetHeight})}}function ui(jn,Vi){return jn.map(function(Wi){var pi;return(pi=Wi[Ae])===null||pi===void 0?void 0:pi.map(function(qn){return qn[Vi.value]})})}function Bn(jn,Vi,Wi){var pi=new Set(jn),qn=Vi();return jn.filter(function(nr){var en=qn[nr],_t=en?en.parent:null,zt=en?en.children:null;return en&&en.node.disabled?!0:Wi===ut?!(zt&&zt.some(function(Li){return Li.key&&pi.has(Li.key)})):!(_t&&!_t.node.disabled&&pi.has(_t.key))})}function di(jn,Vi,Wi){for(var pi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,qn=Vi,nr=[],en=function(){var Li,yr,Oi,Zn=jn[_t],ki=(Li=qn)===null||Li===void 0?void 0:Li.findIndex(function(br){var Br=br[Wi.value];return pi?String(Br)===String(Zn):Br===Zn}),zr=ki!==-1?(yr=qn)===null||yr===void 0?void 0:yr[ki]:null;nr.push({value:(Oi=zr==null?void 0:zr[Wi.value])!==null&&Oi!==void 0?Oi:Zn,index:ki,option:zr}),qn=zr==null?void 0:zr[Wi.children]},_t=0;_t<jn.length;_t+=1)en();return nr}var nt=function(jn,Vi,Wi,pi,qn){return et.useMemo(function(){var nr=qn||function(en){var _t=pi?en.slice(-1):en,zt=" / ";return _t.every(function(Li){return["string","number"].includes((0,le.Z)(Li))})?_t.join(zt):_t.reduce(function(Li,yr,Oi){var Zn=et.isValidElement(yr)?et.cloneElement(yr,{key:Oi}):yr;return Oi===0?[Zn]:[].concat((0,ue.Z)(Li),[zt,Zn])},[])};return jn.map(function(en){var _t,zt,Li=di(en,Vi,Wi),yr=nr(Li.map(function(Zn){var ki,zr=Zn.option,br=Zn.value;return(ki=zr==null?void 0:zr[Wi.label])!==null&&ki!==void 0?ki:br}),Li.map(function(Zn){var ki=Zn.option;return ki})),Oi=It(en);return{label:yr,value:Oi,key:Oi,valueCells:en,disabled:(_t=Li[Li.length-1])===null||_t===void 0||(zt=_t.option)===null||zt===void 0?void 0:zt.disabled}})},[jn,Vi,Wi,qn,pi])},ze=Ee(71430),gn=function(jn,Vi){var Wi=et.useRef({options:null,info:null}),pi=et.useCallback(function(){return Wi.current.options!==jn&&(Wi.current.options=jn,Wi.current.info=(0,ze.I8)(jn,{fieldNames:Vi,initWrapper:function(nr){return(0,Se.Z)((0,Se.Z)({},nr),{},{pathKeyEntities:{}})},processEntity:function(nr,en){var _t=nr.nodes.map(function(zt){return zt[Vi.value]}).join(dt);en.pathKeyEntities[_t]=nr,nr.key=_t}})),Wi.current.info.pathKeyEntities},[Vi,jn]);return pi},Xn=function(jn,Vi){return et.useCallback(function(Wi){var pi=[],qn=[];return Wi.forEach(function(nr){var en=di(nr,jn,Vi);en.every(function(_t){return _t.option})?qn.push(nr):pi.push(nr)}),[qn,pi]},[jn,Vi])},ti=Ee(48736);function nn(jn){return et.useMemo(function(){if(!jn)return[!1,{}];var Vi={matchInputWidth:!0,limit:50};return jn&&(0,le.Z)(jn)==="object"&&(Vi=(0,Se.Z)((0,Se.Z)({},Vi),jn)),Vi.limit<=0&&delete Vi.limit,[!0,Vi]},[jn])}var vn=et.memo(function(jn){var Vi=jn.children;return Vi},function(jn,Vi){return!Vi.open}),An=vn;function Si(jn){var Vi,Wi=jn.prefixCls,pi=jn.checked,qn=jn.halfChecked,nr=jn.disabled,en=jn.onClick,_t=jn.disableCheckbox,zt=et.useContext(de),Li=zt.checkable,yr=typeof Li!="boolean"?Li:null;return et.createElement("span",{className:Ue()("".concat(Wi),(Vi={},(0,pe.Z)(Vi,"".concat(Wi,"-checked"),pi),(0,pe.Z)(Vi,"".concat(Wi,"-indeterminate"),!pi&&qn),(0,pe.Z)(Vi,"".concat(Wi,"-disabled"),nr||_t),Vi)),onClick:en},yr)}var Vn="__cascader_fix_label__";function Mi(jn){var Vi=jn.prefixCls,Wi=jn.multiple,pi=jn.options,qn=jn.activeValue,nr=jn.prevValuePath,en=jn.onToggleOpen,_t=jn.onSelect,zt=jn.onActive,Li=jn.checkedSet,yr=jn.halfCheckedSet,Oi=jn.loadingKeys,Zn=jn.isSelectable,ki=jn.searchValue,zr="".concat(Vi,"-menu"),br="".concat(Vi,"-menu-item"),Br=et.useContext(de),Pt=Br.fieldNames,Di=Br.changeOnSelect,En=Br.expandTrigger,Yn=Br.expandIcon,Mt=Br.loadingIcon,Ft=Br.dropdownMenuColumnStyle,sn=En==="hover",Sr=et.useMemo(function(){return pi.map(function(Ii){var Ri,ai=Ii.disabled,Ti=Ii.disableCheckbox,Jr=Ii[Ae],Qr=(Ri=Ii[Vn])!==null&&Ri!==void 0?Ri:Ii[Pt.label],Lo=Ii[Pt.value],Ln=hn(Ii,Pt),ja=Jr?Jr.map(function(cn){return cn[Pt.value]}):[].concat((0,ue.Z)(nr),[Lo]),co=It(ja),Kr=Oi.includes(co),on=Li.has(co),Vt=yr.has(co);return{disabled:ai,label:Qr,value:Lo,isLeaf:Ln,isLoading:Kr,checked:on,halfChecked:Vt,option:Ii,disableCheckbox:Ti,fullPath:ja,fullPathKey:co}})},[pi,Li,Pt,yr,Oi,nr]);return et.createElement("ul",{className:zr,role:"menu"},Sr.map(function(Ii){var Ri,ai=Ii.disabled,Ti=Ii.label,Jr=Ii.value,Qr=Ii.isLeaf,Lo=Ii.isLoading,Ln=Ii.checked,ja=Ii.halfChecked,co=Ii.option,Kr=Ii.fullPath,on=Ii.fullPathKey,Vt=Ii.disableCheckbox,cn=function(){if(!(ai||ki)){var sr=(0,ue.Z)(Kr);sn&&Qr&&sr.pop(),zt(sr)}},Jt=function(){Zn(co)&&_t(Kr,Qr)},zn;return typeof co.title=="string"?zn=co.title:typeof Ti=="string"&&(zn=Ti),et.createElement("li",{key:on,className:Ue()(br,(Ri={},(0,pe.Z)(Ri,"".concat(br,"-expand"),!Qr),(0,pe.Z)(Ri,"".concat(br,"-active"),qn===Jr||qn===on),(0,pe.Z)(Ri,"".concat(br,"-disabled"),ai),(0,pe.Z)(Ri,"".concat(br,"-loading"),Lo),Ri)),style:Ft,role:"menuitemcheckbox",title:zn,"aria-checked":Ln,"data-path-key":on,onClick:function(){cn(),!Vt&&(!Wi||Qr)&&Jt()},onDoubleClick:function(){Di&&en(!1)},onMouseEnter:function(){sn&&cn()},onMouseDown:function(sr){sr.preventDefault()}},Wi&&et.createElement(Si,{prefixCls:"".concat(Vi,"-checkbox"),checked:Ln,halfChecked:ja,disabled:ai||Vt,disableCheckbox:Vt,onClick:function(sr){Vt||(sr.stopPropagation(),Jt())}}),et.createElement("div",{className:"".concat(br,"-content")},Ti),!Lo&&Yn&&!Qr&&et.createElement("div",{className:"".concat(br,"-expand-icon")},Yn),Lo&&Mt&&et.createElement("div",{className:"".concat(br,"-loading-icon")},Mt))}))}var pt=function(){var jn=(0,Zt.lk)(),Vi=jn.multiple,Wi=jn.open,pi=et.useContext(de),qn=pi.values,nr=et.useState([]),en=(0,Ct.Z)(nr,2),_t=en[0],zt=en[1];return et.useEffect(function(){if(Wi&&!Vi){var Li=qn[0];zt(Li||[])}},[Wi]),[_t,zt]},ht=Ee(10228),dn=function(jn,Vi,Wi,pi,qn,nr){var en=(0,Zt.lk)(),_t=en.direction,zt=en.searchValue,Li=en.toggleOpen,yr=en.open,Oi=_t==="rtl",Zn=et.useMemo(function(){for(var Ft=-1,sn=Vi,Sr=[],Ii=[],Ri=pi.length,ai=ui(Vi,Wi),Ti=function(co){var Kr=sn.findIndex(function(on,Vt){return(ai[Vt]?It(ai[Vt]):on[Wi.value])===pi[co]});if(Kr===-1)return"break";Ft=Kr,Sr.push(Ft),Ii.push(pi[co]),sn=sn[Ft][Wi.children]},Jr=0;Jr<Ri&&sn;Jr+=1){var Qr=Ti(Jr);if(Qr==="break")break}for(var Lo=Vi,Ln=0;Ln<Sr.length-1;Ln+=1)Lo=Lo[Sr[Ln]][Wi.children];return[Ii,Ft,Lo,ai]},[pi,Wi,Vi]),ki=(0,Ct.Z)(Zn,4),zr=ki[0],br=ki[1],Br=ki[2],Pt=ki[3],Di=function(sn){qn(sn)},En=function(sn){var Sr=Br.length,Ii=br;Ii===-1&&sn<0&&(Ii=Sr);for(var Ri=0;Ri<Sr;Ri+=1){Ii=(Ii+sn+Sr)%Sr;var ai=Br[Ii];if(ai&&!ai.disabled){var Ti=zr.slice(0,-1).concat(Pt[Ii]?It(Pt[Ii]):ai[Wi.value]);Di(Ti);return}}},Yn=function(){if(zr.length>1){var sn=zr.slice(0,-1);Di(sn)}else Li(!1)},Mt=function(){var sn,Sr=((sn=Br[br])===null||sn===void 0?void 0:sn[Wi.children])||[],Ii=Sr.find(function(ai){return!ai.disabled});if(Ii){var Ri=[].concat((0,ue.Z)(zr),[Ii[Wi.value]]);Di(Ri)}};et.useImperativeHandle(jn,function(){return{onKeyDown:function(sn){var Sr=sn.which;switch(Sr){case ht.Z.UP:case ht.Z.DOWN:{var Ii=0;Sr===ht.Z.UP?Ii=-1:Sr===ht.Z.DOWN&&(Ii=1),Ii!==0&&En(Ii);break}case ht.Z.LEFT:{if(zt)break;Oi?Mt():Yn();break}case ht.Z.RIGHT:{if(zt)break;Oi?Yn():Mt();break}case ht.Z.BACKSPACE:{zt||Yn();break}case ht.Z.ENTER:{if(zr.length){var Ri=Br[br],ai=(Ri==null?void 0:Ri[Ae])||[];ai.length?nr(ai.map(function(Ti){return Ti[Wi.value]}),ai[ai.length-1]):nr(zr,Br[br])}break}case ht.Z.ESC:Li(!1),yr&&sn.stopPropagation()}},onKeyUp:function(){}}})},Oe=et.forwardRef(function(jn,Vi){var Wi,pi,qn,nr,en=(0,Zt.lk)(),_t=en.prefixCls,zt=en.multiple,Li=en.searchValue,yr=en.toggleOpen,Oi=en.notFoundContent,Zn=en.direction,ki=en.open,zr=et.useRef(),br=Zn==="rtl",Br=et.useContext(de),Pt=Br.options,Di=Br.values,En=Br.halfValues,Yn=Br.fieldNames,Mt=Br.changeOnSelect,Ft=Br.onSelect,sn=Br.searchOptions,Sr=Br.dropdownPrefixCls,Ii=Br.loadData,Ri=Br.expandTrigger,ai=Sr||_t,Ti=et.useState([]),Jr=(0,Ct.Z)(Ti,2),Qr=Jr[0],Lo=Jr[1],Ln=function(fr){if(!(!Ii||Li)){var Bo=di(fr,Pt,Yn),Gr=Bo.map(function(ro){var Cn=ro.option;return Cn}),Ui=Gr[Gr.length-1];if(Ui&&!hn(Ui,Yn)){var xr=It(fr);Lo(function(ro){return[].concat((0,ue.Z)(ro),[xr])}),Ii(Gr)}}};et.useEffect(function(){Qr.length&&Qr.forEach(function(Tr){var fr=Tt(Tr),Bo=di(fr,Pt,Yn,!0).map(function(Ui){var xr=Ui.option;return xr}),Gr=Bo[Bo.length-1];(!Gr||Gr[Yn.children]||hn(Gr,Yn))&&Lo(function(Ui){return Ui.filter(function(xr){return xr!==Tr})})})},[Pt,Qr,Yn]);var ja=et.useMemo(function(){return new Set(Et(Di))},[Di]),co=et.useMemo(function(){return new Set(Et(En))},[En]),Kr=pt(),on=(0,Ct.Z)(Kr,2),Vt=on[0],cn=on[1],Jt=function(fr){cn(fr),Ln(fr)},zn=function(fr){var Bo=fr.disabled,Gr=hn(fr,Yn);return!Bo&&(Gr||Mt||zt)},er=function(fr,Bo){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ft(fr),!zt&&(Bo||Mt&&(Ri==="hover"||Gr))&&yr(!1)},sr=et.useMemo(function(){return Li?sn:Pt},[Li,sn,Pt]),li=et.useMemo(function(){for(var Tr=[{options:sr}],fr=sr,Bo=ui(fr,Yn),Gr=function(){var Cn=Vt[Ui],hi=fr.find(function(To,no){return(Bo[no]?It(Bo[no]):To[Yn.value])===Cn}),Ge=hi==null?void 0:hi[Yn.children];if(!(Ge!=null&&Ge.length))return"break";fr=Ge,Tr.push({options:Ge})},Ui=0;Ui<Vt.length;Ui+=1){var xr=Gr();if(xr==="break")break}return Tr},[sr,Vt,Yn]),Ci=function(fr,Bo){zn(Bo)&&er(fr,hn(Bo,Yn),!0)};dn(Vi,sr,Yn,Vt,Jt,Ci),et.useEffect(function(){for(var Tr=0;Tr<Vt.length;Tr+=1){var fr,Bo=Vt.slice(0,Tr+1),Gr=It(Bo),Ui=(fr=zr.current)===null||fr===void 0?void 0:fr.querySelector('li[data-path-key="'.concat(Gr.replace(/\\{0,2}"/g,'\\"'),'"]'));Ui&&vi(Ui)}},[Vt]);var Qn=!((Wi=li[0])!==null&&Wi!==void 0&&(pi=Wi.options)!==null&&pi!==void 0&&pi.length),an=[(qn={},(0,pe.Z)(qn,Yn.value,"__EMPTY__"),(0,pe.Z)(qn,Vn,Oi),(0,pe.Z)(qn,"disabled",!0),qn)],Vr=(0,Se.Z)((0,Se.Z)({},jn),{},{multiple:!Qn&&zt,onSelect:er,onActive:Jt,onToggleOpen:yr,checkedSet:ja,halfCheckedSet:co,loadingKeys:Qr,isSelectable:zn}),In=Qn?[{options:an}]:li,Or=In.map(function(Tr,fr){var Bo=Vt.slice(0,fr),Gr=Vt[fr];return et.createElement(Mi,(0,bt.Z)({key:fr},Vr,{searchValue:Li,prefixCls:ai,options:Tr.options,prevValuePath:Bo,activeValue:Gr}))});return et.createElement(An,{open:ki},et.createElement("div",{className:Ue()("".concat(ai,"-menus"),(nr={},(0,pe.Z)(nr,"".concat(ai,"-menu-empty"),Qn),(0,pe.Z)(nr,"".concat(ai,"-rtl"),br),nr)),ref:zr},Or))}),Ce=Oe;function Pe(jn){var Vi=jn.onPopupVisibleChange,Wi=jn.popupVisible,pi=jn.popupClassName,qn=jn.popupPlacement;warning(!Vi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Wi===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(pi===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(qn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ie(jn,Vi){if(jn){var Wi=function pi(qn){for(var nr=0;nr<qn.length;nr++){var en=qn[nr];if(en[Vi==null?void 0:Vi.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(en[Vi==null?void 0:Vi.children])&&pi(en[Vi==null?void 0:Vi.children]))return!0}};Wi(jn)}}var Ke=null,De=["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 tt(jn){return Array.isArray(jn)&&Array.isArray(jn[0])}function He(jn){return jn?tt(jn)?jn:(jn.length===0?[]:[jn]).map(function(Vi){return Array.isArray(Vi)?Vi:[Vi]}):[]}var mt=et.forwardRef(function(jn,Vi){var Wi=jn.id,pi=jn.prefixCls,qn=pi===void 0?"rc-cascader":pi,nr=jn.fieldNames,en=jn.defaultValue,_t=jn.value,zt=jn.changeOnSelect,Li=jn.onChange,yr=jn.displayRender,Oi=jn.checkable,Zn=jn.autoClearSearchValue,ki=Zn===void 0?!0:Zn,zr=jn.searchValue,br=jn.onSearch,Br=jn.showSearch,Pt=jn.expandTrigger,Di=jn.options,En=jn.dropdownPrefixCls,Yn=jn.loadData,Mt=jn.popupVisible,Ft=jn.open,sn=jn.popupClassName,Sr=jn.dropdownClassName,Ii=jn.dropdownMenuColumnStyle,Ri=jn.popupPlacement,ai=jn.placement,Ti=jn.onDropdownVisibleChange,Jr=jn.onPopupVisibleChange,Qr=jn.expandIcon,Lo=Qr===void 0?">":Qr,Ln=jn.loadingIcon,ja=jn.children,co=jn.dropdownMatchSelectWidth,Kr=co===void 0?!1:co,on=jn.showCheckedStrategy,Vt=on===void 0?xt:on,cn=(0,yt.Z)(jn,De),Jt=(0,Ot.ZP)(Wi),zn=!!Oi,er=(0,te.Z)(en,{value:_t,postState:He}),sr=(0,Ct.Z)(er,2),li=sr[0],Ci=sr[1],Qn=et.useMemo(function(){return Yt(nr)},[JSON.stringify(nr)]),an=et.useMemo(function(){return Di||[]},[Di]),Vr=gn(an,Qn),In=et.useCallback(function(Xa){var la=Vr();return Xa.map(function(Ta){var Ls=la[Ta].nodes;return Ls.map(function(ll){return ll[Qn.value]})})},[Vr,Qn]),Or=(0,te.Z)("",{value:zr,postState:function(la){return la||""}}),Tr=(0,Ct.Z)(Or,2),fr=Tr[0],Bo=Tr[1],Gr=function(la,Ta){Bo(la),Ta.source!=="blur"&&br&&br(la)},Ui=nn(Br),xr=(0,Ct.Z)(Ui,2),ro=xr[0],Cn=xr[1],hi=st(fr,an,Qn,En||qn,Cn,zt),Ge=Xn(an,Qn),To=et.useMemo(function(){var Xa=Ge(li),la=(0,Ct.Z)(Xa,2),Ta=la[0],Ls=la[1];if(!zn||!li.length)return[Ta,[],Ls];var ll=Et(Ta),rn=Vr(),Va=(0,Ut.S)(ll,!0,rn),tn=Va.checkedKeys,Ss=Va.halfCheckedKeys;return[In(tn),In(Ss),Ls]},[zn,li,Vr,In,Ge]),no=(0,Ct.Z)(To,3),rr=no[0],qi=no[1],Qi=no[2],oa=et.useMemo(function(){var Xa=Et(rr),la=Bn(Xa,Vr,Vt);return[].concat((0,ue.Z)(Qi),(0,ue.Z)(In(la)))},[rr,Vr,In,Qi,Vt]),ys=nt(oa,an,Qn,zn,yr),bs=(0,Te.Z)(function(Xa){if(Ci(Xa),Li){var la=He(Xa),Ta=la.map(function(rn){return di(rn,an,Qn).map(function(Va){return Va.option})}),Ls=zn?la:la[0],ll=zn?Ta:Ta[0];Li(Ls,ll)}}),_o=(0,Te.Z)(function(Xa){if((!zn||ki)&&Bo(""),!zn)bs(Xa);else{var la=It(Xa),Ta=Et(rr),Ls=Et(qi),ll=Ta.includes(la),rn=Qi.some(function(Nl){return It(Nl)===la}),Va=rr,tn=Qi;if(rn&&!ll)tn=Qi.filter(function(Nl){return It(Nl)!==la});else{var Ss=ll?Ta.filter(function(Nl){return Nl!==la}):[].concat((0,ue.Z)(Ta),[la]),yu=Vr(),fl;if(ll){var Vl=(0,Ut.S)(Ss,{checked:!1,halfCheckedKeys:Ls},yu);fl=Vl.checkedKeys}else{var is=(0,Ut.S)(Ss,!0,yu);fl=is.checkedKeys}var kl=Bn(fl,Vr,Vt);Va=In(kl)}bs([].concat((0,ue.Z)(tn),(0,ue.Z)(Va)))}}),Ea=function(la,Ta){if(Ta.type==="clear"){bs([]);return}var Ls=Ta.values[0],ll=Ls.valueCells;_o(ll)},za=Ft!==void 0?Ft:Mt,Mr=Sr||sn,Ir=ai||Ri,gi=function(la){Ti==null||Ti(la),Jr==null||Jr(la)},ho=et.useMemo(function(){return{options:an,fieldNames:Qn,values:rr,halfValues:qi,changeOnSelect:zt,onSelect:_o,checkable:Oi,searchOptions:hi,dropdownPrefixCls:En,loadData:Yn,expandTrigger:Pt,expandIcon:Lo,loadingIcon:Ln,dropdownMenuColumnStyle:Ii}},[an,Qn,rr,qi,zt,_o,Oi,hi,En,Yn,Pt,Lo,Ln,Ii]),Ba=!(fr?hi:an).length,Ws=fr&&Cn.matchInputWidth||Ba?{}:{minWidth:"auto"};return et.createElement(de.Provider,{value:ho},et.createElement(Zt.Ac,(0,bt.Z)({},cn,{ref:Vi,id:Jt,prefixCls:qn,autoClearSearchValue:ki,dropdownMatchSelectWidth:Kr,dropdownStyle:Ws,displayValues:ys,onDisplayValuesChange:Ea,mode:zn?"multiple":void 0,searchValue:fr,onSearch:Gr,showSearch:ro,OptionList:Ce,emptyOptions:Ba,open:za,dropdownClassName:Mr,placement:Ir,onDropdownVisibleChange:gi,getRawInputElement:function(){return ja}})))});mt.SHOW_PARENT=xt,mt.SHOW_CHILD=ut;var Wt=mt,kt=Wt,yn=Ee(2738),pn=Ee(62892),mn=Ee(53487),Gn=Ee(19080),Tn=Ee(36355),Xt=Ee(93891),fi=Ee(1684),Wn=Ee(19716),bn=Ee(32441),Dn=Ee(14154),Bi=Ee(58582),On=Ee(84443),Jn=Ee(66339),Ki=Ee(33234),Pi=Ee(98447),ur=Ee(17313),lo=Ee(74207),jo=Ee(83116);const Oo=jn=>{const{prefixCls:Vi,componentCls:Wi,antCls:pi}=jn,qn=`${Wi}-menu-item`,nr=`
|
|
&${qn}-expand ${qn}-expand-icon,
|
|
${qn}-loading-icon
|
|
`;return[{[Wi]:{width:jn.controlWidth}},{[`${Wi}-dropdown`]:[(0,Pi.C2)(`${Vi}-checkbox`,jn),{[`&${pi}-select-dropdown`]:{padding:0}},{[Wi]:{"&-checkbox":{top:0,marginInlineEnd:jn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Wi}-menu-empty`]:{[`${Wi}-menu`]:{width:"100%",height:"auto",[qn]:{color:jn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:jn.controlItemWidth,height:jn.dropdownHeight,margin:0,padding:jn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${jn.lineWidth}px ${jn.lineType} ${jn.colorSplit}`},"&-item":Object.assign(Object.assign({},ur.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:jn.optionPadding,lineHeight:jn.lineHeight,cursor:"pointer",transition:`all ${jn.motionDurationMid}`,borderRadius:jn.borderRadiusSM,"&:hover":{background:jn.controlItemBgHover},"&-disabled":{color:jn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[nr]:{color:jn.colorTextDisabled}},[`&-active:not(${qn}-disabled)`]:{"&, &:hover":{fontWeight:jn.optionSelectedFontWeight,backgroundColor:jn.optionSelectedBg}},"&-content":{flex:"auto"},[nr]:{marginInlineStart:jn.paddingXXS,color:jn.colorTextDescription,fontSize:jn.fontSizeIcon},"&-keyword":{color:jn.colorHighlight}})}}}]},{[`${Wi}-dropdown-rtl`]:{direction:"rtl"}},(0,lo.c)(jn)]};var Hr=(0,jo.Z)("Cascader",jn=>[Oo(jn)],jn=>{const Vi=Math.round((jn.controlHeight-jn.fontSize*jn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:jn.controlItemBgActive,optionSelectedFontWeight:jn.fontWeightStrong,optionPadding:`${Vi}px ${jn.paddingSM}px`,menuPadding:jn.paddingXXS}}),da=function(jn,Vi){var Wi={};for(var pi in jn)Object.prototype.hasOwnProperty.call(jn,pi)&&Vi.indexOf(pi)<0&&(Wi[pi]=jn[pi]);if(jn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,pi=Object.getOwnPropertySymbols(jn);qn<pi.length;qn++)Vi.indexOf(pi[qn])<0&&Object.prototype.propertyIsEnumerable.call(jn,pi[qn])&&(Wi[pi[qn]]=jn[pi[qn]]);return Wi};const{SHOW_CHILD:zo,SHOW_PARENT:Co}=kt;function xo(jn,Vi,Wi){const pi=jn.toLowerCase().split(Vi).reduce((en,_t,zt)=>zt===0?[_t]:[].concat((0,ue.Z)(en),[Vi,_t]),[]),qn=[];let nr=0;return pi.forEach((en,_t)=>{const zt=nr+en.length;let Li=jn.slice(nr,zt);nr=zt,_t%2===1&&(Li=et.createElement("span",{className:`${Wi}-menu-item-keyword`,key:`separator-${_t}`},Li)),qn.push(Li)}),qn}const Nr=(jn,Vi,Wi,pi)=>{const qn=[],nr=jn.toLowerCase();return Vi.forEach((en,_t)=>{_t!==0&&qn.push(" / ");let zt=en[pi.label];const Li=typeof zt;(Li==="string"||Li==="number")&&(zt=xo(String(zt),nr,Wi)),qn.push(zt)}),qn},Be=et.forwardRef((jn,Vi)=>{const{prefixCls:Wi,size:pi,disabled:qn,className:nr,rootClassName:en,multiple:_t,bordered:zt=!0,transitionName:Li,choiceTransitionName:yr="",popupClassName:Oi,dropdownClassName:Zn,expandIcon:ki,placement:zr,showSearch:br,allowClear:Br=!0,notFoundContent:Pt,direction:Di,getPopupContainer:En,status:Yn,showArrow:Mt,builtinPlacements:Ft,style:sn}=jn,Sr=da(jn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ii=(0,yn.Z)(Sr,["suffixIcon"]),{getPopupContainer:Ri,getPrefixCls:ai,renderEmpty:Ti,direction:Jr,popupOverflow:Qr,cascader:Lo}=et.useContext(Tn.E_),Ln=Di||Jr,ja=Ln==="rtl",{status:co,hasFeedback:Kr,isFormItemInput:on,feedbackIcon:Vt}=et.useContext(bn.aM),cn=(0,Gn.F)(co,Yn),Jt=Pt||(Ti==null?void 0:Ti("Cascader"))||et.createElement(Xt.Z,{componentName:"Cascader"}),zn=ai(),er=ai("select",Wi),sr=ai("cascader",Wi),[li,Ci]=(0,Dn.Z)(er),[Qn]=Hr(sr),{compactSize:an,compactItemClassnames:Vr}=(0,Ki.ri)(er,Di),In=Ue()(Oi||Zn,`${sr}-dropdown`,{[`${sr}-dropdown-rtl`]:Ln==="rtl"},en,Ci),Or=et.useMemo(()=>{if(!br)return br;let Qi={render:Nr};return typeof br=="object"&&(Qi=Object.assign(Object.assign({},Qi),br)),Qi},[br]),Tr=(0,Wn.Z)(Qi=>{var oa;return(oa=pi!=null?pi:an)!==null&&oa!==void 0?oa:Qi}),fr=et.useContext(fi.Z),Bo=qn!=null?qn:fr;let Gr=ki;ki||(Gr=ja?et.createElement(Lt.Z,null):et.createElement(Bt.Z,null));const Ui=et.createElement("span",{className:`${er}-menu-item-loading-icon`},et.createElement(Nt.Z,{spin:!0})),xr=et.useMemo(()=>_t?et.createElement("span",{className:`${sr}-checkbox-inner`}):!1,[_t]),ro=(0,On.Z)(jn.suffixIcon,Mt),{suffixIcon:Cn,removeIcon:hi,clearIcon:Ge}=(0,Jn.Z)(Object.assign(Object.assign({},jn),{hasFeedback:Kr,feedbackIcon:Vt,showSuffixIcon:ro,multiple:_t,prefixCls:er,componentName:"Cascader"})),To=et.useMemo(()=>zr!==void 0?zr:ja?"bottomRight":"bottomLeft",[zr,ja]),no=(0,Bi.Z)(Ft,Qr),rr=Br===!0?{clearIcon:Ge}:Br,qi=et.createElement(kt,Object.assign({prefixCls:er,className:Ue()(!Wi&&sr,{[`${er}-lg`]:Tr==="large",[`${er}-sm`]:Tr==="small",[`${er}-rtl`]:ja,[`${er}-borderless`]:!zt,[`${er}-in-form-item`]:on},(0,Gn.Z)(er,cn,Kr),Vr,Lo==null?void 0:Lo.className,nr,en,Ci),disabled:Bo,style:Object.assign(Object.assign({},Lo==null?void 0:Lo.style),sn)},Ii,{builtinPlacements:no,direction:Ln,placement:To,notFoundContent:Jt,allowClear:rr,showSearch:Or,expandIcon:Gr,suffixIcon:Cn,removeIcon:hi,loadingIcon:Ui,checkable:xr,dropdownClassName:In,dropdownPrefixCls:Wi||sr,choiceTransitionName:(0,pn.m)(zn,"",yr),transitionName:(0,pn.m)(zn,"slide-up",Li),getPopupContainer:En||Ri,ref:Vi}));return Qn(li(qi))}),ya=(0,mn.Z)(Be);Be.SHOW_PARENT=Co,Be.SHOW_CHILD=zo,Be._InternalPanelDoNotUseOrYouWillBeFired=ya;var to=Be},36381:function(qt,kn,Ee){"use strict";Ee.d(kn,{default:function(){return dn}});var ue=Ee(38819),et=Ee(92310),Lt=Ee.n(et),Nt=Ee(96663),Bt=Ee(19127),vt=Ee(72071),Ue=Ee(20135),bt=Ee(18929),Ct=Ee(48736),yt=Ee(59301),Zt=Ee(6620),Ot=Ee(11592),Ut=Ee(90493),Te=Ee(77900),te=Ee(10228),ne=yt.forwardRef(function(Oe,Ce){var Pe=Oe.prefixCls,Ie=Oe.forceRender,Ke=Oe.className,De=Oe.style,tt=Oe.children,He=Oe.isActive,mt=Oe.role,Wt=yt.useState(He||Ie),kt=(0,vt.Z)(Wt,2),yn=kt[0],pn=kt[1];return yt.useEffect(function(){(Ie||He)&&pn(!0)},[Ie,He]),yn?yt.createElement("div",{ref:Ce,className:Lt()("".concat(Pe,"-content"),(0,Ut.Z)((0,Ut.Z)({},"".concat(Pe,"-content-active"),He),"".concat(Pe,"-content-inactive"),!He),Ke),style:De,role:mt},yt.createElement("div",{className:"".concat(Pe,"-content-box")},tt)):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=yt.forwardRef(function(Oe,Ce){var Pe=Oe.showArrow,Ie=Pe===void 0?!0:Pe,Ke=Oe.headerClass,De=Oe.isActive,tt=Oe.onItemClick,He=Oe.forceRender,mt=Oe.className,Wt=Oe.prefixCls,kt=Oe.collapsible,yn=Oe.accordion,pn=Oe.panelKey,mn=Oe.extra,Gn=Oe.header,Tn=Oe.expandIcon,Xt=Oe.openMotion,fi=Oe.destroyInactivePanel,Wn=Oe.children,bn=(0,Zt.Z)(Oe,le),Dn=kt==="disabled",Bi=kt==="header",On=kt==="icon",Jn=mn!=null&&typeof mn!="boolean",Ki=function(){tt==null||tt(pn)},Pi=function(da){(da.key==="Enter"||da.keyCode===te.Z.ENTER||da.which===te.Z.ENTER)&&Ki()},ur=typeof Tn=="function"?Tn(Oe):yt.createElement("i",{className:"arrow"});ur&&(ur=yt.createElement("div",{className:"".concat(Wt,"-expand-icon"),onClick:["header","icon"].includes(kt)?Ki:void 0},ur));var lo=Lt()((0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},"".concat(Wt,"-item"),!0),"".concat(Wt,"-item-active"),De),"".concat(Wt,"-item-disabled"),Dn),mt),jo=Lt()(Ke,(0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},"".concat(Wt,"-header"),!0),"".concat(Wt,"-header-collapsible-only"),Bi),"".concat(Wt,"-icon-collapsible-only"),On)),Oo={className:jo,"aria-expanded":De,"aria-disabled":Dn,onKeyDown:Pi};return!Bi&&!On&&(Oo.onClick=Ki,Oo.role=yn?"tab":"button",Oo.tabIndex=Dn?-1:0),yt.createElement("div",(0,Nt.Z)({},bn,{ref:Ce,className:lo}),yt.createElement("div",Oo,Ie&&ur,yt.createElement("span",{className:"".concat(Wt,"-header-text"),onClick:kt==="header"?Ki:void 0},Gn),Jn&&yt.createElement("div",{className:"".concat(Wt,"-extra")},mn)),yt.createElement(Te.default,(0,Nt.Z)({visible:De,leavedClassName:"".concat(Wt,"-content-hidden")},Xt,{forceRender:He,removeOnLeave:fi}),function(Hr,da){var zo=Hr.className,Co=Hr.style;return yt.createElement(de,{ref:da,prefixCls:Wt,className:zo,style:Co,isActive:De,forceRender:He,role:yn?"tabpanel":void 0},Wn)}))}),Se=pe,Ae=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Me=function(Ce,Pe){var Ie=Pe.prefixCls,Ke=Pe.accordion,De=Pe.collapsible,tt=Pe.destroyInactivePanel,He=Pe.onItemClick,mt=Pe.activeKey,Wt=Pe.openMotion,kt=Pe.expandIcon;return Ce.map(function(yn,pn){var mn=yn.children,Gn=yn.label,Tn=yn.key,Xt=yn.collapsible,fi=yn.onItemClick,Wn=yn.destroyInactivePanel,bn=(0,Zt.Z)(yn,Ae),Dn=String(Tn!=null?Tn:pn),Bi=Xt!=null?Xt:De,On=Wn!=null?Wn:tt,Jn=function(ur){Bi!=="disabled"&&(He(ur),fi==null||fi(ur))},Ki=!1;return Ke?Ki=mt[0]===Dn:Ki=mt.indexOf(Dn)>-1,yt.createElement(Se,(0,Nt.Z)({},bn,{prefixCls:Ie,key:Dn,panelKey:Dn,isActive:Ki,accordion:Ke,openMotion:Wt,expandIcon:kt,header:Gn,collapsible:Bi,onItemClick:Jn,destroyInactivePanel:On}),mn)})},ke=function(Ce,Pe,Ie){if(!Ce)return null;var Ke=Ie.prefixCls,De=Ie.accordion,tt=Ie.collapsible,He=Ie.destroyInactivePanel,mt=Ie.onItemClick,Wt=Ie.activeKey,kt=Ie.openMotion,yn=Ie.expandIcon,pn=Ce.key||String(Pe),mn=Ce.props,Gn=mn.header,Tn=mn.headerClass,Xt=mn.destroyInactivePanel,fi=mn.collapsible,Wn=mn.onItemClick,bn=!1;De?bn=Wt[0]===pn:bn=Wt.indexOf(pn)>-1;var Dn=fi!=null?fi:tt,Bi=function(Ki){Dn!=="disabled"&&(mt(Ki),Wn==null||Wn(Ki))},On={key:pn,panelKey:pn,header:Gn,headerClass:Tn,isActive:bn,prefixCls:Ke,destroyInactivePanel:Xt!=null?Xt:He,openMotion:kt,accordion:De,children:Ce.props.children,onItemClick:Bi,expandIcon:yn,collapsible:Dn};return typeof Ce.type=="string"?Ce:(Object.keys(On).forEach(function(Jn){typeof On[Jn]=="undefined"&&delete On[Jn]}),yt.cloneElement(Ce,On))};function st(Oe,Ce,Pe){return Array.isArray(Oe)?Me(Oe,Pe):(0,Ot.Z)(Ce).map(function(Ie,Ke){return ke(Ie,Ke,Pe)})}var dt=st,xt=Ee(26112);function ut(Oe){var Ce=Oe;if(!Array.isArray(Ce)){var Pe=(0,Ue.Z)(Ce);Ce=Pe==="number"||Pe==="string"?[Ce]:[]}return Ce.map(function(Ie){return String(Ie)})}var It=yt.forwardRef(function(Oe,Ce){var Pe=Oe.prefixCls,Ie=Pe===void 0?"rc-collapse":Pe,Ke=Oe.destroyInactivePanel,De=Ke===void 0?!1:Ke,tt=Oe.style,He=Oe.accordion,mt=Oe.className,Wt=Oe.children,kt=Oe.collapsible,yn=Oe.openMotion,pn=Oe.expandIcon,mn=Oe.activeKey,Gn=Oe.defaultActiveKey,Tn=Oe.onChange,Xt=Oe.items,fi=Lt()(Ie,mt),Wn=(0,bt.Z)([],{value:mn,onChange:function(Pi){return Tn==null?void 0:Tn(Pi)},defaultValue:Gn,postState:ut}),bn=(0,vt.Z)(Wn,2),Dn=bn[0],Bi=bn[1],On=function(Pi){return Bi(function(){if(He)return Dn[0]===Pi?[]:[Pi];var ur=Dn.indexOf(Pi),lo=ur>-1;return lo?Dn.filter(function(jo){return jo!==Pi}):[].concat((0,Bt.Z)(Dn),[Pi])})};(0,Ct.ZP)(!Wt,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Jn=dt(Xt,Wt,{prefixCls:Ie,accordion:He,openMotion:yn,expandIcon:pn,collapsible:kt,destroyInactivePanel:De,onItemClick:On,activeKey:Dn});return yt.createElement("div",(0,Nt.Z)({ref:Ce,className:fi,style:tt,role:He?"tablist":void 0},(0,xt.Z)(Oe,{aria:!0,data:!0})),Jn)}),Et=Object.assign(It,{Panel:Se}),Tt=Et,Yt=Et.Panel,hn=Ee(2738),vi=Ee(62892),ui=Ee(92343),Bn=Ee(36355),di=Ee(19716),ze=yt.forwardRef((Oe,Ce)=>{const{getPrefixCls:Pe}=yt.useContext(Bn.E_),{prefixCls:Ie,className:Ke,showArrow:De=!0}=Oe,tt=Pe("collapse",Ie),He=Lt()({[`${tt}-no-arrow`]:!De},Ke);return yt.createElement(Tt.Panel,Object.assign({ref:Ce},Oe,{prefixCls:tt,className:He}))}),gn=Ee(17313),Xn=Ee(8378),ti=Ee(83116),nn=Ee(37613);const vn=Oe=>{const{componentCls:Ce,contentBg:Pe,padding:Ie,headerBg:Ke,headerPadding:De,collapseHeaderPaddingSM:tt,collapseHeaderPaddingLG:He,collapsePanelBorderRadius:mt,lineWidth:Wt,lineType:kt,colorBorder:yn,colorText:pn,colorTextHeading:mn,colorTextDisabled:Gn,fontSize:Tn,fontSizeLG:Xt,lineHeight:fi,marginSM:Wn,paddingSM:bn,paddingLG:Dn,paddingXS:Bi,motionDurationSlow:On,fontSizeIcon:Jn,contentPadding:Ki}=Oe,Pi=`${Wt}px ${kt} ${yn}`;return{[Ce]:Object.assign(Object.assign({},(0,gn.Wf)(Oe)),{backgroundColor:Ke,border:Pi,borderBottom:0,borderRadius:`${mt}px`,"&-rtl":{direction:"rtl"},[`& > ${Ce}-item`]:{borderBottom:Pi,"&:last-child":{[`
|
|
&,
|
|
& > ${Ce}-header`]:{borderRadius:`0 0 ${mt}px ${mt}px`}},[`> ${Ce}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:De,color:mn,lineHeight:fi,cursor:"pointer",transition:`all ${On}, visibility 0s`,[`> ${Ce}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Ce}-expand-icon`]:{height:Tn*fi,display:"flex",alignItems:"center",paddingInlineEnd:Wn},[`${Ce}-arrow`]:Object.assign(Object.assign({},(0,gn.Ro)()),{fontSize:Jn,svg:{transition:`transform ${On}`}}),[`${Ce}-header-text`]:{marginInlineEnd:"auto"}},[`${Ce}-header-collapsible-only`]:{cursor:"default",[`${Ce}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Ce}-icon-collapsible-only`]:{cursor:"default",[`${Ce}-expand-icon`]:{cursor:"pointer"}}},[`${Ce}-content`]:{color:pn,backgroundColor:Pe,borderTop:Pi,[`& > ${Ce}-content-box`]:{padding:Ki},"&-hidden":{display:"none"}},"&-small":{[`> ${Ce}-item`]:{[`> ${Ce}-header`]:{padding:tt,paddingInlineStart:Bi,[`> ${Ce}-expand-icon`]:{marginInlineStart:bn-Bi}},[`> ${Ce}-content > ${Ce}-content-box`]:{padding:bn}}},"&-large":{[`> ${Ce}-item`]:{fontSize:Xt,[`> ${Ce}-header`]:{padding:He,paddingInlineStart:Ie,[`> ${Ce}-expand-icon`]:{height:Xt*fi,marginInlineStart:Dn-Ie}},[`> ${Ce}-content > ${Ce}-content-box`]:{padding:Dn}}},[`${Ce}-item:last-child`]:{[`> ${Ce}-content`]:{borderRadius:`0 0 ${mt}px ${mt}px`}},[`& ${Ce}-item-disabled > ${Ce}-header`]:{"\n &,\n & > .arrow\n ":{color:Gn,cursor:"not-allowed"}},[`&${Ce}-icon-position-end`]:{[`& > ${Ce}-item`]:{[`> ${Ce}-header`]:{[`${Ce}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Wn}}}}})}},An=Oe=>{const{componentCls:Ce}=Oe,Pe=`> ${Ce}-item > ${Ce}-header ${Ce}-arrow svg`;return{[`${Ce}-rtl`]:{[Pe]:{transform:"rotate(180deg)"}}}},Si=Oe=>{const{componentCls:Ce,headerBg:Pe,paddingXXS:Ie,colorBorder:Ke}=Oe;return{[`${Ce}-borderless`]:{backgroundColor:Pe,border:0,[`> ${Ce}-item`]:{borderBottom:`1px solid ${Ke}`},[`
|
|
> ${Ce}-item:last-child,
|
|
> ${Ce}-item:last-child ${Ce}-header
|
|
`]:{borderRadius:0},[`> ${Ce}-item:last-child`]:{borderBottom:0},[`> ${Ce}-item > ${Ce}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Ce}-item > ${Ce}-content > ${Ce}-content-box`]:{paddingTop:Ie}}}},Vn=Oe=>{const{componentCls:Ce,paddingSM:Pe}=Oe;return{[`${Ce}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Ce}-item`]:{borderBottom:0,[`> ${Ce}-content`]:{backgroundColor:"transparent",border:0,[`> ${Ce}-content-box`]:{paddingBlock:Pe}}}}}};var Mi=(0,ti.Z)("Collapse",Oe=>{const Ce=(0,nn.TS)(Oe,{collapseHeaderPaddingSM:`${Oe.paddingXS}px ${Oe.paddingSM}px`,collapseHeaderPaddingLG:`${Oe.padding}px ${Oe.paddingLG}px`,collapsePanelBorderRadius:Oe.borderRadiusLG});return[vn(Ce),Si(Ce),Vn(Ce),An(Ce),(0,Xn.Z)(Ce)]},Oe=>({headerPadding:`${Oe.paddingSM}px ${Oe.padding}px`,headerBg:Oe.colorFillAlter,contentPadding:`${Oe.padding}px 16px`,contentBg:Oe.colorBgContainer})),ht=Object.assign(yt.forwardRef((Oe,Ce)=>{const{getPrefixCls:Pe,direction:Ie,collapse:Ke}=yt.useContext(Bn.E_),{prefixCls:De,className:tt,rootClassName:He,style:mt,bordered:Wt=!0,ghost:kt,size:yn,expandIconPosition:pn="start",children:mn,expandIcon:Gn}=Oe,Tn=(0,di.Z)(Pi=>{var ur;return(ur=yn!=null?yn:Pi)!==null&&ur!==void 0?ur:"middle"}),Xt=Pe("collapse",De),fi=Pe(),[Wn,bn]=Mi(Xt),Dn=yt.useMemo(()=>pn==="left"?"start":pn==="right"?"end":pn,[pn]),Bi=function(){let Pi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ur=Gn?Gn(Pi):yt.createElement(ue.Z,{rotate:Pi.isActive?90:void 0});return(0,ui.Tm)(ur,()=>({className:Lt()(ur.props.className,`${Xt}-arrow`)}))},On=Lt()(`${Xt}-icon-position-${Dn}`,{[`${Xt}-borderless`]:!Wt,[`${Xt}-rtl`]:Ie==="rtl",[`${Xt}-ghost`]:!!kt,[`${Xt}-${Tn}`]:Tn!=="middle"},Ke==null?void 0:Ke.className,tt,He,bn),Jn=Object.assign(Object.assign({},(0,vi.Z)(fi)),{motionAppear:!1,leavedClassName:`${Xt}-content-hidden`}),Ki=yt.useMemo(()=>mn?(0,Ot.Z)(mn).map((Pi,ur)=>{var lo,jo;if(!((lo=Pi.props)===null||lo===void 0)&&lo.disabled){const Oo=(jo=Pi.key)!==null&&jo!==void 0?jo:String(ur),{disabled:Hr,collapsible:da}=Pi.props,zo=Object.assign(Object.assign({},(0,hn.Z)(Pi.props,["disabled"])),{key:Oo,collapsible:da!=null?da:Hr?"disabled":void 0});return(0,ui.Tm)(Pi,zo)}return Pi}):null,[mn]);return Wn(yt.createElement(Tt,Object.assign({ref:Ce,openMotion:Jn},(0,hn.Z)(Oe,["rootClassName"]),{expandIcon:Bi,prefixCls:Xt,className:On,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),mt)}),Ki))}),{Panel:ze}),dn=ht},5083:function(qt,kn,Ee){"use strict";Ee.d(kn,{default:function(){return ml}});var ue=Ee(61186),et=Ee.n(ue),Lt=Ee(48736),Nt=Ee(90111),Bt=Ee.n(Nt),vt=Ee(58319),Ue=Ee.n(vt),bt=Ee(23250),Ct=Ee.n(bt),yt=Ee(74959),Zt=Ee.n(yt),Ot=Ee(10238),Ut=Ee.n(Ot),Te=Ee(33656),te=Ee.n(Te);et().extend(te()),et().extend(Ut()),et().extend(Bt()),et().extend(Ue()),et().extend(Ct()),et().extend(Zt()),et().extend(function(We,Ze){var $e=Ze.prototype,jt=$e.format;$e.format=function(Sn){var Pn=(Sn||"").replace("Wo","wo");return jt.bind(this)(Pn)}});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(Ze){var $e=ne[Ze];return $e||Ze.split("_")[0]},le=function(){(0,Lt.ET)(!1,"Not match any format. Please help to fire a issue about this.")},pe={getNow:function(){return et()()},getFixedDate:function(Ze){return et()(Ze,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ze){return Ze.endOf("month")},getWeekDay:function(Ze){var $e=Ze.locale("en");return $e.weekday()+$e.localeData().firstDayOfWeek()},getYear:function(Ze){return Ze.year()},getMonth:function(Ze){return Ze.month()},getDate:function(Ze){return Ze.date()},getHour:function(Ze){return Ze.hour()},getMinute:function(Ze){return Ze.minute()},getSecond:function(Ze){return Ze.second()},addYear:function(Ze,$e){return Ze.add($e,"year")},addMonth:function(Ze,$e){return Ze.add($e,"month")},addDate:function(Ze,$e){return Ze.add($e,"day")},setYear:function(Ze,$e){return Ze.year($e)},setMonth:function(Ze,$e){return Ze.month($e)},setDate:function(Ze,$e){return Ze.date($e)},setHour:function(Ze,$e){return Ze.hour($e)},setMinute:function(Ze,$e){return Ze.minute($e)},setSecond:function(Ze,$e){return Ze.second($e)},isAfter:function(Ze,$e){return Ze.isAfter($e)},isValidate:function(Ze){return Ze.isValid()},locale:{getWeekFirstDay:function(Ze){return et()().locale(de(Ze)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ze,$e){return $e.locale(de(Ze)).weekday(0)},getWeek:function(Ze,$e){return $e.locale(de(Ze)).week()},getShortWeekDays:function(Ze){return et()().locale(de(Ze)).localeData().weekdaysMin()},getShortMonths:function(Ze){return et()().locale(de(Ze)).localeData().monthsShort()},format:function(Ze,$e,jt){return $e.locale(de(Ze)).format(jt)},parse:function(Ze,$e,jt){for(var Gt=de(Ze),Sn=0;Sn<jt.length;Sn+=1){var Pn=jt[Sn],Hn=$e;if(Pn.includes("wo")||Pn.includes("Wo")){for(var ni=Hn.split("-")[0],yi=Hn.split("-")[1],$i=et()(ni,"YYYY").startOf("year").locale(Gt),mi=0;mi<=52;mi+=1){var Gi=$i.add(mi,"week");if(Gi.format("Wo")===yi)return Gi}return le(),null}var ci=et()(Hn,Pn,!0).locale(Gt);if(ci.isValid())return ci}return $e&&le(),null}}},Se=pe,Ae=Ee(53487),Me=Ee(96663),ke=Ee(59301),st={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=st,xt=Ee(7657),ut=function(Ze,$e){return ke.createElement(xt.Z,(0,Me.Z)({},Ze,{ref:$e,icon:dt}))},It=ke.forwardRef(ut),Et=It,Tt={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=Tt,hn=function(Ze,$e){return ke.createElement(xt.Z,(0,Me.Z)({},Ze,{ref:$e,icon:Yt}))},vi=ke.forwardRef(hn),ui=vi,Bn=Ee(19248),di={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"},nt=di,ze=function(Ze,$e){return ke.createElement(xt.Z,(0,Me.Z)({},Ze,{ref:$e,icon:nt}))},gn=ke.forwardRef(ze),Xn=gn,ti=Ee(92310),nn=Ee.n(ti),vn=Ee(52884),An=Ee(95727),Si=Ee(89866),Vn=Ee(65711),Mi=Ee(85745),pt=Ee(90493),ht=Ee(44127),dn=Ee(72071),Oe=Ee(18929),Ce=Ee(26112),Pe=Ee(80547),Ie=Ee(13697),Ke=10,De=Ke*10,tt=7;function He(We,Ze){if(!We&&!Ze)return!0;if(!We||!Ze)return!1}function mt(We,Ze,$e){var jt=He(Ze,$e);if(typeof jt=="boolean")return jt;var Gt=Math.floor(We.getYear(Ze)/10),Sn=Math.floor(We.getYear($e)/10);return Gt===Sn}function Wt(We,Ze,$e){var jt=He(Ze,$e);return typeof jt=="boolean"?jt:We.getYear(Ze)===We.getYear($e)}function kt(We,Ze){var $e=Math.floor(We.getMonth(Ze)/3);return $e+1}function yn(We,Ze,$e){var jt=He(Ze,$e);return typeof jt=="boolean"?jt:Wt(We,Ze,$e)&&kt(We,Ze)===kt(We,$e)}function pn(We,Ze,$e){var jt=He(Ze,$e);return typeof jt=="boolean"?jt:Wt(We,Ze,$e)&&We.getMonth(Ze)===We.getMonth($e)}function mn(We,Ze,$e){var jt=He(Ze,$e);return typeof jt=="boolean"?jt:We.getYear(Ze)===We.getYear($e)&&We.getMonth(Ze)===We.getMonth($e)&&We.getDate(Ze)===We.getDate($e)}function Gn(We,Ze,$e){var jt=He(Ze,$e);return typeof jt=="boolean"?jt:We.getHour(Ze)===We.getHour($e)&&We.getMinute(Ze)===We.getMinute($e)&&We.getSecond(Ze)===We.getSecond($e)}function Tn(We,Ze,$e,jt){var Gt=He($e,jt);return typeof Gt=="boolean"?Gt:Wt(We,$e,jt)&&We.locale.getWeek(Ze,$e)===We.locale.getWeek(Ze,jt)}function Xt(We,Ze,$e){return mn(We,Ze,$e)&&Gn(We,Ze,$e)}function fi(We,Ze,$e,jt){return!Ze||!$e||!jt?!1:!mn(We,Ze,jt)&&!mn(We,$e,jt)&&We.isAfter(jt,Ze)&&We.isAfter($e,jt)}function Wn(We,Ze,$e){var jt=Ze.locale.getWeekFirstDay(We),Gt=Ze.setDate($e,1),Sn=Ze.getWeekDay(Gt),Pn=Ze.addDate(Gt,jt-Sn);return Ze.getMonth(Pn)===Ze.getMonth($e)&&Ze.getDate(Pn)>1&&(Pn=Ze.addDate(Pn,-7)),Pn}function bn(We,Ze,$e){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ze){case"year":return $e.addYear(We,jt*10);case"quarter":case"month":return $e.addYear(We,jt);default:return $e.addMonth(We,jt)}}function Dn(We,Ze){var $e=Ze.generateConfig,jt=Ze.locale,Gt=Ze.format;return typeof Gt=="function"?Gt(We):$e.locale.format(jt.locale,We,Gt)}function Bi(We,Ze){var $e=Ze.generateConfig,jt=Ze.locale,Gt=Ze.formatList;return!We||typeof Gt[0]=="function"?null:$e.locale.parse(jt.locale,We,Gt)}function On(We){var Ze=We.cellDate,$e=We.mode,jt=We.disabledDate,Gt=We.generateConfig;if(!jt)return!1;var Sn=function(hr,Un,ji){for(var cr=Un;cr<=ji;){var so=void 0;switch(hr){case"date":{if(so=Gt.setDate(Ze,cr),!jt(so))return!1;break}case"month":{if(so=Gt.setMonth(Ze,cr),!On({cellDate:so,mode:"month",generateConfig:Gt,disabledDate:jt}))return!1;break}case"year":{if(so=Gt.setYear(Ze,cr),!On({cellDate:so,mode:"year",generateConfig:Gt,disabledDate:jt}))return!1;break}}cr+=1}return!0};switch($e){case"date":case"week":return jt(Ze);case"month":{var Pn=1,Hn=Gt.getDate(Gt.getEndDate(Ze));return Sn("date",Pn,Hn)}case"quarter":{var ni=Math.floor(Gt.getMonth(Ze)/3)*3,yi=ni+2;return Sn("month",ni,yi)}case"year":return Sn("month",0,11);case"decade":{var $i=Gt.getYear(Ze),mi=Math.floor($i/Ke)*Ke,Gi=mi+Ke-1;return Sn("year",mi,Gi)}}}function Jn(We,Ze){var $e=Ze.formatList,jt=Ze.generateConfig,Gt=Ze.locale;return(0,Pe.Z)(function(){if(!We)return[[""],""];for(var Sn="",Pn=[],Hn=0;Hn<$e.length;Hn+=1){var ni=$e[Hn],yi=Dn(We,{generateConfig:jt,locale:Gt,format:ni});Pn.push(yi),Hn===0&&(Sn=yi)}return[Pn,Sn]},[We,$e,Gt],function(Sn,Pn){return!Xt(jt,Sn[0],Pn[0])||!(0,Ie.Z)(Sn[1],Pn[1],!0)||!(0,Ie.Z)(Sn[2],Pn[2],!0)})}function Ki(We,Ze){var $e=Ze.formatList,jt=Ze.generateConfig,Gt=Ze.locale,Sn=(0,ke.useState)(null),Pn=(0,dn.Z)(Sn,2),Hn=Pn[0],ni=Pn[1],yi=(0,ke.useRef)(null);function $i(ji){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(yi.current),cr){ni(ji);return}yi.current=requestAnimationFrame(function(){ni(ji)})}var mi=Jn(Hn,{formatList:$e,generateConfig:jt,locale:Gt}),Gi=(0,dn.Z)(mi,2),ci=Gi[1];function hr(ji){$i(ji)}function Un(){var ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;$i(null,ji)}return(0,ke.useEffect)(function(){Un(!0)},[We]),(0,ke.useEffect)(function(){return function(){return cancelAnimationFrame(yi.current)}},[]),[ci,hr,Un]}var Pi=Ee(10228),ur=Ee(16089),lo=Ee(19127),jo=Ee(29194),Oo=new Map;function Hr(We,Ze){var $e;function jt(){(0,jo.Z)(We)?Ze():$e=(0,ur.Z)(function(){jt()})}return jt(),function(){ur.Z.cancel($e)}}function da(We,Ze,$e){if(Oo.get(We)&&cancelAnimationFrame(Oo.get(We)),$e<=0){Oo.set(We,requestAnimationFrame(function(){We.scrollTop=Ze}));return}var jt=Ze-We.scrollTop,Gt=jt/$e*10;Oo.set(We,requestAnimationFrame(function(){We.scrollTop+=Gt,We.scrollTop!==Ze&&da(We,Ze,$e-10)}))}function zo(We,Ze){var $e=Ze.onLeftRight,jt=Ze.onCtrlLeftRight,Gt=Ze.onUpDown,Sn=Ze.onPageUpDown,Pn=Ze.onEnter,Hn=We.which,ni=We.ctrlKey,yi=We.metaKey;switch(Hn){case Pi.Z.LEFT:if(ni||yi){if(jt)return jt(-1),!0}else if($e)return $e(-1),!0;break;case Pi.Z.RIGHT:if(ni||yi){if(jt)return jt(1),!0}else if($e)return $e(1),!0;break;case Pi.Z.UP:if(Gt)return Gt(-1),!0;break;case Pi.Z.DOWN:if(Gt)return Gt(1),!0;break;case Pi.Z.PAGE_UP:if(Sn)return Sn(-1),!0;break;case Pi.Z.PAGE_DOWN:if(Sn)return Sn(1),!0;break;case Pi.Z.ENTER:if(Pn)return Pn(),!0;break}return!1}function Co(We,Ze,$e,jt){var Gt=We;if(!Gt)switch(Ze){case"time":Gt=jt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Gt="gggg-wo";break;case"month":Gt="YYYY-MM";break;case"quarter":Gt="YYYY-[Q]Q";break;case"year":Gt="YYYY";break;default:Gt=$e?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Gt}function xo(We,Ze,$e){var jt=We==="time"?8:10,Gt=typeof Ze=="function"?Ze($e.getNow()).length:Ze.length;return Math.max(jt,Gt)+2}var Nr=null,Be=new Set;function ya(We){return!Nr&&typeof window!="undefined"&&window.addEventListener&&(Nr=function($e){(0,lo.Z)(Be).forEach(function(jt){jt($e)})},window.addEventListener("mousedown",Nr)),Be.add(We),function(){Be.delete(We),Be.size===0&&(window.removeEventListener("mousedown",Nr),Nr=null)}}function to(We){var Ze=We.target;if(We.composed&&Ze.shadowRoot){var $e;return(($e=We.composedPath)===null||$e===void 0?void 0:$e.call(We)[0])||Ze}return Ze}var jn=function(Ze){return Ze==="month"||Ze==="date"?"year":Ze},Vi=function(Ze){return Ze==="date"?"month":Ze},Wi=function(Ze){return Ze==="month"||Ze==="date"?"quarter":Ze},pi=function(Ze){return Ze==="date"?"week":Ze},qn={year:jn,month:Vi,quarter:Wi,week:pi,time:null,date:null};function nr(We,Ze){return We.some(function($e){return $e&&$e.contains(Ze)})}function en(We){var Ze=We.open,$e=We.value,jt=We.isClickOutside,Gt=We.triggerOpen,Sn=We.forwardKeyDown,Pn=We.onKeyDown,Hn=We.blurToCancel,ni=We.onSubmit,yi=We.onCancel,$i=We.onFocus,mi=We.onBlur,Gi=We.changeOnBlur,ci=(0,ke.useState)(!1),hr=(0,dn.Z)(ci,2),Un=hr[0],ji=hr[1],cr=(0,ke.useState)(!1),so=(0,dn.Z)(cr,2),Zr=so[0],fo=so[1],vo=(0,ke.useRef)(!1),uo=(0,ke.useRef)(!1),tr=(0,ke.useRef)(!1),Ca={onMouseDown:function(){ji(!0),Gt(!0)},onKeyDown:function(Io){var cs=function(){tr.current=!0};if(Pn(Io,cs),!tr.current){switch(Io.which){case Pi.Z.ENTER:{Ze?ni()!==!1&&ji(!0):Gt(!0),Io.preventDefault();return}case Pi.Z.TAB:{Un&&Ze&&!Io.shiftKey?(ji(!1),Io.preventDefault()):!Un&&Ze&&!Sn(Io)&&Io.shiftKey&&(ji(!0),Io.preventDefault());return}case Pi.Z.ESC:{ji(!0),yi();return}}!Ze&&![Pi.Z.SHIFT].includes(Io.which)?Gt(!0):Un||Sn(Io)}},onFocus:function(Io){ji(!0),fo(!0),$i&&$i(Io)},onBlur:function(Io){if(vo.current||!jt(document.activeElement)){vo.current=!1;return}Hn?setTimeout(function(){for(var cs=document,$a=cs.activeElement;$a&&$a.shadowRoot;)$a=$a.shadowRoot.activeElement;jt($a)&&yi()},0):Ze&&(Gt(!1),uo.current&&ni()),fo(!1),mi==null||mi(Io)}};return(0,ke.useEffect)(function(){uo.current=!1},[Ze]),(0,ke.useEffect)(function(){uo.current=!0},[$e]),(0,ke.useEffect)(function(){return ya(function(ia){var Io=to(ia),cs=jt(Io);Ze&&(cs?!Gi&&(!Zr||cs)&&Gt(!1):(vo.current=!0,(0,ur.Z)(function(){vo.current=!1})))})}),[Ca,{focused:Zr,typing:Un}]}function _t(We,Ze){return ke.useMemo(function(){return We||(Ze?((0,Lt.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ze).map(function($e){var jt=(0,dn.Z)($e,2),Gt=jt[0],Sn=jt[1];return{label:Gt,value:Sn}})):[])},[We,Ze])}var zt=Ee(34280);function Li(We){var Ze=We.valueTexts,$e=We.onTextChange,jt=ke.useState(""),Gt=(0,dn.Z)(jt,2),Sn=Gt[0],Pn=Gt[1],Hn=ke.useRef([]);Hn.current=Ze;function ni($i){Pn($i),$e($i)}function yi(){Pn(Hn.current[0])}return(0,zt.Z)(function(){Ze.every(function($i){return $i!==Sn})&&yi()},[Ze.join("||")]),[Sn,ni,yi]}var yr=ke.createContext({}),Oi=yr,Zn=Ee(20135);function ki(We){var Ze=We.cellRender,$e=We.monthCellRender,jt=We.dateRender,Gt=ke.useMemo(function(){if(Ze)return Ze;if(!(!$e&&!jt))return function(Sn,Pn){var Hn=Sn;return jt&&Pn.type==="date"?jt(Hn,Pn.today):$e&&Pn.type==="month"?$e(Hn,Pn.locale):Pn.originNode}},[Ze,$e,jt]);return Gt}function zr(We,Ze){for(var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",jt=String(We);jt.length<Ze;)jt="".concat($e).concat(We);return jt}var br=function(){for(var Ze=arguments.length,$e=new Array(Ze),jt=0;jt<Ze;jt++)$e[jt]=arguments[jt];return $e};function Br(We){return We==null?[]:Array.isArray(We)?We:[We]}function Pt(We,Ze){return We?We[Ze]:null}function Di(We,Ze,$e){var jt=[Pt(We,0),Pt(We,1)];return jt[$e]=typeof Ze=="function"?Ze(jt[$e]):Ze,!jt[0]&&!jt[1]?null:jt}function En(We){return typeof We=="function"?We():We}function Yn(We){var Ze=We.cellPrefixCls,$e=We.generateConfig,jt=We.rangedValue,Gt=We.hoverRangedValue,Sn=We.isInView,Pn=We.isSameCell,Hn=We.offsetCell,ni=We.today,yi=We.value;function $i(mi){var Gi,ci=Hn(mi,-1),hr=Hn(mi,1),Un=Pt(jt,0),ji=Pt(jt,1),cr=Pt(Gt,0),so=Pt(Gt,1),Zr=fi($e,cr,so,mi);function fo(Io){return Pn(Un,Io)}function vo(Io){return Pn(ji,Io)}var uo=Pn(cr,mi),tr=Pn(so,mi),Ca=(Zr||tr)&&(!Sn(ci)||vo(ci)),ia=(Zr||uo)&&(!Sn(hr)||fo(hr));return Gi={},(0,pt.Z)(Gi,"".concat(Ze,"-in-view"),Sn(mi)),(0,pt.Z)(Gi,"".concat(Ze,"-in-range"),fi($e,Un,ji,mi)),(0,pt.Z)(Gi,"".concat(Ze,"-range-start"),fo(mi)),(0,pt.Z)(Gi,"".concat(Ze,"-range-end"),vo(mi)),(0,pt.Z)(Gi,"".concat(Ze,"-range-start-single"),fo(mi)&&!ji),(0,pt.Z)(Gi,"".concat(Ze,"-range-end-single"),vo(mi)&&!Un),(0,pt.Z)(Gi,"".concat(Ze,"-range-start-near-hover"),fo(mi)&&(Pn(ci,cr)||fi($e,cr,so,ci))),(0,pt.Z)(Gi,"".concat(Ze,"-range-end-near-hover"),vo(mi)&&(Pn(hr,so)||fi($e,cr,so,hr))),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover"),Zr),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover-start"),uo),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover-end"),tr),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover-edge-start"),Ca),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover-edge-end"),ia),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover-edge-start-near-range"),Ca&&Pn(ci,ji)),(0,pt.Z)(Gi,"".concat(Ze,"-range-hover-edge-end-near-range"),ia&&Pn(hr,Un)),(0,pt.Z)(Gi,"".concat(Ze,"-today"),Pn(ni,mi)),(0,pt.Z)(Gi,"".concat(Ze,"-selected"),Pn(yi,mi)),Gi}return $i}var Mt=ke.createContext({}),Ft=Mt;function sn(We,Ze,$e,jt,Gt){var Sn=We.setHour(Ze,$e);return Sn=We.setMinute(Sn,jt),Sn=We.setSecond(Sn,Gt),Sn}function Sr(We,Ze,$e){if(!$e)return Ze;var jt=Ze;return jt=We.setHour(jt,We.getHour($e)),jt=We.setMinute(jt,We.getMinute($e)),jt=We.setSecond(jt,We.getSecond($e)),jt}function Ii(We,Ze,$e,jt,Gt,Sn){var Pn=Math.floor(We/jt)*jt;if(Pn<We)return[Pn,60-Gt,60-Sn];var Hn=Math.floor(Ze/Gt)*Gt;if(Hn<Ze)return[Pn,Hn,60-Sn];var ni=Math.floor($e/Sn)*Sn;return[Pn,Hn,ni]}function Ri(We,Ze){var $e=We.getYear(Ze),jt=We.getMonth(Ze)+1,Gt=We.getEndDate(We.getFixedDate("".concat($e,"-").concat(jt,"-01"))),Sn=We.getDate(Gt),Pn=jt<10?"0".concat(jt):"".concat(jt);return"".concat($e,"-").concat(Pn,"-").concat(Sn)}function ai(We){for(var Ze=We.prefixCls,$e=We.disabledDate,jt=We.onSelect,Gt=We.picker,Sn=We.rowNum,Pn=We.colNum,Hn=We.prefixColumn,ni=We.rowClassName,yi=We.baseDate,$i=We.getCellClassName,mi=We.getCellText,Gi=We.getCellNode,ci=We.getCellDate,hr=We.generateConfig,Un=We.titleCell,ji=We.headerCells,cr=ke.useContext(Oi),so=cr.onDateMouseEnter,Zr=cr.onDateMouseLeave,fo=cr.mode,vo="".concat(Ze,"-cell"),uo=[],tr=0;tr<Sn;tr+=1){for(var Ca=[],ia=void 0,Io=function(){var Ja,js=tr*Pn+cs,es=ci(yi,js),Ga=On({cellDate:es,mode:fo,disabledDate:$e,generateConfig:hr});cs===0&&(ia=es,Hn&&Ca.push(Hn(ia)));var ss=Un&&Un(es),ks=ke.createElement("div",{className:"".concat(vo,"-inner")},mi(es));Ca.push(ke.createElement("td",{key:cs,title:ss,className:nn()(vo,(0,ht.Z)((Ja={},(0,pt.Z)(Ja,"".concat(vo,"-disabled"),Ga),(0,pt.Z)(Ja,"".concat(vo,"-start"),mi(es)===1||Gt==="year"&&Number(ss)%10===0),(0,pt.Z)(Ja,"".concat(vo,"-end"),ss===Ri(hr,es)||Gt==="year"&&Number(ss)%10===9),Ja),$i(es))),onClick:function(){Ga||jt(es)},onMouseEnter:function(){!Ga&&so&&so(es)},onMouseLeave:function(){!Ga&&Zr&&Zr(es)}},Gi?Gi(es,ks):ks))},cs=0;cs<Pn;cs+=1)Io();uo.push(ke.createElement("tr",{key:tr,className:ni&&ni(ia)},Ca))}return ke.createElement("div",{className:"".concat(Ze,"-body")},ke.createElement("table",{className:"".concat(Ze,"-content")},ji&&ke.createElement("thead",null,ke.createElement("tr",null,ji)),ke.createElement("tbody",null,uo)))}function Ti(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.prefixColumn,Gt=We.locale,Sn=We.rowCount,Pn=We.viewDate,Hn=We.value,ni=We.cellRender,yi=We.isSameCell,$i=ke.useContext(Ft),mi=$i.rangedValue,Gi=$i.hoverRangedValue,ci=Wn(Gt.locale,$e,Pn),hr="".concat(Ze,"-cell"),Un=$e.locale.getWeekFirstDay(Gt.locale),ji=$e.getNow(),cr=[],so=Gt.shortWeekDays||($e.locale.getShortWeekDays?$e.locale.getShortWeekDays(Gt.locale):[]);jt&&cr.push(ke.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Zr=0;Zr<tt;Zr+=1)cr.push(ke.createElement("th",{key:Zr},so[(Zr+Un)%tt]));var fo=Yn({cellPrefixCls:hr,today:ji,value:Hn,generateConfig:$e,rangedValue:jt?null:mi,hoverRangedValue:jt?null:Gi,isSameCell:yi||function(uo,tr){return mn($e,uo,tr)},isInView:function(tr){return pn($e,tr,Pn)},offsetCell:function(tr,Ca){return $e.addDate(tr,Ca)}}),vo=ni?function(uo,tr){return ni(uo,{originNode:tr,today:ji,type:"date",locale:Gt})}:void 0;return ke.createElement(ai,(0,Me.Z)({},We,{rowNum:Sn,colNum:tt,baseDate:ci,getCellNode:vo,getCellText:$e.getDate,getCellClassName:fo,getCellDate:$e.addDate,titleCell:function(tr){return Dn(tr,{locale:Gt,format:"YYYY-MM-DD",generateConfig:$e})},headerCells:cr}))}var Jr=Ti,Qr={visibility:"hidden"};function Lo(We){var Ze=We.prefixCls,$e=We.prevIcon,jt=$e===void 0?"\u2039":$e,Gt=We.nextIcon,Sn=Gt===void 0?"\u203A":Gt,Pn=We.superPrevIcon,Hn=Pn===void 0?"\xAB":Pn,ni=We.superNextIcon,yi=ni===void 0?"\xBB":ni,$i=We.onSuperPrev,mi=We.onSuperNext,Gi=We.onPrev,ci=We.onNext,hr=We.children,Un=ke.useContext(Oi),ji=Un.hideNextBtn,cr=Un.hidePrevBtn;return ke.createElement("div",{className:Ze},$i&&ke.createElement("button",{type:"button",onClick:$i,tabIndex:-1,className:"".concat(Ze,"-super-prev-btn"),style:cr?Qr:{}},Hn),Gi&&ke.createElement("button",{type:"button",onClick:Gi,tabIndex:-1,className:"".concat(Ze,"-prev-btn"),style:cr?Qr:{}},jt),ke.createElement("div",{className:"".concat(Ze,"-view")},hr),ci&&ke.createElement("button",{type:"button",onClick:ci,tabIndex:-1,className:"".concat(Ze,"-next-btn"),style:ji?Qr:{}},Sn),mi&&ke.createElement("button",{type:"button",onClick:mi,tabIndex:-1,className:"".concat(Ze,"-super-next-btn"),style:ji?Qr:{}},yi))}var Ln=Lo;function ja(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.locale,Gt=We.viewDate,Sn=We.onNextMonth,Pn=We.onPrevMonth,Hn=We.onNextYear,ni=We.onPrevYear,yi=We.onYearClick,$i=We.onMonthClick,mi=ke.useContext(Oi),Gi=mi.hideHeader;if(Gi)return null;var ci="".concat(Ze,"-header"),hr=jt.shortMonths||($e.locale.getShortMonths?$e.locale.getShortMonths(jt.locale):[]),Un=$e.getMonth(Gt),ji=ke.createElement("button",{type:"button",key:"year",onClick:yi,tabIndex:-1,className:"".concat(Ze,"-year-btn")},Dn(Gt,{locale:jt,format:jt.yearFormat,generateConfig:$e})),cr=ke.createElement("button",{type:"button",key:"month",onClick:$i,tabIndex:-1,className:"".concat(Ze,"-month-btn")},jt.monthFormat?Dn(Gt,{locale:jt,format:jt.monthFormat,generateConfig:$e}):hr[Un]),so=jt.monthBeforeYear?[cr,ji]:[ji,cr];return ke.createElement(Ln,(0,Me.Z)({},We,{prefixCls:ci,onSuperPrev:ni,onPrev:Pn,onNext:Sn,onSuperNext:Hn}),so)}var co=ja,Kr=6;function on(We){var Ze=We.prefixCls,$e=We.panelName,jt=$e===void 0?"date":$e,Gt=We.keyboardConfig,Sn=We.active,Pn=We.operationRef,Hn=We.generateConfig,ni=We.value,yi=We.viewDate,$i=We.onViewDateChange,mi=We.onPanelChange,Gi=We.onSelect,ci="".concat(Ze,"-").concat(jt,"-panel");Pn.current={onKeyDown:function(cr){return zo(cr,(0,ht.Z)({onLeftRight:function(Zr){Gi(Hn.addDate(ni||yi,Zr),"key")},onCtrlLeftRight:function(Zr){Gi(Hn.addYear(ni||yi,Zr),"key")},onUpDown:function(Zr){Gi(Hn.addDate(ni||yi,Zr*tt),"key")},onPageUpDown:function(Zr){Gi(Hn.addMonth(ni||yi,Zr),"key")}},Gt))}};var hr=function(cr){var so=Hn.addYear(yi,cr);$i(so),mi(null,so)},Un=function(cr){var so=Hn.addMonth(yi,cr);$i(so),mi(null,so)};return ke.createElement("div",{className:nn()(ci,(0,pt.Z)({},"".concat(ci,"-active"),Sn))},ke.createElement(co,(0,Me.Z)({},We,{prefixCls:Ze,value:ni,viewDate:yi,onPrevYear:function(){hr(-1)},onNextYear:function(){hr(1)},onPrevMonth:function(){Un(-1)},onNextMonth:function(){Un(1)},onMonthClick:function(){mi("month",yi)},onYearClick:function(){mi("year",yi)}})),ke.createElement(Jr,(0,Me.Z)({},We,{onSelect:function(cr){return Gi(cr,"mouse")},prefixCls:Ze,value:ni,viewDate:yi,rowCount:Kr})))}var Vt=on;function cn(We){var Ze=ke.useContext(Oi),$e=Ze.hideHeader;if($e)return null;var jt=We.prefixCls,Gt=We.generateConfig,Sn=We.locale,Pn=We.value,Hn=We.format,ni="".concat(jt,"-header");return ke.createElement(Ln,{prefixCls:ni},Pn?Dn(Pn,{locale:Sn,format:Hn,generateConfig:Gt}):"\xA0")}var Jt=cn;function zn(We){var Ze=We.value,$e=We.generateConfig,jt=We.disabledMinutes,Gt=We.disabledSeconds,Sn=We.minutes,Pn=We.seconds,Hn=We.use12Hours,ni=function($i,mi,Gi,ci){var hr=$e.getNow(),Un=Ze||hr,ji=mi<0?$e.getHour(hr):mi,cr=Gi<0?$e.getMinute(hr):Gi,so=ci<0?$e.getSecond(hr):ci,Zr=jt&&jt(ji);if(Zr!=null&&Zr.includes(cr)){var fo=Sn.find(function(tr){return!Zr.includes(tr.value)});if(fo)cr=fo.value;else return null}var vo=Gt&&Gt(ji,cr);if(vo!=null&&vo.includes(so)){var uo=Pn.find(function(tr){return!vo.includes(tr.value)});if(uo)so=uo.value;else return null}return Un=sn($e,Un,!Hn||!$i?ji:ji+12,cr,so),Un};return ni}function er(We){var Ze=We.prefixCls,$e=We.units,jt=We.onSelect,Gt=We.value,Sn=We.active,Pn=We.hideDisabledOptions,Hn=We.info,ni=We.type,yi="".concat(Ze,"-cell"),$i=ke.useContext(Oi),mi=$i.open,Gi=(0,ke.useRef)(null),ci=(0,ke.useRef)(new Map),hr=(0,ke.useRef)();return(0,ke.useLayoutEffect)(function(){var Un=ci.current.get(Gt);Un&&mi!==!1&&da(Gi.current,Un.offsetTop,120)},[Gt]),(0,ke.useLayoutEffect)(function(){if(mi){var Un=ci.current.get(Gt);Un&&(hr.current=Hr(Un,function(){da(Gi.current,Un.offsetTop,0)}))}return function(){var ji;(ji=hr.current)===null||ji===void 0||ji.call(hr)}},[mi]),ke.createElement("ul",{className:nn()("".concat(Ze,"-column"),(0,pt.Z)({},"".concat(Ze,"-column-active"),Sn)),ref:Gi,style:{position:"relative"}},$e.map(function(Un){var ji;return Pn&&Un.disabled?null:ke.createElement("li",{key:Un.value,ref:function(so){ci.current.set(Un.value,so)},className:nn()(yi,(ji={},(0,pt.Z)(ji,"".concat(yi,"-disabled"),Un.disabled),(0,pt.Z)(ji,"".concat(yi,"-selected"),Gt===Un.value),ji)),onClick:function(){Un.disabled||jt(Un.value)}},Hn.cellRender?Hn.cellRender(Un.value,{today:Hn.today,locale:Hn.locale,originNode:ke.createElement("div",{className:"".concat(yi,"-inner")},Un.label),type:"time",subType:ni}):ke.createElement("div",{className:"".concat(yi,"-inner")},Un.label))}))}var sr=er;function li(We,Ze){if(We.length!==Ze.length)return!0;for(var $e=0;$e<We.length;$e+=1)if(We[$e].disabled!==Ze[$e].disabled)return!0;return!1}function Ci(We,Ze,$e,jt){for(var Gt=[],Sn=$e>=1?$e|0:1,Pn=We;Pn<=Ze;Pn+=Sn)Gt.push({label:zr(Pn,2),value:Pn,disabled:(jt||[]).includes(Pn)});return Gt}function Qn(We){var Ze=We.generateConfig,$e=We.prefixCls,jt=We.operationRef,Gt=We.activeColumnIndex,Sn=We.value,Pn=We.showHour,Hn=We.showMinute,ni=We.showSecond,yi=We.use12Hours,$i=We.hourStep,mi=$i===void 0?1:$i,Gi=We.minuteStep,ci=Gi===void 0?1:Gi,hr=We.secondStep,Un=hr===void 0?1:hr,ji=We.disabledHours,cr=We.disabledMinutes,so=We.disabledSeconds,Zr=We.disabledTime,fo=We.hideDisabledOptions,vo=We.onSelect,uo=We.cellRender,tr=We.locale,Ca=[],ia="".concat($e,"-content"),Io="".concat($e,"-time-panel"),cs,$a=Sn?Ze.getHour(Sn):-1,Ja=$a,js=Sn?Ze.getMinute(Sn):-1,es=Sn?Ze.getSecond(Sn):-1,Ga=Ze.getNow(),ss=ke.useMemo(function(){if(Zr){var aa=Zr(Ga);return[aa.disabledHours,aa.disabledMinutes,aa.disabledSeconds]}return[ji,cr,so]},[ji,cr,so,Zr,Ga]),ks=(0,dn.Z)(ss,3),_s=ks[0],ds=ks[1],zs=ks[2],vl=Ci(0,23,mi,_s&&_s()),yl=(0,Pe.Z)(function(){return vl},vl,li);yi&&(cs=Ja>=12,Ja%=12);var Nu=ke.useMemo(function(){if(!yi)return[!1,!1];var aa=[!0,!0];return yl.forEach(function(Ys){var Dl=Ys.disabled,su=Ys.value;Dl||(su>=12?aa[1]=!1:aa[0]=!1)}),aa},[yi,yl]),Rl=(0,dn.Z)(Nu,2),Eu=Rl[0],Ma=Rl[1],Vs=ke.useMemo(function(){return yi?yl.filter(cs?function(aa){return aa.value>=12}:function(aa){return aa.value<12}).map(function(aa){var Ys=aa.value%12,Dl=Ys===0?"12":zr(Ys,2);return(0,ht.Z)((0,ht.Z)({},aa),{},{label:Dl,value:Ys})}):yl},[yi,cs,yl]),Pa=Ci(0,59,ci,ds&&ds($a)),Bs=Ci(0,59,Un,zs&&zs($a,js)),As=zn({value:Sn,generateConfig:Ze,disabledMinutes:ds,disabledSeconds:zs,minutes:Pa,seconds:Bs,use12Hours:yi});jt.current={onUpDown:function(Ys){var Dl=Ca[Gt];if(Dl)for(var su=Dl.units.findIndex(function(Gu){return Gu.value===Dl.value}),pa=Dl.units.length,Sl=1;Sl<pa;Sl+=1){var Da=Dl.units[(su+Ys*Sl+pa)%pa];if(Da.disabled!==!0){Dl.onSelect(Da.value);break}}}};function Gs(aa,Ys,Dl,su,pa){aa!==!1&&Ca.push({node:ke.cloneElement(Ys,{prefixCls:Io,value:Dl,active:Gt===Ca.length,onSelect:pa,units:su,hideDisabledOptions:fo}),onSelect:pa,value:Dl,units:su})}Gs(Pn,ke.createElement(sr,{key:"hour",type:"hour",info:{today:Ga,locale:tr,cellRender:uo}}),Ja,Vs,function(aa){vo(As(cs,aa,js,es),"mouse")}),Gs(Hn,ke.createElement(sr,{key:"minute",type:"minute",info:{today:Ga,locale:tr,cellRender:uo}}),js,Pa,function(aa){vo(As(cs,Ja,aa,es),"mouse")}),Gs(ni,ke.createElement(sr,{key:"second",type:"second",info:{today:Ga,locale:tr,cellRender:uo}}),es,Bs,function(aa){vo(As(cs,Ja,js,aa),"mouse")});var Tu=-1;return typeof cs=="boolean"&&(Tu=cs?1:0),Gs(yi===!0,ke.createElement(sr,{key:"meridiem",type:"meridiem",info:{today:Ga,locale:tr,cellRender:uo}}),Tu,[{label:"AM",value:0,disabled:Eu},{label:"PM",value:1,disabled:Ma}],function(aa){vo(As(!!aa,Ja,js,es),"mouse")}),ke.createElement("div",{className:ia},Ca.map(function(aa){var Ys=aa.node;return Ys}))}var an=Qn,Vr=function(Ze){return Ze.filter(function($e){return $e!==!1}).length};function In(We){var Ze=We.generateConfig,$e=We.format,jt=$e===void 0?"HH:mm:ss":$e,Gt=We.prefixCls,Sn=We.active,Pn=We.operationRef,Hn=We.showHour,ni=We.showMinute,yi=We.showSecond,$i=We.use12Hours,mi=$i===void 0?!1:$i,Gi=We.onSelect,ci=We.value,hr="".concat(Gt,"-time-panel"),Un=ke.useRef(),ji=ke.useState(-1),cr=(0,dn.Z)(ji,2),so=cr[0],Zr=cr[1],fo=Vr([Hn,ni,yi,mi]);return Pn.current={onKeyDown:function(uo){return zo(uo,{onLeftRight:function(Ca){Zr((so+Ca+fo)%fo)},onUpDown:function(Ca){so===-1?Zr(0):Un.current&&Un.current.onUpDown(Ca)},onEnter:function(){Gi(ci||Ze.getNow(),"key"),Zr(-1)}})},onBlur:function(){Zr(-1)}},ke.createElement("div",{className:nn()(hr,(0,pt.Z)({},"".concat(hr,"-active"),Sn))},ke.createElement(Jt,(0,Me.Z)({},We,{format:jt,prefixCls:Gt})),ke.createElement(an,(0,Me.Z)({},We,{prefixCls:Gt,activeColumnIndex:so,operationRef:Un})))}var Or=In,Tr=br("date","time");function fr(We){var Ze=We.prefixCls,$e=We.operationRef,jt=We.generateConfig,Gt=We.value,Sn=We.defaultValue,Pn=We.disabledTime,Hn=We.showTime,ni=We.onSelect,yi=We.cellRender,$i="".concat(Ze,"-datetime-panel"),mi=ke.useState(null),Gi=(0,dn.Z)(mi,2),ci=Gi[0],hr=Gi[1],Un=ke.useRef({}),ji=ke.useRef({}),cr=(0,Zn.Z)(Hn)==="object"?(0,ht.Z)({},Hn):{};function so(uo){var tr=Tr.indexOf(ci)+uo,Ca=Tr[tr]||null;return Ca}var Zr=function(tr){ji.current.onBlur&&ji.current.onBlur(tr),hr(null)};$e.current={onKeyDown:function(tr){if(tr.which===Pi.Z.TAB){var Ca=so(tr.shiftKey?-1:1);return hr(Ca),Ca&&tr.preventDefault(),!0}if(ci){var ia=ci==="date"?Un:ji;return ia.current&&ia.current.onKeyDown&&ia.current.onKeyDown(tr),!0}return[Pi.Z.LEFT,Pi.Z.RIGHT,Pi.Z.UP,Pi.Z.DOWN].includes(tr.which)?(hr("date"),!0):!1},onBlur:Zr,onClose:Zr};var fo=function(tr,Ca){var ia=tr;Ca==="date"&&!Gt&&cr.defaultValue?(ia=jt.setHour(ia,jt.getHour(cr.defaultValue)),ia=jt.setMinute(ia,jt.getMinute(cr.defaultValue)),ia=jt.setSecond(ia,jt.getSecond(cr.defaultValue))):Ca==="time"&&!Gt&&Sn&&(ia=jt.setYear(ia,jt.getYear(Sn)),ia=jt.setMonth(ia,jt.getMonth(Sn)),ia=jt.setDate(ia,jt.getDate(Sn))),ni&&ni(ia,"mouse")},vo=Pn?Pn(Gt||null):{};return ke.createElement("div",{className:nn()($i,(0,pt.Z)({},"".concat($i,"-active"),ci))},ke.createElement(Vt,(0,Me.Z)({},We,{cellRender:yi,operationRef:Un,active:ci==="date",onSelect:function(tr){fo(Sr(jt,tr,!Gt&&(0,Zn.Z)(Hn)==="object"?Hn.defaultValue:null),"date")}})),ke.createElement(Or,(0,Me.Z)({},We,{cellRender:yi?function(uo,tr){return yi(uo,(0,ht.Z)((0,ht.Z)({},tr),{},{type:"time"}))}:void 0,format:void 0},cr,vo,{disabledTime:null,defaultValue:void 0,operationRef:ji,active:ci==="time",onSelect:function(tr){fo(tr,"time")}})))}var Bo=fr;function Gr(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.viewDate,Gt=We.onPrevDecades,Sn=We.onNextDecades,Pn=ke.useContext(Oi),Hn=Pn.hideHeader;if(Hn)return null;var ni="".concat(Ze,"-header"),yi=$e.getYear(jt),$i=Math.floor(yi/De)*De,mi=$i+De-1;return ke.createElement(Ln,(0,Me.Z)({},We,{prefixCls:ni,onSuperPrev:Gt,onSuperNext:Sn}),$i,"-",mi)}var Ui=Gr,xr=3,ro=4;function Cn(We){var Ze=Ke-1,$e=We.prefixCls,jt=We.viewDate,Gt=We.generateConfig,Sn=We.cellRender,Pn=We.locale,Hn="".concat($e,"-cell"),ni=Gt.getYear(jt),yi=Math.floor(ni/Ke)*Ke,$i=Math.floor(ni/De)*De,mi=$i+De-1,Gi=Gt.setYear(jt,$i-Math.ceil((xr*ro*Ke-De)/2)),ci=function(ji){var cr,so=Gt.getYear(ji),Zr=so+Ze;return cr={},(0,pt.Z)(cr,"".concat(Hn,"-in-view"),$i<=so&&Zr<=mi),(0,pt.Z)(cr,"".concat(Hn,"-selected"),so===yi),cr},hr=Sn?function(Un,ji){return Sn(Un,{originNode:ji,today:Gt.getNow(),type:"decade",locale:Pn})}:void 0;return ke.createElement(ai,(0,Me.Z)({},We,{rowNum:ro,colNum:xr,baseDate:Gi,getCellNode:hr,getCellText:function(ji){var cr=Gt.getYear(ji);return"".concat(cr,"-").concat(cr+Ze)},getCellClassName:ci,getCellDate:function(ji,cr){return Gt.addYear(ji,cr*Ke)}}))}var hi=Cn;function Ge(We){var Ze=We.prefixCls,$e=We.onViewDateChange,jt=We.generateConfig,Gt=We.viewDate,Sn=We.operationRef,Pn=We.onSelect,Hn=We.onPanelChange,ni="".concat(Ze,"-decade-panel");Sn.current={onKeyDown:function(Gi){return zo(Gi,{onLeftRight:function(hr){Pn(jt.addYear(Gt,hr*Ke),"key")},onCtrlLeftRight:function(hr){Pn(jt.addYear(Gt,hr*De),"key")},onUpDown:function(hr){Pn(jt.addYear(Gt,hr*Ke*xr),"key")},onEnter:function(){Hn("year",Gt)}})}};var yi=function(Gi){var ci=jt.addYear(Gt,Gi*De);$e(ci),Hn(null,ci)},$i=function(Gi){Pn(Gi,"mouse"),Hn("year",Gi)};return ke.createElement("div",{className:ni},ke.createElement(Ui,(0,Me.Z)({},We,{prefixCls:Ze,onPrevDecades:function(){yi(-1)},onNextDecades:function(){yi(1)}})),ke.createElement(hi,(0,Me.Z)({},We,{prefixCls:Ze,onSelect:$i})))}var To=Ge;function no(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.locale,Gt=We.viewDate,Sn=We.onNextYear,Pn=We.onPrevYear,Hn=We.onYearClick,ni=ke.useContext(Oi),yi=ni.hideHeader;if(yi)return null;var $i="".concat(Ze,"-header");return ke.createElement(Ln,(0,Me.Z)({},We,{prefixCls:$i,onSuperPrev:Pn,onSuperNext:Sn}),ke.createElement("button",{type:"button",onClick:Hn,className:"".concat(Ze,"-year-btn")},Dn(Gt,{locale:jt,format:jt.yearFormat,generateConfig:$e})))}var rr=no,qi=3,Qi=4;function oa(We){var Ze=We.prefixCls,$e=We.locale,jt=We.value,Gt=We.viewDate,Sn=We.generateConfig,Pn=We.cellRender,Hn=ke.useContext(Ft),ni=Hn.rangedValue,yi=Hn.hoverRangedValue,$i="".concat(Ze,"-cell"),mi=Yn({cellPrefixCls:$i,value:jt,generateConfig:Sn,rangedValue:ni,hoverRangedValue:yi,isSameCell:function(ji,cr){return pn(Sn,ji,cr)},isInView:function(){return!0},offsetCell:function(ji,cr){return Sn.addMonth(ji,cr)}}),Gi=$e.shortMonths||(Sn.locale.getShortMonths?Sn.locale.getShortMonths($e.locale):[]),ci=Sn.setMonth(Gt,0),hr=Pn?function(Un,ji){return Pn(Un,{originNode:ji,locale:$e,today:Sn.getNow(),type:"month"})}:void 0;return ke.createElement(ai,(0,Me.Z)({},We,{rowNum:Qi,colNum:qi,baseDate:ci,getCellNode:hr,getCellText:function(ji){return $e.monthFormat?Dn(ji,{locale:$e,format:$e.monthFormat,generateConfig:Sn}):Gi[Sn.getMonth(ji)]},getCellClassName:mi,getCellDate:Sn.addMonth,titleCell:function(ji){return Dn(ji,{locale:$e,format:"YYYY-MM",generateConfig:Sn})}}))}var ys=oa;function bs(We){var Ze=We.prefixCls,$e=We.operationRef,jt=We.onViewDateChange,Gt=We.generateConfig,Sn=We.value,Pn=We.viewDate,Hn=We.onPanelChange,ni=We.onSelect,yi="".concat(Ze,"-month-panel");$e.current={onKeyDown:function(Gi){return zo(Gi,{onLeftRight:function(hr){ni(Gt.addMonth(Sn||Pn,hr),"key")},onCtrlLeftRight:function(hr){ni(Gt.addYear(Sn||Pn,hr),"key")},onUpDown:function(hr){ni(Gt.addMonth(Sn||Pn,hr*qi),"key")},onEnter:function(){Hn("date",Sn||Pn)}})}};var $i=function(Gi){var ci=Gt.addYear(Pn,Gi);jt(ci),Hn(null,ci)};return ke.createElement("div",{className:yi},ke.createElement(rr,(0,Me.Z)({},We,{prefixCls:Ze,onPrevYear:function(){$i(-1)},onNextYear:function(){$i(1)},onYearClick:function(){Hn("year",Pn)}})),ke.createElement(ys,(0,Me.Z)({},We,{prefixCls:Ze,onSelect:function(Gi){ni(Gi,"mouse"),Hn("date",Gi)}})))}var _o=bs;function Ea(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.locale,Gt=We.viewDate,Sn=We.onNextYear,Pn=We.onPrevYear,Hn=We.onYearClick,ni=ke.useContext(Oi),yi=ni.hideHeader;if(yi)return null;var $i="".concat(Ze,"-header");return ke.createElement(Ln,(0,Me.Z)({},We,{prefixCls:$i,onSuperPrev:Pn,onSuperNext:Sn}),ke.createElement("button",{type:"button",onClick:Hn,className:"".concat(Ze,"-year-btn")},Dn(Gt,{locale:jt,format:jt.yearFormat,generateConfig:$e})))}var za=Ea,Mr=4,Ir=1;function gi(We){var Ze=We.prefixCls,$e=We.locale,jt=We.value,Gt=We.viewDate,Sn=We.generateConfig,Pn=We.cellRender,Hn=ke.useContext(Ft),ni=Hn.rangedValue,yi=Hn.hoverRangedValue,$i="".concat(Ze,"-cell"),mi=Yn({cellPrefixCls:$i,value:jt,generateConfig:Sn,rangedValue:ni,hoverRangedValue:yi,isSameCell:function(Un,ji){return yn(Sn,Un,ji)},isInView:function(){return!0},offsetCell:function(Un,ji){return Sn.addMonth(Un,ji*3)}}),Gi=Sn.setDate(Sn.setMonth(Gt,0),1),ci=Pn?function(hr,Un){return Pn(hr,{originNode:Un,locale:$e,today:Sn.getNow(),type:"quarter"})}:void 0;return ke.createElement(ai,(0,Me.Z)({},We,{rowNum:Ir,colNum:Mr,baseDate:Gi,getCellNode:ci,getCellText:function(Un){return Dn(Un,{locale:$e,format:$e.quarterFormat||"[Q]Q",generateConfig:Sn})},getCellClassName:mi,getCellDate:function(Un,ji){return Sn.addMonth(Un,ji*3)},titleCell:function(Un){return Dn(Un,{locale:$e,format:"YYYY-[Q]Q",generateConfig:Sn})}}))}var ho=gi;function Ba(We){var Ze=We.prefixCls,$e=We.operationRef,jt=We.onViewDateChange,Gt=We.generateConfig,Sn=We.value,Pn=We.viewDate,Hn=We.onPanelChange,ni=We.onSelect,yi="".concat(Ze,"-quarter-panel");$e.current={onKeyDown:function(Gi){return zo(Gi,{onLeftRight:function(hr){ni(Gt.addMonth(Sn||Pn,hr*3),"key")},onCtrlLeftRight:function(hr){ni(Gt.addYear(Sn||Pn,hr),"key")},onUpDown:function(hr){ni(Gt.addYear(Sn||Pn,hr),"key")}})}};var $i=function(Gi){var ci=Gt.addYear(Pn,Gi);jt(ci),Hn(null,ci)};return ke.createElement("div",{className:yi},ke.createElement(za,(0,Me.Z)({},We,{prefixCls:Ze,onPrevYear:function(){$i(-1)},onNextYear:function(){$i(1)},onYearClick:function(){Hn("year",Pn)}})),ke.createElement(ho,(0,Me.Z)({},We,{prefixCls:Ze,onSelect:function(Gi){ni(Gi,"mouse")}})))}var Ws=Ba;function Xa(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.locale,Gt=We.value,Sn=We.disabledDate,Pn=We.onSelect,Hn=ke.useContext(Ft),ni=Hn.rangedValue,yi=Hn.hoverRangedValue,$i=ke.useContext(Oi),mi=$i.onDateMouseEnter,Gi=$i.onDateMouseLeave,ci=(yi==null?void 0:yi[0])||(ni==null?void 0:ni[0]),hr=(yi==null?void 0:yi[1])||(ni==null?void 0:ni[1]),Un="".concat(Ze,"-cell"),ji=function(fo){var vo=On({cellDate:fo,mode:"week",disabledDate:Sn,generateConfig:$e});return ke.createElement("td",{key:"week",className:nn()(Un,"".concat(Un,"-week")),onClick:function(){vo||Pn(fo,"mouse")},onMouseEnter:function(){!vo&&mi&&mi(fo)},onMouseLeave:function(){!vo&&Gi&&Gi(fo)}},ke.createElement("div",{className:"".concat(Un,"-inner")},$e.locale.getWeek(jt.locale,fo)))},cr="".concat(Ze,"-week-panel-row"),so=function(fo){var vo,uo=Tn($e,jt.locale,ci,fo),tr=Tn($e,jt.locale,hr,fo);return nn()(cr,(vo={},(0,pt.Z)(vo,"".concat(cr,"-selected"),!ni&&Tn($e,jt.locale,Gt,fo)),(0,pt.Z)(vo,"".concat(cr,"-range-start"),uo),(0,pt.Z)(vo,"".concat(cr,"-range-end"),tr),(0,pt.Z)(vo,"".concat(cr,"-range-hover"),!uo&&!tr&&fi($e,ci,hr,fo)),vo))};return ke.createElement(Vt,(0,Me.Z)({},We,{panelName:"week",prefixColumn:ji,rowClassName:so,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var la=Xa,Ta=10;function Ls(We){var Ze=We.prefixCls,$e=We.generateConfig,jt=We.viewDate,Gt=We.onPrevDecade,Sn=We.onNextDecade,Pn=We.onDecadeClick,Hn=ke.useContext(Oi),ni=Hn.hideHeader;if(ni)return null;var yi="".concat(Ze,"-header"),$i=$e.getYear(jt),mi=Math.floor($i/Ta)*Ta,Gi=mi+Ta-1;return ke.createElement(Ln,(0,Me.Z)({},We,{prefixCls:yi,onSuperPrev:Gt,onSuperNext:Sn}),ke.createElement("button",{type:"button",onClick:Pn,className:"".concat(Ze,"-decade-btn")},mi,"-",Gi))}var ll=Ls,rn=3,Va=4;function tn(We){var Ze=We.prefixCls,$e=We.value,jt=We.viewDate,Gt=We.locale,Sn=We.generateConfig,Pn=We.cellRender,Hn=ke.useContext(Ft),ni=Hn.rangedValue,yi=Hn.hoverRangedValue,$i="".concat(Ze,"-cell"),mi=Sn.getYear(jt),Gi=Math.floor(mi/Ta)*Ta,ci=Gi+Ta-1,hr=Sn.setYear(jt,Gi-Math.ceil((rn*Va-Ta)/2)),Un=Sn.getNow(),ji=function(fo){var vo=Sn.getYear(fo);return Gi<=vo&&vo<=ci},cr=Yn({cellPrefixCls:$i,value:$e,generateConfig:Sn,rangedValue:ni,hoverRangedValue:yi,isSameCell:function(fo,vo){return Wt(Sn,fo,vo)},isInView:ji,offsetCell:function(fo,vo){return Sn.addYear(fo,vo)}}),so=Pn?function(Zr,fo){return Pn(Zr,{originNode:fo,today:Un,type:"year",locale:Gt})}:void 0;return ke.createElement(ai,(0,Me.Z)({},We,{rowNum:Va,colNum:rn,baseDate:hr,getCellNode:so,getCellText:Sn.getYear,getCellClassName:cr,getCellDate:Sn.addYear,titleCell:function(fo){return Dn(fo,{locale:Gt,format:"YYYY",generateConfig:Sn})}}))}var Ss=tn;function yu(We){var Ze=We.prefixCls,$e=We.operationRef,jt=We.onViewDateChange,Gt=We.generateConfig,Sn=We.value,Pn=We.viewDate,Hn=We.sourceMode,ni=We.onSelect,yi=We.onPanelChange,$i="".concat(Ze,"-year-panel");$e.current={onKeyDown:function(ci){return zo(ci,{onLeftRight:function(Un){ni(Gt.addYear(Sn||Pn,Un),"key")},onCtrlLeftRight:function(Un){ni(Gt.addYear(Sn||Pn,Un*Ta),"key")},onUpDown:function(Un){ni(Gt.addYear(Sn||Pn,Un*rn),"key")},onEnter:function(){yi(Hn==="date"?"date":"month",Sn||Pn)}})}};var mi=function(ci){var hr=Gt.addYear(Pn,ci*10);jt(hr),yi(null,hr)};return ke.createElement("div",{className:$i},ke.createElement(ll,(0,Me.Z)({},We,{prefixCls:Ze,onPrevDecade:function(){mi(-1)},onNextDecade:function(){mi(1)},onDecadeClick:function(){yi("decade",Pn)}})),ke.createElement(Ss,(0,Me.Z)({},We,{prefixCls:Ze,onSelect:function(ci){yi(Hn==="date"?"date":"month",ci),ni(ci,"mouse")}})))}var fl=yu;function Vl(We,Ze,$e){return $e?ke.createElement("div",{className:"".concat(We,"-footer-extra")},$e(Ze)):null}function is(We){var Ze=We.prefixCls,$e=We.components,jt=$e===void 0?{}:$e,Gt=We.needConfirmButton,Sn=We.onNow,Pn=We.onOk,Hn=We.okDisabled,ni=We.showNow,yi=We.locale,$i,mi;if(Gt){var Gi=jt.button||"button";Sn&&ni!==!1&&($i=ke.createElement("li",{className:"".concat(Ze,"-now")},ke.createElement("a",{className:"".concat(Ze,"-now-btn"),onClick:Sn},yi.now))),mi=Gt&&ke.createElement("li",{className:"".concat(Ze,"-ok")},ke.createElement(Gi,{disabled:Hn,onClick:Pn},yi.ok))}return!$i&&!mi?null:ke.createElement("ul",{className:"".concat(Ze,"-ranges")},$i,mi)}var kl=["date","month"];function Nl(We){var Ze,$e=We,jt=$e.prefixCls,Gt=jt===void 0?"rc-picker":jt,Sn=$e.className,Pn=$e.style,Hn=$e.locale,ni=$e.generateConfig,yi=$e.value,$i=$e.defaultValue,mi=$e.pickerValue,Gi=$e.defaultPickerValue,ci=$e.disabledDate,hr=$e.mode,Un=$e.picker,ji=Un===void 0?"date":Un,cr=$e.tabIndex,so=cr===void 0?0:cr,Zr=$e.showNow,fo=$e.showTime,vo=$e.showToday,uo=$e.renderExtraFooter,tr=$e.hideHeader,Ca=$e.onSelect,ia=$e.onChange,Io=$e.onPanelChange,cs=$e.onMouseDown,$a=$e.onPickerValueChange,Ja=$e.onOk,js=$e.components,es=$e.direction,Ga=$e.hourStep,ss=Ga===void 0?1:Ga,ks=$e.minuteStep,_s=ks===void 0?1:ks,ds=$e.secondStep,zs=ds===void 0?1:ds,vl=$e.dateRender,yl=$e.monthCellRender,Nu=$e.cellRender,Rl=ji==="date"&&!!fo||ji==="time",Eu=24%ss===0,Ma=60%_s===0,Vs=60%zs===0,Pa=ke.useContext(Oi),Bs=Pa.operationRef,As=Pa.onSelect,Gs=Pa.hideRanges,Tu=Pa.defaultOpenValue,aa=ke.useContext(Ft),Ys=aa.inRange,Dl=aa.panelPosition,su=aa.rangedValue,pa=aa.hoverRangedValue,Sl=ke.useRef({}),Da=ke.useRef(!0),Gu=(0,Oe.Z)(null,{value:yi,defaultValue:$i,postState:function(Ao){return!Ao&&Tu&&ji==="time"?Tu:Ao}}),fc=(0,dn.Z)(Gu,2),$l=fc[0],Fu=fc[1],Lc=(0,Oe.Z)(null,{value:mi,defaultValue:Gi||$l,postState:function(Ao){var Qa=ni.getNow();if(!Ao)return Qa;if(!$l&&fo){var rl=(0,Zn.Z)(fo)==="object"?fo.defaultValue:$i;return Sr(ni,Array.isArray(Ao)?Ao[0]:Ao,rl||Qa)}return Array.isArray(Ao)?Ao[0]:Ao}}),xl=(0,dn.Z)(Lc,2),Ns=xl[0],Ou=xl[1],wa=function(Ao){Ou(Ao),$a&&$a(Ao)},gc=function(Ao){var Qa=qn[ji];return Qa?Qa(Ao):Ao},eu=(0,Oe.Z)(function(){return ji==="time"?"time":gc("date")},{value:hr}),Ds=(0,dn.Z)(eu,2),Ts=Ds[0],El=Ds[1];ke.useEffect(function(){El(ji)},[ji]);var cl=ke.useState(function(){return Ts}),tu=(0,dn.Z)(cl,2),Ia=tu[0],Zl=tu[1],fu=function(Ao,Qa){var rl=gc(Ao||Ts);Zl(Ts),El(rl),Io&&(Ts!==rl||Xt(ni,Ns,Ns))&&Io(Qa,rl)},Ll=function(Ao,Qa){var rl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Ts===ji||rl)&&(Fu(Ao),Ca&&Ca(Ao),As&&As(Ao,Qa),ia&&!Xt(ni,Ao,$l)&&!(ci!=null&&ci(Ao))&&ia(Ao))},gu=function(Ao){if(kl.includes(Ts)){var Qa,rl,oc=Ts==="date";switch(Ao===Pi.Z.PAGE_UP||Ao===Pi.Z.PAGE_DOWN?rl=oc?ni.addMonth:ni.addYear:rl=oc?ni.addDate:ni.addMonth,Ao){case Pi.Z.LEFT:case Pi.Z.PAGE_UP:Qa=rl(Ns,-1);break;case Pi.Z.RIGHT:case Pi.Z.PAGE_DOWN:Qa=rl(Ns,1);break;case Pi.Z.UP:case Pi.Z.DOWN:Qa=rl(Ns,Number("".concat(Ao===Pi.Z.UP?"-":"").concat(oc?tt:qi)));break}if(Qa)return!(ci!=null&&ci(Qa))}return!0},Qu=function(Ao){if(Sl.current&&Sl.current.onKeyDown){var Qa=!0,rl=Ao.which;if([Pi.Z.LEFT,Pi.Z.RIGHT,Pi.Z.UP,Pi.Z.DOWN,Pi.Z.PAGE_UP,Pi.Z.PAGE_DOWN,Pi.Z.ENTER].includes(rl)&&(Ao.preventDefault(),rl!==Pi.Z.ENTER&&so===0&&(Qa=gu(rl))),Qa)return Sl.current.onKeyDown(Ao)}return(0,Lt.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Us=function(Ao){Sl.current&&Sl.current.onBlur&&Sl.current.onBlur(Ao)};Bs&&Dl!=="right"&&(Bs.current={onKeyDown:Qu,onClose:function(){Sl.current&&Sl.current.onClose&&Sl.current.onClose()}}),ke.useEffect(function(){yi&&!Da.current&&Ou(yi)},[yi]),ke.useEffect(function(){Da.current=!1},[]);var Iu,ha=ki({cellRender:Nu,monthCellRender:yl,dateRender:vl}),Ps=(0,ht.Z)((0,ht.Z)({},We),{},{cellRender:ha,operationRef:Sl,prefixCls:Gt,viewDate:Ns,value:$l,onViewDateChange:wa,sourceMode:Ia,onPanelChange:fu,disabledDate:ci});switch(delete Ps.onChange,delete Ps.onSelect,Ts){case"decade":Iu=ke.createElement(To,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}));break;case"year":Iu=ke.createElement(fl,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}));break;case"month":Iu=ke.createElement(_o,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}));break;case"quarter":Iu=ke.createElement(Ws,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}));break;case"week":Iu=ke.createElement(la,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}));break;case"time":delete Ps.showTime,Iu=ke.createElement(Or,(0,Me.Z)({},Ps,(0,Zn.Z)(fo)==="object"?fo:null,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}));break;default:fo?Iu=ke.createElement(Bo,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}})):Iu=ke.createElement(Vt,(0,Me.Z)({},Ps,{onSelect:function(Ao,Qa){wa(Ao),Ll(Ao,Qa)}}))}var Mc,Ju,nu=function(){var Ao=ni.getNow(),Qa=Ii(ni.getHour(Ao),ni.getMinute(Ao),ni.getSecond(Ao),Eu?ss:1,Ma?_s:1,Vs?zs:1),rl=sn(ni,Ao,Qa[0],Qa[1],Qa[2]);Ll(rl,"submit")};Gs||(Mc=Vl(Gt,Ts,uo),fo&&Ts!=="date"?Ju=null:Ju=is({prefixCls:Gt,components:js,needConfirmButton:Rl,okDisabled:!$l||ci&&ci($l),locale:Hn,showNow:Zr,onNow:Rl&&nu,onOk:function(){$l&&(Ll($l,"submit",!0),Ja&&Ja($l))}}));var pc;if(vo&&Ts==="date"&&ji==="date"&&!fo){var mc=ni.getNow(),fh="".concat(Gt,"-today-btn"),kc=ci&&ci(mc);pc=ke.createElement("a",{className:nn()(fh,kc&&"".concat(fh,"-disabled")),"aria-disabled":kc,onClick:function(){kc||Ll(mc,"mouse",!0)}},Hn.today)}return ke.createElement(Oi.Provider,{value:(0,ht.Z)((0,ht.Z)({},Pa),{},{mode:Ts,hideHeader:"hideHeader"in We?tr:Pa.hideHeader,hidePrevBtn:Ys&&Dl==="right",hideNextBtn:Ys&&Dl==="left"})},ke.createElement("div",{tabIndex:so,className:nn()("".concat(Gt,"-panel"),Sn,(Ze={},(0,pt.Z)(Ze,"".concat(Gt,"-panel-has-range"),su&&su[0]&&su[1]),(0,pt.Z)(Ze,"".concat(Gt,"-panel-has-range-hover"),pa&&pa[0]&&pa[1]),(0,pt.Z)(Ze,"".concat(Gt,"-panel-rtl"),es==="rtl"),Ze)),style:Pn,onKeyDown:Qu,onBlur:Us,onMouseDown:cs},Iu,Mc||Ju||pc?ke.createElement("div",{className:"".concat(Gt,"-footer")},Mc,Ju,pc):null))}var ga=Nl,gl=Ee(35593),Vc={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 du(We){var Ze,$e=We.prefixCls,jt=We.popupElement,Gt=We.popupStyle,Sn=We.visible,Pn=We.dropdownClassName,Hn=We.dropdownAlign,ni=We.transitionName,yi=We.getPopupContainer,$i=We.children,mi=We.range,Gi=We.popupPlacement,ci=We.direction,hr="".concat($e,"-dropdown"),Un=function(){return Gi!==void 0?Gi:ci==="rtl"?"bottomRight":"bottomLeft"};return ke.createElement(gl.Z,{showAction:[],hideAction:[],popupPlacement:Un(),builtinPlacements:Vc,prefixCls:hr,popupTransitionName:ni,popup:jt,popupAlign:Hn,popupVisible:Sn,popupClassName:nn()(Pn,(Ze={},(0,pt.Z)(Ze,"".concat(hr,"-range"),mi),(0,pt.Z)(Ze,"".concat(hr,"-rtl"),ci==="rtl"),Ze)),popupStyle:Gt,getPopupContainer:yi},$i)}var Su=du;function xu(We){var Ze=We.prefixCls,$e=We.presets,jt=We.onClick,Gt=We.onHover;return $e.length?ke.createElement("div",{className:"".concat(Ze,"-presets")},ke.createElement("ul",null,$e.map(function(Sn,Pn){var Hn=Sn.label,ni=Sn.value;return ke.createElement("li",{key:Pn,onClick:function(){return jt==null?void 0:jt(En(ni))},onMouseEnter:function(){return Gt==null?void 0:Gt(En(ni))},onMouseLeave:function(){return Gt==null?void 0:Gt(null)}},Hn)}))):null}function oo(We){var Ze=We.picker,$e=We.disabledHours,jt=We.disabledMinutes,Gt=We.disabledSeconds;Ze==="time"&&($e||jt||Gt)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function xd(We,Ze,$e){var jt=(0,Zn.Z)(Ze)==="object"?Ze.clearIcon:$e;return jt||ke.createElement("span",{className:"".concat(We,"-clear-btn")})}function Ed(We){var Ze,$e=We,jt=$e.prefixCls,Gt=jt===void 0?"rc-picker":jt,Sn=$e.id,Pn=$e.name,Hn=$e.tabIndex,ni=$e.style,yi=$e.className,$i=$e.dropdownClassName,mi=$e.dropdownAlign,Gi=$e.popupStyle,ci=$e.transitionName,hr=$e.generateConfig,Un=$e.locale,ji=$e.inputReadOnly,cr=$e.allowClear,so=$e.autoFocus,Zr=$e.showTime,fo=$e.picker,vo=fo===void 0?"date":fo,uo=$e.format,tr=$e.use12Hours,Ca=$e.value,ia=$e.defaultValue,Io=$e.presets,cs=$e.open,$a=$e.defaultOpen,Ja=$e.defaultOpenValue,js=$e.suffixIcon,es=$e.clearIcon,Ga=$e.disabled,ss=$e.disabledDate,ks=$e.placeholder,_s=$e.getPopupContainer,ds=$e.pickerRef,zs=$e.panelRender,vl=$e.onChange,yl=$e.onOpenChange,Nu=$e.onFocus,Rl=$e.onBlur,Eu=$e.onMouseDown,Ma=$e.onMouseUp,Vs=$e.onMouseEnter,Pa=$e.onMouseLeave,Bs=$e.onContextMenu,As=$e.onClick,Gs=$e.onKeyDown,Tu=$e.onSelect,aa=$e.direction,Ys=$e.autoComplete,Dl=Ys===void 0?"off":Ys,su=$e.inputRender,pa=$e.changeOnBlur,Sl=ke.useRef(null),Da=vo==="date"&&!!Zr||vo==="time",Gu=_t(Io),fc=Br(Co(uo,vo,Zr,tr)),$l=ke.useRef(null),Fu=ke.useRef(null),Lc=ke.useRef(null),xl=(0,Oe.Z)(null,{value:Ca,defaultValue:ia}),Ns=(0,dn.Z)(xl,2),Ou=Ns[0],wa=Ns[1],gc=ke.useState(Ou),eu=(0,dn.Z)(gc,2),Ds=eu[0],Ts=eu[1],El=ke.useRef(null),cl=(0,Oe.Z)(!1,{value:cs,defaultValue:$a,postState:function(sa){return Ga?!1:sa},onChange:function(sa){yl&&yl(sa),!sa&&El.current&&El.current.onClose&&El.current.onClose()}}),tu=(0,dn.Z)(cl,2),Ia=tu[0],Zl=tu[1],fu=Jn(Ds,{formatList:fc,generateConfig:hr,locale:Un}),Ll=(0,dn.Z)(fu,2),gu=Ll[0],Qu=Ll[1],Us=Li({valueTexts:gu,onTextChange:function(sa){var pu=Bi(sa,{locale:Un,formatList:fc,generateConfig:hr});pu&&(!ss||!ss(pu))&&Ts(pu)}}),Iu=(0,dn.Z)(Us,3),ha=Iu[0],Ps=Iu[1],Mc=Iu[2],Ju=function(sa){Ts(sa),wa(sa),vl&&!Xt(hr,Ou,sa)&&vl(sa,sa?Dn(sa,{generateConfig:hr,locale:Un,format:fc[0]}):"")},nu=function(sa){Ga&&sa||Zl(sa)},pc=function(sa){return Ia&&El.current&&El.current.onKeyDown?El.current.onKeyDown(sa):((0,Lt.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},mc=function(){for(var sa=arguments.length,pu=new Array(sa),Na=0;Na<sa;Na++)pu[Na]=arguments[Na];As==null||As.apply(void 0,pu),Sl.current&&(Sl.current.focus(),nu(!0))},fh=function(sa){pa&&Ju(Ds),Rl==null||Rl(sa)},kc=en({blurToCancel:Da,open:Ia,value:ha,triggerOpen:nu,forwardKeyDown:pc,isClickOutside:function(sa){return!nr([$l.current,Fu.current,Lc.current],sa)},onSubmit:function(){return!Ds||ss&&ss(Ds)?!1:(Ju(Ds),nu(!1),Mc(),!0)},onCancel:function(){nu(!1),Ts(Ou),Mc()},onKeyDown:function(sa,pu){Gs==null||Gs(sa,pu)},onFocus:Nu,onBlur:fh,changeOnBlur:pa}),Sa=(0,dn.Z)(kc,2),Ao=Sa[0],Qa=Sa[1],rl=Qa.focused,oc=Qa.typing;ke.useEffect(function(){Ia||(Ts(Ou),!gu.length||gu[0]===""?Ps(""):Qu!==ha&&Mc())},[Ia,gu]),ke.useEffect(function(){Ia||Mc()},[vo]),ke.useEffect(function(){Ts(Ou)},[Ou]),ds&&(ds.current={focus:function(){var sa;(sa=Sl.current)===null||sa===void 0||sa.focus()},blur:function(){var sa;(sa=Sl.current)===null||sa===void 0||sa.blur()}});var td=Ki(ha,{formatList:fc,generateConfig:hr,locale:Un}),dd=(0,dn.Z)(td,3),Uc=dd[0],Hl=dd[1],ka=dd[2],Ra=(0,ht.Z)((0,ht.Z)({},We),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),vc=ke.createElement("div",{className:"".concat(Gt,"-panel-layout")},ke.createElement(xu,{prefixCls:Gt,presets:Gu,onClick:function(sa){Ju(sa),nu(!1)}}),ke.createElement(ga,(0,Me.Z)({},Ra,{generateConfig:hr,className:nn()((0,pt.Z)({},"".concat(Gt,"-panel-focused"),!oc)),value:Ds,locale:Un,tabIndex:-1,onSelect:function(sa){Tu==null||Tu(sa),Ts(sa)},direction:aa,onPanelChange:function(sa,pu){var Na=We.onPanelChange;ka(!0),Na==null||Na(sa,pu)}})));zs&&(vc=zs(vc));var ac=ke.createElement("div",{className:"".concat(Gt,"-panel-container"),ref:$l,onMouseDown:function(sa){sa.preventDefault()}},vc),hd;js&&(hd=ke.createElement("span",{className:"".concat(Gt,"-suffix"),onMouseDown:function(sa){sa.preventDefault()}},js));var Wh=xd(Gt,cr,es),qu=ke.createElement("span",{onMouseDown:function(sa){sa.preventDefault(),sa.stopPropagation()},onMouseUp:function(sa){sa.preventDefault(),sa.stopPropagation(),Ju(null),nu(!1)},className:"".concat(Gt,"-clear"),role:"button"},Wh),$u=!!cr&&Ou&&!Ga,Wd=(0,ht.Z)((0,ht.Z)((0,ht.Z)({id:Sn,tabIndex:Hn,disabled:Ga,readOnly:ji||typeof fc[0]=="function"||!oc,value:Uc||ha,onChange:function(sa){Ps(sa.target.value)},autoFocus:so,placeholder:ks,ref:Sl,title:ha},Ao),{},{size:xo(vo,fc[0],hr),name:Pn},(0,Ce.Z)(We,{aria:!0,data:!0})),{},{autoComplete:Dl}),$d=su?su(Wd):ke.createElement("input",Wd),Pu=function(sa,pu){(pu==="submit"||pu!=="key"&&!Da)&&(Ju(sa),nu(!1))},Nc=aa==="rtl"?"bottomRight":"bottomLeft";return ke.createElement(Oi.Provider,{value:{operationRef:El,hideHeader:vo==="time",onSelect:Pu,open:Ia,defaultOpenValue:Ja,onDateMouseEnter:Hl,onDateMouseLeave:ka}},ke.createElement(Su,{visible:Ia,popupElement:ac,popupStyle:Gi,prefixCls:Gt,dropdownClassName:$i,dropdownAlign:mi,getPopupContainer:_s,transitionName:ci,popupPlacement:Nc,direction:aa},ke.createElement("div",{ref:Lc,className:nn()(Gt,yi,(Ze={},(0,pt.Z)(Ze,"".concat(Gt,"-disabled"),Ga),(0,pt.Z)(Ze,"".concat(Gt,"-focused"),rl),(0,pt.Z)(Ze,"".concat(Gt,"-rtl"),aa==="rtl"),Ze)),style:ni,onMouseDown:Eu,onMouseUp:Ma,onMouseEnter:Vs,onMouseLeave:Pa,onContextMenu:Bs,onClick:mc},ke.createElement("div",{className:nn()("".concat(Gt,"-input"),(0,pt.Z)({},"".concat(Gt,"-input-placeholder"),!!Uc)),ref:Fu},$d,hd,$u&&qu))))}var Bc=function(We){(0,Vn.Z)($e,We);var Ze=(0,Mi.Z)($e);function $e(){var jt;(0,vn.Z)(this,$e);for(var Gt=arguments.length,Sn=new Array(Gt),Pn=0;Pn<Gt;Pn++)Sn[Pn]=arguments[Pn];return jt=Ze.call.apply(Ze,[this].concat(Sn)),(0,pt.Z)((0,Si.Z)(jt),"pickerRef",ke.createRef()),(0,pt.Z)((0,Si.Z)(jt),"focus",function(){jt.pickerRef.current&&jt.pickerRef.current.focus()}),(0,pt.Z)((0,Si.Z)(jt),"blur",function(){jt.pickerRef.current&&jt.pickerRef.current.blur()}),jt}return(0,An.Z)($e,[{key:"render",value:function(){return ke.createElement(Ed,(0,Me.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),$e}(ke.Component),Od=Bc;function Nh(We,Ze){var $e=We.picker,jt=We.locale,Gt=We.selectedValue,Sn=We.disabledDate,Pn=We.disabled,Hn=We.generateConfig,ni=Pt(Gt,0),yi=Pt(Gt,1);function $i(Un){return Hn.locale.getWeekFirstDate(jt.locale,Un)}function mi(Un){var ji=Hn.getYear(Un),cr=Hn.getMonth(Un);return ji*100+cr}function Gi(Un){var ji=Hn.getYear(Un),cr=kt(Hn,Un);return ji*10+cr}var ci=ke.useCallback(function(Un){if(Pn[0]||Sn&&Sn(Un))return!0;if(Pn[1]&&yi)return!mn(Hn,Un,yi)&&Hn.isAfter(Un,yi);if(!Ze&&yi)switch($e){case"quarter":return Gi(Un)>Gi(yi);case"month":return mi(Un)>mi(yi);case"week":return $i(Un)>$i(yi);default:return!mn(Hn,Un,yi)&&Hn.isAfter(Un,yi)}return!1},[Sn,Pn[1],yi,Ze]),hr=ke.useCallback(function(Un){if(Pn[1]||Sn&&Sn(Un))return!0;if(Pn[0]&&ni)return!mn(Hn,Un,yi)&&Hn.isAfter(ni,Un);if(!Ze&&ni)switch($e){case"quarter":return Gi(Un)<Gi(ni);case"month":return mi(Un)<mi(ni);case"week":return $i(Un)<$i(ni);default:return!mn(Hn,Un,ni)&&Hn.isAfter(ni,Un)}return!1},[Sn,Pn[0],ni,Ze]);return[ci,hr]}var ir=Ee(70425),il=Ee(6089);function bl(We,Ze,$e,jt,Gt,Sn,Pn,Hn,ni,yi){var $i=ke.useState(!1),mi=(0,dn.Z)($i,2),Gi=mi[0],ci=mi[1],hr=(0,ir.useMergedState)(We||!1,{value:Ze}),Un=(0,dn.Z)(hr,2),ji=Un[0],cr=Un[1],so=(0,ir.useMergedState)(We||!1,{value:Ze,onChange:function(ss){yi==null||yi(ss)}}),Zr=(0,dn.Z)(so,2),fo=Zr[0],vo=Zr[1],uo=(0,ir.useMergedState)(0,{value:$e}),tr=(0,dn.Z)(uo,2),Ca=tr[0],ia=tr[1],Io=ke.useState(null),cs=(0,dn.Z)(Io,2),$a=cs[0],Ja=cs[1];ke.useEffect(function(){fo&&ci(!0)},[fo]);var js=function(ss){return ss===0?1:0},es=(0,il.Z)(function(Ga,ss,ks){if(ss===!1)vo(Ga);else if(Ga){ia(ss),vo(Ga);var _s=js(ss);!fo||![Pn,Hn][_s]?Ja(_s):(ci(!1),$a!==null&&Ja(null))}else if(ks==="confirm"||ks==="blur"&&jt){var ds=ji?js(ss):$a;ds!==null&&(ci(!1),ia(ds)),Ja(null),ds!==null&&!ni[ds]?(0,ur.Z)(function(){var zs,vl=[Gt,Sn][ds];(zs=vl.current)===null||zs===void 0||zs.focus()}):vo(!1)}else vo(!1),cr(!1)});return[fo,Ca,Gi,es]}function wr(We,Ze,$e,jt){var Gt=bn(We,$e,jt,1);function Sn(Pn){return Pn(We,Ze)?"same":Pn(Gt,Ze)?"closing":"far"}switch($e){case"year":return Sn(function(Pn,Hn){return mt(jt,Pn,Hn)});case"quarter":case"month":return Sn(function(Pn,Hn){return Wt(jt,Pn,Hn)});default:return Sn(function(Pn,Hn){return pn(jt,Pn,Hn)})}}function ao(We,Ze,$e,jt){var Gt=Pt(We,0),Sn=Pt(We,1);if(Ze===0)return Gt;if(Gt&&Sn){var Pn=wr(Gt,Sn,$e,jt);switch(Pn){case"same":return Gt;case"closing":return Gt;default:return bn(Sn,$e,jt,-1)}}return Gt}function ua(We){var Ze=We.values,$e=We.picker,jt=We.defaultDates,Gt=We.generateConfig,Sn=ke.useState(function(){return[Pt(jt,0),Pt(jt,1)]}),Pn=(0,dn.Z)(Sn,2),Hn=Pn[0],ni=Pn[1],yi=ke.useState(null),$i=(0,dn.Z)(yi,2),mi=$i[0],Gi=$i[1],ci=Pt(Ze,0),hr=Pt(Ze,1);function Un(cr){return Hn[cr]?Hn[cr]:Pt(mi,cr)||ao(Ze,cr,$e,Gt)||ci||hr||Gt.getNow()}function ji(cr,so){if(cr){var Zr=Di(mi,cr,so);ni(Di(Hn,null,so)||[null,null]);var fo=(so+1)%2;Pt(Ze,fo)||(Zr=Di(Zr,cr,fo)),Gi(Zr)}else(ci||hr)&&Gi(null)}return[Un,ji]}function Dr(We,Ze){return We&&We[0]&&We[1]&&Ze.isAfter(We[0],We[1])?[We[1],We[0]]:We}function Bl(We,Ze,$e,jt){return!!(We||jt&&jt[Ze]||$e[(Ze+1)%2])}function ku(We){var Ze,$e,jt,Gt=We,Sn=Gt.prefixCls,Pn=Sn===void 0?"rc-picker":Sn,Hn=Gt.id,ni=Gt.style,yi=Gt.className,$i=Gt.popupStyle,mi=Gt.dropdownClassName,Gi=Gt.transitionName,ci=Gt.dropdownAlign,hr=Gt.getPopupContainer,Un=Gt.generateConfig,ji=Gt.locale,cr=Gt.placeholder,so=Gt.autoFocus,Zr=Gt.disabled,fo=Gt.format,vo=Gt.picker,uo=vo===void 0?"date":vo,tr=Gt.showTime,Ca=Gt.use12Hours,ia=Gt.separator,Io=ia===void 0?"~":ia,cs=Gt.value,$a=Gt.defaultValue,Ja=Gt.defaultPickerValue,js=Gt.open,es=Gt.defaultOpen,Ga=Gt.disabledDate,ss=Gt.disabledTime,ks=Gt.dateRender,_s=Gt.monthCellRender,ds=Gt.cellRender,zs=Gt.panelRender,vl=Gt.presets,yl=Gt.ranges,Nu=Gt.allowEmpty,Rl=Gt.allowClear,Eu=Gt.suffixIcon,Ma=Gt.clearIcon,Vs=Gt.pickerRef,Pa=Gt.inputReadOnly,Bs=Gt.mode,As=Gt.renderExtraFooter,Gs=Gt.onChange,Tu=Gt.onOpenChange,aa=Gt.onPanelChange,Ys=Gt.onCalendarChange,Dl=Gt.onFocus,su=Gt.onBlur,pa=Gt.onMouseDown,Sl=Gt.onMouseUp,Da=Gt.onMouseEnter,Gu=Gt.onMouseLeave,fc=Gt.onClick,$l=Gt.onOk,Fu=Gt.onKeyDown,Lc=Gt.components,xl=Gt.order,Ns=Gt.direction,Ou=Gt.activePickerIndex,wa=Gt.autoComplete,gc=wa===void 0?"off":wa,eu=Gt.changeOnBlur,Ds=uo==="date"&&!!tr||uo==="time",Ts=(0,ke.useRef)(null),El=(0,ke.useRef)(null),cl=(0,ke.useRef)(null),tu=(0,ke.useRef)(null),Ia=(0,ke.useRef)(null),Zl=(0,ke.useRef)(null),fu=(0,ke.useRef)(null),Ll=(0,ke.useRef)(null),gu=Br(Co(fo,uo,tr,Ca)),Qu=(0,ke.useRef)(null),Us=ke.useMemo(function(){return Array.isArray(Zr)?Zr:[Zr||!1,Zr||!1]},[Zr]),Iu=(0,Oe.Z)(null,{value:cs,defaultValue:$a,postState:function(Rr){return uo==="time"&&!xl?Rr:Dr(Rr,Un)}}),ha=(0,dn.Z)(Iu,2),Ps=ha[0],Mc=ha[1],Ju=ua({values:Ps,picker:uo,defaultDates:Ja,generateConfig:Un}),nu=(0,dn.Z)(Ju,2),pc=nu[0],mc=nu[1],fh=(0,Oe.Z)(Ps,{postState:function(Rr){var qo=Rr;if(Us[0]&&Us[1])return qo;for(var Ka=0;Ka<2;Ka+=1)Us[Ka]&&!qo&&!Pt(qo,Ka)&&!Pt(Nu,Ka)&&(qo=Di(qo,Un.getNow(),Ka));return qo}}),kc=(0,dn.Z)(fh,2),Sa=kc[0],Ao=kc[1],Qa=(0,Oe.Z)([uo,uo],{value:Bs}),rl=(0,dn.Z)(Qa,2),oc=rl[0],td=rl[1];(0,ke.useEffect)(function(){td([uo,uo])},[uo]);var dd=function(Rr,qo){td(Rr),aa&&aa(qo,Rr)},Uc=bl(es,js,Ou,eu,Zl,fu,Pt(Sa,0),Pt(Sa,1),Us,Tu),Hl=(0,dn.Z)(Uc,4),ka=Hl[0],Ra=Hl[1],vc=Hl[2],ac=Hl[3],hd=ka&&Ra===0,Wh=ka&&Ra===1,qu=Nh({picker:uo,selectedValue:Sa,locale:ji,disabled:Us,disabledDate:Ga,generateConfig:Un},!ka||vc),$u=(0,dn.Z)(qu,2),Wd=$u[0],$d=$u[1],Pu=(0,ke.useState)(0),Nc=(0,dn.Z)(Pu,2),ol=Nc[0],sa=Nc[1];(0,ke.useEffect)(function(){!ka&&Ts.current&&sa(Ts.current.offsetWidth)},[ka]);function pu(Eo){ac(!0,Eo,"open"),(0,ur.Z)(function(){var Rr,qo=[Zl,fu][Eo];(Rr=qo.current)===null||Rr===void 0||Rr.focus()},0)}function Na(Eo,Rr){var qo=Eo,Ka=Pt(qo,0),Qs=Pt(qo,1);Ka&&Qs&&Un.isAfter(Ka,Qs)&&(uo==="week"&&!Tn(Un,ji.locale,Ka,Qs)||uo==="quarter"&&!yn(Un,Ka,Qs)||uo!=="week"&&uo!=="quarter"&&uo!=="time"&&!mn(Un,Ka,Qs)?Rr===0?(qo=[Ka,null],Qs=null):(Ka=null,qo=[null,Qs]):(uo!=="time"||xl!==!1)&&(qo=Dr(qo,Un))),Ao(qo);var Sc=qo&&qo[0]?Dn(qo[0],{generateConfig:Un,locale:ji,format:gu[0]}):"",Xl=qo&&qo[1]?Dn(qo[1],{generateConfig:Un,locale:ji,format:gu[0]}):"";if(Ys){var sc={range:Rr===0?"start":"end"};Ys(qo,[Sc,Xl],sc)}var Jl=Bl(Ka,0,Us,Nu),nd=Bl(Qs,1,Us,Nu),mr=qo===null||Jl&&nd;mr&&(Mc(qo),Gs&&(!Xt(Un,Pt(Ps,0),Ka)||!Xt(Un,Pt(Ps,1),Qs))&&Gs(qo,[Sc,Xl]))}var eh=function(Rr){return ka&&Qu.current&&Qu.current.onKeyDown?Qu.current.onKeyDown(Rr):((0,Lt.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},gh={formatList:gu,generateConfig:Un,locale:ji},iu=Jn(Pt(Sa,0),gh),th=(0,dn.Z)(iu,2),ec=th[0],Cd=th[1],jd=Jn(Pt(Sa,1),gh),nf=(0,dn.Z)(jd,2),Ad=nf[0],Zc=nf[1],Hc=function(Rr,qo){var Ka=Bi(Rr,{locale:ji,formatList:gu,generateConfig:Un}),Qs=qo===0?Wd:$d;Ka&&!Qs(Ka)&&(Ao(Di(Sa,Ka,qo)),mc(Ka,qo))},Tc=Li({valueTexts:ec,onTextChange:function(Rr){return Hc(Rr,0)}}),rf=(0,dn.Z)(Tc,3),Fd=rf[0],fd=rf[1],zd=rf[2],Pl=Li({valueTexts:Ad,onTextChange:function(Rr){return Hc(Rr,1)}}),yc=(0,dn.Z)(Pl,3),ph=yc[0],jh=yc[1],mh=yc[2],Ht=(0,ke.useState)(null),it=(0,dn.Z)(Ht,2),lt=it[0],ot=it[1],xn=(0,ke.useState)(null),wi=(0,dn.Z)(xn,2),Yi=wi[0],dr=wi[1],xi=Ki(Fd,{formatList:gu,generateConfig:Un,locale:ji}),Fn=(0,dn.Z)(xi,3),Fi=Fn[0],Yr=Fn[1],Po=Fn[2],kr=Ki(ph,{formatList:gu,generateConfig:Un,locale:ji}),$r=(0,dn.Z)(kr,3),No=$r[0],So=$r[1],po=$r[2],lr=function(Rr){dr(Di(Sa,Rr,Ra)),Ra===0?Yr(Rr):So(Rr)},ma=function(){dr(Di(Sa,null,Ra)),Ra===0?Po():po()},Vo=ke.useState(ka),mo=(0,dn.Z)(Vo,2),Fo=mo[0],Pr=mo[1];ke.useEffect(function(){Pr(ka)},[ka]);var gr=function(Rr){if(eu&&Fo){var qo=Pt(Sa,Ra);qo&&Na(Sa,Ra)}return su==null?void 0:su(Rr)},Mo=function(Rr,qo){return{blurToCancel:!eu&&Ds,forwardKeyDown:eh,onBlur:gr,isClickOutside:function(Qs){return!nr([El.current,cl.current,tu.current,Ts.current],Qs)},onFocus:function(Qs){Dl&&Dl(Qs)},triggerOpen:function(Qs){Qs?ac(Qs,Rr,"open"):ac(Qs,Pt(Sa,Rr)?Rr:!1,"blur")},onSubmit:function(){if(!Sa||Ga&&Ga(Sa[Rr]))return!1;Na(Sa,Rr),qo(),ac(!1,Ra,"confirm")},onCancel:function(){ac(!1,Rr,"cancel"),Ao(Ps),qo()}}},Ur={onKeyDown:function(Rr,qo){Fu==null||Fu(Rr,qo)},changeOnBlur:eu},Do=en((0,ht.Z)((0,ht.Z)({},Mo(0,zd)),{},{open:hd,value:Fd},Ur)),yo=(0,dn.Z)(Do,2),ca=yo[0],xa=yo[1],$n=xa.focused,wo=xa.typing,Yo=en((0,ht.Z)((0,ht.Z)({},Mo(1,mh)),{},{open:Wh,value:ph},Ur)),Jo=(0,dn.Z)(Yo,2),Qo=Jo[0],ms=Jo[1],Cr=ms.focused,Xo=ms.typing,Ha=function(Rr){fc&&fc(Rr),!ka&&!Zl.current.contains(Rr.target)&&!fu.current.contains(Rr.target)&&(Us[0]?Us[1]||pu(1):pu(0))},ls=function(Rr){pa&&pa(Rr),ka&&($n||Cr)&&!Zl.current.contains(Rr.target)&&!fu.current.contains(Rr.target)&&Rr.preventDefault()},hs=Ps&&Ps[0]?Dn(Ps[0],{locale:ji,format:"YYYYMMDDHHmmss",generateConfig:Un}):"",Ua=Ps&&Ps[1]?Dn(Ps[1],{locale:ji,format:"YYYYMMDDHHmmss",generateConfig:Un}):"";(0,ke.useEffect)(function(){ka||(Ao(Ps),!ec.length||ec[0]===""?fd(""):Cd!==Fd&&zd(),!Ad.length||Ad[0]===""?jh(""):Zc!==ph&&mh())},[ka,ec,Ad]),(0,ke.useEffect)(function(){Ao(Ps)},[hs,Ua]);var pr=ki({cellRender:ds,monthCellRender:_s,dateRender:ks}),Ho=ke.useMemo(function(){if(pr)return function(Eo,Rr){return pr(Eo,(0,ht.Z)((0,ht.Z)({},Rr),{},{range:Ra?"end":"start"}))}},[Ra,pr]);Vs&&(Vs.current={focus:function(){Zl.current&&Zl.current.focus()},blur:function(){Zl.current&&Zl.current.blur(),fu.current&&fu.current.blur()}});var Wa=_t(vl,yl);function Ko(){var Eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qo=null;ka&&Yi&&Yi[0]&&Yi[1]&&Un.isAfter(Yi[1],Yi[0])&&(qo=Yi);var Ka=tr;if(tr&&(0,Zn.Z)(tr)==="object"&&tr.defaultValue){var Qs=tr.defaultValue;Ka=(0,ht.Z)((0,ht.Z)({},tr),{},{defaultValue:Pt(Qs,Ra)||void 0})}return ke.createElement(Ft.Provider,{value:{inRange:!0,panelPosition:Eo,rangedValue:lt||Sa,hoverRangedValue:qo}},ke.createElement(ga,(0,Me.Z)({},We,Rr,{cellRender:Ho,showTime:Ka,mode:oc[Ra],generateConfig:Un,style:void 0,direction:Ns,disabledDate:Ra===0?Wd:$d,disabledTime:function(Xl){return ss?ss(Xl,Ra===0?"start":"end"):!1},className:nn()((0,pt.Z)({},"".concat(Pn,"-panel-focused"),Ra===0?!wo:!Xo)),value:Pt(Sa,Ra),locale:ji,tabIndex:-1,onPanelChange:function(Xl,sc){Ra===0&&Po(!0),Ra===1&&po(!0),dd(Di(oc,sc,Ra),Di(Sa,Xl,Ra));var Jl=Xl;Eo==="right"&&oc[Ra]===sc&&(Jl=bn(Jl,sc,Un,-1)),mc(Jl,Ra)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Ra===0?Pt(Sa,1):Pt(Sa,0)})))}var ts=0,fs=0;if(Ra&&cl.current&&Ia.current&&El.current&&Ll.current){ts=cl.current.offsetWidth+Ia.current.offsetWidth;var al=Ll.current.offsetLeft>ts?Ll.current.offsetLeft-ts:Ll.current.offsetLeft,Xs=El.current.offsetWidth,Os=Ll.current.offsetWidth;Xs&&Os&&ts>Xs-Os-(Ns==="rtl"?0:al)&&(fs=ts)}var eo=Ns==="rtl"?{right:ts}:{left:ts};function qa(){var Eo,Rr=Vl(Pn,oc[Ra],As),qo=is({prefixCls:Pn,components:Lc,needConfirmButton:Ds,okDisabled:!Pt(Sa,Ra)||Ga&&Ga(Sa[Ra]),locale:ji,onOk:function(){var vs=Pt(Sa,Ra);vs&&(Na(Sa,Ra),$l==null||$l(Sa),ac(!1,Ra,"confirm"))}});if(uo!=="time"&&!tr){var Ka=pc(Ra),Qs=bn(Ka,uo,Un),Sc=oc[Ra],Xl=Sc===uo,sc=Ko(Xl?"left":!1,{pickerValue:Ka,onPickerValueChange:function(vs){mc(vs,Ra)}}),Jl=Ko("right",{pickerValue:Qs,onPickerValueChange:function(vs){mc(bn(vs,uo,Un,-1),Ra)}});Ns==="rtl"?Eo=ke.createElement(ke.Fragment,null,Jl,Xl&&sc):Eo=ke.createElement(ke.Fragment,null,sc,Xl&&Jl)}else Eo=Ko();var nd=ke.createElement("div",{className:"".concat(Pn,"-panel-layout")},ke.createElement(xu,{prefixCls:Pn,presets:Wa,onClick:function(vs){Na(vs,null),ac(!1,Ra,"preset")},onHover:function(vs){ot(vs)}}),ke.createElement("div",null,ke.createElement("div",{className:"".concat(Pn,"-panels")},Eo),(Rr||qo)&&ke.createElement("div",{className:"".concat(Pn,"-footer")},Rr,qo)));return zs&&(nd=zs(nd)),ke.createElement("div",{className:"".concat(Pn,"-panel-container"),style:{marginLeft:fs},ref:El,onMouseDown:function(vs){vs.preventDefault()}},nd)}var sl=ke.createElement("div",{className:nn()("".concat(Pn,"-range-wrapper"),"".concat(Pn,"-").concat(uo,"-range-wrapper")),style:{minWidth:ol}},ke.createElement("div",{ref:Ll,className:"".concat(Pn,"-range-arrow"),style:eo}),qa()),Kl;Eu&&(Kl=ke.createElement("span",{className:"".concat(Pn,"-suffix"),onMouseDown:function(Rr){Rr.preventDefault()}},Eu));var La=xd(Pn,Rl,Ma),Ro=ke.createElement("span",{onMouseDown:function(Rr){Rr.preventDefault(),Rr.stopPropagation()},onMouseUp:function(Rr){Rr.preventDefault(),Rr.stopPropagation();var qo=Ps;Us[0]||(qo=Di(qo,null,0)),Us[1]||(qo=Di(qo,null,1)),Na(qo,null),ac(!1,Ra,"clear")},className:"".concat(Pn,"-clear"),role:"button"},La),na=Rl&&(Pt(Ps,0)&&!Us[0]||Pt(Ps,1)&&!Us[1]),Yl={size:xo(uo,gu[0],Un)},Ru=0,tc=0;cl.current&&tu.current&&Ia.current&&(Ra===0?tc=cl.current.offsetWidth:(Ru=ts,tc=tu.current.offsetWidth));var fa=Ns==="rtl"?{right:Ru}:{left:Ru},Za=function(Rr,qo){var Ka=Di(Sa,Rr,Ra);if(qo==="submit"||qo!=="key"&&!Ds){Na(Ka,Ra),Ra===0?Po():po();var Qs=Ra===0?1:0;Us[Qs]?ac(!1,!1,"confirm"):ac(!1,Ra,"confirm")}else Ao(Ka)};return ke.createElement(Oi.Provider,{value:{operationRef:Qu,hideHeader:uo==="time",onDateMouseEnter:lr,onDateMouseLeave:ma,hideRanges:!0,onSelect:Za,open:ka}},ke.createElement(Su,{visible:ka,popupElement:sl,popupStyle:$i,prefixCls:Pn,dropdownClassName:mi,dropdownAlign:ci,getPopupContainer:hr,transitionName:Gi,range:!0,direction:Ns},ke.createElement("div",(0,Me.Z)({ref:Ts,className:nn()(Pn,"".concat(Pn,"-range"),yi,(Ze={},(0,pt.Z)(Ze,"".concat(Pn,"-disabled"),Us[0]&&Us[1]),(0,pt.Z)(Ze,"".concat(Pn,"-focused"),Ra===0?$n:Cr),(0,pt.Z)(Ze,"".concat(Pn,"-rtl"),Ns==="rtl"),Ze)),style:ni,onClick:Ha,onMouseEnter:Da,onMouseLeave:Gu,onMouseDown:ls,onMouseUp:Sl},(0,Ce.Z)(We,{aria:!0,data:!0})),ke.createElement("div",{className:nn()("".concat(Pn,"-input"),($e={},(0,pt.Z)($e,"".concat(Pn,"-input-active"),Ra===0),(0,pt.Z)($e,"".concat(Pn,"-input-placeholder"),!!Fi),$e)),ref:cl},ke.createElement("input",(0,Me.Z)({id:Hn,disabled:Us[0],readOnly:Pa||typeof gu[0]=="function"||!wo,value:Fi||Fd,onChange:function(Rr){fd(Rr.target.value)},autoFocus:so,placeholder:Pt(cr,0)||"",ref:Zl},ca,Yl,{autoComplete:gc}))),ke.createElement("div",{className:"".concat(Pn,"-range-separator"),ref:Ia},Io),ke.createElement("div",{className:nn()("".concat(Pn,"-input"),(jt={},(0,pt.Z)(jt,"".concat(Pn,"-input-active"),Ra===1),(0,pt.Z)(jt,"".concat(Pn,"-input-placeholder"),!!No),jt)),ref:tu},ke.createElement("input",(0,Me.Z)({disabled:Us[1],readOnly:Pa||typeof gu[0]=="function"||!Xo,value:No||ph,onChange:function(Rr){jh(Rr.target.value)},placeholder:Pt(cr,1)||"",ref:fu},Qo,Yl,{autoComplete:gc}))),ke.createElement("div",{className:"".concat(Pn,"-active-bar"),style:(0,ht.Z)((0,ht.Z)({},fa),{},{width:tc,position:"absolute"})}),Kl,na&&Ro)))}var xs=function(We){(0,Vn.Z)($e,We);var Ze=(0,Mi.Z)($e);function $e(){var jt;(0,vn.Z)(this,$e);for(var Gt=arguments.length,Sn=new Array(Gt),Pn=0;Pn<Gt;Pn++)Sn[Pn]=arguments[Pn];return jt=Ze.call.apply(Ze,[this].concat(Sn)),(0,pt.Z)((0,Si.Z)(jt),"pickerRef",ke.createRef()),(0,pt.Z)((0,Si.Z)(jt),"focus",function(){jt.pickerRef.current&&jt.pickerRef.current.focus()}),(0,pt.Z)((0,Si.Z)(jt),"blur",function(){jt.pickerRef.current&&jt.pickerRef.current.blur()}),jt}return(0,An.Z)($e,[{key:"render",value:function(){return ke.createElement(ku,(0,Me.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),$e}(ke.Component),hu=xs,ic=Od,Ms=Ee(19080),Tl=Ee(36355),Gl=Ee(1684),Yu=Ee(19716),ed=Ee(32441),Jd=Ee(9763),Qh=Ee(33234),Th=Ee(48183),Id=Ee(64993),Ol=Ee(9937),rc=Ee(17313),Il=Ee(47585),Dc=Ee(74207),Pd=Ee(13826),Ul=Ee(92899),qh=Ee(37613),xf=Ee(83116);const wd=(We,Ze,$e,jt)=>{const{lineHeight:Gt}=We,Sn=Math.floor($e*Gt)+2,Pn=Math.max((Ze-Sn)/2,0),Hn=Math.max(Ze-Sn-Pn,0);return{padding:`${Pn}px ${jt}px ${Hn}px`}},hh=We=>{const{componentCls:Ze,pickerCellCls:$e,pickerCellInnerCls:jt,cellHeight:Gt,motionDurationSlow:Sn,borderRadiusSM:Pn,motionDurationMid:Hn,cellHoverBg:ni,lineWidth:yi,lineType:$i,colorPrimary:mi,cellActiveWithRangeBg:Gi,colorTextLightSolid:ci,controlHeightSM:hr,cellRangeBorderColor:Un,pickerCellBorderGap:ji,cellHoverWithRangeBg:cr,cellWidth:so,colorTextDisabled:Zr,cellBgDisabled:fo}=We;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Gt,transform:"translateY(-50%)",transition:`all ${Sn}`,content:'""'},[jt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Gt,height:Gt,lineHeight:`${Gt}px`,borderRadius:Pn,transition:`background ${Hn}, border ${Hn}`},"&-range-hover-start, &-range-hover-end":{[jt]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${$e}-in-view),
|
|
&:hover:not(${$e}-selected):not(${$e}-range-start):not(${$e}-range-end):not(${$e}-range-hover-start):not(${$e}-range-hover-end)`]:{[jt]:{background:ni}},[`&-in-view${$e}-today ${jt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${yi}px ${$i} ${mi}`,borderRadius:Pn,content:'""'}},[`&-in-view${$e}-in-range`]:{position:"relative","&::before":{background:Gi}},[`&-in-view${$e}-selected ${jt},
|
|
&-in-view${$e}-range-start ${jt},
|
|
&-in-view${$e}-range-end ${jt}`]:{color:ci,background:mi},[`&-in-view${$e}-range-start:not(${$e}-range-start-single),
|
|
&-in-view${$e}-range-end:not(${$e}-range-end-single)`]:{"&::before":{background:Gi}},[`&-in-view${$e}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${$e}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${$e}-range-hover-start:not(${$e}-in-range):not(${$e}-range-start):not(${$e}-range-end),
|
|
&-in-view${$e}-range-hover-end:not(${$e}-in-range):not(${$e}-range-start):not(${$e}-range-end),
|
|
&-in-view${$e}-range-hover-start${$e}-range-start-single,
|
|
&-in-view${$e}-range-hover-start${$e}-range-start${$e}-range-end${$e}-range-end-near-hover,
|
|
&-in-view${$e}-range-hover-end${$e}-range-start${$e}-range-end${$e}-range-start-near-hover,
|
|
&-in-view${$e}-range-hover-end${$e}-range-end-single,
|
|
&-in-view${$e}-range-hover:not(${$e}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:hr,borderTop:`${yi}px dashed ${Un}`,borderBottom:`${yi}px dashed ${Un}`,transform:"translateY(-50%)",transition:`all ${Sn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:ji},[`&-in-view${$e}-in-range${$e}-range-hover::before,
|
|
&-in-view${$e}-in-range${$e}-range-hover-start::before,
|
|
&-in-view${$e}-in-range${$e}-range-hover-end::before,
|
|
&-in-view${$e}-range-start${$e}-range-hover::before,
|
|
&-in-view${$e}-range-end${$e}-range-hover::before,
|
|
&-in-view${$e}-range-start:not(${$e}-range-start-single)${$e}-range-hover-start::before,
|
|
&-in-view${$e}-range-end:not(${$e}-range-end-single)${$e}-range-hover-end::before,
|
|
${Ze}-panel
|
|
> :not(${Ze}-date-panel)
|
|
&-in-view${$e}-in-range${$e}-range-hover-start::before,
|
|
${Ze}-panel
|
|
> :not(${Ze}-date-panel)
|
|
&-in-view${$e}-in-range${$e}-range-hover-end::before`]:{background:cr},[`&-in-view${$e}-range-start:not(${$e}-range-start-single):not(${$e}-range-end) ${jt}`]:{borderStartStartRadius:Pn,borderEndStartRadius:Pn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${$e}-range-end:not(${$e}-range-end-single):not(${$e}-range-start) ${jt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Pn,borderEndEndRadius:Pn},[`&-range-hover${$e}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${$e}-range-hover:first-child::after,
|
|
tr > &-in-view${$e}-range-hover-end:first-child::after,
|
|
&-in-view${$e}-start${$e}-range-hover-edge-start${$e}-range-hover-edge-start-near-range::after,
|
|
&-in-view${$e}-range-hover-edge-start:not(${$e}-range-hover-edge-start-near-range)::after,
|
|
&-in-view${$e}-range-hover-start::after`]:{insetInlineStart:(so-Gt)/2,borderInlineStart:`${yi}px dashed ${Un}`,borderStartStartRadius:Pn,borderEndStartRadius:Pn},[`tr > &-in-view${$e}-range-hover:last-child::after,
|
|
tr > &-in-view${$e}-range-hover-start:last-child::after,
|
|
&-in-view${$e}-end${$e}-range-hover-edge-end${$e}-range-hover-edge-end-near-range::after,
|
|
&-in-view${$e}-range-hover-edge-end:not(${$e}-range-hover-edge-end-near-range)::after,
|
|
&-in-view${$e}-range-hover-end::after`]:{insetInlineEnd:(so-Gt)/2,borderInlineEnd:`${yi}px dashed ${Un}`,borderStartEndRadius:Pn,borderEndEndRadius:Pn},"&-disabled":{color:Zr,pointerEvents:"none",[jt]:{background:"transparent"},"&::before":{background:fo}},[`&-disabled${$e}-today ${jt}::before`]:{borderColor:Zr}}},Vu=We=>{const{componentCls:Ze,pickerCellCls:$e,pickerCellInnerCls:jt,pickerYearMonthCellWidth:Gt,pickerControlIconSize:Sn,cellWidth:Pn,paddingSM:Hn,paddingXS:ni,paddingXXS:yi,colorBgContainer:$i,lineWidth:mi,lineType:Gi,borderRadiusLG:ci,colorPrimary:hr,colorTextHeading:Un,colorSplit:ji,pickerControlIconBorderWidth:cr,colorIcon:so,textHeight:Zr,motionDurationMid:fo,colorIconHover:vo,fontWeightStrong:uo,cellHeight:tr,pickerCellPaddingVertical:Ca,colorTextDisabled:ia,colorText:Io,fontSize:cs,cellHoverWithRangeBg:$a,motionDurationSlow:Ja,withoutTimeCellHeight:js,pickerQuarterPanelContentHeight:es,colorLink:Ga,colorLinkActive:ss,colorLinkHover:ks,cellRangeBorderColor:_s,borderRadiusSM:ds,colorTextLightSolid:zs,cellHoverBg:vl,timeColumnHeight:yl,timeColumnWidth:Nu,timeCellHeight:Rl,controlItemBgActive:Eu,marginXXS:Ma,pickerDatePanelPaddingHorizontal:Vs}=We,Pa=Pn*7+Vs*2,Bs=(Pa-ni*2)/3-Gt-Hn,As=(Pa-ni*2)/4-Gt;return{[Ze]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:$i,border:`${mi}px ${Gi} ${ji}`,borderRadius:ci,outline:"none","&-focused":{borderColor:hr},"&-rtl":{direction:"rtl",[`${Ze}-prev-icon,
|
|
${Ze}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Ze}-next-icon,
|
|
${Ze}-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:Pa},"&-header":{display:"flex",padding:`0 ${ni}px`,color:Un,borderBottom:`${mi}px ${Gi} ${ji}`,"> *":{flex:"none"},button:{padding:0,color:so,lineHeight:`${Zr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${fo}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:cs,"&:hover":{color:vo}},"&-view":{flex:"auto",fontWeight:uo,lineHeight:`${Zr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:ni},"&:hover":{color:hr}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Sn,height:Sn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Sn,height:Sn,border:"0 solid currentcolor",borderBlockStartWidth:cr,borderBlockEndWidth:0,borderInlineStartWidth:cr,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Sn/2),insetInlineStart:Math.ceil(Sn/2),display:"inline-block",width:Sn,height:Sn,border:"0 solid currentcolor",borderBlockStartWidth:cr,borderBlockEndWidth:0,borderInlineStartWidth:cr,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:tr,fontWeight:"normal"},th:{height:tr+Ca*2,color:Io,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ca}px 0`,color:ia,cursor:"pointer","&-in-view":{color:Io}},hh(We)),[`&-date-panel ${Ze}-cell-in-view${Ze}-cell-in-range${Ze}-cell-range-hover-start ${jt},
|
|
&-date-panel ${Ze}-cell-in-view${Ze}-cell-in-range${Ze}-cell-range-hover-end ${jt}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:$a,transition:`all ${Ja}`,content:'""'}},[`&-date-panel
|
|
${Ze}-cell-in-view${Ze}-cell-in-range${Ze}-cell-range-hover-start
|
|
${jt}::after`]:{insetInlineEnd:-(Pn-tr)/2,insetInlineStart:0},[`&-date-panel ${Ze}-cell-in-view${Ze}-cell-in-range${Ze}-cell-range-hover-end ${jt}::after`]:{insetInlineEnd:0,insetInlineStart:-(Pn-tr)/2},[`&-range-hover${Ze}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ze}-content`]:{height:js*4},[jt]:{padding:`0 ${ni}px`}},"&-quarter-panel":{[`${Ze}-content`]:{height:es},[`${Ze}-cell-range-hover-start::after`]:{insetInlineStart:As,borderInlineStart:`${mi}px dashed ${_s}`,[`${Ze}-panel-rtl &`]:{insetInlineEnd:As,borderInlineEnd:`${mi}px dashed ${_s}`}},[`${Ze}-cell-range-hover-end::after`]:{insetInlineEnd:As,borderInlineEnd:`${mi}px dashed ${_s}`,[`${Ze}-panel-rtl &`]:{insetInlineStart:As,borderInlineStart:`${mi}px dashed ${_s}`}}},[`&-panel ${Ze}-footer`]:{borderTop:`${mi}px ${Gi} ${ji}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Zr-2*mi}px`,textAlign:"center","&-extra":{padding:`0 ${Hn}px`,lineHeight:`${Zr-2*mi}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${mi}px ${Gi} ${ji}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:Ga,"&:hover":{color:ks},"&:active":{color:ss},[`&${Ze}-today-btn-disabled`]:{color:ia,cursor:"not-allowed"}},"&-decade-panel":{[jt]:{padding:`0 ${ni/2}px`},[`${Ze}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ze}-body`]:{padding:`0 ${ni}px`},[jt]:{width:Gt},[`${Ze}-cell-range-hover-start::after`]:{borderStartStartRadius:ds,borderEndStartRadius:ds,borderStartEndRadius:0,borderEndEndRadius:0,[`${Ze}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ds,borderEndEndRadius:ds}},[`${Ze}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ds,borderEndEndRadius:ds,[`${Ze}-panel-rtl &`]:{borderStartStartRadius:ds,borderEndStartRadius:ds,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Ze}-cell-range-hover-start::after`]:{insetInlineStart:Bs,borderInlineStart:`${mi}px dashed ${_s}`,[`${Ze}-panel-rtl &`]:{insetInlineEnd:Bs,borderInlineEnd:`${mi}px dashed ${_s}`}},[`${Ze}-cell-range-hover-end::after`]:{insetInlineEnd:Bs,borderInlineEnd:`${mi}px dashed ${_s}`,[`${Ze}-panel-rtl &`]:{insetInlineStart:Bs,borderInlineStart:`${mi}px dashed ${_s}`}}},"&-week-panel":{[`${Ze}-body`]:{padding:`${ni}px ${Hn}px`},[`${Ze}-cell`]:{[`&:hover ${jt},
|
|
&-selected ${jt},
|
|
${jt}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${fo}`},"&:first-child:before":{borderStartStartRadius:ds,borderEndStartRadius:ds},"&:last-child:before":{borderStartEndRadius:ds,borderEndEndRadius:ds}},"&:hover td":{"&:before":{background:vl}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${$e}`]:{"&:before":{background:hr},[`&${Ze}-cell-week`]:{color:new Id.C(zs).setAlpha(.5).toHexString()},[jt]:{color:zs}}},"&-range-hover td:before":{background:Eu}}},"&-date-panel":{[`${Ze}-body`]:{padding:`${ni}px ${Vs}px`},[`${Ze}-content`]:{width:Pn*7,th:{width:Pn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Ze}-time-panel`]:{borderInlineStart:`${mi}px ${Gi} ${ji}`},[`${Ze}-date-panel,
|
|
${Ze}-time-panel`]:{transition:`opacity ${Ja}`},"&-active":{[`${Ze}-date-panel,
|
|
${Ze}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Ze}-content`]:{display:"flex",flex:"auto",height:yl},"&-column":{flex:"1 0 auto",width:Nu,margin:`${yi}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${fo}`,overflowX:"hidden","&::after":{display:"block",height:yl-Rl,content:'""'},"&:not(:first-child)":{borderInlineStart:`${mi}px ${Gi} ${ji}`},"&-active":{background:new Id.C(Eu).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Ze}-time-panel-cell`]:{marginInline:Ma,[`${Ze}-time-panel-cell-inner`]:{display:"block",width:Nu-2*Ma,height:Rl,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Nu-Rl)/2,color:Io,lineHeight:`${Rl}px`,borderRadius:ds,cursor:"pointer",transition:`background ${fo}`,"&:hover":{background:vl}},"&-selected":{[`${Ze}-time-panel-cell-inner`]:{background:Eu}},"&-disabled":{[`${Ze}-time-panel-cell-inner`]:{color:ia,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Ze}-time-panel-column:after`]:{height:yl-Rl+yi*2}}}},_u=We=>{const{componentCls:Ze,colorBgContainer:$e,colorError:jt,errorActiveShadow:Gt,colorWarning:Sn,warningActiveShadow:Pn}=We;return{[`${Ze}:not(${Ze}-disabled)`]:{[`&${Ze}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:$e,borderColor:jt},[`&${Ze}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,qh.TS)(We,{activeBorderColor:jt,activeShadow:Gt}))),[`${Ze}-active-bar`]:{background:jt}},[`&${Ze}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:$e,borderColor:Sn},[`&${Ze}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,qh.TS)(We,{activeBorderColor:Sn,activeShadow:Pn}))),[`${Ze}-active-bar`]:{background:Sn}}}}},ul=We=>{const{componentCls:Ze,antCls:$e,controlHeight:jt,fontSize:Gt,paddingInline:Sn,colorBgContainer:Pn,lineWidth:Hn,lineType:ni,colorBorder:yi,borderRadius:$i,motionDurationMid:mi,colorBgContainerDisabled:Gi,colorTextDisabled:ci,colorTextPlaceholder:hr,controlHeightLG:Un,fontSizeLG:ji,controlHeightSM:cr,paddingInlineSM:so,paddingXS:Zr,marginXS:fo,colorTextDescription:vo,lineWidthBold:uo,lineHeight:tr,colorPrimary:Ca,motionDurationSlow:ia,zIndexPopup:Io,paddingXXS:cs,paddingSM:$a,textHeight:Ja,cellActiveWithRangeBg:js,colorPrimaryBorder:es,sizePopupArrow:Ga,borderRadiusXS:ss,borderRadiusOuter:ks,colorBgElevated:_s,borderRadiusLG:ds,boxShadowSecondary:zs,borderRadiusSM:vl,colorSplit:yl,cellHoverBg:Nu,presetsWidth:Rl,presetsMaxWidth:Eu,boxShadowPopoverArrow:Ma,colorTextQuaternary:Vs}=We;return[{[Ze]:Object.assign(Object.assign(Object.assign({},(0,rc.Wf)(We)),wd(We,jt,Gt,Sn)),{position:"relative",display:"inline-flex",alignItems:"center",background:Pn,lineHeight:1,border:`${Hn}px ${ni} ${yi}`,borderRadius:$i,transition:`border ${mi}, box-shadow ${mi}`,"&:hover, &-focused":Object.assign({},(0,Ol.pU)(We)),"&-focused":Object.assign({},(0,Ol.M1)(We)),[`&${Ze}-disabled`]:{background:Gi,borderColor:yi,cursor:"not-allowed",[`${Ze}-suffix`]:{color:Vs}},[`&${Ze}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Ze}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Ol.ik)(We)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Ze}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:hr}}},"&-large":Object.assign(Object.assign({},wd(We,Un,ji,Sn)),{[`${Ze}-input > input`]:{fontSize:ji}}),"&-small":Object.assign({},wd(We,cr,Gt,so)),[`${Ze}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Zr/2,color:ci,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:fo}}},[`${Ze}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:ci,lineHeight:1,background:Pn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${mi}, color ${mi}`,"> *":{verticalAlign:"top"},"&:hover":{color:vo}},[`${Ze}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ji,color:ci,fontSize:ji,verticalAlign:"top",cursor:"default",[`${Ze}-focused &`]:{color:vo},[`${Ze}-range-separator &`]:{[`${Ze}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Ze}-clear`]:{insetInlineEnd:Sn},"&:hover":{[`${Ze}-clear`]:{opacity:1}},[`${Ze}-active-bar`]:{bottom:-Hn,height:uo,marginInlineStart:Sn,background:Ca,opacity:0,transition:`all ${ia} ease-out`,pointerEvents:"none"},[`&${Ze}-focused`]:{[`${Ze}-active-bar`]:{opacity:1}},[`${Ze}-range-separator`]:{alignItems:"center",padding:`0 ${Zr}px`,lineHeight:1},[`&${Ze}-small`]:{[`${Ze}-clear`]:{insetInlineEnd:so},[`${Ze}-active-bar`]:{marginInlineStart:so}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,rc.Wf)(We)),Vu(We)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Io,[`&${Ze}-dropdown-hidden`]:{display:"none"},[`&${Ze}-dropdown-placement-bottomLeft`]:{[`${Ze}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Ze}-dropdown-placement-topLeft`]:{[`${Ze}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ze}-dropdown-placement-topLeft,
|
|
&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ze}-dropdown-placement-topRight,
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ze}-dropdown-placement-topLeft,
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ze}-dropdown-placement-topRight`]:{animationName:Pd.Qt},[`&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ze}-dropdown-placement-bottomLeft,
|
|
&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ze}-dropdown-placement-bottomRight,
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ze}-dropdown-placement-bottomLeft,
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ze}-dropdown-placement-bottomRight`]:{animationName:Pd.fJ},[`&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ze}-dropdown-placement-topLeft,
|
|
&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ze}-dropdown-placement-topRight`]:{animationName:Pd.ly},[`&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ze}-dropdown-placement-bottomLeft,
|
|
&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ze}-dropdown-placement-bottomRight`]:{animationName:Pd.Uw},[`${Ze}-panel > ${Ze}-time-panel`]:{paddingTop:cs},[`${Ze}-ranges`]:{marginBottom:0,padding:`${cs}px ${$a}px`,overflow:"hidden",lineHeight:`${Ja-2*Hn-Zr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Ze}-preset > ${$e}-tag-blue`]:{color:Ca,background:js,borderColor:es,cursor:"pointer"},[`${Ze}-ok`]:{marginInlineStart:"auto"}},[`${Ze}-range-wrapper`]:{display:"flex",position:"relative"},[`${Ze}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Sn*1.5,transition:`left ${ia} ease-out`},(0,Il.r)(Ga,ss,ks,_s,Ma)),[`${Ze}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:_s,borderRadius:ds,boxShadow:zs,transition:`margin ${ia}`,[`${Ze}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Ze}-presets`]:{display:"flex",flexDirection:"column",minWidth:Rl,maxWidth:Eu,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Zr,borderInlineEnd:`${Hn}px ${ni} ${yl}`,li:Object.assign(Object.assign({},rc.vS),{borderRadius:vl,paddingInline:Zr,paddingBlock:(cr-Math.round(Gt*tr))/2,cursor:"pointer",transition:`all ${ia}`,"+ li":{marginTop:fo},"&:hover":{background:Nu}})}},[`${Ze}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Ze}-panel`]:{borderWidth:`0 0 ${Hn}px`},"&:last-child":{[`${Ze}-panel`]:{borderWidth:0}}},[`${Ze}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Ze}-content,
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:yi}}}}),"&-dropdown-range":{padding:`${Ga*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ze}-separator`]:{transform:"rotate(180deg)"},[`${Ze}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Pd.oN)(We,"slide-up"),(0,Pd.oN)(We,"slide-down"),(0,Ul.Fm)(We,"move-up"),(0,Ul.Fm)(We,"move-down")]},ou=We=>{const{componentCls:Ze,controlHeightLG:$e,paddingXXS:jt,padding:Gt}=We;return{pickerCellCls:`${Ze}-cell`,pickerCellInnerCls:`${Ze}-cell-inner`,pickerYearMonthCellWidth:$e*1.5,pickerQuarterPanelContentHeight:$e*1.4,pickerCellPaddingVertical:jt+jt/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Gt+jt/2}},Oh=We=>({cellHoverBg:We.controlItemBgHover,cellActiveWithRangeBg:We.controlItemBgActive,cellHoverWithRangeBg:new Id.C(We.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Id.C(We.colorPrimary).lighten(20).toHexString(),cellBgDisabled:We.colorBgContainerDisabled,timeColumnWidth:We.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:We.controlHeightSM*1.5,cellHeight:We.controlHeightSM,textHeight:We.controlHeightLG,withoutTimeCellHeight:We.controlHeightLG*1.65});var Qd=(0,xf.Z)("DatePicker",We=>{const Ze=(0,qh.TS)((0,Ol.e5)(We),ou(We));return[ul(Ze),_u(Ze),(0,Dc.c)(We,{focusElCls:`${We.componentCls}-focused`})]},We=>Object.assign(Object.assign(Object.assign({},(0,Ol.TM)(We)),Oh(We)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:We.zIndexPopupBase+50}));function pl(We,Ze,$e){return $e!==void 0?$e:Ze==="year"&&We.lang.yearPlaceholder?We.lang.yearPlaceholder:Ze==="quarter"&&We.lang.quarterPlaceholder?We.lang.quarterPlaceholder:Ze==="month"&&We.lang.monthPlaceholder?We.lang.monthPlaceholder:Ze==="week"&&We.lang.weekPlaceholder?We.lang.weekPlaceholder:Ze==="time"&&We.timePickerLocale.placeholder?We.timePickerLocale.placeholder:We.lang.placeholder}function $h(We,Ze,$e){return $e!==void 0?$e:Ze==="year"&&We.lang.yearPlaceholder?We.lang.rangeYearPlaceholder:Ze==="quarter"&&We.lang.quarterPlaceholder?We.lang.rangeQuarterPlaceholder:Ze==="month"&&We.lang.monthPlaceholder?We.lang.rangeMonthPlaceholder:Ze==="week"&&We.lang.weekPlaceholder?We.lang.rangeWeekPlaceholder:Ze==="time"&&We.timePickerLocale.placeholder?We.timePickerLocale.rangePlaceholder:We.lang.rangePlaceholder}function qd(We,Ze){const $e={adjustX:1,adjustY:1};switch(Ze){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:$e};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:$e};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:$e};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:$e};default:return{points:We==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:$e}}}function Rd(We){return We?Array.isArray(We)?We:[We]:[]}function qr(We){const{format:Ze,picker:$e,showHour:jt,showMinute:Gt,showSecond:Sn,use12Hours:Pn}=We,Hn=Rd(Ze)[0],ni=Object.assign({},We);return Ze&&Array.isArray(Ze)&&(ni.format=Hn),Hn&&typeof Hn=="string"&&(!Hn.includes("s")&&Sn===void 0&&(ni.showSecond=!1),!Hn.includes("m")&&Gt===void 0&&(ni.showMinute=!1),!Hn.includes("H")&&!Hn.includes("h")&&!Hn.includes("K")&&!Hn.includes("k")&&jt===void 0&&(ni.showHour=!1),(Hn.includes("a")||Hn.includes("A"))&&Pn===void 0&&(ni.use12Hours=!0)),$e==="time"?ni:(typeof Hn=="function"&&delete ni.format,{showTime:ni})}function Ih(We,Ze,$e){if(We===!1)return!1;const jt={clearIcon:Ze!=null?Ze:$e};return typeof We=="object"?Object.assign(Object.assign({},jt),We):jt}var Dt=Ee(3113);function si(We){return ke.createElement(Dt.ZP,Object.assign({size:"small",type:"primary"},We))}var Rh={button:si},cd=function(We,Ze){var $e={};for(var jt in We)Object.prototype.hasOwnProperty.call(We,jt)&&Ze.indexOf(jt)<0&&($e[jt]=We[jt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,jt=Object.getOwnPropertySymbols(We);Gt<jt.length;Gt++)Ze.indexOf(jt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(We,jt[Gt])&&($e[jt[Gt]]=We[jt[Gt]]);return $e};function hc(We){return(0,ke.forwardRef)(($e,jt)=>{const{prefixCls:Gt,getPopupContainer:Sn,className:Pn,placement:Hn,size:ni,disabled:yi,bordered:$i=!0,placeholder:mi,popupClassName:Gi,dropdownClassName:ci,status:hr,clearIcon:Un,allowClear:ji,rootClassName:cr}=$e,so=cd($e,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Zr=ke.useRef(null),{getPrefixCls:fo,direction:vo,getPopupContainer:uo}=(0,ke.useContext)(Tl.E_),tr=fo("picker",Gt),{compactSize:Ca,compactItemClassnames:ia}=(0,Qh.ri)(tr,vo),{format:Io,showTime:cs,picker:$a}=$e,Ja=fo(),[js,es]=Qd(tr),Ga=Object.assign(Object.assign({},cs?qr(Object.assign({format:Io,picker:$a},cs)):{}),$a==="time"?qr(Object.assign(Object.assign({format:Io},$e),{picker:$a})):{}),ss=(0,Yu.Z)(Ma=>{var Vs;return(Vs=ni!=null?ni:Ca)!==null&&Vs!==void 0?Vs:Ma}),ks=ke.useContext(Gl.Z),_s=yi!=null?yi:ks,ds=(0,ke.useContext)(ed.aM),{hasFeedback:zs,status:vl,feedbackIcon:yl}=ds,Nu=ke.createElement(ke.Fragment,null,$a==="time"?ke.createElement(ui,null):ke.createElement(Et,null),zs&&yl);(0,ke.useImperativeHandle)(jt,()=>({focus:()=>{var Ma;return(Ma=Zr.current)===null||Ma===void 0?void 0:Ma.focus()},blur:()=>{var Ma;return(Ma=Zr.current)===null||Ma===void 0?void 0:Ma.blur()}}));const[Rl]=(0,Jd.Z)("Calendar",Th.Z),Eu=Object.assign(Object.assign({},Rl),$e.locale);return js(ke.createElement(hu,Object.assign({separator:ke.createElement("span",{"aria-label":"to",className:`${tr}-separator`},ke.createElement(Xn,null)),disabled:_s,ref:Zr,dropdownAlign:qd(vo,Hn),placeholder:$h(Eu,$a,mi),suffixIcon:Nu,prevIcon:ke.createElement("span",{className:`${tr}-prev-icon`}),nextIcon:ke.createElement("span",{className:`${tr}-next-icon`}),superPrevIcon:ke.createElement("span",{className:`${tr}-super-prev-icon`}),superNextIcon:ke.createElement("span",{className:`${tr}-super-next-icon`}),transitionName:`${Ja}-slide-up`},so,Ga,{className:nn()({[`${tr}-${ss}`]:ss,[`${tr}-borderless`]:!$i},(0,Ms.Z)(tr,(0,Ms.F)(vl,hr),zs),es,ia,Pn,cr),locale:Eu.lang,prefixCls:tr,getPopupContainer:Sn||uo,generateConfig:We,components:Rh,direction:vo,dropdownClassName:nn()(es,Gi||ci,cr),allowClear:Ih(ji,Un,ke.createElement(Bn.Z,null))})))})}var Au=function(We,Ze){var $e={};for(var jt in We)Object.prototype.hasOwnProperty.call(We,jt)&&Ze.indexOf(jt)<0&&($e[jt]=We[jt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,jt=Object.getOwnPropertySymbols(We);Gt<jt.length;Gt++)Ze.indexOf(jt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(We,jt[Gt])&&($e[jt[Gt]]=We[jt[Gt]]);return $e};function Gc(We){function Ze(ni,yi){const $i=yi==="TimePicker"?"timePicker":"datePicker",mi=(0,ke.forwardRef)((Gi,ci)=>{const{prefixCls:hr,getPopupContainer:Un,style:ji,className:cr,rootClassName:so,size:Zr,bordered:fo=!0,placement:vo,placeholder:uo,popupClassName:tr,dropdownClassName:Ca,disabled:ia,status:Io,clearIcon:cs,allowClear:$a}=Gi,Ja=Au(Gi,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:js,direction:es,getPopupContainer:Ga,[$i]:ss}=(0,ke.useContext)(Tl.E_),ks=js("picker",hr),{compactSize:_s,compactItemClassnames:ds}=(0,Qh.ri)(ks,es),zs=ke.useRef(null),{format:vl,showTime:yl}=Gi,[Nu,Rl]=Qd(ks);(0,ke.useImperativeHandle)(ci,()=>({focus:()=>{var Da;return(Da=zs.current)===null||Da===void 0?void 0:Da.focus()},blur:()=>{var Da;return(Da=zs.current)===null||Da===void 0?void 0:Da.blur()}}));const Eu={showToday:!0};let Ma={};ni&&(Ma.picker=ni);const Vs=ni||Gi.picker;Ma=Object.assign(Object.assign(Object.assign({},Ma),yl?qr(Object.assign({format:vl,picker:Vs},yl)):{}),Vs==="time"?qr(Object.assign(Object.assign({format:vl},Gi),{picker:Vs})):{});const Pa=js(),Bs=(0,Yu.Z)(Da=>{var Gu;return(Gu=Zr!=null?Zr:_s)!==null&&Gu!==void 0?Gu:Da}),As=ke.useContext(Gl.Z),Gs=ia!=null?ia:As,Tu=(0,ke.useContext)(ed.aM),{hasFeedback:aa,status:Ys,feedbackIcon:Dl}=Tu,su=ke.createElement(ke.Fragment,null,Vs==="time"?ke.createElement(ui,null):ke.createElement(Et,null),aa&&Dl),[pa]=(0,Jd.Z)("DatePicker",Th.Z),Sl=Object.assign(Object.assign({},pa),Gi.locale);return Nu(ke.createElement(ic,Object.assign({ref:zs,placeholder:pl(Sl,Vs,uo),suffixIcon:su,dropdownAlign:qd(es,vo),prevIcon:ke.createElement("span",{className:`${ks}-prev-icon`}),nextIcon:ke.createElement("span",{className:`${ks}-next-icon`}),superPrevIcon:ke.createElement("span",{className:`${ks}-super-prev-icon`}),superNextIcon:ke.createElement("span",{className:`${ks}-super-next-icon`}),transitionName:`${Pa}-slide-up`},Eu,Ja,Ma,{locale:Sl.lang,className:nn()({[`${ks}-${Bs}`]:Bs,[`${ks}-borderless`]:!fo},(0,Ms.Z)(ks,(0,Ms.F)(Ys,Io),aa),Rl,ds,ss==null?void 0:ss.className,cr,so),style:Object.assign(Object.assign({},ss==null?void 0:ss.style),ji),prefixCls:ks,getPopupContainer:Un||Ga,generateConfig:We,components:Rh,direction:es,disabled:Gs,dropdownClassName:nn()(Rl,so,tr||Ca),allowClear:Ih($a,cs,ke.createElement(Bn.Z,null))})))});return yi&&(mi.displayName=yi),mi}const $e=Ze(),jt=Ze("week","WeekPicker"),Gt=Ze("month","MonthPicker"),Sn=Ze("year","YearPicker"),Pn=Ze("time","TimePicker"),Hn=Ze("quarter","QuarterPicker");return{DatePicker:$e,WeekPicker:jt,MonthPicker:Gt,YearPicker:Sn,TimePicker:Pn,QuarterPicker:Hn}}const tf=null;function el(We){const{DatePicker:Ze,WeekPicker:$e,MonthPicker:jt,YearPicker:Gt,TimePicker:Sn,QuarterPicker:Pn}=Gc(We),Hn=hc(We),ni=Ze;return ni.WeekPicker=$e,ni.MonthPicker=jt,ni.YearPicker=Gt,ni.RangePicker=Hn,ni.TimePicker=Sn,ni.QuarterPicker=Pn,ni}var Zo=el;const au=Zo(Se);function Xu(We){const Ze=qd(We.direction,We.placement);return Ze.overflow.adjustY=!1,Ze.overflow.adjustX=!1,Object.assign(Object.assign({},We),{dropdownAlign:Ze})}const tl=(0,Ae.Z)(au,"picker",null,Xu);au._InternalPanelDoNotUseOrYouWillBeFired=tl;const Oa=(0,Ae.Z)(au.RangePicker,"picker",null,Xu);au._InternalRangePanelDoNotUseOrYouWillBeFired=Oa,au.generatePicker=Zo;var ml=au},28103:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Ot}});var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(59301),Nt=Ee(36355),Bt=Ee(17313),vt=Ee(83116),Ue=Ee(37613);const bt=Ut=>{const{componentCls:Te,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:de,textPaddingInline:le,orientationMargin:pe,verticalMarginInline:Se}=Ut;return{[Te]:Object.assign(Object.assign({},(0,Bt.Wf)(Ut)),{borderBlockStart:`${de}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Se,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${Te}-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${Te}-with-text-left`]:{"&::before":{width:`${pe*100}%`},"&::after":{width:`${100-pe*100}%`}},[`&-horizontal${Te}-with-text-right`]:{"&::before":{width:`${100-pe*100}%`},"&::after":{width:`${pe*100}%`}},[`${Te}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:le},"&-dashed":{background:"none",borderColor:ne,borderStyle:"dashed",borderWidth:`${de}px 0 0`},[`&-horizontal${Te}-with-text${Te}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Te}-dashed`]:{borderInlineStartWidth:de,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Te}-with-text`]:{color:Ut.colorText,fontWeight:"normal",fontSize:Ut.fontSize},[`&-horizontal${Te}-with-text-left${Te}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Te}-inner-text`]:{paddingInlineStart:te}},[`&-horizontal${Te}-with-text-right${Te}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Te}-inner-text`]:{paddingInlineEnd:te}}})}};var Ct=(0,vt.Z)("Divider",Ut=>{const Te=(0,Ue.TS)(Ut,{dividerHorizontalWithTextGutterMargin:Ut.margin,dividerHorizontalGutterMargin:Ut.marginLG,sizePaddingEdgeHorizontal:0});return[bt(Te)]},Ut=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ut.marginXS})),yt=function(Ut,Te){var te={};for(var ne in Ut)Object.prototype.hasOwnProperty.call(Ut,ne)&&Te.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++)Te.indexOf(ne[de])<0&&Object.prototype.propertyIsEnumerable.call(Ut,ne[de])&&(te[ne[de]]=Ut[ne[de]]);return te},Ot=Ut=>{const{getPrefixCls:Te,direction:te,divider:ne}=Lt.useContext(Nt.E_),{prefixCls:de,type:le="horizontal",orientation:pe="center",orientationMargin:Se,className:Ae,rootClassName:Me,children:ke,dashed:st,plain:dt,style:xt}=Ut,ut=yt(Ut,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),It=Te("divider",de),[Et,Tt]=Ct(It),Yt=pe.length>0?`-${pe}`:pe,hn=!!ke,vi=pe==="left"&&Se!=null,ui=pe==="right"&&Se!=null,Bn=et()(It,ne==null?void 0:ne.className,Tt,`${It}-${le}`,{[`${It}-with-text`]:hn,[`${It}-with-text${Yt}`]:hn,[`${It}-dashed`]:!!st,[`${It}-plain`]:!!dt,[`${It}-rtl`]:te==="rtl",[`${It}-no-default-orientation-margin-left`]:vi,[`${It}-no-default-orientation-margin-right`]:ui},Ae,Me),di=Lt.useMemo(()=>typeof Se=="number"?Se:/^\d+$/.test(Se)?Number(Se):Se,[Se]),nt=Object.assign(Object.assign({},vi&&{marginLeft:di}),ui&&{marginRight:di});return Et(Lt.createElement("div",Object.assign({className:Bn,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),xt)},ut,{role:"separator"}),ke&&le!=="vertical"&&Lt.createElement("span",{className:`${It}-inner-text`,style:nt},ke)))}},43428:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return pt}});var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(44127),Nt=Ee(72071),Bt=Ee(43403),vt=Ee(34280),Ue=Ee(59301),bt=Ue.createContext(null),Ct=Ue.createContext({}),yt=bt,Zt=Ee(90493),Ot=Ee(96663),Ut=Ee(77900),Te=Ee(10228),te=Ee(26112),ne=Ee(70425),de=function(dn){var Oe=dn.prefixCls,Ce=dn.className,Pe=dn.style,Ie=dn.children,Ke=dn.containerRef,De=dn.id,tt=dn.onMouseEnter,He=dn.onMouseOver,mt=dn.onMouseLeave,Wt=dn.onClick,kt=dn.onKeyDown,yn=dn.onKeyUp,pn={onMouseEnter:tt,onMouseOver:He,onMouseLeave:mt,onClick:Wt,onKeyDown:kt,onKeyUp:yn},mn=Ue.useContext(Ct),Gn=mn.panel,Tn=(0,ne.useComposeRef)(Gn,Ke);return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",(0,Ot.Z)({id:De,className:et()("".concat(Oe,"-content"),Ce),style:(0,Lt.Z)({},Pe),"aria-modal":"true",role:"dialog",ref:Tn},pn),Ie))},le=de,pe=Ee(48736);function Se(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 Me={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ke(ht,dn){var Oe,Ce,Pe,Ie,Ke=ht.prefixCls,De=ht.open,tt=ht.placement,He=ht.inline,mt=ht.push,Wt=ht.forceRender,kt=ht.autoFocus,yn=ht.keyboard,pn=ht.rootClassName,mn=ht.rootStyle,Gn=ht.zIndex,Tn=ht.className,Xt=ht.id,fi=ht.style,Wn=ht.motion,bn=ht.width,Dn=ht.height,Bi=ht.children,On=ht.contentWrapperStyle,Jn=ht.mask,Ki=ht.maskClosable,Pi=ht.maskMotion,ur=ht.maskClassName,lo=ht.maskStyle,jo=ht.afterOpenChange,Oo=ht.onClose,Hr=ht.onMouseEnter,da=ht.onMouseOver,zo=ht.onMouseLeave,Co=ht.onClick,xo=ht.onKeyDown,Nr=ht.onKeyUp,Be=Ue.useRef(),ya=Ue.useRef(),to=Ue.useRef();Ue.useImperativeHandle(dn,function(){return Be.current});var jn=function(Br){var Pt=Br.keyCode,Di=Br.shiftKey;switch(Pt){case Te.Z.TAB:{if(Pt===Te.Z.TAB){if(!Di&&document.activeElement===to.current){var En;(En=ya.current)===null||En===void 0||En.focus({preventScroll:!0})}else if(Di&&document.activeElement===ya.current){var Yn;(Yn=to.current)===null||Yn===void 0||Yn.focus({preventScroll:!0})}}break}case Te.Z.ESC:{Oo&&yn&&(Br.stopPropagation(),Oo(Br));break}}};Ue.useEffect(function(){if(De&&kt){var br;(br=Be.current)===null||br===void 0||br.focus({preventScroll:!0})}},[De]);var Vi=Ue.useState(!1),Wi=(0,Nt.Z)(Vi,2),pi=Wi[0],qn=Wi[1],nr=Ue.useContext(yt),en;mt===!1?en={distance:0}:mt===!0?en={}:en=mt||{};var _t=(Oe=(Ce=(Pe=en)===null||Pe===void 0?void 0:Pe.distance)!==null&&Ce!==void 0?Ce:nr==null?void 0:nr.pushDistance)!==null&&Oe!==void 0?Oe:180,zt=Ue.useMemo(function(){return{pushDistance:_t,push:function(){qn(!0)},pull:function(){qn(!1)}}},[_t]);Ue.useEffect(function(){if(De){var br;nr==null||(br=nr.push)===null||br===void 0||br.call(nr)}else{var Br;nr==null||(Br=nr.pull)===null||Br===void 0||Br.call(nr)}},[De]),Ue.useEffect(function(){return function(){var br;nr==null||(br=nr.pull)===null||br===void 0||br.call(nr)}},[]);var Li=Jn&&Ue.createElement(Ut.default,(0,Ot.Z)({key:"mask"},Pi,{visible:De}),function(br,Br){var Pt=br.className,Di=br.style;return Ue.createElement("div",{className:et()("".concat(Ke,"-mask"),Pt,ur),style:(0,Lt.Z)((0,Lt.Z)({},Di),lo),onClick:Ki&&De?Oo:void 0,ref:Br})}),yr=typeof Wn=="function"?Wn(tt):Wn,Oi={};if(pi&&_t)switch(tt){case"top":Oi.transform="translateY(".concat(_t,"px)");break;case"bottom":Oi.transform="translateY(".concat(-_t,"px)");break;case"left":Oi.transform="translateX(".concat(_t,"px)");break;default:Oi.transform="translateX(".concat(-_t,"px)");break}tt==="left"||tt==="right"?Oi.width=Se(bn):Oi.height=Se(Dn);var Zn={onMouseEnter:Hr,onMouseOver:da,onMouseLeave:zo,onClick:Co,onKeyDown:xo,onKeyUp:Nr},ki=Ue.createElement(Ut.default,(0,Ot.Z)({key:"panel"},yr,{visible:De,forceRender:Wt,onVisibleChanged:function(Br){jo==null||jo(Br)},removeOnLeave:!1,leavedClassName:"".concat(Ke,"-content-wrapper-hidden")}),function(br,Br){var Pt=br.className,Di=br.style;return Ue.createElement("div",(0,Ot.Z)({className:et()("".concat(Ke,"-content-wrapper"),Pt),style:(0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},Oi),Di),On)},(0,te.Z)(ht,{data:!0})),Ue.createElement(le,(0,Ot.Z)({id:Xt,containerRef:Br,prefixCls:Ke,className:Tn,style:fi},Zn),Bi))}),zr=(0,Lt.Z)({},mn);return Gn&&(zr.zIndex=Gn),Ue.createElement(yt.Provider,{value:zt},Ue.createElement("div",{className:et()(Ke,"".concat(Ke,"-").concat(tt),pn,(Ie={},(0,Zt.Z)(Ie,"".concat(Ke,"-open"),De),(0,Zt.Z)(Ie,"".concat(Ke,"-inline"),He),Ie)),style:zr,tabIndex:-1,ref:Be,onKeyDown:jn},Li,Ue.createElement("div",{tabIndex:0,ref:ya,style:Me,"aria-hidden":"true","data-sentinel":"start"}),ki,Ue.createElement("div",{tabIndex:0,ref:to,style:Me,"aria-hidden":"true","data-sentinel":"end"})))}var st=Ue.forwardRef(ke),dt=st,xt=function(dn){var Oe=dn.open,Ce=Oe===void 0?!1:Oe,Pe=dn.prefixCls,Ie=Pe===void 0?"rc-drawer":Pe,Ke=dn.placement,De=Ke===void 0?"right":Ke,tt=dn.autoFocus,He=tt===void 0?!0:tt,mt=dn.keyboard,Wt=mt===void 0?!0:mt,kt=dn.width,yn=kt===void 0?378:kt,pn=dn.mask,mn=pn===void 0?!0:pn,Gn=dn.maskClosable,Tn=Gn===void 0?!0:Gn,Xt=dn.getContainer,fi=dn.forceRender,Wn=dn.afterOpenChange,bn=dn.destroyOnClose,Dn=dn.onMouseEnter,Bi=dn.onMouseOver,On=dn.onMouseLeave,Jn=dn.onClick,Ki=dn.onKeyDown,Pi=dn.onKeyUp,ur=dn.panelRef,lo=Ue.useState(!1),jo=(0,Nt.Z)(lo,2),Oo=jo[0],Hr=jo[1],da=Ue.useState(!1),zo=(0,Nt.Z)(da,2),Co=zo[0],xo=zo[1];(0,vt.Z)(function(){xo(!0)},[]);var Nr=Co?Ce:!1,Be=Ue.useRef(),ya=Ue.useRef();(0,vt.Z)(function(){Nr&&(ya.current=document.activeElement)},[Nr]);var to=function(qn){var nr;if(Hr(qn),Wn==null||Wn(qn),!qn&&ya.current&&!((nr=Be.current)!==null&&nr!==void 0&&nr.contains(ya.current))){var en;(en=ya.current)===null||en===void 0||en.focus({preventScroll:!0})}},jn=Ue.useMemo(function(){return{panel:ur}},[ur]);if(!fi&&!Oo&&!Nr&&bn)return null;var Vi={onMouseEnter:Dn,onMouseOver:Bi,onMouseLeave:On,onClick:Jn,onKeyDown:Ki,onKeyUp:Pi},Wi=(0,Lt.Z)((0,Lt.Z)({},dn),{},{open:Nr,prefixCls:Ie,placement:De,autoFocus:He,keyboard:Wt,width:yn,mask:mn,maskClosable:Tn,inline:Xt===!1,afterOpenChange:to,ref:Be},Vi);return Ue.createElement(Ct.Provider,{value:jn},Ue.createElement(Bt.Z,{open:Nr||fi||Oo,autoDestroy:!1,getContainer:Xt,autoLock:mn&&(Nr||Oo)},Ue.createElement(dt,Wi)))},ut=xt,It=ut,Et=Ee(62892),Tt=Ee(36355),Yt=Ee(32441),hn=Ee(47729),ui=ht=>{const{prefixCls:dn,title:Oe,footer:Ce,extra:Pe,closeIcon:Ie,closable:Ke,onClose:De,headerStyle:tt,drawerStyle:He,bodyStyle:mt,footerStyle:Wt,children:kt}=ht,yn=Ue.useCallback(Xt=>Ue.createElement("button",{type:"button",onClick:De,"aria-label":"Close",className:`${dn}-close`},Xt),[De]),[pn,mn]=(0,hn.Z)(Ke,Ie,yn,void 0,!0),Gn=Ue.useMemo(()=>!Oe&&!pn?null:Ue.createElement("div",{style:tt,className:et()(`${dn}-header`,{[`${dn}-header-close-only`]:pn&&!Oe&&!Pe})},Ue.createElement("div",{className:`${dn}-header-title`},mn,Oe&&Ue.createElement("div",{className:`${dn}-title`},Oe)),Pe&&Ue.createElement("div",{className:`${dn}-extra`},Pe)),[pn,mn,Pe,tt,dn,Oe]),Tn=Ue.useMemo(()=>{if(!Ce)return null;const Xt=`${dn}-footer`;return Ue.createElement("div",{className:Xt,style:Wt},Ce)},[Ce,Wt,dn]);return Ue.createElement("div",{className:`${dn}-wrapper-body`,style:He},Gn,Ue.createElement("div",{className:`${dn}-body`,style:mt},kt),Tn)},Bn=Ee(33234),di=Ee(83116),nt=Ee(37613),gn=ht=>{const{componentCls:dn,motionDurationSlow:Oe}=ht,Ce={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Oe}`}}};return{[dn]:{[`${dn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Oe}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${dn}-panel-motion`]:{"&-left":[Ce,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ce,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ce,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ce,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Xn=ht=>{const{componentCls:dn,zIndexPopup:Oe,colorBgMask:Ce,colorBgElevated:Pe,motionDurationSlow:Ie,motionDurationMid:Ke,padding:De,paddingLG:tt,fontSizeLG:He,lineHeightLG:mt,lineWidth:Wt,lineType:kt,colorSplit:yn,marginSM:pn,colorIcon:mn,colorIconHover:Gn,colorText:Tn,fontWeightStrong:Xt,footerPaddingBlock:fi,footerPaddingInline:Wn}=ht,bn=`${dn}-content-wrapper`;return{[dn]:{position:"fixed",inset:0,zIndex:Oe,pointerEvents:"none","&-pure":{position:"relative",background:Pe,[`&${dn}-left`]:{boxShadow:ht.boxShadowDrawerLeft},[`&${dn}-right`]:{boxShadow:ht.boxShadowDrawerRight},[`&${dn}-top`]:{boxShadow:ht.boxShadowDrawerUp},[`&${dn}-bottom`]:{boxShadow:ht.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dn}-mask`]:{position:"absolute",inset:0,zIndex:Oe,background:Ce,pointerEvents:"auto"},[bn]:{position:"absolute",zIndex:Oe,maxWidth:"100vw",transition:`all ${Ie}`,"&-hidden":{display:"none"}},[`&-left > ${bn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ht.boxShadowDrawerLeft},[`&-right > ${bn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ht.boxShadowDrawerRight},[`&-top > ${bn}`]:{top:0,insetInline:0,boxShadow:ht.boxShadowDrawerUp},[`&-bottom > ${bn}`]:{bottom:0,insetInline:0,boxShadow:ht.boxShadowDrawerDown},[`${dn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Pe,pointerEvents:"auto"},[`${dn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${dn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${De}px ${tt}px`,fontSize:He,lineHeight:mt,borderBottom:`${Wt}px ${kt} ${yn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dn}-extra`]:{flex:"none"},[`${dn}-close`]:{display:"inline-block",marginInlineEnd:pn,color:mn,fontWeight:Xt,fontSize:He,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ke}`,textRendering:"auto","&:focus, &:hover":{color:Gn,textDecoration:"none"}},[`${dn}-title`]:{flex:1,margin:0,color:Tn,fontWeight:ht.fontWeightStrong,fontSize:He,lineHeight:mt},[`${dn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:tt,overflow:"auto"},[`${dn}-footer`]:{flexShrink:0,padding:`${fi}px ${Wn}px`,borderTop:`${Wt}px ${kt} ${yn}`},"&-rtl":{direction:"rtl"}}}};var ti=(0,di.Z)("Drawer",ht=>{const dn=(0,nt.TS)(ht,{});return[Xn(dn),gn(dn)]},ht=>({zIndexPopup:ht.zIndexPopupBase,footerPaddingBlock:ht.paddingXS,footerPaddingInline:ht.padding})),nn=Ee(11575),vn=function(ht,dn){var Oe={};for(var Ce in ht)Object.prototype.hasOwnProperty.call(ht,Ce)&&dn.indexOf(Ce)<0&&(Oe[Ce]=ht[Ce]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ce=Object.getOwnPropertySymbols(ht);Pe<Ce.length;Pe++)dn.indexOf(Ce[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ce[Pe])&&(Oe[Ce[Pe]]=ht[Ce[Pe]]);return Oe};const An=null,Si={distance:180},Vn=ht=>{var dn;const{rootClassName:Oe,width:Ce,height:Pe,size:Ie="default",mask:Ke=!0,push:De=Si,open:tt,afterOpenChange:He,onClose:mt,prefixCls:Wt,getContainer:kt,style:yn,className:pn,visible:mn,afterVisibleChange:Gn}=ht,Tn=vn(ht,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Xt,getPrefixCls:fi,direction:Wn,drawer:bn}=Ue.useContext(Tt.E_),Dn=fi("drawer",Wt),[Bi,On]=ti(Dn),Jn=kt===void 0&&Xt?()=>Xt(document.body):kt,Ki=et()({"no-mask":!Ke,[`${Dn}-rtl`]:Wn==="rtl"},Oe,On),Pi=Ue.useMemo(()=>Ce!=null?Ce:Ie==="large"?736:378,[Ce,Ie]),ur=Ue.useMemo(()=>Pe!=null?Pe:Ie==="large"?736:378,[Pe,Ie]),lo={motionName:(0,Et.m)(Dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},jo=Hr=>({motionName:(0,Et.m)(Dn,`panel-motion-${Hr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Oo=(0,nn.H)();return Bi(Ue.createElement(Bn.BR,null,Ue.createElement(Yt.Ux,{status:!0,override:!0},Ue.createElement(It,Object.assign({prefixCls:Dn,onClose:mt,maskMotion:lo,motion:jo},Tn,{open:tt!=null?tt:mn,mask:Ke,push:De,width:Pi,height:ur,style:Object.assign(Object.assign({},bn==null?void 0:bn.style),yn),className:et()(bn==null?void 0:bn.className,pn),rootClassName:Ki,getContainer:Jn,afterOpenChange:He!=null?He:Gn,panelRef:Oo}),Ue.createElement(ui,Object.assign({prefixCls:Dn},Tn,{onClose:mt}))))))},Mi=ht=>{const{prefixCls:dn,style:Oe,className:Ce,placement:Pe="right"}=ht,Ie=vn(ht,["prefixCls","style","className","placement"]),{getPrefixCls:Ke}=Ue.useContext(Tt.E_),De=Ke("drawer",dn),[tt,He]=ti(De),mt=et()(De,`${De}-pure`,`${De}-${Pe}`,He,Ce);return tt(Ue.createElement("div",{className:mt,style:Oe},Ue.createElement(ui,Object.assign({prefixCls:De},Ie))))};Vn._InternalPanelDoNotUseOrYouWillBeFired=Mi;var pt=Vn},44e3:function(qt,kn,Ee){"use strict";var ue=Ee(84966),et=Ee(45818);const Lt=ue.ZP;Lt.Header=ue.h4,Lt.Footer=ue.$_,Lt.Content=ue.VY,Lt.Sider=et.Z,kn.default=Lt},39722:function(qt,kn,Ee){"use strict";Ee.d(kn,{t5:function(){return yt}});var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(55477),Nt=Ee(59301),Bt=Ee(36355),vt=Ee(77578),Ue=Ee(17356),bt=function(Ot,Ut){var Te={};for(var te in Ot)Object.prototype.hasOwnProperty.call(Ot,te)&&Ut.indexOf(te)<0&&(Te[te]=Ot[te]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,te=Object.getOwnPropertySymbols(Ot);ne<te.length;ne++)Ut.indexOf(te[ne])<0&&Object.prototype.propertyIsEnumerable.call(Ot,te[ne])&&(Te[te[ne]]=Ot[te[ne]]);return Te};const Ct=(Ot,Ut,Te)=>{if(!(!Ut&&!Te))return Nt.createElement(Nt.Fragment,null,Ut&&Nt.createElement("div",{className:`${Ot}-title`},(0,vt.Z)(Ut)),Nt.createElement("div",{className:`${Ot}-inner-content`},(0,vt.Z)(Te)))},yt=Ot=>{const{hashId:Ut,prefixCls:Te,className:te,style:ne,placement:de="top",title:le,content:pe,children:Se}=Ot;return Nt.createElement("div",{className:et()(Ut,Te,`${Te}-pure`,`${Te}-placement-${de}`,te),style:ne},Nt.createElement("div",{className:`${Te}-arrow`}),Nt.createElement(Lt.G,Object.assign({},Ot,{className:Ut,prefixCls:Te}),Se||Ct(Te,le,pe)))},Zt=Ot=>{const{prefixCls:Ut}=Ot,Te=bt(Ot,["prefixCls"]),{getPrefixCls:te}=Nt.useContext(Bt.E_),ne=te("popover",Ut),[de,le]=(0,Ue.Z)(ne);return de(Nt.createElement(yt,Object.assign({},Te,{prefixCls:ne,hashId:le})))};kn.ZP=Zt},60324:function(qt,kn,Ee){"use strict";var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(59301),Nt=Ee(77578),Bt=Ee(62892),vt=Ee(36355),Ue=Ee(6848),bt=Ee(39722),Ct=Ee(17356),yt=function(Ut,Te){var te={};for(var ne in Ut)Object.prototype.hasOwnProperty.call(Ut,ne)&&Te.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++)Te.indexOf(ne[de])<0&&Object.prototype.propertyIsEnumerable.call(Ut,ne[de])&&(te[ne[de]]=Ut[ne[de]]);return te};const Zt=Ut=>{let{title:Te,content:te,prefixCls:ne}=Ut;return Lt.createElement(Lt.Fragment,null,Te&&Lt.createElement("div",{className:`${ne}-title`},(0,Nt.Z)(Te)),Lt.createElement("div",{className:`${ne}-inner-content`},(0,Nt.Z)(te)))},Ot=Lt.forwardRef((Ut,Te)=>{const{prefixCls:te,title:ne,content:de,overlayClassName:le,placement:pe="top",trigger:Se="hover",mouseEnterDelay:Ae=.1,mouseLeaveDelay:Me=.1,overlayStyle:ke={}}=Ut,st=yt(Ut,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:dt}=Lt.useContext(vt.E_),xt=dt("popover",te),[ut,It]=(0,Ct.Z)(xt),Et=dt(),Tt=et()(le,It);return ut(Lt.createElement(Ue.Z,Object.assign({placement:pe,trigger:Se,mouseEnterDelay:Ae,mouseLeaveDelay:Me,overlayStyle:ke},st,{prefixCls:xt,overlayClassName:Tt,ref:Te,overlay:ne||de?Lt.createElement(Zt,{prefixCls:xt,title:ne,content:de}):null,transitionName:(0,Bt.m)(Et,"zoom-big",st.transitionName),"data-popover-inject":!0})))});Ot._InternalPanelDoNotUseOrYouWillBeFired=bt.ZP,kn.Z=Ot},17356:function(qt,kn,Ee){"use strict";var ue=Ee(17313),et=Ee(29878),Lt=Ee(19447),Nt=Ee(33166),Bt=Ee(83116),vt=Ee(37613);const Ue=yt=>{const{componentCls:Zt,popoverColor:Ot,minWidth:Ut,fontWeightStrong:Te,popoverPadding:te,boxShadowSecondary:ne,colorTextHeading:de,borderRadiusLG:le,zIndexPopup:pe,marginXS:Se,colorBgElevated:Ae,popoverBg:Me}=yt;return[{[Zt]:Object.assign(Object.assign({},(0,ue.Wf)(yt)),{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"},[`${Zt}-content`]:{position:"relative"},[`${Zt}-inner`]:{backgroundColor:Me,backgroundClip:"padding-box",borderRadius:le,boxShadow:ne,padding:te},[`${Zt}-title`]:{minWidth:Ut,marginBottom:Se,color:de,fontWeight:Te},[`${Zt}-inner-content`]:{color:Ot}})},(0,Lt.ZP)(yt,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Zt}-pure`]:{position:"relative",maxWidth:"none",margin:yt.sizePopupArrow,display:"inline-block",[`${Zt}-content`]:{display:"inline-block"}}}]},bt=yt=>{const{componentCls:Zt}=yt;return{[Zt]:Nt.i.map(Ot=>{const Ut=yt[`${Ot}6`];return{[`&${Zt}-${Ot}`]:{"--antd-arrow-background-color":Ut,[`${Zt}-inner`]:{backgroundColor:Ut},[`${Zt}-arrow`]:{background:"transparent"}}}})}},Ct=yt=>{const{componentCls:Zt,lineWidth:Ot,lineType:Ut,colorSplit:Te,paddingSM:te,controlHeight:ne,fontSize:de,lineHeight:le,padding:pe}=yt,Se=ne-Math.round(de*le),Ae=Se/2,Me=Se/2-Ot,ke=pe;return{[Zt]:{[`${Zt}-inner`]:{padding:0},[`${Zt}-title`]:{margin:0,padding:`${Ae}px ${ke}px ${Me}px`,borderBottom:`${Ot}px ${Ut} ${Te}`},[`${Zt}-inner-content`]:{padding:`${te}px ${ke}px`}}}};kn.Z=(0,Bt.Z)("Popover",yt=>{const{colorBgElevated:Zt,colorText:Ot,wireframe:Ut}=yt,Te=(0,vt.TS)(yt,{popoverPadding:12,popoverBg:Zt,popoverColor:Ot});return[Ue(Te),bt(Te),Ut&&Ct(Te),(0,et._y)(Te,"zoom-big")]},yt=>({width:177,minWidth:177,zIndexPopup:yt.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},10311:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return tt}});var ue=Ee(92310),et=Ee.n(ue),Lt=Ee(90493),Nt=Ee(19127),Bt=Ee(72071),vt=Ee(20135),Ue=Ee(59301),bt=Ee(13697),Ct=Ee(18929),yt=Ee(96663),Zt=Ee(6620),Ot=Ee(44127),Ut=Ee(10228),Te=Ue.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),te=Te;function ne(He,mt,Wt){return(He-mt)/(Wt-mt)}function de(He,mt,Wt,kt){var yn=ne(mt,Wt,kt),pn={};switch(He){case"rtl":pn.right="".concat(yn*100,"%"),pn.transform="translateX(50%)";break;case"btt":pn.bottom="".concat(yn*100,"%"),pn.transform="translateY(50%)";break;case"ttb":pn.top="".concat(yn*100,"%"),pn.transform="translateY(-50%)";break;default:pn.left="".concat(yn*100,"%"),pn.transform="translateX(-50%)";break}return pn}function le(He,mt){return Array.isArray(He)?He[mt]:He}var pe=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Se=Ue.forwardRef(function(He,mt){var Wt,kt,yn=He.prefixCls,pn=He.value,mn=He.valueIndex,Gn=He.onStartMove,Tn=He.style,Xt=He.render,fi=He.dragging,Wn=He.onOffsetChange,bn=(0,Zt.Z)(He,pe),Dn=Ue.useContext(te),Bi=Dn.min,On=Dn.max,Jn=Dn.direction,Ki=Dn.disabled,Pi=Dn.keyboard,ur=Dn.range,lo=Dn.tabIndex,jo=Dn.ariaLabelForHandle,Oo=Dn.ariaLabelledByForHandle,Hr=Dn.ariaValueTextFormatterForHandle,da="".concat(yn,"-handle"),zo=function(ya){Ki||Gn(ya,mn)},Co=function(ya){if(!Ki&&Pi){var to=null;switch(ya.which||ya.keyCode){case Ut.Z.LEFT:to=Jn==="ltr"||Jn==="btt"?-1:1;break;case Ut.Z.RIGHT:to=Jn==="ltr"||Jn==="btt"?1:-1;break;case Ut.Z.UP:to=Jn!=="ttb"?1:-1;break;case Ut.Z.DOWN:to=Jn!=="ttb"?-1:1;break;case Ut.Z.HOME:to="min";break;case Ut.Z.END:to="max";break;case Ut.Z.PAGE_UP:to=2;break;case Ut.Z.PAGE_DOWN:to=-2;break}to!==null&&(ya.preventDefault(),Wn(to,mn))}},xo=de(Jn,pn,Bi,On),Nr=Ue.createElement("div",(0,yt.Z)({ref:mt,className:et()(da,(Wt={},(0,Lt.Z)(Wt,"".concat(da,"-").concat(mn+1),ur),(0,Lt.Z)(Wt,"".concat(da,"-dragging"),fi),Wt)),style:(0,Ot.Z)((0,Ot.Z)({},xo),Tn),onMouseDown:zo,onTouchStart:zo,onKeyDown:Co,tabIndex:Ki?null:le(lo,mn),role:"slider","aria-valuemin":Bi,"aria-valuemax":On,"aria-valuenow":pn,"aria-disabled":Ki,"aria-label":le(jo,mn),"aria-labelledby":le(Oo,mn),"aria-valuetext":(kt=le(Hr,mn))===null||kt===void 0?void 0:kt(pn),"aria-orientation":Jn==="ltr"||Jn==="rtl"?"horizontal":"vertical"},bn));return Xt&&(Nr=Xt(Nr,{index:mn,prefixCls:yn,value:pn,dragging:fi})),Nr}),Ae=Se,Me=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],ke=Ue.forwardRef(function(He,mt){var Wt=He.prefixCls,kt=He.style,yn=He.onStartMove,pn=He.onOffsetChange,mn=He.values,Gn=He.handleRender,Tn=He.draggingIndex,Xt=(0,Zt.Z)(He,Me),fi=Ue.useRef({});return Ue.useImperativeHandle(mt,function(){return{focus:function(bn){var Dn;(Dn=fi.current[bn])===null||Dn===void 0||Dn.focus()}}}),Ue.createElement(Ue.Fragment,null,mn.map(function(Wn,bn){return Ue.createElement(Ae,(0,yt.Z)({ref:function(Bi){Bi?fi.current[bn]=Bi:delete fi.current[bn]},dragging:Tn===bn,prefixCls:Wt,style:le(kt,bn),key:bn,value:Wn,valueIndex:bn,onStartMove:yn,onOffsetChange:pn,render:Gn},Xt))}))}),st=ke;function dt(He){var mt="touches"in He?He.touches[0]:He;return{pageX:mt.pageX,pageY:mt.pageY}}function xt(He,mt,Wt,kt,yn,pn,mn,Gn,Tn){var Xt=Ue.useState(null),fi=(0,Bt.Z)(Xt,2),Wn=fi[0],bn=fi[1],Dn=Ue.useState(-1),Bi=(0,Bt.Z)(Dn,2),On=Bi[0],Jn=Bi[1],Ki=Ue.useState(Wt),Pi=(0,Bt.Z)(Ki,2),ur=Pi[0],lo=Pi[1],jo=Ue.useState(Wt),Oo=(0,Bt.Z)(jo,2),Hr=Oo[0],da=Oo[1],zo=Ue.useRef(null),Co=Ue.useRef(null);Ue.useEffect(function(){On===-1&&lo(Wt)},[Wt,On]),Ue.useEffect(function(){return function(){document.removeEventListener("mousemove",zo.current),document.removeEventListener("mouseup",Co.current),document.removeEventListener("touchmove",zo.current),document.removeEventListener("touchend",Co.current)}},[]);var xo=function(Vi,Wi){ur.some(function(pi,qn){return pi!==Vi[qn]})&&(Wi!==void 0&&bn(Wi),lo(Vi),mn(Vi))},Nr=function(Vi,Wi){if(Vi===-1){var pi=Hr[0],qn=Hr[Hr.length-1],nr=kt-pi,en=yn-qn,_t=Wi*(yn-kt);_t=Math.max(_t,nr),_t=Math.min(_t,en);var zt=pn(pi+_t);_t=zt-pi;var Li=Hr.map(function(ki){return ki+_t});xo(Li)}else{var yr=(yn-kt)*Wi,Oi=(0,Nt.Z)(ur);Oi[Vi]=Hr[Vi];var Zn=Tn(Oi,yr,Vi,"dist");xo(Zn.values,Zn.value)}},Be=Ue.useRef(Nr);Be.current=Nr;var ya=function(Vi,Wi){Vi.stopPropagation();var pi=Wt[Wi];Jn(Wi),bn(pi),da(Wt);var qn=dt(Vi),nr=qn.pageX,en=qn.pageY,_t=function(yr){yr.preventDefault();var Oi=dt(yr),Zn=Oi.pageX,ki=Oi.pageY,zr=Zn-nr,br=ki-en,Br=He.current.getBoundingClientRect(),Pt=Br.width,Di=Br.height,En;switch(mt){case"btt":En=-br/Di;break;case"ttb":En=br/Di;break;case"rtl":En=-zr/Pt;break;default:En=zr/Pt}Be.current(Wi,En)},zt=function Li(yr){yr.preventDefault(),document.removeEventListener("mouseup",Li),document.removeEventListener("mousemove",_t),document.removeEventListener("touchend",Li),document.removeEventListener("touchmove",_t),zo.current=null,Co.current=null,Jn(-1),Gn()};document.addEventListener("mouseup",zt),document.addEventListener("mousemove",_t),document.addEventListener("touchend",zt),document.addEventListener("touchmove",_t),zo.current=_t,Co.current=zt},to=Ue.useMemo(function(){var jn=(0,Nt.Z)(Wt).sort(function(Wi,pi){return Wi-pi}),Vi=(0,Nt.Z)(ur).sort(function(Wi,pi){return Wi-pi});return jn.every(function(Wi,pi){return Wi===Vi[pi]})?ur:Wt},[Wt,ur]);return[On,Wn,to,ya]}function ut(He){var mt,Wt=He.prefixCls,kt=He.style,yn=He.start,pn=He.end,mn=He.index,Gn=He.onStartMove,Tn=Ue.useContext(te),Xt=Tn.direction,fi=Tn.min,Wn=Tn.max,bn=Tn.disabled,Dn=Tn.range,Bi="".concat(Wt,"-track"),On=ne(yn,fi,Wn),Jn=ne(pn,fi,Wn),Ki=function(lo){!bn&&Gn&&Gn(lo,-1)},Pi={};switch(Xt){case"rtl":Pi.right="".concat(On*100,"%"),Pi.width="".concat(Jn*100-On*100,"%");break;case"btt":Pi.bottom="".concat(On*100,"%"),Pi.height="".concat(Jn*100-On*100,"%");break;case"ttb":Pi.top="".concat(On*100,"%"),Pi.height="".concat(Jn*100-On*100,"%");break;default:Pi.left="".concat(On*100,"%"),Pi.width="".concat(Jn*100-On*100,"%")}return Ue.createElement("div",{className:et()(Bi,(mt={},(0,Lt.Z)(mt,"".concat(Bi,"-").concat(mn+1),Dn),(0,Lt.Z)(mt,"".concat(Wt,"-track-draggable"),Gn),mt)),style:(0,Ot.Z)((0,Ot.Z)({},Pi),kt),onMouseDown:Ki,onTouchStart:Ki})}function It(He){var mt=He.prefixCls,Wt=He.style,kt=He.values,yn=He.startPoint,pn=He.onStartMove,mn=Ue.useContext(te),Gn=mn.included,Tn=mn.range,Xt=mn.min,fi=Ue.useMemo(function(){if(!Tn){if(kt.length===0)return[];var Wn=yn!=null?yn:Xt,bn=kt[0];return[{start:Math.min(Wn,bn),end:Math.max(Wn,bn)}]}for(var Dn=[],Bi=0;Bi<kt.length-1;Bi+=1)Dn.push({start:kt[Bi],end:kt[Bi+1]});return Dn},[kt,Tn,yn,Xt]);return Gn?fi.map(function(Wn,bn){var Dn=Wn.start,Bi=Wn.end;return Ue.createElement(ut,{index:bn,prefixCls:mt,style:le(Wt,bn),start:Dn,end:Bi,key:bn,onStartMove:pn})}):null}function Et(He){var mt=He.prefixCls,Wt=He.style,kt=He.children,yn=He.value,pn=He.onClick,mn=Ue.useContext(te),Gn=mn.min,Tn=mn.max,Xt=mn.direction,fi=mn.includedStart,Wn=mn.includedEnd,bn=mn.included,Dn="".concat(mt,"-text"),Bi=de(Xt,yn,Gn,Tn);return Ue.createElement("span",{className:et()(Dn,(0,Lt.Z)({},"".concat(Dn,"-active"),bn&&fi<=yn&&yn<=Wn)),style:(0,Ot.Z)((0,Ot.Z)({},Bi),Wt),onMouseDown:function(Jn){Jn.stopPropagation()},onClick:function(){pn(yn)}},kt)}function Tt(He){var mt=He.prefixCls,Wt=He.marks,kt=He.onClick,yn="".concat(mt,"-mark");return Wt.length?Ue.createElement("div",{className:yn},Wt.map(function(pn){var mn=pn.value,Gn=pn.style,Tn=pn.label;return Ue.createElement(Et,{key:mn,prefixCls:yn,style:Gn,value:mn,onClick:kt},Tn)})):null}function Yt(He){var mt=He.prefixCls,Wt=He.value,kt=He.style,yn=He.activeStyle,pn=Ue.useContext(te),mn=pn.min,Gn=pn.max,Tn=pn.direction,Xt=pn.included,fi=pn.includedStart,Wn=pn.includedEnd,bn="".concat(mt,"-dot"),Dn=Xt&&fi<=Wt&&Wt<=Wn,Bi=(0,Ot.Z)((0,Ot.Z)({},de(Tn,Wt,mn,Gn)),typeof kt=="function"?kt(Wt):kt);return Dn&&(Bi=(0,Ot.Z)((0,Ot.Z)({},Bi),typeof yn=="function"?yn(Wt):yn)),Ue.createElement("span",{className:et()(bn,(0,Lt.Z)({},"".concat(bn,"-active"),Dn)),style:Bi})}function hn(He){var mt=He.prefixCls,Wt=He.marks,kt=He.dots,yn=He.style,pn=He.activeStyle,mn=Ue.useContext(te),Gn=mn.min,Tn=mn.max,Xt=mn.step,fi=Ue.useMemo(function(){var Wn=new Set;if(Wt.forEach(function(Dn){Wn.add(Dn.value)}),kt&&Xt!==null)for(var bn=Gn;bn<=Tn;)Wn.add(bn),bn+=Xt;return Array.from(Wn)},[Gn,Tn,Xt,kt,Wt]);return Ue.createElement("div",{className:"".concat(mt,"-step")},fi.map(function(Wn){return Ue.createElement(Yt,{prefixCls:mt,key:Wn,value:Wn,style:yn,activeStyle:pn})}))}function vi(He,mt,Wt,kt,yn,pn){var mn=Ue.useCallback(function(Dn){var Bi=isFinite(Dn)?Dn:He;return Bi=Math.min(mt,Dn),Bi=Math.max(He,Bi),Bi},[He,mt]),Gn=Ue.useCallback(function(Dn){if(Wt!==null){var Bi=He+Math.round((mn(Dn)-He)/Wt)*Wt,On=function(ur){return(String(ur).split(".")[1]||"").length},Jn=Math.max(On(Wt),On(mt),On(He)),Ki=Number(Bi.toFixed(Jn));return He<=Ki&&Ki<=mt?Ki:null}return null},[Wt,He,mt,mn]),Tn=Ue.useCallback(function(Dn){var Bi=mn(Dn),On=kt.map(function(Pi){return Pi.value});Wt!==null&&On.push(Gn(Dn)),On.push(He,mt);var Jn=On[0],Ki=mt-He;return On.forEach(function(Pi){var ur=Math.abs(Bi-Pi);ur<=Ki&&(Jn=Pi,Ki=ur)}),Jn},[He,mt,kt,Wt,mn,Gn]),Xt=function Dn(Bi,On,Jn){var Ki=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof On=="number"){var Pi,ur=Bi[Jn],lo=ur+On,jo=[];kt.forEach(function(Co){jo.push(Co.value)}),jo.push(He,mt),jo.push(Gn(ur));var Oo=On>0?1:-1;Ki==="unit"?jo.push(Gn(ur+Oo*Wt)):jo.push(Gn(lo)),jo=jo.filter(function(Co){return Co!==null}).filter(function(Co){return On<0?Co<=ur:Co>=ur}),Ki==="unit"&&(jo=jo.filter(function(Co){return Co!==ur}));var Hr=Ki==="unit"?ur:lo;Pi=jo[0];var da=Math.abs(Pi-Hr);if(jo.forEach(function(Co){var xo=Math.abs(Co-Hr);xo<da&&(Pi=Co,da=xo)}),Pi===void 0)return On<0?He:mt;if(Ki==="dist")return Pi;if(Math.abs(On)>1){var zo=(0,Nt.Z)(Bi);return zo[Jn]=Pi,Dn(zo,On-Oo,Jn,Ki)}return Pi}else{if(On==="min")return He;if(On==="max")return mt}},fi=function(Bi,On,Jn){var Ki=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Pi=Bi[Jn],ur=Xt(Bi,On,Jn,Ki);return{value:ur,changed:ur!==Pi}},Wn=function(Bi){return pn===null&&Bi===0||typeof pn=="number"&&Bi<pn},bn=function(Bi,On,Jn){var Ki=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Pi=Bi.map(Tn),ur=Pi[Jn],lo=Xt(Pi,On,Jn,Ki);if(Pi[Jn]=lo,yn===!1){var jo=pn||0;Jn>0&&Pi[Jn-1]!==ur&&(Pi[Jn]=Math.max(Pi[Jn],Pi[Jn-1]+jo)),Jn<Pi.length-1&&Pi[Jn+1]!==ur&&(Pi[Jn]=Math.min(Pi[Jn],Pi[Jn+1]-jo))}else if(typeof pn=="number"||pn===null){for(var Oo=Jn+1;Oo<Pi.length;Oo+=1)for(var Hr=!0;Wn(Pi[Oo]-Pi[Oo-1])&&Hr;){var da=fi(Pi,1,Oo);Pi[Oo]=da.value,Hr=da.changed}for(var zo=Jn;zo>0;zo-=1)for(var Co=!0;Wn(Pi[zo]-Pi[zo-1])&&Co;){var xo=fi(Pi,-1,zo-1);Pi[zo-1]=xo.value,Co=xo.changed}for(var Nr=Pi.length-1;Nr>0;Nr-=1)for(var Be=!0;Wn(Pi[Nr]-Pi[Nr-1])&&Be;){var ya=fi(Pi,-1,Nr-1);Pi[Nr-1]=ya.value,Be=ya.changed}for(var to=0;to<Pi.length-1;to+=1)for(var jn=!0;Wn(Pi[to+1]-Pi[to])&&jn;){var Vi=fi(Pi,1,to+1);Pi[to+1]=Vi.value,jn=Vi.changed}}return{value:Pi[Jn],values:Pi}};return[Tn,bn]}var ui=Ee(48736),Bn=Ue.forwardRef(function(He,mt){var Wt,kt=He.prefixCls,yn=kt===void 0?"rc-slider":kt,pn=He.className,mn=He.style,Gn=He.disabled,Tn=Gn===void 0?!1:Gn,Xt=He.keyboard,fi=Xt===void 0?!0:Xt,Wn=He.autoFocus,bn=He.onFocus,Dn=He.onBlur,Bi=He.min,On=Bi===void 0?0:Bi,Jn=He.max,Ki=Jn===void 0?100:Jn,Pi=He.step,ur=Pi===void 0?1:Pi,lo=He.value,jo=He.defaultValue,Oo=He.range,Hr=He.count,da=He.onChange,zo=He.onBeforeChange,Co=He.onAfterChange,xo=He.allowCross,Nr=xo===void 0?!0:xo,Be=He.pushable,ya=Be===void 0?!1:Be,to=He.draggableTrack,jn=He.reverse,Vi=He.vertical,Wi=He.included,pi=Wi===void 0?!0:Wi,qn=He.startPoint,nr=He.trackStyle,en=He.handleStyle,_t=He.railStyle,zt=He.dotStyle,Li=He.activeDotStyle,yr=He.marks,Oi=He.dots,Zn=He.handleRender,ki=He.tabIndex,zr=ki===void 0?0:ki,br=He.ariaLabelForHandle,Br=He.ariaLabelledByForHandle,Pt=He.ariaValueTextFormatterForHandle,Di=Ue.useRef(),En=Ue.useRef(),Yn=Ue.useMemo(function(){return Vi?jn?"ttb":"btt":jn?"rtl":"ltr"},[jn,Vi]),Mt=Ue.useMemo(function(){return isFinite(On)?On:0},[On]),Ft=Ue.useMemo(function(){return isFinite(Ki)?Ki:100},[Ki]),sn=Ue.useMemo(function(){return ur!==null&&ur<=0?1:ur},[ur]),Sr=Ue.useMemo(function(){return typeof ya=="boolean"?ya?sn:!1:ya>=0?ya:!1},[ya,sn]),Ii=Ue.useMemo(function(){var no=Object.keys(yr||{});return no.map(function(rr){var qi=yr[rr],Qi={value:Number(rr)};return qi&&(0,vt.Z)(qi)==="object"&&!Ue.isValidElement(qi)&&("label"in qi||"style"in qi)?(Qi.style=qi.style,Qi.label=qi.label):Qi.label=qi,Qi}).filter(function(rr){var qi=rr.label;return qi||typeof qi=="number"}).sort(function(rr,qi){return rr.value-qi.value})},[yr]),Ri=vi(Mt,Ft,sn,Ii,Nr,Sr),ai=(0,Bt.Z)(Ri,2),Ti=ai[0],Jr=ai[1],Qr=(0,Ct.Z)(jo,{value:lo}),Lo=(0,Bt.Z)(Qr,2),Ln=Lo[0],ja=Lo[1],co=Ue.useMemo(function(){var no=Ln==null?[]:Array.isArray(Ln)?Ln:[Ln],rr=(0,Bt.Z)(no,1),qi=rr[0],Qi=qi===void 0?Mt:qi,oa=Ln===null?[]:[Qi];if(Oo){if(oa=(0,Nt.Z)(no),Hr||Ln===void 0){var ys=Hr>=0?Hr+1:2;for(oa=oa.slice(0,ys);oa.length<ys;){var bs;oa.push((bs=oa[oa.length-1])!==null&&bs!==void 0?bs:Mt)}}oa.sort(function(_o,Ea){return _o-Ea})}return oa.forEach(function(_o,Ea){oa[Ea]=Ti(_o)}),oa},[Ln,Oo,Mt,Hr,Ti]),Kr=Ue.useRef(co);Kr.current=co;var on=function(rr){return Oo?rr:rr[0]},Vt=function(rr){var qi=(0,Nt.Z)(rr).sort(function(Qi,oa){return Qi-oa});da&&!(0,bt.Z)(qi,Kr.current,!0)&&da(on(qi)),ja(qi)},cn=function(rr){if(!Tn){var qi=0,Qi=Ft-Mt;co.forEach(function(ys,bs){var _o=Math.abs(rr-ys);_o<=Qi&&(Qi=_o,qi=bs)});var oa=(0,Nt.Z)(co);oa[qi]=rr,Oo&&!co.length&&Hr===void 0&&oa.push(rr),zo==null||zo(on(oa)),Vt(oa),Co==null||Co(on(oa))}},Jt=function(rr){rr.preventDefault();var qi=En.current.getBoundingClientRect(),Qi=qi.width,oa=qi.height,ys=qi.left,bs=qi.top,_o=qi.bottom,Ea=qi.right,za=rr.clientX,Mr=rr.clientY,Ir;switch(Yn){case"btt":Ir=(_o-Mr)/oa;break;case"ttb":Ir=(Mr-bs)/oa;break;case"rtl":Ir=(Ea-za)/Qi;break;default:Ir=(za-ys)/Qi}var gi=Mt+Ir*(Ft-Mt);cn(Ti(gi))},zn=Ue.useState(null),er=(0,Bt.Z)(zn,2),sr=er[0],li=er[1],Ci=function(rr,qi){if(!Tn){var Qi=Jr(co,rr,qi);zo==null||zo(on(co)),Vt(Qi.values),Co==null||Co(on(Qi.values)),li(Qi.value)}};Ue.useEffect(function(){if(sr!==null){var no=co.indexOf(sr);no>=0&&Di.current.focus(no)}li(null)},[sr]);var Qn=Ue.useMemo(function(){return to&&sn===null?!1:to},[to,sn]),an=function(){Co==null||Co(on(Kr.current))},Vr=xt(En,Yn,co,Mt,Ft,Ti,Vt,an,Jr),In=(0,Bt.Z)(Vr,4),Or=In[0],Tr=In[1],fr=In[2],Bo=In[3],Gr=function(rr,qi){Bo(rr,qi),zo==null||zo(on(Kr.current))},Ui=Or!==-1;Ue.useEffect(function(){if(!Ui){var no=co.lastIndexOf(Tr);Di.current.focus(no)}},[Ui]);var xr=Ue.useMemo(function(){return(0,Nt.Z)(fr).sort(function(no,rr){return no-rr})},[fr]),ro=Ue.useMemo(function(){return Oo?[xr[0],xr[xr.length-1]]:[Mt,xr[0]]},[xr,Oo,Mt]),Cn=(0,Bt.Z)(ro,2),hi=Cn[0],Ge=Cn[1];Ue.useImperativeHandle(mt,function(){return{focus:function(){Di.current.focus(0)},blur:function(){var rr=document,qi=rr.activeElement;En.current.contains(qi)&&(qi==null||qi.blur())}}}),Ue.useEffect(function(){Wn&&Di.current.focus(0)},[]);var To=Ue.useMemo(function(){return{min:Mt,max:Ft,direction:Yn,disabled:Tn,keyboard:fi,step:sn,included:pi,includedStart:hi,includedEnd:Ge,range:Oo,tabIndex:zr,ariaLabelForHandle:br,ariaLabelledByForHandle:Br,ariaValueTextFormatterForHandle:Pt}},[Mt,Ft,Yn,Tn,fi,sn,pi,hi,Ge,Oo,zr,br,Br,Pt]);return Ue.createElement(te.Provider,{value:To},Ue.createElement("div",{ref:En,className:et()(yn,pn,(Wt={},(0,Lt.Z)(Wt,"".concat(yn,"-disabled"),Tn),(0,Lt.Z)(Wt,"".concat(yn,"-vertical"),Vi),(0,Lt.Z)(Wt,"".concat(yn,"-horizontal"),!Vi),(0,Lt.Z)(Wt,"".concat(yn,"-with-marks"),Ii.length),Wt)),style:mn,onMouseDown:Jt},Ue.createElement("div",{className:"".concat(yn,"-rail"),style:_t}),Ue.createElement(It,{prefixCls:yn,style:nr,values:xr,startPoint:qn,onStartMove:Qn?Gr:null}),Ue.createElement(hn,{prefixCls:yn,marks:Ii,dots:Oi,style:zt,activeStyle:Li}),Ue.createElement(st,{ref:Di,prefixCls:yn,style:en,values:fr,draggingIndex:Or,onStartMove:Gr,onOffsetChange:Ci,onFocus:bn,onBlur:Dn,handleRender:Zn}),Ue.createElement(Tt,{prefixCls:yn,marks:Ii,onClick:cn})))}),di=Bn,nt=di,ze=Ee(36355),gn=Ee(1684),Xn=Ee(16089),ti=Ee(8654),nn=Ee(6848),An=Ue.forwardRef((He,mt)=>{const{open:Wt}=He,kt=(0,Ue.useRef)(null),yn=(0,Ue.useRef)(null);function pn(){Xn.Z.cancel(yn.current),yn.current=null}function mn(){yn.current=(0,Xn.Z)(()=>{var Gn;(Gn=kt.current)===null||Gn===void 0||Gn.forceAlign(),yn.current=null})}return Ue.useEffect(()=>(Wt?mn():pn(),pn),[Wt,He.title]),Ue.createElement(nn.Z,Object.assign({ref:(0,ti.sQ)(kt,mt)},He))}),Si=Ee(64993),Vn=Ee(17313),Mi=Ee(83116),pt=Ee(37613);const ht=He=>{const{componentCls:mt,antCls:Wt,controlSize:kt,dotSize:yn,marginFull:pn,marginPart:mn,colorFillContentHover:Gn}=He;return{[mt]:Object.assign(Object.assign({},(0,Vn.Wf)(He)),{position:"relative",height:kt,margin:`${mn}px ${pn}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${pn}px ${mn}px`},[`${mt}-rail`]:{position:"absolute",backgroundColor:He.railBg,borderRadius:He.borderRadiusXS,transition:`background-color ${He.motionDurationMid}`},[`${mt}-track`]:{position:"absolute",backgroundColor:He.trackBg,borderRadius:He.borderRadiusXS,transition:`background-color ${He.motionDurationMid}`},[`${mt}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${mt}-rail`]:{backgroundColor:He.railHoverBg},[`${mt}-track`]:{backgroundColor:He.trackHoverBg},[`${mt}-dot`]:{borderColor:Gn},[`${mt}-handle::after`]:{boxShadow:`0 0 0 ${He.handleLineWidth}px ${He.colorPrimaryBorderHover}`},[`${mt}-dot-active`]:{borderColor:He.dotActiveBorderColor}},[`${mt}-handle`]:{position:"absolute",width:He.handleSize,height:He.handleSize,outline:"none",[`${mt}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-He.handleLineWidth,insetBlockStart:-He.handleLineWidth,width:He.handleSize+He.handleLineWidth*2,height:He.handleSize+He.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:He.handleSize,height:He.handleSize,backgroundColor:He.colorBgElevated,boxShadow:`0 0 0 ${He.handleLineWidth}px ${He.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`
|
|
inset-inline-start ${He.motionDurationMid},
|
|
inset-block-start ${He.motionDurationMid},
|
|
width ${He.motionDurationMid},
|
|
height ${He.motionDurationMid},
|
|
box-shadow ${He.motionDurationMid}
|
|
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((He.handleSizeHover-He.handleSize)/2+He.handleLineWidthHover),insetBlockStart:-((He.handleSizeHover-He.handleSize)/2+He.handleLineWidthHover),width:He.handleSizeHover+He.handleLineWidthHover*2,height:He.handleSizeHover+He.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${He.handleLineWidthHover}px ${He.handleActiveColor}`,width:He.handleSizeHover,height:He.handleSizeHover,insetInlineStart:(He.handleSize-He.handleSizeHover)/2,insetBlockStart:(He.handleSize-He.handleSizeHover)/2}}},[`${mt}-mark`]:{position:"absolute",fontSize:He.fontSize},[`${mt}-mark-text`]:{position:"absolute",display:"inline-block",color:He.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:He.colorText}},[`${mt}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${mt}-dot`]:{position:"absolute",width:yn,height:yn,backgroundColor:He.colorBgElevated,border:`${He.handleLineWidth}px solid ${He.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${He.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:He.dotActiveBorderColor}},[`&${mt}-disabled`]:{cursor:"not-allowed",[`${mt}-rail`]:{backgroundColor:`${He.railBg} !important`},[`${mt}-track`]:{backgroundColor:`${He.trackBgDisabled} !important`},[`
|
|
${mt}-dot
|
|
`]:{backgroundColor:He.colorBgElevated,borderColor:He.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${mt}-handle::after`]:{backgroundColor:He.colorBgElevated,cursor:"not-allowed",width:He.handleSize,height:He.handleSize,boxShadow:`0 0 0 ${He.handleLineWidth}px ${new Si.C(He.colorTextDisabled).onBackground(He.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
${mt}-mark-text,
|
|
${mt}-dot
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${Wt}-tooltip-inner`]:{minWidth:"unset"}})}},dn=(He,mt)=>{const{componentCls:Wt,railSize:kt,handleSize:yn,dotSize:pn}=He,mn=mt?"paddingBlock":"paddingInline",Gn=mt?"width":"height",Tn=mt?"height":"width",Xt=mt?"insetBlockStart":"insetInlineStart",fi=mt?"top":"insetInlineStart",Wn=(kt*3-yn)/2,bn=(yn-kt)/2,Dn=mt?{borderWidth:`${bn}px 0`,transform:`translateY(-${bn}px)`}:{borderWidth:`0 ${bn}px`,transform:`translateX(-${bn}px)`};return{[mn]:kt,[Tn]:kt*3,[`${Wt}-rail`]:{[Gn]:"100%",[Tn]:kt},[`${Wt}-track`]:{[Tn]:kt},[`${Wt}-track-draggable`]:Object.assign({},Dn),[`${Wt}-handle`]:{[Xt]:Wn},[`${Wt}-mark`]:{insetInlineStart:0,top:0,[fi]:kt*3+(mt?0:He.marginFull),[Gn]:"100%"},[`${Wt}-step`]:{insetInlineStart:0,top:0,[fi]:kt,[Gn]:"100%",[Tn]:kt},[`${Wt}-dot`]:{position:"absolute",[Xt]:(kt-pn)/2}}},Oe=He=>{const{componentCls:mt,marginPartWithMark:Wt}=He;return{[`${mt}-horizontal`]:Object.assign(Object.assign({},dn(He,!0)),{[`&${mt}-with-marks`]:{marginBottom:Wt}})}},Ce=He=>{const{componentCls:mt}=He;return{[`${mt}-vertical`]:Object.assign(Object.assign({},dn(He,!1)),{height:"100%"})}};var Pe=(0,Mi.Z)("Slider",He=>{const mt=(0,pt.TS)(He,{marginPart:(He.controlHeight-He.controlSize)/2,marginFull:He.controlSize/2,marginPartWithMark:He.controlHeightLG-He.controlSize});return[ht(mt),Oe(mt),Ce(mt)]},He=>{const Wt=He.controlHeightLG/4,kt=He.controlHeightSM/2,yn=He.lineWidth+1,pn=He.lineWidth+1*3;return{controlSize:Wt,railSize:4,handleSize:Wt,handleSizeHover:kt,dotSize:8,handleLineWidth:yn,handleLineWidthHover:pn,railBg:He.colorFillTertiary,railHoverBg:He.colorFillSecondary,trackBg:He.colorPrimaryBorder,trackHoverBg:He.colorPrimaryBorderHover,handleColor:He.colorPrimaryBorder,handleActiveColor:He.colorPrimary,dotBorderColor:He.colorBorderSecondary,dotActiveBorderColor:He.colorPrimaryBorder,trackBgDisabled:He.colorBgContainerDisabled}}),Ie=function(He,mt){var Wt={};for(var kt in He)Object.prototype.hasOwnProperty.call(He,kt)&&mt.indexOf(kt)<0&&(Wt[kt]=He[kt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,kt=Object.getOwnPropertySymbols(He);yn<kt.length;yn++)mt.indexOf(kt[yn])<0&&Object.prototype.propertyIsEnumerable.call(He,kt[yn])&&(Wt[kt[yn]]=He[kt[yn]]);return Wt};const Ke=He=>typeof He=="number"?He.toString():"";var tt=Ue.forwardRef((He,mt)=>{const{prefixCls:Wt,range:kt,className:yn,rootClassName:pn,style:mn,disabled:Gn,tooltipPrefixCls:Tn,tipFormatter:Xt,tooltipVisible:fi,getTooltipPopupContainer:Wn,tooltipPlacement:bn}=He,Dn=Ie(He,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:Bi,slider:On,getPrefixCls:Jn,getPopupContainer:Ki}=Ue.useContext(ze.E_),Pi=Ue.useContext(gn.Z),ur=Gn!=null?Gn:Pi,[lo,jo]=Ue.useState({}),Oo=(jn,Vi)=>{jo(Wi=>Object.assign(Object.assign({},Wi),{[jn]:Vi}))},Hr=(jn,Vi)=>jn||(Vi?Bi==="rtl"?"left":"right":"top"),da=Jn("slider",Wt),[zo,Co]=Pe(da),xo=et()(yn,On==null?void 0:On.className,pn,{[`${da}-rtl`]:Bi==="rtl"},Co);Bi==="rtl"&&!Dn.vertical&&(Dn.reverse=!Dn.reverse);const[Nr,Be]=Ue.useMemo(()=>kt?typeof kt=="object"?[!0,kt.draggableTrack]:[!0,!1]:[!1],[kt]),ya=(jn,Vi)=>{var Wi;const{index:pi,dragging:qn}=Vi,{tooltip:nr={},vertical:en}=He,_t=Object.assign({},nr),{open:zt,placement:Li,getPopupContainer:yr,prefixCls:Oi,formatter:Zn}=_t;let ki;Zn||Zn===null?ki=Zn:Xt||Xt===null?ki=Xt:ki=Ke;const zr=ki?lo[pi]||qn:!1,br=(Wi=zt!=null?zt:fi)!==null&&Wi!==void 0?Wi:zt===void 0&&zr,Br=Object.assign(Object.assign({},jn.props),{onMouseEnter:()=>Oo(pi,!0),onMouseLeave:()=>Oo(pi,!1)}),Pt=Jn("tooltip",Oi!=null?Oi:Tn);return Ue.createElement(An,Object.assign({},_t,{prefixCls:Pt,title:ki?ki(Vi.value):"",open:br,placement:Hr(Li!=null?Li:bn,en),key:pi,overlayClassName:`${da}-tooltip`,getPopupContainer:yr||Wn||Ki}),Ue.cloneElement(jn,Br))},to=Object.assign(Object.assign({},On==null?void 0:On.style),mn);return zo(Ue.createElement(nt,Object.assign({},Dn,{step:Dn.step,range:Nr,draggableTrack:Be,className:xo,style:to,disabled:ur,ref:mt,prefixCls:da,handleRender:ya})))})},78673:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z:function(){return Tt}});var ue=Ee(58617),et=Ee(92310),Lt=Ee.n(et),Nt=Ee(96663),Bt=Ee(90493),vt=Ee(72071),Ue=Ee(6620),bt=Ee(59301),Ct=Ee(18929),yt=Ee(10228),Zt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ot=bt.forwardRef(function(Yt,hn){var vi,ui=Yt.prefixCls,Bn=ui===void 0?"rc-switch":ui,di=Yt.className,nt=Yt.checked,ze=Yt.defaultChecked,gn=Yt.disabled,Xn=Yt.loadingIcon,ti=Yt.checkedChildren,nn=Yt.unCheckedChildren,vn=Yt.onClick,An=Yt.onChange,Si=Yt.onKeyDown,Vn=(0,Ue.Z)(Yt,Zt),Mi=(0,Ct.Z)(!1,{value:nt,defaultValue:ze}),pt=(0,vt.Z)(Mi,2),ht=pt[0],dn=pt[1];function Oe(Ke,De){var tt=ht;return gn||(tt=Ke,dn(tt),An==null||An(tt,De)),tt}function Ce(Ke){Ke.which===yt.Z.LEFT?Oe(!1,Ke):Ke.which===yt.Z.RIGHT&&Oe(!0,Ke),Si==null||Si(Ke)}function Pe(Ke){var De=Oe(!ht,Ke);vn==null||vn(De,Ke)}var Ie=Lt()(Bn,di,(vi={},(0,Bt.Z)(vi,"".concat(Bn,"-checked"),ht),(0,Bt.Z)(vi,"".concat(Bn,"-disabled"),gn),vi));return bt.createElement("button",(0,Nt.Z)({},Vn,{type:"button",role:"switch","aria-checked":ht,disabled:gn,className:Ie,ref:hn,onKeyDown:Ce,onClick:Pe}),Xn,bt.createElement("span",{className:"".concat(Bn,"-inner")},bt.createElement("span",{className:"".concat(Bn,"-inner-checked")},ti),bt.createElement("span",{className:"".concat(Bn,"-inner-unchecked")},nn)))});Ot.displayName="Switch";var Ut=Ot,Te=Ee(14088),te=Ee(36355),ne=Ee(1684),de=Ee(19716),le=Ee(64993),pe=Ee(17313),Se=Ee(83116),Ae=Ee(37613);const Me=Yt=>{const{componentCls:hn,trackHeightSM:vi,trackPadding:ui,trackMinWidthSM:Bn,innerMinMarginSM:di,innerMaxMarginSM:nt,handleSizeSM:ze}=Yt,gn=`${hn}-inner`;return{[hn]:{[`&${hn}-small`]:{minWidth:Bn,height:vi,lineHeight:`${vi}px`,[`${hn}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:di,[`${gn}-checked`]:{marginInlineStart:`calc(-100% + ${ze+ui*2}px - ${nt*2}px)`,marginInlineEnd:`calc(100% - ${ze+ui*2}px + ${nt*2}px)`},[`${gn}-unchecked`]:{marginTop:-vi,marginInlineStart:0,marginInlineEnd:0}},[`${hn}-handle`]:{width:ze,height:ze},[`${hn}-loading-icon`]:{top:(ze-Yt.switchLoadingIconSize)/2,fontSize:Yt.switchLoadingIconSize},[`&${hn}-checked`]:{[`${hn}-inner`]:{paddingInlineStart:di,paddingInlineEnd:nt,[`${gn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${gn}-unchecked`]:{marginInlineStart:`calc(100% - ${ze+ui*2}px + ${nt*2}px)`,marginInlineEnd:`calc(-100% + ${ze+ui*2}px - ${nt*2}px)`}},[`${hn}-handle`]:{insetInlineStart:`calc(100% - ${ze+ui}px)`}},[`&:not(${hn}-disabled):active`]:{[`&:not(${hn}-checked) ${gn}`]:{[`${gn}-unchecked`]:{marginInlineStart:Yt.marginXXS/2,marginInlineEnd:-Yt.marginXXS/2}},[`&${hn}-checked ${gn}`]:{[`${gn}-checked`]:{marginInlineStart:-Yt.marginXXS/2,marginInlineEnd:Yt.marginXXS/2}}}}}}},ke=Yt=>{const{componentCls:hn,handleSize:vi}=Yt;return{[hn]:{[`${hn}-loading-icon${Yt.iconCls}`]:{position:"relative",top:(vi-Yt.fontSize)/2,color:Yt.switchLoadingIconColor,verticalAlign:"top"},[`&${hn}-checked ${hn}-loading-icon`]:{color:Yt.switchColor}}}},st=Yt=>{const{componentCls:hn,motion:vi,trackPadding:ui,handleBg:Bn,handleShadow:di,handleSize:nt}=Yt,ze=`${hn}-handle`;return{[hn]:{[ze]:{position:"absolute",top:ui,insetInlineStart:ui,width:nt,height:nt,transition:`all ${Yt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Bn,borderRadius:nt/2,boxShadow:di,transition:`all ${Yt.switchDuration} ease-in-out`,content:'""'}},[`&${hn}-checked ${ze}`]:{insetInlineStart:`calc(100% - ${nt+ui}px)`},[`&:not(${hn}-disabled):active`]:vi?{[`${ze}::before`]:{insetInlineEnd:Yt.switchHandleActiveInset,insetInlineStart:0},[`&${hn}-checked ${ze}::before`]:{insetInlineEnd:0,insetInlineStart:Yt.switchHandleActiveInset}}:{}}}},dt=Yt=>{const{componentCls:hn,trackHeight:vi,trackPadding:ui,innerMinMargin:Bn,innerMaxMargin:di,handleSize:nt}=Yt,ze=`${hn}-inner`;return{[hn]:{[ze]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:di,paddingInlineEnd:Bn,transition:`padding-inline-start ${Yt.switchDuration} ease-in-out, padding-inline-end ${Yt.switchDuration} ease-in-out`,[`${ze}-checked, ${ze}-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"},[`${ze}-checked`]:{marginInlineStart:`calc(-100% + ${nt+ui*2}px - ${di*2}px)`,marginInlineEnd:`calc(100% - ${nt+ui*2}px + ${di*2}px)`},[`${ze}-unchecked`]:{marginTop:-vi,marginInlineStart:0,marginInlineEnd:0}},[`&${hn}-checked ${ze}`]:{paddingInlineStart:Bn,paddingInlineEnd:di,[`${ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ze}-unchecked`]:{marginInlineStart:`calc(100% - ${nt+ui*2}px + ${di*2}px)`,marginInlineEnd:`calc(-100% + ${nt+ui*2}px - ${di*2}px)`}},[`&:not(${hn}-disabled):active`]:{[`&:not(${hn}-checked) ${ze}`]:{[`${ze}-unchecked`]:{marginInlineStart:ui*2,marginInlineEnd:-ui*2}},[`&${hn}-checked ${ze}`]:{[`${ze}-checked`]:{marginInlineStart:-ui*2,marginInlineEnd:ui*2}}}}}},xt=Yt=>{const{componentCls:hn,trackHeight:vi,trackMinWidth:ui}=Yt;return{[hn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Yt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ui,height:vi,lineHeight:`${vi}px`,verticalAlign:"middle",background:Yt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Yt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${hn}-disabled)`]:{background:Yt.colorTextTertiary}}),(0,pe.Qy)(Yt)),{[`&${hn}-checked`]:{background:Yt.switchColor,[`&:hover:not(${hn}-disabled)`]:{background:Yt.colorPrimaryHover}},[`&${hn}-loading, &${hn}-disabled`]:{cursor:"not-allowed",opacity:Yt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${hn}-rtl`]:{direction:"rtl"}})}};var ut=(0,Se.Z)("Switch",Yt=>{const hn=(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[xt(hn),dt(hn),st(hn),ke(hn),Me(hn)]},Yt=>{const{fontSize:hn,lineHeight:vi,controlHeight:ui,colorWhite:Bn}=Yt,di=hn*vi,nt=ui/2,ze=2,gn=di-ze*2,Xn=nt-ze*2;return{trackHeight:di,trackHeightSM:nt,trackMinWidth:gn*2+ze*4,trackMinWidthSM:Xn*2+ze*2,trackPadding:ze,handleBg:Bn,handleSize:gn,handleSizeSM:Xn,handleShadow:`0 2px 4px 0 ${new le.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:gn/2,innerMaxMargin:gn+ze+ze*2,innerMinMarginSM:Xn/2,innerMaxMarginSM:Xn+ze+ze*2}}),It=function(Yt,hn){var vi={};for(var ui in Yt)Object.prototype.hasOwnProperty.call(Yt,ui)&&hn.indexOf(ui)<0&&(vi[ui]=Yt[ui]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,ui=Object.getOwnPropertySymbols(Yt);Bn<ui.length;Bn++)hn.indexOf(ui[Bn])<0&&Object.prototype.propertyIsEnumerable.call(Yt,ui[Bn])&&(vi[ui[Bn]]=Yt[ui[Bn]]);return vi};const Et=bt.forwardRef((Yt,hn)=>{const{prefixCls:vi,size:ui,disabled:Bn,loading:di,className:nt,rootClassName:ze,style:gn}=Yt,Xn=It(Yt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ti,direction:nn,switch:vn}=bt.useContext(te.E_),An=bt.useContext(ne.Z),Si=(Bn!=null?Bn:An)||di,Vn=ti("switch",vi),Mi=bt.createElement("div",{className:`${Vn}-handle`},di&&bt.createElement(ue.Z,{className:`${Vn}-loading-icon`})),[pt,ht]=ut(Vn),dn=(0,de.Z)(ui),Oe=Lt()(vn==null?void 0:vn.className,{[`${Vn}-small`]:dn==="small",[`${Vn}-loading`]:di,[`${Vn}-rtl`]:nn==="rtl"},nt,ze,ht),Ce=Object.assign(Object.assign({},vn==null?void 0:vn.style),gn);return pt(bt.createElement(Te.Z,{component:"Switch"},bt.createElement(Ut,Object.assign({},Xn,{prefixCls:Vn,className:Oe,style:Ce,disabled:Si,ref:hn,loadingIcon:Mi}))))});Et.__ANT_SWITCH=!0;var Tt=Et},10527:function(qt,kn,Ee){"use strict";var ue,et=Ee(10609).default;ue={value:!0},kn.Z=void 0;var Lt=et(Ee(65835)),Nt=et(Ee(6432));const Bt={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({},Nt.default)};Bt.lang.ok="\u786E\u5B9A";var vt=Bt;kn.Z=vt},6432:function(qt,kn){"use strict";Object.defineProperty(kn,"__esModule",{value:!0}),kn.default=void 0;var ue={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};kn.default=ue},99498:function(qt,kn,Ee){(function(ue){ue(Ee(89780))})(function(ue){ue.defineOption("placeholder","",function(bt,Ct,yt){var Zt=yt&&yt!=ue.Init;if(Ct&&!Zt)bt.on("blur",Bt),bt.on("change",vt),bt.on("swapDoc",vt),ue.on(bt.getInputField(),"compositionupdate",bt.state.placeholderCompose=function(){Nt(bt)}),vt(bt);else if(!Ct&&Zt){bt.off("blur",Bt),bt.off("change",vt),bt.off("swapDoc",vt),ue.off(bt.getInputField(),"compositionupdate",bt.state.placeholderCompose),et(bt);var Ot=bt.getWrapperElement();Ot.className=Ot.className.replace(" CodeMirror-empty","")}Ct&&!bt.hasFocus()&&Bt(bt)});function et(bt){bt.state.placeholder&&(bt.state.placeholder.parentNode.removeChild(bt.state.placeholder),bt.state.placeholder=null)}function Lt(bt){et(bt);var Ct=bt.state.placeholder=document.createElement("pre");Ct.style.cssText="height: 0; overflow: visible",Ct.style.direction=bt.getOption("direction"),Ct.className="CodeMirror-placeholder CodeMirror-line-like";var yt=bt.getOption("placeholder");typeof yt=="string"&&(yt=document.createTextNode(yt)),Ct.appendChild(yt),bt.display.lineSpace.insertBefore(Ct,bt.display.lineSpace.firstChild)}function Nt(bt){setTimeout(function(){var Ct=!1,yt=bt.getInputField();yt.nodeName=="TEXTAREA"?Ct=!yt.value:bt.lineCount()==1&&(Ct=!/[^\u200b]/.test(yt.querySelector(".CodeMirror-line").textContent)),Ct?Lt(bt):et(bt)},20)}function Bt(bt){Ue(bt)&&Lt(bt)}function vt(bt){var Ct=bt.getWrapperElement(),yt=Ue(bt);Ct.className=Ct.className.replace(" CodeMirror-empty","")+(yt?" CodeMirror-empty":""),yt?Lt(bt):et(bt)}function Ue(bt){return bt.lineCount()===1&&bt.getLine(0)===""}})},25717:function(qt,kn,Ee){(function(ue){ue(Ee(89780))})(function(ue){var et={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Lt=ue.Pos;ue.defineOption("autoCloseBrackets",!1,function(te,ne,de){de&&de!=ue.Init&&(te.removeKeyMap(Bt),te.state.closeBrackets=null),ne&&(vt(Nt(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Bt))});function Nt(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:et[ne]}var Bt={Backspace:Ct,Enter:yt};function vt(te){for(var ne=0;ne<te.length;ne++){var de=te.charAt(ne),le="'"+de+"'";Bt[le]||(Bt[le]=Ue(de))}}vt(et.pairs+"`");function Ue(te){return function(ne){return Ot(ne,te)}}function bt(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=bt(te);if(!ne||te.getOption("disableInput"))return ue.Pass;for(var de=Nt(ne,"pairs"),le=te.listSelections(),pe=0;pe<le.length;pe++){if(!le[pe].empty())return ue.Pass;var Se=Ut(te,le[pe].head);if(!Se||de.indexOf(Se)%2!=0)return ue.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 yt(te){var ne=bt(te),de=ne&&Nt(ne,"explode");if(!de||te.getOption("disableInput"))return ue.Pass;for(var le=te.listSelections(),pe=0;pe<le.length;pe++){if(!le[pe].empty())return ue.Pass;var Se=Ut(te,le[pe].head);if(!Se||de.indexOf(Se)%2!=0)return ue.Pass}te.operation(function(){var Ae=te.lineSeparator()||`
|
|
`;te.replaceSelection(Ae+Ae,null),te.execCommand("goCharLeft"),le=te.listSelections();for(var Me=0;Me<le.length;Me++){var ke=le[Me].head.line;te.indentLine(ke,null,!0),te.indentLine(ke+1,null,!0)}})}function Zt(te){var ne=ue.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 Ot(te,ne){var de=bt(te);if(!de||te.getOption("disableInput"))return ue.Pass;var le=Nt(de,"pairs"),pe=le.indexOf(ne);if(pe==-1)return ue.Pass;for(var Se=Nt(de,"closeBefore"),Ae=Nt(de,"triples"),Me=le.charAt(pe+1)==ne,ke=te.listSelections(),st=pe%2==0,dt,xt=0;xt<ke.length;xt++){var ut=ke[xt],It=ut.head,Et,Tt=te.getRange(It,Lt(It.line,It.ch+1));if(st&&!ut.empty())Et="surround";else if((Me||!st)&&Tt==ne)Me&&Te(te,It)?Et="both":Ae.indexOf(ne)>=0&&te.getRange(It,Lt(It.line,It.ch+3))==ne+ne+ne?Et="skipThree":Et="skip";else if(Me&&It.ch>1&&Ae.indexOf(ne)>=0&&te.getRange(Lt(It.line,It.ch-2),It)==ne+ne){if(It.ch>2&&/\bstring/.test(te.getTokenTypeAt(Lt(It.line,It.ch-2))))return ue.Pass;Et="addFour"}else if(Me){var Yt=It.ch==0?" ":te.getRange(Lt(It.line,It.ch-1),It);if(!ue.isWordChar(Tt)&&Yt!=ne&&!ue.isWordChar(Yt))Et="both";else return ue.Pass}else if(st&&(Tt.length===0||/\s/.test(Tt)||Se.indexOf(Tt)>-1))Et="both";else return ue.Pass;if(!dt)dt=Et;else if(dt!=Et)return ue.Pass}var hn=pe%2?le.charAt(pe-1):ne,vi=pe%2?ne:le.charAt(pe+1);te.operation(function(){if(dt=="skip")te.execCommand("goCharRight");else if(dt=="skipThree")for(var ui=0;ui<3;ui++)te.execCommand("goCharRight");else if(dt=="surround"){for(var Bn=te.getSelections(),ui=0;ui<Bn.length;ui++)Bn[ui]=hn+Bn[ui]+vi;te.replaceSelections(Bn,"around"),Bn=te.listSelections().slice();for(var ui=0;ui<Bn.length;ui++)Bn[ui]=Zt(Bn[ui]);te.setSelections(Bn)}else dt=="both"?(te.replaceSelection(hn+vi,null),te.triggerElectric(hn+vi),te.execCommand("goCharLeft")):dt=="addFour"&&(te.replaceSelection(hn+hn+hn+hn,"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 Te(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(qt,kn,Ee){(function(ue){ue(Ee(89780),Ee(32855))})(function(ue){ue.defineOption("autoCloseTags",!1,function(Ct,yt,Zt){if(Zt!=ue.Init&&Zt&&Ct.removeKeyMap("autoCloseTags"),!!yt){var Ot={name:"autoCloseTags"};(typeof yt!="object"||yt.whenClosing!==!1)&&(Ot["'/'"]=function(Ut){return vt(Ut)}),(typeof yt!="object"||yt.whenOpening!==!1)&&(Ot["'>'"]=function(Ut){return Nt(Ut)}),Ct.addKeyMap(Ot)}});var et=["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 Nt(Ct){if(Ct.getOption("disableInput"))return ue.Pass;for(var yt=Ct.listSelections(),Zt=[],Ot=Ct.getOption("autoCloseTags"),Ut=0;Ut<yt.length;Ut++){if(!yt[Ut].empty())return ue.Pass;var Te=yt[Ut].head,te=Ct.getTokenAt(Te),ne=ue.innerMode(Ct.getMode(),te.state),de=ne.state,le=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(de),pe=le&&le.name;if(!pe)return ue.Pass;var Se=ne.mode.configuration=="html",Ae=typeof Ot=="object"&&Ot.dontCloseTags||Se&&et,Me=typeof Ot=="object"&&Ot.indentTags||Se&≪te.end>Te.ch&&(pe=pe.slice(0,pe.length-te.end+Te.ch));var ke=pe.toLowerCase();if(!pe||te.type=="string"&&(te.end!=Te.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&le.close||te.string.indexOf("/")==Te.ch-te.start-1||Ae&&Ue(Ae,ke)>-1||bt(Ct,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(de)||[],pe,Te,!0))return ue.Pass;var st=typeof Ot=="object"&&Ot.emptyTags;if(st&&Ue(st,pe)>-1){Zt[Ut]={text:"/>",newPos:ue.Pos(Te.line,Te.ch+2)};continue}var dt=Me&&Ue(Me,ke)>-1;Zt[Ut]={indent:dt,text:">"+(dt?`
|
|
|
|
`:"")+"</"+pe+">",newPos:dt?ue.Pos(Te.line+1,0):ue.Pos(Te.line,Te.ch+1)}}for(var xt=typeof Ot=="object"&&Ot.dontIndentOnAutoClose,Ut=yt.length-1;Ut>=0;Ut--){var ut=Zt[Ut];Ct.replaceRange(ut.text,yt[Ut].head,yt[Ut].anchor,"+insert");var It=Ct.listSelections().slice(0);It[Ut]={head:ut.newPos,anchor:ut.newPos},Ct.setSelections(It),!xt&&ut.indent&&(Ct.indentLine(ut.newPos.line,null,!0),Ct.indentLine(ut.newPos.line+1,null,!0))}}function Bt(Ct,yt){for(var Zt=Ct.listSelections(),Ot=[],Ut=yt?"/":"</",Te=Ct.getOption("autoCloseTags"),te=typeof Te=="object"&&Te.dontIndentOnSlash,ne=0;ne<Zt.length;ne++){if(!Zt[ne].empty())return ue.Pass;var de=Zt[ne].head,le=Ct.getTokenAt(de),pe=ue.innerMode(Ct.getMode(),le.state),Se=pe.state;if(yt&&(le.type=="string"||le.string.charAt(0)!="<"||le.start!=de.ch-1))return ue.Pass;var Ae,Me=pe.mode.name!="xml"&&Ct.getMode().name=="htmlmixed";if(Me&&pe.mode.name=="javascript")Ae=Ut+"script";else if(Me&&pe.mode.name=="css")Ae=Ut+"style";else{var ke=pe.mode.xmlCurrentContext&&pe.mode.xmlCurrentContext(Se);if(!ke||ke.length&&bt(Ct,ke,ke[ke.length-1],de))return ue.Pass;Ae=Ut+ke[ke.length-1]}Ct.getLine(de.line).charAt(le.end)!=">"&&(Ae+=">"),Ot[ne]=Ae}if(Ct.replaceSelections(Ot),Zt=Ct.listSelections(),!te)for(var ne=0;ne<Zt.length;ne++)(ne==Zt.length-1||Zt[ne].head.line<Zt[ne+1].head.line)&&Ct.indentLine(Zt[ne].head.line)}function vt(Ct){return Ct.getOption("disableInput")?ue.Pass:Bt(Ct,!0)}ue.commands.closeTag=function(Ct){return Bt(Ct)};function Ue(Ct,yt){if(Ct.indexOf)return Ct.indexOf(yt);for(var Zt=0,Ot=Ct.length;Zt<Ot;++Zt)if(Ct[Zt]==yt)return Zt;return-1}function bt(Ct,yt,Zt,Ot,Ut){if(!ue.scanForClosingTag)return!1;var Te=Math.min(Ct.lastLine()+1,Ot.line+500),te=ue.scanForClosingTag(Ct,Ot,null,Te);if(!te||te.tag!=Zt)return!1;for(var ne=Ut?1:0,de=yt.length-1;de>=0&&yt[de]==Zt;de--)++ne;Ot=te.to;for(var de=1;de<ne;de++){var le=ue.scanForClosingTag(Ct,Ot,null,Te);if(!le||le.tag!=Zt)return!1;Ot=le.to}return!0}})},32855:function(qt,kn,Ee){(function(ue){ue(Ee(89780))})(function(ue){"use strict";var et=ue.Pos;function Lt(de,le){return de.line-le.line||de.ch-le.ch}var Nt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Bt=Nt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vt=new RegExp("<(/?)(["+Nt+"]["+Bt+"]*)","g");function Ue(de,le,pe,Se){this.line=le,this.ch=pe,this.cm=de,this.text=de.getLine(le),this.min=Se?Math.max(Se.from,de.firstLine()):de.firstLine(),this.max=Se?Math.min(Se.to-1,de.lastLine()):de.lastLine()}function bt(de,le){var pe=de.cm.getTokenTypeAt(et(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 yt(de){if(!(de.line<=de.min))return de.text=de.cm.getLine(--de.line),de.ch=de.text.length,!0}function Zt(de){for(;;){var le=de.text.indexOf(">",de.ch);if(le==-1){if(Ct(de))continue;return}if(!bt(de,le+1)){de.ch=le+1;continue}var pe=de.text.lastIndexOf("/",le),Se=pe>-1&&!/\S/.test(de.text.slice(pe+1,le));return de.ch=le+1,Se?"selfClose":"regular"}}function Ot(de){for(;;){var le=de.ch?de.text.lastIndexOf("<",de.ch-1):-1;if(le==-1){if(yt(de))continue;return}if(!bt(de,le+1)){de.ch=le;continue}vt.lastIndex=le,de.ch=le;var pe=vt.exec(de.text);if(pe&&pe.index==le)return pe}}function Ut(de){for(;;){vt.lastIndex=de.ch;var le=vt.exec(de.text);if(!le){if(Ct(de))continue;return}if(!bt(de,le.index+1)){de.ch=le.index+1;continue}return de.ch=le.index+le[0].length,le}}function Te(de){for(;;){var le=de.ch?de.text.lastIndexOf(">",de.ch-1):-1;if(le==-1){if(yt(de))continue;return}if(!bt(de,le+1)){de.ch=le;continue}var pe=de.text.lastIndexOf("/",le),Se=pe>-1&&!/\S/.test(de.text.slice(pe+1,le));return de.ch=le+1,Se?"selfClose":"regular"}}function te(de,le){for(var pe=[];;){var Se=Ut(de),Ae,Me=de.line,ke=de.ch-(Se?Se[0].length:0);if(!Se||!(Ae=Zt(de)))return;if(Ae!="selfClose")if(Se[1]){for(var st=pe.length-1;st>=0;--st)if(pe[st]==Se[2]){pe.length=st;break}if(st<0&&(!le||le==Se[2]))return{tag:Se[2],from:et(Me,ke),to:et(de.line,de.ch)}}else pe.push(Se[2])}}function ne(de,le){for(var pe=[];;){var Se=Te(de);if(!Se)return;if(Se=="selfClose"){Ot(de);continue}var Ae=de.line,Me=de.ch,ke=Ot(de);if(!ke)return;if(ke[1])pe.push(ke[2]);else{for(var st=pe.length-1;st>=0;--st)if(pe[st]==ke[2]){pe.length=st;break}if(st<0&&(!le||le==ke[2]))return{tag:ke[2],from:et(de.line,de.ch),to:et(Ae,Me)}}}}ue.registerHelper("fold","xml",function(de,le){for(var pe=new Ue(de,le.line,0);;){var Se=Ut(pe);if(!Se||pe.line!=le.line)return;var Ae=Zt(pe);if(!Ae)return;if(!Se[1]&&Ae!="selfClose"){var Me=et(pe.line,pe.ch),ke=te(pe,Se[2]);return ke&&Lt(ke.from,Me)>0?{from:Me,to:ke.from}:null}}}),ue.findMatchingTag=function(de,le,pe){var Se=new Ue(de,le.line,le.ch,pe);if(!(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)){var Ae=Zt(Se),Me=Ae&&et(Se.line,Se.ch),ke=Ae&&Ot(Se);if(!(!Ae||!ke||Lt(Se,le)>0)){var st={from:et(Se.line,Se.ch),to:Me,tag:ke[2]};return Ae=="selfClose"?{open:st,close:null,at:"open"}:ke[1]?{open:ne(Se,ke[2]),close:st,at:"close"}:(Se=new Ue(de,Me.line,Me.ch,pe),{open:st,close:te(Se,ke[2]),at:"open"})}}},ue.findEnclosingTag=function(de,le,pe,Se){for(var Ae=new Ue(de,le.line,le.ch,pe);;){var Me=ne(Ae,Se);if(!Me)break;var ke=new Ue(de,le.line,le.ch,pe),st=te(ke,Me.tag);if(st)return{open:Me,close:st}}},ue.scanForClosingTag=function(de,le,pe,Se){var Ae=new Ue(de,le.line,le.ch,Se?{from:0,to:Se}:null);return te(Ae,pe)}})},89780:function(qt){(function(kn,Ee){qt.exports=Ee()})(this,function(){"use strict";var kn=navigator.userAgent,Ee=navigator.platform,ue=/gecko\/\d/i.test(kn),et=/MSIE \d/.test(kn),Lt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(kn),Nt=/Edge\/(\d+)/.exec(kn),Bt=et||Lt||Nt,vt=Bt&&(et?document.documentMode||6:+(Nt||Lt)[1]),Ue=!Nt&&/WebKit\//.test(kn),bt=Ue&&/Qt\/\d+\.\d+/.test(kn),Ct=!Nt&&/Chrome\//.test(kn),yt=/Opera\//.test(kn),Zt=/Apple Computer/.test(navigator.vendor),Ot=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(kn),Ut=/PhantomJS/.test(kn),Te=!Nt&&/AppleWebKit/.test(kn)&&/Mobile\/\w+/.test(kn),te=/Android/.test(kn),ne=Te||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(kn),de=Te||/Mac/.test(Ee),le=/\bCrOS\b/.test(kn),pe=/win/i.test(Ee),Se=yt&&kn.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(yt=!1,Ue=!0);var Ae=de&&(bt||yt&&(Se==null||Se<12.11)),Me=ue||Bt&&vt>=9;function ke(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var st=function(ie,ae){var fe=ie.className,he=ke(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 xt(ie,ae){return dt(ie).appendChild(ae)}function ut(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 Le=0;Le<ae.length;++Le)me.appendChild(ae[Le]);return me}function It(ie,ae,fe,he){var me=ut(ie,ae,fe,he);return me.setAttribute("role","presentation"),me}var Et;document.createRange?Et=function(ie,ae,fe,he){var me=document.createRange();return me.setEnd(he||ie,fe),me.setStart(ie,ae),me}:Et=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 Tt(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 hn(ie,ae){var fe=ie.className;ke(ae).test(fe)||(ie.className+=(fe?" ":"")+ae)}function vi(ie,ae){for(var fe=ie.split(" "),he=0;he<fe.length;he++)fe[he]&&!ke(fe[he]).test(ae)&&(ae+=" "+fe[he]);return ae}var ui=function(ie){ie.select()};Te?ui=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Bt&&(ui=function(ie){try{ie.select()}catch(ae){}});function Bn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function di(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 nt(ie,ae,fe,he,me){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Le=he||0,je=me||0;;){var Je=ie.indexOf(" ",Le);if(Je<0||Je>=ae)return je+(ae-Le);je+=Je-Le,je+=fe-je%fe,Le=Je+1}}var ze=function(){this.id=null,this.f=null,this.time=0,this.handler=Bn(this.onTimeout,this)};ze.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ze.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 gn(ie,ae){for(var fe=0;fe<ie.length;++fe)if(ie[fe]==ae)return fe;return-1}var Xn=50,ti={toString:function(){return"CodeMirror.Pass"}},nn={scroll:!1},vn={origin:"*mouse"},An={origin:"+move"};function Si(ie,ae,fe){for(var he=0,me=0;;){var Le=ie.indexOf(" ",he);Le==-1&&(Le=ie.length);var je=Le-he;if(Le==ie.length||me+je>=ae)return he+Math.min(je,ae-me);if(me+=Le-he,me+=fe-me%fe,he=Le+1,me>=ae)return he}}var Vn=[""];function Mi(ie){for(;Vn.length<=ie;)Vn.push(pt(Vn)+" ");return Vn[ie]}function pt(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 dn(ie,ae,fe){for(var he=0,me=fe(ae);he<ie.length&&fe(ie[he])<=me;)he++;ie.splice(he,0,ae)}function Oe(){}function Ce(ie,ae){var fe;return Object.create?fe=Object.create(ie):(Oe.prototype=ie,fe=new Oe),ae&&di(ae,fe),fe}var Pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ie(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Pe.test(ie))}function Ke(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ie(ie)?!0:ae.test(ie):Ie(ie)}function De(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var tt=/[\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 He(ie){return ie.charCodeAt(0)>=768&&tt.test(ie)}function mt(ie,ae,fe){for(;(fe<0?ae>0:ae<ie.length)&&He(ie.charAt(ae));)ae+=fe;return ae}function Wt(ie,ae,fe){for(var he=ae>fe?-1:1;;){if(ae==fe)return ae;var me=(ae+fe)/2,Le=he<0?Math.ceil(me):Math.floor(me);if(Le==ae)return ie(Le)?ae:fe;ie(Le)?fe=Le:ae=Le+he}}function kt(ie,ae,fe,he){if(!ie)return he(ae,fe,"ltr",0);for(var me=!1,Le=0;Le<ie.length;++Le){var je=ie[Le];(je.from<fe&&je.to>ae||ae==fe&&je.to==ae)&&(he(Math.max(je.from,ae),Math.min(je.to,fe),je.level==1?"rtl":"ltr",Le),me=!0)}me||he(ae,fe,"ltr")}var yn=null;function pn(ie,ae,fe){var he;yn=null;for(var me=0;me<ie.length;++me){var Le=ie[me];if(Le.from<ae&&Le.to>ae)return me;Le.to==ae&&(Le.from!=Le.to&&fe=="before"?he=me:yn=me),Le.from==ae&&(Le.from!=Le.to&&fe!="before"?he=me:yn=me)}return he!=null?he:yn}var mn=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(gt){return gt<=247?ie.charAt(gt):1424<=gt&><=1524?"R":1536<=gt&><=1785?ae.charAt(gt-1536):1774<=gt&><=2220?"r":8192<=gt&><=8203?"w":gt==8204?"b":"L"}var he=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,Le=/[LRr]/,je=/[Lb1n]/,Je=/[1n]/;function Ye(gt,$t,wt){this.level=gt,this.from=$t,this.to=wt}return function(gt,$t){var wt=$t=="ltr"?"L":"R";if(gt.length==0||$t=="ltr"&&!he.test(gt))return!1;for(var Kn=gt.length,Nn=[],Zi=0;Zi<Kn;++Zi)Nn.push(fe(gt.charCodeAt(Zi)));for(var Xi=0,Rt=wt;Xi<Kn;++Xi){var ii=Nn[Xi];ii=="m"?Nn[Xi]=Rt:Rt=ii}for(var Ji=0,or=wt;Ji<Kn;++Ji){var vr=Nn[Ji];vr=="1"&&or=="r"?Nn[Ji]="n":Le.test(vr)&&(or=vr,vr=="r"&&(Nn[Ji]="R"))}for(var Wr=1,Er=Nn[0];Wr<Kn-1;++Wr){var ea=Nn[Wr];ea=="+"&&Er=="1"&&Nn[Wr+1]=="1"?Nn[Wr]="1":ea==","&&Er==Nn[Wr+1]&&(Er=="1"||Er=="n")&&(Nn[Wr]=Er),Er=ea}for(var ws=0;ws<Kn;++ws){var Ml=Nn[ws];if(Ml==",")Nn[ws]="N";else if(Ml=="%"){var us=void 0;for(us=ws+1;us<Kn&&Nn[us]=="%";++us);for(var wl=ws&&Nn[ws-1]=="!"||us<Kn&&Nn[us]=="1"?"1":"N",Hs=ws;Hs<us;++Hs)Nn[Hs]=wl;ws=us-1}}for(var $s=0,wu=wt;$s<Kn;++$s){var rs=Nn[$s];wu=="L"&&rs=="1"?Nn[$s]="L":Le.test(rs)&&(wu=rs)}for(var Fs=0;Fs<Kn;++Fs)if(me.test(Nn[Fs])){var gs=void 0;for(gs=Fs+1;gs<Kn&&me.test(Nn[gs]);++gs);for(var dl=(Fs?Nn[Fs-1]:wt)=="L",Wu=(gs<Kn?Nn[gs]:wt)=="L",Zu=dl==Wu?dl?"L":"R":wt,id=Fs;id<gs;++id)Nn[id]=Zu;Fs=gs-1}for(var Wl=[],Oc,ve=0;ve<Kn;)if(je.test(Nn[ve])){var ye=ve;for(++ve;ve<Kn&&je.test(Nn[ve]);++ve);Wl.push(new Ye(0,ye,ve))}else{var be=ve,Re=Wl.length,Xe=$t=="rtl"?1:0;for(++ve;ve<Kn&&Nn[ve]!="L";++ve);for(var qe=be;qe<ve;)if(Je.test(Nn[qe])){be<qe&&(Wl.splice(Re,0,new Ye(1,be,qe)),Re+=Xe);var ct=qe;for(++qe;qe<ve&&Je.test(Nn[qe]);++qe);Wl.splice(Re,0,new Ye(2,ct,qe)),Re+=Xe,be=qe}else++qe;be<ve&&Wl.splice(Re,0,new Ye(1,be,ve))}return $t=="ltr"&&(Wl[0].level==1&&(Oc=gt.match(/^\s+/))&&(Wl[0].from=Oc[0].length,Wl.unshift(new Ye(0,0,Oc[0].length))),pt(Wl).level==1&&(Oc=gt.match(/\s+$/))&&(pt(Wl).to-=Oc[0].length,Wl.push(new Ye(0,Kn-Oc[0].length,Kn)))),$t=="rtl"?Wl.reverse():Wl}}();function Gn(ie,ae){var fe=ie.order;return fe==null&&(fe=ie.order=mn(ie.text,ae)),fe}var Tn=[],Xt=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]||Tn).concat(fe)}};function fi(ie,ae){return ie._handlers&&ie._handlers[ae]||Tn}function Wn(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 Le=gn(me,fe);Le>-1&&(he[ae]=me.slice(0,Le).concat(me.slice(Le+1)))}}}function bn(ie,ae){var fe=fi(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 Dn(ie,ae,fe){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),bn(ie,fe||ae.type,ie,ae),ur(ae)||ae.codemirrorIgnore}function Bi(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)gn(fe,ae[he])==-1&&fe.push(ae[he])}function On(ie,ae){return fi(ie,ae).length>0}function Jn(ie){ie.prototype.on=function(ae,fe){Xt(this,ae,fe)},ie.prototype.off=function(ae,fe){Wn(this,ae,fe)}}function Ki(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Pi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function ur(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function lo(ie){Ki(ie),Pi(ie)}function jo(ie){return ie.target||ie.srcElement}function Oo(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 Hr=function(){if(Bt&&vt<9)return!1;var ie=ut("div");return"draggable"in ie||"dragDrop"in ie}(),da;function zo(ie){if(da==null){var ae=ut("span","\u200B");xt(ie,ut("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(da=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Bt&&vt<8))}var fe=da?ut("span","\u200B"):ut("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var Co;function xo(ie){if(Co!=null)return Co;var ae=xt(ie,document.createTextNode("A\u062EA")),fe=Et(ae,0,1).getBoundingClientRect(),he=Et(ae,1,2).getBoundingClientRect();return dt(ie),!fe||fe.left==fe.right?!1:Co=he.right-fe.right<3}var Nr=`
|
|
|
|
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 Le=ie.slice(ae,ie.charAt(me-1)=="\r"?me-1:me),je=Le.indexOf("\r");je!=-1?(fe.push(Le.slice(0,je)),ae+=je+1):(fe.push(Le),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},ya=function(){var ie=ut("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),to=null;function jn(ie){if(to!=null)return to;var ae=xt(ie,ut("span","x")),fe=ae.getBoundingClientRect(),he=Et(ae,0,1).getBoundingClientRect();return to=Math.abs(fe.left-he.left)>1}var Vi={},Wi={};function pi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Vi[ie]=ae}function qn(ie,ae){Wi[ie]=ae}function nr(ie){if(typeof ie=="string"&&Wi.hasOwnProperty(ie))ie=Wi[ie];else if(ie&&typeof ie.name=="string"&&Wi.hasOwnProperty(ie.name)){var ae=Wi[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Ce(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return nr("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return nr("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function en(ie,ae){ae=nr(ae);var fe=Vi[ae.name];if(!fe)return en(ie,"text/plain");var he=fe(ie,ae);if(_t.hasOwnProperty(ae.name)){var me=_t[ae.name];for(var Le in me)me.hasOwnProperty(Le)&&(he.hasOwnProperty(Le)&&(he["_"+Le]=he[Le]),he[Le]=me[Le])}if(he.name=ae.name,ae.helperType&&(he.helperType=ae.helperType),ae.modeProps)for(var je in ae.modeProps)he[je]=ae.modeProps[je];return he}var _t={};function zt(ie,ae){var fe=_t.hasOwnProperty(ie)?_t[ie]:_t[ie]={};di(ae,fe)}function Li(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 yr(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 Oi(ie,ae,fe){return ie.startState?ie.startState(ae,fe):!0}var Zn=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};Zn.prototype.eol=function(){return this.pos>=this.string.length},Zn.prototype.sol=function(){return this.pos==this.lineStart},Zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zn.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},Zn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Zn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Zn.prototype.skipToEnd=function(){this.pos=this.string.length},Zn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Zn.prototype.backUp=function(ie){this.pos-=ie},Zn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?nt(this.string,this.lineStart,this.tabSize):0)},Zn.prototype.indentation=function(){return nt(this.string,null,this.tabSize)-(this.lineStart?nt(this.string,this.lineStart,this.tabSize):0)},Zn.prototype.match=function(ie,ae,fe){if(typeof ie=="string"){var he=function(je){return fe?je.toLowerCase():je},me=this.string.substr(this.pos,ie.length);if(he(me)==he(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Le=this.string.slice(this.pos).match(ie);return Le&&Le.index>0?null:(Le&&ae!==!1&&(this.pos+=Le[0].length),Le)}},Zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Zn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Zn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function ki(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],Le=me.chunkSize();if(ae<Le){fe=me;break}ae-=Le}return fe.lines[ae]}function zr(ie,ae,fe){var he=[],me=ae.line;return ie.iter(ae.line,fe.line+1,function(Le){var je=Le.text;me==fe.line&&(je=je.slice(0,fe.ch)),me==ae.line&&(je=je.slice(ae.ch)),he.push(je),++me}),he}function br(ie,ae,fe){var he=[];return ie.iter(ae,fe,function(me){he.push(me.text)}),he}function Br(ie,ae){var fe=ae-ie.height;if(fe)for(var he=ie;he;he=he.parent)he.height+=fe}function Pt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,fe=gn(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 Di(ie,ae){var fe=ie.first;e:do{for(var he=0;he<ie.children.length;++he){var me=ie.children[he],Le=me.height;if(ae<Le){ie=me;continue e}ae-=Le,fe+=me.chunkSize()}return fe}while(!ie.lines);for(var je=0;je<ie.lines.length;++je){var Je=ie.lines[je],Ye=Je.height;if(ae<Ye)break;ae-=Ye}return fe+je}function En(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function Yn(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Mt(ie,ae,fe){if(fe===void 0&&(fe=null),!(this instanceof Mt))return new Mt(ie,ae,fe);this.line=ie,this.ch=ae,this.sticky=fe}function Ft(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function sn(ie,ae){return ie.sticky==ae.sticky&&Ft(ie,ae)==0}function Sr(ie){return Mt(ie.line,ie.ch)}function Ii(ie,ae){return Ft(ie,ae)<0?ae:ie}function Ri(ie,ae){return Ft(ie,ae)<0?ie:ae}function ai(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Ti(ie,ae){if(ae.line<ie.first)return Mt(ie.first,0);var fe=ie.first+ie.size-1;return ae.line>fe?Mt(fe,ki(ie,fe).text.length):Jr(ae,ki(ie,ae.line).text.length)}function Jr(ie,ae){var fe=ie.ch;return fe==null||fe>ae?Mt(ie.line,ae):fe<0?Mt(ie.line,0):ie}function Qr(ie,ae){for(var fe=[],he=0;he<ae.length;he++)fe[he]=Ti(ie,ae[he]);return fe}var Lo=function(ie,ae){this.state=ie,this.lookAhead=ae},Ln=function(ie,ae,fe,he){this.state=ae,this.doc=ie,this.line=fe,this.maxLookAhead=he||0,this.baseTokens=null,this.baseTokenPos=1};Ln.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Ln.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}},Ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ln.fromSaved=function(ie,ae,fe){return ae instanceof Lo?new Ln(ie,Li(ie.mode,ae.state),fe,ae.lookAhead):new Ln(ie,Li(ie.mode,ae),fe)},Ln.prototype.save=function(ie){var ae=ie!==!1?Li(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Lo(ae,this.maxLookAhead):ae};function ja(ie,ae,fe,he){var me=[ie.state.modeGen],Le={};sr(ie,ae.text,ie.doc.mode,fe,function(gt,$t){return me.push(gt,$t)},Le,he);for(var je=fe.state,Je=function(gt){fe.baseTokens=me;var $t=ie.state.overlays[gt],wt=1,Kn=0;fe.state=!0,sr(ie,ae.text,$t.mode,fe,function(Nn,Zi){for(var Xi=wt;Kn<Nn;){var Rt=me[wt];Rt>Nn&&me.splice(wt,1,Nn,me[wt+1],Rt),wt+=2,Kn=Math.min(Nn,Rt)}if(Zi)if($t.opaque)me.splice(Xi,wt-Xi,Nn,"overlay "+Zi),wt=Xi+2;else for(;Xi<wt;Xi+=2){var ii=me[Xi+1];me[Xi+1]=(ii?ii+" ":"")+"overlay "+Zi}},Le),fe.state=je,fe.baseTokens=null,fe.baseTokenPos=1},Ye=0;Ye<ie.state.overlays.length;++Ye)Je(Ye);return{styles:me,classes:Le.bgClass||Le.textClass?Le:null}}function co(ie,ae,fe){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var he=Kr(ie,Pt(ae)),me=ae.text.length>ie.options.maxHighlightLength&&Li(ie.doc.mode,he.state),Le=ja(ie,ae,he);me&&(he.state=me),ae.stateAfter=he.save(!me),ae.styles=Le.styles,Le.classes?ae.styleClasses=Le.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 Kr(ie,ae,fe){var he=ie.doc,me=ie.display;if(!he.mode.startState)return new Ln(he,!0,ae);var Le=li(ie,ae,fe),je=Le>he.first&&ki(he,Le-1).stateAfter,Je=je?Ln.fromSaved(he,je,Le):new Ln(he,Oi(he.mode),Le);return he.iter(Le,ae,function(Ye){on(ie,Ye.text,Je);var gt=Je.line;Ye.stateAfter=gt==ae-1||gt%5==0||gt>=me.viewFrom&><me.viewTo?Je.save():null,Je.nextLine()}),fe&&(he.modeFrontier=Je.line),Je}function on(ie,ae,fe,he){var me=ie.doc.mode,Le=new Zn(ae,ie.options.tabSize,fe);for(Le.start=Le.pos=he||0,ae==""&&Vt(me,fe.state);!Le.eol();)cn(me,Le,fe.state),Le.start=Le.pos}function Vt(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var fe=yr(ie,ae);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function cn(ie,ae,fe,he){for(var me=0;me<10;me++){he&&(he[0]=yr(ie,fe).mode);var Le=ie.token(ae,fe);if(ae.pos>ae.start)return Le}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Jt=function(ie,ae,fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=fe};function zn(ie,ae,fe,he){var me=ie.doc,Le=me.mode,je;ae=Ti(me,ae);var Je=ki(me,ae.line),Ye=Kr(ie,ae.line,fe),gt=new Zn(Je.text,ie.options.tabSize,Ye),$t;for(he&&($t=[]);(he||gt.pos<ae.ch)&&!gt.eol();)gt.start=gt.pos,je=cn(Le,gt,Ye.state),he&&$t.push(new Jt(gt,je,Li(me.mode,Ye.state)));return he?$t:new Jt(gt,je,Ye.state)}function er(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 sr(ie,ae,fe,he,me,Le,je){var Je=fe.flattenSpans;Je==null&&(Je=ie.options.flattenSpans);var Ye=0,gt=null,$t=new Zn(ae,ie.options.tabSize,he),wt,Kn=ie.options.addModeClass&&[null];for(ae==""&&er(Vt(fe,he.state),Le);!$t.eol();){if($t.pos>ie.options.maxHighlightLength?(Je=!1,je&&on(ie,ae,he,$t.pos),$t.pos=ae.length,wt=null):wt=er(cn(fe,$t,he.state,Kn),Le),Kn){var Nn=Kn[0].name;Nn&&(wt="m-"+(wt?Nn+" "+wt:Nn))}if(!Je||gt!=wt){for(;Ye<$t.start;)Ye=Math.min($t.start,Ye+5e3),me(Ye,gt);gt=wt}$t.start=$t.pos}for(;Ye<$t.pos;){var Zi=Math.min($t.pos,Ye+5e3);me(Zi,gt),Ye=Zi}}function li(ie,ae,fe){for(var he,me,Le=ie.doc,je=fe?-1:ae-(ie.doc.mode.innerMode?1e3:100),Je=ae;Je>je;--Je){if(Je<=Le.first)return Le.first;var Ye=ki(Le,Je-1),gt=Ye.stateAfter;if(gt&&(!fe||Je+(gt instanceof Lo?gt.lookAhead:0)<=Le.modeFrontier))return Je;var $t=nt(Ye.text,null,ie.options.tabSize);(me==null||he>$t)&&(me=Je-1,he=$t)}return me}function Ci(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=ki(ie,he).stateAfter;if(me&&(!(me instanceof Lo)||he+me.lookAhead<ae)){fe=he+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,fe)}}var Qn=!1,an=!1;function Vr(){Qn=!0}function In(){an=!0}function Or(ie,ae,fe){this.marker=ie,this.from=ae,this.to=fe}function Tr(ie,ae){if(ie)for(var fe=0;fe<ie.length;++fe){var he=ie[fe];if(he.marker==ae)return he}}function fr(ie,ae){for(var fe,he=0;he<ie.length;++he)ie[he]!=ae&&(fe||(fe=[])).push(ie[he]);return fe}function Bo(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Gr(ie,ae,fe){var he;if(ie)for(var me=0;me<ie.length;++me){var Le=ie[me],je=Le.marker,Je=Le.from==null||(je.inclusiveLeft?Le.from<=ae:Le.from<ae);if(Je||Le.from==ae&&je.type=="bookmark"&&(!fe||!Le.marker.insertLeft)){var Ye=Le.to==null||(je.inclusiveRight?Le.to>=ae:Le.to>ae);(he||(he=[])).push(new Or(je,Le.from,Ye?null:Le.to))}}return he}function Ui(ie,ae,fe){var he;if(ie)for(var me=0;me<ie.length;++me){var Le=ie[me],je=Le.marker,Je=Le.to==null||(je.inclusiveRight?Le.to>=ae:Le.to>ae);if(Je||Le.from==ae&&je.type=="bookmark"&&(!fe||Le.marker.insertLeft)){var Ye=Le.from==null||(je.inclusiveLeft?Le.from<=ae:Le.from<ae);(he||(he=[])).push(new Or(je,Ye?null:Le.from-ae,Le.to==null?null:Le.to-ae))}}return he}function xr(ie,ae){if(ae.full)return null;var fe=En(ie,ae.from.line)&&ki(ie,ae.from.line).markedSpans,he=En(ie,ae.to.line)&&ki(ie,ae.to.line).markedSpans;if(!fe&&!he)return null;var me=ae.from.ch,Le=ae.to.ch,je=Ft(ae.from,ae.to)==0,Je=Gr(fe,me,je),Ye=Ui(he,Le,je),gt=ae.text.length==1,$t=pt(ae.text).length+(gt?me:0);if(Je)for(var wt=0;wt<Je.length;++wt){var Kn=Je[wt];if(Kn.to==null){var Nn=Tr(Ye,Kn.marker);Nn?gt&&(Kn.to=Nn.to==null?null:Nn.to+$t):Kn.to=me}}if(Ye)for(var Zi=0;Zi<Ye.length;++Zi){var Xi=Ye[Zi];if(Xi.to!=null&&(Xi.to+=$t),Xi.from==null){var Rt=Tr(Je,Xi.marker);Rt||(Xi.from=$t,gt&&(Je||(Je=[])).push(Xi))}else Xi.from+=$t,gt&&(Je||(Je=[])).push(Xi)}Je&&(Je=ro(Je)),Ye&&Ye!=Je&&(Ye=ro(Ye));var ii=[Je];if(!gt){var Ji=ae.text.length-2,or;if(Ji>0&&Je)for(var vr=0;vr<Je.length;++vr)Je[vr].to==null&&(or||(or=[])).push(new Or(Je[vr].marker,null,null));for(var Wr=0;Wr<Ji;++Wr)ii.push(or);ii.push(Ye)}return ii}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 Cn(ie,ae,fe){var he=null;if(ie.iter(ae.line,fe.line+1,function(Nn){if(Nn.markedSpans)for(var Zi=0;Zi<Nn.markedSpans.length;++Zi){var Xi=Nn.markedSpans[Zi].marker;Xi.readOnly&&(!he||gn(he,Xi)==-1)&&(he||(he=[])).push(Xi)}}),!he)return null;for(var me=[{from:ae,to:fe}],Le=0;Le<he.length;++Le)for(var je=he[Le],Je=je.find(0),Ye=0;Ye<me.length;++Ye){var gt=me[Ye];if(!(Ft(gt.to,Je.from)<0||Ft(gt.from,Je.to)>0)){var $t=[Ye,1],wt=Ft(gt.from,Je.from),Kn=Ft(gt.to,Je.to);(wt<0||!je.inclusiveLeft&&!wt)&&$t.push({from:gt.from,to:Je.from}),(Kn>0||!je.inclusiveRight&&!Kn)&&$t.push({from:Je.to,to:gt.to}),me.splice.apply(me,$t),Ye+=$t.length-3}}return me}function hi(ie){var ae=ie.markedSpans;if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.detachLine(ie);ie.markedSpans=null}}function Ge(ie,ae){if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.attachLine(ie);ie.markedSpans=ae}}function To(ie){return ie.inclusiveLeft?-1:0}function no(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(),Le=Ft(he.from,me.from)||To(ie)-To(ae);if(Le)return-Le;var je=Ft(he.to,me.to)||no(ie)-no(ae);return je||ae.id-ie.id}function qi(ie,ae){var fe=an&&ie.markedSpans,he;if(fe)for(var me=void 0,Le=0;Le<fe.length;++Le)me=fe[Le],me.marker.collapsed&&(ae?me.from:me.to)==null&&(!he||rr(he,me.marker)<0)&&(he=me.marker);return he}function Qi(ie){return qi(ie,!0)}function oa(ie){return qi(ie,!1)}function ys(ie,ae){var fe=an&&ie.markedSpans,he;if(fe)for(var me=0;me<fe.length;++me){var Le=fe[me];Le.marker.collapsed&&(Le.from==null||Le.from<ae)&&(Le.to==null||Le.to>ae)&&(!he||rr(he,Le.marker)<0)&&(he=Le.marker)}return he}function bs(ie,ae,fe,he,me){var Le=ki(ie,ae),je=an&&Le.markedSpans;if(je)for(var Je=0;Je<je.length;++Je){var Ye=je[Je];if(Ye.marker.collapsed){var gt=Ye.marker.find(0),$t=Ft(gt.from,fe)||To(Ye.marker)-To(me),wt=Ft(gt.to,he)||no(Ye.marker)-no(me);if(!($t>=0&&wt<=0||$t<=0&&wt>=0)&&($t<=0&&(Ye.marker.inclusiveRight&&me.inclusiveLeft?Ft(gt.to,fe)>=0:Ft(gt.to,fe)>0)||$t>=0&&(Ye.marker.inclusiveRight&&me.inclusiveLeft?Ft(gt.from,he)<=0:Ft(gt.from,he)<0)))return!0}}}function _o(ie){for(var ae;ae=Qi(ie);)ie=ae.find(-1,!0).line;return ie}function Ea(ie){for(var ae;ae=oa(ie);)ie=ae.find(1,!0).line;return ie}function za(ie){for(var ae,fe;ae=oa(ie);)ie=ae.find(1,!0).line,(fe||(fe=[])).push(ie);return fe}function Mr(ie,ae){var fe=ki(ie,ae),he=_o(fe);return fe==he?ae:Pt(he)}function Ir(ie,ae){if(ae>ie.lastLine())return ae;var fe=ki(ie,ae),he;if(!gi(ie,fe))return ae;for(;he=oa(fe);)fe=he.find(1,!0).line;return Pt(fe)+1}function gi(ie,ae){var fe=an&&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&&ho(ie,ae,he))return!0}}}function ho(ie,ae,fe){if(fe.to==null){var he=fe.marker.find(1,!0);return ho(ie,he.line,Tr(he.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==ae.text.length)return!0;for(var me=void 0,Le=0;Le<ae.markedSpans.length;++Le)if(me=ae.markedSpans[Le],me.marker.collapsed&&!me.marker.widgetNode&&me.from==fe.to&&(me.to==null||me.to!=fe.from)&&(me.marker.inclusiveLeft||fe.marker.inclusiveRight)&&ho(ie,ae,me))return!0}function Ba(ie){ie=_o(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 Le=fe.parent;Le;fe=Le,Le=fe.parent)for(var je=0;je<Le.children.length;++je){var Je=Le.children[je];if(Je==fe)break;ae+=Je.height}return ae}function Ws(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,fe,he=ie;fe=Qi(he);){var me=fe.find(0,!0);he=me.from.line,ae+=me.from.ch-me.to.ch}for(he=ie;fe=oa(he);){var Le=fe.find(0,!0);ae-=he.text.length-Le.from.ch,he=Le.to.line,ae+=he.text.length-Le.to.ch}return ae}function Xa(ie){var ae=ie.display,fe=ie.doc;ae.maxLine=ki(fe,fe.first),ae.maxLineLength=Ws(ae.maxLine),ae.maxLineChanged=!0,fe.iter(function(he){var me=Ws(he);me>ae.maxLineLength&&(ae.maxLineLength=me,ae.maxLine=he)})}var la=function(ie,ae,fe){this.text=ie,Ge(this,ae),this.height=fe?fe(this):1};la.prototype.lineNo=function(){return Pt(this)},Jn(la);function Ta(ie,ae,fe,he){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),hi(ie),Ge(ie,fe);var me=he?he(ie):1;me!=ie.height&&Br(ie,me)}function Ls(ie){ie.parent=null,hi(ie)}var ll={},rn={};function Va(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var fe=ae.addModeClass?rn:ll;return fe[ie]||(fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function tn(ie,ae){var fe=It("span",null,null,Ue?"padding-right: .1px":null),he={pre:It("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 Le=me?ae.rest[me-1]:ae.line,je=void 0;he.pos=0,he.addToken=yu,xo(ie.display.measure)&&(je=Gn(Le,ie.doc.direction))&&(he.addToken=Vl(he.addToken,je)),he.map=[];var Je=ae!=ie.display.externalMeasured&&Pt(Le);kl(Le,he,co(ie,Le,Je)),Le.styleClasses&&(Le.styleClasses.bgClass&&(he.bgClass=vi(Le.styleClasses.bgClass,he.bgClass||"")),Le.styleClasses.textClass&&(he.textClass=vi(Le.styleClasses.textClass,he.textClass||""))),he.map.length==0&&he.map.push(0,0,he.content.appendChild(zo(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(Ue){var Ye=he.content.lastChild;(/\bcm-tab\b/.test(Ye.className)||Ye.querySelector&&Ye.querySelector(".cm-tab"))&&(he.content.className="cm-tab-wrap-hack")}return bn(ie,"renderLine",ie,ae.line,he.pre),he.pre.className&&(he.textClass=vi(he.pre.className,he.textClass||"")),he}function Ss(ie){var ae=ut("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function yu(ie,ae,fe,he,me,Le,je){if(ae){var Je=ie.splitSpaces?fl(ae,ie.trailingSpace):ae,Ye=ie.cm.state.specialChars,gt=!1,$t;if(!Ye.test(ae))ie.col+=ae.length,$t=document.createTextNode(Je),ie.map.push(ie.pos,ie.pos+ae.length,$t),Bt&&vt<9&&(gt=!0),ie.pos+=ae.length;else{$t=document.createDocumentFragment();for(var wt=0;;){Ye.lastIndex=wt;var Kn=Ye.exec(ae),Nn=Kn?Kn.index-wt:ae.length-wt;if(Nn){var Zi=document.createTextNode(Je.slice(wt,wt+Nn));Bt&&vt<9?$t.appendChild(ut("span",[Zi])):$t.appendChild(Zi),ie.map.push(ie.pos,ie.pos+Nn,Zi),ie.col+=Nn,ie.pos+=Nn}if(!Kn)break;wt+=Nn+1;var Xi=void 0;if(Kn[0]==" "){var Rt=ie.cm.options.tabSize,ii=Rt-ie.col%Rt;Xi=$t.appendChild(ut("span",Mi(ii),"cm-tab")),Xi.setAttribute("role","presentation"),Xi.setAttribute("cm-text"," "),ie.col+=ii}else Kn[0]=="\r"||Kn[0]==`
|
|
`?(Xi=$t.appendChild(ut("span",Kn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Xi.setAttribute("cm-text",Kn[0]),ie.col+=1):(Xi=ie.cm.options.specialCharPlaceholder(Kn[0]),Xi.setAttribute("cm-text",Kn[0]),Bt&&vt<9?$t.appendChild(ut("span",[Xi])):$t.appendChild(Xi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Xi),ie.pos++}}if(ie.trailingSpace=Je.charCodeAt(ae.length-1)==32,fe||he||me||gt||Le||je){var Ji=fe||"";he&&(Ji+=he),me&&(Ji+=me);var or=ut("span",[$t],Ji,Le);if(je)for(var vr in je)je.hasOwnProperty(vr)&&vr!="style"&&vr!="class"&&or.setAttribute(vr,je[vr]);return ie.content.appendChild(or)}ie.content.appendChild($t)}}function fl(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var fe=ae,he="",me=0;me<ie.length;me++){var Le=ie.charAt(me);Le==" "&&fe&&(me==ie.length-1||ie.charCodeAt(me+1)==32)&&(Le="\xA0"),he+=Le,fe=Le==" "}return he}function Vl(ie,ae){return function(fe,he,me,Le,je,Je,Ye){me=me?me+" cm-force-border":"cm-force-border";for(var gt=fe.pos,$t=gt+he.length;;){for(var wt=void 0,Kn=0;Kn<ae.length&&(wt=ae[Kn],!(wt.to>gt&&wt.from<=gt));Kn++);if(wt.to>=$t)return ie(fe,he,me,Le,je,Je,Ye);ie(fe,he.slice(0,wt.to-gt),me,Le,null,Je,Ye),Le=null,he=he.slice(wt.to-gt),gt=wt.to}}}function is(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 kl(ie,ae,fe){var he=ie.markedSpans,me=ie.text,Le=0;if(!he){for(var je=1;je<fe.length;je+=2)ae.addToken(ae,me.slice(Le,Le=fe[je]),Va(fe[je+1],ae.cm.options));return}for(var Je=me.length,Ye=0,gt=1,$t="",wt,Kn,Nn=0,Zi,Xi,Rt,ii,Ji;;){if(Nn==Ye){Zi=Xi=Rt=Kn="",Ji=null,ii=null,Nn=1/0;for(var or=[],vr=void 0,Wr=0;Wr<he.length;++Wr){var Er=he[Wr],ea=Er.marker;if(ea.type=="bookmark"&&Er.from==Ye&&ea.widgetNode)or.push(ea);else if(Er.from<=Ye&&(Er.to==null||Er.to>Ye||ea.collapsed&&Er.to==Ye&&Er.from==Ye)){if(Er.to!=null&&Er.to!=Ye&&Nn>Er.to&&(Nn=Er.to,Xi=""),ea.className&&(Zi+=" "+ea.className),ea.css&&(Kn=(Kn?Kn+";":"")+ea.css),ea.startStyle&&Er.from==Ye&&(Rt+=" "+ea.startStyle),ea.endStyle&&Er.to==Nn&&(vr||(vr=[])).push(ea.endStyle,Er.to),ea.title&&((Ji||(Ji={})).title=ea.title),ea.attributes)for(var ws in ea.attributes)(Ji||(Ji={}))[ws]=ea.attributes[ws];ea.collapsed&&(!ii||rr(ii.marker,ea)<0)&&(ii=Er)}else Er.from>Ye&&Nn>Er.from&&(Nn=Er.from)}if(vr)for(var Ml=0;Ml<vr.length;Ml+=2)vr[Ml+1]==Nn&&(Xi+=" "+vr[Ml]);if(!ii||ii.from==Ye)for(var us=0;us<or.length;++us)is(ae,0,or[us]);if(ii&&(ii.from||0)==Ye){if(is(ae,(ii.to==null?Je+1:ii.to)-Ye,ii.marker,ii.from==null),ii.to==null)return;ii.to==Ye&&(ii=!1)}}if(Ye>=Je)break;for(var wl=Math.min(Je,Nn);;){if($t){var Hs=Ye+$t.length;if(!ii){var $s=Hs>wl?$t.slice(0,wl-Ye):$t;ae.addToken(ae,$s,wt?wt+Zi:Zi,Rt,Ye+$s.length==Nn?Xi:"",Kn,Ji)}if(Hs>=wl){$t=$t.slice(wl-Ye),Ye=wl;break}Ye=Hs,Rt=""}$t=me.slice(Le,Le=fe[gt++]),wt=Va(fe[gt++],ae.cm.options)}}}function Nl(ie,ae,fe){this.line=ae,this.rest=za(ae),this.size=this.rest?Pt(pt(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=gi(ie,ae)}function ga(ie,ae,fe){for(var he=[],me,Le=ae;Le<fe;Le=me){var je=new Nl(ie.doc,ki(ie.doc,Le),Le);me=Le+je.size,he.push(je)}return he}var gl=null;function Vc(ie){gl?gl.ops.push(ie):ie.ownsGroup=gl={ops:[ie],delayedCallbacks:[]}}function du(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 Su(ie,ae){var fe=ie.ownsGroup;if(fe)try{du(fe)}finally{gl=null,ae(fe)}}var xu=null;function oo(ie,ae){var fe=fi(ie,ae);if(fe.length){var he=Array.prototype.slice.call(arguments,2),me;gl?me=gl.delayedCallbacks:xu?me=xu:(me=xu=[],setTimeout(xd,0));for(var Le=function(Je){me.push(function(){return fe[Je].apply(null,he)})},je=0;je<fe.length;++je)Le(je)}}function xd(){var ie=xu;xu=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Ed(ie,ae,fe,he){for(var me=0;me<ae.changes.length;me++){var Le=ae.changes[me];Le=="text"?ir(ie,ae):Le=="gutter"?bl(ie,ae,fe,he):Le=="class"?il(ie,ae):Le=="widget"&&wr(ie,ae,he)}ae.changes=null}function Bc(ie){return ie.node==ie.text&&(ie.node=ut("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Bt&&vt<8&&(ie.node.style.zIndex=2)),ie.node}function Od(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(ut("div",null,fe),he.firstChild),ie.display.input.setUneditable(ae.background)}}function Nh(ie,ae){var fe=ie.display.externalMeasured;return fe&&fe.line==ae.line?(ie.display.externalMeasured=null,ae.measure=fe.measure,fe.built):tn(ie,ae)}function ir(ie,ae){var fe=ae.text.className,he=Nh(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,il(ie,ae)):fe&&(ae.text.className=fe)}function il(ie,ae){Od(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 bl(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=ut("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 Le=ae.line.gutterMarkers;if(ie.options.lineNumbers||Le){var je=Bc(ae),Je=ae.gutter=ut("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?he.fixedPos:-he.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Je),je.insertBefore(Je,ae.text),ae.line.gutterClass&&(Je.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Le||!Le["CodeMirror-linenumbers"])&&(ae.lineNumber=Je.appendChild(ut("div",Yn(ie.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+he.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Le)for(var Ye=0;Ye<ie.display.gutterSpecs.length;++Ye){var gt=ie.display.gutterSpecs[Ye].className,$t=Le.hasOwnProperty(gt)&&Le[gt];$t&&Je.appendChild(ut("div",[$t],"CodeMirror-gutter-elt","left: "+he.gutterLeft[gt]+"px; width: "+he.gutterWidth[gt]+"px"))}}}function wr(ie,ae,fe){ae.alignable&&(ae.alignable=null);for(var he=ke("CodeMirror-linewidget"),me=ae.node.firstChild,Le=void 0;me;me=Le)Le=me.nextSibling,he.test(me.className)&&ae.node.removeChild(me);ua(ie,ae,fe)}function ao(ie,ae,fe,he){var me=Nh(ie,ae);return ae.text=ae.node=me.pre,me.bgClass&&(ae.bgClass=me.bgClass),me.textClass&&(ae.textClass=me.textClass),il(ie,ae),bl(ie,ae,fe,he),ua(ie,ae,he),ae.node}function ua(ie,ae,fe){if(Dr(ie,ae.line,ae,fe,!0),ae.rest)for(var he=0;he<ae.rest.length;he++)Dr(ie,ae.rest[he],ae,fe,!1)}function Dr(ie,ae,fe,he,me){if(ae.widgets)for(var Le=Bc(fe),je=0,Je=ae.widgets;je<Je.length;++je){var Ye=Je[je],gt=ut("div",[Ye.node],"CodeMirror-linewidget"+(Ye.className?" "+Ye.className:""));Ye.handleMouseEvents||gt.setAttribute("cm-ignore-events","true"),Bl(Ye,gt,fe,he),ie.display.input.setUneditable(gt),me&&Ye.above?Le.insertBefore(gt,fe.gutter||fe.text):Le.appendChild(gt),oo(Ye,"redraw")}}function Bl(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 ku(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Tt(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;"),xt(ae.display.measure,ut("div",[ie.node],null,fe))}return ie.height=ie.node.parentNode.offsetHeight}function xs(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 hu(ie){return ie.lineSpace.offsetTop}function ic(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Ms(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=xt(ie.measure,ut("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 Tl(ie){return Xn-ie.display.nativeBarWidth}function Gl(ie){return ie.display.scroller.clientWidth-Tl(ie)-ie.display.barWidth}function Yu(ie){return ie.display.scroller.clientHeight-Tl(ie)-ie.display.barHeight}function ed(ie,ae,fe){var he=ie.options.lineWrapping,me=he&&Gl(ie);if(!ae.measure.heights||he&&ae.measure.width!=me){var Le=ae.measure.heights=[];if(he){ae.measure.width=me;for(var je=ae.text.firstChild.getClientRects(),Je=0;Je<je.length-1;Je++){var Ye=je[Je],gt=je[Je+1];Math.abs(Ye.bottom-gt.bottom)>2&&Le.push((Ye.bottom+gt.top)/2-fe.top)}}Le.push(fe.bottom-fe.top)}}function Jd(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(Pt(ie.rest[me])>fe)return{map:ie.measure.maps[me],cache:ie.measure.caches[me],before:!0}}function Qh(ie,ae){ae=_o(ae);var fe=Pt(ae),he=ie.display.externalMeasured=new Nl(ie.doc,ae,fe);he.lineN=fe;var me=he.built=tn(ie,he);return he.text=me.pre,xt(ie.display.lineMeasure,me.pre),he}function Th(ie,ae,fe,he){return rc(ie,Ol(ie,ae),fe,he)}function Id(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Xu(ie,ae)];var fe=ie.display.externalMeasured;if(fe&&ae>=fe.lineN&&ae<fe.lineN+fe.size)return fe}function Ol(ie,ae){var fe=Pt(ae),he=Id(ie,fe);he&&!he.text?he=null:he&&he.changes&&(Ed(ie,he,fe,Gc(ie)),ie.curOp.forceUpdate=!0),he||(he=Qh(ie,ae));var me=Jd(he,ae,fe);return{line:ae,view:he,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function rc(ie,ae,fe,he,me){ae.before&&(fe=-1);var Le=fe+(he||""),je;return ae.cache.hasOwnProperty(Le)?je=ae.cache[Le]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(ed(ie,ae.view,ae.rect),ae.hasHeights=!0),je=Ul(ie,ae,fe,he),je.bogus||(ae.cache[Le]=je)),{left:je.left,right:je.right,top:me?je.rtop:je.top,bottom:me?je.rbottom:je.bottom}}var Il={left:0,right:0,top:0,bottom:0};function Dc(ie,ae,fe){for(var he,me,Le,je,Je,Ye,gt=0;gt<ie.length;gt+=3)if(Je=ie[gt],Ye=ie[gt+1],ae<Je?(me=0,Le=1,je="left"):ae<Ye?(me=ae-Je,Le=me+1):(gt==ie.length-3||ae==Ye&&ie[gt+3]>ae)&&(Le=Ye-Je,me=Le-1,ae>=Ye&&(je="right")),me!=null){if(he=ie[gt+2],Je==Ye&&fe==(he.insertLeft?"left":"right")&&(je=fe),fe=="left"&&me==0)for(;gt&&ie[gt-2]==ie[gt-3]&&ie[gt-1].insertLeft;)he=ie[(gt-=3)+2],je="left";if(fe=="right"&&me==Ye-Je)for(;gt<ie.length-3&&ie[gt+3]==ie[gt+4]&&!ie[gt+5].insertLeft;)he=ie[(gt+=3)+2],je="right";break}return{node:he,start:me,end:Le,collapse:je,coverStart:Je,coverEnd:Ye}}function Pd(ie,ae){var fe=Il;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 Ul(ie,ae,fe,he){var me=Dc(ae.map,fe,he),Le=me.node,je=me.start,Je=me.end,Ye=me.collapse,gt;if(Le.nodeType==3){for(var $t=0;$t<4;$t++){for(;je&&He(ae.line.text.charAt(me.coverStart+je));)--je;for(;me.coverStart+Je<me.coverEnd&&He(ae.line.text.charAt(me.coverStart+Je));)++Je;if(Bt&&vt<9&&je==0&&Je==me.coverEnd-me.coverStart?gt=Le.parentNode.getBoundingClientRect():gt=Pd(Et(Le,je,Je).getClientRects(),he),gt.left||gt.right||je==0)break;Je=je,je=je-1,Ye="right"}Bt&&vt<11&&(gt=qh(ie.display.measure,gt))}else{je>0&&(Ye=he="right");var wt;ie.options.lineWrapping&&(wt=Le.getClientRects()).length>1?gt=wt[he=="right"?wt.length-1:0]:gt=Le.getBoundingClientRect()}if(Bt&&vt<9&&!je&&(!gt||!gt.left&&!gt.right)){var Kn=Le.parentNode.getClientRects()[0];Kn?gt={left:Kn.left,right:Kn.left+Au(ie.display),top:Kn.top,bottom:Kn.bottom}:gt=Il}for(var Nn=gt.top-ae.rect.top,Zi=gt.bottom-ae.rect.top,Xi=(Nn+Zi)/2,Rt=ae.view.measure.heights,ii=0;ii<Rt.length-1&&!(Xi<Rt[ii]);ii++);var Ji=ii?Rt[ii-1]:0,or=Rt[ii],vr={left:(Ye=="right"?gt.right:gt.left)-ae.rect.left,right:(Ye=="left"?gt.left:gt.right)-ae.rect.left,top:Ji,bottom:or};return!gt.left&&!gt.right&&(vr.bogus=!0),ie.options.singleCursorHeightPerLine||(vr.rtop=Nn,vr.rbottom=Zi),vr}function qh(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!jn(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 xf(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 wd(ie){ie.display.externalMeasure=null,dt(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)xf(ie.display.view[ae])}function hh(ie){wd(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Vu(){return Ct&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function _u(){return Ct&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ul(ie){var ae=0;if(ie.widgets)for(var fe=0;fe<ie.widgets.length;++fe)ie.widgets[fe].above&&(ae+=ku(ie.widgets[fe]));return ae}function ou(ie,ae,fe,he,me){if(!me){var Le=ul(ae);fe.top+=Le,fe.bottom+=Le}if(he=="line")return fe;he||(he="local");var je=Ba(ae);if(he=="local"?je+=hu(ie.display):je-=ie.display.viewOffset,he=="page"||he=="window"){var Je=ie.display.lineSpace.getBoundingClientRect();je+=Je.top+(he=="window"?0:_u());var Ye=Je.left+(he=="window"?0:Vu());fe.left+=Ye,fe.right+=Ye}return fe.top+=je,fe.bottom+=je,fe}function Oh(ie,ae,fe){if(fe=="div")return ae;var he=ae.left,me=ae.top;if(fe=="page")he-=Vu(),me-=_u();else if(fe=="local"||!fe){var Le=ie.display.sizer.getBoundingClientRect();he+=Le.left,me+=Le.top}var je=ie.display.lineSpace.getBoundingClientRect();return{left:he-je.left,top:me-je.top}}function Qd(ie,ae,fe,he,me){return he||(he=ki(ie.doc,ae.line)),ou(ie,he,Th(ie,he,ae.ch,me),fe)}function pl(ie,ae,fe,he,me,Le){he=he||ki(ie.doc,ae.line),me||(me=Ol(ie,he));function je(Zi,Xi){var Rt=rc(ie,me,Zi,Xi?"right":"left",Le);return Xi?Rt.left=Rt.right:Rt.right=Rt.left,ou(ie,he,Rt,fe)}var Je=Gn(he,ie.doc.direction),Ye=ae.ch,gt=ae.sticky;if(Ye>=he.text.length?(Ye=he.text.length,gt="before"):Ye<=0&&(Ye=0,gt="after"),!Je)return je(gt=="before"?Ye-1:Ye,gt=="before");function $t(Zi,Xi,Rt){var ii=Je[Xi],Ji=ii.level==1;return je(Rt?Zi-1:Zi,Ji!=Rt)}var wt=pn(Je,Ye,gt),Kn=yn,Nn=$t(Ye,wt,gt=="before");return Kn!=null&&(Nn.other=$t(Ye,Kn,gt!="before")),Nn}function $h(ie,ae){var fe=0;ae=Ti(ie.doc,ae),ie.options.lineWrapping||(fe=Au(ie.display)*ae.ch);var he=ki(ie.doc,ae.line),me=Ba(he)+hu(ie.display);return{left:fe,right:fe,top:me,bottom:me+he.height}}function qd(ie,ae,fe,he,me){var Le=Mt(ie,ae,fe);return Le.xRel=me,he&&(Le.outside=he),Le}function Rd(ie,ae,fe){var he=ie.doc;if(fe+=ie.display.viewOffset,fe<0)return qd(he.first,0,null,-1,-1);var me=Di(he,fe),Le=he.first+he.size-1;if(me>Le)return qd(he.first+he.size-1,ki(he,Le).text.length,null,1,1);ae<0&&(ae=0);for(var je=ki(he,me);;){var Je=si(ie,je,me,ae,fe),Ye=ys(je,Je.ch+(Je.xRel>0||Je.outside>0?1:0));if(!Ye)return Je;var gt=Ye.find(1);if(gt.line==me)return gt;je=ki(he,me=gt.line)}}function qr(ie,ae,fe,he){he-=ul(ae);var me=ae.text.length,Le=Wt(function(je){return rc(ie,fe,je-1).bottom<=he},me,0);return me=Wt(function(je){return rc(ie,fe,je).top>he},Le,me),{begin:Le,end:me}}function Ih(ie,ae,fe,he){fe||(fe=Ol(ie,ae));var me=ou(ie,ae,rc(ie,fe,he),"line").top;return qr(ie,ae,fe,me)}function Dt(ie,ae,fe,he){return ie.bottom<=fe?!1:ie.top>fe?!0:(he?ie.left:ie.right)>ae}function si(ie,ae,fe,he,me){me-=Ba(ae);var Le=Ol(ie,ae),je=ul(ae),Je=0,Ye=ae.text.length,gt=!0,$t=Gn(ae,ie.doc.direction);if($t){var wt=(ie.options.lineWrapping?Rh:ef)(ie,ae,fe,Le,$t,he,me);gt=wt.level!=1,Je=gt?wt.from:wt.to-1,Ye=gt?wt.to:wt.from-1}var Kn=null,Nn=null,Zi=Wt(function(Wr){var Er=rc(ie,Le,Wr);return Er.top+=je,Er.bottom+=je,Dt(Er,he,me,!1)?(Er.top<=me&&Er.left<=he&&(Kn=Wr,Nn=Er),!0):!1},Je,Ye),Xi,Rt,ii=!1;if(Nn){var Ji=he-Nn.left<Nn.right-he,or=Ji==gt;Zi=Kn+(or?0:1),Rt=or?"after":"before",Xi=Ji?Nn.left:Nn.right}else{!gt&&(Zi==Ye||Zi==Je)&&Zi++,Rt=Zi==0?"after":Zi==ae.text.length?"before":rc(ie,Le,Zi-(gt?1:0)).bottom+je<=me==gt?"after":"before";var vr=pl(ie,Mt(fe,Zi,Rt),"line",ae,Le);Xi=vr.left,ii=me<vr.top?-1:me>=vr.bottom?1:0}return Zi=mt(ae.text,Zi,1),qd(fe,Zi,Rt,ii,he-Xi)}function ef(ie,ae,fe,he,me,Le,je){var Je=Wt(function(wt){var Kn=me[wt],Nn=Kn.level!=1;return Dt(pl(ie,Mt(fe,Nn?Kn.to:Kn.from,Nn?"before":"after"),"line",ae,he),Le,je,!0)},0,me.length-1),Ye=me[Je];if(Je>0){var gt=Ye.level!=1,$t=pl(ie,Mt(fe,gt?Ye.from:Ye.to,gt?"after":"before"),"line",ae,he);Dt($t,Le,je,!0)&&$t.top>je&&(Ye=me[Je-1])}return Ye}function Rh(ie,ae,fe,he,me,Le,je){var Je=qr(ie,ae,he,je),Ye=Je.begin,gt=Je.end;/\s/.test(ae.text.charAt(gt-1))&>--;for(var $t=null,wt=null,Kn=0;Kn<me.length;Kn++){var Nn=me[Kn];if(!(Nn.from>=gt||Nn.to<=Ye)){var Zi=Nn.level!=1,Xi=rc(ie,he,Zi?Math.min(gt,Nn.to)-1:Math.max(Ye,Nn.from)).right,Rt=Xi<Le?Le-Xi+1e9:Xi-Le;(!$t||wt>Rt)&&($t=Nn,wt=Rt)}}return $t||($t=me[me.length-1]),$t.from<Ye&&($t={from:Ye,to:$t.to,level:$t.level}),$t.to>gt&&($t={from:$t.from,to:gt,level:$t.level}),$t}var cd;function hc(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(cd==null){cd=ut("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)cd.appendChild(document.createTextNode("x")),cd.appendChild(ut("br"));cd.appendChild(document.createTextNode("x"))}xt(ie.measure,cd);var fe=cd.offsetHeight/50;return fe>3&&(ie.cachedTextHeight=fe),dt(ie.measure),fe||1}function Au(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=ut("span","xxxxxxxxxx"),fe=ut("pre",[ae],"CodeMirror-line-like");xt(ie.measure,fe);var he=ae.getBoundingClientRect(),me=(he.right-he.left)/10;return me>2&&(ie.cachedCharWidth=me),me||10}function Gc(ie){for(var ae=ie.display,fe={},he={},me=ae.gutters.clientLeft,Le=ae.gutters.firstChild,je=0;Le;Le=Le.nextSibling,++je){var Je=ie.display.gutterSpecs[je].className;fe[Je]=Le.offsetLeft+Le.clientLeft+me,he[Je]=Le.clientWidth}return{fixedPos:tf(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:fe,gutterWidth:he,wrapperWidth:ae.wrapper.clientWidth}}function tf(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function el(ie){var ae=hc(ie.display),fe=ie.options.lineWrapping,he=fe&&Math.max(5,ie.display.scroller.clientWidth/Au(ie.display)-3);return function(me){if(gi(ie.doc,me))return 0;var Le=0;if(me.widgets)for(var je=0;je<me.widgets.length;je++)me.widgets[je].height&&(Le+=me.widgets[je].height);return fe?Le+(Math.ceil(me.text.length/he)||1)*ae:Le+ae}}function Zo(ie){var ae=ie.doc,fe=el(ie);ae.iter(function(he){var me=fe(he);me!=he.height&&Br(he,me)})}function au(ie,ae,fe,he){var me=ie.display;if(!fe&&jo(ae).getAttribute("cm-not-content")=="true")return null;var Le,je,Je=me.lineSpace.getBoundingClientRect();try{Le=ae.clientX-Je.left,je=ae.clientY-Je.top}catch(wt){return null}var Ye=Rd(ie,Le,je),gt;if(he&&Ye.xRel>0&&(gt=ki(ie.doc,Ye.line).text).length==Ye.ch){var $t=nt(gt,gt.length,ie.options.tabSize)-gt.length;Ye=Mt(Ye.line,Math.max(0,Math.round((Le-Ms(ie.display).left)/Au(ie.display))-$t))}return Ye}function Xu(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 tl(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)an&&Mr(ie.doc,ae)<me.viewTo&&ml(ie);else if(fe<=me.viewFrom)an&&Ir(ie.doc,fe+he)>me.viewFrom?ml(ie):(me.viewFrom+=he,me.viewTo+=he);else if(ae<=me.viewFrom&&fe>=me.viewTo)ml(ie);else if(ae<=me.viewFrom){var Le=We(ie,fe,fe+he,1);Le?(me.view=me.view.slice(Le.index),me.viewFrom=Le.lineN,me.viewTo+=he):ml(ie)}else if(fe>=me.viewTo){var je=We(ie,ae,ae,-1);je?(me.view=me.view.slice(0,je.index),me.viewTo=je.lineN):ml(ie)}else{var Je=We(ie,ae,ae,-1),Ye=We(ie,fe,fe+he,1);Je&&Ye?(me.view=me.view.slice(0,Je.index).concat(ga(ie,Je.lineN,Ye.lineN)).concat(me.view.slice(Ye.index)),me.viewTo+=he):ml(ie)}var gt=me.externalMeasured;gt&&(fe<gt.lineN?gt.lineN+=he:ae<gt.lineN+gt.size&&(me.externalMeasured=null))}function Oa(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 Le=he.view[Xu(ie,ae)];if(Le.node!=null){var je=Le.changes||(Le.changes=[]);gn(je,fe)==-1&&je.push(fe)}}}function ml(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function We(ie,ae,fe,he){var me=Xu(ie,ae),Le,je=ie.display.view;if(!an||fe==ie.doc.first+ie.doc.size)return{index:me,lineN:fe};for(var Je=ie.display.viewFrom,Ye=0;Ye<me;Ye++)Je+=je[Ye].size;if(Je!=ae){if(he>0){if(me==je.length-1)return null;Le=Je+je[me].size-ae,me++}else Le=Je-ae;ae+=Le,fe+=Le}for(;Mr(ie.doc,fe)!=fe;){if(me==(he<0?0:je.length-1))return null;fe+=he*je[me-(he<0?1:0)].size,me+=he}return{index:me,lineN:fe}}function Ze(ie,ae,fe){var he=ie.display,me=he.view;me.length==0||ae>=he.viewTo||fe<=he.viewFrom?(he.view=ga(ie,ae,fe),he.viewFrom=ae):(he.viewFrom>ae?he.view=ga(ie,ae,he.viewFrom).concat(he.view):he.viewFrom<ae&&(he.view=he.view.slice(Xu(ie,ae))),he.viewFrom=ae,he.viewTo<fe?he.view=he.view.concat(ga(ie,he.viewTo,fe)):he.viewTo>fe&&(he.view=he.view.slice(0,Xu(ie,fe)))),he.viewTo=fe}function $e(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 jt(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Gt(ie,ae){ae===void 0&&(ae=!0);for(var fe=ie.doc,he={},me=he.cursors=document.createDocumentFragment(),Le=he.selection=document.createDocumentFragment(),je=0;je<fe.sel.ranges.length;je++)if(!(!ae&&je==fe.sel.primIndex)){var Je=fe.sel.ranges[je];if(!(Je.from().line>=ie.display.viewTo||Je.to().line<ie.display.viewFrom)){var Ye=Je.empty();(Ye||ie.options.showCursorWhenSelecting)&&Sn(ie,Je.head,me),Ye||Hn(ie,Je,Le)}}return he}function Sn(ie,ae,fe){var he=pl(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),me=fe.appendChild(ut("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 Le=fe.appendChild(ut("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Le.style.display="",Le.style.left=he.other.left+"px",Le.style.top=he.other.top+"px",Le.style.height=(he.other.bottom-he.other.top)*.85+"px"}}function Pn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Hn(ie,ae,fe){var he=ie.display,me=ie.doc,Le=document.createDocumentFragment(),je=Ms(ie.display),Je=je.left,Ye=Math.max(he.sizerWidth,Gl(ie)-he.sizer.offsetLeft)-je.right,gt=me.direction=="ltr";function $t(or,vr,Wr,Er){vr<0&&(vr=0),vr=Math.round(vr),Er=Math.round(Er),Le.appendChild(ut("div",null,"CodeMirror-selected","position: absolute; left: "+or+`px;
|
|
top: `+vr+"px; width: "+(Wr==null?Ye-or:Wr)+`px;
|
|
height: `+(Er-vr)+"px"))}function wt(or,vr,Wr){var Er=ki(me,or),ea=Er.text.length,ws,Ml;function us($s,wu){return Qd(ie,Mt(or,$s),"div",Er,wu)}function wl($s,wu,rs){var Fs=Ih(ie,Er,null,$s),gs=wu=="ltr"==(rs=="after")?"left":"right",dl=rs=="after"?Fs.begin:Fs.end-(/\s/.test(Er.text.charAt(Fs.end-1))?2:1);return us(dl,gs)[gs]}var Hs=Gn(Er,me.direction);return kt(Hs,vr||0,Wr==null?ea:Wr,function($s,wu,rs,Fs){var gs=rs=="ltr",dl=us($s,gs?"left":"right"),Wu=us(wu-1,gs?"right":"left"),Zu=vr==null&&$s==0,id=Wr==null&&wu==ea,Wl=Fs==0,Oc=!Hs||Fs==Hs.length-1;if(Wu.top-dl.top<=3){var ve=(gt?Zu:id)&&Wl,ye=(gt?id:Zu)&&Oc,be=ve?Je:(gs?dl:Wu).left,Re=ye?Ye:(gs?Wu:dl).right;$t(be,dl.top,Re-be,dl.bottom)}else{var Xe,qe,ct,St;gs?(Xe=gt&&Zu&&Wl?Je:dl.left,qe=gt?Ye:wl($s,rs,"before"),ct=gt?Je:wl(wu,rs,"after"),St=gt&&id&&Oc?Ye:Wu.right):(Xe=gt?wl($s,rs,"before"):Je,qe=!gt&&Zu&&Wl?Ye:dl.right,ct=!gt&&id&&Oc?Je:Wu.left,St=gt?wl(wu,rs,"after"):Ye),$t(Xe,dl.top,qe-Xe,dl.bottom),dl.bottom<Wu.top&&$t(Je,dl.bottom,null,Wu.top),$t(ct,Wu.top,St-ct,Wu.bottom)}(!ws||Pn(dl,ws)<0)&&(ws=dl),Pn(Wu,ws)<0&&(ws=Wu),(!Ml||Pn(dl,Ml)<0)&&(Ml=dl),Pn(Wu,Ml)<0&&(Ml=Wu)}),{start:ws,end:Ml}}var Kn=ae.from(),Nn=ae.to();if(Kn.line==Nn.line)wt(Kn.line,Kn.ch,Nn.ch);else{var Zi=ki(me,Kn.line),Xi=ki(me,Nn.line),Rt=_o(Zi)==_o(Xi),ii=wt(Kn.line,Kn.ch,Rt?Zi.text.length+1:null).end,Ji=wt(Nn.line,Rt?0:null,Nn.ch).start;Rt&&(ii.top<Ji.top-2?($t(ii.right,ii.top,null,ii.bottom),$t(Je,Ji.top,Ji.left,Ji.bottom)):$t(ii.right,ii.top,Ji.left-ii.right,ii.bottom)),ii.bottom<Ji.top&&$t(Je,ii.bottom,null,Ji.top)}fe.appendChild(Le)}function ni(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()||Gi(ie),ae.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function yi(ie){ie.state.focused||(ie.display.input.focus(),mi(ie))}function $i(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Gi(ie))},100)}function mi(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(bn(ie,"focus",ie,ae),ie.state.focused=!0,hn(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ue&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),ni(ie))}function Gi(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(bn(ie,"blur",ie,ae),ie.state.focused=!1,st(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function ci(ie){for(var ae=ie.display,fe=ae.lineDiv.offsetTop,he=0;he<ae.view.length;he++){var me=ae.view[he],Le=ie.options.lineWrapping,je=void 0,Je=0;if(!me.hidden){if(Bt&&vt<8){var Ye=me.node.offsetTop+me.node.offsetHeight;je=Ye-fe,fe=Ye}else{var gt=me.node.getBoundingClientRect();je=gt.bottom-gt.top,!Le&&me.text.firstChild&&(Je=me.text.firstChild.getBoundingClientRect().right-gt.left-1)}var $t=me.line.height-je;if(($t>.005||$t<-.005)&&(Br(me.line,je),hr(me.line),me.rest))for(var wt=0;wt<me.rest.length;wt++)hr(me.rest[wt]);if(Je>ie.display.sizerWidth){var Kn=Math.ceil(Je/Au(ie.display));Kn>ie.display.maxLineLength&&(ie.display.maxLineLength=Kn,ie.display.maxLine=me.line,ie.display.maxLineChanged=!0)}}}}function hr(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 Un(ie,ae,fe){var he=fe&&fe.top!=null?Math.max(0,fe.top):ie.scroller.scrollTop;he=Math.floor(he-hu(ie));var me=fe&&fe.bottom!=null?fe.bottom:he+ie.wrapper.clientHeight,Le=Di(ae,he),je=Di(ae,me);if(fe&&fe.ensure){var Je=fe.ensure.from.line,Ye=fe.ensure.to.line;Je<Le?(Le=Je,je=Di(ae,Ba(ki(ae,Je))+ie.wrapper.clientHeight)):Math.min(Ye,ae.lastLine())>=je&&(Le=Di(ae,Ba(ki(ae,Ye))-ie.wrapper.clientHeight),je=Ye)}return{from:Le,to:Math.max(je,Le+1)}}function ji(ie,ae){if(!Dn(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 Le=ut("div","\u200B",null,`position: absolute;
|
|
top: `+(ae.top-fe.viewOffset-hu(ie.display))+`px;
|
|
height: `+(ae.bottom-ae.top+Tl(ie)+fe.barHeight)+`px;
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Le),Le.scrollIntoView(me),ie.display.lineSpace.removeChild(Le)}}}function cr(ie,ae,fe,he){he==null&&(he=0);var me;!ie.options.lineWrapping&&ae==fe&&(ae=ae.ch?Mt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,fe=ae.sticky=="before"?Mt(ae.line,ae.ch+1,"before"):ae);for(var Le=0;Le<5;Le++){var je=!1,Je=pl(ie,ae),Ye=!fe||fe==ae?Je:pl(ie,fe);me={left:Math.min(Je.left,Ye.left),top:Math.min(Je.top,Ye.top)-he,right:Math.max(Je.left,Ye.left),bottom:Math.max(Je.bottom,Ye.bottom)+he};var gt=Zr(ie,me),$t=ie.doc.scrollTop,wt=ie.doc.scrollLeft;if(gt.scrollTop!=null&&(Io(ie,gt.scrollTop),Math.abs(ie.doc.scrollTop-$t)>1&&(je=!0)),gt.scrollLeft!=null&&($a(ie,gt.scrollLeft),Math.abs(ie.doc.scrollLeft-wt)>1&&(je=!0)),!je)break}return me}function so(ie,ae){var fe=Zr(ie,ae);fe.scrollTop!=null&&Io(ie,fe.scrollTop),fe.scrollLeft!=null&&$a(ie,fe.scrollLeft)}function Zr(ie,ae){var fe=ie.display,he=hc(ie.display);ae.top<0&&(ae.top=0);var me=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:fe.scroller.scrollTop,Le=Yu(ie),je={};ae.bottom-ae.top>Le&&(ae.bottom=ae.top+Le);var Je=ie.doc.height+ic(fe),Ye=ae.top<he,gt=ae.bottom>Je-he;if(ae.top<me)je.scrollTop=Ye?0:ae.top;else if(ae.bottom>me+Le){var $t=Math.min(ae.top,(gt?Je:ae.bottom)-Le);$t!=me&&(je.scrollTop=$t)}var wt=ie.options.fixedGutter?0:fe.gutters.offsetWidth,Kn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:fe.scroller.scrollLeft-wt,Nn=Gl(ie)-fe.gutters.offsetWidth,Zi=ae.right-ae.left>Nn;return Zi&&(ae.right=ae.left+Nn),ae.left<10?je.scrollLeft=0:ae.left<Kn?je.scrollLeft=Math.max(0,ae.left+wt-(Zi?0:10)):ae.right>Nn+Kn-3&&(je.scrollLeft=ae.right+(Zi?0:10)-Nn),je}function fo(ie,ae){ae!=null&&(Ca(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function vo(ie){Ca(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function uo(ie,ae,fe){(ae!=null||fe!=null)&&Ca(ie),ae!=null&&(ie.curOp.scrollLeft=ae),fe!=null&&(ie.curOp.scrollTop=fe)}function tr(ie,ae){Ca(ie),ie.curOp.scrollToPos=ae}function Ca(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var fe=$h(ie,ae.from),he=$h(ie,ae.to);ia(ie,fe,he,ae.margin)}}function ia(ie,ae,fe,he){var me=Zr(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});uo(ie,me.scrollLeft,me.scrollTop)}function Io(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ue||Gu(ie,{top:ae}),cs(ie,ae,!0),ue&&Gu(ie),Tu(ie,100))}function cs(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 $a(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,Lc(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+ic(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+Tl(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:fe}}var js=function(ie,ae,fe){this.cm=fe;var he=this.vert=ut("div",[ut("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),me=this.horiz=ut("div",[ut("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");he.tabIndex=me.tabIndex=-1,ie(he),ie(me),Xt(he,"scroll",function(){he.clientHeight&&ae(he.scrollTop,"vertical")}),Xt(me,"scroll",function(){me.clientWidth&&ae(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Bt&&vt<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 Le=ie.viewWidth-ie.barLeft-(fe?he:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Le)+"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&&!Ot?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ze,this.disableVert=new ze},js.prototype.enableZeroWidthBar=function(ie,ae,fe){ie.style.pointerEvents="auto";function he(){var me=ie.getBoundingClientRect(),Le=fe=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);Le!=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 es=function(){};es.prototype.update=function(){return{bottom:0,right:0}},es.prototype.setScrollLeft=function(){},es.prototype.setScrollTop=function(){},es.prototype.clear=function(){};function Ga(ie,ae){ae||(ae=Ja(ie));var fe=ie.display.barWidth,he=ie.display.barHeight;ss(ie,ae);for(var me=0;me<4&&fe!=ie.display.barWidth||he!=ie.display.barHeight;me++)fe!=ie.display.barWidth&&ie.options.lineWrapping&&ci(ie),ss(ie,Ja(ie)),fe=ie.display.barWidth,he=ie.display.barHeight}function ss(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 ks={native:js,null:es};function _s(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&st(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new ks[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),Xt(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"?$a(ie,ae):Io(ie,ae)},ie),ie.display.scrollbars.addClass&&hn(ie.display.wrapper,ie.display.scrollbars.addClass)}var ds=0;function zs(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:++ds},Vc(ie.curOp)}function vl(ie){var ae=ie.curOp;ae&&Su(ae,function(fe){for(var he=0;he<fe.ops.length;he++)fe.ops[he].cm.curOp=null;yl(fe)})}function yl(ie){for(var ae=ie.ops,fe=0;fe<ae.length;fe++)Nu(ae[fe]);for(var he=0;he<ae.length;he++)Rl(ae[he]);for(var me=0;me<ae.length;me++)Eu(ae[me]);for(var Le=0;Le<ae.length;Le++)Ma(ae[Le]);for(var je=0;je<ae.length;je++)Vs(ae[je])}function Nu(ie){var ae=ie.cm,fe=ae.display;Dl(ae),ie.updateMaxLine&&Xa(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 Ys(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Rl(ie){ie.updatedDisplay=ie.mustUpdate&&Sl(ie.cm,ie.update)}function Eu(ie){var ae=ie.cm,fe=ae.display;ie.updatedDisplay&&ci(ae),ie.barMeasure=Ja(ae),fe.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Th(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+Tl(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+ie.adjustWidthTo-Gl(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=fe.input.prepareSelection())}function Ma(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&$a(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)&&Ga(ae,ie.barMeasure),ie.updatedDisplay&&Fu(ae,ie.barMeasure),ie.selectionChanged&&ni(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),fe&&yi(ie.cm)}function Vs(ie){var ae=ie.cm,fe=ae.display,he=ae.doc;if(ie.updatedDisplay&&Da(ae,ie.update),fe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),ie.scrollTop!=null&&cs(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&$a(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var me=cr(ae,Ti(he,ie.scrollToPos.from),Ti(he,ie.scrollToPos.to),ie.scrollToPos.margin);ji(ae,me)}var Le=ie.maybeHiddenMarkers,je=ie.maybeUnhiddenMarkers;if(Le)for(var Je=0;Je<Le.length;++Je)Le[Je].lines.length||bn(Le[Je],"hide");if(je)for(var Ye=0;Ye<je.length;++Ye)je[Ye].lines.length&&bn(je[Ye],"unhide");fe.wrapper.offsetHeight&&(he.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&bn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function Pa(ie,ae){if(ie.curOp)return ae();zs(ie);try{return ae()}finally{vl(ie)}}function Bs(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);zs(ie);try{return ae.apply(ie,arguments)}finally{vl(ie)}}}function As(ie){return function(){if(this.curOp)return ie.apply(this,arguments);zs(this);try{return ie.apply(this,arguments)}finally{vl(this)}}}function Gs(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);zs(ae);try{return ie.apply(this,arguments)}finally{vl(ae)}}}function Tu(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Bn(aa,ie))}function aa(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var fe=+new Date+ie.options.workTime,he=Kr(ie,ae.highlightFrontier),me=[];ae.iter(he.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Le){if(he.line>=ie.display.viewFrom){var je=Le.styles,Je=Le.text.length>ie.options.maxHighlightLength?Li(ae.mode,he.state):null,Ye=ja(ie,Le,he,!0);Je&&(he.state=Je),Le.styles=Ye.styles;var gt=Le.styleClasses,$t=Ye.classes;$t?Le.styleClasses=$t:gt&&(Le.styleClasses=null);for(var wt=!je||je.length!=Le.styles.length||gt!=$t&&(!gt||!$t||gt.bgClass!=$t.bgClass||gt.textClass!=$t.textClass),Kn=0;!wt&&Kn<je.length;++Kn)wt=je[Kn]!=Le.styles[Kn];wt&&me.push(he.line),Le.stateAfter=he.save(),he.nextLine()}else Le.text.length<=ie.options.maxHighlightLength&&on(ie,Le.text,he),Le.stateAfter=he.line%5==0?he.save():null,he.nextLine();if(+new Date>fe)return Tu(ie,ie.options.workDelay),!0}),ae.highlightFrontier=he.line,ae.modeFrontier=Math.max(ae.modeFrontier,he.line),me.length&&Pa(ie,function(){for(var Le=0;Le<me.length;Le++)Oa(ie,me[Le],"text")})}}var Ys=function(ie,ae,fe){var he=ie.display;this.viewport=ae,this.visible=Un(he,ie.doc,ae),this.editorIsHidden=!he.wrapper.offsetWidth,this.wrapperHeight=he.wrapper.clientHeight,this.wrapperWidth=he.wrapper.clientWidth,this.oldDisplayWidth=Gl(ie),this.force=fe,this.dims=Gc(ie),this.events=[]};Ys.prototype.signal=function(ie,ae){On(ie,ae)&&this.events.push(arguments)},Ys.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)bn.apply(null,this.events[ie])};function Dl(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=Tl(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Tl(ie)+"px",ae.scrollbarsClipped=!0)}function su(ie){if(ie.hasFocus())return null;var ae=Yt();if(!ae||!Tt(ie.display.lineDiv,ae))return null;var fe={activeElt:ae};if(window.getSelection){var he=window.getSelection();he.anchorNode&&he.extend&&Tt(ie.display.lineDiv,he.anchorNode)&&(fe.anchorNode=he.anchorNode,fe.anchorOffset=he.anchorOffset,fe.focusNode=he.focusNode,fe.focusOffset=he.focusOffset)}return fe}function pa(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Yt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Tt(document.body,ie.anchorNode)&&Tt(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 Sl(ie,ae){var fe=ie.display,he=ie.doc;if(ae.editorIsHidden)return ml(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&&$e(ie)==0)return!1;xl(ie)&&(ml(ie),ae.dims=Gc(ie));var me=he.first+he.size,Le=Math.max(ae.visible.from-ie.options.viewportMargin,he.first),je=Math.min(me,ae.visible.to+ie.options.viewportMargin);fe.viewFrom<Le&&Le-fe.viewFrom<20&&(Le=Math.max(he.first,fe.viewFrom)),fe.viewTo>je&&fe.viewTo-je<20&&(je=Math.min(me,fe.viewTo)),an&&(Le=Mr(ie.doc,Le),je=Ir(ie.doc,je));var Je=Le!=fe.viewFrom||je!=fe.viewTo||fe.lastWrapHeight!=ae.wrapperHeight||fe.lastWrapWidth!=ae.wrapperWidth;Ze(ie,Le,je),fe.viewOffset=Ba(ki(ie.doc,fe.viewFrom)),ie.display.mover.style.top=fe.viewOffset+"px";var Ye=$e(ie);if(!Je&&Ye==0&&!ae.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var gt=su(ie);return Ye>4&&(fe.lineDiv.style.display="none"),fc(ie,fe.updateLineNumbers,ae.dims),Ye>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,pa(gt),dt(fe.cursorDiv),dt(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,Je&&(fe.lastWrapHeight=ae.wrapperHeight,fe.lastWrapWidth=ae.wrapperWidth,Tu(ie,400)),fe.updateLineNumbers=null,!0}function Da(ie,ae){for(var fe=ae.viewport,he=!0;;he=!1){if(!he||!ie.options.lineWrapping||ae.oldDisplayWidth==Gl(ie)){if(fe&&fe.top!=null&&(fe={top:Math.min(ie.doc.height+ic(ie.display)-Yu(ie),fe.top)}),ae.visible=Un(ie.display,ie.doc,fe),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else he&&(ae.visible=Un(ie.display,ie.doc,fe));if(!Sl(ie,ae))break;ci(ie);var me=Ja(ie);jt(ie),Ga(ie,me),Fu(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 Gu(ie,ae){var fe=new Ys(ie,ae);if(Sl(ie,fe)){ci(ie),Da(ie,fe);var he=Ja(ie);jt(ie),Ga(ie,he),Fu(ie,he),fe.finish()}}function fc(ie,ae,fe){var he=ie.display,me=ie.options.lineNumbers,Le=he.lineDiv,je=Le.firstChild;function Je(Zi){var Xi=Zi.nextSibling;return Ue&&de&&ie.display.currentWheelTarget==Zi?Zi.style.display="none":Zi.parentNode.removeChild(Zi),Xi}for(var Ye=he.view,gt=he.viewFrom,$t=0;$t<Ye.length;$t++){var wt=Ye[$t];if(!wt.hidden)if(!wt.node||wt.node.parentNode!=Le){var Kn=ao(ie,wt,gt,fe);Le.insertBefore(Kn,je)}else{for(;je!=wt.node;)je=Je(je);var Nn=me&&ae!=null&&ae<=gt&&wt.lineNumber;wt.changes&&(gn(wt.changes,"gutter")>-1&&(Nn=!1),Ed(ie,wt,gt,fe)),Nn&&(dt(wt.lineNumber),wt.lineNumber.appendChild(document.createTextNode(Yn(ie.options,gt)))),je=wt.node.nextSibling}gt+=wt.size}for(;je;)je=Je(je)}function $l(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Fu(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+Tl(ie)+"px"}function Lc(ie){var ae=ie.display,fe=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var he=tf(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,me=ae.gutters.offsetWidth,Le=he+"px",je=0;je<fe.length;je++)if(!fe[je].hidden){ie.options.fixedGutter&&(fe[je].gutter&&(fe[je].gutter.style.left=Le),fe[je].gutterBackground&&(fe[je].gutterBackground.style.left=Le));var Je=fe[je].alignable;if(Je)for(var Ye=0;Ye<Je.length;Ye++)Je[Ye].style.left=Le}ie.options.fixedGutter&&(ae.gutters.style.left=he+me+"px")}}function xl(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,fe=Yn(ie.options,ae.first+ae.size-1),he=ie.display;if(fe.length!=he.lineNumChars){var me=he.measure.appendChild(ut("div",[ut("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Le=me.firstChild.offsetWidth,je=me.offsetWidth-Le;return he.lineGutter.style.width="",he.lineNumInnerWidth=Math.max(Le,he.lineGutter.offsetWidth-je)+1,he.lineNumWidth=he.lineNumInnerWidth+je,he.lineNumChars=he.lineNumInnerWidth?fe.length:-1,he.lineGutter.style.width=he.lineNumWidth+"px",$l(ie.display),!0}return!1}function Ns(ie,ae){for(var fe=[],he=!1,me=0;me<ie.length;me++){var Le=ie[me],je=null;if(typeof Le!="string"&&(je=Le.style,Le=Le.className),Le=="CodeMirror-linenumbers")if(ae)he=!0;else continue;fe.push({className:Le,style:je})}return ae&&!he&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function Ou(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],Le=me.className,je=me.style,Je=ae.appendChild(ut("div",null,"CodeMirror-gutter "+Le));je&&(Je.style.cssText=je),Le=="CodeMirror-linenumbers"&&(ie.lineGutter=Je,Je.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=fe.length?"":"none",$l(ie)}function wa(ie){Ou(ie.display),tl(ie),Lc(ie)}function gc(ie,ae,fe,he){var me=this;this.input=fe,me.scrollbarFiller=ut("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=ut("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=It("div",null,"CodeMirror-code"),me.selectionDiv=ut("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=ut("div",null,"CodeMirror-cursors"),me.measure=ut("div",null,"CodeMirror-measure"),me.lineMeasure=ut("div",null,"CodeMirror-measure"),me.lineSpace=It("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Le=It("div",[me.lineSpace],"CodeMirror-lines");me.mover=ut("div",[Le],null,"position: relative"),me.sizer=ut("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=ut("div",null,null,"position: absolute; height: "+Xn+"px; width: 1px;"),me.gutters=ut("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=ut("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=ut("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),Bt&&vt<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!Ue&&!(ue&&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),Ou(me),fe.init(me)}var eu=0,Ds=null;Bt?Ds=-.53:ue?Ds=15:Ct?Ds=-.7:Zt&&(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 El(ie){var ae=Ts(ie);return ae.x*=Ds,ae.y*=Ds,ae}function cl(ie,ae){var fe=Ts(ae),he=fe.x,me=fe.y,Le=ie.display,je=Le.scroller,Je=je.scrollWidth>je.clientWidth,Ye=je.scrollHeight>je.clientHeight;if(he&&Je||me&&Ye){if(me&&de&&Ue){e:for(var gt=ae.target,$t=Le.view;gt!=je;gt=gt.parentNode)for(var wt=0;wt<$t.length;wt++)if($t[wt].node==gt){ie.display.currentWheelTarget=gt;break e}}if(he&&!ue&&!yt&&Ds!=null){me&&Ye&&Io(ie,Math.max(0,je.scrollTop+me*Ds)),$a(ie,Math.max(0,je.scrollLeft+he*Ds)),(!me||me&&Ye)&&Ki(ae),Le.wheelStartX=null;return}if(me&&Ds!=null){var Kn=me*Ds,Nn=ie.doc.scrollTop,Zi=Nn+Le.wrapper.clientHeight;Kn<0?Nn=Math.max(0,Nn+Kn-50):Zi=Math.min(ie.doc.height,Zi+Kn+50),Gu(ie,{top:Nn,bottom:Zi})}eu<20&&(Le.wheelStartX==null?(Le.wheelStartX=je.scrollLeft,Le.wheelStartY=je.scrollTop,Le.wheelDX=he,Le.wheelDY=me,setTimeout(function(){if(Le.wheelStartX!=null){var Xi=je.scrollLeft-Le.wheelStartX,Rt=je.scrollTop-Le.wheelStartY,ii=Rt&&Le.wheelDY&&Rt/Le.wheelDY||Xi&&Le.wheelDX&&Xi/Le.wheelDX;Le.wheelStartX=Le.wheelStartY=null,ii&&(Ds=(Ds*eu+ii)/(eu+1),++eu)}},200)):(Le.wheelDX+=he,Le.wheelDY+=me))}}var tu=function(ie,ae){this.ranges=ie,this.primIndex=ae};tu.prototype.primary=function(){return this.ranges[this.primIndex]},tu.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(!sn(fe.anchor,he.anchor)||!sn(fe.head,he.head))return!1}return!0},tu.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Ia(Sr(this.ranges[ae].anchor),Sr(this.ranges[ae].head));return new tu(ie,this.primIndex)},tu.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},tu.prototype.contains=function(ie,ae){ae||(ae=ie);for(var fe=0;fe<this.ranges.length;fe++){var he=this.ranges[fe];if(Ft(ae,he.from())>=0&&Ft(ie,he.to())<=0)return fe}return-1};var Ia=function(ie,ae){this.anchor=ie,this.head=ae};Ia.prototype.from=function(){return Ri(this.anchor,this.head)},Ia.prototype.to=function(){return Ii(this.anchor,this.head)},Ia.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Zl(ie,ae,fe){var he=ie&&ie.options.selectionsMayTouch,me=ae[fe];ae.sort(function(Kn,Nn){return Ft(Kn.from(),Nn.from())}),fe=gn(ae,me);for(var Le=1;Le<ae.length;Le++){var je=ae[Le],Je=ae[Le-1],Ye=Ft(Je.to(),je.from());if(he&&!je.empty()?Ye>0:Ye>=0){var gt=Ri(Je.from(),je.from()),$t=Ii(Je.to(),je.to()),wt=Je.empty()?je.from()==je.head:Je.from()==Je.head;Le<=fe&&--fe,ae.splice(--Le,2,new Ia(wt?$t:gt,wt?gt:$t))}}return new tu(ae,fe)}function fu(ie,ae){return new tu([new Ia(ie,ae||ie)],0)}function Ll(ie){return ie.text?Mt(ie.from.line+ie.text.length-1,pt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function gu(ie,ae){if(Ft(ie,ae.from)<0)return ie;if(Ft(ie,ae.to)<=0)return Ll(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+=Ll(ae).ch-ae.to.ch),Mt(fe,he)}function Qu(ie,ae){for(var fe=[],he=0;he<ie.sel.ranges.length;he++){var me=ie.sel.ranges[he];fe.push(new Ia(gu(me.anchor,ae),gu(me.head,ae)))}return Zl(ie.cm,fe,ie.sel.primIndex)}function Us(ie,ae,fe){return ie.line==ae.line?Mt(fe.line,ie.ch-ae.ch+fe.ch):Mt(fe.line+(ie.line-ae.line),ie.ch)}function Iu(ie,ae,fe){for(var he=[],me=Mt(ie.first,0),Le=me,je=0;je<ae.length;je++){var Je=ae[je],Ye=Us(Je.from,me,Le),gt=Us(Ll(Je),me,Le);if(me=Je.to,Le=gt,fe=="around"){var $t=ie.sel.ranges[je],wt=Ft($t.head,$t.anchor)<0;he[je]=new Ia(wt?gt:Ye,wt?Ye:gt)}else he[je]=new Ia(Ye,Ye)}return new tu(he,ie.sel.primIndex)}function ha(ie){ie.doc.mode=en(ie.options,ie.doc.modeOption),Ps(ie)}function Ps(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,Tu(ie,100),ie.state.modeGen++,ie.curOp&&tl(ie)}function Mc(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&pt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ju(ie,ae,fe,he){function me(Ji){return fe?fe[Ji]:null}function Le(Ji,or,vr){Ta(Ji,or,vr,he),oo(Ji,"change",Ji,ae)}function je(Ji,or){for(var vr=[],Wr=Ji;Wr<or;++Wr)vr.push(new la(gt[Wr],me(Wr),he));return vr}var Je=ae.from,Ye=ae.to,gt=ae.text,$t=ki(ie,Je.line),wt=ki(ie,Ye.line),Kn=pt(gt),Nn=me(gt.length-1),Zi=Ye.line-Je.line;if(ae.full)ie.insert(0,je(0,gt.length)),ie.remove(gt.length,ie.size-gt.length);else if(Mc(ie,ae)){var Xi=je(0,gt.length-1);Le(wt,wt.text,Nn),Zi&&ie.remove(Je.line,Zi),Xi.length&&ie.insert(Je.line,Xi)}else if($t==wt)if(gt.length==1)Le($t,$t.text.slice(0,Je.ch)+Kn+$t.text.slice(Ye.ch),Nn);else{var Rt=je(1,gt.length-1);Rt.push(new la(Kn+$t.text.slice(Ye.ch),Nn,he)),Le($t,$t.text.slice(0,Je.ch)+gt[0],me(0)),ie.insert(Je.line+1,Rt)}else if(gt.length==1)Le($t,$t.text.slice(0,Je.ch)+gt[0]+wt.text.slice(Ye.ch),me(0)),ie.remove(Je.line+1,Zi);else{Le($t,$t.text.slice(0,Je.ch)+gt[0],me(0)),Le(wt,Kn+wt.text.slice(Ye.ch),Nn);var ii=je(1,gt.length-1);Zi>1&&ie.remove(Je.line+1,Zi-1),ie.insert(Je.line+1,ii)}oo(ie,"change",ie,ae)}function nu(ie,ae,fe){function he(me,Le,je){if(me.linked)for(var Je=0;Je<me.linked.length;++Je){var Ye=me.linked[Je];if(Ye.doc!=Le){var gt=je&&Ye.sharedHist;fe&&!gt||(ae(Ye.doc,gt),he(Ye.doc,me,gt))}}}he(ie,null,!0)}function pc(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Zo(ie),ha(ie),mc(ie),ie.options.lineWrapping||Xa(ie),ie.options.mode=ae.modeOption,tl(ie)}function mc(ie){(ie.doc.direction=="rtl"?hn:st)(ie.display.lineDiv,"CodeMirror-rtl")}function fh(ie){Pa(ie,function(){mc(ie),tl(ie)})}function kc(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 Sa(ie,ae){var fe={from:Sr(ae.from),to:Ll(ae),text:zr(ie,ae.from,ae.to)};return Uc(ie,fe,ae.from.line,ae.to.line+1),nu(ie,function(he){return Uc(he,fe,ae.from.line,ae.to.line+1)},!0),fe}function Ao(ie){for(;ie.length;){var ae=pt(ie);if(ae.ranges)ie.pop();else break}}function Qa(ie,ae){if(ae)return Ao(ie.done),pt(ie.done);if(ie.done.length&&!pt(ie.done).ranges)return pt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),pt(ie.done)}function rl(ie,ae,fe,he){var me=ie.history;me.undone.length=0;var Le=+new Date,je,Je;if((me.lastOp==he||me.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&me.lastModTime>Le-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(je=Qa(me,me.lastOp==he)))Je=pt(je.changes),Ft(ae.from,ae.to)==0&&Ft(ae.from,Je.to)==0?Je.to=Ll(ae):je.changes.push(Sa(ie,ae));else{var Ye=pt(me.done);for((!Ye||!Ye.ranges)&&dd(ie.sel,me.done),je={changes:[Sa(ie,ae)],generation:me.generation},me.done.push(je);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=Le,me.lastOp=me.lastSelOp=he,me.lastOrigin=me.lastSelOrigin=ae.origin,Je||bn(ie,"historyAdded")}function oc(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 td(ie,ae,fe,he){var me=ie.history,Le=he&&he.origin;fe==me.lastSelOp||Le&&me.lastSelOrigin==Le&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==Le||oc(ie,Le,pt(me.done),ae))?me.done[me.done.length-1]=ae:dd(ae,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=Le,me.lastSelOp=fe,he&&he.clearRedo!==!1&&Ao(me.undone)}function dd(ie,ae){var fe=pt(ae);fe&&fe.ranges&&fe.equals(ie)||ae.push(ie)}function Uc(ie,ae,fe,he){var me=ae["spans_"+ie.id],Le=0;ie.iter(Math.max(ie.first,fe),Math.min(ie.first+ie.size,he),function(je){je.markedSpans&&((me||(me=ae["spans_"+ie.id]={}))[Le]=je.markedSpans),++Le})}function Hl(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 ka(ie,ae){var fe=ae["spans_"+ie.id];if(!fe)return null;for(var he=[],me=0;me<ae.text.length;++me)he.push(Hl(fe[me]));return he}function Ra(ie,ae){var fe=ka(ie,ae),he=xr(ie,ae);if(!fe)return he;if(!he)return fe;for(var me=0;me<fe.length;++me){var Le=fe[me],je=he[me];if(Le&&je)e:for(var Je=0;Je<je.length;++Je){for(var Ye=je[Je],gt=0;gt<Le.length;++gt)if(Le[gt].marker==Ye.marker)continue e;Le.push(Ye)}else je&&(fe[me]=je)}return fe}function vc(ie,ae,fe){for(var he=[],me=0;me<ie.length;++me){var Le=ie[me];if(Le.ranges){he.push(fe?tu.prototype.deepCopy.call(Le):Le);continue}var je=Le.changes,Je=[];he.push({changes:Je});for(var Ye=0;Ye<je.length;++Ye){var gt=je[Ye],$t=void 0;if(Je.push({from:gt.from,to:gt.to,text:gt.text}),ae)for(var wt in gt)($t=wt.match(/^spans_(\d+)$/))&&gn(ae,Number($t[1]))>-1&&(pt(Je)[wt]=gt[wt],delete gt[wt])}}return he}function ac(ie,ae,fe,he){if(he){var me=ie.anchor;if(fe){var Le=Ft(ae,me)<0;Le!=Ft(fe,me)<0?(me=ae,ae=fe):Le!=Ft(ae,fe)<0&&(ae=fe)}return new Ia(me,ae)}else return new Ia(fe||ae,ae)}function hd(ie,ae,fe,he,me){me==null&&(me=ie.cm&&(ie.cm.display.shift||ie.extend)),Pu(ie,new tu([ac(ie.sel.primary(),ae,fe,me)],0),he)}function Wh(ie,ae,fe){for(var he=[],me=ie.cm&&(ie.cm.display.shift||ie.extend),Le=0;Le<ie.sel.ranges.length;Le++)he[Le]=ac(ie.sel.ranges[Le],ae[Le],null,me);var je=Zl(ie.cm,he,ie.sel.primIndex);Pu(ie,je,fe)}function qu(ie,ae,fe,he){var me=ie.sel.ranges.slice(0);me[ae]=fe,Pu(ie,Zl(ie.cm,me,ie.sel.primIndex),he)}function $u(ie,ae,fe,he){Pu(ie,fu(ae,fe),he)}function Wd(ie,ae,fe){var he={ranges:ae.ranges,update:function(me){this.ranges=[];for(var Le=0;Le<me.length;Le++)this.ranges[Le]=new Ia(Ti(ie,me[Le].anchor),Ti(ie,me[Le].head))},origin:fe&&fe.origin};return bn(ie,"beforeSelectionChange",ie,he),ie.cm&&bn(ie.cm,"beforeSelectionChange",ie.cm,he),he.ranges!=ae.ranges?Zl(ie.cm,he.ranges,he.ranges.length-1):ae}function $d(ie,ae,fe){var he=ie.history.done,me=pt(he);me&&me.ranges?(he[he.length-1]=ae,Nc(ie,ae,fe)):Pu(ie,ae,fe)}function Pu(ie,ae,fe){Nc(ie,ae,fe),td(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,fe)}function Nc(ie,ae,fe){(On(ie,"beforeSelectionChange")||ie.cm&&On(ie.cm,"beforeSelectionChange"))&&(ae=Wd(ie,ae,fe));var he=fe&&fe.bias||(Ft(ae.primary().head,ie.sel.primary().head)<0?-1:1);ol(ie,pu(ie,ae,he,!0)),!(fe&&fe.scroll===!1)&&ie.cm&&vo(ie.cm)}function ol(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,Bi(ie.cm)),oo(ie,"cursorActivity",ie))}function sa(ie){ol(ie,pu(ie,ie.sel,null,!1))}function pu(ie,ae,fe,he){for(var me,Le=0;Le<ae.ranges.length;Le++){var je=ae.ranges[Le],Je=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Le],Ye=eh(ie,je.anchor,Je&&Je.anchor,fe,he),gt=eh(ie,je.head,Je&&Je.head,fe,he);(me||Ye!=je.anchor||gt!=je.head)&&(me||(me=ae.ranges.slice(0,Le)),me[Le]=new Ia(Ye,gt))}return me?Zl(ie.cm,me,ae.primIndex):ae}function Na(ie,ae,fe,he,me){var Le=ki(ie,ae.line);if(Le.markedSpans)for(var je=0;je<Le.markedSpans.length;++je){var Je=Le.markedSpans[je],Ye=Je.marker,gt="selectLeft"in Ye?!Ye.selectLeft:Ye.inclusiveLeft,$t="selectRight"in Ye?!Ye.selectRight:Ye.inclusiveRight;if((Je.from==null||(gt?Je.from<=ae.ch:Je.from<ae.ch))&&(Je.to==null||($t?Je.to>=ae.ch:Je.to>ae.ch))){if(me&&(bn(Ye,"beforeCursorEnter"),Ye.explicitlyCleared))if(Le.markedSpans){--je;continue}else break;if(!Ye.atomic)continue;if(fe){var wt=Ye.find(he<0?1:-1),Kn=void 0;if((he<0?$t:gt)&&(wt=gh(ie,wt,-he,wt&&wt.line==ae.line?Le:null)),wt&&wt.line==ae.line&&(Kn=Ft(wt,fe))&&(he<0?Kn<0:Kn>0))return Na(ie,wt,ae,he,me)}var Nn=Ye.find(he<0?-1:1);return(he<0?gt:$t)&&(Nn=gh(ie,Nn,he,Nn.line==ae.line?Le:null)),Nn?Na(ie,Nn,ae,he,me):null}}return ae}function eh(ie,ae,fe,he,me){var Le=he||1,je=Na(ie,ae,fe,Le,me)||!me&&Na(ie,ae,fe,Le,!0)||Na(ie,ae,fe,-Le,me)||!me&&Na(ie,ae,fe,-Le,!0);return je||(ie.cantEdit=!0,Mt(ie.first,0))}function gh(ie,ae,fe,he){return fe<0&&ae.ch==0?ae.line>ie.first?Ti(ie,Mt(ae.line-1)):null:fe>0&&ae.ch==(he||ki(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Mt(ae.line+1,0):null:new Mt(ae.line,ae.ch+fe)}function iu(ie){ie.setSelection(Mt(ie.firstLine(),0),Mt(ie.lastLine()),nn)}function th(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,Le,je,Je){me&&(he.from=Ti(ie,me)),Le&&(he.to=Ti(ie,Le)),je&&(he.text=je),Je!==void 0&&(he.origin=Je)}),bn(ie,"beforeChange",ie,he),ie.cm&&bn(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 ec(ie,ae,fe){if(ie.cm){if(!ie.cm.curOp)return Bs(ie.cm,ec)(ie,ae,fe);if(ie.cm.state.suppressEdits)return}if(!((On(ie,"beforeChange")||ie.cm&&On(ie.cm,"beforeChange"))&&(ae=th(ie,ae,!0),!ae))){var he=Qn&&!fe&&Cn(ie,ae.from,ae.to);if(he)for(var me=he.length-1;me>=0;--me)Cd(ie,{from:he[me].from,to:he[me].to,text:me?[""]:ae.text,origin:ae.origin});else Cd(ie,ae)}}function Cd(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Ft(ae.from,ae.to)==0)){var fe=Qu(ie,ae);rl(ie,ae,fe,ie.cm?ie.cm.curOp.id:NaN),Ad(ie,ae,fe,xr(ie,ae));var he=[];nu(ie,function(me,Le){!Le&&gn(he,me.history)==-1&&(Fd(me.history,ae),he.push(me.history)),Ad(me,ae,null,xr(me,ae))})}}function jd(ie,ae,fe){var he=ie.cm&&ie.cm.state.suppressEdits;if(!(he&&!fe)){for(var me=ie.history,Le,je=ie.sel,Je=ae=="undo"?me.done:me.undone,Ye=ae=="undo"?me.undone:me.done,gt=0;gt<Je.length&&(Le=Je[gt],!(fe?Le.ranges&&!Le.equals(ie.sel):!Le.ranges));gt++);if(gt!=Je.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(Le=Je.pop(),Le.ranges){if(dd(Le,Ye),fe&&!Le.equals(ie.sel)){Pu(ie,Le,{clearRedo:!1});return}je=Le}else if(he){Je.push(Le);return}else break;var $t=[];dd(je,Ye),Ye.push({changes:$t,generation:me.generation}),me.generation=Le.generation||++me.maxGeneration;for(var wt=On(ie,"beforeChange")||ie.cm&&On(ie.cm,"beforeChange"),Kn=function(Xi){var Rt=Le.changes[Xi];if(Rt.origin=ae,wt&&!th(ie,Rt,!1))return Je.length=0,{};$t.push(Sa(ie,Rt));var ii=Xi?Qu(ie,Rt):pt(Je);Ad(ie,Rt,ii,Ra(ie,Rt)),!Xi&&ie.cm&&ie.cm.scrollIntoView({from:Rt.from,to:Ll(Rt)});var Ji=[];nu(ie,function(or,vr){!vr&&gn(Ji,or.history)==-1&&(Fd(or.history,Rt),Ji.push(or.history)),Ad(or,Rt,null,Ra(or,Rt))})},Nn=Le.changes.length-1;Nn>=0;--Nn){var Zi=Kn(Nn);if(Zi)return Zi.v}}}}function nf(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new tu(ht(ie.sel.ranges,function(me){return new Ia(Mt(me.anchor.line+ae,me.anchor.ch),Mt(me.head.line+ae,me.head.ch))}),ie.sel.primIndex),ie.cm)){tl(ie.cm,ie.first,ie.first-ae,ae);for(var fe=ie.cm.display,he=fe.viewFrom;he<fe.viewTo;he++)Oa(ie.cm,he,"gutter")}}function Ad(ie,ae,fe,he){if(ie.cm&&!ie.cm.curOp)return Bs(ie.cm,Ad)(ie,ae,fe,he);if(ae.to.line<ie.first){nf(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);nf(ie,me),ae={from:Mt(ie.first,0),to:Mt(ae.to.line+me,ae.to.ch),text:[pt(ae.text)],origin:ae.origin}}var Le=ie.lastLine();ae.to.line>Le&&(ae={from:ae.from,to:Mt(Le,ki(ie,Le).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=zr(ie,ae.from,ae.to),fe||(fe=Qu(ie,ae)),ie.cm?Zc(ie.cm,ae,he):Ju(ie,ae,he),Nc(ie,fe,nn),ie.cantEdit&&eh(ie,Mt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Zc(ie,ae,fe){var he=ie.doc,me=ie.display,Le=ae.from,je=ae.to,Je=!1,Ye=Le.line;ie.options.lineWrapping||(Ye=Pt(_o(ki(he,Le.line))),he.iter(Ye,je.line+1,function(Nn){if(Nn==me.maxLine)return Je=!0,!0})),he.sel.contains(ae.from,ae.to)>-1&&Bi(ie),Ju(he,ae,fe,el(ie)),ie.options.lineWrapping||(he.iter(Ye,Le.line+ae.text.length,function(Nn){var Zi=Ws(Nn);Zi>me.maxLineLength&&(me.maxLine=Nn,me.maxLineLength=Zi,me.maxLineChanged=!0,Je=!1)}),Je&&(ie.curOp.updateMaxLine=!0)),Ci(he,Le.line),Tu(ie,400);var gt=ae.text.length-(je.line-Le.line)-1;ae.full?tl(ie):Le.line==je.line&&ae.text.length==1&&!Mc(ie.doc,ae)?Oa(ie,Le.line,"text"):tl(ie,Le.line,je.line+1,gt);var $t=On(ie,"changes"),wt=On(ie,"change");if(wt||$t){var Kn={from:Le,to:je,text:ae.text,removed:ae.removed,origin:ae.origin};wt&&oo(ie,"change",ie,Kn),$t&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Kn)}ie.display.selForContextMenu=null}function Hc(ie,ae,fe,he,me){var Le;he||(he=fe),Ft(he,fe)<0&&(Le=[he,fe],fe=Le[0],he=Le[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),ec(ie,{from:fe,to:he,text:ae,origin:me})}function Tc(ie,ae,fe,he){fe<ie.line?ie.line+=he:ae<ie.line&&(ie.line=ae,ie.ch=0)}function rf(ie,ae,fe,he){for(var me=0;me<ie.length;++me){var Le=ie[me],je=!0;if(Le.ranges){Le.copied||(Le=ie[me]=Le.deepCopy(),Le.copied=!0);for(var Je=0;Je<Le.ranges.length;Je++)Tc(Le.ranges[Je].anchor,ae,fe,he),Tc(Le.ranges[Je].head,ae,fe,he);continue}for(var Ye=0;Ye<Le.changes.length;++Ye){var gt=Le.changes[Ye];if(fe<gt.from.line)gt.from=Mt(gt.from.line+he,gt.from.ch),gt.to=Mt(gt.to.line+he,gt.to.ch);else if(ae<=gt.to.line){je=!1;break}}je||(ie.splice(0,me+1),me=0)}}function Fd(ie,ae){var fe=ae.from.line,he=ae.to.line,me=ae.text.length-(he-fe)-1;rf(ie.done,fe,he,me),rf(ie.undone,fe,he,me)}function fd(ie,ae,fe,he){var me=ae,Le=ae;return typeof ae=="number"?Le=ki(ie,ai(ie,ae)):me=Pt(ae),me==null?null:(he(Le,me)&&ie.cm&&Oa(ie.cm,me,fe),Le)}function zd(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}zd.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,Ls(me),oo(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 Pl(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}Pl.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 Le=Math.min(ae,me-ie),je=he.height;if(he.removeInner(ie,Le),this.height-=je-he.height,me==Le&&(this.children.splice(fe--,1),he.parent=null),(ae-=Le)==0)break;ie=0}else ie-=me}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof zd))){var Je=[];this.collapse(Je),this.children=[new zd(Je)],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],Le=me.chunkSize();if(ie<=Le){if(me.insertInner(ie,ae,fe),me.lines&&me.lines.length>50){for(var je=me.lines.length%25+25,Je=je;Je<me.lines.length;){var Ye=new zd(me.lines.slice(Je,Je+=25));me.height-=Ye.height,this.children.splice(++he,0,Ye),Ye.parent=this}me.lines=me.lines.slice(0,je),this.maybeSpill()}break}ie-=Le}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),fe=new Pl(ae);if(ie.parent){ie.size-=fe.size,ie.height-=fe.height;var me=gn(ie.parent.children,ie);ie.parent.children.splice(me+1,0,fe)}else{var he=new Pl(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],Le=me.chunkSize();if(ie<Le){var je=Math.min(ae,Le-ie);if(me.iterN(ie,je,fe))return!0;if((ae-=je)==0)break;ie=0}else ie-=Le}}};var yc=function(ie,ae,fe){if(fe)for(var he in fe)fe.hasOwnProperty(he)&&(this[he]=fe[he]);this.doc=ie,this.node=ae};yc.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,fe=this.line,he=Pt(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 Le=ku(this);Br(fe,Math.max(0,fe.height-Le)),ie&&(Pa(ie,function(){ph(ie,fe,-Le),Oa(ie,he,"widget")}),oo(ie,"lineWidgetCleared",ie,this,he))}},yc.prototype.changed=function(){var ie=this,ae=this.height,fe=this.doc.cm,he=this.line;this.height=null;var me=ku(this)-ae;me&&(gi(this.doc,he)||Br(he,he.height+me),fe&&Pa(fe,function(){fe.curOp.forceUpdate=!0,ph(fe,he,me),oo(fe,"lineWidgetChanged",fe,ie,Pt(he))}))},Jn(yc);function ph(ie,ae,fe){Ba(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&fo(ie,fe)}function jh(ie,ae,fe,he){var me=new yc(ie,fe,he),Le=ie.cm;return Le&&me.noHScroll&&(Le.display.alignWidgets=!0),fd(ie,ae,"widget",function(je){var Je=je.widgets||(je.widgets=[]);if(me.insertAt==null?Je.push(me):Je.splice(Math.min(Je.length-1,Math.max(0,me.insertAt)),0,me),me.line=je,Le&&!gi(ie,je)){var Ye=Ba(je)<ie.scrollTop;Br(je,je.height+ku(me)),Ye&&fo(Le,me.height),Le.curOp.forceUpdate=!0}return!0}),Le&&oo(Le,"lineWidgetAdded",Le,me,typeof ae=="number"?ae:Pt(ae)),me}var mh=0,Ht=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++mh};Ht.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&zs(ie),On(this,"clear")){var fe=this.find();fe&&oo(this,"clear",fe.from,fe.to)}for(var he=null,me=null,Le=0;Le<this.lines.length;++Le){var je=this.lines[Le],Je=Tr(je.markedSpans,this);ie&&!this.collapsed?Oa(ie,Pt(je),"text"):ie&&(Je.to!=null&&(me=Pt(je)),Je.from!=null&&(he=Pt(je))),je.markedSpans=fr(je.markedSpans,Je),Je.from==null&&this.collapsed&&!gi(this.doc,je)&&ie&&Br(je,hc(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Ye=0;Ye<this.lines.length;++Ye){var gt=_o(this.lines[Ye]),$t=Ws(gt);$t>ie.display.maxLineLength&&(ie.display.maxLine=gt,ie.display.maxLineLength=$t,ie.display.maxLineChanged=!0)}he!=null&&ie&&this.collapsed&&tl(ie,he,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&sa(ie.doc)),ie&&oo(ie,"markerCleared",ie,this,he,me),ae&&vl(ie),this.parent&&this.parent.clear()}},Ht.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var fe,he,me=0;me<this.lines.length;++me){var Le=this.lines[me],je=Tr(Le.markedSpans,this);if(je.from!=null&&(fe=Mt(ae?Le:Pt(Le),je.from),ie==-1))return fe;if(je.to!=null&&(he=Mt(ae?Le:Pt(Le),je.to),ie==1))return he}return fe&&{from:fe,to:he}},Ht.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),fe=this,he=this.doc.cm;!ae||!he||Pa(he,function(){var me=ae.line,Le=Pt(ae.line),je=Id(he,Le);if(je&&(xf(je),he.curOp.selectionChanged=he.curOp.forceUpdate=!0),he.curOp.updateMaxLine=!0,!gi(fe.doc,me)&&fe.height!=null){var Je=fe.height;fe.height=null;var Ye=ku(fe)-Je;Ye&&Br(me,me.height+Ye)}oo(he,"markerChanged",he,ie)})},Ht.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||gn(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Ht.prototype.detachLine=function(ie){if(this.lines.splice(gn(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Jn(Ht);function it(ie,ae,fe,he,me){if(he&&he.shared)return ot(ie,ae,fe,he,me);if(ie.cm&&!ie.cm.curOp)return Bs(ie.cm,it)(ie,ae,fe,he,me);var Le=new Ht(ie,me),je=Ft(ae,fe);if(he&&di(he,Le,!1),je>0||je==0&&Le.clearWhenEmpty!==!1)return Le;if(Le.replacedWith&&(Le.collapsed=!0,Le.widgetNode=It("span",[Le.replacedWith],"CodeMirror-widget"),he.handleMouseEvents||Le.widgetNode.setAttribute("cm-ignore-events","true"),he.insertLeft&&(Le.widgetNode.insertLeft=!0)),Le.collapsed){if(bs(ie,ae.line,ae,fe,Le)||ae.line!=fe.line&&bs(ie,fe.line,ae,fe,Le))throw new Error("Inserting collapsed marker partially overlapping an existing one");In()}Le.addToHistory&&rl(ie,{from:ae,to:fe,origin:"markText"},ie.sel,NaN);var Je=ae.line,Ye=ie.cm,gt;if(ie.iter(Je,fe.line+1,function(wt){Ye&&Le.collapsed&&!Ye.options.lineWrapping&&_o(wt)==Ye.display.maxLine&&(gt=!0),Le.collapsed&&Je!=ae.line&&Br(wt,0),Bo(wt,new Or(Le,Je==ae.line?ae.ch:null,Je==fe.line?fe.ch:null)),++Je}),Le.collapsed&&ie.iter(ae.line,fe.line+1,function(wt){gi(ie,wt)&&Br(wt,0)}),Le.clearOnEnter&&Xt(Le,"beforeCursorEnter",function(){return Le.clear()}),Le.readOnly&&(Vr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Le.collapsed&&(Le.id=++mh,Le.atomic=!0),Ye){if(gt&&(Ye.curOp.updateMaxLine=!0),Le.collapsed)tl(Ye,ae.line,fe.line+1);else if(Le.className||Le.startStyle||Le.endStyle||Le.css||Le.attributes||Le.title)for(var $t=ae.line;$t<=fe.line;$t++)Oa(Ye,$t,"text");Le.atomic&&sa(Ye.doc),oo(Ye,"markerAdded",Ye,Le)}return Le}var lt=function(ie,ae){this.markers=ie,this.primary=ae;for(var fe=0;fe<ie.length;++fe)ie[fe].parent=this};lt.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();oo(this,"clear")}},lt.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Jn(lt);function ot(ie,ae,fe,he,me){he=di(he),he.shared=!1;var Le=[it(ie,ae,fe,he,me)],je=Le[0],Je=he.widgetNode;return nu(ie,function(Ye){Je&&(he.widgetNode=Je.cloneNode(!0)),Le.push(it(Ye,Ti(Ye,ae),Ti(Ye,fe),he,me));for(var gt=0;gt<Ye.linked.length;++gt)if(Ye.linked[gt].isParent)return;je=pt(Le)}),new lt(Le,je)}function xn(ie){return ie.findMarks(Mt(ie.first,0),ie.clipPos(Mt(ie.lastLine())),function(ae){return ae.parent})}function wi(ie,ae){for(var fe=0;fe<ae.length;fe++){var he=ae[fe],me=he.find(),Le=ie.clipPos(me.from),je=ie.clipPos(me.to);if(Ft(Le,je)){var Je=it(ie,Le,je,he.primary,he.primary.type);he.markers.push(Je),Je.parent=he}}}function Yi(ie){for(var ae=function(he){var me=ie[he],Le=[me.primary.doc];nu(me.primary.doc,function(Ye){return Le.push(Ye)});for(var je=0;je<me.markers.length;je++){var Je=me.markers[je];gn(Le,Je.doc)==-1&&(Je.parent=null,me.markers.splice(je--,1))}},fe=0;fe<ie.length;fe++)ae(fe)}var dr=0,xi=function(ie,ae,fe,he,me){if(!(this instanceof xi))return new xi(ie,ae,fe,he,me);fe==null&&(fe=0),Pl.call(this,[new zd([new la("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var Le=Mt(fe,0);this.sel=fu(Le),this.history=new kc(null),this.id=++dr,this.modeOption=ae,this.lineSep=he,this.direction=me=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ju(this,{from:Le,to:Le,text:ie}),Pu(this,fu(Le),nn)};xi.prototype=Ce(Pl.prototype,{constructor:xi,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=br(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:Gs(function(ie){var ae=Mt(this.first,0),fe=this.first+this.size-1;ec(this,{from:ae,to:Mt(fe,ki(this,fe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&uo(this.cm,0,0),Pu(this,fu(ae),nn)}),replaceRange:function(ie,ae,fe,he){ae=Ti(this,ae),fe=fe?Ti(this,fe):ae,Hc(this,ie,ae,fe,he)},getRange:function(ie,ae,fe){var he=zr(this,Ti(this,ie),Ti(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(En(this,ie))return ki(this,ie)},getLineNumber:function(ie){return Pt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=ki(this,ie)),_o(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Ti(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:Gs(function(ie,ae,fe){$u(this,Ti(this,typeof ie=="number"?Mt(ie,ae||0):ie),null,fe)}),setSelection:Gs(function(ie,ae,fe){$u(this,Ti(this,ie),Ti(this,ae||ie),fe)}),extendSelection:Gs(function(ie,ae,fe){hd(this,Ti(this,ie),ae&&Ti(this,ae),fe)}),extendSelections:Gs(function(ie,ae){Wh(this,Qr(this,ie),ae)}),extendSelectionsBy:Gs(function(ie,ae){var fe=ht(this.sel.ranges,ie);Wh(this,Qr(this,fe),ae)}),setSelections:Gs(function(ie,ae,fe){if(ie.length){for(var he=[],me=0;me<ie.length;me++)he[me]=new Ia(Ti(this,ie[me].anchor),Ti(this,ie[me].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Pu(this,Zl(this.cm,he,ae),fe)}}),addSelection:Gs(function(ie,ae,fe){var he=this.sel.ranges.slice(0);he.push(new Ia(Ti(this,ie),Ti(this,ae||ie))),Pu(this,Zl(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=zr(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=zr(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:Gs(function(ie,ae,fe){for(var he=[],me=this.sel,Le=0;Le<me.ranges.length;Le++){var je=me.ranges[Le];he[Le]={from:je.from(),to:je.to(),text:this.splitLines(ie[Le]),origin:fe}}for(var Je=ae&&ae!="end"&&Iu(this,he,ae),Ye=he.length-1;Ye>=0;Ye--)ec(this,he[Ye]);Je?$d(this,Je):this.cm&&vo(this.cm)}),undo:Gs(function(){jd(this,"undo")}),redo:Gs(function(){jd(this,"redo")}),undoSelection:Gs(function(){jd(this,"undo",!0)}),redoSelection:Gs(function(){jd(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 kc(this.history.maxGeneration),nu(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:vc(this.history.done),undone:vc(this.history.undone)}},setHistory:function(ie){var ae=this.history=new kc(this.history.maxGeneration);ae.done=vc(ie.done.slice(0),null,!0),ae.undone=vc(ie.undone.slice(0),null,!0)},setGutterMarker:Gs(function(ie,ae,fe){return fd(this,ie,"gutter",function(he){var me=he.gutterMarkers||(he.gutterMarkers={});return me[ae]=fe,!fe&&De(me)&&(he.gutterMarkers=null),!0})}),clearGutter:Gs(function(ie){var ae=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[ie]&&fd(ae,fe,"gutter",function(){return fe.gutterMarkers[ie]=null,De(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!En(this,ie)||(ae=ie,ie=ki(this,ie),!ie))return null}else if(ae=Pt(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:Gs(function(ie,ae,fe){return fd(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(ke(fe).test(he[me]))return!1;he[me]+=" "+fe}return!0})}),removeLineClass:Gs(function(ie,ae,fe){return fd(this,ie,ae=="gutter"?"gutter":"class",function(he){var me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Le=he[me];if(Le)if(fe==null)he[me]=null;else{var je=Le.match(ke(fe));if(!je)return!1;var Je=je.index+je[0].length;he[me]=Le.slice(0,je.index)+(!je.index||Je==Le.length?"":" ")+Le.slice(Je)||null}else return!1;return!0})}),addLineWidget:Gs(function(ie,ae,fe){return jh(this,ie,ae,fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,fe){return it(this,Ti(this,ie),Ti(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=Ti(this,ie),it(this,ie,ie,fe,"bookmark")},findMarksAt:function(ie){ie=Ti(this,ie);var ae=[],fe=ki(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=Ti(this,ie),ae=Ti(this,ae);var he=[],me=ie.line;return this.iter(ie.line,ae.line+1,function(Le){var je=Le.markedSpans;if(je)for(var Je=0;Je<je.length;Je++){var Ye=je[Je];!(Ye.to!=null&&me==ie.line&&ie.ch>=Ye.to||Ye.from==null&&me!=ie.line||Ye.from!=null&&me==ae.line&&Ye.from>=ae.ch)&&(!fe||fe(Ye.marker))&&he.push(Ye.marker.parent||Ye.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 Le=me.text.length+he;if(Le>ie)return ae=ie,!0;ie-=Le,++fe}),Ti(this,Mt(fe,ae))},indexFromPos:function(ie){ie=Ti(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 xi(br(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 xi(br(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}],wi(he,xn(this)),he},unlinkDoc:function(ie){if(ie instanceof Aa&&(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),Yi(xn(this));break}}if(ie.history==this.history){var he=[ie.id];nu(ie,function(me){return he.push(me.id)},!0),ie.history=new kc(null),ie.history.done=vc(this.history.done,he),ie.history.undone=vc(this.history.undone,he)}},iterLinkedDocs:function(ie){nu(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Nr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Gs(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&fh(this.cm))})}),xi.prototype.eachLine=xi.prototype.iter;var Fn=0;function Fi(ie){var ae=this;if(kr(ae),!(Dn(ae,ie)||xs(ae.display,ie))){Ki(ie),Bt&&(Fn=+new Date);var fe=au(ae,ie,!0),he=ie.dataTransfer.files;if(!(!fe||ae.isReadOnly()))if(he&&he.length&&window.FileReader&&window.File)for(var me=he.length,Le=Array(me),je=0,Je=function(){++je==me&&Bs(ae,function(){fe=Ti(ae.doc,fe);var Nn={from:fe,to:fe,text:ae.doc.splitLines(Le.filter(function(Zi){return Zi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};ec(ae.doc,Nn),$d(ae.doc,fu(Ti(ae.doc,fe),Ti(ae.doc,Ll(Nn))))})()},Ye=function(Nn,Zi){if(ae.options.allowDropFileTypes&&gn(ae.options.allowDropFileTypes,Nn.type)==-1){Je();return}var Xi=new FileReader;Xi.onerror=function(){return Je()},Xi.onload=function(){var Rt=Xi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Rt)){Je();return}Le[Zi]=Rt,Je()},Xi.readAsText(Nn)},gt=0;gt<he.length;gt++)Ye(he[gt],gt);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 $t=ie.dataTransfer.getData("Text");if($t){var wt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(wt=ae.listSelections()),Nc(ae.doc,fu(fe,fe)),wt)for(var Kn=0;Kn<wt.length;++Kn)Hc(ae.doc,"",wt[Kn].anchor,wt[Kn].head,"drag");ae.replaceSelection($t,"around","paste"),ae.display.input.focus()}}catch(Nn){}}}}function Yr(ie,ae){if(Bt&&(!ie.state.draggingText||+new Date-Fn<100)){lo(ae);return}if(!(Dn(ie,ae)||xs(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!Zt)){var fe=ut("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",yt&&(fe.width=fe.height=1,ie.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),ae.dataTransfer.setDragImage(fe,0,0),yt&&fe.parentNode.removeChild(fe)}}function Po(ie,ae){var fe=au(ie,ae);if(fe){var he=document.createDocumentFragment();Sn(ie,fe,he),ie.display.dragCursor||(ie.display.dragCursor=ut("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),xt(ie.display.dragCursor,he)}}function kr(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function $r(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 Le=0;Le<fe.length;Le++)ie(fe[Le])})}}var No=!1;function So(){No||(po(),No=!0)}function po(){var ie;Xt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,$r(lr)},100))}),Xt(window,"blur",function(){return $r(Gi)})}function lr(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var ma={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"},Vo=0;Vo<10;Vo++)ma[Vo+48]=ma[Vo+96]=String(Vo);for(var mo=65;mo<=90;mo++)ma[mo]=String.fromCharCode(mo);for(var Fo=1;Fo<=12;Fo++)ma[Fo+111]=ma[Fo+63235]="F"+Fo;var Pr={};Pr.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"},Pr.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"},Pr.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"},Pr.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"]},Pr.default=de?Pr.macDefault:Pr.pcDefault;function gr(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var fe,he,me,Le,je=0;je<ae.length-1;je++){var Je=ae[je];if(/^(cmd|meta|m)$/i.test(Je))Le=!0;else if(/^a(lt)?$/i.test(Je))fe=!0;else if(/^(c|ctrl|control)$/i.test(Je))he=!0;else if(/^s(hift)?$/i.test(Je))me=!0;else throw new Error("Unrecognized modifier name: "+Je)}return fe&&(ie="Alt-"+ie),he&&(ie="Ctrl-"+ie),Le&&(ie="Cmd-"+ie),me&&(ie="Shift-"+ie),ie}function Mo(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(" "),gr),Le=0;Le<me.length;Le++){var je=void 0,Je=void 0;Le==me.length-1?(Je=me.join(" "),je=he):(Je=me.slice(0,Le+1).join(" "),je="...");var Ye=ae[Je];if(!Ye)ae[Je]=je;else if(Ye!=je)throw new Error("Inconsistent bindings for "+Je)}delete ie[fe]}for(var gt in ae)ie[gt]=ae[gt];return ie}function Ur(ie,ae,fe,he){ae=xa(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 Ur(ie,ae.fallthrough,fe,he);for(var Le=0;Le<ae.fallthrough.length;Le++){var je=Ur(ie,ae.fallthrough[Le],fe,he);if(je)return je}}}function Do(ie){var ae=typeof ie=="string"?ie:ma[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function yo(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 ca(ie,ae){if(yt&&ie.keyCode==34&&ie.char)return!1;var fe=ma[ie.keyCode];return fe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(fe=ie.code),yo(fe,ie,ae))}function xa(ie){return typeof ie=="string"?Pr[ie]:ie}function $n(ie,ae){for(var fe=ie.doc.sel.ranges,he=[],me=0;me<fe.length;me++){for(var Le=ae(fe[me]);he.length&&Ft(Le.from,pt(he).to)<=0;){var je=he.pop();if(Ft(je.from,Le.from)<0){Le.from=je.from;break}}he.push(Le)}Pa(ie,function(){for(var Je=he.length-1;Je>=0;Je--)Hc(ie.doc,"",he[Je].from,he[Je].to,"+delete");vo(ie)})}function wo(ie,ae,fe){var he=mt(ie.text,ae+fe,fe);return he<0||he>ie.text.length?null:he}function Yo(ie,ae,fe){var he=wo(ie,ae.ch,fe);return he==null?null:new Mt(ae.line,he,fe<0?"after":"before")}function Jo(ie,ae,fe,he,me){if(ie){ae.doc.direction=="rtl"&&(me=-me);var Le=Gn(fe,ae.doc.direction);if(Le){var je=me<0?pt(Le):Le[0],Je=me<0==(je.level==1),Ye=Je?"after":"before",gt;if(je.level>0||ae.doc.direction=="rtl"){var $t=Ol(ae,fe);gt=me<0?fe.text.length-1:0;var wt=rc(ae,$t,gt).top;gt=Wt(function(Kn){return rc(ae,$t,Kn).top==wt},me<0==(je.level==1)?je.from:je.to-1,gt),Ye=="before"&&(gt=wo(fe,gt,1))}else gt=me<0?je.to:je.from;return new Mt(he,gt,Ye)}}return new Mt(he,me<0?fe.text.length:0,me<0?"before":"after")}function Qo(ie,ae,fe,he){var me=Gn(ae,ie.doc.direction);if(!me)return Yo(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 Le=pn(me,fe.ch,fe.sticky),je=me[Le];if(ie.doc.direction=="ltr"&&je.level%2==0&&(he>0?je.to>fe.ch:je.from<fe.ch))return Yo(ae,fe,he);var Je=function(ii,Ji){return wo(ae,ii instanceof Mt?ii.ch:ii,Ji)},Ye,gt=function(ii){return ie.options.lineWrapping?(Ye=Ye||Ol(ie,ae),Ih(ie,ae,Ye,ii)):{begin:0,end:ae.text.length}},$t=gt(fe.sticky=="before"?Je(fe,-1):fe.ch);if(ie.doc.direction=="rtl"||je.level==1){var wt=je.level==1==he<0,Kn=Je(fe,wt?1:-1);if(Kn!=null&&(wt?Kn<=je.to&&Kn<=$t.end:Kn>=je.from&&Kn>=$t.begin)){var Nn=wt?"before":"after";return new Mt(fe.line,Kn,Nn)}}var Zi=function(ii,Ji,or){for(var vr=function(ws,Ml){return Ml?new Mt(fe.line,Je(ws,1),"before"):new Mt(fe.line,ws,"after")};ii>=0&&ii<me.length;ii+=Ji){var Wr=me[ii],Er=Ji>0==(Wr.level!=1),ea=Er?or.begin:Je(or.end,-1);if(Wr.from<=ea&&ea<Wr.to||(ea=Er?Wr.from:Je(Wr.to,-1),or.begin<=ea&&ea<or.end))return vr(ea,Er)}},Xi=Zi(Le+he,he,$t);if(Xi)return Xi;var Rt=he>0?$t.end:Je($t.begin,-1);return Rt!=null&&!(he>0&&Rt==ae.text.length)&&(Xi=Zi(he>0?0:me.length-1,he,gt(Rt)),Xi)?Xi:null}var ms={selectAll:iu,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),nn)},killLine:function(ie){return $n(ie,function(ae){if(ae.empty()){var fe=ki(ie.doc,ae.head.line).text.length;return ae.head.ch==fe&&ae.head.line<ie.lastLine()?{from:ae.head,to:Mt(ae.head.line+1,0)}:{from:ae.head,to:Mt(ae.head.line,fe)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return $n(ie,function(ae){return{from:Mt(ae.from().line,0),to:Ti(ie.doc,Mt(ae.to().line+1,0))}})},delLineLeft:function(ie){return $n(ie,function(ae){return{from:Mt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return $n(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 $n(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(Mt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Mt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return Cr(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Ha(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return Xo(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")},An)},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")},An)},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/)?Ha(ie,ae.head):he},An)},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 Le=fe[me].from(),je=nt(ie.getLine(Le.line),Le.ch,he);ae.push(Mi(he-je%he))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Pa(ie,function(){for(var ae=ie.listSelections(),fe=[],he=0;he<ae.length;he++)if(ae[he].empty()){var me=ae[he].head,Le=ki(ie.doc,me.line).text;if(Le){if(me.ch==Le.length&&(me=new Mt(me.line,me.ch-1)),me.ch>0)me=new Mt(me.line,me.ch+1),ie.replaceRange(Le.charAt(me.ch-1)+Le.charAt(me.ch-2),Mt(me.line,me.ch-2),me,"+transpose");else if(me.line>ie.doc.first){var je=ki(ie.doc,me.line-1).text;je&&(me=new Mt(me.line,1),ie.replaceRange(Le.charAt(0)+ie.doc.lineSeparator()+je.charAt(je.length-1),Mt(me.line-1,je.length-1),me,"+transpose"))}}fe.push(new Ia(me,me))}ie.setSelections(fe)})},newlineAndIndent:function(ie){return Pa(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);vo(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function Cr(ie,ae){var fe=ki(ie.doc,ae),he=_o(fe);return he!=fe&&(ae=Pt(he)),Jo(!0,ie,he,ae,1)}function Xo(ie,ae){var fe=ki(ie.doc,ae),he=Ea(fe);return he!=fe&&(ae=Pt(he)),Jo(!0,ie,fe,ae,-1)}function Ha(ie,ae){var fe=Cr(ie,ae.line),he=ki(ie.doc,fe.line),me=Gn(he,ie.doc.direction);if(!me||me[0].level==0){var Le=Math.max(fe.ch,he.text.search(/\S/)),je=ae.line==fe.line&&ae.ch<=Le&&ae.ch;return Mt(fe.line,je?0:Le,fe.sticky)}return fe}function ls(ie,ae,fe){if(typeof ae=="string"&&(ae=ms[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)!=ti}finally{ie.display.shift=he,ie.state.suppressEdits=!1}return me}function hs(ie,ae,fe){for(var he=0;he<ie.state.keyMaps.length;he++){var me=Ur(ae,ie.state.keyMaps[he],fe,ie);if(me)return me}return ie.options.extraKeys&&Ur(ae,ie.options.extraKeys,fe,ie)||Ur(ae,ie.options.keyMap,fe,ie)}var Ua=new ze;function pr(ie,ae,fe,he){var me=ie.state.keySeq;if(me){if(Do(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Ua.set(50,function(){ie.state.keySeq==me&&(ie.state.keySeq=null,ie.display.input.reset())}),Ho(ie,me+" "+ae,fe,he))return!0}return Ho(ie,ae,fe,he)}function Ho(ie,ae,fe,he){var me=hs(ie,ae,he);return me=="multi"&&(ie.state.keySeq=ae),me=="handled"&&oo(ie,"keyHandled",ie,ae,fe),(me=="handled"||me=="multi")&&(Ki(fe),ni(ie)),!!me}function Wa(ie,ae){var fe=ca(ae,!0);return fe?ae.shiftKey&&!ie.state.keySeq?pr(ie,"Shift-"+fe,ae,function(he){return ls(ie,he,!0)})||pr(ie,fe,ae,function(he){if(typeof he=="string"?/^go[A-Z]/.test(he):he.motion)return ls(ie,he)}):pr(ie,fe,ae,function(he){return ls(ie,he)}):!1}function Ko(ie,ae,fe){return pr(ie,"'"+fe+"'",ae,function(he){return ls(ie,he,!0)})}var ts=null;function fs(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Yt(),!Dn(ae,ie))){Bt&&vt<11&&ie.keyCode==27&&(ie.returnValue=!1);var fe=ie.keyCode;ae.display.shift=fe==16||ie.shiftKey;var he=Wa(ae,ie);yt&&(ts=he?fe:null,!he&&fe==88&&!ya&&(de?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ue&&!de&&!he&&fe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&al(ae)}}function al(ie){var ae=ie.display.lineDiv;hn(ae,"CodeMirror-crosshair");function fe(he){(he.keyCode==18||!he.altKey)&&(st(ae,"CodeMirror-crosshair"),Wn(document,"keyup",fe),Wn(document,"mouseover",fe))}Xt(document,"keyup",fe),Xt(document,"mouseover",fe)}function Xs(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Dn(this,ie)}function Os(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(xs(ae.display,ie)||Dn(ae,ie)||ie.ctrlKey&&!ie.altKey||de&&ie.metaKey)){var fe=ie.keyCode,he=ie.charCode;if(yt&&fe==ts){ts=null,Ki(ie);return}if(!(yt&&(!ie.which||ie.which<10)&&Wa(ae,ie))){var me=String.fromCharCode(he==null?fe:he);me!="\b"&&(Ko(ae,ie,me)||ae.display.input.onKeyPress(ie))}}}var eo=400,qa=function(ie,ae,fe){this.time=ie,this.pos=ae,this.button=fe};qa.prototype.compare=function(ie,ae,fe){return this.time+eo>ie&&Ft(ae,this.pos)==0&&fe==this.button};var sl,Kl;function La(ie,ae){var fe=+new Date;return Kl&&Kl.compare(fe,ie,ae)?(sl=Kl=null,"triple"):sl&&sl.compare(fe,ie,ae)?(Kl=new qa(fe,ie,ae),sl=null,"double"):(sl=new qa(fe,ie,ae),Kl=null,"single")}function Ro(ie){var ae=this,fe=ae.display;if(!(Dn(ae,ie)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=ie.shiftKey,xs(fe,ie)){Ue||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!qo(ae,ie)){var he=au(ae,ie),me=Oo(ie),Le=he?La(he,me):"single";window.focus(),me==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(he&&na(ae,me,he,Le,ie))&&(me==1?he?Ru(ae,he,Le,ie):jo(ie)==fe.scroller&&Ki(ie):me==2?(he&&hd(ae.doc,he),setTimeout(function(){return fe.input.focus()},20)):me==3&&(Me?ae.display.input.onContextMenu(ie):$i(ae)))}}}function na(ie,ae,fe,he,me){var Le="Click";return he=="double"?Le="Double"+Le:he=="triple"&&(Le="Triple"+Le),Le=(ae==1?"Left":ae==2?"Middle":"Right")+Le,pr(ie,yo(Le,me),me,function(je){if(typeof je=="string"&&(je=ms[je]),!je)return!1;var Je=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Je=je(ie,fe)!=ti}finally{ie.state.suppressEdits=!1}return Je})}function Yl(ie,ae,fe){var he=ie.getOption("configureMouse"),me=he?he(ie,ae,fe):{};if(me.unit==null){var Le=le?fe.shiftKey&&fe.metaKey:fe.altKey;me.unit=Le?"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 Ru(ie,ae,fe,he){Bt?setTimeout(Bn(yi,ie),0):ie.curOp.focus=Yt();var me=Yl(ie,fe,he),Le=ie.doc.sel,je;ie.options.dragDrop&&Hr&&!ie.isReadOnly()&&fe=="single"&&(je=Le.contains(ae))>-1&&(Ft((je=Le.ranges[je]).from(),ae)<0||ae.xRel>0)&&(Ft(je.to(),ae)>0||ae.xRel<0)?tc(ie,he,ae,me):Za(ie,he,ae,me)}function tc(ie,ae,fe,he){var me=ie.display,Le=!1,je=Bs(ie,function(gt){Ue&&(me.scroller.draggable=!1),ie.state.draggingText=!1,Wn(me.wrapper.ownerDocument,"mouseup",je),Wn(me.wrapper.ownerDocument,"mousemove",Je),Wn(me.scroller,"dragstart",Ye),Wn(me.scroller,"drop",je),Le||(Ki(gt),he.addNew||hd(ie.doc,fe,null,null,he.extend),Ue&&!Zt||Bt&&vt==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),Je=function(gt){Le=Le||Math.abs(ae.clientX-gt.clientX)+Math.abs(ae.clientY-gt.clientY)>=10},Ye=function(){return Le=!0};Ue&&(me.scroller.draggable=!0),ie.state.draggingText=je,je.copy=!he.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),Xt(me.wrapper.ownerDocument,"mouseup",je),Xt(me.wrapper.ownerDocument,"mousemove",Je),Xt(me.scroller,"dragstart",Ye),Xt(me.scroller,"drop",je),$i(ie),setTimeout(function(){return me.input.focus()},20)}function fa(ie,ae,fe){if(fe=="char")return new Ia(ae,ae);if(fe=="word")return ie.findWordAt(ae);if(fe=="line")return new Ia(Mt(ae.line,0),Ti(ie.doc,Mt(ae.line+1,0)));var he=fe(ie,ae);return new Ia(he.from,he.to)}function Za(ie,ae,fe,he){var me=ie.display,Le=ie.doc;Ki(ae);var je,Je,Ye=Le.sel,gt=Ye.ranges;if(he.addNew&&!he.extend?(Je=Le.sel.contains(fe),Je>-1?je=gt[Je]:je=new Ia(fe,fe)):(je=Le.sel.primary(),Je=Le.sel.primIndex),he.unit=="rectangle")he.addNew||(je=new Ia(fe,fe)),fe=au(ie,ae,!0,!0),Je=-1;else{var $t=fa(ie,fe,he.unit);he.extend?je=ac(je,$t.anchor,$t.head,he.extend):je=$t}he.addNew?Je==-1?(Je=gt.length,Pu(Le,Zl(ie,gt.concat([je]),Je),{scroll:!1,origin:"*mouse"})):gt.length>1&>[Je].empty()&&he.unit=="char"&&!he.extend?(Pu(Le,Zl(ie,gt.slice(0,Je).concat(gt.slice(Je+1)),0),{scroll:!1,origin:"*mouse"}),Ye=Le.sel):qu(Le,Je,je,vn):(Je=0,Pu(Le,new tu([je],0),vn),Ye=Le.sel);var wt=fe;function Kn(or){if(Ft(wt,or)!=0)if(wt=or,he.unit=="rectangle"){for(var vr=[],Wr=ie.options.tabSize,Er=nt(ki(Le,fe.line).text,fe.ch,Wr),ea=nt(ki(Le,or.line).text,or.ch,Wr),ws=Math.min(Er,ea),Ml=Math.max(Er,ea),us=Math.min(fe.line,or.line),wl=Math.min(ie.lastLine(),Math.max(fe.line,or.line));us<=wl;us++){var Hs=ki(Le,us).text,$s=Si(Hs,ws,Wr);ws==Ml?vr.push(new Ia(Mt(us,$s),Mt(us,$s))):Hs.length>$s&&vr.push(new Ia(Mt(us,$s),Mt(us,Si(Hs,Ml,Wr))))}vr.length||vr.push(new Ia(fe,fe)),Pu(Le,Zl(ie,Ye.ranges.slice(0,Je).concat(vr),Je),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(or)}else{var wu=je,rs=fa(ie,or,he.unit),Fs=wu.anchor,gs;Ft(rs.anchor,Fs)>0?(gs=rs.head,Fs=Ri(wu.from(),rs.anchor)):(gs=rs.anchor,Fs=Ii(wu.to(),rs.head));var dl=Ye.ranges.slice(0);dl[Je]=Eo(ie,new Ia(Ti(Le,Fs),gs)),Pu(Le,Zl(ie,dl,Je),vn)}}var Nn=me.wrapper.getBoundingClientRect(),Zi=0;function Xi(or){var vr=++Zi,Wr=au(ie,or,!0,he.unit=="rectangle");if(Wr)if(Ft(Wr,wt)!=0){ie.curOp.focus=Yt(),Kn(Wr);var Er=Un(me,Le);(Wr.line>=Er.to||Wr.line<Er.from)&&setTimeout(Bs(ie,function(){Zi==vr&&Xi(or)}),150)}else{var ea=or.clientY<Nn.top?-20:or.clientY>Nn.bottom?20:0;ea&&setTimeout(Bs(ie,function(){Zi==vr&&(me.scroller.scrollTop+=ea,Xi(or))}),50)}}function Rt(or){ie.state.selectingText=!1,Zi=1/0,or&&(Ki(or),me.input.focus()),Wn(me.wrapper.ownerDocument,"mousemove",ii),Wn(me.wrapper.ownerDocument,"mouseup",Ji),Le.history.lastSelOrigin=null}var ii=Bs(ie,function(or){or.buttons===0||!Oo(or)?Rt(or):Xi(or)}),Ji=Bs(ie,Rt);ie.state.selectingText=Ji,Xt(me.wrapper.ownerDocument,"mousemove",ii),Xt(me.wrapper.ownerDocument,"mouseup",Ji)}function Eo(ie,ae){var fe=ae.anchor,he=ae.head,me=ki(ie.doc,fe.line);if(Ft(fe,he)==0&&fe.sticky==he.sticky)return ae;var Le=Gn(me);if(!Le)return ae;var je=pn(Le,fe.ch,fe.sticky),Je=Le[je];if(Je.from!=fe.ch&&Je.to!=fe.ch)return ae;var Ye=je+(Je.from==fe.ch==(Je.level!=1)?0:1);if(Ye==0||Ye==Le.length)return ae;var gt;if(he.line!=fe.line)gt=(he.line-fe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var $t=pn(Le,he.ch,he.sticky),wt=$t-je||(he.ch-fe.ch)*(Je.level==1?-1:1);$t==Ye-1||$t==Ye?gt=wt<0:gt=wt>0}var Kn=Le[Ye+(gt?-1:0)],Nn=gt==(Kn.level==1),Zi=Nn?Kn.from:Kn.to,Xi=Nn?"after":"before";return fe.ch==Zi&&fe.sticky==Xi?ae:new Ia(new Mt(fe.line,Zi,Xi),he)}function Rr(ie,ae,fe,he){var me,Le;if(ae.touches)me=ae.touches[0].clientX,Le=ae.touches[0].clientY;else try{me=ae.clientX,Le=ae.clientY}catch(Kn){return!1}if(me>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;he&&Ki(ae);var je=ie.display,Je=je.lineDiv.getBoundingClientRect();if(Le>Je.bottom||!On(ie,fe))return ur(ae);Le-=Je.top-je.viewOffset;for(var Ye=0;Ye<ie.display.gutterSpecs.length;++Ye){var gt=je.gutters.childNodes[Ye];if(gt&>.getBoundingClientRect().right>=me){var $t=Di(ie.doc,Le),wt=ie.display.gutterSpecs[Ye];return bn(ie,fe,ie,$t,wt.className,ae),ur(ae)}}}function qo(ie,ae){return Rr(ie,ae,"gutterClick",!0)}function Ka(ie,ae){xs(ie.display,ae)||Qs(ie,ae)||Dn(ie,ae,"contextmenu")||Me||ie.display.input.onContextMenu(ae)}function Qs(ie,ae){return On(ie,"gutterContextMenu")?Rr(ie,ae,"gutterContextMenu",!1):!1}function Sc(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hh(ie)}var Xl={toString:function(){return"CodeMirror.Init"}},sc={},Jl={};function nd(ie){var ae=ie.optionHandlers;function fe(he,me,Le,je){ie.defaults[he]=me,Le&&(ae[he]=je?function(Je,Ye,gt){gt!=Xl&&Le(Je,Ye,gt)}:Le)}ie.defineOption=fe,ie.Init=Xl,fe("value","",function(he,me){return he.setValue(me)},!0),fe("mode",null,function(he,me){he.doc.modeOption=me,ha(he)},!0),fe("indentUnit",2,ha,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(he){Ps(he),hh(he),tl(he)},!0),fe("lineSeparator",null,function(he,me){if(he.doc.lineSep=me,!!me){var Le=[],je=he.doc.first;he.doc.iter(function(Ye){for(var gt=0;;){var $t=Ye.text.indexOf(me,gt);if($t==-1)break;gt=$t+me.length,Le.push(Mt(je,$t))}je++});for(var Je=Le.length-1;Je>=0;Je--)Hc(he.doc,me,Le[Je],Mt(Le[Je].line,Le[Je].ch+me.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(he,me,Le){he.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),Le!=Xl&&he.refresh()}),fe("specialCharPlaceholder",Ss,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){Sc(he),wa(he)},!0),fe("keyMap","default",function(he,me,Le){var je=xa(me),Je=Le!=Xl&&xa(Le);Je&&Je.detach&&Je.detach(he,je),je.attach&&je.attach(he,Je||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,vs,!0),fe("gutters",[],function(he,me){he.display.gutterSpecs=Ns(me,he.options.lineNumbers),wa(he)},!0),fe("fixedGutter",!0,function(he,me){he.display.gutters.style.left=me?tf(he.display)+"px":"0",he.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(he){return Ga(he)},!0),fe("scrollbarStyle","native",function(he){_s(he),Ga(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),wa(he)},!0),fe("firstLineNumber",1,wa,!0),fe("lineNumberFormatter",function(he){return he},wa,!0),fe("showCursorWhenSelecting",!1,jt,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(he,me){me=="nocursor"&&(Gi(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,mr),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,jt,!0),fe("singleCursorHeightPerLine",!0,jt,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,Ps,!0),fe("addModeClass",!1,Ps,!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,Ps,!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 mr(ie,ae,fe){var he=fe&&fe!=Xl;if(!ae!=!he){var me=ie.display.dragFunctions,Le=ae?Xt:Wn;Le(ie.display.scroller,"dragstart",me.start),Le(ie.display.scroller,"dragenter",me.enter),Le(ie.display.scroller,"dragover",me.over),Le(ie.display.scroller,"dragleave",me.leave),Le(ie.display.scroller,"drop",me.drop)}}function vs(ie){ie.options.lineWrapping?(hn(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(st(ie.display.wrapper,"CodeMirror-wrap"),Xa(ie)),Zo(ie),tl(ie),hh(ie),setTimeout(function(){return Ga(ie)},100)}function Aa(ie,ae){var fe=this;if(!(this instanceof Aa))return new Aa(ie,ae);this.options=ae=ae?di(ae):{},di(sc,ae,!1);var he=ae.value;typeof he=="string"?he=new xi(he,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(he.modeOption=ae.mode),this.doc=he;var me=new Aa.inputStyles[ae.inputStyle](this),Le=this.display=new gc(ie,he,me,ae);Le.wrapper.CodeMirror=this,Sc(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_s(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 ze,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Le.input.focus(),Bt&&vt<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),qs(this),So(),zs(this),this.curOp.forceUpdate=!0,pc(this,he),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&mi(fe)},20):Gi(this);for(var je in Jl)Jl.hasOwnProperty(je)&&Jl[je](this,ae[je],Xl);xl(this),ae.finishInit&&ae.finishInit(this);for(var Je=0;Je<Uu.length;++Je)Uu[Je](this);vl(this),Ue&&ae.lineWrapping&&getComputedStyle(Le.lineDiv).textRendering=="optimizelegibility"&&(Le.lineDiv.style.textRendering="auto")}Aa.defaults=sc,Aa.optionHandlers=Jl;function qs(ie){var ae=ie.display;Xt(ae.scroller,"mousedown",Bs(ie,Ro)),Bt&&vt<11?Xt(ae.scroller,"dblclick",Bs(ie,function(Ye){if(!Dn(ie,Ye)){var gt=au(ie,Ye);if(!(!gt||qo(ie,Ye)||xs(ie.display,Ye))){Ki(Ye);var $t=ie.findWordAt(gt);hd(ie.doc,$t.anchor,$t.head)}}})):Xt(ae.scroller,"dblclick",function(Ye){return Dn(ie,Ye)||Ki(Ye)}),Xt(ae.scroller,"contextmenu",function(Ye){return Ka(ie,Ye)}),Xt(ae.input.getField(),"contextmenu",function(Ye){ae.scroller.contains(Ye.target)||Ka(ie,Ye)});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 Le(Ye){if(Ye.touches.length!=1)return!1;var gt=Ye.touches[0];return gt.radiusX<=1&>.radiusY<=1}function je(Ye,gt){if(gt.left==null)return!0;var $t=gt.left-Ye.left,wt=gt.top-Ye.top;return $t*$t+wt*wt>20*20}Xt(ae.scroller,"touchstart",function(Ye){if(!Dn(ie,Ye)&&!Le(Ye)&&!qo(ie,Ye)){ae.input.ensurePolled(),clearTimeout(fe);var gt=+new Date;ae.activeTouch={start:gt,moved:!1,prev:gt-he.end<=300?he:null},Ye.touches.length==1&&(ae.activeTouch.left=Ye.touches[0].pageX,ae.activeTouch.top=Ye.touches[0].pageY)}}),Xt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),Xt(ae.scroller,"touchend",function(Ye){var gt=ae.activeTouch;if(gt&&!xs(ae,Ye)&>.left!=null&&!gt.moved&&new Date-gt.start<300){var $t=ie.coordsChar(ae.activeTouch,"page"),wt;!gt.prev||je(gt,gt.prev)?wt=new Ia($t,$t):!gt.prev.prev||je(gt,gt.prev.prev)?wt=ie.findWordAt($t):wt=new Ia(Mt($t.line,0),Ti(ie.doc,Mt($t.line+1,0))),ie.setSelection(wt.anchor,wt.head),ie.focus(),Ki(Ye)}me()}),Xt(ae.scroller,"touchcancel",me),Xt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Io(ie,ae.scroller.scrollTop),$a(ie,ae.scroller.scrollLeft,!0),bn(ie,"scroll",ie))}),Xt(ae.scroller,"mousewheel",function(Ye){return cl(ie,Ye)}),Xt(ae.scroller,"DOMMouseScroll",function(Ye){return cl(ie,Ye)}),Xt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(Ye){Dn(ie,Ye)||lo(Ye)},over:function(Ye){Dn(ie,Ye)||(Po(ie,Ye),lo(Ye))},start:function(Ye){return Yr(ie,Ye)},drop:Bs(ie,Fi),leave:function(Ye){Dn(ie,Ye)||kr(ie)}};var Je=ae.input.getField();Xt(Je,"keyup",function(Ye){return Xs.call(ie,Ye)}),Xt(Je,"keydown",Bs(ie,fs)),Xt(Je,"keypress",Bs(ie,Os)),Xt(Je,"focus",function(Ye){return mi(ie,Ye)}),Xt(Je,"blur",function(Ye){return Gi(ie,Ye)})}var Uu=[];Aa.defineInitHook=function(ie){return Uu.push(ie)};function Zs(ie,ae,fe,he){var me=ie.doc,Le;fe==null&&(fe="add"),fe=="smart"&&(me.mode.indent?Le=Kr(ie,ae).state:fe="prev");var je=ie.options.tabSize,Je=ki(me,ae),Ye=nt(Je.text,null,je);Je.stateAfter&&(Je.stateAfter=null);var gt=Je.text.match(/^\s*/)[0],$t;if(!he&&!/\S/.test(Je.text))$t=0,fe="not";else if(fe=="smart"&&($t=me.mode.indent(Le,Je.text.slice(gt.length),Je.text),$t==ti||$t>150)){if(!he)return;fe="prev"}fe=="prev"?ae>me.first?$t=nt(ki(me,ae-1).text,null,je):$t=0:fe=="add"?$t=Ye+ie.options.indentUnit:fe=="subtract"?$t=Ye-ie.options.indentUnit:typeof fe=="number"&&($t=Ye+fe),$t=Math.max(0,$t);var wt="",Kn=0;if(ie.options.indentWithTabs)for(var Nn=Math.floor($t/je);Nn;--Nn)Kn+=je,wt+=" ";if(Kn<$t&&(wt+=Mi($t-Kn)),wt!=gt)return Hc(me,wt,Mt(ae,0),Mt(ae,gt.length),"+input"),Je.stateAfter=null,!0;for(var Zi=0;Zi<me.sel.ranges.length;Zi++){var Xi=me.sel.ranges[Zi];if(Xi.head.line==ae&&Xi.head.ch<gt.length){var Rt=Mt(ae,gt.length);qu(me,Zi,new Ia(Rt,Rt));break}}}var ru=null;function gd(ie){ru=ie}function Vd(ie,ae,fe,he,me){var Le=ie.doc;ie.display.shift=!1,he||(he=Le.sel);var je=+new Date-200,Je=me=="paste"||ie.state.pasteIncoming>je,Ye=Nr(ae),gt=null;if(Je&&he.ranges.length>1)if(ru&&ru.text.join(`
|
|
`)==ae){if(he.ranges.length%ru.text.length==0){gt=[];for(var $t=0;$t<ru.text.length;$t++)gt.push(Le.splitLines(ru.text[$t]))}}else Ye.length==he.ranges.length&&ie.options.pasteLinesPerSelection&&(gt=ht(Ye,function(ii){return[ii]}));for(var wt=ie.curOp.updateInput,Kn=he.ranges.length-1;Kn>=0;Kn--){var Nn=he.ranges[Kn],Zi=Nn.from(),Xi=Nn.to();Nn.empty()&&(fe&&fe>0?Zi=Mt(Zi.line,Zi.ch-fe):ie.state.overwrite&&!Je?Xi=Mt(Xi.line,Math.min(ki(Le,Xi.line).text.length,Xi.ch+pt(Ye).length)):Je&&ru&&ru.lineWise&&ru.text.join(`
|
|
`)==Ye.join(`
|
|
`)&&(Zi=Xi=Mt(Zi.line,0)));var Rt={from:Zi,to:Xi,text:gt?gt[Kn%gt.length]:Ye,origin:me||(Je?"paste":ie.state.cutIncoming>je?"cut":"+input")};ec(ie.doc,Rt),oo(ie,"inputRead",ie,Rt)}ae&&!Je&&bu(ie,ae),vo(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=wt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function of(ie,ae){var fe=ie.clipboardData&&ie.clipboardData.getData("Text");if(fe)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&Pa(ae,function(){return Vd(ae,fe,0,null,"paste")}),!0}function bu(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 Le=ie.getModeAt(me.head),je=!1;if(Le.electricChars){for(var Je=0;Je<Le.electricChars.length;Je++)if(ae.indexOf(Le.electricChars.charAt(Je))>-1){je=Zs(ie,me.head.line,"smart");break}}else Le.electricInput&&Le.electricInput.test(ki(ie.doc,me.head.line).text.slice(0,me.head.ch))&&(je=Zs(ie,me.head.line,"smart"));je&&oo(ie,"electricInput",ie,me.head.line)}}}function Ef(ie){for(var ae=[],fe=[],he=0;he<ie.doc.sel.ranges.length;he++){var me=ie.doc.sel.ranges[he].head.line,Le={anchor:Mt(me,0),head:Mt(me+1,0)};fe.push(Le),ae.push(ie.getRange(Le.anchor,Le.head))}return{text:ae,ranges:fe}}function ng(ie,ae,fe,he){ie.setAttribute("autocorrect",fe?"":"off"),ie.setAttribute("autocapitalize",he?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Nf(){var ie=ut("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=ut("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ue?ie.style.width="1000px":ie.setAttribute("wrap","off"),Te&&(ie.style.border="1px solid black"),ng(ie),ae}function nh(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 Le=this.options,je=Le[he];Le[he]==me&&he!="mode"||(Le[he]=me,ae.hasOwnProperty(he)&&Bs(this,ae[he])(this,me,je),bn(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"](xa(he))},removeKeyMap:function(he){for(var me=this.state.keyMaps,Le=0;Le<me.length;++Le)if(me[Le]==he||me[Le].name==he)return me.splice(Le,1),!0},addOverlay:As(function(he,me){var Le=he.token?he:ie.getMode(this.options,he);if(Le.startState)throw new Error("Overlays may not be stateful.");dn(this.state.overlays,{mode:Le,modeSpec:he,opaque:me&&me.opaque,priority:me&&me.priority||0},function(je){return je.priority}),this.state.modeGen++,tl(this)}),removeOverlay:As(function(he){for(var me=this.state.overlays,Le=0;Le<me.length;++Le){var je=me[Le].modeSpec;if(je==he||typeof he=="string"&&je.name==he){me.splice(Le,1),this.state.modeGen++,tl(this);return}}}),indentLine:As(function(he,me,Le){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),En(this.doc,he)&&Zs(this,he,me,Le)}),indentSelection:As(function(he){for(var me=this.doc.sel.ranges,Le=-1,je=0;je<me.length;je++){var Je=me[je];if(Je.empty())Je.head.line>Le&&(Zs(this,Je.head.line,he,!0),Le=Je.head.line,je==this.doc.sel.primIndex&&vo(this));else{var Ye=Je.from(),gt=Je.to(),$t=Math.max(Le,Ye.line);Le=Math.min(this.lastLine(),gt.line-(gt.ch?0:1))+1;for(var wt=$t;wt<Le;++wt)Zs(this,wt,he);var Kn=this.doc.sel.ranges;Ye.ch==0&&me.length==Kn.length&&Kn[je].from().ch>0&&qu(this.doc,je,new Ia(Ye,Kn[je].to()),nn)}}}),getTokenAt:function(he,me){return zn(this,he,me)},getLineTokens:function(he,me){return zn(this,Mt(he),me,!0)},getTokenTypeAt:function(he){he=Ti(this.doc,he);var me=co(this,ki(this.doc,he.line)),Le=0,je=(me.length-1)/2,Je=he.ch,Ye;if(Je==0)Ye=me[2];else for(;;){var gt=Le+je>>1;if((gt?me[gt*2-1]:0)>=Je)je=gt;else if(me[gt*2+1]<Je)Le=gt+1;else{Ye=me[gt*2+2];break}}var $t=Ye?Ye.indexOf("overlay "):-1;return $t<0?Ye:$t==0?null:Ye.slice(0,$t-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 Le=[];if(!fe.hasOwnProperty(me))return Le;var je=fe[me],Je=this.getModeAt(he);if(typeof Je[me]=="string")je[Je[me]]&&Le.push(je[Je[me]]);else if(Je[me])for(var Ye=0;Ye<Je[me].length;Ye++){var gt=je[Je[me][Ye]];gt&&Le.push(gt)}else Je.helperType&&je[Je.helperType]?Le.push(je[Je.helperType]):je[Je.name]&&Le.push(je[Je.name]);for(var $t=0;$t<je._global.length;$t++){var wt=je._global[$t];wt.pred(Je,this)&&gn(Le,wt.val)==-1&&Le.push(wt.val)}return Le},getStateAfter:function(he,me){var Le=this.doc;return he=ai(Le,he==null?Le.first+Le.size-1:he),Kr(this,he+1,me).state},cursorCoords:function(he,me){var Le,je=this.doc.sel.primary();return he==null?Le=je.head:typeof he=="object"?Le=Ti(this.doc,he):Le=he?je.from():je.to(),pl(this,Le,me||"page")},charCoords:function(he,me){return Qd(this,Ti(this.doc,he),me||"page")},coordsChar:function(he,me){return he=Oh(this,he,me||"page"),Rd(this,he.left,he.top)},lineAtHeight:function(he,me){return he=Oh(this,{top:he,left:0},me||"page").top,Di(this.doc,he+this.display.viewOffset)},heightAtLine:function(he,me,Le){var je=!1,Je;if(typeof he=="number"){var Ye=this.doc.first+this.doc.size-1;he<this.doc.first?he=this.doc.first:he>Ye&&(he=Ye,je=!0),Je=ki(this.doc,he)}else Je=he;return ou(this,Je,{top:0,left:0},me||"page",Le||je).top+(je?this.doc.height-Ba(Je):0)},defaultTextHeight:function(){return hc(this.display)},defaultCharWidth:function(){return Au(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(he,me,Le,je,Je){var Ye=this.display;he=pl(this,Ti(this.doc,he));var gt=he.bottom,$t=he.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),Ye.sizer.appendChild(me),je=="over")gt=he.top;else if(je=="above"||je=="near"){var wt=Math.max(Ye.wrapper.clientHeight,this.doc.height),Kn=Math.max(Ye.sizer.clientWidth,Ye.lineSpace.clientWidth);(je=="above"||he.bottom+me.offsetHeight>wt)&&he.top>me.offsetHeight?gt=he.top-me.offsetHeight:he.bottom+me.offsetHeight<=wt&&(gt=he.bottom),$t+me.offsetWidth>Kn&&($t=Kn-me.offsetWidth)}me.style.top=gt+"px",me.style.left=me.style.right="",Je=="right"?($t=Ye.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):(Je=="left"?$t=0:Je=="middle"&&($t=(Ye.sizer.clientWidth-me.offsetWidth)/2),me.style.left=$t+"px"),Le&&so(this,{left:$t,top:gt,right:$t+me.offsetWidth,bottom:gt+me.offsetHeight})},triggerOnKeyDown:As(fs),triggerOnKeyPress:As(Os),triggerOnKeyUp:Xs,triggerOnMouseDown:As(Ro),execCommand:function(he){if(ms.hasOwnProperty(he))return ms[he].call(null,this)},triggerElectric:As(function(he){bu(this,he)}),findPosH:function(he,me,Le,je){var Je=1;me<0&&(Je=-1,me=-me);for(var Ye=Ti(this.doc,he),gt=0;gt<me&&(Ye=af(this.doc,Ye,Je,Le,je),!Ye.hitSide);++gt);return Ye},moveH:As(function(he,me){var Le=this;this.extendSelectionsBy(function(je){return Le.display.shift||Le.doc.extend||je.empty()?af(Le.doc,je.head,he,me,Le.options.rtlMoveVisually):he<0?je.from():je.to()},An)}),deleteH:As(function(he,me){var Le=this.doc.sel,je=this.doc;Le.somethingSelected()?je.replaceSelection("",null,"+delete"):$n(this,function(Je){var Ye=af(je,Je.head,he,me,!1);return he<0?{from:Ye,to:Je.head}:{from:Je.head,to:Ye}})}),findPosV:function(he,me,Le,je){var Je=1,Ye=je;me<0&&(Je=-1,me=-me);for(var gt=Ti(this.doc,he),$t=0;$t<me;++$t){var wt=pl(this,gt,"div");if(Ye==null?Ye=wt.left:wt.left=Ye,gt=ih(this,wt,Je,Le),gt.hitSide)break}return gt},moveV:As(function(he,me){var Le=this,je=this.doc,Je=[],Ye=!this.display.shift&&!je.extend&&je.sel.somethingSelected();if(je.extendSelectionsBy(function($t){if(Ye)return he<0?$t.from():$t.to();var wt=pl(Le,$t.head,"div");$t.goalColumn!=null&&(wt.left=$t.goalColumn),Je.push(wt.left);var Kn=ih(Le,wt,he,me);return me=="page"&&$t==je.sel.primary()&&fo(Le,Qd(Le,Kn,"div").top-wt.top),Kn},An),Je.length)for(var gt=0;gt<je.sel.ranges.length;gt++)je.sel.ranges[gt].goalColumn=Je[gt]}),findWordAt:function(he){var me=this.doc,Le=ki(me,he.line).text,je=he.ch,Je=he.ch;if(Le){var Ye=this.getHelper(he,"wordChars");(he.sticky=="before"||Je==Le.length)&&je?--je:++Je;for(var gt=Le.charAt(je),$t=Ke(gt,Ye)?function(wt){return Ke(wt,Ye)}:/\s/.test(gt)?function(wt){return/\s/.test(wt)}:function(wt){return!/\s/.test(wt)&&!Ke(wt)};je>0&&$t(Le.charAt(je-1));)--je;for(;Je<Le.length&&$t(Le.charAt(Je));)++Je}return new Ia(Mt(he.line,je),Mt(he.line,Je))},toggleOverwrite:function(he){he!=null&&he==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?hn(this.display.cursorDiv,"CodeMirror-overwrite"):st(this.display.cursorDiv,"CodeMirror-overwrite"),bn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Yt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:As(function(he,me){uo(this,he,me)}),getScrollInfo:function(){var he=this.display.scroller;return{left:he.scrollLeft,top:he.scrollTop,height:he.scrollHeight-Tl(this)-this.display.barHeight,width:he.scrollWidth-Tl(this)-this.display.barWidth,clientHeight:Yu(this),clientWidth:Gl(this)}},scrollIntoView:As(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:Mt(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?tr(this,he):ia(this,he.from,he.to,he.margin)}),setSize:As(function(he,me){var Le=this,je=function(Ye){return typeof Ye=="number"||/^\d+$/.test(String(Ye))?Ye+"px":Ye};he!=null&&(this.display.wrapper.style.width=je(he)),me!=null&&(this.display.wrapper.style.height=je(me)),this.options.lineWrapping&&wd(this);var Je=this.display.viewFrom;this.doc.iter(Je,this.display.viewTo,function(Ye){if(Ye.widgets){for(var gt=0;gt<Ye.widgets.length;gt++)if(Ye.widgets[gt].noHScroll){Oa(Le,Je,"widget");break}}++Je}),this.curOp.forceUpdate=!0,bn(this,"refresh",this)}),operation:function(he){return Pa(this,he)},startOperation:function(){return zs(this)},endOperation:function(){return vl(this)},refresh:As(function(){var he=this.display.cachedTextHeight;tl(this),this.curOp.forceUpdate=!0,hh(this),uo(this,this.doc.scrollLeft,this.doc.scrollTop),$l(this.display),(he==null||Math.abs(he-hc(this.display))>.5||this.options.lineWrapping)&&Zo(this),bn(this,"refresh",this)}),swapDoc:As(function(he){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),pc(this,he),hh(this),this.display.input.reset(),uo(this,he.scrollLeft,he.scrollTop),this.curOp.forceScroll=!0,oo(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}},Jn(ie),ie.registerHelper=function(he,me,Le){fe.hasOwnProperty(he)||(fe[he]=ie[he]={_global:[]}),fe[he][me]=Le},ie.registerGlobalHelper=function(he,me,Le,je){ie.registerHelper(he,me,je),fe[he]._global.push({pred:Le,val:je})}}function af(ie,ae,fe,he,me){var Le=ae,je=fe,Je=ki(ie,ae.line),Ye=me&&ie.direction=="rtl"?-fe:fe;function gt(){var Ji=ae.line+Ye;return Ji<ie.first||Ji>=ie.first+ie.size?!1:(ae=new Mt(Ji,ae.ch,ae.sticky),Je=ki(ie,Ji))}function $t(Ji){var or;if(he=="codepoint"){var vr=Je.text.charCodeAt(ae.ch+(he>0?0:-1));isNaN(vr)?or=null:or=new Mt(ae.line,Math.max(0,Math.min(Je.text.length,ae.ch+fe*(vr>=55296&&vr<56320?2:1))),-fe)}else me?or=Qo(ie.cm,Je,ae,fe):or=Yo(Je,ae,fe);if(or==null)if(!Ji&>())ae=Jo(me,ie.cm,Je,ae.line,Ye);else return!1;else ae=or;return!0}if(he=="char"||he=="codepoint")$t();else if(he=="column")$t(!0);else if(he=="word"||he=="group")for(var wt=null,Kn=he=="group",Nn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Zi=!0;!(fe<0&&!$t(!Zi));Zi=!1){var Xi=Je.text.charAt(ae.ch)||`
|
|
`,Rt=Ke(Xi,Nn)?"w":Kn&&Xi==`
|
|
`?"n":!Kn||/\s/.test(Xi)?null:"p";if(Kn&&!Zi&&!Rt&&(Rt="s"),wt&&wt!=Rt){fe<0&&(fe=1,$t(),ae.sticky="after");break}if(Rt&&(wt=Rt),fe>0&&!$t(!Zi))break}var ii=eh(ie,ae,Le,je,!0);return sn(Le,ii)&&(ii.hitSide=!0),ii}function ih(ie,ae,fe,he){var me=ie.doc,Le=ae.left,je;if(he=="page"){var Je=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ye=Math.max(Je-.5*hc(ie.display),3);je=(fe>0?ae.bottom:ae.top)+fe*Ye}else he=="line"&&(je=fe>0?ae.bottom+3:ae.top-3);for(var gt;gt=Rd(ie,Le,je),!!gt.outside;){if(fe<0?je<=0:je>=me.height){gt.hitSide=!0;break}je+=fe*5}return gt}var Js=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ze,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Js.prototype.init=function(ie){var ae=this,fe=this,he=fe.cm,me=fe.div=ie.lineDiv;ng(me,he.options.spellcheck,he.options.autocorrect,he.options.autocapitalize);function Le(Je){for(var Ye=Je.target;Ye;Ye=Ye.parentNode){if(Ye==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ye.className))break}return!1}Xt(me,"paste",function(Je){!Le(Je)||Dn(he,Je)||of(Je,he)||vt<=11&&setTimeout(Bs(he,function(){return ae.updateFromDOM()}),20)}),Xt(me,"compositionstart",function(Je){ae.composing={data:Je.data,done:!1}}),Xt(me,"compositionupdate",function(Je){ae.composing||(ae.composing={data:Je.data,done:!1})}),Xt(me,"compositionend",function(Je){ae.composing&&(Je.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),Xt(me,"touchstart",function(){return fe.forceCompositionEnd()}),Xt(me,"input",function(){ae.composing||ae.readFromDOMSoon()});function je(Je){if(!(!Le(Je)||Dn(he,Je))){if(he.somethingSelected())gd({lineWise:!1,text:he.getSelections()}),Je.type=="cut"&&he.replaceSelection("",null,"cut");else if(he.options.lineWiseCopyCut){var Ye=Ef(he);gd({lineWise:!0,text:Ye.text}),Je.type=="cut"&&he.operation(function(){he.setSelections(Ye.ranges,0,nn),he.replaceSelection("",null,"cut")})}else return;if(Je.clipboardData){Je.clipboardData.clearData();var gt=ru.text.join(`
|
|
`);if(Je.clipboardData.setData("Text",gt),Je.clipboardData.getData("Text")==gt){Je.preventDefault();return}}var $t=Nf(),wt=$t.firstChild;he.display.lineSpace.insertBefore($t,he.display.lineSpace.firstChild),wt.value=ru.text.join(`
|
|
`);var Kn=document.activeElement;ui(wt),setTimeout(function(){he.display.lineSpace.removeChild($t),Kn.focus(),Kn==me&&fe.showPrimarySelection()},50)}}Xt(me,"copy",je),Xt(me,"cut",je)},Js.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var ie=Gt(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Js.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.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 Le=yh(ae,ie.anchorNode,ie.anchorOffset),je=yh(ae,ie.focusNode,ie.focusOffset);if(!(Le&&!Le.bad&&je&&!je.bad&&Ft(Ri(Le,je),he)==0&&Ft(Ii(Le,je),me)==0)){var Je=ae.display.view,Ye=he.line>=ae.display.viewFrom&&zh(ae,he)||{node:Je[0].measure.map[2],offset:0},gt=me.line<ae.display.viewTo&&zh(ae,me);if(!gt){var $t=Je[Je.length-1].measure,wt=$t.maps?$t.maps[$t.maps.length-1]:$t.map;gt={node:wt[wt.length-1],offset:wt[wt.length-2]-wt[wt.length-3]}}if(!Ye||!gt){ie.removeAllRanges();return}var Kn=ie.rangeCount&&ie.getRangeAt(0),Nn;try{Nn=Et(Ye.node,Ye.offset,gt.offset,gt.node)}catch(Zi){}Nn&&(!ue&&ae.state.focused?(ie.collapse(Ye.node,Ye.offset),Nn.collapsed||(ie.removeAllRanges(),ie.addRange(Nn))):(ie.removeAllRanges(),ie.addRange(Nn)),Kn&&ie.anchorNode==null?ie.addRange(Kn):ue&&this.startGracePeriod()),this.rememberSelection()}},Js.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)},Js.prototype.showMultipleSelections=function(ie){xt(this.cm.display.cursorDiv,ie.cursors),xt(this.cm.display.selectionDiv,ie.selection)},Js.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Js.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Tt(this.div,ae)},Js.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Pa(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)},Js.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Js.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&&sf(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=yh(ae,ie.anchorNode,ie.anchorOffset),he=yh(ae,ie.focusNode,ie.focusOffset);fe&&he&&Pa(ae,function(){Pu(ae.doc,fu(fe,he),nn),(fe.bad||he.bad)&&(ae.curOp.selectionChanged=!0)})}}},Js.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=Mt(he.line-1,ki(ie.doc,he.line-1).length)),me.ch==ki(ie.doc,me.line).text.length&&me.line<ie.lastLine()&&(me=Mt(me.line+1,0)),he.line<ae.viewFrom||me.line>ae.viewTo-1)return!1;var Le,je,Je;he.line==ae.viewFrom||(Le=Xu(ie,he.line))==0?(je=Pt(ae.view[0].line),Je=ae.view[0].node):(je=Pt(ae.view[Le].line),Je=ae.view[Le-1].node.nextSibling);var Ye=Xu(ie,me.line),gt,$t;if(Ye==ae.view.length-1?(gt=ae.viewTo-1,$t=ae.lineDiv.lastChild):(gt=Pt(ae.view[Ye+1].line)-1,$t=ae.view[Ye+1].node.previousSibling),!Je)return!1;for(var wt=ie.doc.splitLines(Vh(ie,Je,$t,je,gt)),Kn=zr(ie.doc,Mt(je,0),Mt(gt,ki(ie.doc,gt).text.length));wt.length>1&&Kn.length>1;)if(pt(wt)==pt(Kn))wt.pop(),Kn.pop(),gt--;else if(wt[0]==Kn[0])wt.shift(),Kn.shift(),je++;else break;for(var Nn=0,Zi=0,Xi=wt[0],Rt=Kn[0],ii=Math.min(Xi.length,Rt.length);Nn<ii&&Xi.charCodeAt(Nn)==Rt.charCodeAt(Nn);)++Nn;for(var Ji=pt(wt),or=pt(Kn),vr=Math.min(Ji.length-(wt.length==1?Nn:0),or.length-(Kn.length==1?Nn:0));Zi<vr&&Ji.charCodeAt(Ji.length-Zi-1)==or.charCodeAt(or.length-Zi-1);)++Zi;if(wt.length==1&&Kn.length==1&&je==he.line)for(;Nn&&Nn>he.ch&&Ji.charCodeAt(Ji.length-Zi-1)==or.charCodeAt(or.length-Zi-1);)Nn--,Zi++;wt[wt.length-1]=Ji.slice(0,Ji.length-Zi).replace(/^\u200b+/,""),wt[0]=wt[0].slice(Nn).replace(/\u200b+$/,"");var Wr=Mt(je,Nn),Er=Mt(gt,Kn.length?pt(Kn).length-Zi:0);if(wt.length>1||wt[0]||Ft(Wr,Er))return Hc(ie.doc,wt,Wr,Er,"+input"),!0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.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))},Js.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Pa(this.cm,function(){return tl(ie.cm)})},Js.prototype.setUneditable=function(ie){ie.contentEditable="false"},Js.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Bs(this.cm,Vd)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Js.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;function zh(ie,ae){var fe=Id(ie,ae.line);if(!fe||fe.hidden)return null;var he=ki(ie.doc,ae.line),me=Jd(fe,he,ae.line),Le=Gn(he,ie.doc.direction),je="left";if(Le){var Je=pn(Le,ae.ch);je=Je%2?"right":"left"}var Ye=Dc(me.map,ae.ch,je);return Ye.offset=Ye.collapse=="right"?Ye.end:Ye.start,Ye}function sf(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function vh(ie,ae){return ae&&(ie.bad=!0),ie}function Vh(ie,ae,fe,he,me){var Le="",je=!1,Je=ie.doc.lineSeparator(),Ye=!1;function gt(Nn){return function(Zi){return Zi.id==Nn}}function $t(){je&&(Le+=Je,Ye&&(Le+=Je),je=Ye=!1)}function wt(Nn){Nn&&($t(),Le+=Nn)}function Kn(Nn){if(Nn.nodeType==1){var Zi=Nn.getAttribute("cm-text");if(Zi){wt(Zi);return}var Xi=Nn.getAttribute("cm-marker"),Rt;if(Xi){var ii=ie.findMarks(Mt(he,0),Mt(me+1,0),gt(+Xi));ii.length&&(Rt=ii[0].find(0))&&wt(zr(ie.doc,Rt.from,Rt.to).join(Je));return}if(Nn.getAttribute("contenteditable")=="false")return;var Ji=/^(pre|div|p|li|table|br)$/i.test(Nn.nodeName);if(!/^br$/i.test(Nn.nodeName)&&Nn.textContent.length==0)return;Ji&&$t();for(var or=0;or<Nn.childNodes.length;or++)Kn(Nn.childNodes[or]);/^(pre|p)$/i.test(Nn.nodeName)&&(Ye=!0),Ji&&(je=!0)}else Nn.nodeType==3&&wt(Nn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Kn(ae),ae!=fe;)ae=ae.nextSibling,Ye=!1;return Le}function yh(ie,ae,fe){var he;if(ae==ie.display.lineDiv){if(he=ie.display.lineDiv.childNodes[fe],!he)return vh(ie.clipPos(Mt(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 Le=ie.display.view[me];if(Le.node==he)return Gh(Le,ae,fe)}}function Gh(ie,ae,fe){var he=ie.text.firstChild,me=!1;if(!ae||!Tt(he,ae))return vh(Mt(Pt(ie.line),0),!0);if(ae==he&&(me=!0,ae=he.childNodes[fe],fe=0,!ae)){var Le=ie.rest?pt(ie.rest):ie.line;return vh(Mt(Pt(Le),Le.text.length),me)}var je=ae.nodeType==3?ae:null,Je=ae;for(!je&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(je=ae.firstChild,fe&&(fe=je.nodeValue.length));Je.parentNode!=he;)Je=Je.parentNode;var Ye=ie.measure,gt=Ye.maps;function $t(Rt,ii,Ji){for(var or=-1;or<(gt?gt.length:0);or++)for(var vr=or<0?Ye.map:gt[or],Wr=0;Wr<vr.length;Wr+=3){var Er=vr[Wr+2];if(Er==Rt||Er==ii){var ea=Pt(or<0?ie.line:ie.rest[or]),ws=vr[Wr]+Ji;return(Ji<0||Er!=Rt)&&(ws=vr[Wr+(Ji?1:0)]),Mt(ea,ws)}}}var wt=$t(je,Je,fe);if(wt)return vh(wt,me);for(var Kn=Je.nextSibling,Nn=je?je.nodeValue.length-fe:0;Kn;Kn=Kn.nextSibling){if(wt=$t(Kn,Kn.firstChild,0),wt)return vh(Mt(wt.line,wt.ch-Nn),me);Nn+=Kn.textContent.length}for(var Zi=Je.previousSibling,Xi=fe;Zi;Zi=Zi.previousSibling){if(wt=$t(Zi,Zi.firstChild,-1),wt)return vh(Mt(wt.line,wt.ch+Xi),me);Xi+=Zi.textContent.length}}var Bu=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ze,this.hasSelection=!1,this.composing=null};Bu.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),Te&&(me.style.width="0px"),Xt(me,"input",function(){Bt&&vt>=9&&ae.hasSelection&&(ae.hasSelection=null),fe.poll()}),Xt(me,"paste",function(je){Dn(he,je)||of(je,he)||(he.state.pasteIncoming=+new Date,fe.fastPoll())});function Le(je){if(!Dn(he,je)){if(he.somethingSelected())gd({lineWise:!1,text:he.getSelections()});else if(he.options.lineWiseCopyCut){var Je=Ef(he);gd({lineWise:!0,text:Je.text}),je.type=="cut"?he.setSelections(Je.ranges,null,nn):(fe.prevInput="",me.value=Je.text.join(`
|
|
`),ui(me))}else return;je.type=="cut"&&(he.state.cutIncoming=+new Date)}}Xt(me,"cut",Le),Xt(me,"copy",Le),Xt(ie.scroller,"paste",function(je){if(!(xs(ie,je)||Dn(he,je))){if(!me.dispatchEvent){he.state.pasteIncoming=+new Date,fe.focus();return}var Je=new Event("paste");Je.clipboardData=je.clipboardData,me.dispatchEvent(Je)}}),Xt(ie.lineSpace,"selectstart",function(je){xs(ie,je)||Ki(je)}),Xt(me,"compositionstart",function(){var je=he.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:je,range:he.markText(je,he.getCursor("to"),{className:"CodeMirror-composing"})}}),Xt(me,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},Bu.prototype.createField=function(ie){this.wrapper=Nf(),this.textarea=this.wrapper.firstChild},Bu.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Bu.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,fe=ie.doc,he=Gt(ie);if(ie.options.moveInputWithCursor){var me=pl(ie,fe.sel.primary().head,"div"),Le=ae.wrapper.getBoundingClientRect(),je=ae.lineDiv.getBoundingClientRect();he.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,me.top+je.top-Le.top)),he.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,me.left+je.left-Le.left))}return he},Bu.prototype.showSelection=function(ie){var ae=this.cm,fe=ae.display;xt(fe.cursorDiv,ie.cursors),xt(fe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Bu.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&&ui(this.textarea),Bt&&vt>=9&&(this.hasSelection=fe)}else ie||(this.prevInput=this.textarea.value="",Bt&&vt>=9&&(this.hasSelection=null))}},Bu.prototype.getField=function(){return this.textarea},Bu.prototype.supportsTouch=function(){return!1},Bu.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Yt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Bu.prototype.blur=function(){this.textarea.blur()},Bu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bu.prototype.receivedFocus=function(){this.slowPoll()},Bu.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Bu.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)},Bu.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(Bt&&vt>=9&&this.hasSelection===me||de&&/[\uf700-\uf7ff]/.test(me))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Le=me.charCodeAt(0);if(Le==8203&&!he&&(he="\u200B"),Le==8666)return this.reset(),this.cm.execCommand("undo")}for(var je=0,Je=Math.min(he.length,me.length);je<Je&&he.charCodeAt(je)==me.charCodeAt(je);)++je;return Pa(ae,function(){Vd(ae,me.slice(je),he.length-je,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},Bu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bu.prototype.onKeyPress=function(){Bt&&vt>=9&&(this.hasSelection=null),this.fastPoll()},Bu.prototype.onContextMenu=function(ie){var ae=this,fe=ae.cm,he=fe.display,me=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Le=au(fe,ie),je=he.scroller.scrollTop;if(!Le||yt)return;var Je=fe.options.resetSelectionOnContextMenu;Je&&fe.doc.sel.contains(Le)==-1&&Bs(fe,Pu)(fe.doc,fu(Le),nn);var Ye=me.style.cssText,gt=ae.wrapper.style.cssText,$t=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(ie.clientY-$t.top-5)+"px; left: "+(ie.clientX-$t.left-5)+`px;
|
|
z-index: 1000; background: `+(Bt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wt;Ue&&(wt=window.scrollY),he.input.focus(),Ue&&window.scrollTo(null,wt),he.input.reset(),fe.somethingSelected()||(me.value=ae.prevInput=" "),ae.contextMenuPending=Nn,he.selForContextMenu=fe.doc.sel,clearTimeout(he.detectingSelectAll);function Kn(){if(me.selectionStart!=null){var Xi=fe.somethingSelected(),Rt="\u200B"+(Xi?me.value:"");me.value="\u21DA",me.value=Rt,ae.prevInput=Xi?"":"\u200B",me.selectionStart=1,me.selectionEnd=Rt.length,he.selForContextMenu=fe.doc.sel}}function Nn(){if(ae.contextMenuPending==Nn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=gt,me.style.cssText=Ye,Bt&&vt<9&&he.scrollbars.setScrollTop(he.scroller.scrollTop=je),me.selectionStart!=null)){(!Bt||Bt&&vt<9)&&Kn();var Xi=0,Rt=function(){he.selForContextMenu==fe.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&ae.prevInput=="\u200B"?Bs(fe,iu)(fe):Xi++<10?he.detectingSelectAll=setTimeout(Rt,500):(he.selForContextMenu=null,he.input.reset())};he.detectingSelectAll=setTimeout(Rt,200)}}if(Bt&&vt>=9&&Kn(),Me){lo(ie);var Zi=function(){Wn(window,"mouseup",Zi),setTimeout(Nn,20)};Xt(window,"mouseup",Zi)}else setTimeout(Nn,50)},Bu.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Bu.prototype.setUneditable=function(){},Bu.prototype.needsContentAttribute=!1;function Bg(ie,ae){if(ae=ae?di(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=Je.getValue()}var me;if(ie.form&&(Xt(ie.form,"submit",he),!ae.leaveSubmitMethodAlone)){var Le=ie.form;me=Le.submit;try{var je=Le.submit=function(){he(),Le.submit=me,Le.submit(),Le.submit=je}}catch(Ye){}}ae.finishInit=function(Ye){Ye.save=he,Ye.getTextArea=function(){return ie},Ye.toTextArea=function(){Ye.toTextArea=isNaN,he(),ie.parentNode.removeChild(Ye.getWrapperElement()),ie.style.display="",ie.form&&(Wn(ie.form,"submit",he),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=me))}},ie.style.display="none";var Je=Aa(function(Ye){return ie.parentNode.insertBefore(Ye,ie.nextSibling)},ae);return Je}function Sh(ie){ie.off=Wn,ie.on=Xt,ie.wheelEventPixels=El,ie.Doc=xi,ie.splitLines=Nr,ie.countColumn=nt,ie.findColumn=Si,ie.isWordChar=Ie,ie.Pass=ti,ie.signal=bn,ie.Line=la,ie.changeEnd=Ll,ie.scrollbarModel=ks,ie.Pos=Mt,ie.cmpPos=Ft,ie.modes=Vi,ie.mimeModes=Wi,ie.resolveMode=nr,ie.getMode=en,ie.modeExtensions=_t,ie.extendMode=zt,ie.copyState=Li,ie.startState=Oi,ie.innerMode=yr,ie.commands=ms,ie.keyMap=Pr,ie.keyName=ca,ie.isModifierKey=Do,ie.lookupKey=Ur,ie.normalizeKeyMap=Mo,ie.StringStream=Zn,ie.SharedTextMarker=lt,ie.TextMarker=Ht,ie.LineWidget=yc,ie.e_preventDefault=Ki,ie.e_stopPropagation=Pi,ie.e_stop=lo,ie.addClass=hn,ie.contains=Tt,ie.rmClass=st,ie.keyNames=ma}nd(Aa),nh(Aa);var bd="iter insert remove copy getEditor constructor".split(" ");for(var lu in xi.prototype)xi.prototype.hasOwnProperty(lu)&&gn(bd,lu)<0&&(Aa.prototype[lu]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(xi.prototype[lu]));return Jn(xi),Aa.inputStyles={textarea:Bu,contenteditable:Js},Aa.defineMode=function(ie){!Aa.defaults.mode&&ie!="null"&&(Aa.defaults.mode=ie),pi.apply(this,arguments)},Aa.defineMIME=qn,Aa.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(ie,ae){Aa.prototype[ie]=ae},Aa.defineDocExtension=function(ie,ae){xi.prototype[ie]=ae},Aa.fromTextArea=Bg,Sh(Aa),Aa.version="5.58.2",Aa})},25419:function(qt,kn,Ee){(function(ue){ue(Ee(89780),Ee(15525),Ee(98101))})(function(ue){"use strict";ue.defineMode("markdown",function(et,Lt){var Nt=ue.getMode(et,"text/html"),Bt=Nt.name=="null";function vt(nt){if(ue.findModeByName){var ze=ue.findModeByName(nt);ze&&(nt=ze.mime||ze.mimes[0])}var gn=ue.getMode(et,nt);return gn.name=="null"?null:gn}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 Ue={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 bt in Ue)Ue.hasOwnProperty(bt)&&Lt.tokenTypeOverrides[bt]&&(Ue[bt]=Lt.tokenTypeOverrides[bt]);var Ct=/^([*\-_])(?:\s*\1){2,}\s*$/,yt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Zt=/^\[(x| )\](?=\s)/i,Ot=Lt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ut=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Te=/^[^#!\[\]*_\\<>` "'(~:]+/,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(nt,ze,gn){return ze.f=ze.inline=gn,gn(nt,ze)}function Se(nt,ze,gn){return ze.f=ze.block=gn,gn(nt,ze)}function Ae(nt){return!nt||!/\S/.test(nt.string)}function Me(nt){if(nt.linkTitle=!1,nt.linkHref=!1,nt.linkText=!1,nt.em=!1,nt.strong=!1,nt.strikethrough=!1,nt.quote=0,nt.indentedCode=!1,nt.f==st){var ze=Bt;if(!ze){var gn=ue.innerMode(Nt,nt.htmlState);ze=gn.mode.name=="xml"&&gn.state.tagStart===null&&!gn.state.context&&gn.state.tokenize.isInText}ze&&(nt.f=It,nt.block=ke,nt.htmlState=null)}return nt.trailingSpace=0,nt.trailingSpaceNewLine=!1,nt.prevLine=nt.thisLine,nt.thisLine={stream:null},null}function ke(nt,ze){var gn=nt.column()===ze.indentation,Xn=Ae(ze.prevLine.stream),ti=ze.indentedCode,nn=ze.prevLine.hr,vn=ze.list!==!1,An=(ze.listStack[ze.listStack.length-1]||0)+3;ze.indentedCode=!1;var Si=ze.indentation;if(ze.indentationDiff===null&&(ze.indentationDiff=ze.indentation,vn)){for(ze.list=null;Si<ze.listStack[ze.listStack.length-1];)ze.listStack.pop(),ze.listStack.length?ze.indentation=ze.listStack[ze.listStack.length-1]:ze.list=!1;ze.list!==!1&&(ze.indentationDiff=Si-ze.listStack[ze.listStack.length-1])}var Vn=!Xn&&!nn&&!ze.prevLine.header&&(!vn||!ti)&&!ze.prevLine.fencedCodeEnd,Mi=(ze.list===!1||nn||Xn)&&ze.indentation<=An&&nt.match(Ct),pt=null;if(ze.indentationDiff>=4&&(ti||ze.prevLine.fencedCodeEnd||ze.prevLine.header||Xn))return nt.skipToEnd(),ze.indentedCode=!0,Ue.code;if(nt.eatSpace())return null;if(gn&&ze.indentation<=An&&(pt=nt.match(Ot))&&pt[1].length<=6)return ze.quote=0,ze.header=pt[1].length,ze.thisLine.header=!0,Lt.highlightFormatting&&(ze.formatting="header"),ze.f=ze.inline,xt(ze);if(ze.indentation<=An&&nt.eat(">"))return ze.quote=gn?1:ze.quote+1,Lt.highlightFormatting&&(ze.formatting="quote"),nt.eatSpace(),xt(ze);if(!Mi&&!ze.setext&&gn&&ze.indentation<=An&&(pt=nt.match(yt))){var ht=pt[1]?"ol":"ul";return ze.indentation=Si+nt.current().length,ze.list=!0,ze.quote=0,ze.listStack.push(ze.indentation),ze.em=!1,ze.strong=!1,ze.code=!1,ze.strikethrough=!1,Lt.taskLists&&nt.match(Zt,!1)&&(ze.taskList=!0),ze.f=ze.inline,Lt.highlightFormatting&&(ze.formatting=["list","list-"+ht]),xt(ze)}else{if(gn&&ze.indentation<=An&&(pt=nt.match(te,!0)))return ze.quote=0,ze.fencedEndRE=new RegExp(pt[1]+"+ *$"),ze.localMode=Lt.fencedCodeBlockHighlighting&&vt(pt[2]||Lt.fencedCodeBlockDefaultMode),ze.localMode&&(ze.localState=ue.startState(ze.localMode)),ze.f=ze.block=dt,Lt.highlightFormatting&&(ze.formatting="code-block"),ze.code=-1,xt(ze);if(ze.setext||(!Vn||!vn)&&!ze.quote&&ze.list===!1&&!ze.code&&!Mi&&!ne.test(nt.string)&&(pt=nt.lookAhead(1))&&(pt=pt.match(Ut)))return ze.setext?(ze.header=ze.setext,ze.setext=0,nt.skipToEnd(),Lt.highlightFormatting&&(ze.formatting="header")):(ze.header=pt[0].charAt(0)=="="?1:2,ze.setext=ze.header),ze.thisLine.header=!0,ze.f=ze.inline,xt(ze);if(Mi)return nt.skipToEnd(),ze.hr=!0,ze.thisLine.hr=!0,Ue.hr;if(nt.peek()==="[")return pe(nt,ze,vi)}return pe(nt,ze,ze.inline)}function st(nt,ze){var gn=Nt.token(nt,ze.htmlState);if(!Bt){var Xn=ue.innerMode(Nt,ze.htmlState);(Xn.mode.name=="xml"&&Xn.state.tagStart===null&&!Xn.state.context&&Xn.state.tokenize.isInText||ze.md_inside&&nt.current().indexOf(">")>-1)&&(ze.f=It,ze.block=ke,ze.htmlState=null)}return gn}function dt(nt,ze){var gn=ze.listStack[ze.listStack.length-1]||0,Xn=ze.indentation<gn,ti=gn+3;if(ze.fencedEndRE&&ze.indentation<=ti&&(Xn||nt.match(ze.fencedEndRE))){Lt.highlightFormatting&&(ze.formatting="code-block");var nn;return Xn||(nn=xt(ze)),ze.localMode=ze.localState=null,ze.block=ke,ze.f=It,ze.fencedEndRE=null,ze.code=0,ze.thisLine.fencedCodeEnd=!0,Xn?Se(nt,ze,ze.block):nn}else return ze.localMode?ze.localMode.token(nt,ze.localState):(nt.skipToEnd(),Ue.code)}function xt(nt){var ze=[];if(nt.formatting){ze.push(Ue.formatting),typeof nt.formatting=="string"&&(nt.formatting=[nt.formatting]);for(var gn=0;gn<nt.formatting.length;gn++)ze.push(Ue.formatting+"-"+nt.formatting[gn]),nt.formatting[gn]==="header"&&ze.push(Ue.formatting+"-"+nt.formatting[gn]+"-"+nt.header),nt.formatting[gn]==="quote"&&(!Lt.maxBlockquoteDepth||Lt.maxBlockquoteDepth>=nt.quote?ze.push(Ue.formatting+"-"+nt.formatting[gn]+"-"+nt.quote):ze.push("error"))}if(nt.taskOpen)return ze.push("meta"),ze.length?ze.join(" "):null;if(nt.taskClosed)return ze.push("property"),ze.length?ze.join(" "):null;if(nt.linkHref?ze.push(Ue.linkHref,"url"):(nt.strong&&ze.push(Ue.strong),nt.em&&ze.push(Ue.em),nt.strikethrough&&ze.push(Ue.strikethrough),nt.emoji&&ze.push(Ue.emoji),nt.linkText&&ze.push(Ue.linkText),nt.code&&ze.push(Ue.code),nt.image&&ze.push(Ue.image),nt.imageAltText&&ze.push(Ue.imageAltText,"link"),nt.imageMarker&&ze.push(Ue.imageMarker)),nt.header&&ze.push(Ue.header,Ue.header+"-"+nt.header),nt.quote&&(ze.push(Ue.quote),!Lt.maxBlockquoteDepth||Lt.maxBlockquoteDepth>=nt.quote?ze.push(Ue.quote+"-"+nt.quote):ze.push(Ue.quote+"-"+Lt.maxBlockquoteDepth)),nt.list!==!1){var Xn=(nt.listStack.length-1)%3;Xn?Xn===1?ze.push(Ue.list2):ze.push(Ue.list3):ze.push(Ue.list1)}return nt.trailingSpaceNewLine?ze.push("trailing-space-new-line"):nt.trailingSpace&&ze.push("trailing-space-"+(nt.trailingSpace%2?"a":"b")),ze.length?ze.join(" "):null}function ut(nt,ze){if(nt.match(Te,!0))return xt(ze)}function It(nt,ze){var gn=ze.text(nt,ze);if(typeof gn!="undefined")return gn;if(ze.list)return ze.list=null,xt(ze);if(ze.taskList){var Xn=nt.match(Zt,!0)[1]===" ";return Xn?ze.taskOpen=!0:ze.taskClosed=!0,Lt.highlightFormatting&&(ze.formatting="task"),ze.taskList=!1,xt(ze)}if(ze.taskOpen=!1,ze.taskClosed=!1,ze.header&&nt.match(/^#+$/,!0))return Lt.highlightFormatting&&(ze.formatting="header"),xt(ze);var ti=nt.next();if(ze.linkTitle){ze.linkTitle=!1;var nn=ti;ti==="("&&(nn=")"),nn=(nn+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var vn="^\\s*(?:[^"+nn+"\\\\]+|\\\\\\\\|\\\\.)"+nn;if(nt.match(new RegExp(vn),!0))return Ue.linkHref}if(ti==="`"){var An=ze.formatting;Lt.highlightFormatting&&(ze.formatting="code"),nt.eatWhile("`");var Si=nt.current().length;if(ze.code==0&&(!ze.quote||Si==1))return ze.code=Si,xt(ze);if(Si==ze.code){var Vn=xt(ze);return ze.code=0,Vn}else return ze.formatting=An,xt(ze)}else if(ze.code)return xt(ze);if(ti==="\\"&&(nt.next(),Lt.highlightFormatting)){var Mi=xt(ze),pt=Ue.formatting+"-escape";return Mi?Mi+" "+pt:pt}if(ti==="!"&&nt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ze.imageMarker=!0,ze.image=!0,Lt.highlightFormatting&&(ze.formatting="image"),xt(ze);if(ti==="["&&ze.imageMarker&&nt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ze.imageMarker=!1,ze.imageAltText=!0,Lt.highlightFormatting&&(ze.formatting="image"),xt(ze);if(ti==="]"&&ze.imageAltText){Lt.highlightFormatting&&(ze.formatting="image");var Mi=xt(ze);return ze.imageAltText=!1,ze.image=!1,ze.inline=ze.f=Tt,Mi}if(ti==="["&&!ze.image)return ze.linkText&&nt.match(/^.*?\]/)||(ze.linkText=!0,Lt.highlightFormatting&&(ze.formatting="link")),xt(ze);if(ti==="]"&&ze.linkText){Lt.highlightFormatting&&(ze.formatting="link");var Mi=xt(ze);return ze.linkText=!1,ze.inline=ze.f=nt.match(/\(.*?\)| ?\[.*?\]/,!1)?Tt:It,Mi}if(ti==="<"&&nt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ze.f=ze.inline=Et,Lt.highlightFormatting&&(ze.formatting="link");var Mi=xt(ze);return Mi?Mi+=" ":Mi="",Mi+Ue.linkInline}if(ti==="<"&&nt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ze.f=ze.inline=Et,Lt.highlightFormatting&&(ze.formatting="link");var Mi=xt(ze);return Mi?Mi+=" ":Mi="",Mi+Ue.linkEmail}if(Lt.xml&&ti==="<"&&nt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ht=nt.string.indexOf(">",nt.pos);if(ht!=-1){var dn=nt.string.substring(nt.start,ht);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(dn)&&(ze.md_inside=!0)}return nt.backUp(1),ze.htmlState=ue.startState(Nt),Se(nt,ze,st)}if(Lt.xml&&ti==="<"&&nt.match(/^\/\w*?>/))return ze.md_inside=!1,"tag";if(ti==="*"||ti==="_"){for(var Oe=1,Ce=nt.pos==1?" ":nt.string.charAt(nt.pos-2);Oe<3&&nt.eat(ti);)Oe++;var Pe=nt.peek()||" ",Ie=!/\s/.test(Pe)&&(!de.test(Pe)||/\s/.test(Ce)||de.test(Ce)),Ke=!/\s/.test(Ce)&&(!de.test(Ce)||/\s/.test(Pe)||de.test(Pe)),De=null,tt=null;if(Oe%2&&(!ze.em&&Ie&&(ti==="*"||!Ke||de.test(Ce))?De=!0:ze.em==ti&&Ke&&(ti==="*"||!Ie||de.test(Pe))&&(De=!1)),Oe>1&&(!ze.strong&&Ie&&(ti==="*"||!Ke||de.test(Ce))?tt=!0:ze.strong==ti&&Ke&&(ti==="*"||!Ie||de.test(Pe))&&(tt=!1)),tt!=null||De!=null){Lt.highlightFormatting&&(ze.formatting=De==null?"strong":tt==null?"em":"strong em"),De===!0&&(ze.em=ti),tt===!0&&(ze.strong=ti);var Vn=xt(ze);return De===!1&&(ze.em=!1),tt===!1&&(ze.strong=!1),Vn}}else if(ti===" "&&(nt.eat("*")||nt.eat("_"))){if(nt.peek()===" ")return xt(ze);nt.backUp(1)}if(Lt.strikethrough){if(ti==="~"&&nt.eatWhile(ti)){if(ze.strikethrough){Lt.highlightFormatting&&(ze.formatting="strikethrough");var Vn=xt(ze);return ze.strikethrough=!1,Vn}else if(nt.match(/^[^\s]/,!1))return ze.strikethrough=!0,Lt.highlightFormatting&&(ze.formatting="strikethrough"),xt(ze)}else if(ti===" "&&nt.match(/^~~/,!0)){if(nt.peek()===" ")return xt(ze);nt.backUp(2)}}if(Lt.emoji&&ti===":"&&nt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ze.emoji=!0,Lt.highlightFormatting&&(ze.formatting="emoji");var He=xt(ze);return ze.emoji=!1,He}return ti===" "&&(nt.match(/^ +$/,!1)?ze.trailingSpace++:ze.trailingSpace&&(ze.trailingSpaceNewLine=!0)),xt(ze)}function Et(nt,ze){var gn=nt.next();if(gn===">"){ze.f=ze.inline=It,Lt.highlightFormatting&&(ze.formatting="link");var Xn=xt(ze);return Xn?Xn+=" ":Xn="",Xn+Ue.linkInline}return nt.match(/^[^>]+/,!0),Ue.linkInline}function Tt(nt,ze){if(nt.eatSpace())return null;var gn=nt.next();return gn==="("||gn==="["?(ze.f=ze.inline=hn(gn==="("?")":"]"),Lt.highlightFormatting&&(ze.formatting="link-string"),ze.linkHref=!0,xt(ze)):"error"}var Yt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function hn(nt){return function(ze,gn){var Xn=ze.next();if(Xn===nt){gn.f=gn.inline=It,Lt.highlightFormatting&&(gn.formatting="link-string");var ti=xt(gn);return gn.linkHref=!1,ti}return ze.match(Yt[nt]),gn.linkHref=!0,xt(gn)}}function vi(nt,ze){return nt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ze.f=ui,nt.next(),Lt.highlightFormatting&&(ze.formatting="link"),ze.linkText=!0,xt(ze)):pe(nt,ze,It)}function ui(nt,ze){if(nt.match(/^\]:/,!0)){ze.f=ze.inline=Bn,Lt.highlightFormatting&&(ze.formatting="link");var gn=xt(ze);return ze.linkText=!1,gn}return nt.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function Bn(nt,ze){return nt.eatSpace()?null:(nt.match(/^[^\s]+/,!0),nt.peek()===void 0?ze.linkTitle=!0:nt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ze.f=ze.inline=It,Ue.linkHref+" url")}var di={startState:function(){return{f:ke,prevLine:{stream:null},thisLine:{stream:null},block:ke,htmlState:null,indentation:0,inline:It,text:ut,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(nt){return{f:nt.f,prevLine:nt.prevLine,thisLine:nt.thisLine,block:nt.block,htmlState:nt.htmlState&&ue.copyState(Nt,nt.htmlState),indentation:nt.indentation,localMode:nt.localMode,localState:nt.localMode?ue.copyState(nt.localMode,nt.localState):null,inline:nt.inline,text:nt.text,formatting:!1,linkText:nt.linkText,linkTitle:nt.linkTitle,linkHref:nt.linkHref,code:nt.code,em:nt.em,strong:nt.strong,strikethrough:nt.strikethrough,emoji:nt.emoji,header:nt.header,setext:nt.setext,hr:nt.hr,taskList:nt.taskList,list:nt.list,listStack:nt.listStack.slice(0),quote:nt.quote,indentedCode:nt.indentedCode,trailingSpace:nt.trailingSpace,trailingSpaceNewLine:nt.trailingSpaceNewLine,md_inside:nt.md_inside,fencedEndRE:nt.fencedEndRE}},token:function(nt,ze){if(ze.formatting=!1,nt!=ze.thisLine.stream){if(ze.header=0,ze.hr=!1,nt.match(/^\s*$/,!0))return Me(ze),null;if(ze.prevLine=ze.thisLine,ze.thisLine={stream:nt},ze.taskList=!1,ze.trailingSpace=0,ze.trailingSpaceNewLine=!1,!ze.localState&&(ze.f=ze.block,ze.f!=st)){var gn=nt.match(/^\s*/,!0)[0].replace(/\t/g,le).length;if(ze.indentation=gn,ze.indentationDiff=null,gn>0)return null}}return ze.f(nt,ze)},innerMode:function(nt){return nt.block==st?{state:nt.htmlState,mode:Nt}:nt.localState?{state:nt.localState,mode:nt.localMode}:{state:nt,mode:di}},indent:function(nt,ze,gn){return nt.block==st&&Nt.indent?Nt.indent(nt.htmlState,ze,gn):nt.localState&&nt.localMode.indent?nt.localMode.indent(nt.localState,ze,gn):ue.Pass},blankLine:Me,getType:xt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return di},"xml"),ue.defineMIME("text/markdown","markdown"),ue.defineMIME("text/x-markdown","markdown")})},98101:function(qt,kn,Ee){(function(ue){ue(Ee(89780))})(function(ue){"use strict";ue.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 et=0;et<ue.modeInfo.length;et++){var Lt=ue.modeInfo[et];Lt.mimes&&(Lt.mime=Lt.mimes[0])}ue.findModeByMIME=function(Nt){Nt=Nt.toLowerCase();for(var Bt=0;Bt<ue.modeInfo.length;Bt++){var vt=ue.modeInfo[Bt];if(vt.mime==Nt)return vt;if(vt.mimes){for(var Ue=0;Ue<vt.mimes.length;Ue++)if(vt.mimes[Ue]==Nt)return vt}}if(/\+xml$/.test(Nt))return ue.findModeByMIME("application/xml");if(/\+json$/.test(Nt))return ue.findModeByMIME("application/json")},ue.findModeByExtension=function(Nt){Nt=Nt.toLowerCase();for(var Bt=0;Bt<ue.modeInfo.length;Bt++){var vt=ue.modeInfo[Bt];if(vt.ext){for(var Ue=0;Ue<vt.ext.length;Ue++)if(vt.ext[Ue]==Nt)return vt}}},ue.findModeByFileName=function(Nt){for(var Bt=0;Bt<ue.modeInfo.length;Bt++){var vt=ue.modeInfo[Bt];if(vt.file&&vt.file.test(Nt))return vt}var Ue=Nt.lastIndexOf("."),bt=Ue>-1&&Nt.substring(Ue+1,Nt.length);if(bt)return ue.findModeByExtension(bt)},ue.findModeByName=function(Nt){Nt=Nt.toLowerCase();for(var Bt=0;Bt<ue.modeInfo.length;Bt++){var vt=ue.modeInfo[Bt];if(vt.name.toLowerCase()==Nt)return vt;if(vt.alias){for(var Ue=0;Ue<vt.alias.length;Ue++)if(vt.alias[Ue].toLowerCase()==Nt)return vt}}}})},67549:function(qt,kn,Ee){(function(ue){ue(Ee(89780))})(function(ue){"use strict";ue.defineMode("stex",function(et,Lt){"use strict";function Nt(Te,te){Te.cmdState.push(te)}function Bt(Te){return Te.cmdState.length>0?Te.cmdState[Te.cmdState.length-1]:null}function vt(Te){var te=Te.cmdState.pop();te&&te.closeBracket()}function Ue(Te){for(var te=Te.cmdState,ne=te.length-1;ne>=0;ne--){var de=te[ne];if(de.name!="DEFAULT")return de}return{styleIdentifier:function(){return null}}}function bt(Te,te,ne){return function(){this.name=Te,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=bt("importmodule","tag",["string","builtin"]),Ct.documentclass=bt("documentclass","tag",["","atom"]),Ct.usepackage=bt("usepackage","tag",["atom"]),Ct.begin=bt("begin","tag",["atom"]),Ct.end=bt("end","tag",["atom"]),Ct.label=bt("label","tag",["atom"]),Ct.ref=bt("ref","tag",["atom"]),Ct.eqref=bt("eqref","tag",["atom"]),Ct.cite=bt("cite","tag",["atom"]),Ct.bibitem=bt("bibitem","tag",["atom"]),Ct.Bibitem=bt("Bibitem","tag",["atom"]),Ct.RBibitem=bt("RBibitem","tag",["atom"]),Ct.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function yt(Te,te){Te.f=te}function Zt(Te,te){var ne;if(Te.match(/^\\[a-zA-Z@]+/)){var de=Te.current().slice(1);return ne=Ct.hasOwnProperty(de)?Ct[de]:Ct.DEFAULT,ne=new ne,Nt(te,ne),yt(te,Ut),ne.style}if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/\\]/))return"tag";if(Te.match("\\["))return yt(te,function(pe,Se){return Ot(pe,Se,"\\]")}),"keyword";if(Te.match("\\("))return yt(te,function(pe,Se){return Ot(pe,Se,"\\)")}),"keyword";if(Te.match("$$"))return yt(te,function(pe,Se){return Ot(pe,Se,"$$")}),"keyword";if(Te.match("$"))return yt(te,function(pe,Se){return Ot(pe,Se,"$")}),"keyword";var le=Te.next();if(le=="%")return Te.skipToEnd(),"comment";if(le=="}"||le=="]"){if(ne=Bt(te),ne)ne.closeBracket(le),yt(te,Ut);else return"error";return"bracket"}else return le=="{"||le=="["?(ne=Ct.DEFAULT,ne=new ne,Nt(te,ne),"bracket"):/\d/.test(le)?(Te.eatWhile(/[\w.%]/),"atom"):(Te.eatWhile(/[\w\-_]/),ne=Ue(te),ne.name=="begin"&&(ne.argument=Te.current()),ne.styleIdentifier())}function Ot(Te,te,ne){if(Te.eatSpace())return null;if(ne&&Te.match(ne))return yt(te,Zt),"keyword";if(Te.match(/^\\[a-zA-Z@]+/))return"tag";if(Te.match(/^[a-zA-Z]+/))return"variable-2";if(Te.match(/^\\[$&%#{}_]/)||Te.match(/^\\[,;!\/]/)||Te.match(/^[\^_&]/))return"tag";if(Te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var de=Te.next();return de=="{"||de=="}"||de=="["||de=="]"||de=="("||de==")"?"bracket":de=="%"?(Te.skipToEnd(),"comment"):"error"}function Ut(Te,te){var ne=Te.peek(),de;return ne=="{"||ne=="["?(de=Bt(te),de.openBracket(ne),Te.eat(ne),yt(te,Zt),"bracket"):/[ \t\r]/.test(ne)?(Te.eat(ne),null):(yt(te,Zt),vt(te),Zt(Te,te))}return{startState:function(){var Te=Lt.inMathMode?function(te,ne){return Ot(te,ne)}:Zt;return{cmdState:[],f:Te}},copyState:function(Te){return{cmdState:Te.cmdState.slice(),f:Te.f}},token:function(Te,te){return te.f(Te,te)},blankLine:function(Te){Te.f=Zt,Te.cmdState.length=0},lineComment:"%"}}),ue.defineMIME("text/x-stex","stex"),ue.defineMIME("text/x-latex","stex")})},15525:function(qt,kn,Ee){(function(ue){ue(Ee(89780))})(function(ue){"use strict";var et={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};ue.defineMode("xml",function(Nt,Bt){var vt=Nt.indentUnit,Ue={},bt=Bt.htmlMode?et:Lt;for(var Ct in bt)Ue[Ct]=bt[Ct];for(var Ct in Bt)Ue[Ct]=Bt[Ct];var yt,Zt;function Ot(Et,Tt){function Yt(ui){return Tt.tokenize=ui,ui(Et,Tt)}var hn=Et.next();if(hn=="<")return Et.eat("!")?Et.eat("[")?Et.match("CDATA[")?Yt(te("atom","]]>")):null:Et.match("--")?Yt(te("comment","-->")):Et.match("DOCTYPE",!0,!0)?(Et.eatWhile(/[\w\._\-]/),Yt(ne(1))):null:Et.eat("?")?(Et.eatWhile(/[\w\._\-]/),Tt.tokenize=te("meta","?>"),"meta"):(yt=Et.eat("/")?"closeTag":"openTag",Tt.tokenize=Ut,"tag bracket");if(hn=="&"){var vi;return Et.eat("#")?Et.eat("x")?vi=Et.eatWhile(/[a-fA-F\d]/)&&Et.eat(";"):vi=Et.eatWhile(/[\d]/)&&Et.eat(";"):vi=Et.eatWhile(/[\w\.\-:]/)&&Et.eat(";"),vi?"atom":"error"}else return Et.eatWhile(/[^&<]/),null}Ot.isInText=!0;function Ut(Et,Tt){var Yt=Et.next();if(Yt==">"||Yt=="/"&&Et.eat(">"))return Tt.tokenize=Ot,yt=Yt==">"?"endTag":"selfcloseTag","tag bracket";if(Yt=="=")return yt="equals",null;if(Yt=="<"){Tt.tokenize=Ot,Tt.state=Se,Tt.tagName=Tt.tagStart=null;var hn=Tt.tokenize(Et,Tt);return hn?hn+" tag error":"tag error"}else return/[\'\"]/.test(Yt)?(Tt.tokenize=Te(Yt),Tt.stringStartCol=Et.column(),Tt.tokenize(Et,Tt)):(Et.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Te(Et){var Tt=function(Yt,hn){for(;!Yt.eol();)if(Yt.next()==Et){hn.tokenize=Ut;break}return"string"};return Tt.isInAttribute=!0,Tt}function te(Et,Tt){return function(Yt,hn){for(;!Yt.eol();){if(Yt.match(Tt)){hn.tokenize=Ot;break}Yt.next()}return Et}}function ne(Et){return function(Tt,Yt){for(var hn;(hn=Tt.next())!=null;){if(hn=="<")return Yt.tokenize=ne(Et+1),Yt.tokenize(Tt,Yt);if(hn==">")if(Et==1){Yt.tokenize=Ot;break}else return Yt.tokenize=ne(Et-1),Yt.tokenize(Tt,Yt)}return"meta"}}function de(Et,Tt,Yt){this.prev=Et.context,this.tagName=Tt,this.indent=Et.indented,this.startOfLine=Yt,(Ue.doNotIndent.hasOwnProperty(Tt)||Et.context&&Et.context.noIndent)&&(this.noIndent=!0)}function le(Et){Et.context&&(Et.context=Et.context.prev)}function pe(Et,Tt){for(var Yt;;){if(!Et.context||(Yt=Et.context.tagName,!Ue.contextGrabbers.hasOwnProperty(Yt)||!Ue.contextGrabbers[Yt].hasOwnProperty(Tt)))return;le(Et)}}function Se(Et,Tt,Yt){return Et=="openTag"?(Yt.tagStart=Tt.column(),Ae):Et=="closeTag"?Me:Se}function Ae(Et,Tt,Yt){return Et=="word"?(Yt.tagName=Tt.current(),Zt="tag",dt):Ue.allowMissingTagName&&Et=="endTag"?(Zt="tag bracket",dt(Et,Tt,Yt)):(Zt="error",Ae)}function Me(Et,Tt,Yt){if(Et=="word"){var hn=Tt.current();return Yt.context&&Yt.context.tagName!=hn&&Ue.implicitlyClosed.hasOwnProperty(Yt.context.tagName)&&le(Yt),Yt.context&&Yt.context.tagName==hn||Ue.matchClosing===!1?(Zt="tag",ke):(Zt="tag error",st)}else return Ue.allowMissingTagName&&Et=="endTag"?(Zt="tag bracket",ke(Et,Tt,Yt)):(Zt="error",st)}function ke(Et,Tt,Yt){return Et!="endTag"?(Zt="error",ke):(le(Yt),Se)}function st(Et,Tt,Yt){return Zt="error",ke(Et,Tt,Yt)}function dt(Et,Tt,Yt){if(Et=="word")return Zt="attribute",xt;if(Et=="endTag"||Et=="selfcloseTag"){var hn=Yt.tagName,vi=Yt.tagStart;return Yt.tagName=Yt.tagStart=null,Et=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(hn)?pe(Yt,hn):(pe(Yt,hn),Yt.context=new de(Yt,hn,vi==Yt.indented)),Se}return Zt="error",dt}function xt(Et,Tt,Yt){return Et=="equals"?ut:(Ue.allowMissing||(Zt="error"),dt(Et,Tt,Yt))}function ut(Et,Tt,Yt){return Et=="string"?It:Et=="word"&&Ue.allowUnquoted?(Zt="string",dt):(Zt="error",dt(Et,Tt,Yt))}function It(Et,Tt,Yt){return Et=="string"?It:dt(Et,Tt,Yt)}return{startState:function(Et){var Tt={tokenize:Ot,state:Se,indented:Et||0,tagName:null,tagStart:null,context:null};return Et!=null&&(Tt.baseIndent=Et),Tt},token:function(Et,Tt){if(!Tt.tagName&&Et.sol()&&(Tt.indented=Et.indentation()),Et.eatSpace())return null;yt=null;var Yt=Tt.tokenize(Et,Tt);return(Yt||yt)&&Yt!="comment"&&(Zt=null,Tt.state=Tt.state(yt||Yt,Et,Tt),Zt&&(Yt=Zt=="error"?Yt+" error":Zt)),Yt},indent:function(Et,Tt,Yt){var hn=Et.context;if(Et.tokenize.isInAttribute)return Et.tagStart==Et.indented?Et.stringStartCol+1:Et.indented+vt;if(hn&&hn.noIndent)return ue.Pass;if(Et.tokenize!=Ut&&Et.tokenize!=Ot)return Yt?Yt.match(/^(\s*)/)[0].length:0;if(Et.tagName)return Ue.multilineTagIndentPastTag!==!1?Et.tagStart+Et.tagName.length+2:Et.tagStart+vt*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/<!\[CDATA\[/.test(Tt))return 0;var vi=Tt&&/^<(\/)?([\w_:\.-]*)/.exec(Tt);if(vi&&vi[1])for(;hn;)if(hn.tagName==vi[2]){hn=hn.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(hn.tagName))hn=hn.prev;else break;else if(vi)for(;hn;){var ui=Ue.contextGrabbers[hn.tagName];if(ui&&ui.hasOwnProperty(vi[2]))hn=hn.prev;else break}for(;hn&&hn.prev&&!hn.startOfLine;)hn=hn.prev;return hn?hn.indent+vt:Et.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(Et){Et.state==ut&&(Et.state=dt)},xmlCurrentTag:function(Et){return Et.tagName?{name:Et.tagName,close:Et.type=="closeTag"}:null},xmlCurrentContext:function(Et){for(var Tt=[],Yt=Et.context;Yt;Yt=Yt.prev)Yt.tagName&&Tt.push(Yt.tagName);return Tt.reverse()}}}),ue.defineMIME("text/xml","xml"),ue.defineMIME("application/xml","xml"),ue.mimeModes.hasOwnProperty("text/html")||ue.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(qt,kn,Ee){"use strict";Ee.d(kn,{$u:function(){return Ct},BD:function(){return Oe},E9:function(){return bt},FF:function(){return da},FJ:function(){return Se},Hn:function(){return pe},KX:function(){return Me},NB:function(){return kt},S0:function(){return pt},UL:function(){return yt},Vk:function(){return le},Vm:function(){return pn},YI:function(){return ht},ZA:function(){return Lt},Zt:function(){return Zt},al:function(){return De},bn:function(){return Ke},bx:function(){return Ce},g2:function(){return dn},h1:function(){return ut},hD:function(){return Jn},l4:function(){return vt},rU:function(){return yn},s_:function(){return Pe},uz:function(){return Wt},z6:function(){return Ot}}),qt=Ee.hmd(qt),function(){var Be;function ya(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function to(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ya(a)}}function jn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Vi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Wi;if(typeof Object.setPrototypeOf=="function")Wi=Object.setPrototypeOf;else{var pi;e:{var qn={a:!0},nr={};try{nr.__proto__=qn,pi=nr.a;break e}catch(a){}pi=!1}Wi=pi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var en=Wi;function _t(a,y){if(a.prototype=Vi(y.prototype),a.prototype.constructor=a,en)en(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 zt=typeof Ee.g!="undefined"&&Ee.g!=null?Ee.g:self,Li=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},yr=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Oi(a,y){if(y){var x=zt;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&&yr(x,a,{writable:!0,value:y})}}Oi("Object.assign",function(a){return a||Li}),Oi("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 Zn=typeof globalThis=="object"&&globalThis||typeof Ee.g=="object"&&Ee.g.global===Ee.g&&Ee.g||typeof self=="object"&&self.self===self&&self||{};Zn.requestAnimationFrame===void 0&&(Zn.setImmediate===void 0?Zn.requestAnimationFrame=function(a){Zn.setTimeout(a,0)}:Zn.requestAnimationFrame=Zn.setImmediate);function ki(){}function zr(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Zn.clearTimeout(x),x=br(function(){x=-1,a.apply(E,b)},y)}}function br(a,y){return Zn.setTimeout(a,y)}function Br(a){return Zn.document.createElement(a)}function Pt(a){throw Error(a)}function Di(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Pt(a)}function En(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),Pt(x+" is not in the range "+y+": "+a)}function Yn(a){Zn.console&&Zn.console.log(a)}function Mt(a){return typeof a=="object"&&a!==null}function Ft(a){return Array.isArray(a)||Zn.NodeList&&a instanceof Zn.NodeList||Zn.HTMLCollection&&a instanceof Zn.HTMLCollection}function sn(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):Pt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Ii(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Pt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Ri(){var a=Kr.pop();return a===void 0?[]:a}function ai(a){a.length=0,Kr.push(a)}function Ti(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(Mt(a)&&a.constructor)return Ti(a.constructor);return typeof a}function Jr(a){var y=a;return Mt(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 Qr(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 Lo(a,y,x){Object.defineProperty(Un.prototype,a,{get:y,set:x})}function Ln(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 ja=Zn.navigator!==void 0&&0<Zn.navigator.userAgent.indexOf("Trident/7"),co=Zn.navigator!==void 0&&Zn.navigator.platform!==void 0&&Zn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Kr=[];Object.freeze([]),ki.className="Util",ki.Dx="32ab5ff3b26f42dc0ed90f21472913b5",ki.adym="gojs.net",ki.vfo="28e645fdb266",ki.className="Util";function on(a,y,x){Or(this),this.j=a,this.xa=y,this.o=x}on.prototype.toString=function(){return"EnumValue."+this.xa};function Vt(a,y){return y==null||y===""?null:a[y]}zt.Object.defineProperties(on.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),on.className="EnumValue";function cn(){this.ew=[]}cn.prototype.toString=function(){return this.ew.join("")},cn.prototype.add=function(a){a!==""&&this.ew.push(a)},cn.className="StringBuilder";function Jt(){}Jt.className="PropertyCollection";var zn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Zn.console&&Zn.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 er(){}er.prototype.reset=function(){},er.prototype.next=function(){return!1},er.prototype.Ad=function(){return!1},er.prototype.first=function(){return null},er.prototype.any=function(){return!1},er.prototype.all=function(){return!0},er.prototype.each=function(){return this},er.prototype.map=function(){return this},er.prototype.filter=function(){return this},er.prototype.de=function(){},er.prototype.toString=function(){return"EmptyIterator"},zt.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset;var sr=null;er.className="EmptyIterator",sr=new er;function li(a){this.key=-1,this.value=a}li.prototype.reset=function(){this.key=-1},li.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},li.prototype.Ad=function(){return this.next()},li.prototype.first=function(){return this.key=0,this.value},li.prototype.any=function(a){return this.key=-1,a(this.value)},li.prototype.all=function(a){return this.key=-1,a(this.value)},li.prototype.each=function(a){return this.key=-1,a(this.value),this},li.prototype.map=function(a){return new li(a(this.value))},li.prototype.filter=function(a){return a(this.value)?new li(this.value):sr},li.prototype.de=function(){this.value=null},li.prototype.toString=function(){return"SingletonIterator("+this.value+")"},zt.Object.defineProperties(li.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),li.prototype.first=li.prototype.first,li.prototype.hasNext=li.prototype.Ad,li.prototype.next=li.prototype.next,li.prototype.reset=li.prototype.reset,li.className="SingletonIterator";function Ci(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ci.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ci.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},Ci.prototype.Ad=function(){return this.next()},Ci.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},Ci.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},Ci.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},Ci.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},Ci.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 an,a.s=x,a.xb(),a.iterator},Ci.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 an,a.s=x,a.xb(),a.iterator},Ci.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ci.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},zt.Object.defineProperties(Ci.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}}}),Ci.prototype.first=Ci.prototype.first,Ci.prototype.hasNext=Ci.prototype.Ad,Ci.prototype.next=Ci.prototype.next,Ci.prototype.reset=Ci.prototype.reset,Ci.className="ListIterator";function Qn(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Qn.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Qn.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)},Qn.prototype.Ad=function(){return this.next()},Qn.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},Qn.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},Qn.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},Qn.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},Qn.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 an,a.s=x,a.xb(),a.iterator},Qn.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 an,a.s=x,a.xb(),a.iterator},Qn.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Qn.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},zt.Object.defineProperties(Qn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Qn.prototype.first=Qn.prototype.first,Qn.prototype.hasNext=Qn.prototype.Ad,Qn.prototype.next=Qn.prototype.next,Qn.prototype.reset=Qn.prototype.reset,Qn.className="ListIteratorBackwards";function an(a){Or(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=an.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()#"+fr(this)},Be.add=function(a){return a===null?this:(this._isFrozen&&Di(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&&Di(this);var y=this.s;if(Ft(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&&Di(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)&&En(a,"0 <= i < length",an,"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)&&En(a,"0 <= i < length",an,"setElt:i"),this._isFrozen&&Di(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&&Di(this);var a=this.s;return 0<a.length?a.pop():null},an.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},an.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},an.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},an.prototype.map=function(a){for(var y=new an,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},an.prototype.filter=function(a){for(var y=new an,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=an.prototype,Be.Gb=function(a,y){0>a&&En(a,">= 0",an,"insertAt:i"),this._isFrozen&&Di(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&&Di(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)&&En(a,"0 <= i < length",an,"removeAt:i"),this._isFrozen&&Di(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&&Di(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},an.prototype.copy=function(){var a=new an,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Be=an.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 In,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Be.sort=function(a){return this._isFrozen&&Di(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&&Di(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&En(y,"0 <= from < length",an,"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&&Di(this),this.s.reverse(),this.xb(),this},zt.Object.defineProperties(an.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 sr;var a=this.Sa;return a!==null?(a.reset(),a):new Ci(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return sr;var a=this.Hg;return a!==null?(a.reset(),a):new Qn(this)}}}),an.prototype.reverse=an.prototype.reverse,an.prototype.sortRange=an.prototype.zi,an.prototype.sort=an.prototype.sort,an.prototype.toSet=an.prototype.Iv,an.prototype.toArray=an.prototype.Fa,an.prototype.removeRange=an.prototype.removeRange,an.prototype.removeAt=an.prototype.mb,an.prototype.delete=an.prototype.delete,an.prototype.remove=an.prototype.remove,an.prototype.insertAt=an.prototype.Gb,an.prototype.pop=an.prototype.pop,an.prototype.last=an.prototype.jc,an.prototype.first=an.prototype.first,an.prototype.set=an.prototype.set,an.prototype.setElt=an.prototype.cd,an.prototype.get=an.prototype.get,an.prototype.elt=an.prototype.M,an.prototype.indexOf=an.prototype.indexOf,an.prototype.has=an.prototype.has,an.prototype.contains=an.prototype.contains,an.prototype.clear=an.prototype.clear,an.prototype.addAll=an.prototype.addAll,an.prototype.push=an.prototype.push,an.prototype.add=an.prototype.add,an.prototype.thaw=an.prototype.ka,an.prototype.freeze=an.prototype.freeze,an.className="List";function Vr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Vr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Vr.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)},Vr.prototype.Ad=function(){return this.next()},Vr.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},Vr.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},Vr.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},Vr.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},Vr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new an;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Vr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new an;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Vr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Vr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},zt.Object.defineProperties(Vr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Vr.prototype.first=Vr.prototype.first,Vr.prototype.hasNext=Vr.prototype.Ad,Vr.prototype.next=Vr.prototype.next,Vr.prototype.reset=Vr.prototype.reset,Vr.className="SetIterator";function In(a){Or(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=In.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()#"+fr(this)},Be.add=function(a){if(a===null)return this;this._isFrozen&&Di(this,a);var y=a;return Mt(a)&&(y=Tr(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&&Di(this),Ft(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 Mt(a)&&(y=fr(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},In.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},In.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},In.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},In.prototype.map=function(a){for(var y=new In,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},In.prototype.filter=function(a){for(var y=new In,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Be=In.prototype,Be.remove=function(a){if(a===null)return!1;this._isFrozen&&Di(this,a);var y=a;if(Mt(a)&&(y=fr(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&&Di(this),Ft(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&&Di(this);var y=new In;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&&Di(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},In.prototype.copy=function(){var a=new In,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},In.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},In.prototype.Hv=function(){var a=new an,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Or(a){a.__gohashid=Bo++}function Tr(a){var y=a.__gohashid;return y===void 0&&(y=Bo++,a.__gohashid=y),y}function fr(a){return a.__gohashid}zt.Object.defineProperties(In.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return sr;var a=this.Sa;return a!==null?(a.reset(),a):new Vr(this)}}}),In.prototype.toList=In.prototype.Hv,In.prototype.toArray=In.prototype.Fa,In.prototype.clear=In.prototype.clear,In.prototype.retainAll=In.prototype.pA,In.prototype.removeAll=In.prototype.hp,In.prototype.delete=In.prototype.delete,In.prototype.remove=In.prototype.remove,In.prototype.first=In.prototype.first,In.prototype.containsAny=In.prototype.Ty,In.prototype.containsAll=In.prototype.Sy,In.prototype.has=In.prototype.has,In.prototype.contains=In.prototype.contains,In.prototype.addAll=In.prototype.addAll,In.prototype.add=In.prototype.add,In.prototype.thaw=In.prototype.ka,In.prototype.freeze=In.prototype.freeze;var Bo=1;In.className="Set",In.uniqueHash=Or,In.hashIdUnique=Tr,In.hashId=fr;function Gr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Gr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Gr.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)},Gr.prototype.Ad=function(){return this.next()},Gr.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},Gr.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},Gr.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},Gr.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},Gr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new an;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Gr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new an;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Gr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Gr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},zt.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="MapKeySetIterator";function Ui(a){In.call(this),Or(this),this._isFrozen=!0,this.ma=a}_t(Ui,In),Be=Ui.prototype,Be.freeze=function(){return this},Be.ka=function(){return this},Be.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Be.add=function(){Pt("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(){Pt("This Set is read-only: "+this.toString())},Be.delete=function(a){return this.remove(a)},Be.clear=function(){Pt("This Set is read-only: "+this.toString())},Be.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ui.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ui.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ui.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ui.prototype.map=function(a){for(var y=new In,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ui.prototype.filter=function(a){for(var y=new In,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Ui.prototype.copy=function(){return new Ui(this.ma)},Ui.prototype.Iv=function(){var a=new In,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ui.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},Ui.prototype.Hv=function(){var a=new an,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},zt.Object.defineProperties(Ui.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?sr:new Gr(this.ma)}}}),Ui.prototype.toList=Ui.prototype.Hv,Ui.prototype.toArray=Ui.prototype.Fa,Ui.prototype.toSet=Ui.prototype.Iv,Ui.prototype.first=Ui.prototype.first,Ui.prototype.clear=Ui.prototype.clear,Ui.prototype.delete=Ui.prototype.delete,Ui.prototype.remove=Ui.prototype.remove,Ui.prototype.has=Ui.prototype.has,Ui.prototype.contains=Ui.prototype.contains,Ui.prototype.add=Ui.prototype.add,Ui.prototype.thaw=Ui.prototype.ka,Ui.prototype.freeze=Ui.prototype.freeze,Ui.className="MapKeySet";function xr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}xr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},xr.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)},xr.prototype.Ad=function(){return this.next()},xr.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},xr.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},xr.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},xr.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},xr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new an;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},xr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new an;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},xr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},xr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},zt.Object.defineProperties(xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),xr.prototype.first=xr.prototype.first,xr.prototype.hasNext=xr.prototype.Ad,xr.prototype.next=xr.prototype.next,xr.prototype.reset=xr.prototype.reset,xr.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 Cn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Cn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Cn.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)},Cn.prototype.Ad=function(){return this.next()},Cn.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},Cn.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},Cn.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},Cn.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},Cn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new an;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Cn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new an;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Cn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Cn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},zt.Object.defineProperties(Cn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Cn.prototype.first=Cn.prototype.first,Cn.prototype.hasNext=Cn.prototype.Ad,Cn.prototype.next=Cn.prototype.next,Cn.prototype.reset=Cn.prototype.reset,Cn.className="MapIterator";function hi(a){Or(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"&&Pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Be=hi.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()#"+fr(this)},Be.add=function(a,y){this._isFrozen&&Di(this,a);var x=a;Mt(a)&&(x=Tr(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(Ft(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 hi)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},hi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},hi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},hi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},hi.prototype.map=function(a){for(var y=new hi,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},hi.prototype.filter=function(a){for(var y=new hi,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Be=hi.prototype,Be.contains=function(a){var y=a;return Mt(a)&&(y=fr(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 Mt(a)&&(y=fr(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&&Di(this,a);var y=a;if(Mt(a)&&(y=fr(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&&Di(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()},hi.prototype.copy=function(){var a=new hi,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},hi.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},hi.prototype.Lf=function(){return new Ui(this)},zt.Object.defineProperties(hi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return sr;var a=this.Sa;return a!==null?(a.reset(),a):new Cn(this)}},iteratorKeys:{get:function(){return 0>=this.count?sr:new Gr(this)}},iteratorValues:{get:function(){if(0>=this.count)return sr;var a=this.jf;return a!==null?(a.reset(),a):new xr(this)}}}),hi.prototype.toKeySet=hi.prototype.Lf,hi.prototype.toArray=hi.prototype.Fa,hi.prototype.clear=hi.prototype.clear,hi.prototype.delete=hi.prototype.delete,hi.prototype.remove=hi.prototype.remove,hi.prototype.get=hi.prototype.get,hi.prototype.getValue=hi.prototype.I,hi.prototype.has=hi.prototype.has,hi.prototype.contains=hi.prototype.contains,hi.prototype.first=hi.prototype.first,hi.prototype.addAll=hi.prototype.addAll,hi.prototype.set=hi.prototype.set,hi.prototype.add=hi.prototype.add,hi.prototype.thaw=hi.prototype.ka,hi.prototype.freeze=hi.prototype.freeze,hi.className="Map";function Ge(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Pt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var To,no,rr,qi,Qi;Ge.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ge.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ge.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ge.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ge.prototype.copy=function(){var a=new Ge;return a.x=this.x,a.y=this.y,a},Be=Ge.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)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function oa(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 Ge(x,b)}return new Ge}function ys(a){return a.x.toString()+" "+a.y.toString()}Be.toString=function(){return"Point("+this.x+","+this.y+")"},Be.D=function(a){return a instanceof Ge?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 Dt.B(this.x,a.x)&&Dt.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},Ge.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=Ge.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 bs(a.x-this.x,a.y-this.y)},Be.direction=function(a,y){return bs(a-this.x,y-this.y)};function bs(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 Dt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Be.fA=function(a,y,x,E){return Dt.qh(a,y,x,E,this.x,this.y,this),this},Be.gA=function(a,y){return Dt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Be.uA=function(a,y,x,E){return Dt.No(this.x,this.y,a,y,x,E,this),this},Be.vA=function(a,y){return Dt.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 _o(a,y){return y.Cd(a),a}function Ea(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 za(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Mr(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)},Ge.alloc=function(){var a=Ir.pop();return a===void 0?new Ge:a},Ge.allocAt=function(a,y){var x=Ir.pop();return x===void 0?new Ge(a,y):(x.x=a,x.y=y,x)},Ge.free=function(a){Ir.push(a)},Ge.prototype.isReal=Ge.prototype.w,Ge.prototype.setSpot=Ge.prototype.yi,Ge.prototype.setRectSpot=Ge.prototype.xi,Ge.prototype.snapToGridPoint=Ge.prototype.vA,Ge.prototype.snapToGrid=Ge.prototype.uA,Ge.prototype.projectOntoLineSegmentPoint=Ge.prototype.gA,Ge.prototype.projectOntoLineSegment=Ge.prototype.fA,Ge.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return Dt.Rl(a,y,x,E,b,z,ee,re)},Ge.prototype.compareWithLineSegmentPoint=Ge.prototype.Ry,Ge.compareWithLineSegment=function(a,y,x,E,b,z){return Dt.Fl(a,y,x,E,b,z)},Ge.prototype.direction=Ge.prototype.direction,Ge.prototype.directionPoint=Ge.prototype.ab,Ge.prototype.normalize=Ge.prototype.normalize,Ge.prototype.distanceSquared=Ge.prototype.zd,Ge.prototype.distanceSquaredPoint=Ge.prototype.Bf,Ge.prototype.scale=Ge.prototype.scale,Ge.prototype.rotate=Ge.prototype.rotate,Ge.prototype.offset=Ge.prototype.offset,Ge.prototype.subtract=Ge.prototype.re,Ge.prototype.add=Ge.prototype.add,Ge.prototype.equalsApprox=Ge.prototype.Xa,Ge.prototype.equalTo=Ge.prototype.hi,Ge.prototype.equals=Ge.prototype.D,Ge.prototype.set=Ge.prototype.set,Ge.prototype.setTo=Ge.prototype.sg;var Ir=[];Ge.className="Point",Ge.parse=oa,Ge.stringify=ys,Ge.distanceLineSegmentSquared=Ea,Ge.distanceSquared=za,Ge.direction=Mr,Ge.Origin=To=new Ge(0,0).ja(),Ge.InfiniteTopLeft=no=new Ge(-1/0,-1/0).ja(),Ge.InfiniteBottomRight=rr=new Ge(1/0,1/0).ja(),Ge.SixPoint=qi=new Ge(6,6).ja(),Ge.NoPoint=Qi=new Ge(NaN,NaN).ja(),Ge.parse=oa,Ge.stringify=ys,Ge.distanceLineSegmentSquared=Ea,Ge.distanceSquared=za,Ge.direction=Mr;function gi(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):Pt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ho,Ba,Ws,Xa,la,Ta,Ls;gi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},gi.prototype.h=function(a,y){return this.width=a,this.height=y,this},gi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},gi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},gi.prototype.copy=function(){var a=new gi;return a.width=this.width,a.height=this.height,a},Be=gi.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)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ll(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 gi(x,b)}return new gi}function rn(a){return a.width.toString()+" "+a.height.toString()}Be.toString=function(){return"Size("+this.width+","+this.height+")"},Be.D=function(a){return a instanceof gi?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 Dt.B(this.width,a.width)&&Dt.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)},gi.alloc=function(){var a=Va.pop();return a===void 0?new gi:a},gi.free=function(a){Va.push(a)},gi.prototype.isReal=gi.prototype.w,gi.prototype.inflate=gi.prototype.Bc,gi.prototype.equalsApprox=gi.prototype.Xa,gi.prototype.equalTo=gi.prototype.hi,gi.prototype.equals=gi.prototype.D,gi.prototype.set=gi.prototype.set,gi.prototype.setTo=gi.prototype.sg;var Va=[];gi.className="Size",gi.parse=ll,gi.stringify=rn,gi.ZeroSize=ho=new gi(0,0).ja(),gi.OneSize=Ba=new gi(1,1).ja(),gi.SixSize=Ws=new gi(6,6).ja(),gi.EightSize=Xa=new gi(8,8).ja(),gi.TenSize=la=new gi(10,10).ja(),gi.InfiniteSize=Ta=new gi(1/0,1/0).ja(),gi.NoSize=Ls=new gi(NaN,NaN).ja(),gi.parse=ll,gi.stringify=rn;function tn(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 Ge?(x=a.x,a=a.y,y instanceof Ge?(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 gi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Pt("Incorrect second argument supplied to Rect constructor "+y)):Pt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Be=tn.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 Ss(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},tn.prototype.copy=function(){var a=new tn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Be=tn.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)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function yu(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 tn(x,b,z,ee)}return new tn}function fl(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 tn?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 Dt.B(this.x,a.x)&&Dt.B(this.y,a.y)&&Dt.B(this.width,a.width)&&Dt.B(this.height,a.height)};function Vl(a,y){return Dt.$(a.x,y.x)&&Dt.$(a.y,y.y)&&Dt.$(a.width,y.width)&&Dt.$(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 is(this,y,a,y,a)},Be.Co=function(a){return is(this,a.top,a.right,a.bottom,a.left)},Be.Fv=function(a){return is(this,-a.top,-a.right,-a.bottom,-a.left)},Be.Hz=function(a,y,x,E){return is(this,a,y,x,E)};function is(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 kl(this,a.x,a.y,a.width,a.height)},Be.Uu=function(a,y,x,E){return kl(this,a,y,x,E)};function kl(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 Nl(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 ga(this,a.x,a.y,0,0)},Be.ed=function(a){return ga(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),ga(this,a,y,x,E)};function ga(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 gl(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 Vc(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},tn.alloc=function(){var a=xu.pop();return a===void 0?new tn:a},tn.allocAt=function(a,y,x,E){var b=xu.pop();return b===void 0?new tn(a,y,x,E):b.h(a,y,x,E)},tn.free=function(a){xu.push(a)},zt.Object.defineProperties(tn.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 Ge(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new gi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ge(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}}}),tn.prototype.isEmpty=tn.prototype.Mz,tn.prototype.isReal=tn.prototype.w,tn.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return Dt.Fx(a,y,x,E,b,z,ee,re)},tn.prototype.setSpot=tn.prototype.yi,tn.prototype.union=tn.prototype.Kv,tn.prototype.unionRect=tn.prototype.ed,tn.prototype.unionPoint=tn.prototype.Ye,tn.prototype.intersects=tn.prototype.Vu,tn.prototype.intersectsRect=tn.prototype.Yc,tn.prototype.intersect=tn.prototype.Uu,tn.prototype.intersectRect=tn.prototype.Ex,tn.prototype.grow=tn.prototype.Hz,tn.prototype.subtractMargin=tn.prototype.Fv,tn.prototype.addMargin=tn.prototype.Co,tn.prototype.inflate=tn.prototype.Bc,tn.prototype.offset=tn.prototype.offset,tn.prototype.contains=tn.prototype.contains,tn.prototype.containsRect=tn.prototype.Re,tn.prototype.containsPoint=tn.prototype.ca,tn.prototype.equalsApprox=tn.prototype.Xa,tn.prototype.equalTo=tn.prototype.hi,tn.prototype.equals=tn.prototype.D,tn.prototype.setSize=tn.prototype.tA,tn.prototype.setPoint=tn.prototype.dd,tn.prototype.set=tn.prototype.set,tn.prototype.setTo=tn.prototype.sg;var du=null,Su=null,xu=[];tn.className="Rect",tn.parse=yu,tn.stringify=fl,tn.contains=gl,tn.intersects=Vc,tn.ZeroRect=du=new tn(0,0,0,0).ja(),tn.NoRect=Su=new tn(NaN,NaN,NaN,NaN).ja(),tn.parse=yu,tn.stringify=fl,tn.contains=gl,tn.intersects=Vc;function oo(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):Pt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}oo.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},oo.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},oo.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},oo.prototype.copy=function(){var a=new oo;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Be=oo.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)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function xd(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 oo;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new oo(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new oo(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new oo(x,b):new oo(x,b,z,ee)}return new oo}function Ed(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 oo?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 Dt.B(this.top,a.top)&&Dt.B(this.right,a.right)&&Dt.B(this.bottom,a.bottom)&&Dt.B(this.left,a.left)},Be.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},oo.alloc=function(){var a=Nh.pop();return a===void 0?new oo:a},oo.free=function(a){Nh.push(a)},oo.prototype.isReal=oo.prototype.w,oo.prototype.equalsApprox=oo.prototype.Xa,oo.prototype.equalTo=oo.prototype.hi,oo.prototype.equals=oo.prototype.D,oo.prototype.set=oo.prototype.set,oo.prototype.setTo=oo.prototype.sg;var Bc=null,Od=null,Nh=[];oo.className="Margin",oo.parse=xd,oo.stringify=Ed,oo.ZeroMargin=Bc=new oo(0,0,0,0).ja(),oo.TwoMargin=Od=new oo(2,2,2,2).ja(),oo.parse=xd,oo.stringify=Ed;function ir(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 il,bl,wr,ao,ua,Dr,Bl,ku,xs,hu,ic,Ms,Tl,Gl,Yu,ed,Jd,Qh,Th,Id,Ol,rc,Il,Dc,Pd,Ul,qh,xf,wd,hh,Vu,_u,ul,ou,Oh,Qd;ir.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ir.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},ir.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ir.prototype.copy=function(){var a=new ir;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Be=ir.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)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function pl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function $h(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return il;if(a==="TopLeft")return bl;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return wr;if(a==="TopRight")return ao;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return ua;if(a==="Center")return Dr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Bl;if(a==="BottomLeft")return ku;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return xs;if(a==="BottomRight")return hu;if(a==="TopSide")return ic;if(a==="LeftSide")return Ms;if(a==="RightSide")return Tl;if(a==="BottomSide")return Gl;if(a==="TopBottomSides")return Yu;if(a==="LeftRightSides")return ed;if(a==="TopLeftSides")return Jd;if(a==="TopRightSides")return Qh;if(a==="BottomLeftSides")return Th;if(a==="BottomRightSides")return Id;if(a==="NotTopSide")return Ol;if(a==="NotLeftSide")return rc;if(a==="NotRightSide")return Il;if(a==="NotBottomSide")return Dc;if(a==="AllSides")return Pd;if(a==="Default")return Ul;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 ir(x,b,z,ee)}return new ir}function qd(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(il)?"None":this.D(bl)?"TopLeft":this.D(wr)?"Top":this.D(ao)?"TopRight":this.D(ua)?"Left":this.D(Dr)?"Center":this.D(Bl)?"Right":this.D(ku)?"BottomLeft":this.D(xs)?"Bottom":this.D(hu)?"BottomRight":this.D(ic)?"TopSide":this.D(Ms)?"LeftSide":this.D(Tl)?"RightSide":this.D(Gl)?"BottomSide":this.D(Yu)?"TopBottomSides":this.D(ed)?"LeftRightSides":this.D(Jd)?"TopLeftSides":this.D(Qh)?"TopRightSides":this.D(Th)?"BottomLeftSides":this.D(Id)?"BottomRightSides":this.D(Ol)?"NotTopSide":this.D(rc)?"NotLeftSide":this.D(Il)?"NotRightSide":this.D(Dc)?"NotBottomSide":this.D(Pd)?"AllSides":this.D(Ul)?"Default":"None"},Be.D=function(a){return a instanceof ir?(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 ir(.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(qh))a=Ms;else if(a.D(xf))a=Tl;else if(a.D(wd))a=ic;else if(a.D(hh))a=Gl;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},ir.alloc=function(){var a=Rd.pop();return a===void 0?new ir:a},ir.free=function(a){Rd.push(a)},ir.prototype.isDefault=ir.prototype.Xb,ir.prototype.isNone=ir.prototype.ys,ir.prototype.isSide=ir.prototype.$c,ir.prototype.isNoSpot=ir.prototype.Mc,ir.prototype.isSpot=ir.prototype.sb,ir.prototype.includesSide=ir.prototype.Hf,ir.prototype.opposite=ir.prototype.gv,ir.prototype.equals=ir.prototype.D,ir.prototype.set=ir.prototype.set,ir.prototype.setTo=ir.prototype.sg;var Rd=[];ir.className="Spot",ir.parse=$h,ir.stringify=qd,ir.None=il=pl(new ir(0,0,0,0),0).ja(),ir.Default=Ul=pl(new ir(0,0,-1,0),-1).ja(),ir.TopLeft=bl=new ir(0,0,0,0).ja(),ir.TopCenter=wr=new ir(.5,0,0,0).ja(),ir.TopRight=ao=new ir(1,0,0,0).ja(),ir.LeftCenter=ua=new ir(0,.5,0,0).ja(),ir.Center=Dr=new ir(.5,.5,0,0).ja(),ir.RightCenter=Bl=new ir(1,.5,0,0).ja(),ir.BottomLeft=ku=new ir(0,1,0,0).ja(),ir.BottomCenter=xs=new ir(.5,1,0,0).ja(),ir.BottomRight=hu=new ir(1,1,0,0).ja(),ir.MiddleTop=Vu=wr,ir.MiddleLeft=_u=ua,ir.MiddleRight=ul=Bl,ir.MiddleBottom=ou=xs,ir.Top=wd=wr,ir.Left=qh=ua,ir.Right=xf=Bl,ir.Bottom=hh=xs,ir.TopSide=ic=pl(new ir(0,0,1,1),1).ja(),ir.LeftSide=Ms=pl(new ir(0,0,1,2),1).ja(),ir.RightSide=Tl=pl(new ir(0,0,1,4),1).ja(),ir.BottomSide=Gl=pl(new ir(0,0,1,8),1).ja(),ir.TopBottomSides=Yu=pl(new ir(0,0,1,9),1).ja(),ir.LeftRightSides=ed=pl(new ir(0,0,1,6),1).ja(),ir.TopLeftSides=Jd=pl(new ir(0,0,1,3),1).ja(),ir.TopRightSides=Qh=pl(new ir(0,0,1,5),1).ja(),ir.BottomLeftSides=Th=pl(new ir(0,0,1,10),1).ja(),ir.BottomRightSides=Id=pl(new ir(0,0,1,12),1).ja(),ir.NotTopSide=Ol=pl(new ir(0,0,1,14),1).ja(),ir.NotLeftSide=rc=pl(new ir(0,0,1,13),1).ja(),ir.NotRightSide=Il=pl(new ir(0,0,1,11),1).ja(),ir.NotBottomSide=Dc=pl(new ir(0,0,1,7),1).ja(),ir.AllSides=Pd=pl(new ir(0,0,1,15),1).ja(),Oh=new ir(.156,.156).ja(),Qd=new ir(.844,.844).ja(),ir.parse=$h,ir.stringify=qd;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,ce=this.dy,ge=y*z+x*re+se,xe=y*ee+x*oe+ce,we=E*z+x*re+se,Fe=E*ee+x*oe+ce;return x=y*z+b*re+se,y=y*ee+b*oe+ce,z=E*z+b*re+se,E=E*ee+b*oe+ce,b=Math.min(ge,we),ge=Math.max(ge,we),we=Math.min(xe,Fe),xe=Math.max(xe,Fe),b=Math.min(b,x),ge=Math.max(ge,x),we=Math.min(we,y),xe=Math.max(xe,y),b=Math.min(b,z),ge=Math.max(ge,z),we=Math.min(we,E),xe=Math.max(xe,E),a.h(b,we,ge-b,xe-we),a},qr.alloc=function(){var a=Ih.pop();return a===void 0?new qr:a},qr.free=function(a){Ih.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 Ih=[];qr.className="Transform",qr.xF="54a702f3e53909c447824c6706603faf4c";var Dt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Dt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Dt.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,ce=E;else se=E,ce=y;if(a===x)return se<=ee&&ee<=ce&&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&&(ce+=b,se-=b,se<=ee&&ee<=ce))if(oe-re>ce-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,ce,ge){if(Dt.Yb(a,y,ee,re,ge,x,E)&&Dt.Yb(a,y,ee,re,ge,b,z))return Dt.Yb(a,y,ee,re,ge,se,ce);var xe=(a+x)/2,we=(y+E)/2,Fe=(x+b)/2,Ne=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(xe+Fe)/2,x=(we+Ne)/2,Fe=(Fe+b)/2,Ne=(Ne+z)/2;var Qe=(E+Fe)/2,Ve=(x+Ne)/2;return Dt.cs(a,y,xe,we,E,x,Qe,Ve,oe,se,ce,ge)||Dt.cs(Qe,Ve,Fe,Ne,b,z,ee,re,oe,se,ce,ge)},ax:function(a,y,x,E,b,z,ee,re,oe){var se=(x+b)/2,ce=(E+z)/2;return oe.h((((a+x)/2+se)/2+(se+(b+ee)/2)/2)/2,(((y+E)/2+ce)/2+(ce+(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 Mr(((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(Dt.Yb(a,y,ee,re,oe,x,E)&&Dt.Yb(a,y,ee,re,oe,b,z))ga(se,a,y,0,0),ga(se,ee,re,0,0);else{var ce=(a+x)/2,ge=(y+E)/2,xe=(x+b)/2,we=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ce+xe)/2,x=(ge+we)/2,xe=(xe+b)/2,we=(we+z)/2;var Fe=(E+xe)/2,Ne=(x+we)/2;Dt.Dl(a,y,ce,ge,E,x,Fe,Ne,oe,se),Dt.Dl(Fe,Ne,xe,we,b,z,ee,re,oe,se)}return se},Qe:function(a,y,x,E,b,z,ee,re,oe,se){if(Dt.Yb(a,y,ee,re,oe,x,E)&&Dt.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 ce=(a+x)/2,ge=(y+E)/2,xe=(x+b)/2,we=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ce+xe)/2,x=(ge+we)/2,xe=(xe+b)/2,we=(we+z)/2;var Fe=(E+xe)/2,Ne=(x+we)/2;Dt.Qe(a,y,ce,ge,E,x,Fe,Ne,oe,se),Dt.Qe(Fe,Ne,xe,we,b,z,ee,re,oe,se)}return se},jv:function(a,y,x,E,b,z,ee,re,oe,se){if(Dt.Yb(a,y,b,z,se,x,E))return Dt.Yb(a,y,b,z,se,re,oe);var ce=(a+x)/2,ge=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var xe=(ce+x)/2,we=(ge+E)/2;return Dt.jv(a,y,ce,ge,xe,we,ee,re,oe,se)||Dt.jv(xe,we,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(Dt.Yb(a,y,b,z,ee,x,E))ga(re,a,y,0,0),ga(re,b,z,0,0);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(oe+x)/2,ge=(se+E)/2;Dt.iv(a,y,oe,se,ce,ge,ee,re),Dt.iv(ce,ge,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(Dt.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 ce=(oe+x)/2,ge=(se+E)/2;Dt.ep(a,y,oe,se,ce,ge,ee,re),Dt.ep(ce,ge,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,oe,se,ce,ge,xe,we){if(Dt.Yb(a,y,ee,re,xe,x,E)&&Dt.Yb(a,y,ee,re,xe,b,z))return!Dt.Rl(a,y,ee,re,oe,se,ce,ge)||(xe=(a-ee)*(se-ge)-(y-re)*(oe-ce),xe===0)?!1:(we.h(((a*re-y*ee)*(oe-ce)-(a-ee)*(oe*ge-se*ce))/xe,((a*re-y*ee)*(se-ge)-(y-re)*(oe*ge-se*ce))/xe),!0);var Fe=(a+x)/2,Ne=(y+E)/2,Qe=(x+b)/2,Ve=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Fe+Qe)/2,x=(Ne+Ve)/2,Qe=(Qe+b)/2,Ve=(Ve+z)/2;var rt=(E+Qe)/2,at=(x+Ve)/2,ft=1/0,At=!1,Kt=0,Ei=0;return Dt.Eo(a,y,Fe,Ne,E,x,rt,at,oe,se,ce,ge,xe,we)&&(a=(we.x-oe)*(we.x-oe)+(we.y-se)*(we.y-se),a<ft&&(ft=a,At=!0,Kt=we.x,Ei=we.y)),Dt.Eo(rt,at,Qe,Ve,b,z,ee,re,oe,se,ce,ge,xe,we)&&(we.x-oe)*(we.x-oe)+(we.y-se)*(we.y-se)<ft&&(At=!0,Kt=we.x,Ei=we.y),At&&(we.x=Kt,we.y=Ei),At},Fo:function(a,y,x,E,b,z,ee,re,oe,se,ce,ge,xe){var we=0;if(Dt.Yb(a,y,ee,re,xe,x,E)&&Dt.Yb(a,y,ee,re,xe,b,z)){if(xe=(a-ee)*(se-ge)-(y-re)*(oe-ce),xe===0)return we;var Fe=((a*re-y*ee)*(oe-ce)-(a-ee)*(oe*ge-se*ce))/xe,Ne=((a*re-y*ee)*(se-ge)-(y-re)*(oe*ge-se*ce))/xe;if(Fe>=ce)return we;if((oe>ce?oe-ce:ce-oe)<(se>ge?se-ge:ge-se)){if(y<re?(oe=y,a=re):(oe=re,a=y),Ne<oe||Ne>a)return we}else if(a<ee?(oe=a,a=ee):oe=ee,Fe<oe||Fe>a)return we;0<xe?we++:0>xe&&we--}else{Fe=(a+x)/2,Ne=(y+E)/2;var Qe=(x+b)/2,Ve=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Fe+Qe)/2,x=(Ne+Ve)/2,Qe=(Qe+b)/2,Ve=(Ve+z)/2;var rt=(E+Qe)/2,at=(x+Ve)/2;we+=Dt.Fo(a,y,Fe,Ne,E,x,rt,at,oe,se,ce,ge,xe),we+=Dt.Fo(rt,at,Qe,Ve,b,z,ee,re,oe,se,ce,ge,xe)}return we},qh:function(a,y,x,E,b,z,ee){return Dt.$(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)):Dt.$(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 Dt.B(a,x)&&Dt.B(y,E)?(oe.h(a,y),!1):Dt.$(b,ee)?Dt.$(a,x)?(Dt.qh(a,y,x,E,b,z,oe),!1):Dt.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),Dt.$(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),Dt.$(re,ee)?(Dt.qh(a,y,x,E,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),Dt.$(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)):Dt.qh(a,y,x,E,b,ee*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return Dt.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 ce(Qe,Ve){var rt=(Qe-a)*(Qe-a)+(Ve-y)*(Ve-y);rt<ge&&(ge=rt,oe.h(Qe,Ve))}var ge=1/0;ce(oe.x,oe.y);var xe=0,we=0,Fe=0,Ne=0;if(b<ee?(xe=b,we=ee):(xe=ee,we=b),z<re?(Fe=b,Ne=ee):(Fe=ee,Ne=b),xe=(we-xe)/2+se,se=(Ne-Fe)/2+se,b=(b+ee)/2,z=(z+re)/2,xe===0||se===0)return oe;if(.5>(x>a?x-a:a-x)){if(xe=1-(x-b)*(x-b)/(xe*xe),0>xe)return oe;xe=Math.sqrt(xe),E=-se*xe+z,ce(x,se*xe+z),ce(x,E)}else{if(x=(E-y)/(x-a),E=1/(xe*xe)+x*x/(se*se),re=2*x*(y-x*a)/(se*se)-2*x*z/(se*se)-2*b/(xe*xe),xe=re*re-4*E*(2*x*a*z/(se*se)-2*y*z/(se*se)+z*z/(se*se)+b*b/(xe*xe)-1+(y-x*a)*(y-x*a)/(se*se)),0>xe)return oe;xe=Math.sqrt(xe),se=(-re+xe)/(2*E),ce(se,x*se-x*a+y),xe=(-re-xe)/(2*E),ce(xe,x*xe-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ee,re,oe){var se=1e21,ce=a,ge=y;if(Dt.Ve(a,y,a,E,b,z,ee,re,oe)){var xe=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);xe<se&&(se=xe,ce=oe.x,ge=oe.y)}return Dt.Ve(x,y,x,E,b,z,ee,re,oe)&&(xe=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),xe<se&&(se=xe,ce=oe.x,ge=oe.y)),Dt.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,ce=oe.x,ge=oe.y)),Dt.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,ce=oe.x,ge=oe.y)),oe.h(ce,ge),1e21>se},us:function(a,y,x){return Dt.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):!!(gl(a,y,x,E,b,z)||gl(a,y,x,E,ee,re)||Dt.Rl(a,y,oe,y,b,z,ee,re)||Dt.Rl(oe,y,oe,se,b,z,ee,re)||Dt.Rl(oe,se,a,se,b,z,ee,re)||Dt.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>=Dt.Fl(a,y,x,E,b,z)*Dt.Fl(a,y,x,E,ee,re)&&0>=Dt.Fl(b,z,ee,re,a,y)*Dt.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(Dt.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,ce=se+ee*ee+oe*re;return se=4/3*(Math.sqrt(2*se*ce)-ce)/(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),Dt.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 ce=a/(y+b),ge=ee/(y+z);if(ce=ce*ce+ge*ge-1,0<ce)re=y;else if(0>ce)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 Jt,um:new Jt,Mf:new Jt,Nf:0,vm:100};Dt.za=Dt.AA;function si(a){Or(this),this.l=2,a===void 0&&(a=si.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===si.o?this.ee=new an:(si.V===null&&(si.V=new an().freeze()),this.ee=si.V),this.aq=this.ee.Ja,this.Ip=new tn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=bl,this.gg=hu,this.Rk=this.Sk=NaN,this.Uf=Kn}si.prototype.copy=function(){var a=new si;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===si.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},si.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},si.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==si.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},si.prototype.ka=function(){if(Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==si.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},si.prototype.Xa=function(a){if(!(a instanceof si))return!1;if(this.type!==a.type)return this.type===si.j&&a.type===si.o?ef(this,a):a.type===si.j&&this.type===si.o?ef(a,this):!1;if(this.type===si.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 Dt.B(this.startX,a.startX)&&Dt.B(this.startY,a.startY)&&Dt.B(this.endX,a.endX)&&Dt.B(this.endY,a.endY)};function ef(a,y){return a.type!==si.j||y.type!==si.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Dt.B(a.startX,y.startX)&&Dt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Oa&&Dt.B(a.endX,y.endX)&&Dt.B(a.endY,y.endY))))}si.ia=function(a){return a.toString()},si.prototype.qb=function(a){a.classType===si&&(this.type=a)},si.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case si.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 si.u:var y=new tn(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 si.F:if(y=new tn(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 si.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()}},si.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},si.parse=function(a,y){function x(){return Ne>=ft-1?!0:se[Ne+1].match(At)!==null}function E(){return Ne++,se[Ne]}function b(jr){var Fr=parseFloat(E()),ra=parseFloat(E());Qe===Qe.toLowerCase()&&(Fr=at.x+Fr,ra=at.y+ra),jr.h(Fr,ra)}function z(){return b(at),at}function ee(){return b(rt),rt}function re(){var jr=Ve.toLowerCase();return jr!=="c"&&jr!=="s"&&jr!=="q"&&jr!=="t"?at:new Ge(2*at.x-rt.x,2*at.y-rt.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 ce=se[a];if(ce.match(/(\.[0-9]*)(\.)/gm)!==null){oe=Ri();for(var ge="",xe=!1,we=0;we<ce.length;we++){var Fe=ce[we];Fe!=="."||xe?Fe==="."?(oe.push(ge),ge="."):ge+=Fe:(xe=!0,ge+=Fe)}for(oe.push(ge),se.splice(a,1),ce=0;ce<oe.length;ce++)se.splice(a+ce,0,oe[ce]);a+=oe.length-1,ai(oe)}}var Ne=-1,Qe="",Ve="";oe=new Ge(0,0);var rt=new Ge(0,0),at=new Ge(0,0),ft=se.length;a=_1(null),xe=ge=ce=!1,we=!0,Fe=null;for(var At=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ne>=ft-1);)if(Ve=Qe,Qe=E(),Qe!=="")switch(Qe.toUpperCase()){case"X":we=!0,ge=ce=!1;break;case"M":for(Fe=z(),a.mc===null||we===!0?(Fp(a,Fe.x,Fe.y,ce,!ge,xe),we=!1):a.moveTo(Fe.x,Fe.y),oe.assign(at);!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();)at=new Ge((Qe===Qe.toLowerCase()?at.x:0)+parseFloat(E()),at.y),a.lineTo(at.x,at.y);break;case"V":for(;!x();)at=new Ge(at.x,(Qe===Qe.toLowerCase()?at.y:0)+parseFloat(E())),a.lineTo(at.x,at.y);break;case"C":for(;!x();){Fe=new Ge,b(Fe);var Kt=ee(),Ei=z();Rf(a,Fe.x,Fe.y,Kt.x,Kt.y,Ei.x,Ei.y)}break;case"S":for(;!x();)Fe=re(),Kt=ee(),Ei=z(),Rf(a,Fe.x,Fe.y,Kt.x,Kt.y,Ei.x,Ei.y);break;case"Q":for(;!x();)Fe=ee(),Kt=z(),x0(a,Fe.x,Fe.y,Kt.x,Kt.y);break;case"T":for(;!x();)rt=Fe=re(),Kt=z(),x0(a,Fe.x,Fe.y,Kt.x,Kt.y);break;case"B":for(;!x();){Fe=parseFloat(E()),Kt=parseFloat(E()),Ei=parseFloat(E());var zi=parseFloat(E()),Ni=parseFloat(E()),ri=Ni,Mn=!1;x()||(ri=parseFloat(E()),x()||(Mn=parseFloat(E())!==0)),Qe===Qe.toLowerCase()&&(Ei+=at.x,zi+=at.y),a.arcTo(Fe,Kt,Ei,zi,Ni,ri,Mn)}break;case"A":for(;!x();)Fe=Math.abs(parseFloat(E())),Kt=Math.abs(parseFloat(E())),Ei=parseFloat(E()),Ni=zi=!1,Mn=ri=0,ri=E(),ri.length===1?(zi=!!parseFloat(ri),Ni=!!parseFloat(E()),ri=parseFloat(E())):ri.length===2?(zi=!!parseFloat(ri[0]),Ni=!!parseFloat(ri[1]),ri=parseFloat(E())):(zi=!!parseFloat(ri[0]),Ni=!!parseFloat(ri[1]),ri=parseFloat(ri.slice(2))),Mn=parseFloat(E()),Qe===Qe.toLowerCase()&&(ri=at.x+ri,Mn=at.y+Mn),at.h(ri,Mn),Nx(a,Fe,Kt,Ei,zi,Ni,ri,Mn);break;case"Z":kx(a),at.assign(oe);break;case"F":for(Fe="",Kt=1;se[Ne+Kt];)if(se[Ne+Kt]==="0")xe=!0,Kt++;else if(se[Ne+Kt].match(/[Uu]/)!==null)Kt++;else if(se[Ne+Kt].match(At)===null)Kt++;else{Fe=se[Ne+Kt];break}Fe.match(/[Mm]/)?ce=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Fe="",Kt=1;se[Ne+Kt];)if(se[Ne+Kt].match(/[Ff]/)!==null)Kt++;else if(se[Ne+Kt].match(At)===null)Kt++;else{Fe=se[Ne+Kt];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},si.Ha=function(a,y){for(var x=a.length,E=Ge.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}Ge.free(E)},si.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===si.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},si.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===si.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),Rh(this,a,!1),ga(a,0,0,0,0),a.freeze()},si.prototype.ix=function(){var a=new tn;return Rh(this,a,!0),a};function Rh(a,y,x){switch(a.type){case si.j:case si.u:case si.F:x?y.h(a.od,a.pd,0,0):ga(y,a.od,a.pd,0,0),ga(y,a.Dc,a.Ec,0,0);break;case si.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):ga(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,se=z.startY,ce=0;ce<re;ce++){var ge=ee[ce];switch(ge.type){case Oa:case tl:oe=ge.endX,se=ge.endY,ga(y,oe,se,0,0);break;case ml:Dt.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 We:Dt.iv(oe,se,ge.point1X,ge.point1Y,ge.endX,ge.endY,.5,y),oe=ge.endX,se=ge.endY;break;case Ze:case $e:var xe=ge.type===Ze?au(ge,z):Xu(ge,z,oe,se),we=xe.length;if(we===0){oe=ge.type===Ze?ge.centerX:ge.endX,se=ge.type===Ze?ge.centerY:ge.endY,ga(y,oe,se,0,0);break}ge=null;for(var Fe=0;Fe<we;Fe++)ge=xe[Fe],Dt.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:Pt("Unknown Segment type: "+ge.type)}}}break;default:Pt("Unknown Geometry type: "+a.type)}}si.prototype.normalize=function(){this._isFrozen&&Di(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ge(-a.x,-a.y)},si.prototype.offset=function(a,y){return this._isFrozen&&Di(this),this.transform(1,0,0,1,a,y),this},si.prototype.scale=function(a,y){return this._isFrozen&&Di(this),this.transform(a,0,0,y,0,0),this},si.prototype.rotate=function(a,y,x){this._isFrozen&&Di(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=si.prototype,Be.transform=function(a,y,x,E,b,z){switch(this.type){case si.j:case si.u:case si.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 si.o:for(var oe=this.figures.s,se=oe.length,ce=0;ce<se;ce++){var ge=oe[ce];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 xe=ge.length,we=0;we<xe;we++){var Fe=ge[we];switch(Fe.type){case Oa:case tl:ee=Fe.endX,re=Fe.endY,Fe.endX=ee*a+re*x+b,Fe.endY=ee*y+re*E+z;break;case ml: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 We: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 Ze: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 $e: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:Pt("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 si.j:return Dt.Yb(x,E,b,z,y,a.x,a.y);case si.u:var ee=tn.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),tn.free(ee),a;case si.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 si.o:return cd(this,a,y,!0,!1);default:return!1}};function cd(a,y,x,E,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,se,ce,ge,xe=a.figures.s,we=xe.length,Fe=0;Fe<we;Fe++){var Ne=xe[Fe],Qe=!Ne.isEvenOdd;if(Ne.isFilled){if(E&&Ne.ca(z,y,x))return!0;var Ve=Ne.segments;oe=Ne.startX,se=Ne.startY;for(var rt=oe,at=se,ft=Ve.s,At=0;At<=Ve.length;At++){var Kt=void 0;if(At!==Ve.length){Kt=ft[At];var Ei=Kt.type;a=Kt.endX,ge=Kt.endY}else Ei=Oa,a=rt,ge=at;switch(Ei){case tl:if(rt=hc(z,y,ee,y,oe,se,rt,at),isNaN(rt))return!0;re+=rt,rt=a,at=ge;break;case Oa:if(oe=hc(z,y,ee,y,oe,se,a,ge),isNaN(oe))return!0;re+=oe;break;case ml:ce=Dt.Fo(oe,se,Kt.point1X,Kt.point1Y,Kt.point2X,Kt.point2Y,a,ge,ee,y,z,y,.5),re+=ce;break;case We:ce=Dt.Fo(oe,se,(oe+2*Kt.point1X)/3,(se+2*Kt.point1Y)/3,(2*Kt.point1X+a)/3,(2*Kt.point1Y+ge)/3,a,ge,ee,y,z,y,.5),re+=ce;break;case Ze:case $e:Ei=Kt.type===Ze?au(Kt,Ne):Xu(Kt,Ne,oe,se);var zi=Ei.length;if(zi===0){if(oe=hc(z,y,ee,y,oe,se,Kt.type===Ze?Kt.centerX:Kt.endX,Kt.type===Ze?Kt.centerY:Kt.endY),isNaN(oe))return!0;re+=oe;break}Kt=null;for(var Ni=0;Ni<zi;Ni++){if(Kt=Ei[Ni],Ni===0){if(ce=hc(z,y,ee,y,oe,se,Kt[0],Kt[1]),isNaN(ce))return!0;re+=ce}ce=Dt.Fo(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],ee,y,z,y,.5),re+=ce}Kt!==null&&(a=Kt[6],ge=Kt[7]);break;default:Pt("Unknown Segment type: "+Kt.type)}oe=a,se=ge}if(Qe){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Ne.ca(z,y,b?x:x+2))return!0}return!1}function hc(a,y,x,E,b,z,ee,re){if(Dt.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 Au(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 Ge),this.type===si.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 ce=oe[a];if(ee+ce>=z)return E=z-ee,E=ce===0?0:E/ce,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=ce}}return y},Be.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===si.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===si.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 ce=oe[a];if(ee+ce>=z)return E=z-ee,E=ce===0?0:E/ce,ce=x[re],x=ce[2*a],re=ce[2*a+1],b=ce[2*a+2],a=ce[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=ce}}return y},Be.xx=function(a){if(this.type===si.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=Ge.alloc();return Dt.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,Ge.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===si.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=Ge.alloc(),b=1/0,re=ee=0,oe=y.length;for(var ce=se=0,ge=0;ge<oe;ge++)for(var xe=y[ge],we=x[ge],Fe=xe.length,Ne=0;Ne<Fe;Ne+=2){var Qe=xe[Ne],Ve=xe[Ne+1];if(Ne!==0){Dt.qh(se,ce,Qe,Ve,a.x,a.y,E);var rt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);rt<b&&(b=rt,ee=re,ee+=Math.sqrt((E.x-se)*(E.x-se)+(E.y-ce)*(E.y-ce))),re+=we[(Ne-2)/2]}se=Qe,ce=Ve}return Ge.free(E),a=ee/z,0>a?0:1<a?1:a}return 0};function Gc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===si.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===si.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===si.F){var z=new el;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Zo(Ze);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=au(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];Dt.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(tf(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,ce=se.length,ge=0;ge<ce;ge++){var xe=se[ge];switch(xe.type){case tl:4<=E.length&&(y.push(E),x.push(tf(E))),E=[],E.push(xe.endX),E.push(xe.endY),ee=xe.endX,z=xe.endY,re=ee,oe=z;break;case Oa:E.push(xe.endX),E.push(xe.endY),ee=xe.endX,z=xe.endY;break;case ml:Dt.Qe(ee,z,xe.point1X,xe.point1Y,xe.point2X,xe.point2Y,xe.endX,xe.endY,.5,E),ee=xe.endX,z=xe.endY;break;case We:Dt.ep(ee,z,xe.point1X,xe.point1Y,xe.endX,xe.endY,.5,E),ee=xe.endX,z=xe.endY;break;case Ze:var we=au(xe,b),Fe=we.length;if(Fe===0){E.push(xe.centerX),E.push(xe.centerY),ee=xe.centerX,z=xe.centerY;break}for(var Ne=0;Ne<Fe;Ne++){var Qe=we[Ne];Dt.Qe(ee,z,Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,E),ee=Qe[6],z=Qe[7]}break;case $e:if(we=Xu(xe,b,ee,z),Fe=we.length,Ne=xe.endX,Qe=xe.endY,Fe===0){E.push(Ne),E.push(Qe),ee=Ne,z=Qe;break}for(Ne=0;Ne<Fe;Ne++)Qe=we[Ne],Dt.Qe(ee,z,Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,E),ee=Qe[6],z=Qe[7];break;default:Pt("Segment not of valid type: "+xe.type)}xe.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(tf(E)))}}}function tf(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(za(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&&Di(this),this.fg=new ir(a,y,b,z).freeze(),this.gg=new ir(x,E,ee,re).freeze(),this},zt.Object.defineProperties(si.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 Gc(this),this.tk}},flattenedLengths:{get:function(){return Gc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===si.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===si.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&&Di(this,a),this.na=a,a===si.o?this.ee=new an:(si.V===null&&(si.V=new an().freeze()),this.ee=si.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Di(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Di(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Di(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Di(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Di(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Di(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Di(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Di(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),si.prototype.setSpots=si.prototype.pm,si.prototype.add=si.prototype.add,si.prototype.getFractionForPoint=si.prototype.xx,si.prototype.getPointAndAngleAlongPath=si.prototype.Qu,si.prototype.getAngleAlongPath=si.prototype.wx,si.prototype.getPointAlongPath=si.prototype.Pu,si.prototype.containsPoint=si.prototype.ca,si.prototype.transform=si.prototype.transform,si.prototype.rotate=si.prototype.rotate,si.prototype.scale=si.prototype.scale,si.prototype.offset=si.prototype.offset,si.prototype.normalize=si.prototype.normalize,si.prototype.computeBoundsWithoutOrigin=si.prototype.ix,si.prototype.equalsApprox=si.prototype.Xa,si.className="Geometry",si.j=new on(si,"Line",0),si.u=new on(si,"Rectangle",1),si.F=new on(si,"Ellipse",2),si.o=new on(si,"Path",3),si.V=null,si.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",si.className="Geometry",si.stringify=si.ia,si.fillPath=si.nb,si.parse=si.parse,si.Line=si.j,si.Rectangle=si.u,si.Ellipse=si.F,si.Path=si.o;function el(a,y,x,E,b){Or(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 an,this.sr=this.pl.Ja,this.fw=null}el.prototype.copy=function(){var a=new el;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=el.prototype,Be.Xa=function(a){if(!(a instanceof el&&Dt.B(this.startX,a.startX)&&Dt.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 ce=re[se];switch(ce.type){case tl:z=ce.endX,ee=ce.endY,E=ce.endX,b=ce.endY;break;case Oa:if(Dt.Yb(E,b,ce.endX,ce.endY,x,a,y))return!0;E=ce.endX,b=ce.endY;break;case ml:if(Dt.cs(E,b,ce.point1X,ce.point1Y,ce.point2X,ce.point2Y,ce.endX,ce.endY,.5,a,y,x))return!0;E=ce.endX,b=ce.endY;break;case We:if(Dt.jv(E,b,ce.point1X,ce.point1Y,ce.endX,ce.endY,.5,a,y,x))return!0;E=ce.endX,b=ce.endY;break;case Ze:case $e:var ge=ce.type===Ze?au(ce,this):Xu(ce,this,E,b),xe=ge.length,we=ce.type===Ze?ce.centerX:ce.endX,Fe=ce.type===Ze?ce.centerY:ce.endY;if(xe===0){if(Dt.Yb(E,b,we,Fe,x,a,y))return!0;E=we,b=Fe;break}for(we=null,Fe=0;Fe<xe;Fe++)if(we=ge[Fe],Fe===0&&Dt.Yb(E,b,we[0],we[1],x,a,y)||Dt.cs(we[0],we[1],we[2],we[3],we[4],we[5],we[6],we[7],.5,a,y,x))return!0;we!==null&&(E=we[6],b=we[7]);break;default:Pt("Unknown Segment type: "+ce.type)}if(ce.isClosed&&(E!==z||b!==ee)&&Dt.Yb(E,b,z,ee,x,a,y))return!0}return!1},zt.Object.defineProperties(el.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&&Di(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Di(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Di(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Di(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Di(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Di(this,a),this.pl=a,this._isInvalidBounds=!0}}}),el.prototype.add=el.prototype.add,el.prototype.equalsApprox=el.prototype.Xa,el.className="PathFigure";function Zo(a,y,x,E,b,z,ee,re){Or(this),a===void 0&&(a=Oa),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===$e?(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===Ze&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===Ze&&(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 tl:case Oa:return Dt.B(this.endX,a.endX)&&Dt.B(this.endY,a.endY);case ml:return Dt.B(this.endX,a.endX)&&Dt.B(this.endY,a.endY)&&Dt.B(this.point1X,a.point1X)&&Dt.B(this.point1Y,a.point1Y)&&Dt.B(this.point2X,a.point2X)&&Dt.B(this.point2Y,a.point2Y);case We:return Dt.B(this.endX,a.endX)&&Dt.B(this.endY,a.endY)&&Dt.B(this.point1X,a.point1X)&&Dt.B(this.point1Y,a.point1Y);case Ze:return Dt.B(this.startAngle,a.startAngle)&&Dt.B(this.sweepAngle,a.sweepAngle)&&Dt.B(this.centerX,a.centerX)&&Dt.B(this.centerY,a.centerY)&&Dt.B(this.radiusX,a.radiusX)&&Dt.B(this.radiusY,a.radiusY);case $e:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Dt.B(this.xAxisRotation,a.xAxisRotation)&&Dt.B(this.endX,a.endX)&&Dt.B(this.endY,a.endY)&&Dt.B(this.radiusX,a.radiusX)&&Dt.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 tl:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Oa:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ml:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case We: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 Ze: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 $e: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 au(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=Dt.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),si.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 Xu(a,y,x,E){function b(Ne,Qe,Ve,rt){return(Ne*rt<Qe*Ve?-1:1)*Math.acos((Ne*Ve+Qe*rt)/(Math.sqrt(Ne*Ne+Qe*Qe)*Math.sqrt(Ve*Ve+rt*rt)))}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,ce=a.Ec,ge=Math.cos(ee),xe=Math.sin(ee),we=ge*(x-se)/2+xe*(E-ce)/2;ee=-xe*(x-se)/2+ge*(E-ce)/2;var Fe=we*we/(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*we*we)/(y*y*ee*ee+z*z*we*we)),isNaN(Fe)&&(Fe=0),re=Fe*y*ee/z,Fe=Fe*-z*we/y,isNaN(re)&&(re=0),isNaN(Fe)&&(Fe=0),x=(x+se)/2+ge*re-xe*Fe,E=(E+ce)/2+xe*re+ge*Fe,ce=b(1,0,(we-re)/y,(ee-Fe)/z),ge=(we-re)/y,se=(ee-Fe)/z,we=(-we-re)/y,re=(-ee-Fe)/z,ee=b(ge,se,we,re),we=(ge*we+se*re)/(Math.sqrt(ge*ge+se*se)*Math.sqrt(we*we+re*re)),-1>=we?ee=Math.PI:1<=we&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,we=y>z?z/y:1,y=Dt.jx(0,0,y>z?y:z,ce,ce+ee,!0),z=qr.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,we),si.Ha(y,z),qr.free(z),a.ae=y,a.ae}zt.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&&Di(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Di(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Di(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Di(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Di(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Di(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Di(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Di(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Di(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&En(a,">= zero",Zo,"radiusX"),this._isFrozen&&Di(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&En(a,">= zero",Zo,"radiusY"),this._isFrozen&&Di(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Di(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&&Di(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&&Di(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&&Di(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&&Di(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Zo.prototype.equalsApprox=Zo.prototype.Xa;var tl=new on(Zo,"Move",0),Oa=new on(Zo,"Line",1),ml=new on(Zo,"Bezier",2),We=new on(Zo,"QuadraticBezier",3),Ze=new on(Zo,"Arc",4),$e=new on(Zo,"SvgArc",4);Zo.className="PathSegment",Zo.Move=tl,Zo.Line=Oa,Zo.Bezier=ml,Zo.QuadraticBezier=We,Zo.Arc=Ze,Zo.SvgArc=$e;function jt(){this.H=null,this.xu=new Ge(0,0).freeze(),this.mt=new Ge(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}jt.prototype.copy=function(){var a=new jt;return this.clone(a)},jt.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},jt.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},jt.prototype.So=function(a,y){var x=this.diagram;return x===null||yo(x,a,y),y},jt.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(yo(x,a,y),y.assign(x.Ps(y))),y},zt.Object.defineProperties(jt.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}}}),jt.prototype.getMultiTouchDocumentPoint=jt.prototype.Bz,jt.prototype.getMultiTouchViewPoint=jt.prototype.So,jt.className="InputEvent";function Gt(){this.H=null,this.xa="",this.ar=this.Lr=null}Gt.prototype.copy=function(){var a=new Gt;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Gt.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},zt.Object.defineProperties(Gt.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}}}),Gt.className="DiagramEvent";function Sn(){this.Fm=Hn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Sn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Sn.prototype.copy=function(){var a=new Sn;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=Mt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Mt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Mt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Mt(y)&&typeof y.J=="function"?y.J():y,a},Sn.prototype.qb=function(a){a.classType===Sn&&(this.change=a)},Sn.prototype.toString=function(){var a="";return a=this.change===Pn?a+"* ":this.change===Hn?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===Pn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Jr(this.object)),this.oldValue!==null&&(a+=" old: "+Jr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Jr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Sn.prototype.I=function(a){return a?this.oldValue:this.newValue},Sn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Sn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Sn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Sn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Sn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},zt.Object.defineProperties(Sn.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===Pn&&(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}}}),Sn.prototype.redo=Sn.prototype.redo,Sn.prototype.canRedo=Sn.prototype.canRedo,Sn.prototype.undo=Sn.prototype.undo,Sn.prototype.canUndo=Sn.prototype.canUndo,Sn.prototype.getParam=Sn.prototype.Dz,Sn.prototype.getValue=Sn.prototype.I,Sn.prototype.clear=Sn.prototype.clear;var Pn=new on(Sn,"Transaction",-1),Hn=new on(Sn,"Property",0),ni=new on(Sn,"Insert",1),yi=new on(Sn,"Remove",2);Sn.className="ChangedEvent",Sn.Transaction=Pn,Sn.Property=Hn,Sn.Insert=ni,Sn.Remove=yi;function $i(){this.o=new an().freeze(),this.xa="",this.j=!1}$i.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},$i.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()},$i.prototype.canUndo=function(){return this.isComplete},$i.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()}},$i.prototype.canRedo=function(){return this.isComplete},$i.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()}},$i.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new hi,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Hn&&E.object){var b=y.get(E.object);b||(b=new hi,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()}},zt.Object.defineProperties($i.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}}}),$i.prototype.optimize=$i.prototype.ak,$i.prototype.redo=$i.prototype.redo,$i.prototype.canRedo=$i.prototype.canRedo,$i.prototype.undo=$i.prototype.undo,$i.prototype.canUndo=$i.prototype.canUndo,$i.prototype.clear=$i.prototype.clear,$i.className="Transaction";function mi(){this.Pt=new In,this.Jd=!1,this.u=new an().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new an().freeze(),this.hl=new an,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}mi.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},mi.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},mi.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Be=mi.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=""),Gi(this,!0,a)},Be.Kf=function(){return Gi(this,!1,"")};function Gi(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Yn("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()}},mi.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},mi.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){Yn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},mi.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},mi.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){Yn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},mi.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Sn;for(E.change=Pn,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},mi.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new $i);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||Yn("Change not within a transaction: "+x.toString()))}},mi.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},zt.Object.defineProperties(mi.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}}}),mi.prototype.handleChanged=mi.prototype.Tu,mi.prototype.redo=mi.prototype.redo,mi.prototype.undo=mi.prototype.undo,mi.prototype.canUndo=mi.prototype.canUndo,mi.prototype.discardHistoryAfterIndex=mi.prototype.lx,mi.prototype.rollbackTransaction=mi.prototype.Kf,mi.prototype.commitTransaction=mi.prototype.eb,mi.prototype.startTransaction=mi.prototype.Ea,mi.prototype.removeModel=mi.prototype.Rx,mi.prototype.addModel=mi.prototype.Xw,mi.prototype.clear=mi.prototype.clear,mi.className="UndoManager";function ci(){Or(this),this.H=lt,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new jt,this.Zr=-1}ci.prototype.toString=function(){return this.name!==""?this.name+" Tool":Ti(this.constructor)},ci.prototype.updateAdornments=function(){},ci.prototype.canStart=function(){return this.isEnabled},ci.prototype.doStart=function(){},ci.prototype.doActivate=function(){this.isActive=!0},ci.prototype.doDeactivate=function(){this.isActive=!1},ci.prototype.doStop=function(){},ci.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},ci.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},ci.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},ci.prototype.doMouseMove=function(){},ci.prototype.doMouseUp=function(){this.stopTool()},ci.prototype.doMouseWheel=function(){},ci.prototype.canStartMultiTouch=function(){return!0},ci.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ge.allocAt(NaN,NaN)),E=y.So(1,Ge.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}Ge.free(x),Ge.free(E)},ci.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ge.allocAt(NaN,NaN)),E=y.So(1,Ge.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 Ge((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}Ge.free(x),Ge.free(E)},ci.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},ci.prototype.doKeyUp=function(){},ci.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},ci.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},ci.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(co?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||(co?y.meta:y.control)||y.shift||a.clearSelection()}},ci.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,hr(a,E,x),E.handled};function hr(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)}}}ci.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}},ci.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},ci.prototype.doCurrentObjectChanged=function(){},ci.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===so&&!y.shift||b===cr&&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===so&&y.shift||b===cr&&!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)}}},ci.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},ci.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=br(function(){x.doWaitAfter(E)},a)},ci.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Zn.clearTimeout(this.Zr),this.Zr=-1},ci.prototype.doWaitAfter=function(){},ci.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof ta);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},ci.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},zt.Object.defineProperties(ci.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ht&&(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}}}),ci.prototype.startTransaction=ci.prototype.Ea,ci.className="Tool";function Un(){ci.call(this),this.name="ToolManager",this.hb=new an,this.ob=new an,this.Hb=new an,this.F=this.V=850,this.o=new gi(2,2).ja(),this.Ha=5e3,this.ia=cr,this.u=fo,this.Mp=this.j=null,this.zj=-1}_t(Un,ci),Un.prototype.initializeStandardTools=function(){},Un.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ta&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Un.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===vo&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===uo){y.bubbles=!0;return}if(this.gestureBehavior===vo)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===cr?this.mouseWheelBehavior=so:this.mouseWheelBehavior===so&&(this.mouseWheelBehavior=cr)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Un.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===uo){y.bubbles=!0;return}if(this.gestureBehavior===vo)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}}ji(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function ji(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Un.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof ta&&(y===a||y.rg(a))||this.hideToolTip()},Un.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()))},Un.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)},Un.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 ta)||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()},Un.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof ta){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&&(Zn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=br(function(){b.hideToolTip()},a)}},Un.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}},Un.prototype.hideToolTip=function(){this.zj!==-1&&(Zn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof ta?(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)},Un.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()},Un.prototype.doMouseWheel=function(){this.standardMouseWheel()},Un.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Un.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Un.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},Un.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},Un.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)},zt.Object.defineProperties(Un.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 ta?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}}}),Un.prototype.replaceStandardTool=Un.prototype.gb;var cr=new on(Un,"WheelScroll",0),so=new on(Un,"WheelZoom",1),Zr=new on(Un,"WheelNone",2),fo=new on(Un,"GestureZoom",3),vo=new on(Un,"GestureCancel",4),uo=new on(Un,"GestureNone",5);Un.className="ToolManager",Un.WheelScroll=cr,Un.WheelZoom=so,Un.WheelNone=Zr,Un.GestureZoom=fo,Un.GestureCancel=vo,Un.GestureNone=uo;function tr(){ci.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 Ge(NaN,NaN),this.Fr=new Ge,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new In().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ca;_t(tr,ci),tr.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},tr.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},tr.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,(co?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},tr.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),Ma=null,this.isActive=!0,this.tl.set(a.position),ia(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&&xi(a),Ko(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ma=this,Vs=this.diagram,this.doSimulatedDragOut()))};function ia(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof oi?(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 pa,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}tr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},tr.prototype.Pd=function(a){return a===void 0?new bd(To):this.isGridSnapEnabled?new bd(new Ge(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new bd(a.copy())},tr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Io(this),ts(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ca.count){for(var y=Ca,x=y.length,E=0;E<x;E++){var b=y.M(E);js(b),Ja(b),Io(b),b.diagram.ug()}y.clear()}js(this),this.tl.h(NaN,NaN),Vs!==null&&(Vs.currentCursor=""),Ma=Vs=null,Ja(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Fn(a,!0)},tr.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Io(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,ks(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function cs(){var a=Ma;Ja(a),Ga(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}tr.prototype.doCancel=function(){Ja(this),Ga(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},tr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},tr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function $a(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")):Ga(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 hi,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 oi&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,ia(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,zf(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 oi&&(x.value.point=new Ge(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 es(a,y,x){var E=a.diagram,b=a.startPoint,z=Ge.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Ge.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(xi(E),E.hk())}tr.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&pr(E,a,y,this.dragOptions,x)};function Ga(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 oi&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),zf(E,-b.x,-b.y)}y.bd()}}function ss(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),zs(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=ks(a,b,E),!a.isActive&&Ma===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof _r)){var oe=x.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Ma===null||(a.doDragOver(y,E),!a.isActive&&Ma===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)}tr.prototype.findDragOverObject=function(a){var y=this;return ma(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof ta||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},tr.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 ks(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&&Ma===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=_s(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 _s(a){var y=a.panel;return y!==null?y:a instanceof ar&&!(a instanceof _r)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function ds(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=Ge.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(Dr,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Ge.free(a),ee}function zs(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=ds(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=ds(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)):Sl(b,ee,z,oe,re):Sl(b,null,null,null,null)}}}}tr.prototype.doDragOver=function(){};function vl(a,y){var x=a.diagram;a.dragsLink&&zs(a,!0),Io(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;yl(a,b,z),z=_s(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ma!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Ai&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ma!==null){for(a=tn.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Ai&&Nu(x,E,a);tn.free(a)}}}function yl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof _r||(x=a.mouseDrop,x!==null&&x(y))}function Nu(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 oi},!0,function(b){return b instanceof oi},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}tr.prototype.doDropOnto=function(){},tr.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()?($a(this,!1),Ko(a,this.copiedParts),es(this,this.copiedParts,!1),ts(a,this.copiedParts)):this.mayMove()?(Ja(this),es(this,this.draggedParts,!0)):this.mayDragOut()?($a(this,!1),es(this,this.copiedParts,!1)):Ja(this),ss(this,a.lastInput.documentPoint))}},tr.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),$a(this,!0),Ko(a,this.copiedParts),es(this,this.copiedParts,!1),ts(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()&&(es(this,this.draggedParts,!0),ss(this,a.lastInput.documentPoint))),this.Ym=!0,vl(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Rl(this),a.Ya(),ts(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},tr.prototype.simulatedMouseMove=function(a,y,x){if(Ma===null)return!1;var E=Ma.diagram;x instanceof Ht||(x=null);var b=Vs;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ma.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Vs=x,x!==null&&x!==E&&(cs(),b=x.toolManager.findTool("Dragging"),b!==null&&(Ca.contains(b)||Ca.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)},tr.prototype.simulatedMouseUp=function(a,y,x){if(Ma===null)return!1;var E=Vs,b=Ma.diagram;if(x===null)return Ma.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Ma.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Vs=x,E=x.toolManager.findTool("Dragging"),E!==null&&(cs(),Ca.contains(E)||Ca.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 Ge),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=Ma,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Rl(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Ai&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}tr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(co?!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())},tr.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())},tr.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())},tr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},tr.prototype.Az=function(){return Ma},tr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ma;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},tr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),$n(a),a.animationManager.Cc(),a=Ma,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},tr.prototype.doSimulatedDragLeave=function(){var a=Ma;a!==null&&a.doSimulatedDragOut(),this.doCancel()},tr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ma;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Eu(this,y.draggedParts.Lf(),!1,a.firstInput),es(this,this.copiedParts,!1),ss(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},tr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ma;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),es(this,this.copiedParts,!1);var E=new In;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),vl(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=tn.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 ce=se.location;se=ce.x,ce=ce.y,isNaN(se)||isNaN(ce)||(se<E&&(E=se),ce<b&&(b=ce),se>ee&&(ee=se),ce>re&&(re=ce))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,tn.free(z),z=a.Fr,ee=new hi,re=Ge.alloc(),oe=y.iterator;oe.next();)se=oe.value,se instanceof oi&&se.canCopy()&&(ce=x.I(se),ce!==null&&(ce.points=se.points,zf(ce,z.x-E,z.y-b),ce.suspendsRouting=!0,ee.add(ce,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))));Ge.free(re),a.copiedParts=ee,ia(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,zf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}tr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},tr.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Ge},zt.Object.defineProperties(tr.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}}}),tr.prototype.getDraggingSource=tr.prototype.Az;var Ma=null,Vs=null;tr.className="DraggingTool",Ca=new an,Lo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Un.prototype.doCancel=function(){Ma!==null&&Ma.doCancel(),ci.prototype.doCancel.call(this)};function Pa(){ci.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new oi,y=new io;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new io,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ai,y=new io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ba,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ai,y=new io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ba,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 hi,this.Of=this.gj=this.Pf=null}_t(Pa,ci),Pa.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Pa.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=gi.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,gi.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Dr,z=Ge.alloc(),x.location=y.ga(Dr,z),Ge.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Pa.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Ba,y.fromSpot=il,y.toSpot=il),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Pa.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Pa.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Ai){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)}},Pa.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ai))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Ai)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Pa.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 Ai){var oe=ee.ga(Dr,Ge.alloc()),se=x.x-oe.x,ce=x.y-oe.y;Ge.free(oe),oe=se*se+ce*ce,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 Ai&&(x.layer===null||x.layer.allowLink))?y:null},Pa.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},Pa.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},Pa.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Pa.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Ai))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Ai))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},Pa.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)},Pa.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 In;return E.add(a),Bs(this,x,y,E)};function Bs(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Bs(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Bs(a,y.labeledLink,x,E))))}Pa.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!==Vd){if(E===ng){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!As(this,a,y,x,!0)}if(E===Nf){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!As(this,a,y,x,!0)}if(E===of)return a===y?a=!0:(E=new In,E.add(y),a=Gs(this,E,a,y,x)),!a;if(E===bu)return!As(this,a,y,x,!1);if(E===Ef)return a===y?a=!0:(E=new In,E.add(y),a=Tu(this,E,a,y,x)),!a}return!0};function As(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&&As(a,ee,x,E,b)))return!0}return!1}function Gs(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&&Gs(a,y,ee,E,b)))return!0}return!1}function Tu(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&&Tu(a,y,re,E,b))return!0}}return!1}zt.Object.defineProperties(Pa.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}}}),Pa.className="LinkingBaseTool";function aa(){Pa.call(this),this.name="Linking",this.V={},this.F=null,this.K=Ys,this.Xd=null}_t(aa,Pa),aa.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},aa.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 Ai)))return null;var x=this.direction;if(x===Ys||x===Dl){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===Ys||x===su)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},aa.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 Ai&&(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 Ai&&(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)},aa.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()},aa.prototype.doStop=function(){Pa.prototype.doStop.call(this),this.startObject=null},aa.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 Ai&&(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)}}},aa.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof oi)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)},aa.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},aa.prototype.doNoLink=function(){},zt.Object.defineProperties(aa.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 Ys=new on(aa,"Either",0),Dl=new on(aa,"ForwardsOnly",0),su=new on(aa,"BackwardsOnly",0);aa.className="LinkingTool",aa.Either=Ys,aa.ForwardsOnly=Dl,aa.BackwardsOnly=su;function pa(){Pa.call(this),this.name="Relinking";var a=new io;a.figure="Diamond",a.desiredSize=Xa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new io,a.figure="Diamond",a.desiredSize=Xa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new tn}_t(pa,Pa),pa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof oi){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)}},pa.prototype.makeAdornment=function(a,y){var x=new ta;return x.type=ei.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},pa.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},pa.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 ta&&x.adornedPart instanceof oi))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=ho),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ho),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},pa.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===Vf)&&(x=Ec),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}},pa.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()},pa.prototype.doStop=function(){Pa.prototype.doStop.call(this),this.handle=null},pa.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 Ai&&(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()}}},pa.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},pa.prototype.doNoRelink=function(){};function Sl(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)}zt.Object.defineProperties(pa.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 ta))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),pa.className="RelinkingTool",Lo("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Lo("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Da(){ci.call(this),this.name="LinkReshaping";var a=new io;a.figure="Rectangle",a.desiredSize=Ws,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new io,a.figure="Diamond",a.desiredSize=Xa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ge,this.Yq=new an}_t(Da,ci),Da.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:fc},Da.prototype.om=function(a,y){a.reshapingBehavior=y},Da.prototype.updateAdornments=function(a){if(a!==null&&a instanceof oi){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)}},Da.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new ta,b.type=ei.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=E?1:0;if(y.resegmentable&&y.computeCurve()!==vd)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);Dt.B(oe.x,se.x)&&Dt.B(oe.y,se.y)&&(se=y.i(x-1)),Dt.B(oe.x,se.x)?(this.om(re,Fu),re.cursor="n-resize"):Dt.B(oe.y,se.y)&&(this.om(re,$l),re.cursor="w-resize")}else ee===z-1&&E?(oe=y.i(z-1),se=y.i(z),Dt.B(oe.x,se.x)&&Dt.B(oe.y,se.y)&&(oe=y.i(z+1)),Dt.B(oe.x,se.x)?(this.om(re,Fu),re.cursor="n-resize"):Dt.B(oe.y,se.y)&&(this.om(re,$l),re.cursor="w-resize")):ee!==z&&(this.om(re,Lc),re.cursor="move");b.add(re)}b.adornedObject=a}return b},Da.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Da.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Da.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},Da.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 oi){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}}},Da.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Da.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Da.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Da.prototype.getResegmentingPoint=function(){return this.handle.ga(Dr)},Da.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Da.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&&(Gu(this,ee,E,b,z,!0)||Gu(this,ee,E,b,z,!1))){var re=y.points.copy();Gu(this,ee,E,b,z,!0)?(re.cd(x-2,new Ge(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Ge(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Ge((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Ge((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&&(Gu(this,E,b,z,ee,!0)||Gu(this,E,b,z,ee,!1))&&(re=y.points.copy(),Gu(this,E,b,z,ee,!0)?(re.cd(x-1,new Ge(E.x,(E.y+ee.y)/2)),re.cd(x+2,new Ge(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new Ge((E.x+ee.x)/2,E.y)),re.cd(x+2,new Ge((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Ge.alloc(),Dt.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()),Ge.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Gu(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}Da.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===Fu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===$l&&(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===Fu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===$l&&(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);Dt.B(z.x,b.x)&&Dt.B(b.y,ee.y)?(Dt.B(z.x,y.i(E-2).x)&&!Dt.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),Dt.B(ee.y,y.i(E+2).y)&&!Dt.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)):Dt.B(z.y,b.y)&&Dt.B(b.x,ee.x)?(Dt.B(z.y,y.i(E-2).y)&&!Dt.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),Dt.B(ee.x,y.i(E+2).x)&&!Dt.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):Dt.B(z.x,b.x)&&Dt.B(b.x,ee.x)?(Dt.B(z.x,y.i(E-2).x)&&!Dt.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),Dt.B(ee.x,y.i(E+2).x)&&!Dt.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):Dt.B(z.y,b.y)&&Dt.B(b.y,ee.y)&&(Dt.B(z.y,y.i(E-2).y)&&!Dt.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),Dt.B(ee.y,y.i(E+2).y)&&!Dt.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(Dr,Ge.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Ge.alloc()),y.L(0,E.x,E.y),Ge.free(z),Ge.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(Dr,Ge.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Ge.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ge.free(x),Ge.free(a));y.zf()},Da.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Lc:return a;case Fu:return new Ge(y.i(x).x,a.y);case $l:return new Ge(a.x,y.i(x).y);default:case fc:return y.i(x)}},zt.Object.defineProperties(Da.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 ta))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}}}),Da.prototype.setReshapingBehavior=Da.prototype.om,Da.prototype.getReshapingBehavior=Da.prototype.Ru;var fc=new on(Da,"None",0),$l=new on(Da,"Horizontal",1),Fu=new on(Da,"Vertical",2),Lc=new on(Da,"All",3);Da.className="LinkReshapingTool",Da.None=fc,Da.Horizontal=$l,Da.Vertical=Fu,Da.All=Lc,Lo("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function xl(){ci.call(this),this.name="Resizing",this.o=new gi(1,1).freeze(),this.j=new gi(9999,9999).freeze(),this.yg=new gi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new io;a.alignmentFocus=Dr,a.figure="Rectangle",a.desiredSize=Ws,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ge,this.Dw=new gi,this.Tn=new Ge,this.rt=new gi(0,0),this.qt=new gi(1/0,1/0),this.pt=new gi(1,1)}_t(xl,ci),xl.prototype.updateAdornments=function(a){if(!(a===null||a instanceof oi)){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(),lg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},xl.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new ta,y.type=ei.Spot,y.locationSpot=Dr;var x=new xc;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,bl)),y.add(this.makeHandle(a,ao)),y.add(this.makeHandle(a,hu)),y.add(this.makeHandle(a,ku)),y.add(this.makeHandle(a,Vu)),y.add(this.makeHandle(a,ul)),y.add(this.makeHandle(a,ou)),y.add(this.makeHandle(a,_u))}else if(Ud(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},xl.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},xl.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=Dr),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 ei)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},xl.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},xl.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))},xl.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},xl.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xl.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},xl.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,Ge.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Ge.free(b)}},xl.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,Ge.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Ge.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},xl.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 _r){var E=new an;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()}},xl.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Dr);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,se=ee.x+ee.width,ce=ee.y+ee.height,ge=1;if(!z){ge=ee.width;var xe=ee.height;0>=ge&&(ge=1),0>=xe&&(xe=1),ge=xe/ge}return xe=Ge.alloc(),Dt.No(a.x,a.y,re,oe,b.width,b.height,xe),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(xe.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(xe.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(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=ce-a.height)):1<=y.y?(a.x=Math.max(xe.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(xe.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(xe.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*(ce-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(xe.x-re,E.width),x.width),a.y=Math.max(xe.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(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=ce-a.height)):1<=y.y?(a.width=Math.max(Math.min(xe.x-re,E.width),x.width),a.height=Math.max(Math.min(xe.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(xe.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*(ce-oe-a.height))):0>=y.y?(a.y=Math.max(xe.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=ce-a.y,z||(a.width=Math.max(Math.min(a.height/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(xe.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))),Ge.free(xe),a},xl.prototype.computeReshape=function(){var a=Nn;return this.adornedObject instanceof io&&(a=Zv(this.adornedObject)),!(a===Zi||this.diagram.lastInput.shift)},xl.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},xl.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},xl.prototype.computeCellSize=function(){var a=new gi(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},zt.Object.defineProperties(xl.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 ta))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 ta)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}}}),xl.className="ResizingTool",Lo("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ns(){ci.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ge,this.ue=null;var a=new io;a.figure="Ellipse",a.desiredSize=Xa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ge(NaN,NaN),this.u=0,this.F=50}_t(Ns,ci),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 ta,y.type=ei.Position,y.locationSpot=Dr;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ud(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(Dr)},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 Ge(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ns.prototype.stopTransaction=function(){var a=this.diagram,y=ci.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},zt.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 ta))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 ta)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",Lo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ou(){ci.call(this),this.name="ClickSelecting"}_t(Ou,ci),Ou.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ou.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ou.className="ClickSelectingTool";function wa(){ci.call(this),this.name="Action",this.pk=null}_t(wa,ci),wa.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},wa.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()},wa.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))}},wa.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()},wa.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())},wa.prototype.doStop=function(){this.pk=null},wa.className="ActionTool";function gc(){ci.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ge(0,0)}_t(gc,ci),gc.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)},gc.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},gc.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 ar)x.Zc()&&(Ud(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Mt(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Ge.allocAt(a.x,a.y);this.isGridSnapEnabled&&Wa(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Ge.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},zt.Object.defineProperties(gc.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}}}),gc.className="ClickCreatingTool";function eu(){ci.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ar;a.layerName="Tool",a.selectable=!1;var y=new io;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}_t(eu,ci),eu.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))},eu.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},eu.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},eu.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=gi.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),gi.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},eu.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()},eu.prototype.computeBoxBounds=function(){var a=this.diagram;return new tn(a.firstInput.documentPoint,a.lastInput.documentPoint)},eu.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),co?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 an,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)}},zt.Object.defineProperties(eu.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}}}),eu.className="DragSelectingTool";function Ds(){ci.call(this),this.name="Panning",this.Xt=new Ge,this.xy=new Ge,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Zn.document,"scroll",a.Kw,!1),a.stopTool()}}_t(Ds,ci),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(Zn.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)}},zt.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",Lo("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Lo("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Lo("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Lo("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Lo("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}zt.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 El(a,y,x){this.text=a,this.hx=y,this.visible=x}El.className="ContextMenuButtonInfo";function cl(){ci.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ge,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}_t(cl,ci);function tu(a){var y=new Ts;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},gu=y,a.tu=function(){a.stopTool()},y=Br("div");var x=Br("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=Br("style");Zn.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",Ia,!1),E.addEventListener(y,"selectstart",Ia,!1),E.addEventListener(x,"contextmenu",Ia,!1)),y.className="goCXforeground",x.className="goCXbackground",Zn.document.body&&(Zn.document.body.appendChild(y),Zn.document.body.appendChild(x)),Iu=y,Us=x,Qu=!0}function Ia(a){return a.preventDefault(),!1}cl.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)},cl.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},cl.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},cl.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof Ht||(a instanceof wt?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},cl.prototype.doActivate=function(){},cl.prototype.doMouseDown=function(){if(ci.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof ta){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Zl(this)},cl.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof ta){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Zl(this)};function Zl(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()&&(fu(a,!0),a.isActive||a.stopTool())}cl.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function fu(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=gu,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof wt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof ta&&!a.currentContextMenu.visible&&a.stopTool()}}cl.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},cl.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof ta){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},cl.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}},cl.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof ta?(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 Ll(a){var y=new an;return y.add(new El("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new El("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new El("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new El("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new El("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new El("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new El("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new El("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new El("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new El("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new El("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new El("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new El("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}cl.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ll(this)),Iu.innerHTML="",Us.addEventListener("pointerdown",this.tu,!1);var y=this,x=Br("ul");x.className="goCXul",Iu.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=Br("li"),z.className="goCXli";var ee=Br("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)}}Iu.style.display="block",Us.style.display="block"},cl.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===gu){Iu.style.display="none",Us.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Us,"pointerdown",this.tu,!1),this.currentContextMenu=null}},zt.Object.defineProperties(cl.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof ta?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Qu===!1&&gu===null&&Aa&&tu(this),gu},set:function(a){a===null&&(Qu=!0),gu=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var gu=null,Qu=!1,Us=null,Iu=null;cl.className="ContextMenuTool",Lo("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function ha(){ci.call(this),this.name="TextEditing",this.Zh=new os,this.ia=null,this.V=kc,this.vj=null,this.qa=Ao,this.u=1,this.F=!0,this.o=null,this.j=new Ts,this.kt=null,Ps(this,this.j)}_t(ha,ci);function Ps(a,y){if(Aa){var x=Br("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(mc)):b==="Tab"?(a.acceptText(pc),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ao){var E=a.kt;a.qa===Qa&&(a.qa=rl),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ao){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 os&&z instanceof ha)if(z.state===td)x.style.border="3px solid red",x.focus();else{var ee=E.ga(Dr),re=b.position,oe=b.scale,se=E.Df()*oe;se<z.minimumEditorScale&&(se=z.minimumEditorScale);var ce=E.naturalBounds.width*se+6,ge=E.naturalBounds.height*se+2,xe=(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=ce+"px",x.style.left=(xe-ce/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)}}}ha.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Uc&&Uc!==this&&(Uc.acceptText(nu),Uc&&Uc!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof os&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===kc&&!y.isSelected||this.starting===Sa&&2>a.lastInput.clickCount)):!1},ha.prototype.doStart=function(){Uc=this,this.textBlock!==null&&this.doActivate()},ha.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 os&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Qa;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new tn(this.textBlock.ga(bl),this.textBlock.ga(hu));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},ha.prototype.doCancel=function(){this.stopTool()},ha.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},ha.prototype.doMouseDown=function(){this.isActive&&this.acceptText(nu)},ha.prototype.acceptText=function(a){switch(a){case nu:this.qa===dd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Qa||this.qa===td||this.qa===rl)&&(this.qa=oc,Mc(this));break;case Ju:case mc:case pc:(mc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Qa||this.qa===td||this.qa===rl)&&(this.qa=oc,Mc(this))}};function Mc(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=dd,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=td,a.doError(b,z))}}ha.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)},ha.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},ha.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ao,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},ha.prototype.doStop=function(){Uc=null},ha.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)))},ha.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},zt.Object.defineProperties(ha.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)}}}),ha.prototype.measureTemporaryTextBlock=ha.prototype.Lx;var Ju=new on(ha,"LostFocus",0),nu=new on(ha,"MouseDown",1),pc=new on(ha,"Tab",2),mc=new on(ha,"Enter",3),fh=new on(ha,"SingleClick",0),kc=new on(ha,"SingleClickSelected",1),Sa=new on(ha,"DoubleClick",2),Ao=new on(ha,"StateNone",0),Qa=new on(ha,"StateActive",1),rl=new on(ha,"StateEditing",2),oc=new on(ha,"StateValidating",3),td=new on(ha,"StateInvalid",4),dd=new on(ha,"StateValidated",5),Uc=null;ha.className="TextEditingTool",ha.LostFocus=Ju,ha.MouseDown=nu,ha.Tab=pc,ha.Enter=mc,ha.SingleClick=fh,ha.SingleClickSelected=kc,ha.DoubleClick=Sa,ha.StateNone=Ao,ha.StateActive=Qa,ha.StateEditing=rl,ha.StateValidating=oc,ha.StateInvalid=td,ha.StateValidated=dd,Lo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Hl(a){pu||(ol(),pu=!0),this.H=lt,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Na,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new In,this.ce=new iu,this.ce.Yd=this,this.Ei=new In,this.pu=new In,this.Sr=new In,this.pr=new In,a&&Object.assign(this,a)}Hl.prototype.Xe=function(a){this.H=a},Hl.prototype.canStart=function(){return!0};function ka(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Yo(a.H),a.zb=!0)}function Ra(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Na?(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===gh&&y.vc.clear(),a.Qw=!!(a.Pk===eh&&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(),th(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Zs&&E!==null&&(delete E.start.scale,delete E.end.scale),Zn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&xi(x),Fi(x),a.zb=!1,y.start(),y.bc&&(qu(a),x.Ya(),nf(y,0),$n(x,!0),$u(a),x.R("AnimationStarting",a)))}))}}function vc(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ac(a,y,x,E){a.isTicking||vc(a)||y instanceof oi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Be=Hl.prototype,Be.fv=function(a){return this.ce.fv(a)},Be.Xu=function(a){return this.ce.Xu(a)};function hd(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 wt&&oe.diagram!==null||oe instanceof Ht){re=!0;break e}}re=!1}re?jd(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(qu(b),$n(b.H),$u(b)),Zn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Zn.requestAnimationFrame(function(){x()}))}function Wh(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function qu(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 $u(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(),th(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),th(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),Pu(this,a))},Be.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ec(this.ce,y,"position",y.position,y.position),Pu(this,a))};function Wd(a,y,x){!a.zb||y.D(x)||vc(a)||(a.H.pi||(y=x.copy()),ec(a.ce,a.H,"position",y,x))}function $d(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Pu(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Nc(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],ce=y[2];return y=y[3],re===0||re===100?(z=oe,ee=se):(ce===0||ce===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,ce-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function ol(){function a(x,E,b,z,ee,re){x.position=new Ge(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new hi;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 Ge(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 Ge(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 Ge(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 Ge(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 tn(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=Nc(E,b,ee,re,z)}),y.add("stroke",function(x,E,b,z,ee,re){x.stroke=Nc(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=Nc(E,b,ee,re,z)}),y.add("areaBackground",function(x,E,b,z,ee,re){x.areaBackground=Nc(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)}),sa=y}zt.Object.defineProperties(Hl.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&&En(a,">= 1",Hl,"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}}}),Hl.prototype.stopAnimation=Hl.prototype.Cc;var sa=null,pu=!1,Na=new on(Hl,"Default",1),eh=new on(Hl,"AnimateLocations",2),gh=new on(Hl,"None",3);Hl.className="AnimationManager",Hl.defineAnimationEffect=function(a,y){pu||(ol(),pu=!0),sa.add(a,y)},Hl.Default=Na,Hl.AnimateLocations=eh,Hl.None=gh;function iu(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=Ad,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=To,this.vc=new hi,this.Tt=new hi,this.yl=new In,this.Ut=new In,this.dw=nh,a&&Object.assign(this,a)}iu.prototype.suspend=function(){this.Xk=!0},iu.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,jd(this,!0),qu(this.Yd),$n(this.H),$u(this.Yd),this.H.redraw()};function th(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=iu.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 Ht?a=x:x instanceof wt&&(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===Na&&this===y.defaultAnimation&&(this.Lp=Zc,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=af),qu(y),this.yl.each(function(E){E.data=null,a.add(E)}),$u(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,hd(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 Ht?this.H=a:a instanceof wt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ar){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ec(this,a,y,x,E,b),this};function ec(a,y,x,E,b,z){var ee=a.vc;if(y instanceof Ht&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(md(E),Dg(),E=[Yc.j,Yc.u,Yc.o,Yc.F],md(b),Dg(),b=[Yc.j,Yc.u,Yc.o,Yc.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,se=re.end;oe[x]===void 0&&(oe[x]=Cd(E)),se[x]=Cd(b)}else oe={},se={},oe[x]=Cd(E),se[x]=Cd(b),re=oe.position,y instanceof wt&&re instanceof Ge&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(se.position),re=new Hc(oe,se,z),ee.add(y,re);ee=oe[x],ee instanceof Ge&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ar?re.Ku.location=Cd(y.location):z&&(re.Ku[x]=Cd(E))}function Cd(a){return a instanceof Ge||a instanceof gi?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 jd(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),qu(x),nf(a,b),$n(a.H,!0),$u(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 nf(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof wt&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=sa,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,qu(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=sa;E.next();){var ee=E.key,re=E.value,oe=b?re.end:re.start,se=b?re.start:re.end,ce=re.Ku,ge;for(ge in se)if(z.get(ge)!==null){var xe=ge;!re.Hu||xe!=="position:nodeCollapse"&&xe!=="position:placeholder"||(xe="position"),z.get(xe)(ee,oe[ge],ce[ge]!==void 0?ce[ge]:re.Hu?oe[ge]:se[ge],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ce.location!==void 0&&ee instanceof ar&&(ee.location=ce.location),re.nv&&ee instanceof ar&&ee.Zb(!1)}if(y.As.clear(),Fn(y,!1),y.Ya(),y.N(),$n(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()}$n(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),$u(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),th(this,null),x.Ml(this),y.$b())}},Be.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof _r&&(E=y.placeholder),E!==null?(x=E.ga(bl),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ge(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof _r)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ai&&this.Cj(E,y)},Be.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof _r&&(x=y.placeholder),x!==null){var E=x.ga(bl);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 _r)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ai&&this.Aj(E,y)}},Be.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},zt.Object.defineProperties(iu.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&En(a,">= 1",iu,"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:Pt("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}}}),iu.prototype.getTemporaryState=iu.prototype.Ez,iu.prototype.stop=iu.prototype.stop,iu.prototype.add=iu.prototype.add,iu.prototype.addTemporaryPart=iu.prototype.Iy;function Ad(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Zc(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}iu.className="Animation",iu.EaseLinear=function(a,y,x,E){return x*a/E+y},iu.EaseInOutQuad=Ad,iu.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},iu.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},iu.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},iu.EaseOutExpo=Zc;function Hc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Hc.className="AnimationState";function Tc(a,y,x){this.xd=null,this.rf=a,this.so=x||Fd,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=fd))}Tc.prototype.copy=function(){var a=new Tc(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 rf(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))}zt.Object.defineProperties(Tc.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 Fd=new on(Tc,"Default",1),fd=new on(Tc,"Immediate",2),zd=new on(Tc,"Bundled",3);Tc.className="AnimationTrigger",Tc.Default=Fd,Tc.Immediate=fd,Tc.Bundled=zd;function Pl(a){Or(this),this.H=null,this.Pa=new an,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=Pl.prototype,Be.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Fs(x)}a.clear(),this.Zq.length=0},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 _r?b++:oe instanceof Ai?E++:oe instanceof oi?z++:oe instanceof ta?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&&fr(E)&&(re+=" #"+fr(E)),x instanceof Ai?re+=" "+Jr(E):x instanceof oi&&(re+=" "+Jr(x.fromNode)+" "+Jr(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=Ge.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||lg(re)!==!1)&&re.isVisible()&&(b.assign(a),_o(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Ge.free(b),re}return Ge.free(b),null},Be.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof an||E instanceof In||(E=new In),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Ge.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||lg(oe)!==!1)&&oe.isVisible()){z.assign(a),_o(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 Ge.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 an||b instanceof In||(b=new In),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||lg(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||lg(se)!==!1)&&z(se)&&se.isVisible()){var ce=se;se.Cf(a,y,x,E,b)&&(y!==null&&(ce=y(ce)),ce===null||x!==null&&!x(ce)||b.add(ce))}}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 an||b instanceof In)&&(z=b),b=!0),z instanceof an||z instanceof In||(z=new In),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Ge.alloc(),oe=Ge.alloc(),se=this.Pa.s,ce=se.length;ce--;){var ge=se[ce];if((ee!==!0||lg(ge)!==!1)&&ge.isVisible()){re.assign(a),_o(re,ge.oe),oe.h(a.x+y,a.y),_o(oe,ge.oe);var xe=ge;ge.og(re,oe,x,E,b,z)&&(x!==null&&(xe=x(xe)),xe===null||E!==null&&!E(xe)||z.add(xe))}}return Ge.free(re),Ge.free(oe),z},Be.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Ri();for(var b=Ri(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof oi){if(ee.fd===!1)continue}else if(ee instanceof ta&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&Nl(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]);ai(a),ai(b)}}};function yc(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=yc(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=tn.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(tn.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function ph(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=yc(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,se=tn.alloc(),ce=0;ce<z;ce++){var ge=b[ce];E.contains(ge)&&a.Oj(y,ge,x,re,oe,se,!1)}tn.free(se),y.globalAlpha=ee}}}Be.Oj=function(a,y,x,E,b,z,ee){if(ee&&!lg(y))a.Hs(y);else{if(E!==null&&y instanceof oi&&(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 va?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&&(gs(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(gs(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),gs(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(Hn,a,this,y,x,E,b)},Be.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Fs(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)),jh(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,Fs(y),a};function jh(a,y,x){if(y=mh(a,y,x),x instanceof _r&&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&&jh(a,-1,y)}x.svg!==null&&x.svg.remove()}function mh(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}zt.Object.defineProperties(Pl.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===""&&Pt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Pt("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)&&En(a,"0 <= value <= 1",Pl,"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))}}}),Pl.prototype.findObjectsNear=Pl.prototype.og,Pl.prototype.findObjectsIn=Pl.prototype.Cf,Pl.prototype.findObjectsAt=Pl.prototype.ji,Pl.prototype.findObjectAt=Pl.prototype.ic,Pl.className="Layer";function Ht(a,y){if(Gh||(Bu(),Gh=!0),Or(this),lt=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Aa){var x=this,E=function(){x.removeEventListener(Zn.document,"DOMContentLoaded",E,!1),x.setRTL()};Zn.document.body!==null?this.setRTL():x.addEventListener(Zn.document,"DOMContentLoaded",E,!1)}this.ol=null,mr.add("Model",Fa);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===Hn&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,ot(this),this.model=My(),this.Wg=!0,Yr(this),this.layout=new Cs,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"||Zn.Element&&a instanceof Element?Yi(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var it,lt;function ot(a){a.Yd=new Hl,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new an,a.pj=new hi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ge(NaN,NaN).freeze(),a.du=new Ge(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ge(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new qr,a.zu=new Ge(NaN,NaN).freeze(),a.ut=new tn(NaN,NaN,NaN,NaN).freeze(),a.rj=new oo(0,0,0,0).freeze(),a.sj=nh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Zs,a.zk=Ul,a.Fg=Zs,a.pq=Ul,a.yt=bl,a.Bt=bl,a.Fc=!0,a.pn=!1,a.De=new In,a.Eh=new hi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new oo(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new jt,a.bq.diagram=a,a.Qg=new jt,a.Qg.diagram=a,a.cj=new jt,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,Za(a),a.ai=new In,a.Ht=!0,a.uu=ih,a.pw=!1,a.wu=Vd,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 hi,a.Xn=new an,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 oo(5).freeze(),a.Hw=new In().freeze(),a.Nt=999999999,a.nw=new In().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 In,a.ow=new In,a.Xh=null,a.aw=new gi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ge,bounds:new tn,Py:new gi,bA:new gi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new tn(NaN,NaN,NaN,NaN).freeze(),a.wo=new gi(NaN,NaN).freeze(),a.Sp=new tn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new hi;var y=new Ai,x=new os;x.bind(new Cl("text","",Jr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Ai,x=new os,x.stroke="brown",x.bind(new Cl("text","",Jr)),y.add(x),a.Lg.add("Comment",y),y=new Ai,y.selectable=!1,y.avoidable=!1,x=new io,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new gi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new hi,y=new _r,y.selectionObjectName="GROUPPANEL",y.type=ei.Vertical,x=new os,x.font="bold 12pt sans-serif",x.bind(new Cl("text","",Jr)),y.add(x),x=new ei(ei.Auto),x.name="GROUPPANEL";var E=new io;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new xc,E.padding=new oo(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new hi,y=new oi,x=new io,x.isPanelMain=!0,y.add(x),x=new io,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new oi,x=new io,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new ta,y.type=ei.Auto,x=new io,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new xc,x.margin=new oo(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new ta,y.type=ei.Link,x=new io,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 Fa,a.toolManager=new Un,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=wi(),a.eq=null,a.fq=Qi,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 Ge,a.zy=500,a.wp=new Ge,a.wq=!1}Ht.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),qs=null,Uu="",xn(this,!1),this.Xn.clear(),Cp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function xn(a,y){a.animationManager.Cc(!0),a.Hw=new In().freeze(),a.nw=new In().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(),Kr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function wi(){return null}Ht.prototype.reset=function(){this.clear(),this.vb=!0,ot(this),Ro(this),this.Wg=!0,Yr(this),this.layout=new Cs,this.Wg=!1,this.model=My(),this.model.undoManager=new mi,this.vb=this.rn=!1,this.N()},Ht.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Zn.document.body);var y=Br("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},Ht.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Zn.document.body);var y=0;if(Aa){var x=vs;y=it,x===null&&(x=vs=Br("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=it=Br("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||co||(y=11)}this.Db=y,this.Gw=!0},Ht.prototype.qb=function(a){a.classType===Ht&&(this.autoScale=a)},Ht.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 Yi(a,y){if(Aa){if(y!=null||Pt("Diagram setup requires an argument DIV."),a.Ka!==null&&Pt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Zn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Pt("No DIV or DIV id supplied: "+y),a.Ka===null&&Pt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Pt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Zn.ResizeObserver){var x=zr(function(){a.$b()},250);a.ol=new Zn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Zn.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=Zn.go;var b=new zu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Zn.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),Ha(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new zu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Aa){b=Br("div");var z=Br("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=kr,b.addEventListener("pointerdown",$r),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=zr(function(){a.Yh=null,a.N()},300),a.Ov=zr(function(){Fi(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Pr(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(),Ur(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Pr(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=Mo(a,ee,!0,!1,!0,se),Do(a,ee,oe),oe.targetDiagram=gr(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():Ur(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=Mo(a,ee,!1,!1,!1,re[1]!==null);var oe=Zn.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,ce=ee;oe&&oe.H&&(ce=ee,se=oe.H),re.targetDiagram=se,Do(a,ce,re),re.targetObject=null,a.doMouseMove(),Ur(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=Mo(a,ee,!1,!0,!0,!1);var se=Zn.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 Ht&&se.H!==a&&Do(se.H,ee,oe),se===null&&(se=ee.target),Do(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=gr(ee,se),oe.targetObject=null,a.doMouseUp(),Ur(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"+lu[1]+lu[2]+"wI"+Vh.slice(1,5)]["b"+Gx.slice(1,y)](E.Z,yh,y,y),E.Vc(!0),dr(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ht.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Ht.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function dr(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(Zn,"resize",a.Ov,!1)}function xi(a){30<a.Sq&&(a.Yh=1)}function Fn(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),zn&&zn.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ht.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Zn.devicePixelRatio||1},Ht.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ht.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ht.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ht.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ht.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ht.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ht.prototype.doFocus=function(){this.focus()},Ht.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Zn.scrollX||Zn.pageXOffset,y=Zn.scrollY||Zn.pageYOffset;this.ta.focus(),Zn.scrollTo(a,y)}},Ht.prototype.Oy=function(){this.H.R("GainedFocus")},Ht.prototype.Ny=function(){this.H.R("LostFocus")};function Fi(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===Zs&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Yr(a){var y=new Pl;y.name="Background",a.Al(y),y=new Pl,y.name="",a.Al(y),y=new Pl,y.name="Foreground",a.Al(y),y=new Pl,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Pl,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Pl,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Po(a){var y=new ei(ei.Grid);y.name="GRID";var x=new io;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new io,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new io,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new io,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new io,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new io,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ar,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 kr(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):ls(this.H)}function $r(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):ls(this.H)}Ht.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,ce=E.right+z.right;z=E.bottom+z.bottom;var ge=b.x;E=b.y;var xe=b.width,we=b.height,Fe=b.right,Ne=b.bottom;b=this.scale;var Qe=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Qe=Qe+a.scrollWidth-a.clientWidth;break;case"reverse":Qe=a.scrollWidth-Qe-a.clientWidth}var Ve=Qe;xe<oe||we<se?(Qe=Ge.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ve&&(Qe.x=Ve/b+ee,this.ju=Ve),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qe.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=Qe,Ge.free(Qe),this.Ee=this.qr=!1):(Qe=Ge.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ge&&(this.position=Qe.h(Ve+ee,this.position.y)),ce>Fe&&(this.position=Qe.h(-(y.scrollWidth-this.Aa)+Ve-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=Qe.h(this.position.x,a.scrollTop+re)),z>Ne&&(this.position=Qe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Ge.free(Qe),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ce=E.right,Fe=b.right,z=E.bottom,Ne=b.bottom,ee=E.x,ge=b.x,re=E.y,E=b.y,xe>=oe&&ee>=ge&&ce<=Fe&&(x.style.width="1px"),we>=se&&re>=E&&z<=Ne&&(x.style.height="1px"))}},Ht.prototype.computeBounds=function(a){return a===void 0&&(a=new tn),Yo(this),No(this,a)};function No(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}Ht.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Ft(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof oi||(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 oi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new tn(NaN,NaN,0,0):x};function So(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=Ge.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=tn.allocAt(0,0,E.width,E.height);var b=Ge.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,tn.free(E),Ge.free(b),Ge.free(x)}x=a.yh,y&&a.Fg!==Zs&&(x=a.Fg);var z=x!==Zs?po(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()?Dr:oe),lr(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Dt.B(z.x,x)&&Dt.B(z.y,E)&&Dt.B(z.width,b)&&Dt.B(z.height,ee)||a.onViewportBoundsChanged(new tn(x,E,b,ee),z,y,!1)}}function po(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===ru?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===gd?(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}Ht.prototype.zoomToFit=function(){var a=this.sj;this.sj=nh,this.scale=po(this,ru),a!==nh&&(So(this,!1),lr(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Be=Ht.prototype,Be.BA=function(a,y){y===void 0&&(y=ru);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===ru||y===gd)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===gd?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 Ge(a.x,a.y)}},Be.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Ge(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 wt){this.eq=a;var y=Ge.alloc();this.fq=this.op(a.ga(bl,y)),Ge.free(y)}else this.eq=null,this.fq=Qi};function lr(a,y,x,E,b,z){var ee=Ge.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var se=Ge.alloc();se=a.eq.ga(bl,se),re=se.x-a.fq.x/a.scale,oe=se.y-a.fq.y/a.scale,b=il,Ge.free(se)}(z||a.scrollMode===nh)&&(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),Wd(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),Ro(a),Ge.free(ee)}Be.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=ma(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof ar)return a}else if(a=ma(this,a,function(x){return x.part}),a instanceof ar)return a;return null},Be.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Yo(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 ma(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Yo(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),Vo(this,a,function(E){return E.part},y?function(E){return E instanceof ar&&E.canSelect()}:null,x)};function Vo(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof an||b instanceof In||(b=new In),Yo(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 an||E instanceof In||(E=new In),Yo(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),mo(this,a,function(b){return b instanceof ar&&(!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 an||b instanceof In||(b=new In),Yo(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 In;Yo(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 mo(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 an||b instanceof In||(b=new In),Yo(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),Fo(this,a,y,function(z){return z instanceof ar&&(!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 an||b instanceof In)&&(z=b),b=!0),z instanceof an||z instanceof In||(z=new In),Yo(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 Fo(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 an||b instanceof In)&&(z=b),b=!0),z instanceof an||z instanceof In||(z=new In),Yo(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}Ht.prototype.acceptEvent=function(a){return Pr(this,a,a instanceof MouseEvent)};function Pr(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?Do(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),co&&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=gr(y,y.target),E.targetObject=null,E}function gr(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 Mo(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,co&&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 Ur(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Ht.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Pr(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(),Ur(x,a)},Ht.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Pr(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(),Ur(x,a)},Ht.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Pr(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Ur(x,a)},Ht.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Pr(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Ur(x,a)},Ht.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ge(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?_o(new Ge(y,a),this.Ab):new Ge(y,a)};function Do(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=Ge.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Ge.free(y)):x.documentPoint.h(ee,re)}function yo(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))}}Ht.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ca(a){a.ld||Yo(a),a.Va()}Ht.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Be=Ht.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,$n(this),this.hf=!1,this.du=new Ge(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&br(function(){E.ld=!1,ka(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;Zn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Be.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),$n(this))};function xa(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||ls(a)||(y&&Yo(a),x&&So(a,!1))}function $n(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];qe(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||Fi(a),xa(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Os(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Yo(a),z=!1,(!a.hf||a.xh)&&(a.hf?tc(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),tc(a,!1)),z=!0),a.Jk=!1,Yo(a),a.ou||ca(a),xa(a,!0,!1),ee=!1,z?(x=tn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,wo(a)),a.R("LayoutCompleted"),xa(a,!0,!1),tn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Zs?a.scale=po(a,a.Fg):a.yh!==Zs?a.scale=po(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),So(a,!0)),z&&ee&&a.eb("Initial Layout"),Yo(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function wo(a){if(a.Fg!==Zs)a.scale=po(a,a.Fg);else if(a.yh!==Zs)a.scale=po(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}So(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Os(a)}function Yo(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 In,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof _r&&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 _r||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof _r&&x.isVisible()&&Jo(this,x);for(a.reset();a.next();)x=a.value,x instanceof oi&&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 ta&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Jo(a,y){for(var x=Ri(),E=Ri(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof _r?(Xe(z)||ct(z)||sg(z))&&Jo(a,z):z instanceof oi?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(ai(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();ai(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&&Pt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Xo(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,ps(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),ms(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?Sh(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,Xo(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,ce=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-se,-ce),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),ms(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?Sh(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=zn&&zn.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 Qo(a,y,x,E,b,z,ee,re,oe,se){if(a.Ka!==null){a.ta===null&&Pt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),se===void 0&&(se=!1),Xo(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ce=a.Ca;a.Ca=b;var ge=a.Wa.s,xe=ge.length;try{var we=new tn(z.x,z.y,E.width/b,E.height/b),Fe=we.copy();Fe.Co(x),Os(a,Fe),Yo(a),a.Fd(ge,xe,a,we),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Ne=a.Mb;y.scale(Ne,Ne);var Qe=qr.alloc();Qe.reset(),Qe.translate(x.left,x.top),Qe.scale(b),z.x===0&&z.y===0||Qe.translate(-z.x,-z.y),y.setTransform(Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),y.yc(),y instanceof va&&ps(y,Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),qr.free(Qe),ms(a,y),y.globalAlpha=a.pb;var Ve=a.Qj("Grid");if(ee){var rt=new In,at=ee.iterator;for(at.reset();at.next();){var ft=at.value;ft instanceof ar&&(se||ft.layer!==Ve)&&(ft.Gj(),rt.add(ft))}for(se=0;se<xe;se++)ph(ge[se],y,a,rt,oe);rt.each(function(Kt){return Kt.Gj()})}else for(rt=0;rt<xe;rt++){var At=ge[rt];At===Ve?se&&At.gc(y,a,!0):At.gc(y,a,oe)}a.$i=!1,a.Yf&&Sh(a.Yf,a)&&a.Vp()}finally{a.Ca=ce,a.ib.Vc(!0),a.vd=!0,a.Fd(ge,xe,a,a.viewportBounds),Os(a),a.ib instanceof va&&(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 Jt,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(co||ja),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function ms(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 Jt,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 Cr(this,a),this};function Cr(a,y){var x=a instanceof ei,E=a instanceof Ht,b;for(b in y){b===""&&Pt("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])),Mt(z)?ee=b.substr(re+1):Pt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Qr(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&Qr(a.toolManager,ee))z=a.toolManager;else if(E&&Eo(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Hi&&ee==="Changed"){a.Pe(y[ee]);continue}else Pt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof wt&&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 hi,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")},Ht.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!==af&&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=tn.alloc(),na(this,this.computeBounds(E)),tn.free(E)),E=this.ta,E===null||E instanceof Wo)))){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,ce=Math.max(z,0),ge=Math.max(y,0),xe=Math.floor(b-ce),we=Math.floor(re-ge);a.drawImage(E.Oa,ce,ge,xe,we,0,0,xe,we),Sh(this.Yf,this)&&a.clearRect(0,0,oe,se),E=Ri(),a=Ri(),we=Math.abs(z),xe=Math.abs(y);var Fe=ce===0?0:b-we;ce=Ge.allocAt(Fe,0),we=Ge.allocAt(we+Fe,re),a.push(new tn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y)));var Ne=this.Ab;if(Ne.reset(),Ne.scale(ee,ee),this.Ca!==1&&Ne.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Ne.translate(-ee.x,-ee.y),_o(ce,Ne),_o(we,Ne),E.push(new tn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),Fe=ge===0?0:re-xe,ce.h(0,Fe),we.h(b,xe+Fe),a.push(new tn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),_o(ce,Ne),_o(we,Ne),E.push(new tn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),Sh(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,ce.h(b,re),we.h(oe+b,se+re),a.push(new tn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y))),_o(ce,Ne),_o(we,Ne),E.push(new tn(Math.min(ce.x,we.x),Math.min(ce.y,we.y),Math.abs(ce.x-we.x),Math.abs(ce.y-we.y)))),Ge.free(ce),Ge.free(we),xa(this,!1,!0),this.Ka===null&&Pt("No div specified"),this.ta===null&&Pt("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Xo(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),ms(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=E,ee.visible&&ee.pb!==0){se=yc(ee,b),ge=ee.Zq,ge.length=0,ce=this.scale,xe=tn.alloc(),we=ee.Pa.s,Ne=we.length,Fe=oe.length;for(var Qe=0;Qe<Ne;Qe++){var Ve=we[Qe],rt=Tg(Ve,Ve.actualBounds);e:{for(var at=2/ce,ft=4/ce,At=0;At<Fe;At++){var Kt=oe[At];if(Kt.width!==0&&Kt.height!==0&&rt.Vu(Kt.x-at,Kt.y-at,Kt.width+ft,Kt.height+ft)){rt=!0;break e}}rt=!1}rt&&ee.Oj(b,Ve,this,ge,ce,xe,!0)}tn.free(xe),b.globalAlpha=se}b.restore(),b.Vc(!0),this.Yf&&Sh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}ai(E),ai(a),this.ld=!1}}else this.bd();x&&(xi(this),this.bd(),Fn(this,!0))}else x?(xi(this),this.bd(),Fn(this,!0)):this.bd()}};function Xo(a){a.pn!==!1&&(a.pn=!1,Ha(a,a.Aa,a.ya))}function Ha(a,y,x){Ro(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function ls(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,ce=a.viewportBounds;b=ce.x;var ge=ce.y,xe=ce.width,we=ce.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,Ro(a)),!a.hf||!a.viewportBounds.w())return!0;var Fe=a.ku,Ne=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qe=a.documentBounds,Ve=0,rt=0,at=0,ft=0,At=ce.width,Kt=ce.height,Ei=a.rj;a.contentAlignment.sb()?(Qe.width>At&&(Ve=Ei.left,rt=Ei.right),Qe.height>Kt&&(at=Ei.top,ft=Ei.bottom)):(Ve=Ei.left,rt=Ei.right,at=Ei.top,ft=Ei.bottom);var zi=Qe.width+Ve+rt,Ni=Qe.height+at+ft;Ei=a.scale;var ri=zi>oe/Ei,Mn=Ni>se/Ei;if(!(z||a.gf||a.Be||ri||Mn))return!0;Ve=Qe.x-Ve,oe=ce.x,rt=Qe.right+rt,se=ce.right+ee,at=Qe.y-at;var jr=ce.y;Qe=Qe.bottom+ft,ce=ce.bottom+re;var Fr="1px";if(ft="1px",a.scrollMode===nh&&(ri||Mn)&&(ri&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ri=1,Ve+1<oe&&(ri=Math.max((oe-Ve)*Ei+a.Aa,ri)),rt>se+1&&(ri=Math.max((rt-se)*Ei+a.Aa,ri)),At+ee+1<zi&&(ri=Math.max((zi-At)*Ei+a.Aa,ri)),Fr=ri.toString()+"px"),Mn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ri=1,at+1<jr&&(ri=Math.max((jr-at)*Ei+a.ya,ri)),Qe>ce+1&&(ri=Math.max((Qe-ce)*Ei+a.ya,ri)),Kt+re+1<Ni&&(ri=Math.max((Ni-Kt)*Ei+a.ya,ri)),ft=ri.toString()+"px")),ri=Fr!=="1px",Mn=ft!=="1px",ri&&Mn||!ri&&!Mn||(Mn&&(se-=a.Db),ri&&(ce-=a.Db),zi<At+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ve+1<oe&&(ee=Math.max((oe-Ve)*Ei+a.Aa,ee)),rt>se+1&&(ee=Math.max((rt-se)*Ei+a.Aa,ee)),At+1<zi&&(ee=Math.max((zi-At)*Ei+a.Aa,ee)),Fr=ee.toString()+"px"),ri=Fr!=="1px",ee=a.ya,ri!==a.Be&&(ee=ri?a.ya-a.Db:a.ya+a.Db),Ni<Kt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,at+1<jr&&(re=Math.max((jr-at)*Ei+ee,re)),Qe>ce+1&&(re=Math.max((Qe-ce)*Ei+ee,re)),Kt+1<Ni&&(re=Math.max((Ni-Kt)*Ei+ee,re)),ft=re.toString()+"px"),Mn=ft!=="1px"),a.qr&&ri===a.Be&&Mn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(ri!==a.Be&&(Fr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=ri,Ne.style.width=Fr,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=Ge.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)),Ge.free(re))),z&&Ro(a),a.gf=Mn,Ne.style.height=ft,a.gu=!0,z&&(a.pn=!0),y=Fe.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(At+1<zi?y=(a.position.x-Ve)*Ei:Ve+1<oe?y=Fe.scrollWidth-Fe.clientWidth:rt>se+1&&(y=a.position.x*Ei)),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&&(Kt+1<Ni?Fe.scrollTop=(a.position.y-at)*Ei:at+1<jr?Fe.scrollTop=Fe.scrollHeight-Fe.clientHeight:Qe>ce+1&&(Fe.scrollTop=a.position.y*Ei)),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=tn.allocAt(b,ge,xe,we),a.onViewportBoundsChanged(x,a.viewportBounds,Ei,z),tn.free(x),!1):!0}Be=Ht.prototype,Be.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Pt("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&&Pt('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(ni,"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){sl(y,x)}),(a instanceof ta||a instanceof _r&&a.placeholder!==null)&&a.v(),a.data!==null&&Mg(a,function(x){By(y.partManager,x)}),ct(a)!==!0&&sg(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){hs(this,a,!0)};function hs(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(yi,"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),Ft(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 In,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)},Ht.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=Ho(this)),this.toolManager!==null){var b=new hi;if(a!==null)if(Ft(a))for(var z=0;z<a.length;z++)Ua(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Ua(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Ua(this,b,a.value,x,E);for(a=this.nodes;a.next();)Ua(this,b,a.value,x,E);for(a=this.links;a.next();)Ua(this,b,a.value,x,E)}pr(this,b,y,E,x)}};function Ua(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=Ho(a)),x instanceof Ai){if(y.add(x,a.Pd(b,x,x.location)),x instanceof _r&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Ua(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)&&Ua(a,y,ee,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Ua(a,y,x.value,E,b)}else if(x instanceof oi)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Ua(a,y,x.value,E,b);else x instanceof ta||y.add(x,a.Pd(b,x,x.location))}function pr(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Ge.alloc(),ee=Ge.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||Ko(a,y);for(var re=Ri(),oe=Ri(),se=y.iterator,ce=Ge.alloc();se.next();){var ge=se.key,xe=se.value;if(ge.Zc()){var we=fs(a,ge,y);we!==null?re.push(new ie(ge,xe,we)):(!b||ge.canMove())&&(we=xe.point,z.assign(we),a.computeMove(ge,z.add(ee),E,ce),ge.location=ce,xe.shifted===void 0&&(xe.shifted=new Ge),xe.shifted.assign(ce.re(we)))}else se.key instanceof oi&&oe.push(se.sa)}for(Ge.free(ce),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 Ge),ge.node.location=z.add(ge.Su.shifted);for(b=Ge.alloc(),se=Ge.alloc(),ge=oe.length,xe=0;xe<ge;xe++){var Fe=oe[xe];if(we=Fe.key,we instanceof oi)if(we.suspendsRouting){we.Tg=null,ce=we.fromNode;var Ne=we.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Ne=Fe.value.point,we.dragComputation===null)y.add(we,a.Pd(E,we,ee)),zf(we,ee.x-Ne.x,ee.y-Ne.y);else{Fe=Ge.allocAt(0,0),(ce=we.i(0))&&ce.w()&&Fe.assign(ce);var Qe=ce=Ge.alloc().assign(Fe).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Qe=Ge.alloc(),Wa(a,we,ce,Qe,E)),ce.assign(we.dragComputation(we,ce,Qe)).re(Fe),y.add(we,a.Pd(E,we,ce)),zf(we,ce.x-Ne.x,ce.y-Ne.y),Ge.free(Fe),Ge.free(ce),Qe!==ce&&Ge.free(Qe)}else ce!==null&&(b.assign(ce.location),Qe=y.I(ce),Qe!==null&&b.re(Qe.point)),Ne!==null&&(se.assign(Ne.location),Qe=y.I(Ne),Qe!==null&&se.re(Qe.point)),ce!==null&&Ne!==null?b.Xa(se)?(ce=Fe.value.point,Ne=z,Ne.assign(b),Ne.re(ce),y.add(we,a.Pd(E,we,b)),zf(we,Ne.x,Ne.y)):(we.suspendsRouting=!1,we.bb()):(Fe=Fe.value.point,ce=ce!==null?b:Ne!==null?se:ee,y.add(we,a.Pd(E,we,ce)),zf(we,ce.x-Fe.x,ce.y-Fe.y))}else(we.fromNode===null||we.toNode===null)&&(ce=Fe.value.point,y.add(we,a.Pd(E,we,ee)),zf(we,ee.x-ce.x,ee.y-ce.y))}Ge.free(z),Ge.free(ee),Ge.free(b),Ge.free(se),ai(re),ai(oe),x||(Yo(a),ts(a,y))}}Ht.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Ge),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Ge.alloc(),Wa(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&&Ge.free(b),E};function Ho(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Wa(a,y,x,E,b){if(b===void 0&&(b=Ho(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=Ge.allocAt(0,0),z.yi(0,0,a,y,b),Dt.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),Ge.free(z)}}function Ko(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof oi&&(y.suspendsRouting=!0)}function ts(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof oi&&(x.suspendsRouting=!1,gy(x)&&x.bb())}a.Mr=!1}}function fs(a,y,x){return y=y.containingGroup,y!==null&&(a=fs(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Be=Ht.prototype,Be.Pd=function(a,y,x){if(x===void 0)return new bd(To);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new bd(new Ge(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new bd(x.copy())};function al(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Pt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Pt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Pt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Pt("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&&Pt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Be.Al=function(a){al(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(ni,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Be.Ww=function(a,y){al(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(yi,"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(ni,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Be.Cy=function(a,y){al(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(yi,"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(ni,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Be.kA=function(a){if(a.diagram!==this&&Pt("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(yi,"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 an),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 an),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!==Pn&&(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 Sn;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(Hn,a,this,y,x,E,b)},Ht.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===Hn){var b=a.object;if(Es(b,a.propertyName,a.I(y)),b instanceof wt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===ni){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof ei)if(typeof re=="number"&&oe instanceof wt){y?ee.pc(re):ee.Gb(re,oe);var se=ee.part;se!==null&&se.Wb()}else typeof re=="number"&&oe instanceof jl&&(oe.isRow?P1(ee,re,y?void 0:oe):w1(ee,re,y?void 0:oe));else if(ee instanceof Pl){var ce=a.oldParam===!0;typeof re=="number"&&oe instanceof ar&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ce?re:-1,oe,ce)):ee.oi(re,oe,ce))}else ee instanceof Ht?typeof re=="number"&&oe instanceof Pl&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):Pt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===yi){var ge=a.object,xe=a.oldParam,we=a.oldValue;if(ge instanceof ei)typeof xe=="number"&&we instanceof wt?y?ge.Gb(xe,we):ge.pc(xe):typeof xe=="number"&&we instanceof jl&&(we.isRow?P1(ge,xe,y?we:void 0):w1(ge,xe,y?we:void 0));else if(ge instanceof Pl){var Fe=a.newParam===!0;typeof xe=="number"&&we instanceof ar&&(y?0>ge.Pa.indexOf(we)&&ge.oi(xe,we,Fe):(we.isSelected=!1,we.isHighlighted=!1,we.Wb(),ge.pc(Fe?xe:-1,we,Fe)))}else ge instanceof Ht?typeof xe=="number"&&we instanceof Pl&&(y?(we.Xe(this),this.Wa.Gb(xe,we)):this.Wa.mb(xe)):Pt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Pn&&Pt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ht.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ht.prototype.eb=function(a){return this.undoManager.eb(a)},Ht.prototype.Kf=function(){return this.undoManager.Kf()},Ht.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}},Ht.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ht.prototype.rp=function(){this.partManager.rp()};function Xs(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ro(a),a.N(),a.Ee=!0,E.zb&&(vc(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ro(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(Ms)?re=0:se.Hf(Tl)&&(re=z-1):re=se.sb()?se.x*(z-1):z/2),isNaN(oe)&&(se.$c()?se.Hf(ic)?oe=0:se.Hf(Gl)&&(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=Ge.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Ge.free(z),a.Ca=x,Ro(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),So(a,!1),E.zb&&(vc(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Ht.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!==Zs||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Un&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ji(b,this)),this.vb||this.invalidateViewport(a,y),Os(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Os(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=gi.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var se=ee[oe],ce=Math.abs(se.interval);2>ce||(Iv(se.figure)?z=z*ce/Dt.vx(z,ce):b=b*ce/Dt.vx(b,ce))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=tn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){tn.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,tn.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Ge.alloc(),Dt.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),gi.free(E),x.part.location=y,Ge.free(y)}}Ht.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)}},Ht.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))},Ht.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Ft(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof ar||Pt("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 ar||Pt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Ht.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=Ht.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 In().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 ar||Pt("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=Ge.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)),Ge.free(z);return}Pt("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):Pt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ge.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,ce=y.dx,ge=y.dy,xe=x*ee+E*oe+ce;y=x*re+E*se+ge;var we=b*ee+E*oe+ce;return a=b*re+E*se+ge,E=x*ee+z*oe+ce,x=x*re+z*se+ge,ee=b*ee+z*oe+ce,b=b*re+z*se+ge,z=Math.min(xe,we),xe=Math.max(xe,we),we=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),xe=Math.max(xe,E),we=Math.min(we,x),y=Math.max(y,x),z=Math.min(z,ee),xe=Math.max(xe,ee),we=Math.min(we,b),y=Math.max(y,b),new tn(z,we,xe-z,y-we)},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),_o(a.copy(),this.Ab)};function eo(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function qa(a){return a=mr.get(a),a!==null?new a:new Fa}Ht.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Pn&&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===Pn){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Yo(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Ra(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&&(eo(this),this.As.clear(),Wh(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;br(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function sl(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)Kl(a,y[E])}function Kl(a,y){if(y instanceof Wc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof In&&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 La(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 In&&x.Bg.remove(a),Cp(E));break}}}}}Ht.prototype.Wd=function(){this.partManager.Wd()},Ht.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Ht.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Ht.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Ht.prototype.Vb=function(a){return this.partManager.Vb(a)},Ht.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Be=Ht.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:jn(to(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:jn(to(y)))};function Ro(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 na(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),So(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Be.Va=function(){if(this.Zi){var a=tn.alloc();na(this,this.computeBounds(a)),tn.free(a)}},Be.rz=function(){for(var a=new In,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){Yo(this),a&&Yl(this,!0),this.ld?tc(this,!1):(this.Jk=!0,$n(this))};function Yl(a,y){for(var x=a.ai.iterator;x.next();)Ru(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Ru(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)Ru(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function tc(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||ka(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)fa(a,ee.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Yo(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||Ra(z),a.aa=x}}}function fa(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)fa(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),Jo(a,y),b.isValidLayout=!0):a.xh=!0)}}Be.yz=function(){for(var a=new an,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function Za(a){function y(b){var z=b.toLowerCase(),ee=new an;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new hi,E=new hi;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 Eo(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Rr(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Pt("Unknown DiagramEvent name: "+y)}Be.Bj=function(a,y){return a=Rr(this,a),a!==null&&a.add(y),this},Be.am=function(a,y){a=Rr(this,a),a!==null&&a.remove(y)},Be.R=function(a,y,x){var E=Rr(this,a),b=new Gt;if(b.diagram=this,a=Eo(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 qo(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 Ka(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Ht.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?No(this,a):a.assign(this.documentBounds)};function Ka(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=Qs(a,x)),x===null){y=tn.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&&Sc(a,ee,E,y)}tn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=tn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Ai&&Sc(a,ee,E,y);tn.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&mS(b);return b}function Qs(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Qs(a,y.containingGroup):null}function Sc(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(Gf,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Gf}else if(y instanceof _r)for(y=y.memberParts;y.next();)b=y.value,b instanceof Ai&&Sc(a,b,x,E)}}function Xl(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Ht.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():sc(this)};function sc(a){a.vk===-1&&(a.vk=br(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=tn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),na(a,y),tn.free(y),a.Fc=!0,a.bd(),sc(a))}},a.vp))}Ht.prototype.ug=function(){this.vk!==-1&&(Zn.clearTimeout(this.vk),this.vk=-1)},Ht.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=tn.allocAt(0,0,E.width*b,E.height*b);var z=Ge.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(To)||(y=new Ge(y.x+z.x/b,y.y+z.y/b)),tn.free(E),Ge.free(z),y},Be=Ht.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 _r&&(y.$p=null)})};function Jl(a,y,x){function E(){var ce=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ce-se>oe?y(x,b,re):Zn.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 Zn.requestAnimationFrame(function(){E()}),null}Be.Wz=function(a){return Aa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Be.Jx=function(a){return a===void 0&&(a={}),Jl(this,this.Xz,a)},Be.Xz=function(a,y,x){var E=nd(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 Vh+"data":b=E.getImageData(0,0,x.width,x.height);break;case Vh:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Pt('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 nd(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Pt("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 gi(1/0,1/0):new gi(2e3,2e3));var re=y.position||null,oe=y.parts||null,se=y.padding===void 0?1:y.padding,ce=y.background||null,ge=y.omitTemporary;ge===void 0&&(ge=!0);var xe=y.document||document,we=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 oo(se):se instanceof oo||Pt("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 zu(null,xe,void 0,!0);var Ne=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=xe,E.hs=we,Qo(a,E.context,se,new gi(ge.width,ge.height),a.Ca,a.pa,oe,ce,Fe,y),E.context):(a.Xm=!1,Qo(a,Ne,se,new gi(ge.width,ge.height),a.Ca,a.pa,oe,ce,Fe,y),a.Xm=!0,ge.context);var Qe=a.Pp,Ve=a.documentBounds.copy();if(Ve.Fv(a.yb),Fe)for(var rt=a.Wa.s,at=rt.length,ft=0;ft<at;ft++){var At=rt[ft];if(At.visible&&At.isTemporary){At=At.Pa.s;for(var Kt=At.length,Ei=0;Ei<Kt;Ei++){var zi=At[Ei];zi.isInDocumentBounds&&zi.isVisible()&&(zi=zi.actualBounds,zi.w()&&Ve.ed(zi))}}}if(rt=new Ge(Ve.x,Ve.y),oe!==null){for(at=new tn(0,0,0,0),ft=!0,At=oe.iterator,At.reset();At.next();)Kt=At.value,Kt instanceof ar&&(Ei=Kt.layer,Ei!==null&&!Ei.visible||Ei!==null&&!Fe&&Ei.isTemporary||!Kt.isVisible()||(Kt=Kt.actualBounds,Kt.w()&&(ft?(ft=!1,at.assign(Kt)):at.ed(Kt))));Ve.width=at.width,Ve.height=at.height,rt.x=at.x,rt.y=at.y}return re!==null&&re.w()&&(rt=re,z||(z=Qe)),at=re=0,se!==null&&(re=se.left+se.right,at=se.top+se.bottom),ft=At=0,b!==null&&(At=b.width,ft=b.height,isFinite(At)&&(At=Math.max(0,At-re)),isFinite(ft)&&(ft=Math.max(0,ft-at))),b!==null&&z!==null?(z==="NaN"&&(z=Qe),b.w()?(b=At,Ve=ft):isNaN(ft)?(b=At,Ve=Ve.height*z):(b=Ve.width*z,Ve=ft)):b!==null?b.w()?(z=Math.min(At/Ve.width,ft/Ve.height),b=At,Ve=ft):isNaN(ft)?(z=At/Ve.width,b=At,Ve=Ve.height*z):(z=ft/Ve.height,b=Ve.width*z,Ve=ft):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ve.width,(ee.height-at)/Ve.height),z>Qe?(z=Qe,b=Ve.width,Ve=Ve.height):(b=ee.width,Ve=ee.height)):(b=Ve.width*z,Ve=Ve.height*z):(z=Qe,b=Ve.width,Ve=Ve.height),se!==null?(b+=re,Ve+=at):se=new oo(0),ee!==null&&(Qe=ee.width,ee=ee.height,isNaN(Qe)&&(Qe=2e3),isNaN(ee)&&(ee=2e3),isFinite(Qe)&&(b=Math.min(b,Qe)),isFinite(ee)&&(Ve=Math.min(Ve,ee))),ge.width=Math.ceil(b),ge.height=Math.ceil(Ve),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=xe,E.hs=we,Qo(a,E.context,se,new gi(Math.ceil(b),Math.ceil(Ve)),z,rt,oe,ce,Fe,y),E.context):(a.Xm=!1,Qo(a,Ne,se,new gi(Math.ceil(b),Math.ceil(Ve)),z,rt,oe,ce,Fe,y),a.Xm=!0,ge.context)}zt.Object.defineProperties(Ht.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 Wo(this,Zn.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 Wo(this,Zn.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(Zn,"resize",this.Ov,!1),this.removeEventListener(Zn,"wheel",this.$j,!0),lt===this&&(lt=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Yi(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)&&En(a,"0 <= value <= 1",Ht,"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),So(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),So(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),So(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),So(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&En(a,">= 0",Ht,"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&&En(a,">= 0",Ht,"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 En(a,">= 0",Ht,"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||eo(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&&Pt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=xn(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ka(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=qa(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(Zn,"pointermove",this.dk,!0),this.addEventListener(Zn,"pointerdown",this.ui,!0),this.addEventListener(Zn,"pointerup",this.fk,!0),this.addEventListener(Zn,"pointerout",this.ek,!0),this.addEventListener(Zn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Zn,"wheel",this.$j,!0),this.addEventListener(Zn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Zn,"pointermove",this.dk,!0),this.removeEventListener(Zn,"pointerdown",this.ui,!0),this.removeEventListener(Zn,"pointerup",this.fk,!0),this.removeEventListener(Zn,"pointerout",this.ek,!0),this.removeEventListener(Zn,"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(Zn,"wheel",this.$j,!0),this.removeEventListener(Zn,"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=Ge.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Wd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ro(this):(this.vb=!0,a=this.scale,lr(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)}Ge.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=Po(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Po(this)),a.type!==ei.Grid&&Pt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Os(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ro(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||Pt("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 oo(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===nh&&So(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,So(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,Xs(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&&Xs(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!==Zs&&So(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()||Pt("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()||Pt("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)):En(a,"> 0",Ht,"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)):En(a,"> 0",Ht,"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),So(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 oo(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&&Pt("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!==ih&&a!==Js&&a!==zh&&Pt("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 gi(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 oo(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),zt.Object.defineProperties(Ht,{licenseKey:{get:function(){return sf.jc()},set:function(a){sf.add(a.replace(/\s/g,""))}},version:{get:function(){return vh}}}),Ht.prototype.makeImageData=Ht.prototype.Jx,Ht.prototype.makeImage=Ht.prototype.Wz,Ht.prototype.cacheGroupExternalLinks=Ht.prototype.Fu,Ht.prototype.addRenderer=Ht.prototype.bs,Ht.prototype.makeSVG=Ht.prototype.av,Ht.prototype.makeSvg=Ht.prototype.Cs,Ht.prototype.stopAutoScroll=Ht.prototype.ug,Ht.prototype.doAutoScroll=Ht.prototype.gs,Ht.prototype.isUnoccupied=Ht.prototype.Yj,Ht.prototype.raiseDiagramEvent=Ht.prototype.R,Ht.prototype.removeDiagramListener=Ht.prototype.am,Ht.prototype.addDiagramListener=Ht.prototype.Bj,Ht.prototype.findTreeRoots=Ht.prototype.yz,Ht.prototype.layoutDiagram=Ht.prototype.Uz,Ht.prototype.findTopLevelGroups=Ht.prototype.qz,Ht.prototype.findTopLevelNodesAndLinks=Ht.prototype.rz,Ht.prototype.ensureBounds=Ht.prototype.Va,Ht.prototype.findLinksByExample=Ht.prototype.ls,Ht.prototype.findNodesByExample=Ht.prototype.ms,Ht.prototype.findLinkForData=Ht.prototype.Kc,Ht.prototype.findNodeForData=Ht.prototype.ii,Ht.prototype.findPartForData=Ht.prototype.Lc,Ht.prototype.findLinkForKey=Ht.prototype.findLinkForKey,Ht.prototype.findNodeForKey=Ht.prototype.Vb,Ht.prototype.findPartForKey=Ht.prototype.findPartForKey,Ht.prototype.rebuildParts=Ht.prototype.Wd,Ht.prototype.transformViewToDoc=Ht.prototype.Ps,Ht.prototype.transformRectDocToView=Ht.prototype.zA,Ht.prototype.transformDocToView=Ht.prototype.op,Ht.prototype.centerRect=Ht.prototype.es,Ht.prototype.scrollToRect=Ht.prototype.tv,Ht.prototype.scroll=Ht.prototype.scroll,Ht.prototype.highlightCollection=Ht.prototype.Jz,Ht.prototype.highlight=Ht.prototype.Iz,Ht.prototype.selectCollection=Ht.prototype.rA,Ht.prototype.select=Ht.prototype.select,Ht.prototype.updateAllRelationshipsFromData=Ht.prototype.rp,Ht.prototype.updateAllTargetBindings=Ht.prototype.updateAllTargetBindings,Ht.prototype.commit=Ht.prototype.commit,Ht.prototype.rollbackTransaction=Ht.prototype.Kf,Ht.prototype.commitTransaction=Ht.prototype.eb,Ht.prototype.startTransaction=Ht.prototype.Ea,Ht.prototype.raiseChanged=Ht.prototype.g,Ht.prototype.raiseChangedEvent=Ht.prototype.cb,Ht.prototype.removeChangedListener=Ht.prototype.ik,Ht.prototype.addChangedListener=Ht.prototype.Pe,Ht.prototype.removeModelChangedListener=Ht.prototype.mA,Ht.prototype.addModelChangedListener=Ht.prototype.Yw,Ht.prototype.findLayer=Ht.prototype.Qj,Ht.prototype.removeLayer=Ht.prototype.kA,Ht.prototype.addLayerAfter=Ht.prototype.Cy,Ht.prototype.addLayerBefore=Ht.prototype.Ww,Ht.prototype.addLayer=Ht.prototype.Al,Ht.prototype.moveParts=Ht.prototype.moveParts,Ht.prototype.copyParts=Ht.prototype.Kj,Ht.prototype.removeParts=Ht.prototype.Is,Ht.prototype.remove=Ht.prototype.remove,Ht.prototype.add=Ht.prototype.add,Ht.prototype.clearDelayedGeometries=Ht.prototype.bx,Ht.prototype.setProperties=Ht.prototype.nm,Ht.prototype.attach=Ht.prototype.Du,Ht.prototype.set=Ht.prototype.set,Ht.prototype.resetInputOptions=Ht.prototype.Sx,Ht.prototype.setInputOption=Ht.prototype.sA,Ht.prototype.getInputOption=Ht.prototype.Ql,Ht.prototype.resetRenderingHints=Ht.prototype.Tx,Ht.prototype.setRenderingHint=Ht.prototype.Xx,Ht.prototype.getRenderingHint=Ht.prototype.Gf,Ht.prototype.maybeUpdate=Ht.prototype.bd,Ht.prototype.requestUpdate=Ht.prototype.$b,Ht.prototype.delayInitialization=Ht.prototype.Xy,Ht.prototype.isUpdateRequested=Ht.prototype.Pz,Ht.prototype.invalidateDocumentBounds=Ht.prototype.Ya,Ht.prototype.findObjectsNear=Ht.prototype.og,Ht.prototype.findPartsNear=Ht.prototype.mz,Ht.prototype.findObjectsIn=Ht.prototype.Cf,Ht.prototype.findPartsIn=Ht.prototype.ux,Ht.prototype.findObjectsAt=Ht.prototype.ji,Ht.prototype.findPartsAt=Ht.prototype.lz,Ht.prototype.findObjectAt=Ht.prototype.ic,Ht.prototype.findPartAt=Ht.prototype.Ol,Ht.prototype.focusObject=Ht.prototype.zz,Ht.prototype.alignDocument=Ht.prototype.Jy,Ht.prototype.zoomToRect=Ht.prototype.BA,Ht.prototype.zoomToFit=Ht.prototype.zoomToFit,Ht.prototype.diagramScroll=Ht.prototype.kx,Ht.prototype.focus=Ht.prototype.focus;var mr=new hi,vs=null,Aa=Zn.document!==void 0,qs=null,Uu="",Zs=new on(Ht,"None",0),ru=new on(Ht,"Uniform",1),gd=new on(Ht,"UniformToFill",2),Vd=new on(Ht,"CycleAll",10),of=new on(Ht,"CycleNotDirected",11),bu=new on(Ht,"CycleNotDirectedFast",12),Ef=new on(Ht,"CycleNotUndirected",13),ng=new on(Ht,"CycleDestinationTree",14),Nf=new on(Ht,"CycleSourceTree",15),nh=new on(Ht,"DocumentScroll",1),af=new on(Ht,"InfiniteScroll",2),ih=new on(Ht,"TreeParentCollapsed",21),Js=new on(Ht,"AllParentsCollapsed",22),zh=new on(Ht,"AnyParentsCollapsed",23),sf=new an,vh="2.3.10",Vh="image",yh=null,Gh=!1;function Bu(){if(Aa){var a=Zn.document.createElement("canvas"),y=a.getContext("2d"),x=Ln("7ca11abfd022028846");y[x]=Ln("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",ki.Dx+"4ae6247590da4bb21c324ba3a84e385776",qr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Dt.za],b=1;5>b;b++)y[Ln("7ca11abfd7330390")](Ln(E[b-1]),10,15*b);for(y[x]=Ln("39f046ebb36e4b"),x=1;5>x;x++)y[Ln("7ca11abfd7330390")](Ln(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(qr.prototype.Cd=qr.prototype.Eu),yh=a}}Ht.className="Diagram",Ht.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Zn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ht?y.H:null},Ht.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},Ht.useDOM=function(a){Aa=a?Zn.document!==void 0:!1},Ht.isUsingDOM=function(){return Aa},Ht.None=Zs,Ht.Uniform=ru,Ht.UniformToFill=gd,Ht.CycleAll=Vd,Ht.CycleNotDirected=of,Ht.CycleNotDirectedFast=bu,Ht.CycleNotUndirected=Ef,Ht.CycleDestinationTree=ng,Ht.CycleSourceTree=Nf,Ht.DocumentScroll=nh,Ht.InfiniteScroll=af,Ht.TreeParentCollapsed=ih,Ht.AllParentsCollapsed=Js,Ht.AnyParentsCollapsed=zh;function Bg(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Sh(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=Zn[Ln("76a715b2f73f148a")][Ln("72ba13b5")]||"";if(a.Rc=!0,Aa){var E=Ht[Ln("76a115b6ed251eaf4692")];if(E)for(var b=sf.iterator;b.next()&&(E=b.value,E=Ln(E).split(Ln("39e9")),!(6>E.length));){var z=Ln(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=Ln(ki[Ln("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Zn[Ln("74a900bae4370f8b51")][Ln("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Ln("73a612b6fb191d")](Ln("3aad1ab6e022098b4dc4")),z=Ln(E[2]),-1<ee&&(re=re[Ln("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Ln("76ad18b4f73e")],re=x[Ln("73a612b6fb191d")](Ln("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Ln("73a612b6fb191d")](z),0>ee&&z!==Ln("7da71ca0ad381e90")&&(ee=y[Ln("73a612b6fb191d")](Ln("76a715b2ef3e149757"))),0>ee&&(ee=y[Ln("73a612b6fb191d")](Ln("76a715b2ef3e149757"))),0>ee&&(ee=y[Ln("73a612b6fb191d")](Ln("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Ln("73a612b6fb191d")](Ln("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Ln("73a612b6fb191d")](Ln("35"))||y[Ln("73a612b6fb191d")](Ln("35"))===-1),!a.Rc||x[Ln("73a612b6fb191d")](Ln("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Ln("73a612b6fb191d")](z)),!a.Rc)||(ee=Zn[Ln("76a715b2f73f148a")][Ln("69ad17a1e03e")],re=ee[Ln("73a612b6fb191d")](Ln("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Ln("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Zn.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[Ln("79a417a0f0181a8946")]=E,Zn.document[Ln("78a712aa")]){Zn.document[Ln("78a712aa")][Ln("7bb806b6ed32388c4a875b")](ee),oe=Zn.getComputedStyle(ee).getPropertyValue(Ln("78a704b7e62456904c9b12701b6532a8"));var se=Zn.getComputedStyle(ee).getPropertyValue(Ln("75b817b0ea2202"));if(Zn.document[Ln("78a712aa")][Ln("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Zn[Ln("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(Ln("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ce in ee)if(E===ee[ce].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ce=x[Ln("76ad18b4f73e")],b=x[Ln("73a612b6fb191d")](Ln("35e7"))+2;b<ce;b++)y+=x[b];x=y[Ln("73a612b6fb191d")](Ln("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Ln("73a612b6fb191d")](Ln("35")))}}}return 0<a.Rc&&a!==a.wy}Bg.className="DiagramHelper";function bd(a){this.j=a===void 0?new Ge:a,this.o=new Ge}zt.Object.defineProperties(bd.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 lu="DraggingInfo";bd.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 gi(NaN,NaN).freeze(),this.gridSnapCellSpot=bl,this.gridSnapOrigin=new Ge(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"||Zn.Element&&a instanceof Element)var x=Ht.call(this,a)||this;else x=Ht.call(this)||this,y=a;return he(x),y&&x.nm(y),x}_t(fe,Ht);function he(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=wr,a.layout=new Lu}fe.prototype.reset=function(){Ht.prototype.reset.call(this),he(this)},fe.className="Palette";function me(a,y){if(typeof a=="string"||Zn.Element&&a instanceof Element)var x=Ht.call(this,a)||this;else x=Ht.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 ar;var b=new io;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 oo(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Je,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new Ge(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){E.Ya(),je(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&&je(E)},x.autoScale=ru,x.vb=!1,y&&Object.assign(x,y),x}_t(me,Ht),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(Xo(this),this.ql===null){var x=new zu(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),Le(this)}finally{this.ta=a,this.ib=y}}}Ht.prototype.redraw.call(this)},me.prototype.gc=function(){if(this.Ka===null&&Pt("No div specified"),this.ta===null&&Pt("No canvas specified"),!(this.ta instanceof Wo)&&(ny(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Xo(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?Le(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 Le(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=tn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Os(y,b),tn.free(b),Yo(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=yc(re,b),se.gc(b,oe),b.globalAlpha=re);else{for(var ce=yc(re,b),ge=oe.scale,xe=tn.alloc(),we=re.Pa.s,Fe=we.length,Ne=0;Ne<Fe;Ne++){var Qe=we[Ne];(E||Qe!==se)&&re.Oj(b,Qe,oe,null,ge,xe,!1)}tn.free(xe),b.globalAlpha=ce}}}}}function je(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=gi.alloc();b.h(x.width,x.height),E.desiredSize=b,gi.free(b),a=2/a.scale,E instanceof io&&(E.strokeWidth=a),y.location=new Ge(x.x-a/2,x.y-a/2),y.isSelected=!0}}}me.prototype.computeBounds=function(){var a=this.observed;if(a===null)return du;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(),je(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))},zt.Object.defineProperties(me.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof me&&Pt("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),je(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),je(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 Je(){tr.call(this),this.j=null}_t(Je,tr),Je.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 Ge(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ge(a.x-this.j.x,a.y-this.j.y)),!0)},Je.prototype.doActivate=function(){this.j=null,tr.prototype.doActivate.call(this)},Je.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Je.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 Ge(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ge(a.x-this.j.x,a.y-this.j.y)}}},Je.className="OverviewDraggingTool";function Ye(){Or(this),this.H=lt,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=du,this.hb=!0,this.cg=null,this.ob=200}Ye.prototype.toString=function(){return"CommandHandler"},Ye.prototype.Xe=function(a){this.H=a},Ye.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=co?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()},Ye.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ye.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Un&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Ye.prototype.canStopCommand=function(){return!0},Ye.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=""}},Ye.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ye.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 In,x=a.selection.iterator;x.next();)ug(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=""}},Ye.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Ye.prototype.copySelection=function(){var a=this.diagram,y=new In;for(a=a.selection.iterator;a.next();)ug(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Ye.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Ye.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ye.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Ye.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)qs=null,Uu="";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 an,x.addAll(z),qs=x,Uu=y.model.dataFormat}}y.R("ClipboardChanged",x)},Ye.prototype.pasteFromClipboard=function(){var a=new In,y=qs;if(y===null)return a;var x=this.diagram;if(Uu!==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},Ye.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);pr(y,z,new Ge(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=""}},Ye.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||qs===null||qs.count===0||Uu!==a.model.dataFormat)},Ye.prototype.undo=function(){this.diagram.undoManager.undo()},Ye.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Ye.prototype.redo=function(){this.diagram.undoManager.redo()},Ye.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Ye.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Zs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ye.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Zs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ye.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Zs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ye.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Zs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ye.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Ye.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Ye.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;ka(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=du):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Ra(y)},Ye.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ye.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;ka(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=gt(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 Ai&&oe.isTreeExpanded&&(!(oe instanceof _r)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof ar&&y.tv(oe.actualBounds),oe instanceof Ai&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof _r&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof ar&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){br(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 gt(a,y,x){if(y.isVisible())return x;if(y instanceof ta)gt(a,y.adornedPart,x);else if(y instanceof oi){var E=y.fromNode;E!==null&>(a,E,x),y=y.toNode,y!==null&>(a,y,x)}else y instanceof Ai&&(E=y.labeledLink,E!==null&>(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),gt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),gt(a,y,x));return x}Ye.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ar)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Ye.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ka(y.animationManager,"Collapse Tree");var x=new an;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 Ai&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Ye.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ai&&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 Ai&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ye.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ka(y.animationManager,"Expand Tree");var x=new an;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 Ai&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Ye.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ai)||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 Ai&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ye.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 an,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new an,oe=b.iterator;oe.next();){var se=oe.value;z=!1;for(var ce=b.iterator;ce.next();)if(se.Td(ce.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 xe=re.iterator;xe.next();)if(!xe.value.Td(ge)){b=!0;break}if(b)ge=ge.containingGroup;else break}if(x instanceof _r)Ud(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var we=y.copyNodeData(x);Mt(we)&&(y.xf(we),E=a.ii(we))}if(E!==null){ge!==null&&this.isValidMember(ge,E)&&(E.containingGroup=ge);for(var Fe=re.iterator;Fe.next();){var Ne=Fe.value;this.isValidMember(E,Ne)&&(Ne.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Ye.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 $t(a){var y=Ri();for(a=a.iterator;a.next();){var x=a.value;x instanceof oi||y.push(x)}a=new In,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 ai(y),a}Ye.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof oi)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},Ye.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 an;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof _r&&z.canUngroup()&&E.add(z)}var ee=new an;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var se=oe.containingGroup,ce=se!==null&&se.data!==null?x.wa(se.data):void 0;ee.addAll(oe.memberParts);for(var ge=ee.iterator;ge.next();){var xe=ge.value;if(xe.isSelected=!0,!(xe instanceof oi)){var we=xe.data;we!==null?x.mp(we,ce):xe.containingGroup=se}}y.remove(oe)}}y.R("SelectionUngrouped",E,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ye.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 _r))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _r&&y.canUngroup())return!0;return!1},Ye.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=$t(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Ye.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ka(y.animationManager,"Collapse SubGraph");var x=new an;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 _r&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Ye.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof _r&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _r&&y.isSubGraphExpanded)return!0;return!1},Ye.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ka(y.animationManager,"Expand SubGraph");var x=new an;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 _r&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Ye.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof _r&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _r&&!y.isSubGraphExpanded)return!0;return!1},Ye.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 os&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Ye.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 os))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 os&&x.editable}),a!==null))return!0;return!1},Ye.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 wt?b=a.ga(Dr):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Ge(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,fu(x,!1,a)}},Ye.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)},Ye.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 hi,a===null)return E;for(var z=a.iterator;z.next();)Ua(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 oi&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},zt.Object.defineProperties(Ye.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||Pt("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}}}),Ye.className="CommandHandler",wi=function(){return new Ye};function wt(){Or(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ge(NaN,NaN).freeze(),this.jd=Ls,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 tn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new tn(NaN,NaN,NaN,NaN).freeze(),this.dc=new tn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Ul,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 Kn,Nn,Zi,Xi,Rt,ii,Ji,or,vr,Wr;wt.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=sn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},wt.prototype.Vw=function(a){var y=this.Dh;if(Ft(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},wt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},wt.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},wt.prototype.copy=function(){return this.clone()},Be=wt.prototype,Be.qb=function(a){a.classType===oi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Pt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===wt&&(this.stretch=a)},Be.toString=function(){return Ti(this.constructor)+"#"+fr(this)},Be.th=function(){this.A!==null&&(this.A.nc=!0)};function Er(a){a.A===null?a.A=new Ar:a.A.nc&&(a.A=a.A.copy())}Be.Xc=function(){if(this.ba===null){var a=new Xr;a.Xi=il,a.yj=il,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===Hn&&ve(this)&&ea(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 hi),ee=z.undoManager.transactionLevel===0,a.startCondition===fd?ee=!0:a.startCondition===zd&&(ee=!1),ee?(z=new iu,rf(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()):(ka(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ei&&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 ei&&Mg(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function ea(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(Hn,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 ws(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?Ea(a.x,a.y,0,0,0,E.height)<=y||Ea(a.x,a.y,0,E.height,E.width,E.height)<=y||Ea(a.x,a.y,E.width,E.height,E.width,0)<=y||Ea(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=Ge.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ge.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=gl(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Ge.free(y),a}return b=!1,(this instanceof ta||this instanceof io?gl(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)),Ge.free(y),b},Be.gh=function(a){var y=this.naturalBounds;return gl(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=tn.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Ge.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)))),Ge.free(b),tn.free(y),E},Be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Ge.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)))),Ge.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=Ge.allocAt(0,0),b=Ge.allocAt(0,x.height),z=Ge.allocAt(x.width,x.height),ee=Ge.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=tn.allocAt(0,0,x.width,x.height);var oe=Ge.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)))),Ge.free(oe),tn.free(x),!re&&(Dt.us(a,E,b)||Dt.us(a,b,z)||Dt.us(a,z,ee)||Dt.us(a,ee,E))&&(re=!0)}return Ge.free(E),Ge.free(b),Ge.free(z),Ge.free(ee),re},Be.ga=function(a,y){if(y===void 0&&(y=new Ge),a instanceof ir){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 tn);var y=this.naturalBounds,x=this.oe,E=Ge.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),ga(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),ga(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),ga(a,E.x,E.y,0,0),Ge.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 Ge),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,ce=z.m11*ee,ge=ee*(z.m21*z.dy-z.m22*z.dx),xe=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Dt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*se+ge,a=a*oe+y*ce+xe,y=x*re+E*se+ge,x=x*oe+E*ce+xe,b.h(0,0),E=this.naturalBounds,x=Dt.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},wt.prototype.measure=function(a,y,x,E){if(Xe(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 ei;switch(Zu(this,!0)){case Nn:ee=b=0,re&&(y=a=1/0);break;case Kn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case Xi:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case Rt: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()||Pt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),qe(this,!1)}},wt.prototype.Wl=function(){},wt.prototype.Dd=function(){return!1},wt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=tn.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&&If(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 os&&(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()||Pt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),St(this,!1),tn.free(z)},Be=wt.prototype,Be.eh=function(){};function Ml(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=Zu(a,!0),x===E&&z===b&&(y=Nn),y){case Nn:(x>E||z>b)&&(qe(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Kn:qe(a,!0),a.measure(E,b,0,0);break;case Xi:qe(a,!0),a.measure(E,z,0,0);break;case Rt:qe(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(),Vl(a,y)||(x.oh(),this.Pn(x)))},Be.Pn=function(a){this.portId!==null&&(oy(a,!0),a instanceof Ai&&tS(a,this))},Be.gc=function(a,y){if(!wu(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 ei&&If(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,se=this.areaBackground,ce=this.Ma;se===null&&ce===null||a.yc(),se!==null&&(gs(this,a,se,!0,!0,oe,re),se instanceof $o&&se.type===Dd?(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)),ce!==null&&(gs(this,a,ce,!0,!1,oe,re),ce instanceof $o&&ce.type===Dd?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&dl(this),se=this.part,oe=!1;var ge=0;se&&y.Gf("drawShadows")&&(oe=se.isShadowed)&&(ce=se.shadowOffset,ge=Math.max(ce.y,ce.x)*y.scale*y.Mb),ce=this.Dd();var xe;if(!(xe=y.$i||!ce)){var we=this.naturalBounds;xe=this.wh;var Fe=xe.m11,Ne=xe.m21,Qe=xe.dx,Ve=xe.m12,rt=xe.m22,at=xe.dy,ft,At=ft=0;xe=ft*Fe+At*Ne+Qe;var Kt=ft*Ve+At*rt+at;ft=we.width+ge,At=0;var Ei=ft*Fe+At*Ne+Qe;ft=ft*Ve+At*rt+at,At=Math.min(xe,Ei);var zi=Math.min(Kt,ft),Ni=Math.max(xe+0,Ei)-At,ri=Math.max(Kt+0,ft)-zi;xe=At,Kt=zi,ft=we.width+ge,At=we.height+ge,Ei=ft*Fe+At*Ne+Qe,ft=ft*Ve+At*rt+at,At=Math.min(xe,Ei),zi=Math.min(Kt,ft),Ni=Math.max(xe+Ni,Ei)-At,ri=Math.max(Kt+ri,ft)-zi,xe=At,Kt=zi,ft=0,At=we.height+ge,Ei=ft*Fe+At*Ne+Qe,ft=ft*Ve+At*rt+at,At=Math.min(xe,Ei),zi=Math.min(Kt,ft),Ni=Math.max(xe+Ni,Ei)-At,ri=Math.max(Kt+ri,ft)-zi,xe=At,Kt=zi,ge=y.viewportBounds,we=ge.x,Fe=ge.y,xe=!(xe>ge.width+we||we>Ni+xe||Kt>ge.height+Fe||Fe>ri+Kt)}if(xe){if(xe=(this.l&256)!==0,a.clipInsteadOfFill&&(xe=!1),this instanceof os&&(a.font=this.font),xe){if(Kt=re.se()?re.naturalBounds:re.actualBounds,Ni=Math.max(ee.x,Kt.x),ri=Math.max(ee.y,Kt.y),ge=Math.min(ee.right,Kt.right)-Ni,we=Math.min(ee.bottom,Kt.bottom)-ri,Fe=this.tb,Fe!==null&&(Ni=Fe.x,ri=Fe.y,ge=Fe.width,we=Fe.height),Ni>ee.width+ee.x||ee.x>Kt.width+Kt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ni,ri,ge,we),a.clip()}if(ce){if(!se.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Kt=se.shadowOffset,a.Ev(Kt.x*y.scale*this.scale*y.Mb,Kt.y*y.scale*this.scale*y.Mb,se.shadowBlur),Cu(a),a.shadowColor=se.shadowColor)}oe&&this.shadowVisible===!0?Cu(a):oe&&this.shadowVisible===!1&&lc(a),se=this.naturalBounds,this.areaBackground!==null&&(a.yc(),wl(this,a,se,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&us(this,re)&&this.shadowVisible===null&&lc(a),this.Ma!==null&&(a.yc(),Hs(this,a,se,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||us(this,re))?(Oc(this,!0),this.shadowVisible===null&&lc(a)):Oc(this,!1),this.hh(a,y),oe&&this.l&512&&Cu(a),ce&&oe&&lc(a),xe&&(a.restore(),a.Vc(this instanceof ei)),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 us(a,y){return y===null?!1:(If(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ei.Auto||y.type===ei.Spot)&&y.Pb()!==a)}Be.Dv=function(){};function wl(a,y,x,E){gs(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof $o&&a.areaBackground.type===Dd?(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 Hs(a,y,x,E){var b=a.kq(),z=x.x,ee=x.y,re=x.width+b,oe=x.height+b;gs(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof $o&&a.Ma.type===Dd?(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 $s(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===ei.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 wu(a,y,x){if(!(y instanceof va))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&&$s(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),Cu(y),y.shadowColor=a.shadowColor}a instanceof os&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof ei;var re=a instanceof ei?If(a):!1;a.l&4096&&dl(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(Bd(y,1,0,0,1,0,0),a.svg=y.ad):z?(Bd(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):Bd(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],wl(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]),Hs(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],Hs(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&&Cu(y),re&&a.shadowVisible===!0?Cu(y):re&&a.shadowVisible===!1&&lc(y),b=a.panel,re&&us(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||us(a,b))?(Oc(a,!0),a.shadowVisible===null&&lc(y)):Oc(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),rs(y,se),!0):(a.svg=re,ee!==null&&re===null&&(pd(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&&Cu(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&&$s(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"+Bo++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof ei&&(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"),rs(a,E)};function rs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Fs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=to(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 ei?If(this):!1;if(!(this instanceof ei&&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&&Ks(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Hu(a)):y.setAttributeNS(null,"transform",Hu(a))}else if(!x||this instanceof ei)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof io){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],wl(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&&Uh(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Uh(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof ei))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Hs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Uh(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&&Uh(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 gs(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===Of)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 Eh)&&x.xe&&(x.type===Sp||x.yk===re&&x.ft===oe))var ce=x.xe;else{var ge=0,xe=0,we=0,Fe=0,Ne=0,Qe=0;if(Qe=Ne=0,b?(Ne=ee.x,Qe=ee.y):E||(Ne-=se/2,Qe-=se/2),ge=x.start.x*re+x.start.offsetX,xe=x.start.y*oe+x.start.offsetY,we=x.end.x*re+x.end.offsetX,Fe=x.end.y*oe+x.end.offsetY,ge+=Ne,we+=Ne,xe+=Qe,Fe+=Qe,x.type===wf)ce=y.createLinearGradient(ge,xe,we,Fe);else if(x.type===Dd)Qe=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Ne=0,Qe=Math.max(re,oe)/2):Ne=x.startRadius,ce=y.createRadialGradient(ge,xe,Ne,we,Fe,Qe);else if(x.type===Sp)try{ce=y.createPattern(x.pattern,"repeat")}catch(rt){ce=null}if(x.type!==Sp&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ce.addColorStop(b.key,b.value);if(z&&(x.xe=ce,ce!==null&&(x.yk=re,x.ft=oe),ce===null&&x.type===Sp&&x.yk!==-1)){x.yk=-1;var Ve=a.diagram;Ve!==null&&x.yk===-1&&br(function(){Ve.redraw()},600)}}E?y.fillStyle=ce:y.strokeStyle=ce}}}Be.rg=function(a){if(a instanceof ei)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 ei?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function dl(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),Re(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Re(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,Re(a,!1)))}Be.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ge.alloc();z.yi(y,x,E,b,Dr),a.rotate(this.Kb,z.x,z.y),Ge.free(z)}},Be.v=function(a){if(!Xe(this)){a===void 0&&(a=!1),qe(this,!0),St(this,!0);var y=this.panel;y===null||a||y.v()}},Be.Uj=function(){Xe(this)||(qe(this,!0),St(this,!0))};function Wu(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 Ai&&a.Bd(),y.$b())),St(a,!0)}}Be.Uk=function(){!(this.l&2048)&&(be(this,!0),Re(this,!0))},Be.Wu=function(){Re(this,!0)},Be.N=function(){var a=this.part;a!==null&&a.N()};function Zu(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===ei.Table?id(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ei.Auto&&E.Pb()===a?Wl(a,Kn,y):x===ii?E!==null?E.type===ei.Spot&&E.Pb()===a?Wl(a,Kn,y):(x=E.defaultStretch,x===ii?Wl(a,Nn,y):Wl(a,x,y)):Wl(a,Nn,y):Wl(a,x,y)}function id(a,y,x,E){var b=a.stretch;if(b!==ii)return Wl(a,b,E);var z=b=null;switch(y.stretch){case Rt:z=!0;break;case Kn:z=!0}switch(x.stretch){case Xi:b=!0;break;case Kn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Xi||y===Kn),z===null&&(z=y===Rt||y===Kn),b===!0&&z===!0?Wl(a,Kn,E):b===!0?Wl(a,Xi,E):z===!0?Wl(a,Rt,E):Wl(a,Nn,E)}function Wl(a,y,x){if(x)return y;if(y===Nn||(x=a.desiredSize,x.w()))return Nn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Xi)return Nn;if(y===Kn)return Rt}else{if(y===Rt)return Nn;if(y===Kn)return Xi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Rt)return Nn;if(y===Kn)return Xi}else{if(y===Xi)return Nn;if(y===Kn)return Rt}return y}function Oc(a,y){a.l=y?a.l|512:a.l&-513}function ve(a){return(a.l&1024)!==0}function ye(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 Re(a,y){a.l=y?a.l|4096:a.l&-4097}function Xe(a){return(a.l&8192)!==0}function qe(a,y){a.l=y?a.l|8192:a.l&-8193}function ct(a){return(a.l&16384)!==0}function St(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,Wu(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 Qt(a){var y=a.part;if(y instanceof Ai&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||tS(y,a)}}function wn(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ei?a instanceof Ai?a.Bd():a.qm(a,function(x){Qt(x)}):Qt(a))}Be.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Cl(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&C1(a)&&Pt("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new an),this.localBindings.add(b),this},Be.set=function(a){return Object.assign(this,a),this},Be.Du=function(a){return un(this,a),this},Be.apply=function(a){return a(this),this},Be.nm=function(a){return Cr(this,a),this},Be.pz=function(){return this.ih()},Be.ih=function(){for(var a=this instanceof ei?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 hi),this.animationTriggers.add(a.propertyName,a),this};function fn(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=bi.I(a);typeof z=="function"?(x=sn(arguments),E=z(x),Mt(E)||Pt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Zn.go[a]}if(E===null&&(b!=null&&b.constructor||Pt("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 Ht&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Yi(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?Pt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):un(E,z);return E}function un(a,y){if(typeof y=="string")if(a instanceof os)a.text=y;else if(a instanceof io)a.figure=y;else if(a instanceof Wc)a.source=y;else if(a instanceof ei)y=rh.I(y),y!==null&&(a.type=y);else if(a instanceof $o){var x=Vt($o,y);x!==null?a.type=x:Pt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof si?(y=Vt(si,y),y!==null&&(a.type=y)):a instanceof Zo&&(y=Vt(Zo,y),y!==null&&(a.type=y));else if(y instanceof wt)a instanceof ei||Pt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof jl){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof jl?u0(E,y):Pt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof on)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ql)a.type=y;else if(y instanceof Cl)a instanceof wt||a instanceof jl?a.bind(y):Pt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Tc)a instanceof wt?a.Jv(y):Pt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof el)a instanceof si&&a.type===si.o?a.figures.add(y):Pt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Zo)a instanceof el?a.segments.add(y):Pt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Cs)a instanceof Ht||a instanceof _r?a.layout=y:Pt("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++)un(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof $o){x=new Jt;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);Cr(a,x)}else if(a instanceof jl){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&Pt("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)&&Pt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Jt;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Cr(a,b)}else Cr(a,y);else Pt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function ln(a,y){bi.add(a,y)}function Rn(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}zt.Object.defineProperties(wt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Ar),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 Ar),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 Ar),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Er(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&&(Er(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ec},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Lr),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ec&&(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 Lr),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 Lr),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:To},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Lr),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:ii},set:function(a){var y=this.stretch;y!==a&&(Er(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&&(Er(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)&&En(a,"0 <= value <= 1",wt,"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(),wn(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&&rg(a,"GraphObject.areaBackground"),a instanceof $o&&a.freeze(),Er(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&&rg(a,"GraphObject.background"),a instanceof $o&&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 ar)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 Ge(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&&Pt("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,wn(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 io&&this.qc(),this.g("desiredSize",E,a),ve(this)&&(a=this.part,a!==null&&(ea(this,a,"width"),ea(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 gi(a,this.jd.height).freeze(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",y,a),ve(this)&&(a=this.part,a!==null&&ea(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 gi(this.jd.width,a).freeze(),this.v(),this instanceof io&&this.qc(),this.g("desiredSize",y,a),ve(this)&&(a=this.part,a!==null&&ea(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ho},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(),Er(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ta},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(),Er(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 oo(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&&dl(this),this.Ab}},oe:{get:function(){return this.l&4096&&dl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Er(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Nn},set:function(a){this.reshapingBehavior!==a&&(Er(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()&&Pt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Wu(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&&En(a,">= 0",wt,"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&&En(a,">= 1",wt,"columnSpan"),Er(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&&En(a,">= 0",wt,"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&&En(a,">= 1",wt,"rowSpan"),Er(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&&(Er(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 Ai||Pt("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:il},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Qt(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&En(a,">= 0",wt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Qt(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),Qt(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&&En(a,">= 0",wt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:il},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Qt(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&En(a,">= 0",wt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Qt(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),Qt(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&&En(a,">= 0",wt,"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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(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&&(Er(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),wt.prototype.trigger=wt.prototype.Jv,wt.prototype.findBindingPanel=wt.prototype.ih,wt.prototype.findTemplateBinder=wt.prototype.pz,wt.prototype.setProperties=wt.prototype.nm,wt.prototype.apply=wt.prototype.apply,wt.prototype.attach=wt.prototype.Du,wt.prototype.set=wt.prototype.set,wt.prototype.isEnabledObject=wt.prototype.If,wt.prototype.isVisibleObject=wt.prototype.Ed,wt.prototype.isContainedBy=wt.prototype.rg,wt.prototype.getNearestIntersectionPoint=wt.prototype.rs,wt.prototype.getLocalPoint=wt.prototype.qs,wt.prototype.getDocumentScale=wt.prototype.Df,wt.prototype.getDocumentAngle=wt.prototype.li,wt.prototype.getDocumentBounds=wt.prototype.mi,wt.prototype.getDocumentPoint=wt.prototype.ga,wt.prototype.intersectsRect=wt.prototype.Yc,wt.prototype.containedInRect=wt.prototype.fh,wt.prototype.containsRect=wt.prototype.Re,wt.prototype.containsPoint=wt.prototype.ca,wt.prototype.raiseChanged=wt.prototype.g,wt.prototype.raiseChangedEvent=wt.prototype.cb,wt.prototype.addCopyProperty=wt.prototype.Vw;var bi=null;wt.className="GraphObject",bi=new hi,ln("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=fn(ei,ei.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ei){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"},fn(io,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ir(0,0,2.76142374915397,2.761423749153969),spot2:new ir(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 ei&&(x=E.fb("ButtonBorder"),x instanceof io)){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 ei&&(x=E.fb("ButtonBorder"),x instanceof io&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ei&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof io){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 ei&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof io){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 ei&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof io){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 ei&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof io))){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}),ln("TreeExpanderButton",function(){var a=fn("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},fn(io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Xa},new Cl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Cl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ta&&(x=x.adornedPart),x instanceof Ai){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}),ln("SubGraphExpanderButton",function(){var a=fn("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},fn(io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Xa},new Cl("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 ta&&(x=x.adornedPart),x instanceof _r){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}),ln("ToolTip",function(){return fn(ta,ei.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ge(0,3),shadowBlur:5},fn(io,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ir(0,0,4,6),spot2:new ir(1,1,-4,-4)}))}),ln("ContextMenu",function(){return fn(ta,ei.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ge(0,3),shadowBlur:5},new Cl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),ln("ContextMenuButton",function(){var a=fn("Button");a.stretch=Xi;var y=a.fb("ButtonBorder");return y instanceof io&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ir(0,0,2,3),y.spot2=new ir(1,1,-2,-2)),a}),ln("PanelExpanderButton",function(a){var y=Rn(a,"COLLAPSIBLE"),x=fn("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},fn(io,{name:"ButtonIcon",strokeWidth:2},new Cl("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof io&&(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}),ln("CheckBoxButton",function(a){var y=Rn(a);return a=fn("Button",{desiredSize:new gi(14,14)},fn(io,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Kn,geometryStretch:Zi,visible:!1},y!==""?new Cl("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ei){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}),ln("CheckBox",function(a){a=Rn(a),a=fn("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new oo(0,1,0,0)});var y=fn(ei,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new oo(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}),wt.None=Nn=new on(wt,"None",0),wt.Default=ii=new on(wt,"Default",0),wt.Vertical=Rt=new on(wt,"Vertical",4),wt.Horizontal=Xi=new on(wt,"Horizontal",5),wt.Fill=Kn=new on(wt,"Fill",3),wt.Uniform=Zi=new on(wt,"Uniform",1),wt.UniformToFill=Ji=new on(wt,"UniformToFill",2),wt.FlipVertical=or=new on(wt,"FlipVertical",1),wt.FlipHorizontal=vr=new on(wt,"FlipHorizontal",2),wt.FlipBoth=Wr=new on(wt,"FlipBoth",3),wt.make=fn,wt.getBuilders=function(){var a=new hi,y;for(y in bi)if(y!==y.toLowerCase()){var x=bi.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},wt.defineBuilder=ln,wt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=bi.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof wt))return y&&E.set(y),E;Pt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},wt.takeBuilderArgument=Rn;function Ar(){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=ho,this.o=Ta,this.hg=ii,this.ob=this.Bi=1,this.Pf=Nn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Ar.prototype.copy=function(){var a=new Ar;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 Lr(){this.u=-1/0,this.o=0,this.F=To,this.rr=Ec,this.j=this.V="None"}Lr.prototype.copy=function(){var a=new Lr;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},Lr.className="LinkElementSettings";function Xr(){this.yj=this.Xi=Ul,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 bo(){this.ha=[1,0,0,1,0,0]}bo.prototype.copy=function(){var a=new bo;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},bo.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},bo.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},bo.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)}},bo.className="STransform";function Go(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Go.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Go.className="SGradient";function Wo(a,y,x){this.ownerDocument=a=y===void 0?Zn.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 va(this,x)}Wo.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},Wo.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Mt(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},Wo.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Wo.prototype.focus=function(){this.Oa.focus()},Wo.prototype.mx=function(){this.ownerDocument=null},zt.Object.defineProperties(Wo.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}}}),Wo.className="SVGSurface";function va(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 bo,this.j=pd(this),this.Nj=pd(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Bo++,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 ps(a,y,x,E,b,z,ee){a.Nj===void 0?Bd(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Be=va.prototype,Be.arc=function(a,y,x,E,b,z,ee,re){var oe=2*Math.PI,se=oe-1e-6,ce=x*Math.cos(E),ge=x*Math.sin(E),xe=a+ce,we=y+ge,Fe=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ee-xe)||1e-6<Math.abs(re-we))&&this.path.push(["L",xe,+we]),0>E&&(E=E%oe+oe),E>se?(this.path.push(["A",x,x,0,1,Fe,a-ce,y-ge]),this.path.push(["A",x,x,0,1,Fe,xe,we])):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 Go("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"+Bo++,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(Vh,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Be.createRadialGradient=function(a,y,x,E,b,z){var ee=new Go("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function Ks(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 ce=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=ce,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,Ks(this,y,x,E,b,z||0,ee||0,re,oe),z={x:0,y:0,width:ce||E,height:a||b,href:se},Dt.$(E,re)&&Dt.$(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!==ce||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Is(this,Vh,z,this.rb),this.addElement(Vh,z)},Be.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ju(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]},Is(this,"fill",a,this.rb),this.addElement("rect",a)},Be.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Is(this,"fill",a,this.rb),ju(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},Is(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||Bd(this,a,y,x,E,b,z)};function Hu(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(){Kc(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 Is(a,y,x,E){y==="fill"?ju(a,x):y==="stroke"&&Kc(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ju(a,y){a.fillStyle instanceof Go?y.fill=xh(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 Go?y.setAttributeNS(null,"fill",xh(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 Kc(a,y){if(a.strokeStyle instanceof Go)y.stroke=xh(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 xh(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"+Bo++,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,ce){return se.offset>ce.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=sn(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,Is(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 Bd(a,y,x,E,b,z,ee){var re=new bo;re.ha=[y,x,E,b,z,ee],y={},Is(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function pd(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 Cu(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(){},va.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},va.prototype.getImageData=function(){return null},va.prototype.measureText=function(){return null};function Uh(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()))}va.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},va.className="SVGContext",Ht.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Wo(this,Zn.document));var y=new Wo(this,Zn.document,!0);a===void 0&&(a=new Jt);var x=this;return Jl(this,function(E,b){return E=nd(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},Ht.prototype.makeSvg=Ht.prototype.Cs,Ht.prototype.av=function(a){return this.Cs(a)},Ht.prototype.makeSVG=Ht.prototype.av;function zu(a,y,x,E){this.ownerDocument=y=y===void 0?Zn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Eh(y,x,E),y.H=a}zu.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},zu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},zu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},zu.prototype.focus=function(){this.Oa.focus()},zu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},zt.Object.defineProperties(zu.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}}}),zu.className="CanvasSurface";function Eh(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Pt("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=Eh.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()},Eh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Be=Eh.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 $o&&a.type===Dd){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(ig),a.lineDashOffset=0)},Be.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Be.Hs=function(){},zt.Object.defineProperties(Eh.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 ig=Object.freeze([]);Eh.className="CanvasSurfaceContext";function Ph(){this.F=this.o=this.u=this.j=0}Ph.className="ColorNumbers";function $o(a,y){yp||(vp(),yp=!0),Or(this),this._isFrozen=!1,a===void 0?(this.na=Of,this.xk="black"):typeof a=="string"?(this.na=Of,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===wf?(this.Qd=wr,this.Lk=xs):this.Lk=a===Dd?this.Qd=Dr:this.Qd=il,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}$o.prototype.copy=function(){var a=new $o;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=$o.prototype,Be.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Be.ka=function(){return Object.isFrozen(this)&&Pt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Be.qb=function(a){a.classType===$o&&(this.type=a)},Be.toString=function(){var a="Brush(";if(this.type===Of)a+=this.color;else if(a=this.type===wf?a+"Linear ":this.type===Dd?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&&Di(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&En(a,"0 <= loc <= 1",$o,"addColorStop:loc"),this.we===null&&(this.we=new hi),this.we.add(a,y),this.na===Of&&(this.type=wf),this.xe=null,this},Be.Vz=function(a,y){if(this._isFrozen&&Di(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?xp:y,this.type===Of)md(this.color),this.color=Pf(a,y);else if((this.type===wf||this.type===Dd)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)md(x.value),this.addColorStop(x.key,Pf(a,y));return this};function Tf(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?xp:x,md(a),Pf(y,x)}Be.Wy=function(a,y){if(this._isFrozen&&Di(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?xp:y,this.type===Of)md(this.color),this.color=Pf(-a,y);else if((this.type===wf||this.type===Dd)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)md(x.value),this.addColorStop(x.key,Pf(-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,md(a),Pf(-y,x)}function wh(a,y,x){md(a),a=Ya.j;var E=Ya.u,b=Ya.o,z=Ya.F;return md(y),x===void 0&&(x=.5),"rgba("+Math.round((Ya.j-a)*x+a)+", "+Math.round((Ya.u-E)*x+E)+", "+Math.round((Ya.o-b)*x+b)+", "+Math.round((Ya.F-z)*x+z)+")"}Be.Gx=function(){if(this.type===Of)return lf(this.color);if((this.type===wf||this.type===Dd)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Dd)return lf(a.first().value);if(a.get(.5)!==null)return lf(a.get(.5));if(a.count===2)return a=a.Fa(),lf(wh(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,lf(wh(a.get(x),a.get(E),1-z/b))}return!1};function lf(a){return a?a instanceof $o?a.Gx():(md(a),128>(299*Ya.j+587*Ya.u+114*Ya.o)/1e3):!1}function Pf(a,y){switch(y){case xp:y=100*Lg(Ya.j);var x=100*Lg(Ya.u),E=100*Lg(Ya.o);return Du.j=.4124564*y+.3575761*x+.1804375*E,Du.u=.2126729*y+.7151522*x+.072175*E,Du.o=.0193339*y+.119192*x+.9503041*E,Du.F=Ya.F,y=$p(Du.j/ag[0]),x=$p(Du.u/ag[1]),E=$p(Du.o/ag[2]),Gd.j=116*x-16,Gd.u=500*(y-x),Gd.o=200*(x-E),Gd.F=Du.F,Gd.j=Math.min(100,Math.max(0,Gd.j+100*a)),a=(Gd.j+16)/116,y=a-Gd.o/200,Du.j=ag[0]*Yg(Gd.u/500+a),Du.u=ag[1]*(Gd.j>og*Xg?Math.pow(a,3):Gd.j/og),Du.o=ag[2]*Yg(y),Du.F=Gd.F,a=-.969266*Du.j+1.8760108*Du.u+.041556*Du.o,y=.0556434*Du.j+-.2040259*Du.u+1.0572252*Du.o,Ya.j=255*mp((3.2404542*Du.j+-1.5371385*Du.u+-.4985314*Du.o)/100),Ya.u=255*mp(a/100),Ya.o=255*mp(y/100),Ya.F=Du.F,Ya.j=Math.round(Ya.j),255<Ya.j?Ya.j=255:0>Ya.j&&(Ya.j=0),Ya.u=Math.round(Ya.u),255<Ya.u?Ya.u=255:0>Ya.u&&(Ya.u=0),Ya.o=Math.round(Ya.o),255<Ya.o?Ya.o=255:0>Ya.o&&(Ya.o=0),"rgba("+Ya.j+", "+Ya.u+", "+Ya.o+", "+Ya.F+")";case g1:return Dg(),Yc.o=Math.min(100,Math.max(0,Yc.o+100*a)),"hsla("+Yc.j+", "+Yc.u+"%, "+Yc.o+"%, "+Yc.F+")";default:Pt("Unknown color space: "+y)}}function md(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,Ya.j=a[0],Ya.u=a[1],Ya.o=a[2],Ya.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Ya.j=0,Ya.u=0,Ya.o=0,Ya.F=1)}}function Dg(){var a=Ya.j/255,y=Ya.u/255,x=Ya.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))}Yc.j=Math.round(ee),Yc.u=Math.round(100*a),Yc.o=Math.round(100*b),Yc.F=Ya.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):(og*a+16)/116}function Yg(a){var y=a*a*a;return y>Xg?y:(116*a-16)/og}function rg(a,y){typeof a!="string"&&(a instanceof $o||Pt("Value for "+y+" must be a color string or a Brush, not "+a))}function vp(){Jg=Aa?new zu(null,void 0,{willReadFrequently:!0}).context:null}zt.Object.defineProperties($o.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Di(this,a),this.na=a,this.start.Mc()&&(a===wf?this.start=wr:a===Dd&&(this.start=Dr)),this.end.Mc()&&(a===wf?this.end=xs:a===Dd&&(this.end=Dr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Di(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Di(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Di(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Di(this,a),0>a&&En(a,">= zero",$o,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Di(this,a),0>a&&En(a,">= zero",$o,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Di(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Di(this,a),this.cr=a,this.xe=null}}}),$o.prototype.isDark=$o.prototype.Gx,$o.prototype.darkenBy=$o.prototype.Wy,$o.prototype.lightenBy=$o.prototype.Vz,$o.prototype.addColorStop=$o.prototype.addColorStop;var Xg=216/24389,og=24389/27,ag=[95.047,100,108.883],Jg=null,Ya=new Ph,Yc=new Ph,Du=new Ph,Gd=new Ph,yp=!1;$o.className="Brush";var Of;$o.Solid=Of=new on($o,"Solid",0);var wf;$o.Linear=wf=new on($o,"Linear",1);var Dd;$o.Radial=Dd=new on($o,"Radial",2);var Sp;$o.Pattern=Sp=new on($o,"Pattern",4);var xp;$o.Lab=xp=new on($o,"Lab",5);var g1;$o.HSL=g1=new on($o,"HSL",6),$o.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},$o.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)},$o.lighten=function(a){return Tf(a)},$o.lightenBy=Tf,$o.darken=function(a){return Kg(a)},$o.darkenBy=Kg,$o.mix=wh,$o.isDark=lf;function Ql(){this.xa="Base"}Ql.prototype.measure=function(){},Ql.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ql.prototype.arrange=function(){},Ql.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ql.prototype.iA=function(a){a.Uj()},Ql.prototype.gc=function(){},zt.Object.defineProperties(Ql.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ei}}}),Ql.prototype.remeasureObject=Ql.prototype.iA,Ql.prototype.arrangeElement=Ql.prototype.Ly,Ql.prototype.measureElement=Ql.prototype.Yz,Ql.className="PanelLayout";function Xm(){this.xa="Base"}_t(Xm,Ql),Xm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=Cf(a);for(var oe=0;oe<re;oe++){var se=E[oe];if(se.visible||se===a){var ce=se.margin,ge=ce.right+ce.left;ce=ce.top+ce.bottom,se.measure(y,x,z,ee);var xe=se.measuredBounds;ge=Math.max(xe.width+ge,0),ce=Math.max(xe.height+ce,0),xe=se.position.x;var we=se.position.y;isFinite(xe)||(xe=0),isFinite(we)||(we=0),se instanceof io&&se.isGeometryPositioned&&(se=se.strokeWidth/2,xe-=se,we-=se),ga(b,xe,we,ge,ce)}}},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 io&&z.isGeometryPositioned){var ce=z.strokeWidth/2;oe-=ce,se-=ce}z.visible&&z.arrange(oe+re.left,se+re.top,ee.width,ee.height)}};function Jm(){this.xa="Base"}_t(Jm,Ql),Jm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=Ri(),z=Cf(a);for(var oe=0;oe<re;oe++){var se=E[oe];if(se.visible||se===z){var ce=Zu(se,!1);if(ce!==Nn&&ce!==Xi)y.push(se);else{se.measure(1/0,x,0,ee),ce=se.margin,se=se.measuredBounds;var ge=Math.max(se.height+ce.top+ce.bottom,0);b.width+=Math.max(se.width+ce.right+ce.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)&&(ce=oe.margin,re=ce.right+ce.left,ce=ce.top+ce.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ce=Math.max(oe.height+ce,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,ce));ai(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,ce=y[oe];if(ce.visible){var ge=ce.measuredBounds,xe=ce.margin,we=xe.top+xe.bottom,Fe=z+b.bottom,Ne=ge.height,Qe=Zu(ce,!1);(isNaN(ce.desiredSize.height)&&Qe===Kn||Qe===Rt)&&(Ne=Math.max(x.height-we-Fe,0)),we=Ne+we+Fe,Fe=ce.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=Dr),ee&&(re-=ge.width+xe.left+xe.right),ce.arrange(re+Fe.offsetX+xe.left,se+Fe.offsetY+xe.top+(x.height*Fe.y-we*Fe.y),ge.width,Ne),ee||(re+=ge.width+xe.left+xe.right)}}};function Qm(){this.xa="Base"}_t(Qm,Ql),Qm.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=Ri();for(var re=Cf(a),oe=0;oe<ee;oe++){var se=E[oe];if(se.visible||se===re){var ce=Zu(se,!1);if(ce!==Nn&&ce!==Rt)x.push(se);else{var ge=se.margin;ce=ge.right+ge.left,ge=ge.top+ge.bottom,se.measure(y,1/0,z,0),se=se.measuredBounds,Ss(b,Math.max(b.width,Math.max(se.width+ce,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);ai(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,ce=y[oe];if(ce.visible){var ge=ce.measuredBounds,xe=ce.margin,we=xe.left+xe.right,Fe=z+b.right,Ne=ge.width,Qe=Zu(ce,!1);(isNaN(ce.desiredSize.width)&&Qe===Kn||Qe===Xi)&&(Ne=Math.max(x.width-we-Fe,0)),we=Ne+we+Fe,Fe=ce.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=Dr),ee&&(re-=ge.height+xe.bottom+xe.top),ce.arrange(se+Fe.offsetX+xe.left+(x.width*Fe.x-we*Fe.x),re+Fe.offsetY+xe.top,Ne,ge.height),ee||(re+=ge.height+xe.bottom+xe.top)}}};function qm(){this.xa="Base"}_t(qm,Ql),qm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),se=oe.margin,ce=se.right+se.left,ge=se.top+se.bottom;oe.measure(y,x,z,ee);var xe=oe.measuredBounds;z=xe.width,ee=xe.height;var we=Math.max(z+ce,0),Fe=Math.max(ee+ge,0),Ne=a.isClipping,Qe=tn.allocAt(-se.left,-se.top,we,Fe),Ve=tn.allocAt(0,0,z,ee);Tv(oe,Ve,!0),z=Ve.width,ee=Ve.height;for(var rt=!0,at=Cf(a),ft=0;ft<re;ft++){var At=E[ft];xe=y;var Kt=x;if(At!==oe&&(At.visible||At===at)){se=At.margin;var Ei=se.left,zi=se.top;switch(we=se.right+se.left,Fe=se.top+se.bottom,se=Zu(At,!1),se){case Kn:xe=z,Kt=ee,zi=Ei=Fe=we=0;break;case Xi:xe=z,Ei=we=0;break;case Rt:Kt=ee,zi=Fe=0}At.measure(xe,Kt,0,0),xe=At.measuredBounds,we=Math.max(xe.width+we,0),Fe=Math.max(xe.height+Fe,0),se=At.alignment,se.Xb()&&(se=a.defaultAlignment),se.sb()||(se=Dr);var Ni=At.alignmentFocus;if(Ni.Xb()&&(Ni=Dr),Kt=null,At instanceof ei&&At.$e!==""&&(Kt=At.fb(At.$e),Kt===At&&(Kt=null)),Ei=Ve.x-Ei,zi=Ve.y-zi,Kt!==null){for(At.arrange(0,0,xe.width,xe.height),xe=Kt.actualBounds,xe=Ge.allocAt(xe.x+(Ni.x*xe.width-Ni.offsetX),xe.y+(Ni.y*xe.height-Ni.offsetY)),Kt=Kt.panel;Kt!==At;)Kt.transform.Ga(xe),Kt=Kt.panel;Ei+=se.x*z+se.offsetX-xe.x,zi+=se.y*ee+se.offsetY-xe.y,Ge.free(xe)}else Ei+=se.x*z+se.offsetX-(Ni.x*xe.width+Ni.offsetX),zi+=se.y*ee+se.offsetY-(Ni.y*xe.height+Ni.offsetY);rt?(rt=!1,b.h(Ei,zi,we,Fe)):ga(b,Ei,zi,we,Fe)}}switch(rt?b.assign(Qe):Ne?b.Uu(Ve.x,Ve.y,Ve.width,Ve.height):ga(b,Qe.x,Qe.y,Qe.width,Qe.height),tn.free(Qe),tn.free(Ve),se=oe.stretch,se===ii&&(se=Zu(oe,!1)),se){case Nn:return;case Kn:if(!isFinite(y)&&!isFinite(x))return;break;case Xi:if(!isFinite(y))return;break;case Rt:if(!isFinite(x))return}for(xe=oe.measuredBounds,z=xe.width,ee=xe.height,we=Math.max(z+ce,0),Fe=Math.max(ee+ge,0),se=oe.margin,Ve=tn.allocAt(-se.left,-se.top,we,Fe),Tv(oe,Ve,!0),z=Ve.width,ee=Ve.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==at||(se=x.margin,we=se.right+se.left,Fe=se.top+se.bottom,xe=x.measuredBounds,we=Math.max(xe.width+we,0),Fe=Math.max(xe.height+Fe,0),ce=x.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Dr),x=x.alignmentFocus,x.Xb()&&(x=Dr),rt?(rt=!1,b.h(ce.x*z+ce.offsetX-(x.x*xe.width+x.offsetX)-se.left,ce.y*ee+ce.offsetY-(x.y*xe.height+x.offsetY)-se.top,we,Fe)):ga(b,ce.x*z+ce.offsetX-(x.x*xe.width+x.offsetX)-se.left,ce.y*ee+ce.offsetY-(x.y*xe.height+x.offsetY)-se.top,we,Fe));rt?b.assign(Qe):Ne?b.Uu(Ve.x,Ve.y,Ve.width,Ve.height):ga(b,Qe.x,Qe.y,Qe.width,Qe.height),tn.free(Ve)},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,ce=oe-x.y;for(b.arrange(se,ce,ee,re),ee=tn.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 xe=se.width,we=se.height;ce=ge.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=Dr);var Fe=ge.alignmentFocus;if(Fe.Xb()&&(Fe=Dr),se=null,ge instanceof ei&&ge.$e!==""&&(se=ge.fb(ge.$e),se===ge&&(se=null)),se!==null){var Ne=se.actualBounds;for(Fe=Ge.allocAt(Ne.x+(Fe.x*Ne.width-Fe.offsetX),Ne.y+(Fe.y*Ne.height-Fe.offsetY)),se=se.panel;se!==ge;)se.transform.Ga(Fe),se=se.panel;se=ce.x*ee.width+ce.offsetX-Fe.x,ce=ce.y*ee.height+ce.offsetY-Fe.y,Ge.free(Fe)}else se=ce.x*ee.width+ce.offsetX-(Fe.x*xe+Fe.offsetX),ce=ce.y*ee.height+ce.offsetY-(Fe.y*we+Fe.offsetY);se+=ee.x-x.x,ce+=ee.y-x.y,ge.visible&&ge.arrange(z+se,oe+ce,xe,we)}}tn.free(ee)};function Tv(a,y,x){var E=null;if(a instanceof ei&&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"}_t($m,Ql),$m.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),se=oe.margin,ce=y,ge=x,xe=se.right+se.left,we=se.top+se.bottom;oe.measure(y,x,z,ee),se=oe.measuredBounds;var Fe=0,Ne=null;oe instanceof io&&(Ne=oe,Fe=Ne.strokeWidth*Ne.scale);var Qe=Math.max(se.width+xe,0);se=Math.max(se.height+we,0);var Ve=Wv(oe),rt=Ve.x*Qe+Ve.offsetX;Ve=Ve.y*se+Ve.offsetY;var at=jv(oe),ft=at.x*Qe+at.offsetX;for(at=at.y*se+at.offsetY,isFinite(y)&&(ce=Math.max(Math.abs(rt-ft)-Fe,0)),isFinite(x)&&(ge=Math.max(Math.abs(Ve-at)-Fe,0)),Fe=gi.alloc(),Fe.h(0,0),a=Cf(a),at=0;at<re;at++)Ve=E[at],Ve===oe||!Ve.visible&&Ve!==a||(se=Ve.margin,Qe=se.right+se.left,rt=se.top+se.bottom,Ve.measure(ce,ge,0,0),se=Ve.measuredBounds,Qe=Math.max(se.width+Qe,0),se=Math.max(se.height+rt,0),Fe.h(Math.max(Qe,Fe.width),Math.max(se,Fe.height)));if(re===1)b.width=Qe,b.height=se,gi.free(Fe);else{switch(Ve=Wv(oe),at=jv(oe),re=E=0,at.x!==Ve.x&&at.y!==Ve.y&&(E=Fe.width/Math.abs(at.x-Ve.x),re=Fe.height/Math.abs(at.y-Ve.y)),gi.free(Fe),Fe=0,Ne!==null&&(Fe=Ne.strokeWidth*Ne.scale,Zv(Ne)===Zi&&(E=re=Math.max(E,re))),E+=Math.abs(Ve.offsetX)+Math.abs(at.offsetX)+Fe,re+=Math.abs(Ve.offsetY)+Math.abs(at.offsetY)+Fe,Ne=oe.stretch,Ne===ii&&(Ne=Zu(oe,!1)),Ne){case Nn:ee=z=0;break;case Kn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Xi:isFinite(y)&&(E=y),ee=0;break;case Rt:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,ee),b.width=oe.measuredBounds.width+xe,b.height=oe.measuredBounds.height+we}},$m.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=tn.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 ce=Wv(E),ge=jv(E),xe=ce.y*b.height+ce.offsetY,we=ge.x*b.width+ge.offsetX;for(ge=ge.y*b.height+ge.offsetY,z.x=ce.x*b.width+ce.offsetX,z.y=xe,ga(z,we,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),ce=Math.max(se.height+ee.top+ee.bottom,0),xe=re.alignment,xe.Xb()&&(xe=a.defaultAlignment),xe.sb()||(xe=Dr),oe=z.width*xe.x+xe.offsetX-oe*xe.x+ee.left+z.x,ee=z.height*xe.y+xe.offsetY-ce*xe.y+ee.top+z.y,re.visible&&(gl(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 tn(z.x,z.y,z.width,z.height))));tn.free(z)};function e0(){this.xa="Base",this.name="Table"}_t(e0,Ql),e0.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=Ri(),re=Ri(),oe=0;oe<z;oe++){var se=E[oe],ce=se instanceof ei?se:null;if(ce!==null&&If(ce)&&se.visible){re.push(ce);for(var ge=ce.O.s,xe=ge.length,we=0;we<xe;we++){var Fe=ge[we];ce.type===ei.TableRow?Fe.row=se.row:ce.type===ei.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 Ne=[],Qe=0;Qe<z;Qe++){var Ve=ee[Qe];Ve.visible&&(qe(Ve,!0),St(Ve,!0),Ne[Ve.row]||(Ne[Ve.row]=[]),Ne[Ve.row][Ve.column]||(Ne[Ve.row][Ve.column]=[]),Ne[Ve.row][Ve.column].push(Ve))}ai(ee);var rt=Ri(),at=Ri(),ft=Ri(),At={count:0},Kt={count:0},Ei=y,zi=x,Ni=a.rowDefs,ri=a.colDefs,Mn=null;z=Ni.length;for(var jr=0;jr<z;jr++)Mn=Ni[jr],Mn!==void 0&&(Mn.actual=0);z=ri.length;for(var Fr=0;Fr<z;Fr++)Mn=ri[Fr],Mn!==void 0&&(Mn.actual=0);for(var ra=Ne.length,ns=0,uu=0;uu<ra;uu++)Ne[uu]&&(ns=Math.max(ns,Ne[uu].length));var vu=Math.min(a.topIndex,ra-1),uc=Math.min(a.leftIndex,ns-1),cu=0;ra=Ne.length;for(var Kf=Cf(a),Al=0;Al<ra;Al++)if(Ne[Al]){ns=Ne[Al].length;var Bh=a.Fb(Al);Bh.actual=0;for(var cc=Bh.oc=0;cc<ns;cc++)if(Ne[Al][cc]){var Yf=a.Eb(cc);rt[cc]===void 0&&(Yf.actual=0,Yf.oc=0,rt[cc]=!0);for(var Sd=Ne[Al][cc],Kd=Sd.length,ad=0;ad<Kd;ad++){var Jc=Sd[ad];if(Jc.visible||Jc===Kf){var xg=1<Jc.rowSpan||1<Jc.columnSpan;xg&&(Al<vu||cc<uc||at.push(Jc));var Dh=Jc.margin,Gp=Dh.right+Dh.left,sd=Dh.top+Dh.bottom,dc=id(Jc,Bh,Yf,!1),zm=Jc.desiredSize,lp=!isNaN(zm.height),Kh=!isNaN(zm.width)&&lp;if(xg||dc===Nn||Kh||Al<vu||cc<uc||(At[cc]!==void 0||dc!==Kn&&dc!==Xi||(At[cc]=-1,At.count++),Kt[Al]!==void 0||dc!==Kn&&dc!==Rt||(Kt[Al]=-1,Kt.count++),ft.push(Jc)),Jc.measure(1/0,1/0,0,0),!(Al<vu||cc<uc)){var Qc=Jc.measuredBounds,jg=Math.max(Qc.width+Gp,0),ld=Math.max(Qc.height+sd,0);if(Jc.rowSpan===1&&(dc===Nn||dc===Xi)){Mn=a.Fb(Al);var Eg=Mn.Wc();cu=Math.max(ld-Mn.actual,0),cu+Eg>zi&&(cu=Math.max(zi-Eg,0));var wv=Mn.oa===0;Mn.oc=Mn.oc+cu,Mn.actual=Mn.oa+cu,zi=Math.max(zi-(cu+(wv?Eg:0)),0)}if(Jc.columnSpan===1&&(dc===Nn||dc===Rt)){Mn=a.Eb(cc);var Vm=Mn.Wc();cu=Math.max(jg-Mn.actual,0),cu+Vm>Ei&&(cu=Math.max(Ei-Vm,0));var s1=Mn.oa===0;Mn.oc=Mn.oc+cu,Mn.actual=Mn.oa+cu,Ei=Math.max(Ei-(cu+(s1?Vm:0)),0)}xg&&Jc.Uj()}}}}}ai(rt);var vf=0,bf=0;z=a.columnCount;for(var up=0;up<z;up++){var Pg=ri[up];Pg!==void 0&&(vf+=isNaN(Pg.Hc)?Pg.oc:Pg.Hc,Pg.oc!==0&&(vf+=Pg.Wc()))}z=a.rowCount;for(var Up=0;Up<z;Up++){var wg=Ni[Up];wg!==void 0&&(bf+=isNaN(wg.Hc)?wg.oc:wg.Hc,wg.oc!==0&&(bf+=wg.Wc()))}Ei=Math.max(y-vf,0);var yf=zi=Math.max(x-bf,0),Xf=Ei;z=ft.length;for(var qc=0;qc<z;qc++){var Yh=ft[qc],Cv=a.Fb(Yh.row),Bf=a.Eb(Yh.column),Zp=Yh.measuredBounds,Lh=Yh.margin,zg=Lh.right+Lh.left,Xh=Lh.top+Lh.bottom;At[Yh.column]=Bf.oc===0&&At[Yh.column]!==void 0?Math.max(Zp.width+zg,At[Yh.column]):null,Kt[Yh.row]=Cv.oc===0&&Kt[Yh.row]!==void 0?Math.max(Zp.height+Xh,Kt[Yh.row]):null}var cp=0,Hp=0,ch;for(ch in Kt)ch!=="count"&&(cp+=Kt[ch]);for(ch in At)ch!=="count"&&(Hp+=At[ch]);for(var Mu=gi.alloc(),Gm=0;Gm<z;Gm++){var Fc=ft[Gm];if(Fc.visible||Fc===Kf){var Fl=a.Fb(Fc.row),bc=a.Eb(Fc.column),Df=0;isFinite(bc.width)?Df=bc.width:(isFinite(Ei)&&At[Fc.column]!==null?Hp===0?Df=bc.actual+Ei:Df=At[Fc.column]/Hp*Xf:At[Fc.column]!==null?Df=Ei:Df=bc.actual||Ei,Df=Math.max(0,Df-bc.Wc()));var Jf=0;switch(isFinite(Fl.height)?Jf=Fl.height:(isFinite(zi)&&Kt[Fc.row]!==null?cp===0?Jf=Fl.actual+zi:Jf=Kt[Fc.row]/cp*yf:Kt[Fc.row]!==null?Jf=zi:Jf=Fl.actual||zi,Jf=Math.max(0,Jf-Fl.Wc())),Mu.h(Math.max(bc.minimum,Math.min(Df,bc.maximum)),Math.max(Fl.minimum,Math.min(Jf,Fl.maximum))),dc=id(Fc,Fl,bc,!1),dc){case Xi:Mu.height=Math.max(Mu.height,Fl.actual+zi);break;case Rt:Mu.width=Math.max(Mu.width,bc.actual+Ei)}var Vg=Fc.margin,l1=Vg.right+Vg.left,Av=Vg.top+Vg.bottom;Fc.Uj(),Fc.measure(Mu.width,Mu.height,bc.minimum,Fl.minimum);var Kp=Fc.measuredBounds,Gg=Math.max(Kp.width+l1,0),dp=Math.max(Kp.height+Av,0);isFinite(Ei)&&(Gg=Math.min(Gg,Mu.width)),isFinite(zi)&&(dp=Math.min(dp,Mu.height));var $c=0;$c=Fl.actual,Fl.actual=Math.max(Fl.actual,dp),Fl.oc=Math.max(Fl.oc,dp),cu=Fl.actual-$c,zi=Math.max(zi-cu,0),Kt[Fc.row]===null&&(yf=Math.max(yf-cu,0)),$c=bc.actual,bc.actual=Math.max(bc.actual,Gg),bc.oc=Math.max(bc.oc,Gg),cu=bc.actual-$c,Ei=Math.max(Ei-cu,0),At[Fc.column]===null&&(Xf=Math.max(Xf-cu,0))}}ai(ft);var Lf=gi.alloc(),Mh=Ri(),Td=Ri();if(z=at.length,z!==0){for(var Cg=0;Cg<ra;Cg++)if(Ne[Cg]){ns=Ne[Cg].length;var Yp=a.Fb(Cg);Mh[Cg]=Yp.actual;for(var Ag=0;Ag<ns;Ag++)if(Ne[Cg][Ag]){var Fv=a.Eb(Ag);Td[Ag]=Fv.actual}}}for(var Xp=0;Xp<z;Xp++){var nl=at[Xp];if(nl.visible||nl===Kf){var dh=a.Fb(nl.row),Yd=a.Eb(nl.column);switch(Mu.h(Math.max(Yd.minimum,Math.min(y,Yd.maximum)),Math.max(dh.minimum,Math.min(x,dh.maximum))),dc=id(nl,dh,Yd,!1),dc){case Kn:Td[Yd.index]!==0&&(Mu.width=Math.min(Mu.width,Td[Yd.index])),Mh[dh.index]!==0&&(Mu.height=Math.min(Mu.height,Mh[dh.index]));break;case Xi:Td[Yd.index]!==0&&(Mu.width=Math.min(Mu.width,Td[Yd.index]));break;case Rt:Mh[dh.index]!==0&&(Mu.height=Math.min(Mu.height,Mh[dh.index]))}isFinite(Yd.width)&&(Mu.width=Yd.width),isFinite(dh.height)&&(Mu.height=dh.height),Lf.h(0,0);for(var bv=Yd.minimum,ud=dh.minimum,Qf=1;Qf<nl.rowSpan&&!(nl.row+Qf>=a.rowCount);Qf++)Mn=a.Fb(nl.row+Qf),cu=0,cu=dc===Kn||dc===Rt?Math.max(Mn.minimum,Mh[nl.row+Qf]===0?Mn.maximum:Math.min(Mh[nl.row+Qf],Mn.maximum)):Math.max(Mn.minimum,isNaN(Mn.Hc)?Mn.maximum:Math.min(Mn.Hc,Mn.maximum)),Lf.height+=cu,ud+=Mn.minimum;for(var Xd=1;Xd<nl.columnSpan&&!(nl.column+Xd>=a.columnCount);Xd++)Mn=a.Eb(nl.column+Xd),cu=0,cu=dc===Kn||dc===Xi?Math.max(Mn.minimum,Td[nl.column+Xd]===0?Mn.maximum:Math.min(Td[nl.column+Xd],Mn.maximum)):Math.max(Mn.minimum,isNaN(Mn.Hc)?Mn.maximum:Math.min(Mn.Hc,Mn.maximum)),Lf.width+=cu,bv+=Mn.minimum;Mu.width+=Lf.width,Mu.height+=Lf.height;var Jp=nl.margin,Fg=Jp.right+Jp.left,Um=Jp.top+Jp.bottom;nl.measure(Mu.width,Mu.height,bv,ud);for(var Qp=nl.measuredBounds,Jh=Math.max(Qp.width+Fg,0),Ug=Math.max(Qp.height+Um,0),bg=0,qp=0;qp<nl.rowSpan&&!(nl.row+qp>=a.rowCount);qp++)Mn=a.Fb(nl.row+qp),bg+=Mn.total||0;if(bg<Ug){var qf=Ug-bg,Sf=Ug-bg;if(nl.spanAllocation!==null)for(var $f=nl.spanAllocation,Mf=0;Mf<nl.rowSpan&&!(0>=qf)&&!(nl.row+Mf>=a.rowCount);Mf++){Mn=a.Fb(nl.row+Mf);var eg=Mn.oa||0,Zg=$f(nl,Mn,Sf);Mn.actual=Math.min(Mn.maximum,eg+Zg),Mn.oa!==eg&&(qf-=Mn.oa-eg)}for(;0<qf;){var kh=Mn.oa||0;if(isNaN(Mn.height)&&Mn.maximum>kh&&(Mn.actual=Math.min(Mn.maximum,kh+qf),Mn.oa!==kh&&(qf-=Mn.oa-kh)),Mn.index===0)break;Mn=a.Fb(Mn.index-1)}}for(var hp=0,tg=0;tg<nl.columnSpan&&!(nl.column+tg>=a.columnCount);tg++)Mn=a.Eb(nl.column+tg),hp+=Mn.total||0;if(hp<Jh){var fp=Jh-hp,u1=Jh-hp;if(nl.spanAllocation!==null)for(var kf=nl.spanAllocation,Hg=0;Hg<nl.columnSpan&&!(0>=fp)&&!(nl.column+Hg>=a.columnCount);Hg++){Mn=a.Eb(nl.column+Hg);var Zm=Mn.oa||0,c1=kf(nl,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)}}}}ai(at),gi.free(Lf),gi.free(Mu),Mh!==void 0&&ai(Mh),Td!==void 0&&ai(Td);var gp=0,pp=0,Dv=a.desiredSize,Fx=a.maxSize;dc=Zu(a,!0);var Hm=bf=vf=0,Km=0;z=a.columnCount;for(var Lv=0;Lv<z;Lv++)ri[Lv]!==void 0&&(Mn=a.Eb(Lv),isFinite(Mn.width)?(Hm+=Mn.width,Hm+=Mn.Wc()):c0(Mn)===im?(Hm+=Mn.oa,Hm+=Mn.Wc()):Mn.oa!==0&&(vf+=Mn.oa,vf+=Mn.Wc()));isFinite(Dv.width)?gp=Math.min(Dv.width,Fx.width):gp=dc!==Nn&&isFinite(y)?y:vf,gp=Math.max(gp,a.minSize.width),gp=Math.max(gp-Hm,0);for(var l5=vf===0?1:Math.max(gp/vf,1),Mv=0;Mv<z;Mv++)ri[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++)Ni[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&&(bf+=Mn.oa,bf+=Mn.Wc()));isFinite(Dv.height)?pp=Math.min(Dv.height,Fx.height):pp=dc!==Nn&&isFinite(x)?x:bf,pp=Math.max(pp,a.minSize.height),pp=Math.max(pp-Km,0);for(var u5=bf===0?1:Math.max(pp/bf,1),Nv=0;Nv<z;Nv++)Ni[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===ei.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),qe(Ym,!1)}ai(re),a.inRowsCols=Ne},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,ce=0,ge=0;ge<se;ge++)ee[ge]&&(ce=Math.max(ce,ee[ge].length));oe=a.rowDefs,re=a.colDefs;var xe=ge=0,we=Math.min(a.topIndex,se-1);if(0<oe.length){for(;we!==se&&(oe[we]===void 0||oe[we].oa===0);)we++;we=Math.max(Math.min(we,se-1),0),ge=-oe[we].position}var Fe=Math.min(a.leftIndex,ce-1);if(0<re.length){for(;Fe!==ce&&(re[Fe]===void 0||re[Fe].oa===0);)Fe++;Fe=Math.max(Math.min(Fe,ce-1),0),xe=-re[Fe].position}for(var Ne=0,Qe=0;Ne!==se&&oe[Ne]===void 0;)Ne++;for(;Qe!==se&&re[Qe]===void 0;)Qe++;ce=a.part,a.Fb(Ne),a.Eb(Qe);for(var Ve=0;Ve<y.length;Ve++){var rt=y[Ve];if(rt instanceof ei&&rt.visible&&If(rt)){if(rt.type===ei.TableRow){re=a.Fb(rt.row);var at=a.Eb(Qe)}else re=a.Fb(Ne),at=a.Eb(rt.column);oe=re.position+ge+b,re.oa!==0&&(oe+=re.Io(Math.max(Ne,we))),re=at.position+xe+z,at.oa!==0&&(re+=at.Io(Math.max(Qe,Fe))),at=rt.measuredBounds,rt.Uk(),rt.actualBounds.ka();var ft=rt.actualBounds,At=tn.allocAt(ft.x,ft.y,ft.width,ft.height);ft.x=rt.type===ei.TableRow?z:re,ft.y=rt.type===ei.TableColumn?b:oe,ft.width=at.width,ft.height=at.height,rt.actualBounds.freeze(),St(rt,!1),Vl(At,ft)||ce===null||(ce.oh(),rt.Pn(ce)),tn.free(At)}}for(Ve=gi.alloc(),rt=0;rt<se;rt++)if(ee[rt]){for(ce=ee[rt].length,at=a.Fb(rt),oe=at.position+ge+b,at.oa!==0&&(oe+=at.Io(Math.max(Ne,we))),ft=0;ft<ce;ft++)if(ee[rt][ft]){At=a.Eb(ft),re=At.position+xe+z,At.oa!==0&&(re+=At.Io(Math.max(Qe,Fe)));for(var Kt=ee[rt][ft],Ei=Kt.length,zi=0;zi<Ei;zi++){var Ni=Kt[zi],ri=Ni.measuredBounds;Ve.h(0,0);for(var Mn=1;Mn<Ni.rowSpan&&!(rt+Mn>=a.rowCount);Mn++){var jr=a.Fb(rt+Mn);jr.oa!==0&&(Ve.height+=jr.total)}for(Mn=1;Mn<Ni.columnSpan&&!(ft+Mn>=a.columnCount);Mn++)jr=a.Eb(ft+Mn),jr.oa!==0&&(Ve.width+=jr.total);var Fr=At.oa+Ve.width,ra=at.oa+Ve.height;Mn=re,jr=oe;var ns=Fr,uu=ra,vu=re,uc=oe,cu=Fr,Kf=ra;re+Fr>x.width&&(cu=Math.max(x.width-re,0)),oe+ra>x.height&&(Kf=Math.max(x.height-oe,0));var Al=Ni.alignment;if(Al.Xb()){Al=a.defaultAlignment,Al.sb()||(Al=Dr);var Bh=Al.x,cc=Al.y,Yf=Al.offsetX;Al=Al.offsetY;var Sd=At.alignment,Kd=at.alignment;Sd.sb()&&(Bh=Sd.x,Yf=Sd.offsetX),Kd.sb()&&(cc=Kd.y,Al=Kd.offsetY)}else Bh=Al.x,cc=Al.y,Yf=Al.offsetX,Al=Al.offsetY;(isNaN(Bh)||isNaN(cc))&&(cc=Bh=.5,Al=Yf=0),Sd=ri.width,Kd=ri.height;var ad=Ni.margin,Jc=ad.left+ad.right,xg=ad.top+ad.bottom,Dh=id(Ni,at,At,!1);!isNaN(Ni.desiredSize.width)||Dh!==Kn&&Dh!==Xi||(Sd=Math.max(Fr-Jc,0)),!isNaN(Ni.desiredSize.height)||Dh!==Kn&&Dh!==Rt||(Kd=Math.max(ra-xg,0)),Fr=Ni.maxSize,ra=Ni.minSize,Sd=Math.min(Fr.width,Sd),Kd=Math.min(Fr.height,Kd),Sd=Math.max(ra.width,Sd),Kd=Math.max(ra.height,Kd),Fr=Kd+xg,Mn+=ns*Bh-(Sd+Jc)*Bh+Yf+ad.left,jr+=uu*cc-Fr*cc+Al+ad.top,Ni.visible&&(gl(vu,uc,cu,Kf,Mn,jr,ri.width,ri.height)?Ni.arrange(Mn,jr,Sd,Kd):Ni.arrange(Mn,jr,Sd,Kd,new tn(vu,uc,cu,Kf)))}}}for(gi.free(Ve),a=0;a<E;a++)x=y[a],z=x instanceof ei?x:null,z!==null&&If(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function t0(){this.xa="Base"}_t(t0,Ql),t0.prototype.measure=function(){},t0.prototype.arrange=function(){};function n0(){this.xa="Base"}_t(n0,Ql),n0.prototype.measure=function(){},n0.prototype.arrange=function(){};function i0(){this.xa="Base"}_t(i0,Ql),i0.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&Pt("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 ce=E.scale,ge=re.width;re=re.height;var xe=Math.max(y-se,0),we=Math.max(x-oe,0),Fe=1;a.viewboxStretch===Zi?ge!==0&&re!==0&&(Fe=Math.min(xe/ge,we/re)):ge!==0&&re!==0&&(Fe=Math.max(xe/ge,we/re)),Fe===0&&(Fe=1e-4),E.Ca*=Fe,ce!==E.scale&&(qe(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=Dr),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"}_t(em,Ql),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),ce=Math.ceil(oe/E),ge=a.gridOrigin,xe=ge.x;ge=ge.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var we=[],Fe=a.O.s,Ne=Fe.length,Qe=0;Qe<Ne;Qe++){var Ve=Fe[Qe],rt=[];if(we.push(rt),Ve.visible){var at=Ve.interval;if(!(0>at)){Ve=Iv(Ve.figure);for(var ft=0;ft<Ne;ft++)if(ft!==Qe){var At=Fe[ft];At.visible&&Iv(At.figure)===Ve&&(At=At.interval,At>at&&rt.push(At))}}}}for(Fe=a.O.s,Ne=Fe.length,Qe=0;Qe<Ne;Qe++){var Kt=Fe[Qe];if(Kt.visible&&(rt=Kt.interval||1,Ve=Math.abs(rt),!(2>b*Ve*x))){if(at=Kt.segmentIndex,(!isFinite(at)||isNaN(at))&&(at=0),0>at&&(at=Ve-Math.min(-at,Ve)),at=Math.round(at%Ve),Ve=Kt.opacity,ft=1,Ve!==1){if(Ve===0)continue;ft=y.globalAlpha,y.globalAlpha=ft*Ve}At=we[Qe];var Ei=!1,zi=Kt.strokeDashArray;if(zi!==null&&(Ei=!0,y.js(zi,Kt.strokeDashOffset)),Kt.figure==="LineV"&&Kt.stroke!==null&&0<Kt.strokeWidth){for(y.lineWidth=Kt.strokeWidth,gs(a,y,Kt.stroke,!1,!1,z,ee),y.beginPath(),zi=Kt=Math.floor((xe-b)/b);zi<=Kt+se;zi++){var Ni=zi*b+xe;0<=Ni&&Ni<=re&&r0(zi,rt,at,At)&&(y.moveTo(Ni,0),y.lineTo(Ni,oe))}y.stroke(),y.Se()}else if(Kt.figure==="LineH"&&Kt.stroke!==null&&0<Kt.strokeWidth){for(y.lineWidth=Kt.strokeWidth,gs(a,y,Kt.stroke,!1,!1,z,ee),y.beginPath(),zi=Kt=Math.floor((ge-E)/E);zi<=Kt+ce;zi++)Ni=zi*E+ge,0<=Ni&&Ni<=oe&&r0(zi,rt,at,At)&&(y.moveTo(0,Ni),y.lineTo(re,Ni));y.stroke(),y.Se()}else if(Kt.figure==="BarV"&&Kt.fill!==null)for(gs(a,y,Kt.fill,!0,!1,z,ee),Kt=Kt.width,isNaN(Kt)&&(Kt=b),Ni=zi=Math.floor((xe-b)/b);Ni<=zi+se;Ni++){var ri=Ni*b+xe;0<=ri+Kt&&ri<=re&&r0(Ni,rt,at,At)&&y.fillRect(ri,0,Kt,oe)}else if(Kt.figure==="BarH"&&Kt.fill!==null)for(gs(a,y,Kt.fill,!0,!1,z,ee),Kt=Kt.height,isNaN(Kt)&&(Kt=E),Ni=zi=Math.floor((ge-E)/E);Ni<=zi+ce;Ni++)ri=Ni*E+ge,0<=ri+Kt&&ri<=oe&&r0(Ni,rt,at,At)&&y.fillRect(0,ri,re,Kt);Ei&&y.fs(),Ve!==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"}_t(o0,Ql),o0.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof ta||a instanceof oi){var ee=null,re=null;if(a instanceof oi&&(ee=a),a instanceof ta&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof oi){var oe=ee;if(z===0)Ss(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var se=a instanceof ta?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ce=oe.points,ge=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var xe=y.height,we=a.j;if(we.length=0,se!==null){p1(a,re,xe,se);var Fe=se.measuredBounds;x.ed(Fe),we.push(Fe)}Fe=qr.alloc();for(var Ne=Ge.alloc(),Qe=Ge.alloc(),Ve=0;Ve<z;Ve++){var rt=E[Ve];if(rt!==se)if(rt.isPanelMain&&rt instanceof io){p1(a,re,xe,rt);var at=rt.measuredBounds;x.ed(at),we.push(at)}else if(2>ge)rt.measure(1/0,1/0,0,0),at=rt.measuredBounds,x.ed(at),we.push(at);else{var ft=rt.segmentIndex,At=rt.segmentFraction,Kt=rt.alignmentFocus;Kt.Mc()&&(Kt=Dr);var Ei=rt.segmentOrientation,zi=rt.segmentOffset;if(isNaN(ft)){var Ni=oe.ua;at=Ri(),Ni.Qu(At,at);var ri=Ge.allocAt(at[0],at[1]);if(ri.add(oe.i(0)),Ni.type===si.j?ri.offset(-Ni.startX,-Ni.startY):(Ni=Ni.figures.first(),Ni!==null&&ri.offset(-Ni.startX,-Ni.startY)),Ni=at[2],Ei!==Ec){var Mn=oe.computeAngle(rt,Ei,Ni);rt.Kb=Mn}Mn=ri.x-y.x;var jr=ri.y-y.y;Ge.free(ri),ai(at)}else if(ft<-ge||ft>=ge)at=Ge.alloc(),oe.vg(),oe.computeMidPoint(at),Ni=oe.midAngle,Ei!==Ec&&(Mn=oe.computeAngle(rt,Ei,Ni),rt.Kb=Mn),Mn=at.x-y.x,jr=at.y-y.y,Ge.free(at);else{if(Mn=0,0<=ft?(jr=ce.M(ft),at=ft<ge-1?ce.M(ft+1):jr):(Mn=ge+ft,jr=ce.M(Mn),at=0<Mn?ce.M(Mn-1):jr),jr.Xa(at)){0<=ft?(Ni=0<ft?ce.M(ft-1):jr,Mn=ft<ge-2?ce.M(ft+2):at):(Ni=Mn<ge-1?ce.M(Mn+1):jr,Mn=1<Mn?ce.M(Mn-2):at),ri=Ni.Bf(jr);var Fr=at.Bf(Mn);Ni=ri>Fr+10?0<=ft?Ni.ab(jr):jr.ab(Ni):Fr>ri+10?0<=ft?at.ab(Mn):Mn.ab(at):0<=ft?Ni.ab(Mn):Mn.ab(Ni)}else Ni=0<=ft?jr.ab(at):at.ab(jr);Ei!==Ec&&(Mn=oe.computeAngle(rt,Ei,Ni),rt.Kb=Mn),Mn=jr.x+(at.x-jr.x)*At-y.x,jr=jr.y+(at.y-jr.y)*At-y.y}rt.measure(1/0,1/0,0,0),at=rt.measuredBounds,ri=rt.naturalBounds;var ra=0;rt instanceof io&&(ra=rt.strokeWidth),Fr=ri.width+ra;var ns=ri.height+ra;Fe.reset(),Fe.translate(-at.x,-at.y),Fe.scale(rt.scale,rt.scale),Fe.rotate(Ei===Ec?rt.angle:Ni,Fr/2,ns/2),Ei!==fm&&Ei!==pm||Fe.rotate(90,Fr/2,ns/2),Ei!==gm&&Ei!==mm||Fe.rotate(-90,Fr/2,ns/2),Ei===O0&&(45<Ni&&135>Ni||225<Ni&&315>Ni)&&Fe.rotate(-Ni,Fr/2,ns/2),ri=new tn(0,0,Fr,ns),Ne.xi(ri,Kt),Fe.Ga(Ne),Kt=-Ne.x+ra/2*rt.scale,rt=-Ne.y+ra/2*rt.scale,Qe.assign(zi),ra=isNaN(zi.x);var uu=isNaN(zi.y);if(ra||uu){Fr=Fr/2+3,ns=ns/2+3;var vu=45<=Ni&&135>=Ni,uc=225<=Ni&&315>=Ni;Ei===Ec&&(vu||uc)?(Qe.x=uu?Fr:zi.y,Qe.y=ra?ns:zi.x,vu?0<=ft||isNaN(ft)&&.5>At||!ra||(Qe.y=-ns):uc&&((0<=ft||isNaN(ft)&&.5>At)&&ra&&(Qe.y=-ns),uu&&(Qe.x=-Fr))):(ra&&(Qe.x=0<=ft||isNaN(ft)&&.5>At?Fr:-Fr),uu&&(Qe.y=-ns),Qe.rotate(Ni))}else Qe.rotate(Ni);Mn+=Qe.x,jr+=Qe.y,ri.set(at),ri.h(Mn+Kt,jr+rt,at.width,at.height),we.push(ri),x.ed(ri)}}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),Ss(b,x.width||0,x.height||0),qr.free(Fe),Ge.free(Ne),Ge.free(Qe)}}}},o0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ta||a instanceof oi){var E=a,b=null;a instanceof ta&&(b=a,E=b.adornedPart);var z=a instanceof ta?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 ce=ee[re];re++,se.arrange(ce.x-a.jg.x,ce.y-a.jg.y,ce.width,ce.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof oi)for(z=a.labelNodes;z.next();){var ge=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var xe=ee.alignmentFocus;if(se=ee.segmentOrientation,ce=ee.segmentOffset,isNaN(re)){var we=ge.ua,Fe=Ri();we.Qu(oe,Fe);var Ne=Ge.allocAt(Fe[0],Fe[1]);Ne.add(ge.i(0)),we.type===si.j||(we=we.figures.first()),Ne.offset(-we.startX,-we.startY),we=Fe[2],se!==Ec&&(ge=ge.computeAngle(ee,se,we),ee.angle=ge),ge=Ne.x;var Qe=Ne.y;Ge.free(Ne),ai(Fe)}else if(re<-x||re>=x)Fe=Ge.alloc(),we=ge,Qe=Fe,we.vg(),we.computeMidPoint(Qe),we=ge.midAngle,se!==Ec&&(ge=ge.computeAngle(ee,se,we),ee.angle=ge),ge=Fe.x,Qe=Fe.y,Ge.free(Fe);else{if(Ne=0,0<=re?(Fe=y.s[re],Qe=re<x-1?y.s[re+1]:Fe):(Ne=x+re,Fe=y.s[Ne],Qe=0<Ne?y.s[Ne-1]:Fe),Fe.Xa(Qe)){0<=re?(we=0<re?y.s[re-1]:Fe,Ne=re<x-2?y.s[re+2]:Qe):(we=Ne<x-1?y.s[Ne+1]:Fe,Ne=1<Ne?y.s[Ne-2]:Qe);var Ve=we.Bf(Fe),rt=Qe.Bf(Ne);we=Ve>rt+10?0<=re?we.ab(Fe):Fe.ab(we):rt>Ve+10?0<=re?Qe.ab(Ne):Ne.ab(Qe):0<=re?we.ab(Ne):Ne.ab(we)}else we=0<=re?Fe.ab(Qe):Qe.ab(Fe);se!==Ec&&(ge=ge.computeAngle(ee,se,we),ee.angle=ge),ge=Fe.x+(Qe.x-Fe.x)*oe,Qe=Fe.y+(Qe.y-Fe.y)*oe}if(xe.ys())ee.location=new Ge(ge,Qe);else{xe.Mc()&&(xe=Dr),Fe=qr.alloc(),Fe.reset(),Fe.scale(ee.scale,ee.scale),Fe.rotate(ee.angle,0,0);var at=ee.naturalBounds;Ne=tn.allocAt(0,0,at.width,at.height),Ve=Ge.alloc(),Ve.xi(Ne,xe),Fe.Ga(Ve),xe=-Ve.x,rt=-Ve.y;var ft=at.width,At=at.height;at=Ge.alloc(),at.assign(ce);var Kt=isNaN(ce.x),Ei=isNaN(ce.y);if(Kt||Ei){ft=ft/2+3,At=At/2+3;var zi=45<=we&&135>=we,Ni=225<=we&&315>=we;se===Ec&&(zi||Ni)?(at.x=Ei?ft:ce.y,at.y=Kt?At:ce.x,zi?0<=re||isNaN(re)&&.5>oe||!Kt||(at.y=-At):Ni&&((0<=re||isNaN(re)&&.5>oe)&&Kt&&(at.y=-At),Ei&&(at.x=-ft))):(Kt&&(at.x=0<=re||isNaN(re)&&.5>oe?ft:-ft),Ei&&(at.y=-At),at.rotate(we))}else at.rotate(we);ge+=at.x,Qe+=at.y,Fe.pp(Ne),xe+=Ne.x,rt+=Ne.y,re=Ge.allocAt(ge+xe,Qe+rt),ee.move(re),Ge.free(re),Ge.free(at),Ge.free(Ve),tn.free(Ne),qr.free(Fe)}}b!==null?b.Ul(!1):E.Ul(!1),E=U1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Ge.free(E)}};function p1(a,y,x,E){if(Xe(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof ta&&a.type===ei.Link&&a.adornedObject instanceof io&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof oi&&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 ta&&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),qe(E,!1)}}function tm(){this.xa="Base"}_t(tm,Ql),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,ce=oe.top+oe.bottom;re.measure(y,x,z,ee);var ge=re.measuredBounds,xe=new tn(-oe.left,-oe.top,Math.max(ge.width+se,0),Math.max(ge.height+ce,0));a.graduatedBounds.push(xe),b.assign(xe);for(var we=re.geometry,Fe=re.strokeWidth,Ne=we.flattenedSegments,Qe=we.flattenedLengths,Ve=we.flattenedTotalLength,rt=Ne.length,at=0,ft=0,At=Ri(),Kt=0;Kt<rt;Kt++){var Ei=Ne[Kt],zi=[];ft=at=0;for(var Ni=Ei.length,ri=0;ri<Ni;ri+=2){var Mn=Ei[ri],jr=Ei[ri+1];if(ri!==0){var Fr=180*Math.atan2(jr-ft,Mn-at)/Math.PI;0>Fr&&(Fr+=360),zi.push(Fr)}at=Mn,ft=jr}At.push(zi)}if(a.graduatedIntervals===null){for(var ra=[],ns=a.O.s,uu=ns.length,vu=0;vu<uu;vu++){var uc=ns[vu],cu=[];if(ra.push(cu),uc.visible){var Kf=uc.interval;if(!(0>Kf)){for(var Al=0;Al<uu;Al++)if(Al!==vu){var Bh=ns[Al];if(Bh.visible&&uc.constructor===Bh.constructor){var cc=Bh.interval;cc>Kf&&cu.push(cc)}}}}}a.graduatedIntervals=ra}var Yf=a.graduatedIntervals,Sd=a.O.s,Kd=Sd.length,ad=0,Jc=0,xg=Ve;a.graduatedMarks=[];for(var Dh,Gp=0;Gp<Kd;Gp++){var sd=Sd[Gp];if(Dh=[],sd.visible&&sd!==re){var dc=Math.abs(sd.interval),zm=a.graduatedTickUnit;if(!(2>zm*dc*Ve/a.graduatedRange&&sd.graduatedSkip===null)){var lp=Qe[0][0],Kh=0,Qc=0;Jc=Ve*sd.graduatedStart-1e-4,xg=Ve*sd.graduatedEnd+1e-4;var jg=zm*dc,ld=a.graduatedTickBase;if(ld<a.graduatedMin){var Eg=(a.graduatedMin-ld)/jg;Eg=Eg%1===0?Eg:Math.floor(Eg+1),ld+=Eg*jg}else ld>a.graduatedMin+jg&&(ld-=Math.floor((ld-a.graduatedMin)/jg)*jg);for(var wv=Yf[Gp],Vm=ld,s1=1e-6*a.graduatedMax,vf=1;ld<=a.graduatedMax+s1;vf++){e:{for(var bf=wv.length,up=0;up<bf;up++){var Pg=(ld-a.graduatedTickBase)%(wv[up]*a.graduatedTickUnit),Up=1e-6*a.graduatedTickUnit;if(Pg<Up&&Pg>-Up){var wg=!1;break e}}wg=!0}if(wg&&(ld>a.graduatedMax&&(ld=a.graduatedMax),sd.graduatedSkip===null||sd instanceof os&&!sd.graduatedSkip(ld,sd)||sd instanceof io&&!sd.graduatedSkip(ld,sd))&&(ad=(ld-a.graduatedMin)*Ve/a.graduatedRange,ad>Ve&&(ad=Ve),Jc<=ad&&ad<=xg)){for(var yf=At[Kh][Qc],Xf=Qe[Kh][Qc];Kh<Qe.length;){for(;ad>lp&&Qc<Qe[Kh].length-1;)Qc++,yf=At[Kh][Qc],Xf=Qe[Kh][Qc],lp+=Xf;if(ad<=lp)break;Kh++,Qc=0,yf=At[Kh][Qc],Xf=Qe[Kh][Qc],lp+=Xf}var qc=Ne[Kh],Yh=qc[2*Qc],Cv=qc[2*Qc+1],Bf=(ad-(lp-Xf))/Xf,Zp=new Ge(Yh+(qc[2*Qc+2]-Yh)*Bf+Fe/2-we.bounds.x,Cv+(qc[2*Qc+3]-Cv)*Bf+Fe/2-we.bounds.y);Zp.scale(re.scale,re.scale);e:{var Lh=yf,zg=At[Kh];if(!(.5005>Bf&&.4995<Bf)){var Xh=Lh;if(.5>Bf?0<Qc?Xh=zg[Qc-1]:Dt.$(qc[0],qc[qc.length-2])&&Dt.$(qc[1],qc[qc.length-1])&&(Xh=zg[zg.length-1]):.5<Bf&&(Qc+1<zg.length?Xh=zg[Qc+1]:Dt.$(qc[0],qc[qc.length-2])&&Dt.$(qc[1],qc[qc.length-1])&&(Xh=zg[0])),Lh!==Xh){var cp=Math.abs(Lh-Xh);if(180<cp&&(Lh<Xh?Lh+=360:Xh+=360,cp=Math.abs(Lh-Xh)),5e-4>Bf||.9995<Bf){yf=(Lh+Xh)/2%360;break e}if(10>cp){var Hp=1-Math.abs(.5-Bf);yf=(Lh*Hp+Xh*(1-Hp))%360;break e}}}yf=Lh}if(sd instanceof os){var ch="";sd.graduatedFunction!==null?(ch=sd.graduatedFunction(ld,sd),ch=ch!=null?ch.toString():""):ch=(+ld.toFixed(2)).toString(),ch!==""&&Dh.push({$l:Zp,angle:yf,text:ch})}else Dh.push({$l:Zp,angle:yf})}ld=Vm+vf*jg}}}a.graduatedMarks.push(Dh)}ai(At);var Mu=a.graduatedMarks;if(Mu!==null)for(var Gm=E.length,Fc=0;Fc<Gm;Fc++){var Fl=E[Fc],bc=Mu[Fc];if(Fl.visible&&Fl!==re&&bc.length!==0){if(Fl instanceof io){var Df=a,Jf=b,Vg=Fl.alignmentFocus;Vg.Mc()&&(Vg=wr);var l1=Fl.angle;Fl.Kb=0,Fl.measure(1/0,1/0,0,0),Fl.Kb=l1;var Av=Fl.measuredBounds,Kp=Av.width,Gg=Av.height,dp=tn.allocAt(0,0,Kp,Gg),$c=Ge.alloc();$c.xi(dp,Vg),tn.free(dp);for(var Lf=-$c.x,Mh=-$c.y,Td=new tn,Cg=bc.length,Yp=0;Yp<Cg;Yp++)for(var Ag=bc[Yp],Fv=Ag.$l.x,Xp=Ag.$l.y,nl=Ag.angle,dh=0;4>dh;dh++){switch(dh){case 0:$c.h(Lf,Mh);break;case 1:$c.h(Lf+Kp,Mh);break;case 2:$c.h(Lf,Mh+Gg);break;case 3:$c.h(Lf+Kp,Mh+Gg)}$c.rotate(nl+Fl.angle),$c.offset(Fv,Xp),Yp===0&&dh===0?Td.h($c.x,$c.y,0,0):Td.Ye($c),$c.offset(-Fv,-Xp),$c.rotate(-nl-Fl.angle)}Ge.free($c),Df.graduatedBounds!==null&&Df.graduatedBounds.push(Td),ga(Jf,Td.x,Td.y,Td.width,Td.height)}else if(Fl instanceof os){var Yd=a,bv=b;Yd.temporaryTextBlock===null&&(Yd.temporaryTextBlock=new os);var ud=Yd.temporaryTextBlock;L1(ud,Fl);var Qf=Fl.alignmentFocus;Qf.Mc()&&(Qf=wr);for(var Xd=Fl.segmentOrientation,Jp=Fl.segmentOffset,Fg=new tn,Um=0,Qp=0,Jh=0,Ug=0,bg=0,qp=bc.length,qf=0;qf<qp;qf++){var Sf=bc[qf];Um=Sf.$l.x,Qp=Sf.$l.y,Jh=Sf.angle,bg=Ug=Fl.angle,Xd!==Ec&&(bg=Xd===hm||Xd===T0?Jh+Fl.angle:Jh,Ug=oi.computeAngle(Xd,bg)),ud.Kb=Ug,ud.text=Sf.text||"",ud.measure(1/0,1/0,0,0);var $f=ud.measuredBounds,Mf=ud.naturalBounds,eg=Mf.width,Zg=Mf.height,kh=qr.alloc();kh.reset(),kh.translate(-$f.x,-$f.y),kh.scale(ud.scale,ud.scale),kh.rotate(bg,eg/2,Zg/2),Xd!==fm&&Xd!==pm||kh.rotate(90,eg/2,Zg/2),Xd!==gm&&Xd!==mm||kh.rotate(-90,eg/2,Zg/2),Xd===O0&&(45<Jh&&135>Jh||225<Jh&&315>Jh)&&kh.rotate(-Jh,eg/2,Zg/2);var hp=tn.allocAt(0,0,eg,Zg),tg=Ge.alloc();tg.xi(hp,Qf),kh.Ga(tg);var fp=-tg.x,u1=-tg.y,kf=Ge.alloc();kf.assign(Jp),isNaN(kf.x)&&(kf.x=eg/2+3),isNaN(kf.y)&&(kf.y=-(Zg/2+3)),kf.rotate(Jh),Um+=kf.x+fp,Qp+=kf.y+u1;var Hg=new tn(Um,Qp,$f.width,$f.height),Zm=new tn($f.x,$f.y,$f.width,$f.height),c1=new tn(Mf.x,Mf.y,Mf.width,Mf.height);Sf.Sz=Ug,Sf.lineCount=ud.lineCount,Sf.lines=[ud.Cb,ud.Ih,ud.df,ud.Le,ud.Qc,ud.Qb,ud.ze],Sf.actualBounds=Hg,Sf.measuredBounds=Zm,Sf.naturalBounds=c1,qf===0?Fg.assign(Hg):Fg.ed(Hg),Ge.free(kf),Ge.free(tg),tn.free(hp),qr.free(kh)}Yd.graduatedBounds!==null&&Yd.graduatedBounds.push(Fg),ga(bv,Fg.x,Fg.y,Fg.width,Fg.height)}qe(Fl,!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 ce=y[se];re=b[se],ce.visible&&ce!==E&&re.length!==0&&(re=z[ee],ee++,ce.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},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 va,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,ce=oe.length,ge=0;ge<ce;ge++){var xe=oe[ge],we=se[ge],Fe=we.length;if(xe.visible&&xe!==z&&we.length!==0){if(xe instanceof io){if(!(2>a.graduatedTickUnit*xe.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&xe.graduatedSkip===null)){var Ne=xe.measuredBounds,Qe=xe.strokeWidth*xe.scale,Ve=xe.alignmentFocus;Ve.Mc()&&(Ve=wr);for(var rt=0;rt<Fe;rt++){var at=we[rt].$l,ft=we[rt].angle,At=Ve,Kt=xe.Ab;Kt.reset(),Kt.translate(at.x+re.x,at.y+re.y),Kt.rotate(ft+xe.angle,0,0),Kt.translate(-Ne.width*At.x+At.offsetX+Qe/2,-Ne.height*At.y+At.offsetY+Qe/2),Kt.scale(xe.scale,xe.scale),be(xe,!1),xe.wh.set(xe.Ab),xe.Kk=xe.scale,Re(xe,!1),xe.gc(y,x),b&&(a.svg.appendChild(xe.svg),xe.svg=null),xe.Ab.reset()}}}else if(xe instanceof os)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new os),Ne=a.temporaryTextBlock,L1(Ne,xe),Qe=0;Qe<Fe;Qe++)Ve=we[Qe],Ve.actualBounds&&Ve.measuredBounds&&Ve.naturalBounds&&(Ne.ec=Ve.text||"",Ne.Kb=Ve.Sz||0,Ne.Gc=Ve.lineCount||0,rt=Ve.lines,rt!==void 0&&(Ne.Cb=rt[0],Ne.Ih=rt[1],Ne.df=rt[2],Ne.Le=rt[3],Ne.Qc=rt[4],Ne.Qb=rt[5],Ne.ze=rt[6]),Ve.naturalBounds&&(Ne.dc=Ve.naturalBounds),Ve.actualBounds&&(rt=Ve.actualBounds,Ne.arrange(rt.x,rt.y,rt.width,rt.height)),rt=Ve.actualBounds,Ne.arrange(rt.x,rt.y,rt.width,rt.height),at=Ve.measuredBounds,Ve=Ve.naturalBounds,ft=Ne.Ab,ft.reset(),ft.translate(rt.x+re.x,rt.y+re.y),ft.translate(-at.x,-at.y),Ne.no(ft,Ve.x,Ve.y,Ve.width,Ve.height),be(Ne,!1),Ne.wh.set(Ne.Ab),Ne.Kk=Ne.scale,Re(Ne,!1),Ne.Ng=xe.part,Ne.Me=xe.panel,Ne.gc(y,x),Ne.Me=null,Ne.Ng=null,b&&(a.svg.appendChild(Ne.svg),Ne.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function ei(a,y){if(wt.call(this),this.na=null,a===void 0)this.na=ei.Position;else if(typeof a=="string"){var x=rh.I(a);x!==null&&(this.na=x)}else a instanceof Ql?this.na=a:a&&(this.na=ei.Position,y=a);this.na===null&&Pt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ei.Grid?1048576:0),this.O=new an,this.yb=Bc,this.Tm=Ul,this.Uf=ii,this.$g=null,this.$e="",this.jg=new tn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Zi,this.jn=la,this.kn=To,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}_t(ei,wt),ei.prototype.cloneProtected=function(a){wt.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},ei.prototype.Af=function(a){wt.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},ei.prototype.copy=function(){var a=wt.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 Ai&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(ni,"elements",a,null,b,null,ee)}}return a}return null},Be=ei.prototype,Be.toString=function(){return"Panel("+this.type.name+")#"+fr(this)},Be.Pn=function(a){wt.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===ei.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ei.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ei.Table)if(a.yc(),a instanceof va){var x=a.yd;a.yd=pd(a,"gojs-ts"),Ov(this,a),a.nh.pop(),a.yd=x}else Ov(this,a);(x=this.isClipping&&this.na===ei.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 ce=se.separatorStrokeWidth;isNaN(ce)&&(ce=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ge=se.separatorStroke;if(ge===null&&(ge=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ce!==0&&ge!==null){gs(a,y,ge,!1,!1,ee,z),ge=!1;var xe=se.separatorDashArray;xe===null&&(xe=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),xe!==null&&(ge=!0,y.js(xe,0)),y.beginPath(),xe=se.position+ce,x?xe>ee.height&&(ce-=xe-ee.height):xe>ee.width&&(ce-=xe-ee.width),se=se.position+ce/2,y.lineWidth=ce,ce=a.yb,x?(se+=ce.top,xe=ee.width-ce.right,y.moveTo(ce.left,se),y.lineTo(xe,se)):(se+=ce.left,xe=ee.height-ce.bottom,y.moveTo(se,ce.top),y.lineTo(se,xe)),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),ce=0;ce<z;ce++){var ge=E[ce];if(ge!==void 0&&ge.background!==null&&ge.coversSeparators!==b&&ge.actual!==0){var xe=x?ee.height:ee.width;if(!(ge.position>xe)){var we=ge.Wc(),Fe=ge.separatorStrokeWidth;isNaN(Fe)&&(Fe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ne=ge.separatorStroke;Ne===null&&(Ne=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ne===null||ge.index===(x?oe:se))&&(Fe=0),we-=Fe,Fe=ge.position+Fe,we+=ge.actual,Fe+we>xe&&(we=xe-Fe),0>=we||(xe=a.yb,gs(a,y,ge.background,!0,!1,re,ee),x?y.fillRect(xe.left,Fe+xe.top,ee.width-(xe.left+xe.right),we):y.fillRect(Fe+xe.left,xe.top,we,ee.height-(xe.top+xe.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(!wt.prototype.kk.call(this,a,y,x))return!1;if(this.type===ei.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===ei.Grid||this.na===ei.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 wt.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,ce=-ee.m21*re,ge=ee.m11*re,xe=re*(ee.m21*ee.dy-ee.m22*ee.dx),we=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Dt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*ce+xe,re=a*se+y*ge+we,a=x*oe+E*ce+xe,oe=x*se+E*ge+we,b.h(0,0),x=this.naturalBounds,z=Dt.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,ce=se=0,ge=1,we=xe=0),re=a*oe+y*ce+xe,a=a*se+y*ge+we,oe=x*oe+E*ce+xe,x=x*se+E*ge+we,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),se=!1,ge=this.O.s,we=ge.length,ce=Ge.alloc(),xe=null,y=1/0;var Fe=null,Ne=this.isClipping&&this.na===ei.Spot;Ne&&(Fe=Ge.alloc(),xe=this.Pb(),(se=xe.Sj(re,a,oe,x,Fe))&&(y=(re-Fe.x)*(re-Fe.x)+(a-Fe.y)*(a-Fe.y)));for(var Qe=0;Qe<we;Qe++){var Ve=ge[Qe];Ve.visible&&Ve!==xe&&Ve.Sj(re,a,oe,x,ce)&&(se=!0,Ve=(re-ce.x)*(re-ce.x)+(a-ce.y)*(a-ce.y),Ve<E&&(E=Ve,b.set(ce)))}return Ne&&(y>E&&b.set(Fe),Ge.free(Fe)),Ge.free(ce),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();wt.prototype.Gj.call(this)},Be.v=function(a){if(!Xe(this)){wt.prototype.v.call(this,a),a=null,(this.na===ei.Auto||this.na===ei.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=Zu(b,!1);(b instanceof xc||b instanceof ei||b instanceof os||z!==Nn)&&b.v(!0)}}}},Be.Uj=function(){if(!Xe(this)){qe(this,!0),St(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),Re(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Be.Wu=function(){Re(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),Ss(b,a,oe),Ss(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 Cf(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=Zu(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=Nn),a){case Nn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Kn:this.v(!0),this.measure(x+re,E+ee,0,0);break;case Xi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Rt: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=Cf(this);if(gl(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Ge.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(_o(b.set(a),z.transform),z.ca(b)))return Ge.free(b),!0}return Ge.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 ei){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 ei&&y1(a,z,x)}}function Bx(a,y){S1(a,a,y)}function S1(a,y,x){if(x(y),y instanceof ei){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 ei){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 ei){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 ei?x=Math.max(x,E1(b)):b instanceof io&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Be.se=function(){return!(this.type===ei.TableRow||this.type===ei.TableColumn)};function If(a){return a.type===ei.TableRow||a.type===ei.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:_o(Ge.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,se=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),se=oe/2),gl(-(se*b),-(se*b),E.width+oe*b,E.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var ce=b.length;if(re=Ge.alloc(),se=(oe=this.isClipping&&this.na===ei.Spot)?this.Pb():null,oe&&(se.se()?_o(re.set(a),se.transform):re.set(a),!se.ca(re)))return Ge.free(re),z||Ge.free(ee),null;for(var ge=Cf(this);ce--;){var xe=b[ce];if((xe.visible||xe===ge)&&(xe.se()?_o(re.set(a),xe.transform):re.set(a),!oe||xe!==se)){var we=null;if(xe instanceof ei?we=xe.ic(re,y,x):xe.pickable===!0&&xe.ca(re)&&(we=xe),we!==null&&(y!==null&&(we=y(we)),we!==null&&(x===null||x(we))))return Ge.free(re),z||Ge.free(ee),we}}Ge.free(re)}return this.background===null&&this.areaBackground===null?(z||Ge.free(ee),null):(a=gl(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||Ge.free(ee),a)}return z||Ge.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:_o(Ge.allocAt(a.x,a.y),this.transform);if(b=gl(0,0,b.width,b.height,ee.x,ee.y),If(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,se=Ge.alloc(),ce=Cf(this);oe--;){var ge=re[oe];if(ge.visible||ge===ce){ge.se()?_o(se.set(a),ge.transform):se.set(a);var xe=ge;ge=ge instanceof ei?ge:null,(ge!==null?ge.ji(se,y,x,E):xe.ca(se))&&xe.pickable!==!1&&(y!==null&&(xe=y(xe)),xe===null||x!==null&&!x(xe)||E.add(xe))}}Ge.free(se)}return z||Ge.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||Ge.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=Cf(this),oe=this.O.s,se=oe.length;se--;){var ce=oe[se];if(ce.visible||ce===re){var ge=ce.actualBounds,xe=this.naturalBounds;ge.x>xe.width||ge.y>xe.height||0>ge.x+ge.width||0>ge.y+ge.height||(ge=ce,ce=ce instanceof ei?ce:null,xe=qr.alloc(),xe.set(ee),(ce!==null?ce.Cf(a,y,x,E,b,xe):ws(ge,a,E,xe))&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge)),qr.free(xe))}}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 ei&&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:_o(Ge.allocAt(a.x,a.y),this.transform),se=re?y:_o(Ge.allocAt(y.x,y.y),this.transform),ce=oe.Bf(se),ge=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||Ea(oe.x,oe.y,0,0,0,ee.height)<=ce||Ea(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ce||Ea(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ce||Ea(oe.x,oe.y,ee.width,0,0,0)<=ce;if(ee=oe.zd(0,0)<=ce&&oe.zd(0,ee.height)<=ce&&oe.zd(ee.width,0)<=ce&&oe.zd(ee.width,ee.height)<=ce,re||(Ge.free(oe),Ge.free(se)),ge){if(!this.isAtomic){oe=Ge.alloc(),se=Ge.alloc(),ce=Cf(this);for(var xe=this.O.s,we=xe.length;we--;){var Fe=xe[we];if(Fe.visible||Fe===ce){var Ne=Fe.actualBounds,Qe=this.naturalBounds;(!re||!(Ne.x>Qe.width||Ne.y>Qe.height||0>Ne.x+Ne.width||0>Ne.y+Ne.height))&&(Fe.se()?(Ne=Fe.transform,_o(oe.set(a),Ne),_o(se.set(y),Ne)):(oe.set(a),se.set(y)),Ne=Fe,Fe=Fe instanceof ei?Fe:null,(Fe!==null?Fe.og(oe,se,x,E,b,z):Ne.tx(oe,se,b))&&(x!==null&&(Ne=x(Ne)),Ne===null||E!==null&&!E(Ne)||z.add(Ne)))}}Ge.free(oe),Ge.free(se)}return b?ge:ee}return!1};function Wv(a){var y=null;return a instanceof io&&(y=a.spot1,y===Ul&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=bl),y}function jv(a){var y=null;return a instanceof io&&(y=a.spot2,y===Ul&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=hu),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 ar&&Pt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Pt("Cannot make a Panel contain itself: "+this.toString()),Pt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Pt("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!==ei.Grid||y instanceof io||Pt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ei.Graduated||y instanceof io||y instanceof os||Pt("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 hi),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 Pt("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),Xe(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ei&&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 Ai&&(x.Te=!0),x.Te&&x instanceof Ai&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(yi,"elements",this,y,null,E,null),x.cb(ni,"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),qe(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 Ai&&(E instanceof ei?E.qm(E,function(ee,re){uy(z,re,y)}):uy(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(yi,"elements",this,E,null,a,null))},Be.Fb=function(a){0>a&&En(a,">= 0",ei,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new jl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ni,"rowdefs",this,null,x,null,a)}return y[a]},Be.oA=function(a){if(0>a&&En(a,">= 0",ei,"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(yi,"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 jl?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&&En(a,">= 0",ei,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new jl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ni,"coldefs",this,null,x,null,a)}return y[a]},Be.jA=function(a){if(0>a&&En(a,">= 0",ei,"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(yi,"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 jl?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 jl(y)),this},Be.By=function(a,y){return(a=this.Eb(a))&&u0(a,new jl(y)),this},Be.nz=function(a){if(0>a||this.type!==ei.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!==ei.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 Ge(NaN,NaN)),this.type!==ei.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!==ei.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 Ud(a){var y=a.allBindings;if(y===null)a.data!==null&&Pt("Template cannot have .data be non-null: "+a),a.allBindings=y=new an;else if(y._isFrozen)return;var x=new an;zv(a,!1),a.qm(a,function(se,ce){ce.th();var ge=ce.localBindings;if(ge!==null)for(ye(ce,!1),ge=ge.iterator;ge.next();){var xe=ge.value;xe.mode===Cm&&ye(ce,!0);var we=xe.sourceName;we!==null&&(we==="/"&&zv(se,!0),we=WS(xe,se,ce),we!==null&&(x.add(we),we.srcBindings===null&&(we.srcBindings=new an),we.srcBindings.add(xe))),y.add(xe)}if(ce instanceof ei&&ce.type===ei.Table){if(0<ce.rowCount){for(se=ce.rowDefs,ge=se.length,xe=0;xe<ge;xe++)if(we=se[xe],we!==void 0&&we.be!==null)for(var Fe=we.be.iterator;Fe.next();){var Ne=Fe.value;Ne.xd=we,Ne.to=2,Ne.wl=we.index,y.add(Ne)}}if(0<ce.columnCount){for(ce=ce.colDefs,se=ce.length,ge=0;ge<se;ge++)if(xe=ce[ge],xe!==void 0&&xe.be!==null)for(we=xe.be.iterator;we.next();)Fe=we.value,Fe.xd=xe,Fe.to=1,Fe.wl=xe.index,y.add(Fe)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){ye(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new an),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 ei&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):Yn('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof jl?(ee=fr(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof wt?(ee=fr(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):Pt("Unknown type of binding target: "+z)}y.freeze(),a instanceof ar&&a.Zc()&&a.Va()}Be.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Bx(y,function(x){x instanceof ei&&(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&&Ud(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 ei))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 ei&&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 ei)||z.data!==y[ee])return!0;b++,ee++}return!1}function nm(a){if(a.type===ei.Spot||a.type===ei.Auto)return Math.min(a.O.length,1);if(a.type===ei.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof io&&E.isPanelMain))break}return x}return a.type===ei.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ei&&If(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 ei){if(ee.data!==z){var re=_v(a,ee.data),oe=_v(a,z),se=oe!==re;se||(re=Gv(a,re),se=Gv(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),Xe(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 Ai&&(y.Te=!0),y.Te&&y instanceof Ai&&(y.wc=null))}}function s0(a,y,x,E){if(!(y==null||0>x)){var b=_v(a,y);if(b=Gv(a,b),b!==null){if(Ud(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 hi),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 ei){var b=y,z=x;E.type===ei.TableRow?E.row=b:E.type===ei.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function _v(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=hl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Pt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Gv(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,Yn('No item template Panel found for category "'+y+'" on '+a),Yn(" Using default item template."),a=new ei,y=new os,y.bind(new Cl("text","",Jr)),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 ei){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ei&&!z.isEnabled||l0(a,z,x)}}}function Zh(a,y){y.name=a,rh.add(a,y)}zt.Object.defineProperties(ei.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ei.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&&En(a,">= 0",ei,"padding"),a=new oo(a)):(0>a.left&&En(a.left,">= 0",ei,"padding:value.left"),0>a.right&&En(a.right,">= 0",ei,"padding:value.right"),0>a.top&&En(a.top,">= 0",ei,"padding:value.top"),0>a.bottom&&En(a.bottom,">= 0",ei,"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 oo(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ld),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 $o)&&(a instanceof $o&&a.freeze(),this.T===null&&(this.T=new Ld),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 Ld),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)||Pt("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 Ld),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 $o)&&(a instanceof $o&&a.freeze(),this.T===null&&(this.T=new Ld),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 Ld),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)||Pt("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 Ld),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 Ld),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||Pt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Os(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||Pt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Os(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Af),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ve(this)&&(a=this.part,a!==null&&ea(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 Af),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ve(this)&&(a=this.part,a!==null&&ea(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 Af),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 Af),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 Af,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 Af,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 Af,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 Af,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 Ld),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ld),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 Ld),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 Ld),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)&&Pt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ld),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)&&Pt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ld),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 ar&&!(this instanceof ta);Ud(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof oi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ar&&(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 Ar),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 hi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ar||a.isPanelMain)&&Pt("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(););Er(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&&(Er(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 _r&&(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))}}}),zt.Object.defineProperties(ei,{Position:{get:function(){return rh.I("Position")}},Horizontal:{get:function(){return rh.I("Horizontal")}},Vertical:{get:function(){return rh.I("Vertical")}},Spot:{get:function(){return rh.I("Spot")}},Auto:{get:function(){return rh.I("Auto")}},Table:{get:function(){return rh.I("Table")}},Viewbox:{get:function(){return rh.I("Viewbox")}},TableRow:{get:function(){return rh.I("TableRow")}},TableColumn:{get:function(){return rh.I("TableColumn")}},Link:{get:function(){return rh.I("Link")}},Grid:{get:function(){return rh.I("Grid")}},Graduated:{get:function(){return rh.I("Graduated")}}}),ei.prototype.rebuildItemElements=ei.prototype.mv,ei.prototype.findItemPanelForData=ei.prototype.sx,ei.prototype.updateTargetBindings=ei.prototype.La,ei.prototype.copyTemplate=ei.prototype.Uy,ei.prototype.graduatedValueForPoint=ei.prototype.Gz,ei.prototype.graduatedPointForValue=ei.prototype.Fz,ei.prototype.findColumnForLocalX=ei.prototype.fz,ei.prototype.findRowForLocalY=ei.prototype.nz,ei.prototype.addColumnDefinition=ei.prototype.By,ei.prototype.addRowDefinition=ei.prototype.Hy,ei.prototype.addRowColumnDefinition=ei.prototype.Gy,ei.prototype.removeColumnDefinition=ei.prototype.jA,ei.prototype.getColumnDefinition=ei.prototype.Eb,ei.prototype.removeRowDefinition=ei.prototype.oA,ei.prototype.getRowDefinition=ei.prototype.Fb,ei.prototype.removeAt=ei.prototype.mb,ei.prototype.remove=ei.prototype.remove,ei.prototype.insertAt=ei.prototype.Gb,ei.prototype.elt=ei.prototype.M,ei.prototype.add=ei.prototype.add,ei.prototype.findObject=ei.prototype.fb,ei.prototype.findInVisualTree=ei.prototype.Nl,ei.prototype.walkVisualTreeFrom=ei.prototype.qm,ei.prototype.findMainElement=ei.prototype.Pb;var F1=!1,b1=null,rh=new hi;ei.className="Panel",ei.definePanelLayout=Zh,Zh("Position",new Xm),Zh("Vertical",new Qm),Zh("Auto",new $m),Zh("Link",new o0);function Af(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Af.prototype.copy=function(){var a=new Af;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},Af.className="GradPanelSettings";function Ld(){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}Ld.prototype.copy=function(a){for(var y=new Ld,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},Ld.className="TablePanelSettings";function jl(a){Or(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ul,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Uv,this.hg=ii,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}jl.prototype.copy=function(){var a=new jl;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=sn(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=sn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Be=jl.prototype,Be.qb=function(a){a.classType===jl&&(this.sizing=a)},Be.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+fr(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===ei.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(Hn,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===Uv){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 Cl(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&C1(y)&&Pt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new an),this.be.add(b),this},zt.Object.defineProperties(jl.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&En(a,">= 0",jl,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&En(a,">= 0",jl,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&En(a,">= 0",jl,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&En(a,">= 0",jl,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new oo(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&&rg(a,"RowColumnDefinition.separatorStroke"),a instanceof $o&&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)||Pt("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&&rg(a,"RowColumnDefinition.background"),a instanceof $o&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),jl.prototype.computeEffectiveSpacing=jl.prototype.Wc,jl.prototype.computeEffectiveSpacingTop=jl.prototype.Io;var Uv=new on(jl,"Default",0),im=new on(jl,"None",1),d0=new on(jl,"ProportionalExtra",2);jl.className="RowColumnDefinition",jl.Default=Uv,jl.None=im,jl.ProportionalExtra=d0;function io(a,y){wt.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)}_t(io,wt),io.prototype.cloneProtected=function(a){wt.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=sn(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=io.prototype,Be.th=function(){wt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Be.qb=function(a){a===Nn||a===Zi||a===Ji||a===ii?this.geometryStretch=a:wt.prototype.qb.call(this,a)},Be.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+fr(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,ce,ge,xe,we,Fe,Ne=0,Qe=Ri(),Ve=2;Ve<b;Ve+=2)se=x[Ve],ce=x[Ve+1],ge=se-re,re=ce-oe,ge===0&&(ge=.001),xe=re/ge,we=Math.atan2(re,ge),Fe=Math.sqrt(ge*ge+re*re),Qe.push([ge,we,xe,Fe]),Ne+=Fe,re=se,oe=ce;re=x[0],oe=x[1],ge=E.measuredBounds.width,E instanceof io&&(ge-=E.strokeWidth),1>ge&&(ge=1),b=x=ge,se=ee/2,ce=se!==0,Ve=0,Fe=Qe[Ve],ge=Fe[0],we=Fe[1],xe=Fe[2],Fe=Fe[3];for(var rt=0;.1<=Ne;){if(rt===0&&(ce?(b=x,b-=se,Ne-=se,ce=!1):b=x,b===0&&(b=1)),b>Ne){ai(Qe);return}b>Fe?(rt=b-Fe,b=Fe):rt=0;var at=Math.sqrt(b*b/(1+xe*xe));if(0>ge&&(at=-at),re+=at,oe+=xe*at,a.translate(re,oe),a.rotate(we),a.translate(-(ee/2),-(z/2)),rt===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-we),a.translate(-re,-oe),Ne-=b,Fe-=b,rt!==0){if(Ve++,Ve===Qe.length){ai(Qe);return}Fe=Qe[Ve],ge=Fe[0],we=Fe[1],xe=Fe[2],Fe=Fe[3],b=rt}}ai(Qe)}}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&&gs(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===ei.Link&&re instanceof ta&&re.category==="Selection"&&re.adornedObject instanceof io&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(gs(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===si.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===si.u){var se=b.startX;oe=b.startY;var ce=b.endX,ge=b.endY;b=Math.min(se,ce);var xe=Math.min(oe,ge);se=Math.abs(ce-se),oe=Math.abs(ge-oe),a.beginPath(),a.rect(b,xe,se,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&lc(a),a.jk(),re&&z&&Cu(a)),a.Se()}else if(b.type===si.F)se=b.startX,oe=b.startY,ce=b.endX,ge=b.endY,b=Math.abs(ce-se)/2,xe=Math.abs(ge-oe)/2,se=Math.min(se,ce)+b,oe=Math.min(oe,ge)+xe,a.beginPath(),a.moveTo(se,oe-xe),a.bezierCurveTo(se+Dt.wg*b,oe-xe,se+b,oe-Dt.wg*xe,se+b,oe),a.bezierCurveTo(se+b,oe+Dt.wg*xe,se+Dt.wg*b,oe+xe,se,oe+xe),a.bezierCurveTo(se-Dt.wg*b,oe+xe,se-b,oe+Dt.wg*xe,se-b,oe),a.bezierCurveTo(se-b,oe-Dt.wg*xe,se-Dt.wg*b,oe-xe,se,oe-xe),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&lc(a),a.jk(),re&&z&&Cu(a)),a.Se();else if(b.type===si.o)for(b=b.figures,oe=b.length,xe=0;xe<oe;xe++){se=b.s[xe],a.beginPath(),a.moveTo(se.startX,se.startY),ce=se.segments.s,ge=ce.length;for(var we=null,Fe=0;Fe<ge;Fe++){var Ne=ce[Fe];switch(Ne.type){case tl:a.moveTo(Ne.endX,Ne.endY);break;case Oa:a.lineTo(Ne.endX,Ne.endY);break;case ml:a.bezierCurveTo(Ne.point1X,Ne.point1Y,Ne.point2X,Ne.point2Y,Ne.endX,Ne.endY);break;case We:a.quadraticCurveTo(Ne.point1X,Ne.point1Y,Ne.endX,Ne.endY);break;case Ze:if(Ne.radiusX===Ne.radiusY){var Qe=Math.PI/180;a.arc(Ne.point1X,Ne.point1Y,Ne.radiusX,Ne.startAngle*Qe,(Ne.startAngle+Ne.sweepAngle)*Qe,0>Ne.sweepAngle,we!==null?we.endX:se.startX,we!==null?we.endY:se.startY)}else if(we=au(Ne,se),Qe=we.length,Qe===0)a.lineTo(Ne.centerX,Ne.centerY);else for(var Ve=0;Ve<Qe;Ve++){var rt=we[Ve];Ve===0&&a.lineTo(rt[0],rt[1]),a.bezierCurveTo(rt[2],rt[3],rt[4],rt[5],rt[6],rt[7])}break;case $e:if(Ve=Qe=0,we!==null&&we.type===Ze){if(we=au(we,se),rt=we.length,rt===0){a.lineTo(Ne.endX,Ne.endY);break}we=we[rt-1]||null,we!==null&&(Qe=we[6],Ve=we[7])}else Qe=we!==null?we.endX:se.startX,Ve=we!==null?we.endY:se.startY;if(we=Xu(Ne,se,Qe,Ve),Qe=we.length,Qe===0){a.lineTo(Ne.endX,Ne.endY);break}for(Ve=0;Ve<Qe;Ve++)rt=we[Ve],a.bezierCurveTo(rt[2],rt[3],rt[4],rt[5],rt[6],rt[7]);break;default:Pt("Segment not of valid type: "+Ne.type)}Ne.isClosed&&a.closePath(),we=Ne}ce=se.isFilled,z?se.isShadowed?(ce===!0&&E!=="transparent"&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&(ce&&re&&lc(a),a.jk(),ce&&re&&Cu(a))):(lc(a),ce&&E!=="transparent"&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&a.jk(),Cu(a)):(ce&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&a.jk()),a.Se(xe)}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=Ri(),z.type===si.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===si.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,xe=b,se=re.segments.s,ce=se.length,ge=0;ge<ce;ge++){switch(Fe=se[ge],Fe.type){case tl:Ep(a,y,E,x),E.length=0,E.push(Fe.endX),E.push(Fe.endY),ee=Fe.endX,b=Fe.endY,oe=ee,xe=b;break;case Oa:E.push(Fe.endX),E.push(Fe.endY),ee=Fe.endX,b=Fe.endY;break;case ml:Dt.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 We:Dt.ep(ee,b,Fe.point1X,Fe.point1Y,Fe.endX,Fe.endY,.5,E),ee=Fe.endX,b=Fe.endY;break;case Ze:if(Ne=au(Fe,re),we=Ne.length,we===0){E.push(Fe.centerX),E.push(Fe.centerY),ee=Fe.centerX,b=Fe.centerY;break}for(Qe=0;Qe<we;Qe++)Ve=Ne[Qe],Dt.Qe(ee,b,Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],.5,E),ee=Ve[6],b=Ve[7];break;case $e:if(Ne=Xu(Fe,re,ee,b),we=Ne.length,we===0){E.push(Fe.endX),E.push(Fe.endY),ee=Fe.endX,b=Fe.endY;break}for(Qe=0;Qe<we;Qe++)Ve=Ne[Qe],Dt.Qe(ee,b,Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],.5,E),ee=Ve[6],b=Ve[7];break;default:Pt("Segment not of valid type: "+Fe.type)}Fe.isClosed&&(E.push(oe),E.push(xe),Ep(a,y,E,x))}Ep(a,y,E,x)}else if(z.type===si.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===si.F){if(b=new el,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new Zo(Ze),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=au(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++)xe=z[oe],Dt.Qe(ee,b,xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],.5,E),ee=xe[6],b=xe[7];Ep(a,y,E,x)}ai(E),a.restore(),a.Vc(!1)}}}},Be.kk=function(a,y,x){return!wt.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:wt.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 Ge),a instanceof ir){a.Mc()&&Pt("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 tn);var y=this.naturalBounds,x=this.oe;y=tn.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Ge.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),ga(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),ga(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),ga(a,E.x,E.y,0,0),tn.free(y),Ge.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!==si.j||y||(b+=2);var z=tn.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return tn.free(z),!1;if(E=b+1e-4,x.type===si.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:(tn.free(z),Dt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===si.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 tn.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),tn.free(z),a}if(x.type===si.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 tn.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),tn.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===si.o)return tn.free(z),this.fill===null?Au(x,a.x,a.y,b):cd(x,a,b,1<this.strokeWidth,y);Pt("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=Hv[re];if(oe===void 0){var se=Dt.Ze[re];typeof se=="string"&&(se=Dt.Ze[se]),typeof se=="function"?(oe=se(null,100,100),Hv[re]=oe):Pt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,se=ee.width;var ce=ee.height;switch(Zu(this,!0)){case Nn:E=x=0;break;case Kn:se=Math.max(a-z,0),ce=Math.max(y-z,0);break;case Xi:se=Math.max(a-z,0),E=0;break;case Rt:x=0,ce=Math.max(y-z,0)}isFinite(b.width)&&(se=b.width),isFinite(b.height)&&(ce=b.height);var ge=this.maxSize,xe=this.minSize;switch(x=Math.max(x-z,xe.width),E=Math.max(E-z,xe.height),se=Math.min(ge.width,se),ce=Math.min(ge.height,ce),se=isFinite(se)?Math.max(x,se):Math.max(re,x),ce=isFinite(ce)?Math.max(E,ce):Math.max(oe,E),x=Zv(this),x){case Nn:break;case Kn:re=se,oe=ce;break;case Zi:x=Math.min(se/re,ce/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:Pt(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&&Dt.$(this.ua.Sk,a-z)&&Dt.$(this.ua.Rk,y-z)||(this.ua=io.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,ce+z),b.w()?(se=b.width,ce=b.height,se=Math.min(ge.width,se),ce=Math.min(ge.height,ce),se=Math.max(xe.width,se),ce=Math.max(xe.height,ce),this.dc.h(0,0,se,ce)):this.dc.assign(ee)};function Zv(a){var y=a.geometryStretch;return a.Rd!==null?y===ii?Kn:y:y===ii?Hv[a.figure].defaultStretch:y}Be.eh=function(a,y,x,E){Ml(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,ce=z.m11*ee,ge=ee*(z.m21*z.dy-z.m22*z.dx),xe=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*se+ge,ee=a*oe+y*ce+xe,re=x*re+E*se+ge,oe=x*oe+E*ce+xe,ge=this.ig/2,se=this.ua,se===null&&(this.measure(1/0,1/0),se=this.ua);var we=se.bounds;if(ce=!1,se.type===si.j)if(1.5>=this.strokeWidth)ce=Dt.Ve(se.startX,se.startY,se.endX,se.endY,z,ee,re,oe,b);else{if(se.startX===se.endX?(E=ge,ce=0):(y=(se.endY-se.startY)/(se.endX-se.startX),ce=ge/Math.sqrt(1+y*y),E=ce*y),y=Ri(),a=new Ge,Dt.Ve(se.startX+E,se.startY+ce,se.endX+E,se.endY+ce,z,ee,re,oe,a)&&y.push(a),a=new Ge,Dt.Ve(se.startX-E,se.startY-ce,se.endX-E,se.endY-ce,z,ee,re,oe,a)&&y.push(a),a=new Ge,Dt.Ve(se.startX+E,se.startY+ce,se.startX-E,se.startY-ce,z,ee,re,oe,a)&&y.push(a),a=new Ge,Dt.Ve(se.endX+E,se.endY+ce,se.endX-E,se.endY-ce,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return ai(y),!1;for(ce=!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);ai(y)}else if(se.type===si.u)ce=Dt.Ff(we.x-ge,we.y-ge,we.x+we.width+ge,we.y+we.height+ge,z,ee,re,oe,b);else if(se.type===si.F){y=tn.allocAt(we.x,we.y,we.width,we.height).Bc(ge,ge);e:if(y.width===0)ce=Dt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)ce=Dt.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,ce=y.y+se,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ce-x*(z-E),0>a*a*x*x+se*se-oe*oe){b.x=NaN,b.y=NaN,ce=!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+ce,oe=x*(a-E)+oe+ce,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,ce=!1;break e}oe=Math.sqrt(re),re=ce+oe,oe=ce-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}ce=!0}tn.free(y)}else if(se.type===si.o){xe=Ge.alloc();var Fe=re-z,Ne=oe-ee,Qe=Fe*Fe+Ne*Ne,Ve=z,rt=ee;if(0<Qe&&we.contains(Ve,rt)&&(xe.x=Ve,xe.y=rt,this.ca(xe)))for(Fe!==0&&.5>Math.abs(Fe)?(Ne*=.5/Fe,Fe=.5):Ne!==0&&.5>Math.abs(Ne)&&(Fe*=.5/Ne,Ne=.5),Ve-=Fe,rt-=Ne;we.contains(Ve,rt);)Ve-=Fe,rt-=Ne;for(b.x=re,b.y=oe,Ne=0;Ne<se.figures.count;Ne++){var at=se.figures.s[Ne],ft=at.isFilled?Ve:z,At=at.isFilled?rt:ee,Kt=at.segments;we=at.startX,Fe=at.startY;for(var Ei=we,zi=Fe,Ni=0;Ni<Kt.count;Ni++){var ri=Kt.s[Ni],Mn=ri.type,jr=ri.endX,Fr=ri.endY,ra=!1;switch(Mn){case tl:Ei=jr,zi=Fr;break;case Oa:ra=f0(we,Fe,jr,Fr,ft,At,re,oe,xe);break;case ml:ra=Dt.Eo(we,Fe,ri.point1X,ri.point1Y,ri.point2X,ri.point2Y,jr,Fr,ft,At,re,oe,.6,xe);break;case We:ra=Dt.Eo(we,Fe,we+2/3*(ri.point1X-we),Fe+2/3*(ri.point1Y-Fe),jr+2/3*(ri.point1X-jr),Fr+2/3*(ri.point1Y-Fr),jr,Fr,ft,At,re,oe,.6,xe);break;case Ze:case $e:Mn=ri.type===Ze?au(ri,at):Xu(ri,at,we,Fe);var ns=Mn.length;if(ns===0){ra=f0(we,Fe,ri.type===Ze?ri.centerX:ri.endX,ri.type===Ze?ri.centerY:ri.endY,ft,At,re,oe,xe);break}for(Fr=null,jr=0;jr<ns;jr++){if(Fr=Mn[jr],jr===0&&f0(we,Fe,Fr[0],Fr[1],ft,At,re,oe,xe)){var uu=h0(ft,At,xe,Qe,b);uu<Qe&&(Qe=uu,ce=!0)}Dt.Eo(Fr[0],Fr[1],Fr[2],Fr[3],Fr[4],Fr[5],Fr[6],Fr[7],ft,At,re,oe,.6,xe)&&(uu=h0(ft,At,xe,Qe,b),uu<Qe&&(Qe=uu,ce=!0))}jr=Fr[6],Fr=Fr[7];break;default:Pt("Unknown Segment type: "+Mn)}we=jr,Fe=Fr,ra&&(ra=h0(ft,At,xe,Qe,b),ra<Qe&&(Qe=ra,ce=!0)),ri.isClosed&&(jr=Ei,Fr=zi,f0(we,Fe,jr,Fr,ft,At,re,oe,xe)&&(ri=h0(ft,At,xe,Qe,b),ri<Qe&&(Qe=ri,ce=!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,Ge.free(xe)}else Pt("Unknown Geometry type: "+se.type);return ce?(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(Dt.$(a,x)&&Dt.$(y,E)||Dt.$(b,ee)&&Dt.$(z,re))return!1;var se=!1,ce=(b-ee)*(y-E)-(z-re)*(a-x);return ce===0?!1:(oe.x=((b*re-z*ee)*(a-x)-(b-ee)*(a*E-y*x))/ce,oe.y=((b*re-z*ee)*(y-E)-(z-re)*(a*E-y*x))/ce,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||Dt.$(oe.y,a))&&(oe.y<y||Dt.$(oe.y,y))&&(se=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Dt.$(oe.x,y))&&(oe.x<a||Dt.$(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=Ge.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)))),Ge.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=Ge.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 Ge.free(ee),!0;var re=Ge.alloc(),oe=Ge.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)))),Ge.free(ee),qr.free(x),Ge.free(re),Ge.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(Qe,Ve){for(var rt=Qe.length,at=0;at<rt;at+=2)if(Ve.zd(Qe[at],Qe[at+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,za(a.x,a.y,re,oe)<=b&&za(a.x,a.y,se,oe)<=b&&za(a.x,a.y,re,ee)<=b&&za(a.x,a.y,se,ee)<=b)return!0}if(re=y.startX,oe=y.startY,se=y.endX,ee=y.endY,y.type===si.j){if(x=(re-se)*(a.x-se)+(oe-ee)*(a.y-ee),Ea(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===si.u)return y=!1,x&&(y=Ea(a.x,a.y,re,oe,re,ee)<=b||Ea(a.x,a.y,re,oe,se,oe)<=b||Ea(a.x,a.y,se,oe,se,ee)<=b||Ea(a.x,a.y,re,ee,se,ee)<=b),y;if(y.type===si.F){y=a.x-(re+se)/2,z=a.y-(oe+ee)/2;var ce=Math.abs(se-re)/2,ge=Math.abs(ee-oe)/2;if(ce===0||ge===0)return Ea(a.x,a.y,re,oe,se,ee)<=b;if(x){if(a=Dt.$y(ce,ge,y,z),a*a<=b)return!0}else return!(za(y,z,-ce,0)>=b||za(y,z,0,-ge)>=b||za(y,z,0,ge)>=b||za(y,z,ce,0)>=b)}else if(y.type===si.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&&Ea(a.x,a.y,z,re,z,se)>b&&Ea(a.x,a.y,z,re,oe,re)>b&&Ea(a.x,a.y,oe,se,z,se)>b&&Ea(a.x,a.y,oe,se,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Au(y,a.x,a.y,z):cd(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ce=z.startY,a.zd(ee,ce)>b)return!1;for(re=z.segments.s,oe=re.length,se=0;se<oe;se++)switch(ge=re[se],ge.type){case tl:case Oa:if(ee=ge.endX,ce=ge.endY,a.zd(ee,ce)>b)return!1;break;case ml:var xe=Ri();if(Dt.Qe(ee,ce,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.8,xe),ee=E(xe,a),ai(xe),ee||(ee=ge.endX,ce=ge.endY,a.zd(ee,ce)>b))return!1;break;case We:if(xe=Ri(),Dt.ep(ee,ce,ge.point1X,ge.point1Y,ge.endX,ge.endY,.8,xe),ee=E(xe,a),ai(xe),ee||(ee=ge.endX,ce=ge.endY,a.zd(ee,ce)>b))return!1;break;case Ze:case $e:xe=ge.type===Ze?au(ge,z):Xu(ge,z,ee,ce);var we=xe.length;if(we===0){if(ee=ge.type===Ze?ge.centerX:ge.endX,ce=ge.type===Ze?ge.centerY:ge.endY,a.zd(ee,ce)>b)return!1;break}ge=null;for(var Fe=Ri(),Ne=0;Ne<we;Ne++)if(ge=xe[Ne],Fe.length=0,Dt.Qe(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.8,Fe),E(Fe,a))return ai(Fe),!1;ai(Fe),ge!==null&&(ee=ge[6],ce=ge[7]);break;default:Pt("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=ul):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new ir(1-ul.x,ul.y)))}io.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=uf[a.toArrow];else a.fromArrow!=="None"?E=uf[a.fromArrow]:(E=Dt.Ze[a.figure],typeof E=="string"&&(E=Dt.Ze[E]),E===void 0&&Pt("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=Dt.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function D1(a){var y=uf[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=uf[x],y===void 0){var E=null,b;for(b in Dt.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=si.parse(Dt.um[E],!1),uf[E]=a,x!==E&&(uf[x]=E),E}}return typeof y=="string"?y:y instanceof si?a:null}zt.Object.defineProperties(io.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&&ea(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=si.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ge.allocAt(-y.x,-y.y),Ge.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&&rg(a,"Shape.fill"),a instanceof $o&&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&&rg(a,"Shape.stroke"),a instanceof $o&&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 En(a,"value >= 0",io,"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"?En(a,'"butt", "round", or "square"',io,"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"?En(a,'"miter", "bevel", or "round"',io,"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)||Pt("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=Dt.Ze[a];typeof x=="function"?x=a:(x=Dt.Ze[a.toLowerCase()])||Pt("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?Pt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Lr),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?Pt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Lr),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:Ul},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:Ul},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:ii},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 cf),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Os(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new cf),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 cf),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 cf),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),io.prototype.intersectsRect=io.prototype.Yc,io.prototype.containedInRect=io.prototype.fh,io.prototype.getNearestIntersectionPoint=io.prototype.rs,io.prototype.getDocumentBounds=io.prototype.mi,io.prototype.getDocumentPoint=io.prototype.ga;var uf=new Jt,Hv=new Jt;io.className="Shape",io.getFigureGenerators=function(){var a=new hi,y;for(y in Dt.Ze)y!==y.toLowerCase()&&a.add(y,Dt.Ze[y]);return a.freeze(),a},io.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=Dt.Ze;E[a]=y,E[x]=a},io.getArrowheadGeometries=function(){var a=new hi;for(E in Dt.um)if(uf[E]===void 0){var y=si.parse(Dt.um[E],!1);uf[E]=y,y=E.toLowerCase(),y!==E&&(uf[y]=E)}for(var x in uf)if(x!==x.toLowerCase()){var E=uf[x];E instanceof si&&a.add(x,E)}return a.freeze(),a},io.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=si.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Pt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=uf;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=ii,this.gg=this.fg=Ul}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 os(a,y){return wt.call(this),y0||(Rc=Aa?new zu(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}_t(os,wt),os.prototype.cloneProtected=function(a){wt.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 Hh(a){a.da===null?a.da=new ey:a.da.nc&&(a.da=a.da.copy())}Be=os.prototype,Be.th=function(){wt.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===os?this.wrap=a:wt.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(){wt.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;gs(this,a,this.xc,!0,!1,x,E),(oe||se)&&gs(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ce=this.oe,ge=ce.dx-(ee*ce.m21+ce.dx);ce=ce.dy-(ee*ce.m22+ce.dy);var xe=y.scale;switch(8>(ge*ge+ce*ce)*xe*xe&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof va&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ge=this.spacingBelow,this.flip){case vr:a.translate(b,0),a.scale(-1,1);break;case or:a.translate(0,z),a.scale(1,-1);break;case Wr:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ce=this.Gc,xe=(y+ee+ge)*ce,z>xe&&(E=this.verticalAlignment,E=E.y*z-E.y*xe+E.offsetY),ce===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(xe=0;xe<ce;xe++){var we=this.Qc[xe];we>b&&(we=b),E+=y,this.Oj(this.Qb[xe],a,0,E,b,ee,we,x,re,oe,se),E+=ee+ge}switch(this.flip){case vr:a.scale(-1,1),a.translate(-b,0);break;case or:a.scale(1,-1),a.translate(0,-z);break;case Wr:a.scale(-1,-1),a.translate(-b,-z)}}},Be.Oj=function(a,y,x,E,b,z,ee,re,oe,se,ce){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 xe=a;y.beginPath(),y.lineWidth=xe,y.moveTo(oe,se),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof va&&y.ad.classList.add("gojs-td")}ce&&(ce=E+z-z/2.2|0,a%2!==0&&(ce+=.5),E=x+ge,z=ce,x=x+ge+ee,ee=ce,ge=a,y.beginPath(),y.lineWidth=ge,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof va&&y.ad.classList.add("gojs-td"))}},Be.kk=function(a,y,x){if(!wt.prototype.kk.call(this,a,y,x))return!1;if(gs(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:wt.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,oh(re)),re=se+1}z=ee}else ee=z.indexOf(`
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=oh(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);oh(se)>y&&1<se.length;)se=se.substr(0,se.length-1);se+=sm,y=oh(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),Ss(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){Ml(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=oh(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=oh(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=oh(se);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);oh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=sm;var ce=oh(z);a.Cb=ce,rm(a,z,ce),E!==null&&E.h(ce,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);oh(y)>x;){var ge=1;for(se=oh(y.substr(0,ge)),ce=0;se<=x;)ge++,ce=se,se=oh(y.substr(0,ge));if(ge===1){var xe=se;z=Math.max(z,se)}else xe=ce,z=Math.max(z,ce);if(ge--,1>ge&&(ge=1),rm(a,y.substr(0,ge),xe),oe++,y=y.substr(ge),a.Gc+oe>a.maxLines)break}for(ce=Pp(a,ee),se=oh(y+ce);0<ce.length&&se<=x;)y+=ce,ee=ee.substr(ce.length),ce=Pp(a,ee),se=y+ce,b&&(se=se.trim()),se=oh(se);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ce.length===0?(ge=se,z=Math.max(z,se)):(ge=ce=oh(y),z=Math.max(z,ce)),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 oh(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=gi.alloc();Yv(a,z,y,oe),b+=oe.height,gi.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}zt.Object.defineProperties(os.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"||(Hh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Nn},set:function(a){var y=this.flip;y!==a&&(Hh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:wd},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Hh(this),this.da.Yr=a,Wu(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=gi.alloc();Yv(this,this.ec,999999,a);var y=a.width;gi.free(a),a=k1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ss(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&&(Hh(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&&(Hh(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&&rg(a,"TextBlock.stroke"),a instanceof $o&&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&&(Hh(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&&(Hh(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 cf),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 cf),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 cf),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 cf),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 cf),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&&(Hh(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&&(Hh(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&&(Hh(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&&(Hh(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&&(Hh(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&&En(a,"> 0",os,"maxLines"),Hh(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 on(os,"None",0),N1=new on(os,"WrapFit",1),Jv=new on(os,"WrapDesiredSize",2),T1=new on(os,"WrapBreakAll",3),Qv=new on(os,"OverflowClip",0),m0=new on(os,"OverflowEllipsis",1),am=new on(os,"FormatTrim",0),O1=new on(os,"FormatNone",0),Lx=/[ \u200b\u00ad]/,qv=new Jt,I1=0,v0=new Jt,$v=0,sm="...",R1="",Rc=null,y0=!1;os.className="TextBlock";function ey(){this.nc=!1,this.Hd=null,this.Xf=Nn,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=wd,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},os.getEllipsis=function(){return sm},os.setEllipsis=function(a){sm=a,v0=new Jt,$v=0},os.getBaseline=function(){return g0},os.setBaseline=function(a){g0=a},os.getUnderline=function(){return p0},os.setUnderline=function(a){p0=a},os.isValidFont=function(a){if(y0||(Rc=Aa?new zu(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},os.FormatNone=O1,os.FormatTrim=am,os.None=Xv,os.OverflowClip=Qv,os.OverflowEllipsis=m0,os.WrapBreakAll=T1,os.WrapDesiredSize=Jv,os.WrapFit=N1;function cf(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}cf.prototype.copy=function(){var a=new cf;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},cf.className="GradElementSettings";function Wc(a,y){wt.call(this),this.Eg=null,this.qo="",this.Xg=Su,this.Nk=Kn,this.Zg=this.Hd=null,this.Mk=Dr,this.Xf=Nn,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;_t(Wc,wt),Wc.prototype.cloneProtected=function(a){wt.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===Nn||a===Zi||a===Ji?this.imageStretch=a:wt.prototype.qb.call(this,a)},Wc.prototype.toString=function(){return"Picture("+this.source+")#"+fr(this)};function Cp(a){a===void 0&&(a=""),a!==""?wp[a]&&(delete wp[a],S0--):(wp=new Jt,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()||(qe(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=Ri();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);ai(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 Eh)){var b=a instanceof va;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,ce=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ge=oe,xe=re,we=this.Nk,Fe=this.Mk;switch(we){case Nn:if(this.sourceRect.w())break;ge>=E.width&&(z=z+Fe.offsetX+(ge*Fe.x-E.width*Fe.x)),xe>=E.height&&(ee=ee+Fe.offsetY+(xe*Fe.y-E.height*Fe.y)),oe=Math.min(E.width,ge),re=Math.min(E.height,xe);break;case Kn:ge=E.width,xe=E.height;break;case Zi:case Ji:we===Zi?(we=Math.min(E.height/xe,E.width/ge),ge*=we,xe*=we):we===Ji&&(we=Math.max(E.height/xe,E.width/ge),ge*=we,xe*=we,ge>=E.width&&(z=(z+Fe.offsetX+(ge*Fe.x-E.width*Fe.x)/ge)*oe),xe>=E.height&&(ee=(ee+Fe.offsetY+(xe*Fe.y-E.height*Fe.y)/xe)*re),oe*=1/(ge/E.width),re*=1/(xe/E.height),ge=E.width,xe=E.height)}we=this.Df()*y.scale;var Ne=ge*we*xe*we,Qe=oe*re/Ne,Ve=x.__goCache;we=null;var rt=Mx;if(!b){if(x.sq&&Ve!==void 0&&4<Ne&&Qe>rt*rt)for(Ve.gi===null&&(z1(Ve,4,se,ce,x),z1(Ve,16,se,ce,x)),b=Ve.gi,se=b.length,ce=0;ce<se&&b[ce].ratio*b[ce].ratio<Qe;ce++)we=b[ce];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new zu(null).context;try{b.drawImage(this.Eg,0,0)}catch(at){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(at){this.vl=!0}}if(this.vl)return}}switch(b=ge<E.width?Fe.offsetX+(E.width*Fe.x-ge*Fe.x):0,Fe=xe<E.height?Fe.offsetY+(E.height*Fe.y-xe*Fe.y):0,this.flip){case vr:a.translate(Math.min(E.width,ge),0),a.scale(-1,1);break;case or:a.translate(0,Math.min(E.height,xe)),a.scale(1,-1);break;case Wr:a.translate(Math.min(E.width,ge),Math.min(E.height,xe)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ve!==void 0&&we!==null&&we.ratio!==1){a.save(),y=we.ratio;try{a.drawImage(we.source,z/y,ee/y,Math.min(we.source.width,oe/y),Math.min(we.source.height,re/y),b,Fe,Math.min(E.width,ge),Math.min(E.height,xe)),a instanceof va&&(this.bt=[z/y,ee/y,Math.min(we.source.width,oe/y),Math.min(we.source.height,re/y),b,Fe,Math.min(E.width,ge),Math.min(E.height,xe)])}catch(at){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,xe)),a instanceof va&&(this.bt=[z,ee,oe,re,b,Fe,Math.min(E.width,ge),Math.min(E.height,xe)])}catch(at){this.en=!1}switch(this.flip){case vr:a.scale(-1,1),a.translate(-Math.min(E.width,ge),0);break;case or:a.scale(1,-1),a.translate(0,-Math.min(E.height,xe));break;case Wr:a.scale(-1,-1),a.translate(-Math.min(E.width,ge),-Math.min(E.height,xe))}}}}},Wc.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=Zu(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===Kn||z===Xi?(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===Kn||z===Rt?(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)),Ss(this.dc,a,y),this.Ge(0,0,a,y)},Wc.prototype.eh=function(a,y,x,E){Ml(this,a,y,x,E)},zt.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||Pt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&La(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new In),E!==null&&x&&Kl(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()||(qe(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(Aa){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<S0&&(Cp(),x=wp),E=Br("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 Jt,Wc.clearCache=Cp;function j1(){this.gi=null}function z1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new zu(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 si,this.mc=null}Ap.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new si,this.mc=null};function Fp(a,y,x,E,b,z){a.mc=new el,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(tl);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(Oa);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Rf(a,y,x,E,b,z,ee){var re;re===void 0&&(re=!1);var oe=new Zo(ml);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(We);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(Ze);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($e,ee,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function _1(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 nc(a,y){var x=a.toLowerCase(),E=Dt.Ze;E[a]=y,E[x]=a}nc("Rectangle",function(a,y,x){a="r"+y+","+x;var E=Dt.Mf[a];return E!==void 0||(E=new si(si.u),E.endX=y,E.endY=x,Dt.Nf<Dt.vm&&(Dt.Mf[a]=E,Dt.Nf++)),E}),nc("Square",function(a,y,x){a="s"+y+","+x;var E=Dt.Mf[a];return E!==void 0||(E=new si(si.u),E.endX=y,E.endY=x,E.defaultStretch=Zi,Dt.Nf<Dt.vm&&(Dt.Mf[a]=E,Dt.Nf++)),E}),nc("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=Dt.Mf[E];if(b!==void 0)return b;var z=a*Dt.wg;return b=new si().add(new el(a,0,!0).add(new Zo(Oa,y-a,0)).add(new Zo(ml,y,a,y-z,0,y,z)).add(new Zo(Oa,y,x-a)).add(new Zo(ml,y-a,x,y,x-z,y-z,x)).add(new Zo(Oa,a,x)).add(new Zo(ml,0,x-a,z,x,0,x-z)).add(new Zo(Oa,0,a)).add(new Zo(ml,a,0,0,z,z,0).close())),1<z&&(b.spot1=new ir(0,0,z,z),b.spot2=new ir(1,1,-z,-z)),Dt.Nf<Dt.vm&&(Dt.Mf[E]=b,Dt.Nf++),b}),nc("Border","RoundedRectangle"),nc("Ellipse",function(a,y,x){a="e"+y+","+x;var E=Dt.Mf[a];return E!==void 0||(E=new si(si.F),E.endX=y,E.endY=x,E.spot1=Oh,E.spot2=Qd,Dt.Nf<Dt.vm&&(Dt.Mf[a]=E,Dt.Nf++)),E}),nc("Circle",function(a,y,x){a="c"+y+","+x;var E=Dt.Mf[a];return E!==void 0||(E=new si(si.F),E.endX=y,E.endY=x,E.spot1=Oh,E.spot2=Qd,E.defaultStretch=Zi,Dt.Nf<Dt.vm&&(Dt.Mf[a]=E,Dt.Nf++)),E}),nc("TriangleRight",function(a,y,x){return new si().add(new el(0,0).add(new Zo(Oa,y,.5*x)).add(new Zo(Oa,0,x).close())).pm(0,.25,.5,.75)}),nc("TriangleDown",function(a,y,x){return new si().add(new el(0,0).add(new Zo(Oa,y,0)).add(new Zo(Oa,.5*y,x).close())).pm(.25,0,.75,.5)}),nc("TriangleLeft",function(a,y,x){return new si().add(new el(y,x).add(new Zo(Oa,0,.5*x)).add(new Zo(Oa,y,0).close())).pm(.5,.25,1,.75)}),nc("TriangleUp",function(a,y,x){return new si().add(new el(y,x).add(new Zo(Oa,0,x)).add(new Zo(Oa,.5*y,0).close())).pm(.25,.5,.75,1)}),nc("Triangle","TriangleUp"),nc("Diamond",function(a,y,x){return new si().add(new el(.5*y,0).add(new Zo(Oa,0,.5*x)).add(new Zo(Oa,.5*y,x)).add(new Zo(Oa,y,.5*x).close())).pm(.25,.25,.75,.75)}),nc("LineH",function(a,y,x){return a=new si(si.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),nc("LineV",function(a,y,x){return a=new si(si.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),nc("None","Rectangle"),nc("BarH","Rectangle"),nc("BarV","Rectangle"),nc("MinusLine","LineH"),nc("PlusLine",function(a,y,x){return new si().add(new el(0,x/2,!1).add(new Zo(Oa,y,x/2)).add(new Zo(tl,y/2,0)).add(new Zo(Oa,y/2,x)))}),nc("XLine",function(a,y,x){return new si().add(new el(0,x,!1).add(new Zo(Oa,y,0)).add(new Zo(tl,0,0)).add(new Zo(Oa,y,x)))}),nc("LineRight",function(a,y,x){return new si().add(new el(.25*y,0,!1).add(new Zo(Oa,.75*y,.5*x)).add(new Zo(Oa,.25*y,x)))}),nc("LineDown",function(a,y,x){return new si().add(new el(0,.25*x,!1).add(new Zo(Oa,.5*y,.75*x)).add(new Zo(Oa,y,.25*x)))}),nc("LineLeft",function(a,y,x){return new si().add(new el(.75*y,0,!1).add(new Zo(Oa,.25*y,.5*x)).add(new Zo(Oa,.75*y,x)))}),nc("LineUp",function(a,y,x){return new si().add(new el(0,.75*x,!1).add(new Zo(Oa,.5*y,.25*x)).add(new Zo(Oa,y,.75*x)))}),Dt.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=Ls,this.ir=null,this.jr="",this.lr=Ul,this.Gq="",this.Hq=bl,this.Pq=no,this.Kq=rr,this.Up=null,this.Cq=127,this.zr=qi,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 ar(a,y){a===void 0||a instanceof Ql||typeof a=="string"?ei.call(this,a):(ei.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 Ge(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new tn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}_t(ar,ei),ar.prototype.cloneProtected=function(a){ei.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=ar.prototype,Be.Af=function(a){ei.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Be.toString=function(){var a=Ti(this.constructor)+"#"+fr(this);return this.data!==null&&(a+="("+Jr(this.data)+")"),a};function jc(a){a.P===null?a.P=new ty:a.P.nc&&(a.P=a.P.copy())}Be.th=function(){ei.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===ni&&y==="elements"?b instanceof ei?Mg(b,function(oe){By(re.partManager,oe),sl(re,oe)}):Kl(re,b):a===yi&&y==="elements"&&(b instanceof ei?Mg(b,function(oe){Dy(re.partManager,oe,re)}):La(re,b)),re.cb(a,y,x,E,b,z,ee))},Be.La=function(a){if(ei.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 ei&&Mg(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ar.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ar.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ar.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 hi),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)))}}},ar.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)}},ar.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Ri();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);ai(y)}},ar.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 _r?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof ta))break e;Ud(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ei.Link),x.adornedObject=y)}if(x!==null){x.type===ei.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Tx(this,a),y=this.adornments;y.next();)y.value.La()}},ar.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(sg(a)===!1){ry(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function G1(a){if(a.G|=2097152,sg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||H1(a,y,x),x=a.Ib;var E=tn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),tn.free(E),ry(a,!1)}}ar.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)},ar.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Dr;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Ge.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),Ge.free(ee)}},ar.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ar.prototype.moveTo=function(a,y,x){a=Ge.allocAt(a,y),this.move(a,x),Ge.free(a)},ar.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())},ar.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())},ar.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new hi),y.I(a)!==null)return y.I(a);var x=ei.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Wf(a,y,x,E){E===void 0&&(E=new Ge),x=x.Mc()?Dr: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}ar.prototype.mi=function(a){return a===void 0&&(a=new tn),a.assign(this.actualBounds)},ar.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function U1(a){var y=Ge.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof io?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}ar.prototype.arrange=function(){if(ct(this)===!1)G1(this);else{St(this,!1);var a=this.Ib,y=tn.alloc();y.assign(a);var x=lg(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;H1(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()||Dt.B(y.width,a.width)&&Dt.B(y.height,a.height)||0<=this.vw&&this.C(16),tn.free(y),ry(this,!1)}},Be=ar.prototype,Be.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=tn.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),tn.free(b)}!(this.G&65536)&&a.D(y)||X1(this,E,x),x.N(),!a.w()&&!y.w()||Vl(a,y)||(this instanceof Ai&&!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 Ge(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),sg(this)===!1&&ct(this)===!1&&(P0(this),G1(this)),!0};function Z1(a,y,x,E,b){y===null||a instanceof ta||(y=y.animationManager,y.zb&&ac(y,a,new Ge(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;sg(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 H1(a,y,x){var E=U1(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,Ge.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 ta||ac(x,a,new Ge(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new Ge(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 Ai&&Xl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?lg(a)?(Nl(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,Yn('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Yn(" Old class: "+Ti(a.constructor)+", new class: "+Ti(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 Ai&&(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 Ai&&(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)}ar.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},ar.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},ar.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},ar.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},ar.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},ar.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},ar.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},ar.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},ar.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 sg(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 lg(a){return(a.G&131072)!==0}Be=ar.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)&&!sg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Tg(this,this.Ib))},Be.v=function(){ei.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Ai&&this.labeledLink!==null&&Wu(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 Ai&&(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 Ai&&(x=y.labeledLink,x!==null)?J1(a,x):y}Be.Td=function(a){return a instanceof _r?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 Ai&&(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 _r&&w0(y,!0),y instanceof Ai){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 Ai&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof _r&&w0(y,!1),y instanceof Ai&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ar.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Ai&&this.isLinkLabel)},ar.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 Ai&&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 ug(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof ta)){if(a.add(y),y instanceof Ai){if(x&&y instanceof _r)for(var ee=y.memberParts;ee.next();)ug(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)&&ug(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)ug(a,y.value,x,E-1,b,z)}else if(y instanceof oi)for(y=y.labelNodes;y.next();)ug(a,y.value,x,E,b,z)}}zt.Object.defineProperties(ar.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?sr: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(yi,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(ni,"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&&jh(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 ta?this.type!==ei.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:no},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:bl},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 ta)){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 ta?this instanceof ta&&(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&&(Ud(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&&(Ud(x),x=x.copy(),x===null||x instanceof oi||(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 oi?(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:Ls},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:Ul},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&&Pt("Cannot make a Group a member of itself: "+this.toString()),Pt("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 _r&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?dy(a,this):this instanceof _r&&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 _r){for(x=new In,ug(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Ai)for(E=E.linksConnected;E.next();)bp(E.value)}if(this instanceof Ai){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&&jh(y,-1,a))}}else Pt("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 Ai&&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:qi},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))}}}),ar.prototype.invalidateLayout=ar.prototype.C,ar.prototype.findCommonContainingGroup=ar.prototype.px,ar.prototype.isMemberOf=ar.prototype.Td,ar.prototype.findTopLevelPart=ar.prototype.sz,ar.prototype.findSubGraphLevel=ar.prototype.oz,ar.prototype.ensureBounds=ar.prototype.Va,ar.prototype.getDocumentBounds=ar.prototype.mi,ar.prototype.findObject=ar.prototype.fb,ar.prototype.moveTo=ar.prototype.moveTo,ar.prototype.invalidateAdornments=ar.prototype.Wb,ar.prototype.clearAdornments=ar.prototype.Ej,ar.prototype.removeAdornment=ar.prototype.Jf,ar.prototype.addAdornment=ar.prototype.bh,ar.prototype.findAdornment=ar.prototype.Pj,ar.prototype.updateTargetBindings=ar.prototype.La;var q1=!1;ar.className="Part",ar.LayoutNone=0,ar.LayoutAdded=1,ar.LayoutRemoved=2,ar.LayoutShown=4,ar.LayoutHidden=8,ar.LayoutNodeSized=16,ar.LayoutGroupLayout=32,ar.LayoutNodeReplaced=64,ar.LayoutStandard=127,ar.LayoutAll=16777215;function ta(a,y){a===void 0||a instanceof Ql||typeof a=="string"?ar.call(this,a):(ar.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)}_t(ta,ar),ta.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ta.prototype.updateRelationshipsFromData=function(){},ta.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof oi&&y instanceof io){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 io&&(b.ua=a)}}},ta.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ct(a))},ta.prototype.Zc=function(){return!1},ta.prototype.gk=function(a,y,x,E,b,z,ee){if(a===ni&&y==="elements"){if(b instanceof xc)this.$a===null&&(this.$a=b);else if(b instanceof ei){var re=b.Nl(function(oe){return oe instanceof xc});re instanceof xc&&this.$a===null&&(this.$a=re)}}else a===yi&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ei&&this.$a.rg(E)&&(this.$a=null));ar.prototype.gk.call(this,a,y,x,E,b,z,ee)},ta.prototype.updateAdornments=function(){},ta.prototype.Lj=function(){},zt.Object.defineProperties(ta.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}}}),ta.className="Adornment";function ly(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Od,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 Ai(a,y){a===void 0||a instanceof Ql||typeof a=="string"?ar.call(this,a):(ar.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new an,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}_t(Ai,ar),Ai.prototype.cloneProtected=function(a){ar.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Be=Ai.prototype,Be.Af=function(a){ar.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function jf(a){a.Ba===null?a.Ba=new ly:a.Ba.nc&&(a.Ba=a.Ba.copy())}Be.th=function(){ar.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function $1(a,y){y!==null&&(a.af===null&&(a.af=new In),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===ni&&y==="elements"?this.wc=null:a===yi&&y==="elements"&&(this.wc=null),ar.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)||(rd(x.fromPort),rd(x.toPort),x.bb())}};function tS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(rd(x.fromPort),rd(x.toPort),x.bb())}}function rd(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||rd(y.port)}}Be.si=function(){return!0},Ai.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Ai.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Ai.prototype.isVisible=function(){if(!ar.prototype.isVisible.call(this))return!1;var a=!0,y=ih,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===ih){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Js){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===zh&&(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},Ai.prototype.Zb=function(a){ar.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)}},Ai.prototype.qx=function(){var a=new In,y=new In;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)})}}Ai.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ci(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Be=Ai.prototype,Be.Mo=function(a){a===void 0&&(a=null);var y=new Ci(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 Ci(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 In,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 In,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new li(x):sr},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 In,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new li(x):sr},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 In,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new li(x):sr},Be.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ci(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 Ci(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){rd(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){rd(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}}}Ai.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Be=Ai.prototype,Be.Vo=function(a){ar.prototype.Vo.call(this,a),a||(lm(this),a=this.Yk,a!==null&&dS(a,this))},Be.Wo=function(a){ar.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,ar.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 hi: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=Ri()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);ai(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 Ai)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 In;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 Ci(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 an,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 an,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new li(x):sr},Be.wz=function(a){a===void 0&&(a=1/0);var y=new In;return ug(y,this,!1,a,!0),y},Ai.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 In;x.add(this),aS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===ih),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 ce=y.contains(se);if(ce||y.add(se),ee){var ge=x?se.Oo():se.Po();oe.uv=a,ge.all(function(xe){return function(we){return we===xe.uv||!we.isTreeExpanded}}(oe))&&E.Aj(se,b),se.oh(),se.Zb(!1)}se.isTreeExpanded&&(se.wasTreeExpanded=se.isTreeExpanded,ce||sS(se,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}Ai.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 In;x.add(this),lS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===ih),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 ce=oe.value;if(ce.isTreeLink&&(re||ce.fd||ce.bb(),ce=ce.To(a),ce!==null&&ce!==a&&!y.contains(ce))){if(y.add(ce),!re){ce.Zb(!0),ce.oh();var ge=x?ce.Oo():ce.Po();se.vv=a,ge.all(function(xe){return function(we){return we===xe.vv||!we.isTreeExpanded}}(se))&&b.Cj(ce,z)}(2<E||ce.wasTreeExpanded)&&(ce.wasTreeExpanded=!1,lS(ce,y,x,E-1,b,z,ee))}se={vv:se.vv}}a.isTreeExpanded=!0}zt.Object.defineProperties(Ai.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:F0},set:function(a){var y=this.portSpreading;y!==a&&(jf(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&&Xl(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Od},set:function(a){typeof a=="number"&&(a=new oo(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),jf(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Xl(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&&(jf(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&&(jf(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&&(jf(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),Wu(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&&(jf(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))}}}),Ai.prototype.expandTree=Ai.prototype.expandTree,Ai.prototype.collapseTree=Ai.prototype.collapseTree,Ai.prototype.findTreeParts=Ai.prototype.wz,Ai.prototype.findTreeChildrenNodes=Ai.prototype.Ou,Ai.prototype.findTreeChildrenLinks=Ai.prototype.Qo,Ai.prototype.findTreeLevel=Ai.prototype.uz,Ai.prototype.findTreeParentChain=Ai.prototype.vz,Ai.prototype.findTreeParentNode=Ai.prototype.pg,Ai.prototype.findTreeParentLink=Ai.prototype.kh,Ai.prototype.findCommonTreeParent=Ai.prototype.gz,Ai.prototype.findTreeRoot=Ai.prototype.xz,Ai.prototype.isInTreeOf=Ai.prototype.Nz,Ai.prototype.findPort=Ai.prototype.ns,Ai.prototype.findLinksTo=Ai.prototype.kz,Ai.prototype.findLinksBetween=Ai.prototype.jz,Ai.prototype.findNodesInto=Ai.prototype.Oo,Ai.prototype.findNodesOutOf=Ai.prototype.Po,Ai.prototype.findNodesConnected=Ai.prototype.Mu,Ai.prototype.findLinksInto=Ai.prototype.Sd,Ai.prototype.findLinksOutOf=Ai.prototype.Mo,Ai.prototype.findExternalTreeLinksConnected=Ai.prototype.qx,Ai.prototype.invalidateConnectedLinks=Ai.prototype.Bd,Ai.prototype.invalidateLinkBundle=Ai.prototype.Lz;var Ox=new on(Ai,"SpreadingNone",10),F0=new on(Ai,"SpreadingEvenly",11),cy=new on(Ai,"SpreadingPacked",12);Ai.className="Node",Ai.SpreadingNone=Ox,Ai.SpreadingEvenly=F0,Ai.SpreadingPacked=cy;function _r(a,y){a===void 0||a instanceof Ql||typeof a=="string"?Ai.call(this,a):(Ai.call(this),a&&(y=a)),this.U|=4608,this.Gn=new In,this.$a=null,this.Sc=new Cs,this.Sc.group=this,this.gl=new In,this.tb=this.$p=null,y&&Object.assign(this,y)}_t(_r,Ai),_r.prototype.cloneProtected=function(a){Ai.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof xc});y instanceof xc?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=_r.prototype,Be.Af=function(a){Ai.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 Ai)x.Bd(y);else if(x instanceof oi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Be.gk=function(a,y,x,E,b,z,ee){if(a===ni&&y==="elements"){if(b instanceof xc)this.$a===null?this.$a=b:this.$a!==b&&Pt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ei){var re=b.Nl(function(oe){return oe instanceof xc});re instanceof xc&&(this.$a===null?this.$a=re:this.$a!==re&&Pt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===yi&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ei&&this.$a.rg(E)&&(this.$a=null));Ai.prototype.gk.call(this,a,y,x,E,b,z,ee)},Be.Xl=function(a,y){Ai.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ei.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ei&&(a=a.Pb()),this.tb===null&&(this.tb=new tn),a.mi(this.tb),a instanceof io&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Be.eh=function(a,y,x,E){this.nf=this.$a,Ai.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 oi||y.Va()}),Ai.prototype.Va.call(this)},Be.si=function(){if(!Ai.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Ai){if(y.isVisible()&&ct(y))return!1}else if(y instanceof oi&&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 _r&&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 oi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function hy(a,y){if(a.Gn.remove(y)){y instanceof _r&&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 oi&&!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)}Ai.prototype.Lj.call(this)},_r.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=$t(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},_r.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=$t(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},_r.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=_r.prototype,Be.Bd=function(a){var y=(this.U&65536)!==0;if(Ai.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()?(rd(x.fromPort),rd(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(rd(x.fromPort),rd(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 In,E=y.iterator;E.next();){var b=E.value;if(b instanceof Ai)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 In,x=a.iterator;x.next();){var E=x.value;if(E instanceof Ai)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 In;return a(this,y),y},Be.Rj=function(){var a=new In;return ug(a,this,!0,0,!0),a.remove(this),a},Be.Zb=function(a){Ai.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},_r.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 _r&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,uS(z,y,x,E)),z instanceof Ai)z.Bd(y),x.Aj(z,E);else if(z instanceof oi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}_r.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 _r&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,cS(z,y,x,E)),z instanceof Ai)z.Bd(y),x.Cj(z,E);else if(z instanceof oi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}_r.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=Ge.alloc(),Ai.prototype.move.call(this,a,y),a=new In,y=this.Rj().iterator;y.next();)b=y.value,b instanceof oi&&(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 Ai&&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 oi&&(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());Ge.free(z)}},zt.Object.defineProperties(_r.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&&Pt("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&&(jf(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&&(jf(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&&(jf(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&&(jf(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)}}}),_r.prototype.expandSubGraph=_r.prototype.expandSubGraph,_r.prototype.collapseSubGraph=_r.prototype.collapseSubGraph,_r.prototype.findSubGraphParts=_r.prototype.Rj,_r.prototype.findContainingGroupChain=_r.prototype.hz,_r.prototype.findExternalNodesConnected=_r.prototype.iz,_r.prototype.findExternalLinksConnected=_r.prototype.Lu,_r.prototype.ensureBounds=_r.prototype.Va,_r.className="Group";function xc(a){wt.call(this),this.yb=Bc,this.ko=new tn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}_t(xc,wt),xc.prototype.cloneProtected=function(a){wt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},xc.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return gl(0,0,y.width,y.height,a.x,a.y)},xc.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof _r||a instanceof ta)||Pt("Placeholder is not inside a Group or Adornment."),a instanceof _r){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Ss(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=Ge.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ge.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 io&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,se=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==ei.Link&&(re=z.ga(a.category==="Selection"?bl:a.locationSpot,Ge.alloc()),a.location=re,Ge.free(re)),isNaN(se)||isNaN(ee)?(a=z.ga(bl,Ge.alloc()),se=tn.allocAt(a.x,a.y,0,0),se.Ye(z.ga(hu,a)),se.Ye(z.ga(ao,a)),se.Ye(z.ga(ku,a)),Ss(y,se.width+E||0,se.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Ge.free(a),tn.free(se)):(Ss(y,se+E||0,ee+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},xc.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},xc.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof _r&&!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=tn.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof _r&&!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)),tn.free(x),E&&y instanceof _r&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},xc.prototype.computeMemberBounds=function(a){if(!(this.part instanceof _r))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 oi&&(!y.computesBoundsIncludingLinks||Xe(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},zt.Object.defineProperties(xc.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new oo(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),xc.className="Placeholder";function oi(a){ar.call(this,ei.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ec,this.Om=0,this.Qm=Ec,this.Rm=NaN,this.qj=vy,this.po=.5,this.wd=null,this.Nb=new an().freeze(),this.Tg=this.Mg=null,this.ml=new tn,this.ua=new si,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ge,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}_t(oi,ar),oi.prototype.cloneProtected=function(a){ar.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=oi.prototype,Be.Af=function(a){ar.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&&rd(y),a=a.toPort,a!==null&&rd(a)},Be.qb=function(a){a.classType===oi?(a.value&2)===2?this.routing=a:a===vd||a===Vf||a===Dp?this.curve=a:a===dm||a===k0||a===N0?this.adjusting=a:a!==vy&&a!==Ec&&Pt("Unknown Link enum value for a Link property: "+a):ar.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)||sg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ct(a)||sg(a)))},Be.zv=function(){return!1},Be.Av=function(){},Be.Zc=function(){return!1},oi.prototype.computeAngle=function(a,y,x){return oi.computeAngle(y,x)},oi.computeAngle=function(a,y){switch(a){default:case Ec: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=Dt.bp(y),90<a&&270>a&&(a-=180);break;case pm:a=Dt.bp(y+90),90<a&&270>a&&(a-=180);break;case mm:a=Dt.bp(y-90),90<a&&270>a&&(a-=180);break;case O0:if(a=Dt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Dt.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=oi.prototype,Be.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ar.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 In),a.wd.add(y),a.v()}Be.Vo=function(a){if(ar.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(ar.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))},oi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},oi.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?ar.prototype.move.call(this,a,!1):(a=Ge.allocAt(x.x+E,x.y+b),ar.prototype.move.call(this,a,!1),Ge.free(a)),zf(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},oi.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},oi.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},oi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Qi),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()===vd))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()===vd){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return Dt.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),Dt.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},oi.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()===vd))return this.ua.wx(.5);if(this.computeCurve()===vd&&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),Dt.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=oi.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 Ge(y,x))},Be.Kz=function(a,y){this.Nb.Gb(a,y)},Be.m=function(a,y,x){this.Nb.Gb(a,new Ge(y,x))},Be.ne=function(a){this.Nb.add(a)},Be.yf=function(a,y){this.Nb.add(new Ge(a,y))},Be.pv=function(a){this.Nb.mb(a)},Be.Fj=function(){this.Nb.clear()};function zf(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 an,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new Ge(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),Wu(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&&$d(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,ce=0;ce<se;ce++){var ge=oe[ce];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(ce=b[z],ge=oe[z],ce.x-x!==ge.x-ee||ce.y-E!==ge.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&$d(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()}}},oi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?($g||($g=new Ai,$g.desiredSize=ho,$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 Ai,ep.desiredSize=ho,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,ce=this.isOrthogonal,ge=this.curve===vd;this.Wf=se&&!ce?ge=!0:!1;var xe=this.computeAdjusting()===Ec||se;if(!ce&&!se&&re&&oe){if(re=!1,!xe&&3<=z&&(xe=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,xe,z-1,oe))&&(xe=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,xe,z-1,oe)),!re)if(this.Fj(),ge){z=this.getLinkPoint(a,y,ee,!0,!1,E,b),xe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=xe.x-z.x,oe=xe.y-z.y,se=this.computeCurviness(),ge=ce=0;var we=z.x+re/3,Fe=z.y+oe/3,Ne=we,Qe=Fe;Dt.B(oe,0)?Qe=0<re?Qe-se:Qe+se:(ce=-re/oe,ge=Math.sqrt(se*se/(ce*ce+1)),0>se&&(ge=-ge),Ne=(0>oe?-1:1)*ge+we,Qe=ce*(Ne-we)+Fe),we=z.x+2*re/3,Fe=z.y+2*oe/3;var Ve=we,rt=Fe;Dt.B(oe,0)?rt=0<re?rt-se:rt+se:(Ve=(0>oe?-1:1)*ge+we,rt=ce*(Ve-we)+Fe),this.Fj(),this.ne(z),this.yf(Ne,Qe),this.yf(Ve,rt),this.ne(xe),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,xe=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,xe),b=this.getLinkPoint(z,xe,x,!1,!1,a,y),this.hasCurviness()?(xe=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+xe/2,y=E.y+x/2,z=a,re=y,Dt.B(x,0)?re=0<xe?re-ee:re+ee:(xe=-xe/x,z=Math.sqrt(ee*ee/(xe*xe+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=xe*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=tn.alloc(),y.mi(re),oe=re.ca(b),xe.mi(re),se=re.ca(E),(oe||se)&&(ee=y.ga(D0(ee),new Ge),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=xe.ga(D0(x),new Ge),this.dd(1,this.getLinkPointFromPoint(z,xe,x,E,!1,x))),tn.free(re))}else{ge=this.isAvoiding,xe&&(ce&&ge||se)&&this.Fj();var at=se?this.computeCurviness():0;ge=this.getLinkPoint(a,y,ee,!0,ce,E,b),we=Ne=Fe=0,(ce||!re||se)&&(Qe=this.computeEndSegmentLength(a,y,ee,!0),we=this.getLinkDirection(a,y,ge,ee,!0,ce,E,b),se&&(re||ee.D(x)||!ce&&ee.x+x.x===1&&ee.y+x.y===1)&&(we-=ce?90:30,0>at&&(we-=180)),0>we?we+=360:360<=we&&(we-=360),se&&(Qe+=Math.abs(at)*(ce?1:2)),we===0?Fe=Qe:we===90?Ne=Qe:we===180?Fe=-Qe:we===270?Ne=-Qe:(Fe=Qe*Math.cos(we*Math.PI/180),Ne=Qe*Math.sin(we*Math.PI/180)),ee.Mc()&&se&&(Qe=y.ga(Dr,Ge.alloc()),Ve=Ge.allocAt(Qe.x+1e3*Fe,Qe.y+1e3*Ne),this.getLinkPointFromPoint(a,y,Qe,Ve,!0,ge),Ge.free(Qe),Ge.free(Ve))),Qe=this.getLinkPoint(E,b,x,!1,ce,a,y);var ft=rt=Ve=0;if(ce||!oe||se){var At=this.computeEndSegmentLength(E,b,x,!1);ft=this.getLinkDirection(E,b,Qe,x,!1,ce,a,y),se&&(oe||ee.D(x)||!ce&&ee.x+x.x===1&&ee.y+x.y===1)&&(ft+=ce?0:30,0>at&&(ft+=180)),0>ft?ft+=360:360<=ft&&(ft-=360),se&&(At+=Math.abs(at)*(ce?1:2)),ft===0?Ve=At:ft===90?rt=At:ft===180?Ve=-At:ft===270?rt=-At:(Ve=At*Math.cos(ft*Math.PI/180),rt=At*Math.sin(ft*Math.PI/180)),x.Mc()&&se&&(x=b.ga(Dr,Ge.alloc()),ee=Ge.allocAt(x.x+1e3*Ve,x.y+1e3*rt),this.getLinkPointFromPoint(E,b,x,ee,!1,Qe),Ge.free(x),Ge.free(ee))}x=ge,(ce||!re||se)&&(x=new Ge(ge.x+Fe,ge.y+Ne)),ee=Qe,(ce||!oe||se)&&(ee=new Ge(Qe.x+Ve,Qe.y+rt)),!xe&&!ce&&re&&3<z&&this.adjustPoints(0,ge,z-2,ee)?this.dd(z-1,Qe):!xe&&!ce&&oe&&3<z&&this.adjustPoints(1,x,z-1,Qe)?this.dd(0,ge):!xe&&(ce?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,ge),this.dd(z-1,Qe)):(this.Fj(),this.ne(ge),(ce||!re||se)&&this.ne(x),ce&&this.addOrthoPoints(x,we,ee,ft,a,E),(ce||!oe||se)&&this.ne(ee),this.ne(Qe))}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}oi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Ge),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,ce=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+ce,E=E.x*re+E.y*se+ge,ee=x.x*ee+x.y*oe+ce,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)}oi.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new Ge),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=Ge.alloc(),se=Ge.alloc();var ce=new tn(y.ga(bl,oe),y.ga(hu,se)),ge=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,ge,!E,b,a,y,se),(x.Hf(Ms)||x.Hf(Tl))&&a.y>=ce.y&&a.y<=ce.y+ce.height?re.y=a.y:(x.Hf(ic)||x.Hf(Gl))&&a.x>=ce.x&&a.x<=ce.x+ce.width&&(re.x=a.x),Ge.free(oe),Ge.free(se)}}return re}}return x=y.ga(D0(x),Ge.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=Ge.alloc(),ee=ee.ga(D0(oe),z),b&&(ee=fy(x,ee)),Ge.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),Ge.free(x),re},oi.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(Dr,Ge.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?fy(oe,re.copy()):x):(x=Ge.alloc(),re=re.ga(Dr,x),Ge.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,Ge.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},oi.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)},oi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Dr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Ul?il:y)):(a=y||this.toPort,a===null?a=Dr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Ul?il:y)),a};function Bp(a){return a===il||a.x===.5&&a.y===.5}function D0(a){return a.x===.5&&a.y===.5?a:Dr}oi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ec&&4<this.pointsCount?this.computeMidPoint(new Ge):(a=y.Zn,a=a!==null?SS(a,this):null,a!==null?a.Zo:y.ga(Dr))},oi.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},oi.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 ce=oe[se];if(ce.visible||ce===this.locationObject){var ge=ce.actualBounds,xe=this.naturalBounds;if(!(ge.x>xe.width||ge.y>xe.height||0>ge.x+ge.width||0>ge.y+ge.height)){if(ge=qr.alloc(),ge.set(ee),ce instanceof ei)re=ce.Cf(a,y,x,E,b,ge);else if(this.path===ce){if(ce instanceof io)if(re=a,xe=E,ce.pickable===!1)re=!1;else if(ge.multiply(ce.transform),xe)e:{var we=re,Fe=ge;if(ce.fh(we,Fe))re=!0;else{if(Fe===void 0&&(Fe=ce.transform,we.Re(ce.actualBounds))){re=!0;break e}re=we.left,xe=we.right;var Ne=we.top;we=we.bottom;var Qe=Ge.alloc(),Ve=Ge.alloc(),rt=Ge.alloc(),at=qr.alloc();at.set(Fe),at.bv(ce.transform),at.Vj(),Ve.x=xe,Ve.y=Ne,Ve.transform(at),Qe.x=re,Qe.y=Ne,Qe.transform(at),Fe=!1,Ng(ce,Qe,Ve,rt)?Fe=!0:(Qe.x=xe,Qe.y=we,Qe.transform(at),Ng(ce,Qe,Ve,rt)?Fe=!0:(Ve.x=re,Ve.y=we,Ve.transform(at),Ng(ce,Qe,Ve,rt)?Fe=!0:(Qe.x=re,Qe.y=Ne,Qe.transform(at),Ng(ce,Qe,Ve,rt)&&(Fe=!0)))),qr.free(at),Ge.free(Qe),Ge.free(Ve),Ge.free(rt),re=Fe}}else re=ce.fh(re,ge)}else re=ws(ce,a,E,ge);re&&(xe=ce,y!==null&&(xe=y(ce)),xe&&(x===null||x(xe))&&b.add(xe)),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},oi.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?vd:this.curve},oi.prototype.computeCorner=function(){if(this.curve===vd)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},oi.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},oi.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(Dr).ab(x.ga(Dr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===vd&&(a*=1.333)}}return a},oi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ec&&x.bb()}},oi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=gS;var y=this.Sf;if(y!==null){for(var x=Ri(),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),ai(x)}}return a},oi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},oi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},oi.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(!Dt.$(se,0)){if(Dt.$(re,0))var ce=0>oe?-Math.PI/2:Math.PI/2;else ce=Math.atan(oe/Math.abs(re)),0>re&&(ce=Math.PI-ce);ee=y.x;var ge=y.y;re=E.x-ee;var xe=E.y-ge;for(oe=Math.sqrt(re*re+xe*xe),Dt.$(re,0)?xe=0>xe?-Math.PI/2:Math.PI/2:(xe=Math.atan(xe/Math.abs(re)),0>re&&(xe=Math.PI-xe)),se=oe/se,ce=xe-ce,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),Dt.$(y,0)||(Dt.$(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+ce,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,ce=y.y,oe=E.x,xe=E.y;var we=1;if(oe-re!==0){var Fe=(xe-ce)/(oe-re);we=Math.sqrt(1+1/(Fe*Fe))}else Fe=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ne=y.x,Qe=y.y,Ve=.5;se!==0&&(Ve=((b-Ne)*(b-ee)+(z-Qe)*(z-ge))/se);var rt=b+Ve*(ee-b),at=z+Ve*(ge-z);y=Math.sqrt((Ne-rt)*(Ne-rt)+(Qe-at)*(Qe-at)),Qe<Fe*(Ne-rt)+at&&(y=-y),0<Fe&&(y=-y),Ne=re+Ve*(oe-re),Ve=ce+Ve*(xe-ce),Fe!==0?(y=Ne+y/we,this.L(a,y,Ve-(y-Ne)/Fe)):this.L(a,Ne,Ve+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,ce=z.y,ge=re,se=ce,Dt.B(b.y,z.y)?Dt.B(z.x,ee.x)?ce=y.y:Dt.B(z.y,ee.y)&&(re=y.x):Dt.B(b.x,z.x)&&(Dt.B(z.y,ee.y)?re=y.x:Dt.B(z.x,ee.x)&&(ce=y.y)),this.L(a+1,re,ce),b=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ce=z.y,oe=re,xe=ce,Dt.B(b.y,z.y)?Dt.B(z.x,ee.x)?ce=E.y:Dt.B(z.y,ee.y)&&(re=E.x):Dt.B(b.x,z.x)&&(Dt.B(z.y,ee.y)?re=E.x:Dt.B(z.x,ee.x)&&(ce=E.y)),this.L(x-1,re,ce),gy(this))){this.L(a+1,ge,se),this.L(x-1,oe,xe),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},oi.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=Ge.alloc(),ce=Ge.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),ce.h(x.x,(a.y+x.y)/2),E===180?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=se.x,ce.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,ce.x=se.x,ce.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),ce.y=se.y)):(se.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(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)),ce.x=x.x,ce.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),ce.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)),ce.x=x.x,ce.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),ce.h(x.x,(a.y+x.y)/2),E===0?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=se.x,ce.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,ce.x=se.x,ce.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),ce.y=se.y)):(se.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(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)),ce.x=x.x,ce.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),ce.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)),ce.x=x.x,ce.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),ce.h((a.x+x.x)/2,x.y),E===270?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.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,ce.x=x.x,ce.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,ce.x=se.x)):(se.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(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)),ce.x=se.x,ce.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)),ce.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)),ce.x=se.x,ce.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),ce.h((a.x+x.x)/2,x.y),E===90?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.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,ce.x=x.x,ce.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,ce.x=se.x)):(se.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(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)),ce.x=se.x,ce.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)),ce.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)),ce.x=se.x,ce.y=x.y)));var ge=x;if(this.isAvoiding){var xe=this.diagram;if(xe===null||b===z||this.layer.isTemporary||!qo(xe)||re.ca(ge)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var we=Ka(xe,!0,this.containingGroup,null);if(this.segmentIndex!==17&&we.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))&&we.Yj(Math.min(se.x,ce.x),Math.min(se.y,ce.y),Math.abs(se.x-ce.x),Math.abs(se.y-ce.y))&&we.Yj(Math.min(ce.x,ge.x),Math.min(ce.y,ge.y),Math.abs(ce.x-ge.x),Math.abs(ce.y-ge.y)))y=!1;else{b=a,z=ge;var Fe=x=null;if(xe.isVirtualized){xe=we.bounds.copy(),xe.Bc(-we.Ho,-we.Go);var Ne=Ge.alloc();Lp(we,a.x,a.y)||(Dt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,a.x,a.y,se.x,se.y,Ne)?(x=a=Ne.copy(),y=Ne.ab(se)):Dt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,se.x,se.y,ce.x,ce.y,Ne)?(x=a=Ne.copy(),y=Ne.ab(ce)):Dt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,ce.x,ce.y,ge.x,ge.y,Ne)&&(x=a=Ne.copy(),y=Ne.ab(ge))),Lp(we,ge.x,ge.y)||(Dt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,ge.x,ge.y,ce.x,ce.y,Ne)?(Fe=ge=Ne.copy(),E=ce.ab(Ne)):Dt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,ce.x,ce.y,se.x,se.y,Ne)?(Fe=ge=Ne.copy(),E=se.ab(Ne)):Dt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,se.x,se.y,a.x,a.y,Ne)&&(Fe=ge=Ne.copy(),E=a.ab(Ne))),Ge.free(Ne)}re=re.copy().ed(oe),re.Bc(we.Ho*we.Os,we.Go*we.Os),vS(we,a,y,ge,E,re,!0),oe=df(we,ge.x,ge.y),!we.abort&&oe>=Mp&&(mS(we),re.Bc(we.Ho*we.Hx,we.Go*we.Ix),vS(we,a,y,ge,E,re,!1),oe=df(we,ge.x,ge.y)),!we.abort&&oe<Mp&&df(we,ge.x,ge.y)!==Gf?(py(this,we,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?Dt.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)):Dt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=we.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Dt.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)):Dt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=we.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),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(ce.copy())),Ge.free(se),Ge.free(ce)}},oi.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||!qo(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ka(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=df(y,x,E),ce=x,ge=E;for(b===0?ce+=re:b===90?ge+=oe:b===180?ce-=re:ge-=oe,b!==ee&&se>Ig&&df(y,ce,ge)!==se-1&&(df(y,x-re,E)===se-1?(b=180,ce=x-re,ge=E):df(y,x+re,E)===se-1?(b=0,ce=x+re,ge=E):df(y,x,E-oe)===se-1?(b=270,ce=x,ge=E-oe):df(y,x,E+oe)===se-1&&(b=90,ce=x,ge=E+oe));se>Ig&&df(y,ce,ge)===se-1;)x=ce,E=ge,b===0?ce+=re:b===90?ge+=oe:b===180?ce-=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,ce=E,b===0?(z=90,ce+=oe):b===90?(z=180,ee-=re):b===180?(z=270,ce-=oe):b===270&&(z=0,ee+=re),df(y,ee,ce)===se-1?py(a,y,ee,ce,z,!1,z):(ee=x,ce=E,b===0?(z=270,ce-=oe):b===90?(z=0,ee+=re):b===180?(z=90,ce+=oe):b===270&&(z=180,ee-=re),df(y,ee,ce)===se-1&&py(a,y,ee,ce,z,!1,z))),a.yf(x,E)}oi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Ea(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=Ea(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},oi.prototype.qc=function(){this.lk=!1,this.v()},oi.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 io&&(b.ua=this.ua)}}},oi.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===vd&&3<=y&&!Dt.$(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=si.o,re=_1(a),this.computeShortLength(!0)!==0&&(b=Qg(this,b,!0,z)),Fp(re,b.x,b.y,!1),ee===vd&&3<=y&&!Dt.$(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)),Rf(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Ge.allocAt(E,oe),x=Ge.alloc(),x.assign(this.i(1)),z=Ge.allocAt(E,oe),b=Ge.allocAt(E,oe),ee=this.i(0);for(var se,ce=this.smoothness/3,ge=1;ge<this.pointsCount-1;ge++){se=this.i(ge);var xe=ee,we=se,Fe=this.i(my(this,se,ge,!1));if((!Dt.$(xe.x,we.x)||!Dt.$(we.x,Fe.x))&&(!Dt.$(xe.y,we.y)||!Dt.$(we.y,Fe.y))){var Ne=ce;isNaN(Ne)&&(Ne=this.smoothness/3);var Qe=xe.x;xe=xe.y;var Ve=we.x;we=we.y;var rt=Fe.x;Fe=Fe.y;var at=Ne*L0(Qe,xe,Ve,we);Ne*=L0(Ve,we,rt,Fe),Dt.$(xe,we)&&Dt.$(Ve,rt)&&(Ve>Qe?Fe>we?(z.x=Ve-at,z.y=we-at,b.x=Ve+Ne,b.y=we+Ne):(z.x=Ve-at,z.y=we+at,b.x=Ve+Ne,b.y=we-Ne):Fe>we?(z.x=Ve+at,z.y=we-at,b.x=Ve-Ne,b.y=we+Ne):(z.x=Ve+at,z.y=we+at,b.x=Ve-Ne,b.y=we-Ne)),Dt.$(Qe,Ve)&&Dt.$(we,Fe)&&(we>xe?(rt>Ve?(z.x=Ve-at,z.y=we-at,b.x=Ve+Ne):(z.x=Ve+at,z.y=we-at,b.x=Ve-Ne),b.y=we+Ne):(rt>Ve?(z.x=Ve-at,z.y=we+at,b.x=Ve+Ne):(z.x=Ve+at,z.y=we+at,b.x=Ve-Ne),b.y=we-Ne)),(Dt.$(Qe,Ve)&&Dt.$(Ve,rt)||Dt.$(xe,we)&&Dt.$(we,Fe))&&(Qe=.5*(Qe+rt),xe=.5*(xe+Fe),z.x=Qe,z.y=xe,b.x=Qe,b.y=xe),(ge===1||ge===2&&Dt.$(ee.x,this.i(0).x)&&Dt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+se.x),x.y=.5*(ee.y+se.y)),Rf(re,x.x-E,x.y-oe,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,ce=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ce=Qg(this,ce.copy(),!1,To)),se=.5*(se+ce.x),ee=.5*(ee+ce.y),Rf(re,b.x-E,b.y-oe,se-E,ee-oe,ce.x-E,ce.y-oe),Ge.free(y),Ge.free(x),Ge.free(z),Ge.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,To)),Rf(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=Ge.alloc(),z.assign(this.i(0)),b=Ge.alloc(),b.assign(z),ee=this.computeCorner(),ge=1,se=0;ge<y;){if(ge=my(this,z,ge,1<ge),ce=this.i(ge),ge>=y-1){if(!z.D(ce))this.computeShortLength(!1)!==0&&(ce=Qg(this,ce.copy(),!1,To)),qg(this,re,-E,-oe,z,ce,x);else if(se===0)for(ge=1;ge<y;)b.assign(z),ce=this.i(ge++),qg(this,re,-E,-oe,z,ce,x),z.assign(ce);break}if(se=my(this,ce,ge+1,ge<y-3),ge=-E,Qe=-oe,xe=ce,Ve=this.i(se),Ne=x,Dt.B(z.y,xe.y)&&Dt.B(xe.x,Ve.x))if(Fe=Math.min(ee,Math.abs(xe.x-b.x)/2),Fe=at=Math.min(Fe,Math.abs(Ve.y-xe.y)/2),Dt.B(Fe,0))qg(this,re,ge,Qe,z,xe,Ne),z.assign(xe);else{var ft=xe.x,At=xe.y;we=ft,rt=At,xe.x>z.x?ft=xe.x-Fe:ft=xe.x+Fe,Ve.y>xe.y?rt=xe.y+at:rt=xe.y-at,Ve=Ge.allocAt(ft,At),qg(this,re,ge,Qe,z,Ve,Ne),Ge.free(Ve),x0(re,xe.x+ge,xe.y+Qe,we+ge,rt+Qe),z.h(we,rt)}else Dt.B(z.x,xe.x)&&Dt.B(xe.y,Ve.y)?(Fe=Math.min(ee,Math.abs(xe.y-b.y)/2),Fe=at=Math.min(Fe,Math.abs(Ve.x-xe.x)/2),Dt.B(at,0)?(qg(this,re,ge,Qe,z,xe,Ne),z.assign(xe)):(ft=xe.x,At=xe.y,we=ft,rt=At,xe.y>z.y?At=xe.y-Fe:At=xe.y+Fe,Ve.x>xe.x?we=xe.x+at:we=xe.x-at,Ve=Ge.allocAt(ft,At),qg(this,re,ge,Qe,z,Ve,Ne),Ge.free(Ve),x0(re,xe.x+ge,xe.y+Qe,we+ge,rt+Qe),z.h(we,rt))):(qg(this,re,ge,Qe,z,xe,Ne),z.assign(xe));b.assign(ce),ge=se}Ge.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=si.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),Dt.$(a,0)?y:Dt.$(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;Dt.$(y.x,z.x)&&Dt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Dt.$(y.x,z.x)&&!Dt.$(y.y,z.y))return x-1;for(var ee=z;Dt.$(y.x,z.x)&&Dt.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Dt.$(y.y,z.y)&&Dt.$(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}oi.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(Dt.B(b.y,z.y))if(b.x<z.x)for(var ce=0;ce<se;){var ge=Math.max(b.x,Math.min(oe[ce++]-re,z.x-ee));y.lineTo(ge+x,z.y+E);for(var xe=ge+x,we=Math.min(ge+ee,z.x);ce<se&&(ge=oe[ce],ge<we+ee);)ce++,we=Math.min(ge+re,z.x);ge=z.y-ee+E,we+=x;var Fe=z.y+E;a.curve===Vf?Fp(y,we,Fe,!1):Rf(y,xe,ge,we,ge,we,Fe)}else for(--se;0<=se;){for(ce=Math.min(b.x,Math.max(oe[se--]+re,z.x+ee)),y.lineTo(ce+x,z.y+E),xe=ce+x,ge=Math.max(ce-ee,z.x);0<=se&&(ce=oe[se],ce>ge-ee);)se--,ge=Math.max(ce-re,z.x);ce=z.y-ee+E,ge+=x,we=z.y+E,a.curve===Vf?Fp(y,ge,we,!1):Rf(y,xe,ce,ge,ce,ge,we)}else if(Dt.B(b.x,z.x))if(b.y<z.y)for(ce=0;ce<se;){for(ge=Math.max(b.y,Math.min(oe[ce++]-re,z.y-ee)),y.lineTo(z.x+x,ge+E),xe=ge+E,ge=Math.min(ge+ee,z.y);ce<se&&(we=oe[ce],we<ge+ee);)ce++,ge=Math.min(we+re,z.y);we=z.x-ee+x,Fe=z.x+x,ge+=E,a.curve===Vf?Fp(y,Fe,ge,!1):Rf(y,we,xe,we,ge,Fe,ge)}else for(--se;0<=se;){for(ce=Math.min(b.y,Math.max(oe[se--]+re,z.y+ee)),y.lineTo(z.x+x,ce+E),xe=ce+E,ce=Math.max(ce-ee,z.y);0<=se&&(ge=oe[se],ge>ce-ee);)se--,ce=Math.max(ge-re,z.y);ge=z.x-ee+x,we=z.x+x,ce+=E,a.curve===Vf?Fp(y,we,ce,!1):Rf(y,ge,xe,ge,ce,we,ce)}}}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 oi){if(oe===a)return 0<E.length&&E.sort(function(ce,ge){return ce-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(ce,ge){return ce-ge}),E.length}function Rx(a,y,x,E){for(var b=Dt.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=Ge.alloc(),oe=1;oe<z;oe++){var se=E.i(oe);if(oe<z-1){var ce=E.i(oe+1);if(ee.y===se.y&&se.y===ce.y){if(se.x>ee.x&&ce.x>=se.x||se.x<ee.x&&ce.x<=se.x)continue}else if(ee.x===se.x&&se.x===ce.x&&(se.y>ee.y&&ce.y>=se.y||se.y<ee.y&&ce.y<=se.y))continue}e:{ce=a.x;var ge=a.y,xe=y.x,we=y.y,Fe=ee.x;ee=ee.y;var Ne=se.x,Qe=se.y;if(Dt.B(ce,xe)){if(!Dt.B(ge,we)&&Dt.B(ee,Qe)&&Math.min(ge,we)<ee&&Math.max(ge,we)>ee&&Math.min(Fe,Ne)<ce&&Math.max(Fe,Ne)>ce&&!Dt.B(Fe,Ne)){re.x=ce,re.y=ee,ce=!0;break e}}else if(Dt.B(ge,we)&&Dt.B(Fe,Ne)&&Math.min(ce,xe)<Fe&&Math.max(ce,xe)>Fe&&Math.min(ee,Qe)<ge&&Math.max(ee,Qe)>ge&&!Dt.B(ee,Qe)){re.x=Fe,re.y=ge,ce=!0;break e}re.x=0,re.y=0,ce=!1}ce&&(b?x.push(re.x):x.push(re.y)),ee=se}Ge.free(re)}function Og(a){return a=a.curve,a===Dp||a===Vf}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()))}oi.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 oi&&(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 oi&&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())}}oi.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},oi.prototype.isVisible=function(){if(!ar.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},oi.prototype.Zb=function(a){if(ar.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)},oi.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&&(Ii(y.links,a),y.Sl()))}oi.prototype.ph=function(){return!0},zt.Object.defineProperties(oi.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&&rd(x),cm(this),this.ff=a;var E=this.fromPort;E!==null&&rd(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&&rd(x),cm(this),this.vf=a;var E=this.toPort;E!==null&&rd(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:Ul},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&&rd(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&&En(a,">= 0",oi,"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:Ul},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&&rd(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&&En(a,">= 0",oi,"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?sr: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 io?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()===vd&&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),Dt.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);Dt.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 Ge)}},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);Dt.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):Dt.$(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 an,E=0;E<a.length/2;E++)b=new Ge(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(!Mt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new an,E=0;E<a.length;E++)b=a[E],x.add(new Ge(b.x,b.y).freeze())}}else if(a instanceof an)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Pt("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&&$d(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===Vf||y===Dp||a===Vf||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)}}}),oi.prototype.invalidateOtherJumpOvers=oi.prototype.Xo,oi.prototype.findClosestSegment=oi.prototype.ez,oi.prototype.updateRoute=oi.prototype.vg,oi.prototype.invalidateRoute=oi.prototype.bb,oi.prototype.rollbackRoute=oi.prototype.rv,oi.prototype.commitRoute=oi.prototype.zf,oi.prototype.startRoute=oi.prototype.uh,oi.prototype.clearPoints=oi.prototype.Fj,oi.prototype.removePoint=oi.prototype.pv,oi.prototype.addPointAt=oi.prototype.yf,oi.prototype.addPoint=oi.prototype.ne,oi.prototype.insertPointAt=oi.prototype.m,oi.prototype.insertPoint=oi.prototype.Kz,oi.prototype.setPointAt=oi.prototype.L,oi.prototype.setPoint=oi.prototype.dd,oi.prototype.getPoint=oi.prototype.i,oi.prototype.getOtherPort=oi.prototype.Cz,oi.prototype.getOtherNode=oi.prototype.To;var $g=null,ep=null,vy=new on(oi,"Normal",1),Wx=new on(oi,"Orthogonal",2),jx=new on(oi,"AvoidsNodes",6),fS=new on(oi,"AvoidsNodesStraight",7),Ec=new on(oi,"None",0),vd=new on(oi,"Bezier",9),Vf=new on(oi,"JumpGap",10),Dp=new on(oi,"JumpOver",11),dm=new on(oi,"End",17),k0=new on(oi,"Scale",18),N0=new on(oi,"Stretch",19),hm=new on(oi,"OrientAlong",21),fm=new on(oi,"OrientPlus90",22),gm=new on(oi,"OrientMinus90",23),yy=new on(oi,"OrientOpposite",24),T0=new on(oi,"OrientUpright",25),pm=new on(oi,"OrientPlus90Upright",26),mm=new on(oi,"OrientMinus90Upright",27),O0=new on(oi,"OrientUpright45",28),gS=16,pS=14,vm=8;oi.className="Link",oi.Normal=vy,oi.Orthogonal=Wx,oi.AvoidsNodes=jx,oi.AvoidsNodesStraight=fS,oi.None=Ec,oi.Bezier=vd,oi.JumpGap=Vf,oi.JumpOver=Dp,oi.End=dm,oi.Scale=k0,oi.Stretch=N0,oi.OrientAlong=hm,oi.OrientPlus90=fm,oi.OrientMinus90=gm,oi.OrientOpposite=yy,oi.OrientUpright=T0,oi.OrientPlus90Upright=pm,oi.OrientMinus90Upright=mm,oi.OrientUpright45=O0,oi.EndSegmentStep=8,oi.CurvinessStart=gS,oi.SpacingMin=pS,oi.OrthoShortCut=vm;function I0(a,y,x,E){Or(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){Or(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 df(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]===Gf)return!1}return!0};function hf(a,y,x,E,b,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var se=y|0,ce=x|0,ge=a.ac[se][ce];if(ge>=Ig&&ge<Mp)for(b?ce+=E:se+=E,ge+=1;z<=se&&se<=ee&&re<=ce&&ce<=oe&&!(ge>=a.ac[se][ce]);)a.ac[se][ce]=ge,ge+=1,b?ce+=E:se+=E;if(se=b?ce:se,b)if(0<E)for(x+=E;x<se;x+=E)hf(a,y,x,1,!b,z,ee,re,oe),hf(a,y,x,-1,!b,z,ee,re,oe);else for(x+=E;x>se;x+=E)hf(a,y,x,1,!b,z,ee,re,oe),hf(a,y,x,-1,!b,z,ee,re,oe);else if(0<E)for(y+=E;y<se;y+=E)hf(a,y,x,1,!b,z,ee,re,oe),hf(a,y,x,-1,!b,z,ee,re,oe);else for(y+=E;y>se;y+=E)hf(a,y,x,1,!b,z,ee,re,oe),hf(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=Gf,ce=Ig;for(a.ac[y][x]=ce;se===Gf&&y>z&&y<ee&&x>re&&x<oe;)ce+=1,a.ac[y][x]=ce,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=Gf,ce=Mp;for(a.ac[y][x]=ce;se===Gf&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ce,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,ce=E.y;if(Lp(a,se,ce))if(se-=a.Nd,se/=a.rc,ce-=a.Od,ce/=a.sc,1>=Math.abs(re-se)&&1>=Math.abs(oe-ce))a.abort=!0;else{var ge=z.x;E=z.y,y=z.x+z.width;var xe=z.y+z.height;ge-=a.Nd,ge/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,xe-=a.Od,xe/=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)),xe=Math.min(a.ei,Math.max(0,xe|0)),E=a.ac,re|=0,oe|=0,se|=0,ce|=0;var we=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Gf?(R0(a,re,oe,we,x,z,y,ge,xe),R0(a,re,oe,1,!x,z,y,ge,xe),R0(a,re,oe,-1,!x,z,y,ge,xe)):R0(a,re,oe,we,x,re,oe,re,oe),E[se][ce]===Gf?(W0(a,se,ce,b===0||b===90?1:-1,b===90||b===270,z,y,ge,xe),W0(a,se,ce,1,!(b===90||b===270),z,y,ge,xe),W0(a,se,ce,-1,!(b===90||b===270),z,y,ge,xe)):W0(a,se,ce,we,x,se,ce,se,ce),x=Ri(),ee&&yS(a,se,ce,b,re,oe,x))for((x[0]!==se||x[1]!==ce)&&(x.unshift(ce),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 hf(a,re,oe,1,!1,z,y,ge,xe),hf(a,re,oe,-1,!1,z,y,ge,xe),hf(a,re,oe,1,!0,z,y,ge,xe),hf(a,re,oe,-1,!0,z,y,ge,xe);ai(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 ce=oe,ge=se;if(E===0)if(ce<b)ce++;else break;else if(E===90)if(ge<z)ge++;else break;else if(E===180)if(ce>b)ce--;else break;else if(ge>z)ge--;else break;var xe=re[ce][ge];if(xe===0||xe===xy)break;oe=ce,se=ge}for(;;){if(ce=E,ge=oe,xe=se,E===0?xe<z?(ce=90,xe++):xe>z&&(ce=270,xe--):E===90?ge<b?(ce=0,ge++):ge>b&&(ce=180,ge--):E===180?xe<z?(ce=90,xe++):xe>z&&(ce=270,xe--):ge<b?(ce=0,ge++):ge>b&&(ce=180,ge--),ge=re[ge][xe],ce!==E&&ge!==0&&ge!==xy){if(ee.push(oe),ee.push(se),yS(a,oe,se,ce,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++}}}zt.Object.defineProperties(ym.prototype,{bounds:{get:function(){return new tn(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 Gf=0,Ig=1,Mp=999999,Sy=Mp+1,xy=Mp+2;ym.className="PositionArray";function tp(){Or(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 _r?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(bl,Ge.alloc()),oe=a.port.ga(hu,Ge.alloc());for(b=tn.allocAt(re.x,re.y,0,0),b.Ye(oe),Ge.free(re),Ge.free(oe),re=Ge.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 ce=se.fromPort===a.port||se.fromNode!==null&&se.fromNode.Td(E),ge=se.computeSpot(ce,a.port);if(ge.$c()&&(ce=ce?se.toPort:se.fromPort,ce!==null)){var xe=ce.part;if(xe!==null){var we=xe.findVisibleNode();we!==null&&we!==xe&&(xe=we,ce=xe.port),ce=se.computeOtherPoint(xe,ce),xe=re.ab(ce),xe-=oe,0>xe?xe+=360:360<=xe&&(xe-=360),ge=zx(b,ge,xe,se.isOrthogonal),ge===0?(ge=4,180<xe&&(xe-=360)):ge===90?(ge=8,270<xe&&(xe-=360)):ge===180?ge=2:(ge=1,90>xe&&(xe+=360)),we=a.pe[z],we===void 0?(we=new Ey(se,xe,ge),a.pe[z]=we):(we.link=se,we.angle=xe,we.Nc=ge),we.hv.set(ce),z++}}}}for(Ge.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=Ge.alloc(),oe=Ge.alloc(),ee=Ge.alloc(),se=Ge.alloc(),ge.ga(bl,re),ge.ga(ao,oe),ge.ga(hu,ee),ge.ga(ku,se),we=xe=ce=ge=0,E===cy)for(var Fe=0;Fe<z.length;Fe++){var Ne=z[Fe];if(Ne!==null){var Qe=Ne.link.computeThickness();switch(Ne.Nc){case 8:xe+=Qe;break;case 2:we+=Qe;break;case 1:ge+=Qe;break;default:case 4:ce+=Qe}}}var Ve=Fe=0,rt=1,at=Ne=0;for(Qe=0;Qe<z.length;Qe++){var ft=z[Qe];if(ft!==null){if(Fe!==ft.Nc){switch(Fe=ft.Nc,Fe){case 8:var At=ee;Ve=se;break;case 2:At=se,Ve=re;break;case 1:At=re,Ve=oe;break;default:case 4:At=oe,Ve=ee}switch(Ne=Ve.x-At.x,at=Ve.y-At.y,Fe){case 8:xe>Math.abs(Ne)?(rt=Math.abs(Ne)/xe,xe=Math.abs(Ne)):rt=1;break;case 2:we>Math.abs(at)?(rt=Math.abs(at)/we,we=Math.abs(at)):rt=1;break;case 1:ge>Math.abs(Ne)?(rt=Math.abs(Ne)/ge,ge=Math.abs(Ne)):rt=1;break;default:case 4:ce>Math.abs(at)?(rt=Math.abs(at)/ce,ce=Math.abs(at)):rt=1}Ve=0}var Kt=ft.Zo;if(E===cy){switch(ft=ft.link.computeThickness(),ft*=rt,Kt.set(At),Fe){case 8:Kt.x=At.x+Ne/2+xe/2-Ve-ft/2;break;case 2:Kt.y=At.y+at/2+we/2-Ve-ft/2;break;case 1:Kt.x=At.x+Ne/2-ge/2+Ve+ft/2;break;default:case 4:Kt.y=At.y+at/2-ce/2+Ve+ft/2}Ve+=ft}else{var Ei=.5;E===F0&&(Ei=(ft.Uo+1)/(ft.Gl+1)),Kt.x=At.x+Ne*Ei,Kt.y=At.y+at*Ei}}}for(Ge.free(re),Ge.free(oe),Ge.free(ee),Ge.free(se),At=a.pe,z=0;z<At.length;z++)E=At[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,tn.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,il,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 Ge,this.Gl=this.Uo=0,this.Zo=new Ge,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 Cs(a){Or(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ge(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Cs.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},Cs.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Cs.prototype.qb=function(){},Cs.prototype.toString=function(){var a=Ti(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Cs.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())}}},Cs.prototype.createNetwork=function(){return new as(this)},Cs.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ht?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof _r?y.lg(a.memberParts):y.lg(a.iterator),y},Cs.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")}},Cs.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()}},Cs.prototype.doLayout=function(a){var y=new In;a instanceof Ht?(cg(this,y,a.nodes,!0,this.rh,!0,!1,!0),cg(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof _r?cg(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},Cs.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 _r&&(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++}},Cs.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 oi)&&(Sm(re),this.rh(re))){var oe=re.measuredBounds,se=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof _r&&(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++}}},Cs.prototype.rh=function(a){return!!(!a.location.w()||a instanceof _r&&a.rh)};function cg(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 Ai?oe.isLinkLabel||(oe instanceof _r&&oe.layout===null?cg(a,y,oe.memberParts,!1,b,z,ee,re):(Sm(oe),y.add(oe))):ee&&oe instanceof oi?y.add(oe):!re||!oe.Zc()||oe instanceof Ai||(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()}Cs.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new tn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Cs.prototype.ex=function(a){var y=new In;return a instanceof Ht?(cg(this,y,a.nodes,!0,null,!0,!0,!0),cg(this,y,a.links,!0,null,!0,!0,!0),cg(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof _r?cg(this,y,a.memberParts,!1,null,!0,!0,!0):cg(this,y,a.iterator,!1,null,!0,!0,!0),y},Cs.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(bl),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},zt.Object.defineProperties(Cs.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())}}}),Cs.prototype.collectParts=Cs.prototype.ex,Cs.prototype.getLayoutBounds=Cs.prototype.ni,Cs.prototype.invalidateLayout=Cs.prototype.C,Cs.className="Layout";function as(a){Or(this),this.Sc=a,this.wf=new In,this.ye=new In,this.Es=new hi,this.zs=new hi}as.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 In,this.ye=new In,this.Es=new hi,this.zs=new hi},as.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},as.prototype.createVertex=function(){return new ql(this)},as.prototype.createEdge=function(){return new od(this)},as.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 Ai)return!ee.isLinkLabel;if(ee instanceof oi){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 Ai&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof _r&&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 oi&&(!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))}}},as.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=as.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=Ri(),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]);ai(a)},as.prototype.deleteArtificialVertexes=function(){for(var a=Ri(),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=Ri(),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]);ai(a),ai(y)};function Vx(a){for(var y=Ri(),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]);ai(y)}as.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Vx(this),this.Ko()),a=new an;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))}}as.prototype.dz=function(){for(var a=new In,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},zt.Object.defineProperties(as.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}}}),as.prototype.findAllParts=as.prototype.dz,as.prototype.splitIntoSubNetworks=as.prototype.Zx,as.prototype.deleteSelfEdges=as.prototype.Ko,as.prototype.reverseEdge=as.prototype.gm,as.prototype.linkVertexes=as.prototype.Zj,as.prototype.findEdge=as.prototype.Lo,as.prototype.deleteLink=as.prototype.Yy,as.prototype.deleteEdge=as.prototype.Mj,as.prototype.addLink=as.prototype.Dy,as.prototype.addEdge=as.prototype.Bo,as.prototype.findVertex=as.prototype.ki,as.prototype.deleteNode=as.prototype.Zy,as.prototype.deleteVertex=as.prototype.Iu,as.prototype.addNode=as.prototype.Bl,as.prototype.addVertex=as.prototype.dh,as.prototype.addParts=as.prototype.lg,as.className="LayoutNetwork";function ql(a){Or(this),this.ob=a,this.j=new tn(0,0,10,10).freeze(),this.o=new Ge(5,5).freeze(),this.Sh=this.ub=null,this.tg=new an,this.mg=new an}ql.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new an,this.mg=new an},ql.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+fr(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},ql.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Mt(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 _r)){x=tn.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Dr);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),tn.free(x);return}tn.free(x)}a.moveTo(y.x,y.y)}},ql.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},ql.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},ql.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},ql.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}zt.Object.defineProperties(ql.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=tn.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),tn.free(x),!(a instanceof _r)&&(a=a.locationObject.ga(Dr),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 In,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new In,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new In,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 an,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}}}),ql.prototype.deleteDestinationEdge=ql.prototype.Jl,ql.prototype.addDestinationEdge=ql.prototype.zl,ql.prototype.deleteSourceEdge=ql.prototype.Kl,ql.prototype.addSourceEdge=ql.prototype.Cl,ql.className="LayoutVertex",ql.standardComparer=Ay,ql.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 od(a){Or(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}od.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},od.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+fr(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},od.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},od.prototype.commit=function(){},od.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},zt.Object.defineProperties(od.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)}}}),od.prototype.getOtherVertex=od.prototype.Ax,od.className="LayoutEdge";function Lu(a){Cs.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new gi(NaN,NaN).freeze(),this.tf=new gi(10,10).freeze(),this.Jb=xm,this.Rb=z0,this.nd=Em,this.hd=ES,a&&Object.assign(this,a)}_t(Lu,Cs),Lu.prototype.cloneProtected=function(a){Cs.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},Lu.prototype.qb=function(a){a.classType===Lu?a===Em||a===_0||a===Fy||a===V0?this.sorting=a:a===z0||a===Ch?this.arrangement=a:a===xm||a===j0?this.alignment=a:Pt("Unknown enum value: "+a):Cs.prototype.qb.call(this,a)},Lu.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 _r)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 _0: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=tn.alloc(),ce=Math.max(this.cellSize.width,1);if(!isFinite(ce))for(var ge=ce=0;ge<b.length;ge++){var xe=this.ni(b[ge],se);ce=Math.max(ce,xe.width)}if(ce=Math.max(ce+re,1),ge=Math.max(this.cellSize.height,1),!isFinite(ge))for(xe=ge=0;xe<b.length;xe++){var we=this.ni(b[xe],se);ge=Math.max(ge,we.height)}ge=Math.max(ge+oe,1),xe=this.arrangement;for(var Fe=we=this.arrangementOrigin.x,Ne=this.arrangementOrigin.y,Qe=0,Ve=0,rt=0;rt<b.length;rt++){var at=b[rt],ft=this.ni(at,se),At=Math.ceil((ft.width+re)/ce)*ce,Kt=Math.ceil((ft.height+oe)/ge)*ge;switch(xe){case Ch:var Ei=Math.abs(Fe-ft.width);break;default:Ei=Fe+ft.width}switch((0<z&&Qe>z-1||0<ee&&0<Qe&&Ei-we>ee)&&(E.push(new tn(0,Ne,ee+re,Ve)),Qe=0,Fe=we,Ne+=Ve,Ve=0),Ve=Math.max(Ve,Kt),xe){case Ch:ft=-ft.width;break;default:ft=0}switch(at.moveTo(Fe+ft,Ne),xe){case Ch:Fe-=At;break;default:Fe+=At}Qe++}E.push(new tn(0,Ne,ee+re,Ve)),tn.free(se);break;case xm:for(oe=ee,ce=z,ge=y,xe=x,ee=tn.alloc(),we=Math.max(this.cellSize.width,1),z=Ne=se=0,re=Ge.alloc(),Fe=0;Fe<b.length;Fe++)Ve=b[Fe],Qe=this.ni(Ve,ee),Ve=Wf(Ve,Ve.locationObject,Ve.locationSpot,re),se=Math.max(se,Ve.x),Ne=Math.max(Ne,Qe.width-Ve.x),z=Math.max(z,Ve.y);switch(Fe=this.arrangement,Fe){case Ch:se+=ge;break;default:Ne+=ge}we=isFinite(we)?Math.max(we+ge,1):Math.max(se+Ne,1);var zi=Ve=this.arrangementOrigin.x;for(rt=this.arrangementOrigin.y,Ne=0,oe>=se&&(oe-=se),se=at=0,At=Math.max(this.cellSize.height,1),ft=z=0,Kt=!0,Qe=Ge.alloc(),Ei=0;Ei<b.length;Ei++){var Ni=b[Ei],ri=this.ni(Ni,ee),Mn=Wf(Ni,Ni.locationObject,Ni.locationSpot,re);if(0<Ne)switch(Fe){case Ch:zi=(zi-Ve-(ri.width-Mn.x))/we,zi=Dt.$(Math.round(zi),zi)?Math.round(zi):Math.floor(zi),zi=zi*we+Ve;break;default:zi=(zi-Ve+Mn.x)/we,zi=Dt.$(Math.round(zi),zi)?Math.round(zi):Math.ceil(zi),zi=zi*we+Ve}else switch(Fe){case Ch:at=zi+Mn.x+ri.width;break;default:at=zi-Mn.x}switch(Fe){case Ch:var jr=-(zi+Mn.x)+at;break;default:jr=zi+ri.width-Mn.x-at}if(0<ce&&Ne>ce-1||0<oe&&0<Ne&&jr>oe){for(E.push(new tn(0,Kt?rt-z:rt,oe+ge,ft+z+xe)),zi=0;zi<Ne&&Ei!==Ne;zi++){jr=b[Ei-Ne+zi];var Fr=Wf(jr,jr.locationObject,jr.locationSpot,Qe);jr.moveTo(jr.position.x,jr.position.y+z-Fr.y)}ft+=xe,rt=Kt?rt+ft:rt+(ft+z),Ne=ft=z=0,zi=Ve,Kt=!1}switch(zi===Ve&&(se=Fe===Ch?Math.max(se,ri.width-Mn.x):Math.min(se,-Mn.x)),z=Math.max(z,Mn.y),ft=Math.max(ft,ri.height-Mn.y),isFinite(At)&&(ft=Math.max(ft,Math.max(ri.height,At)-Mn.y)),Kt?Ni.moveTo(zi-Mn.x,rt-Mn.y):Ni.moveTo(zi-Mn.x,rt),Fe){case Ch:zi-=Mn.x+ge;break;default:zi+=ri.width-Mn.x+ge}Ne++}if(E.push(new tn(0,rt,oe+ge,(Kt?ft:ft+z)+xe)),b.length!==Ne)for(oe=0;oe<Ne;oe++)ce=b[b.length-Ne+oe],ge=Wf(ce,ce.locationObject,ce.locationSpot,re),ce.moveTo(ce.position.x,ce.position.y+z-ge.y);if(Ge.free(re),Ge.free(Qe),Fe===Ch)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);tn.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===Ch?this.commitLayers(E,new Ge(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new Ge(b-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Lu.prototype.commitLayers=function(){};function ES(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}zt.Object.defineProperties(Lu.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!==Ch||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Fy&&a!==V0&&a!==Em&&a!==_0||(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 on(Lu,"Position",0),xm=new on(Lu,"Location",1),z0=new on(Lu,"LeftToRight",2),Ch=new on(Lu,"RightToLeft",3),Fy=new on(Lu,"Forward",4),V0=new on(Lu,"Reverse",5),Em=new on(Lu,"Ascending",6),_0=new on(Lu,"Descending",7);Lu.className="GridLayout",Lu.standardComparer=ES,Lu.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},Lu.Position=j0,Lu.Location=xm,Lu.LeftToRight=z0,Lu.RightToLeft=Ch,Lu.Forward=Fy,Lu.Reverse=V0,Lu.Ascending=Em,Lu.Descending=_0;function Fa(){this.On=new In,this.Dn=new In,this.Pa=new In,this.cf=new hi,this.bf=new hi,this.aj=new hi,this.H=null,this.tp=!1}Be=Fa.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 Ai){if(this.On.add(a),a instanceof _r){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 oi?this.Dn.add(a):a instanceof ta||this.Pa.add(a);y=a.data,y===null||a instanceof ta||(a instanceof oi?this.bf.add(y,a):this.cf.add(y,a))},Be.pc=function(a){if(a.Ej(),a instanceof Ai){if(this.On.remove(a),a instanceof _r){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 oi?this.Dn.remove(a):a instanceof ta||this.Pa.remove(a);y=a.data,y===null||a instanceof ta||(a instanceof oi?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 _r)&&Pt('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 _r||Pt('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 oi||Pt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Ri(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Ri(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Ri(),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]);ai(y),ai(x),ai(a)}},Fa.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Fa.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&&Yl(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&&(Ud(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)}}Fa.prototype.insertLink=function(){return null},Fa.prototype.resolveReferencesForData=function(){},Fa.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,Yn('No Group template found for category "'+x+'"'),Yn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(AS||(AS=!0,Yn('No Node template found for category "'+x+'"'),Yn(" Using default node template")),y=a.ny))),y}Fa.prototype.getLinkCategoryForData=function(){return""},Fa.prototype.setLinkCategoryForData=function(){},Fa.prototype.setFromNodeForLink=function(){},Fa.prototype.setToNodeForLink=function(){},Fa.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,Yn('No Link template found for category "'+a+'"'),Yn(" Using default link template")),x=y.my)),x},Fa.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Fa.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Fa.prototype.ip=function(a){a=this.Lc(a),a!==null&&(hs(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Fa.prototype.unresolveReferencesForPart=function(){},Fa.prototype.removeDataForLink=function(){},Fa.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Fa.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Ai?a:null)},Fa.prototype.findLinkForKey=function(){return null},Be=Fa.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 Ai?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 In;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(Mt(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 In;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(Mt(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(Ft(z)){if(!Ft(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(Mt(y)&&Mt(x)){if(!by(a,y,x))return!1}else if(y!==x)return!1;return!0}Fa.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===Hn){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===ni){var ee=a.newValue;E==="nodeDataArray"&&Mt(ee)&&PS(this,ee),y.isModified=!0}else if(x===yi){var re=a.oldValue;E==="nodeDataArray"&&Mt(re)&&this.ip(re),y.isModified=!0}else x===Pn&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Hn){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===ni||x===yi){var ce=a.change===ni,ge=ce?a.newParam:a.oldParam,xe=ce?a.newValue:a.oldValue,we=this.aj.I(a.object);if(Array.isArray(we))for(a=0;a<we.length;a++){var Fe=we[a];if(ce)s0(Fe,xe,ge,!0);else if(!(0>ge)){var Ne=ge+nm(Fe);Fe.pc(Ne,!0),Vv(Fe,Ne,ge)}}y.isModified=!0}}finally{y.aa=!0}}}}},Fa.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)},Fa.prototype.rp=function(){for(var a=this.H.model,y=new In,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()},Fa.prototype.refreshDataBoundLinks=function(){},Fa.prototype.updateRelationshipsFromData=function(){},Fa.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=Ri()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);ai(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function By(a,y){var x=y.Hh;if(Ft(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++)La(x,ee[oe])});var E=y.Hh;if(Ft(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}}}}Fa.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new hi;if(Ft(a))for(var b=0;b<a.length;b++)G0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)G0(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 In;for(var z=new hi,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof oi)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof Ai&&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 ce=new hi;E.each(function(ge){ge.key.data!==null&&ce.add(ge.key.data,ge.value.data)}),x(ce,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function G0(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 ar))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Ai){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 _r&&z instanceof _r)for(y=y.memberParts;y.next();)ee=G0(a,y.value,x,E,b),ee instanceof oi||ee===null||(ee.containingGroup=z)}else if(y instanceof oi&&z instanceof oi)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=G0(a,y.value,x,E,b),ee!==null&&ee instanceof Ai&&(ee.labeledLink=z);return z}Fa.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof oi||(E=b.copyNodeData(E),Mt(E)&&(b.xf(E),x=y.Lc(E)))}else Ud(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 oi||(b=y.copyNodeData(E)),Mt(b)&&(x.data=b)));return x},zt.Object.defineProperties(Fa.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}}}),Fa.prototype.updateAllRelationshipsFromData=Fa.prototype.rp,Fa.prototype.findLinksByExample=Fa.prototype.ls,Fa.prototype.findNodesByExample=Fa.prototype.ms,Fa.prototype.findLinkForData=Fa.prototype.Kc,Fa.prototype.findNodeForData=Fa.prototype.ii,Fa.prototype.findPartForData=Fa.prototype.Lc,Fa.prototype.findNodeForKey=Fa.prototype.Vb,Fa.prototype.removeModeledPart=Fa.prototype.ip,Fa.prototype.removeModeledParts=Fa.prototype.Gs,Fa.prototype.rebuildParts=Fa.prototype.Wd;var AS=!1,FS=!1,bS=!1;Fa.className="PartManager";function mu(a){Fa.apply(this,arguments)}_t(mu,Fa),mu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),BS(this,a.linkDataArray)},mu.prototype.addModeledParts=function(a){for(Fa.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)bp(a.value);Yl(this.diagram,!1)};function BS(a,y){y.forEach(function(x){DS(a,x)}),Yl(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){Ud(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=yd(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Ai&&(b.fromNode=z)),z=K0(x,y,!1),z!==""&&(b.toPortId=z),z=yd(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Ai&&(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}}}}mu.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)})}mu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},mu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},mu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},mu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},mu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},mu.prototype.findPartForKey=function(a){var y=Fa.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},mu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},mu.prototype.doModelChanged=function(a){var y=this;if(Fa.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===Hn){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 ce=a.newValue;typeof ce=="string"&&(se.fromPortId=ce)}}else if(b==="linkToPortId"){var ge=this.Kc(a.object);if(ge!==null){var xe=a.newValue;typeof xe=="string"&&(ge.toPortId=xe)}}else if(b==="nodeGroupKey"){var we=this.Lc(a.object);if(we!==null){var Fe=a.newValue;if(Fe!==void 0){var Ne=this.Vb(Fe);Ne instanceof _r?we.containingGroup=Ne:we.containingGroup=null}else we.containingGroup=null}}else if(b==="linkLabelKeys"){var Qe=this.Kc(a.object);if(Qe!==null){var Ve=a.oldValue,rt=a.newValue;Array.isArray(Ve)&&Ve.forEach(function(Mn){0<=rt.indexOf(Mn)||(Mn=y.Vb(Mn),Mn!==null&&(Mn.labeledLink=null))}),Array.isArray(rt)&&rt.forEach(function(Mn){Mn=y.Vb(Mn),Mn!==null&&(Mn.labeledLink=Qe)})}}else if(b==="linkCategory"){var at=this.Kc(a.object),ft=a.newValue;at!==null&&typeof ft=="string"&&(at.category=ft)}else b==="linkDataArray"&&(LS(this,a.oldValue),BS(this,a.newValue));x.isModified=!0}else if(E===ni){var At=a.newValue;if(b==="linkDataArray"&&typeof At=="object"&&At!==null)DS(this,At);else if(b==="linkLabelKeys"&&hg(At)){var Kt=this.Kc(a.object),Ei=this.Vb(At);Kt!==null&&Ei!==null&&(Ei.labeledLink=Kt)}x.isModified=!0}else if(E===yi){var zi=a.oldValue;if(b==="linkDataArray"&&typeof zi=="object"&&zi!==null)this.ip(zi);else if(b==="linkLabelKeys"&&hg(zi)){var Ni=this.Vb(zi);Ni!==null&&(Ni.labeledLink=null)}x.isModified=!0}}else if(E===Hn){var ri=a.propertyName;a.object!==x.model||ri!=="linkFromKeyProperty"&&ri!=="linkToKeyProperty"&&ri!=="linkFromPortIdProperty"&&ri!=="linkToPortIdProperty"&&ri!=="linkLabelKeysProperty"&&ri!=="nodeIsGroupProperty"&&ri!=="nodeGroupKeyProperty"&&ri!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},mu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new In,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){_S(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&VS(y,z,!1)})},mu.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 oi){var b=yd(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=yd(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 In().addAll(y);var ee=new In;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 ta)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof _r)&&(a.containingGroup=y)}}},mu.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 _r&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof Ai&&(yd(y,ee,!0)===x&&(z.link.fromNode=b),yd(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}}Fh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof _r&&(b.containingGroup=a))}},mu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ai){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)Ah(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&Ah(y,x,E.data)),a instanceof _r)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&Ah(y,x,E)}}},mu.prototype.copyPartData=function(a,y){var x=Fa.prototype.copyPartData.call(this,a,y);if(a instanceof oi)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},mu.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 oi){if(Ud(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 Ai&&(Ud(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 Ai||(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},mu.prototype.findLinkForKey=mu.prototype.findLinkForKey,mu.prototype.findPartForKey=mu.prototype.findPartForKey,mu.prototype.removeAllModeledParts=mu.prototype.removeAllModeledParts,mu.prototype.addModeledParts=mu.prototype.addModeledParts,mu.prototype.addAllModeledParts=mu.prototype.addAllModeledParts,mu.className="GraphLinksPartManager";function Md(){Fa.apply(this,arguments),this.Sg=null}_t(Md,Fa);function U0(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||!As(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Ud(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}}}Md.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Md.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Md.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}},Md.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))},Md.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Md.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Md.prototype.doModelChanged=function(a){if(Fa.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===Hn){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:U0(this,z,ee)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),se=a.newValue;if(oe!==null&&typeof se=="string"){var ce=oe.kh();ce!==null&&(ce.category=se)}}y.isModified=!0}}else if(x===Hn){var ge=a.propertyName;a.object===y.model&&ge==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Md.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Ai&&(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:U0(this,y,a):E!==null&&hs(x,E,!1)))}}},Md.prototype.updateDataBindings=function(a,y){Fa.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Md.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 Ai&&y.mh(z)===x&&U0(this,b,this.ii(z))}Fh(y,x)}a=y.mh(a),a!==void 0&&b instanceof Ai&&(a=this.Vb(a),U0(this,a,b))}},Md.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ai){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(yi,"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)&&Ah(y,x,b)}},Md.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},Md.prototype.findLinkForKey=Md.prototype.findLinkForKey,Md.className="TreePartManager";function Hi(a,y){this.kl=new In,this.il=new In,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,Or(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new hi,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 hi,this.Lt=new an,this.Wg=!1,this.o=null,this.undoManager=new mi,a!==void 0&&(Ft(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Hi.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},Hi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Hi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Hi.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)+":"+Jr(b)}}return y},Hi.prototype.xA=function(a){a.change!==Pn&&Pt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof $i?(kS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Hi.prototype.Qv=function(a,y){var x=this,E=!1,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(ge){ge.model===x&&(ge.modelChange==="nodeDataArray"?ge.change===ni?b.add(ge.newValue):ge.change===yi&&ee.add(ge.oldValue):x.lb(ge.object)?z.add(ge.object):ge.change!==Hn||x.modelData!==ge.object&&ge.propertyName!=="modelData"?ge.object!==null&&(re&&re.contains(ge.object)?re.get(ge.object).each(function(xe){x.lb(xe)&&z.add(xe)}):ge.object instanceof Hi||x.ri()&&x.Jc(ge.object)||NS(x,ge.object).each(function(xe){z.add(xe)})):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 ce=null;return E&&(ce===null&&(ce={}),ce.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ce===null&&(ce={}),y?ce.removedNodeKeys=oe.Fa():ce.insertedNodeKeys=oe.Fa()),0<a.length&&(ce===null&&(ce={}),ce.modifiedNodeData=a),0<se.count&&(ce===null&&(ce={}),y?ce.insertedNodeKeys=se.Fa():ce.removedNodeKeys=se.Fa()),se.clear(),oe.clear(),ce},Hi.prototype.cloneDeep=function(a){return kp(this,a,!0)};function kp(a,y,x,E,b,z){function ee(ge,xe){re?(ge.__gohashid===void 0&&z.push(ge),E.set(ge,xe)):(ge=Bo++,E.set(ge,xe),b.set(ge,y))}if(!Mt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new hi),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new hi),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 ce=0;ce<y.length;ce++)oe.push(kp(a,y[ce],!1,E,b,z))}else if(y instanceof Ge||y instanceof gi||y instanceof tn||y instanceof oo||y instanceof ir)oe=y.copy(),ee(y,oe);else{if(y instanceof $o||y instanceof si||y instanceof on)return y;if(y instanceof an)oe=new an().addAll(kp(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof In)oe=new In().addAll(kp(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof hi)oe=new hi().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(ce in oe={},ee(y,oe),y)ce!=="__gohashid"&&(oe[ce]=kp(a,y[ce],!1,E,b,z))}return x&&z.forEach(function(ge){delete ge.__gohashid}),oe}Be=Hi.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,Mt(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": `+dg(this,this.nodeDataArray,!0)},Be.kv=function(a){MS(this,a),a=a.nodeDataArray,Ft(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 In,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new hi,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Hn?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===ni||z===yi)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function NS(a,y){for(var x=new In,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(Mt(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 In,z=new In,ee=new In,re=this.vh;a.changes.each(function(ce){ce.model===x&&(ce.modelChange==="nodeDataArray"?ce.change===ni?b.add(ce.newValue):ce.change===yi&&ee.add(ce.oldValue):x.lb(ce.object)?z.add(ce.object):ce.change!==Hn||x.modelData!==ce.object&&ce.propertyName!=="modelData"?ce.object!==null&&(re&&re.contains(ce.object)?re.get(ce.object).each(function(ge){x.lb(ge)&&z.add(ge)}):ce.object instanceof Hi||x.ri()&&x.Jc(ce.object)||NS(x,ce.object).each(function(ge){z.add(ge)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(x.wa(ce)),y||z.add(ce)});var se=this.kl;return se.clear(),ee.each(function(ce){se.add(x.wa(ce)),y&&z.add(ce)}),a="",E&&(a+=`,
|
|
"modelData": `+Ly(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+dg(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+dg(this,z.Fa(),!0)),0<se.count&&(a+=(y?this.Wv:this.Yv)+dg(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)&&Pt("applyIncrementalJson cannot change Model properties"),MS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new hi;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!==Pn&&Pt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof $i?(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=Zn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Pt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Pt("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)},Hi.constructGraphLinksModel=function(){return new Hi},Be=Hi.prototype,Be.dm=function(a){if(Ft(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Mt(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:Pt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Mt(a)){for(y in a)if(x=a[y],Mt(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 an,E=0;E<x.length/2;E++)b.add(new Ge(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return _x(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()):Ft(a)?dg(this,a):Mt(a)?Ly(this,a):typeof a=="function"?"null":a.toString()};function dg(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new cn;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 Pc(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Ly(a,y){var x=y;if(x instanceof Ge)y={class:"go.Point",x:Pc(x.x),y:Pc(x.y)};else if(x instanceof gi)y={class:"go.Size",width:Pc(x.width),height:Pc(x.height)};else if(x instanceof tn)y={class:"go.Rect",x:Pc(x.x),y:Pc(x.y),width:Pc(x.width),height:Pc(x.height)};else if(x instanceof oo)y={class:"go.Margin",top:Pc(x.top),right:Pc(x.right),bottom:Pc(x.bottom),left:Pc(x.left)};else if(x instanceof ir)x.sb()?y={class:"go.Spot",x:Pc(x.x),y:Pc(x.y),offsetX:Pc(x.offsetX),offsetY:Pc(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof $o){if(y={class:"go.Brush",type:x.type.name},x.type===Of?y.color=x.color:(x.type===wf||x.type===Dd)&&(y.start=x.start,y.end=x.end,x.type===Dd&&(x.startRadius!==0&&(y.startRadius=Pc(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Pc(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 si?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Pc(x.startX)),x.startY!==0&&(y.startY=Pc(x.startY)),x.endX!==0&&(y.endX=Pc(x.endX)),x.endY!==0&&(y.endY=Pc(x.endY)),x.spot1.D(bl)||(y.spot1=x.spot1),x.spot2.D(hu)||(y.spot2=x.spot2),x.type===si.o&&(y.path=si.ia(x))):x instanceof on&&(y={class:"go.EnumValue",classType:wm(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=hl(y,b);if(!TS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof an){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 wc(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function _x(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 Ge(wc(a.x),wc(a.y));else if(y==="Size")x=new gi(wc(a.width),wc(a.height));else if(y==="Rect")x=new tn(wc(a.x),wc(a.y),wc(a.width),wc(a.height));else if(y==="Margin")x=new oo(wc(a.top),wc(a.right),wc(a.bottom),wc(a.left));else if(y==="Spot")typeof a.enum=="string"?x=$h(a.enum):x=new ir(wc(a.x),wc(a.y),wc(a.offsetX),wc(a.offsetY));else if(y==="Brush"){if(x=new $o,x.type=Vt($o,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof ir&&(x.start=a.start),a.end instanceof ir&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=wc(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=wc(a.endRadius)),a=a.colorStops,Mt(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=si.parse(a.path):x=new si,x.type=Vt(si,a.type),typeof a.startX=="number"&&(x.startX=wc(a.startX)),typeof a.startY=="number"&&(x.startY=wc(a.startY)),typeof a.endX=="number"&&(x.endX=wc(a.endX)),typeof a.endY=="number"&&(x.endY=wc(a.endY)),a.spot1 instanceof ir&&(x.spot1=a.spot1),a.spot2 instanceof ir&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=ky(E),typeof E=="function"&&(x=Vt(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){zl(this,"",a,y,x,E,b,z,ee)},Be.g=function(a,y,x,E,b){zl(this,"",Hn,a,this,y,x,E,b)},Be.Fs=function(a,y,x,E,b,z){zl(this,"",Hn,y,a,x,E,b,z)};function zl(a,y,x,E,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var se=new Sn;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)}Hi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Hn){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)),Es(x,E,b)}else a.change===ni?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Mt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&Ii(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)&&!Ft(E)&&a.propertyName&&(E=hl(a.object,a.propertyName)),Ft(E)&&typeof x=="number"&&(a=a.newValue,y?Ii(E,x):Sr(E,x,a))):Pt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===yi?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Mt(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&&Ii(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Ft(E)&&a.propertyName&&(E=hl(a.object,a.propertyName)),Ft(E)&&typeof x=="number"&&(a=a.oldValue,y?Sr(E,x,a):Ii(E,x))):Pt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Pn&&Pt("unknown ChangedEvent: "+a.toString())},Hi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Hi.prototype.eb=function(a){return this.undoManager.eb(a)},Hi.prototype.Kf=function(){return this.undoManager.Kf()},Hi.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=Hi.prototype,Be.La=function(a,y){y===void 0&&(y=""),zl(this,"SourceChanged",Pn,y,a,null,null)},Be.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=hl(a,y),y!==void 0)){if(hg(y))return y;Pt("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=hl(a,x);E!==y&&this.hc(y)===null&&(Es(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),zl(this,"nodeKey",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else Es(a,x,y)}};function hg(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&&Pt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&hg(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))){Es(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;Es(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Es(a,y,x)}}}}},Be.xf=function(a){a!==null&&(Tr(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&&Pt("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)),zl(a,"nodeDataArray",ni,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Be.Fy=function(a){if(Ft(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;Ii(a.Tc,E)}zl(a,"nodeDataArray",yi,"nodeDataArray",a,y,null,E,null),a.qp(y)}Be.nA=function(a){if(Ft(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&&Ft(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 In&&this.Vf.add(y,a))},Be.Lv=function(){},Be.fm=function(){},Be.em=function(){},Be.qp=function(){};function Ah(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new In,a.Vf.add(y,E)),E.add(x)}}function Fh(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof In&&(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 In?a:null)}Be.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Hi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):H0(this,a,!0),Mt(a)&&Or(a),a};function H0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=H0(a,y[x],a.copiesArrayObjects);E.push(b)}return Or(E),E}if(x&&Mt(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=hl(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 Hi||z instanceof mi||z instanceof $i||z instanceof Sn||(z=H0(a,z,!1)),Es(x,E,z)}return Or(x),x}return y instanceof Ge||y instanceof gi||y instanceof tn||y instanceof ir||y instanceof oo?y.copy():y}Hi.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 wt&&(RS=!0,Yn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Yn(" Is that really your intent?"));var E=hl(a,y);E!==x&&(Es(a,y,x),this.Fs(a,y,E,x))},Be=Hi.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),zl(this,"",ni,"",a,null,x,null,y)},Be.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Pt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Ii(a,y),zl(this,"",yi,"",a,x,null,y,null)},Be.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=hl(a,y),y===void 0))return"";if(typeof y=="string")return y;Pt("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=hl(a,x);E===void 0&&(E=""),E!==y&&(Es(a,x,y),zl(this,"nodeCategory",Hn,x,a,E,y))}else Es(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 Hi}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 ah[a]?ah[a]:Zn.go!==void 0&&Zn.go[a]?Zn.go[a]:null}function hl(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 Es(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){}}zt.Object.defineProperties(Hi.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===""&&Pt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Pt("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];Mt(b)||Pt("Model.nodeDataArray must only contain Objects, not: "+b),Tr(b)}for(this.Tc=a,E=new an,b=0;b<x;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?E.add(z):this.kb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(zl(this,"nodeDataArray",Hn,"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"}}}),Hi.prototype.setCategoryForNodeData=Hi.prototype.jm,Hi.prototype.getCategoryForNodeData=Hi.prototype.Ro,Hi.prototype.removeArrayItem=Hi.prototype.ov,Hi.prototype.insertArrayItem=Hi.prototype.ts,Hi.prototype.addArrayItem=Hi.prototype.Ay,Hi.prototype.assignAllDataProperties=Hi.prototype.Do,Hi.prototype.set=Hi.prototype.set,Hi.prototype.clearUnresolvedReferences=Hi.prototype.Qy,Hi.prototype.mergeNodeDataArray=Hi.prototype.$z,Hi.prototype.removeNodeDataCollection=Hi.prototype.nA,Hi.prototype.removeNodeData=Hi.prototype.cm,Hi.prototype.addNodeDataCollection=Hi.prototype.Fy,Hi.prototype.addNodeData=Hi.prototype.xf,Hi.prototype.makeNodeDataKeyUnique=Hi.prototype.$u,Hi.prototype.findNodeDataForKey=Hi.prototype.hc,Hi.prototype.containsNodeData=Hi.prototype.lb,Hi.prototype.setKeyForNodeData=Hi.prototype.km,Hi.prototype.getKeyForNodeData=Hi.prototype.wa,Hi.prototype.updateTargetBindings=Hi.prototype.La,Hi.prototype.commit=Hi.prototype.commit,Hi.prototype.rollbackTransaction=Hi.prototype.Kf,Hi.prototype.commitTransaction=Hi.prototype.eb,Hi.prototype.startTransaction=Hi.prototype.Ea,Hi.prototype.raiseDataChanged=Hi.prototype.Fs,Hi.prototype.raiseChanged=Hi.prototype.g,Hi.prototype.raiseChangedEvent=Hi.prototype.cb,Hi.prototype.removeChangedListener=Hi.prototype.ik,Hi.prototype.addChangedListener=Hi.prototype.Pe,Hi.prototype.writeJsonValue=Hi.prototype.sm,Hi.prototype.replaceJsonObjects=Hi.prototype.dm,Hi.prototype.applyIncrementalJSON=Hi.prototype.Ky,Hi.prototype.applyIncrementalJson=Hi.prototype.Zw,Hi.prototype.toJSON=Hi.prototype.toJSON,Hi.prototype.toJson=Hi.prototype.np,Hi.prototype.toIncrementalJSON=Hi.prototype.yA,Hi.prototype.toIncrementalJson=Hi.prototype.$x,Hi.prototype.toIncrementalData=Hi.prototype.xA,Hi.prototype.clear=Hi.prototype.clear;var RS=!1,ah={};Hi.className="Model",Hi.fromJSON=Hi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Zn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Pt("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=Zn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Hi?y=a:Pt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Hi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Hi.safePropertyValue=hl,Hi.safePropertySet=Es,ah.Brush=$o,ah.ChangedEvent=Sn,ah.Geometry=si,ah.Margin=oo,ah.Panel=ei,ah.Point=Ge,ah.Rect=tn,ah.Size=gi,ah.Spot=ir,ah.Transaction=$i,ah.UndoManager=mi;function Cl(a,y,x,E){Or(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 In}Cl.prototype.copy=function(){var a=new Cl;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=Cl.prototype,Be.qb=function(a){a.classType===Cl&&(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==="")Yn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=hl(y,E)),z!==void 0)if(b===null)x!==""&&Es(a,x,z);else try{if(x!==""){var ee=b(z,a);Es(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=hl(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):Es(y,x,ee);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var se=E.itemIndex,ce=E.panel.itemArray;oe.ov(ce,se),oe.ts(ce,se,ee)}}else try{if(x!==""){var ge=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,ge):Es(y,x,ge)}else{var xe=z(ee,y,oe);if(xe!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var we=E.itemIndex,Fe=E.panel.itemArray;oe.ov(Fe,we),oe.ts(Fe,we,xe)}}}catch(Ne){}}finally{this.st.remove(a)}}}},zt.Object.defineProperties(Cl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Di(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Di(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Di(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Di(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Di(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Di(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Di(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Di(this),this.el=a}}}),Cl.prototype.updateSource=Cl.prototype.sp,Cl.prototype.updateTarget=Cl.prototype.Mv,Cl.prototype.ofModel=Cl.prototype.dA,Cl.prototype.ofObject=Cl.prototype.cp,Cl.prototype.makeTwoWay=Cl.prototype.Kx;var Gx="Binding",jS=new on(Cl,"OneWay",1),Cm=new on(Cl,"TwoWay",2);Cl.className="Binding",Cl.parseEnum=function(a,y){return function(x){return x=Vt(a,x),x===null?y:x}},Cl.toString=Jr,Cl.OneWay=jS,Cl.TwoWay=Cm;function Uo(a,y,x){Hi.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new In,this.wb=new hi,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&&(Ft(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}_t(Uo,Hi),Uo.constructGraphLinksModel=Hi.constructGraphLinksModel,Uo.prototype.cloneProtected=function(a){Hi.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=Uo.prototype,Be.clear=function(){Hi.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)+":"+Jr(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+yd(this,b,!0)+"-->"+yd(this,b,!1)}return y},Be.Qv=function(a,y){this.linkKeyProperty===""&&Pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Hi.prototype.Qv.call(this,a,y),E=this,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===ni?b.add(ce.newValue):ce.change===yi&&ee.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):ce.object instanceof Hi||E.lb(ce.object)||zS(E,ce.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(E.Ac(ce)),y||z.add(ce)});var se=this.kl;return se.clear(),ee.each(function(ce){se.add(E.Ac(ce)),y&&z.add(ce)}),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=Hi.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){Hi.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=Hi.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+dg(this,this.linkDataArray,!0);return a+y},Be.kv=function(a){Hi.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 In,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===""&&Pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Hi.prototype.Pv.call(this,a,y),E=this,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===ni?b.add(ce.newValue):ce.change===yi&&ee.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):ce.object instanceof Hi||E.lb(ce.object)||zS(E,ce.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(E.Ac(ce)),y||z.add(ce)});var se=this.kl;return se.clear(),ee.each(function(ce){se.add(E.Ac(ce)),y&&z.add(ce)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+dg(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+dg(this,z.Fa(),!0)),0<se.count&&(a+=(y?this.Vv:this.Xv)+dg(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)&&Pt("applyIncrementalJson cannot change Model properties"),Hi.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]);GS(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)},Uo.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Hn){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),Es(x,E,b);return}}else if(a.change===ni){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Mt(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===yi){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Mt(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}}Hi.prototype.changeState.call(this,a,y)}},Be=Uo.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),Es(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Be.yx=function(a){return yd(this,a,!0)},Be.wv=function(a,y){Np(this,a,y,!0)},Be.Bx=function(a){return yd(this,a,!1)},Be.Bv=function(a,y){Np(this,a,y,!1)};function yd(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=hl(y,a),a!==void 0))){if(hg(a))return a;Pt((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=hl(y,b);z!==x&&(Fh(a,z,y),Es(y,b,x),a.hc(x)===null&&Ah(a,x,y),zl(a,E?"linkFromKey":"linkToKey",Hn,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Es(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=hl(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=hl(y,b);z===void 0&&(z=""),z!==x&&(Es(y,b,x),zl(a,E?"linkFromPortId":"linkToPortId",Hn,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Es(y,b,x)}}Be.Ef=function(a){if(a===null)return Y0;var y=this.je;return y===""?Y0:(a=hl(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=hl(a,x);if(E===void 0&&(E=Y0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)Fh(this,E[z],a);for(Es(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&Ah(this,ee,a)}zl(this,"linkLabelKeys",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else Es(a,x,y)}},Be.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=hl(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&&Ah(this,y,a),zl(this,"linkLabelKeys",ni,x,a,null,y,null,b)))}else Pt(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=hl(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(Fh(this,y,a),zl(this,"linkLabelKeys",yi,x,a,y,null,b,null)))}else E!==void 0&&Pt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Be.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=hl(a,y),y!==void 0)){if(hg(y))return y;Pt("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=hl(a,x);E!==y&&this.jh(y)===null&&(Es(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),zl(this,"linkKey",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Es(a,x,y)}},Be.jh=function(a){return a===null&&Pt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&hg(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))){Es(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Es(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Es(a,y,x)}}}}},Be.Jc=function(a){return a===null?!1:this.$f.contains(a)},Be.fi=function(a){a!==null&&(Tr(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&&Pt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),zl(a,"linkDataArray",ni,"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&&_S(this,a,!0)};function _S(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(zl(a,"linkDataArray",yi,"linkDataArray",a,y,null,E,null),x=yd(a,y,!0),Fh(a,x,y),x=yd(a,y,!1),Fh(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],Fh(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===""&&Pt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Ft(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),GS(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=yd(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Ah(a,x,y),x=yd(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Ah(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&&Ah(a,x,y)}Be.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):H0(this,a,!0),Mt(a)&&(Or(a),this.lf!==""&&Es(a,this.lf,void 0),this.mf!==""&&Es(a,this.mf,void 0),this.je!==""&&Es(a,this.je,[])),a},Be.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!hl(a,y)},Be.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=hl(a,y),y!==void 0)){if(hg(y))return y;Pt("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=hl(a,x);E!==y&&(Fh(this,E,a),Es(a,x,y),this.hc(y)===null&&Ah(this,y,a),zl(this,"nodeGroupKey",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Es(a,x,y)}},Uo.prototype.copyNodeData=function(a){return a===null?null:(a=Hi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||hl(a,this.Je)===void 0||Es(a,this.Je,void 0),a)},Uo.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=hl(a,y);E!==x&&(Es(a,y,x),this.Fs(a,y,E,x))},Be=Uo.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&&hl(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Be.jp=function(a,y){Hi.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(yd(this,E,!0)===b){var ee=this.lf;Es(E,ee,z),zl(this,"linkFromKey",Hn,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(yd(this,E,!1)===b&&(ee=this.mf,Es(E,ee,z),zl(this,"linkToKey",Hn,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,zl(this,"linkLabelKeys",ni,oe,E,b,z,se,se))}},Be.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;Es(a,E,x),zl(this,"nodeGroupKey",Hn,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Be.Lv=function(){Hi.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){Hi.prototype.fm.call(this,a),a=this.wa(a);var y=Pm(this,a);if(y!==null){var x=Ri();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;zl(this,"nodeGroupKey",Hn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(yd(this,E,!0)===a&&(b=this.lf,zl(this,"linkFromKey",Hn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),yd(this,E,!1)===a&&(b=this.mf,zl(this,"linkToKey",Hn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(zl(this,"linkLabelKeys",ni,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)Fh(this,a,x[y]);ai(x)}},Be.em=function(a){Hi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Ah(this,y,a)},Be.qp=function(a){Hi.prototype.qp.call(this,a);var y=this.lh(a);Fh(this,y,a)},Be.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=hl(a,y),y===void 0))return"";if(typeof y=="string")return y;Pt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Uo.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Uo.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=hl(a,x);E===void 0&&(E=""),E!==y&&(Es(a,x,y),zl(this,"linkCategory",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Es(a,x,y)}},Uo.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Be=Uo.prototype,Be.lm=function(a,y){Hi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function GS(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},zt.Object.defineProperties(Uo.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];Mt(b)||Pt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Tr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new an,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 In,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,zl(this,"linkDataArray",Hn,"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"}}}),Uo.prototype.setCategoryForLinkData=Uo.prototype.lp,Uo.prototype.getCategoryForLinkData=Uo.prototype.ps,Uo.prototype.assignAllDataProperties=Uo.prototype.Do,Uo.prototype.setGroupKeyForNodeData=Uo.prototype.mp,Uo.prototype.getGroupKeyForNodeData=Uo.prototype.lh,Uo.prototype.isGroupForNodeData=Uo.prototype.Yu,Uo.prototype.copyLinkData=Uo.prototype.Jo,Uo.prototype.mergeLinkDataArray=Uo.prototype.Zz,Uo.prototype.removeLinkDataCollection=Uo.prototype.lA,Uo.prototype.removeLinkData=Uo.prototype.bm,Uo.prototype.addLinkDataCollection=Uo.prototype.Ey,Uo.prototype.addLinkData=Uo.prototype.fi,Uo.prototype.containsLinkData=Uo.prototype.Jc,Uo.prototype.makeLinkDataKeyUnique=Uo.prototype.Bs,Uo.prototype.findLinkDataForKey=Uo.prototype.jh,Uo.prototype.setKeyForLinkData=Uo.prototype.Ks,Uo.prototype.getKeyForLinkData=Uo.prototype.Ac,Uo.prototype.removeLabelKeyForLinkData=Uo.prototype.Qx,Uo.prototype.addLabelKeyForLinkData=Uo.prototype.Bu,Uo.prototype.setLabelKeysForLinkData=Uo.prototype.Ls,Uo.prototype.getLabelKeysForLinkData=Uo.prototype.Ef,Uo.prototype.setToPortIdForLinkData=Uo.prototype.Cv,Uo.prototype.getToPortIdForLinkData=Uo.prototype.Cx,Uo.prototype.setFromPortIdForLinkData=Uo.prototype.xv,Uo.prototype.getFromPortIdForLinkData=Uo.prototype.zx,Uo.prototype.setToKeyForLinkData=Uo.prototype.Bv,Uo.prototype.getToKeyForLinkData=Uo.prototype.Bx,Uo.prototype.setFromKeyForLinkData=Uo.prototype.wv,Uo.prototype.getFromKeyForLinkData=Uo.prototype.yx,Uo.prototype.clear=Uo.prototype.clear;var Y0=Object.freeze([]);Uo.className="GraphLinksModel",ah.GraphLinksModel=Uo,Hi.constructGraphLinksModel=Hi.constructGraphLinksModel=function(){return new Uo},Hi.initDiagramModel=My=function(){return new Uo};function Cc(a,y){Hi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Ft(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}_t(Cc,Hi),Cc.constructGraphLinksModel=Hi.constructGraphLinksModel,Cc.prototype.cloneProtected=function(a){Hi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Be=Cc.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)+":"+Jr(b)}}return y},Be.rm=function(){var a=Hi.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){Hi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Be.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Pt("applyIncrementalJson cannot change Model properties"),Hi.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=hl(a,y),y!==void 0)){if(hg(y))return y;Pt("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=hl(a,x);E!==y&&(Fh(this,E,a),Es(a,x,y),this.hc(y)===null&&Ah(this,y,a),zl(this,"nodeParentKey",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Es(a,x,y)}},Be.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=hl(a,y),y===void 0)?"":typeof y=="string"?y:(Pt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Cc.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Cc.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=hl(a,x);E===void 0&&(E=""),E!==y&&(Es(a,x,y),zl(this,"parentLinkCategory",Hn,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Es(a,x,y)}},Cc.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Cc.prototype.copyNodeData=function(a){return a===null?null:(a=Hi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||hl(a,this.Ke)===void 0||Es(a,this.Ke,void 0),a)},Cc.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=hl(a,y);E!==x&&(Es(a,y,x),this.Fs(a,y,E,x))},Be=Cc.prototype,Be.jp=function(a,y){Hi.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;Es(a,E,x),zl(this,"nodeParentKey",Hn,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Be.fm=function(a){Hi.prototype.fm.call(this,a),a=this.wa(a);var y=Pm(this,a);if(y!==null){var x=Ri();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;zl(this,"nodeParentKey",Hn,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)Fh(this,a,x[y]);ai(x)}},Be.em=function(a){Hi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Ah(this,y,a)},Be.qp=function(a){Hi.prototype.qp.call(this,a);var y=this.mh(a);Fh(this,y,a)},Be.lm=function(a,y){Hi.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},zt.Object.defineProperties(Cc.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"}}}),Cc.prototype.setParentLinkCategoryForNodeData=Cc.prototype.Ms,Cc.prototype.getParentLinkCategoryForNodeData=Cc.prototype.ss,Cc.prototype.setParentKeyForNodeData=Cc.prototype.qe,Cc.prototype.getParentKeyForNodeData=Cc.prototype.mh,Cc.className="TreeModel",ah.TreeModel=Cc;function Rs(a){Cs.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=sh,this.Ti=0,this.Zv=new Ge,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=sh,this.K=Ac,this.nd=Ip,this.hd=Ay,this.tf=6,this.Nn=tv,a&&Object.assign(this,a)}_t(Rs,Cs),Rs.prototype.cloneProtected=function(a){Cs.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},Rs.prototype.qb=function(a){a.classType===Rs?a===$0||a===ev||a===Q0||a===q0||a===Ip?this.sorting=a:a===Rg||a===Op||a===Ac||a===gg?this.direction=a:a===Uf||a===fg||a===sh||a===lh?this.arrangement=a:(a===np||a===tv)&&(this.nodeDiameterFormula=a):Cs.prototype.qb.call(this,a)},Rs.prototype.createNetwork=function(){return new Rp(this)},Rs.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 an;y.addAll(a.iterator),a=new an;var x=new an,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 ce=this.aspectRatio;(!isFinite(ce)||0>=ce)&&(ce=1);var ge=this.startAngle;isFinite(ge)||(ge=0);var xe=this.sweepAngle;if((!isFinite(xe)||360<xe||1>xe)&&(xe=360),y=this.spacing,isFinite(y)||(y=NaN),re===lh&&oe===np?re=sh:re===lh&&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===lh&&a.reverse(),E=new an,E.addAll(a),E.addAll(x)):(this.arrangement===lh&&x.reverse(),E=new an,E.addAll(x),E.addAll(a))}oe=E.length;for(var we=z=b=0;we<E.length;we++){var Fe=ge+xe*z*(this.direction===Ac?1:-1)/oe,Ne=E.M(we).diameter;isNaN(Ne)&&(Ne=pg(E.M(we),Fe)),360>xe&&(we===0||we===E.length-1)&&(Ne/=2),b+=Ne,z++}if(isNaN(se)||re===lh){if(isNaN(y)&&(y=6),re!==sh&&re!==lh){for(z=-1/0,ee=0;ee<oe;ee++)we=E.M(ee),b=E.M(ee===oe-1?0:ee+1),isNaN(we.diameter)&&pg(we,0),isNaN(b.diameter)&&pg(b,0),z=Math.max(z,(we.diameter+b.diameter)/2);ee=z+y,re===Uf?se=(z+y)/(2*Math.PI/oe):se=X0(this,ee*(360<=xe?oe:oe-1),ce,ge*Math.PI/180,xe*Math.PI/180)}else se=X0(this,b+(360<=xe?oe:oe-1)*(re!==lh?y:1.6*y),ce,ge*Math.PI/180,xe*Math.PI/180);z=se*ce}else if(z=se*ce,we=Ty(this,se,z,ge*Math.PI/180,xe*Math.PI/180),isNaN(y))(re===sh||re===lh)&&(y=(we-b)/(360<=xe?oe:oe-1));else if(re===sh||re===lh)we=(we-b)/(360<=xe?oe:oe-1),we<y?(se=X0(this,b+y*(360<=xe?oe:oe-1),ce,ge*Math.PI/180,xe*Math.PI/180),z=se*ce):y=we;else{for(ee=-1/0,b=0;b<oe;b++)Fe=E.M(b),Ne=E.M(b===oe-1?0:b+1),isNaN(Fe.diameter)&&pg(Fe,0),isNaN(Ne.diameter)&&pg(Ne,0),ee=Math.max(ee,(Fe.diameter+Ne.diameter)/2);ee+=y,b=X0(this,ee*(360<=xe?oe:oe-1),ce,ge*Math.PI/180,xe*Math.PI/180),b>se?(se=b,z=se*ce):ee=we/(360<=xe?oe:oe-1)}if(this.kw=re,this.lc=se,this.Zm=ce,this.lw=ge,this.Wp=xe,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,se=this.lw,ce=this.Wp,ge=this.Ti,xe=this.me,oe=this.Jp,this.direction!==Rg&&this.direction!==Op||E!==lh)if(this.direction===Rg||this.direction===Op){switch(ee=0,E){case fg:ee=180*J0(this,re,xe,se,oe)/Math.PI;break;case sh:oe=y=0,ee=a.first(),ee!==null&&(y=pg(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=pg(ee,Math.PI/2)),ee=180*J0(this,re,xe,se,ge+(y+oe)/2)/Math.PI;break;case Uf:ee=ce/y.length}if(this.direction===Rg){switch(E){case fg:bm(this,a,se,gg);break;case sh:Fm(this,a,se,gg);break;case Uf:Am(this,a,ce/2,se,gg)}switch(E){case fg:bm(this,x,se+ee,Ac);break;case sh:Fm(this,x,se+ee,Ac);break;case Uf:Am(this,x,ce/2,se+ee,Ac)}}else{switch(E){case fg:bm(this,x,se,gg);break;case sh:Fm(this,x,se,gg);break;case Uf:Am(this,x,ce/2,se,gg)}switch(E){case fg:bm(this,a,se+ee,Ac);break;case sh:Fm(this,a,se+ee,Ac);break;case Uf:Am(this,a,ce/2,se+ee,Ac)}}}else switch(E){case fg:bm(this,y,se,this.direction);break;case sh:Fm(this,y,se,this.direction);break;case Uf:Am(this,y,ce,se,this.direction);break;case lh:US(this,y,ce,se,this.direction)}else US(this,y,ce,se-ce/2,Ac)}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===Ac?oe*x/(360<=z?re:re-1):-(oe*x)/re),ce=y.M(oe),ge=ee*Math.tan(se)/a;ge=Math.sqrt((ee*ee+a*a*ge*ge)/(1+ge*ge)),ce.centerX=ge*Math.cos(se),ce.centerY=ge*Math.sin(se),ce.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),ce=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)&&pg(se,0),isNaN(ce.diameter)&&pg(ce,0),se=J0(a,b,z,E===Ac?x:-x,(se.diameter+ce.diameter)/2+ee),x+=E===Ac?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===Ac?x:-x,ee),x+=E===Ac?se:-se}}function US(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Bm,360>x){for(z=E+(b===Ac?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,HS(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),ce=y.Fa();if(ce.length===3)ce[0].centerX=z,ce[0].centerY=0,ce[1].centerX=ce[0].centerX-ce[0].width/2-ce[1].width/2-ee,ce[1].y=ce[0].y,ce[2].centerX=(ce[0].centerX+ce[1].centerX)/2,ce[2].y=ce[0].y-ce[2].height-ee;else if(ce.length===4)ce[0].centerX=z,ce[0].centerY=0,ce[2].centerX=-ce[0].centerX,ce[2].centerY=ce[0].centerY,ce[1].centerX=0,ce[1].y=Math.min(ce[0].y,ce[2].y)-ce[1].height-ee,ce[3].centerX=0,ce[3].y=Math.max(ce[0].y+ce[0].height+ee,ce[2].y+ce[2].height+ee);else{z=Ge.alloc();for(var ge=0;ge<ce.length&&(ce[ge].centerX=oe,ce[ge].centerY=se,!(ge>=ce.length-1));ge++)KS(a,oe,se,ce,ge,b,z)||YS(a,oe,se,ce,ge,b,z),oe=z.x,se=z.y;if(Ge.free(z),a.mj++,!(23<a.mj)){oe=ce[0].centerX,se=ce[0].centerY,z=ce[ce.length-1].centerX,ge=ce[ce.length-1].centerY;var xe=Math.abs(oe-z)-((ce[0].width+ce[ce.length-1].width)/2+ee),we=Math.abs(se-ge)-((ce[0].height+ce[ce.length-1].height)/2+ee);ee=0,1>Math.abs(we)?Math.abs(oe-z)<(ce[0].width+ce[ce.length-1].width)/2&&(ee=0):ee=0<we?we:1>Math.abs(xe)?0:xe,oe=Math.abs(z)>Math.abs(ge)?0<z!=se>ge:0<ge!=oe<z,(oe=b===Ac?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ce[ce.length-1].width),ee=Math.min(ee,-ce[ce.length-1].height)),a.Xr.compare(ee,ce),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ce.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,ZS(a,y,x,E,b))}}}function HS(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),ce=Ge.alloc(),ge=y.Fa(),xe=0;xe<ge.length&&(ge[xe].centerX=oe,ge[xe].centerY=se,!(xe>=ge.length-1));xe++)KS(a,oe,se,ge,xe,b,ce)||YS(a,oe,se,ge,xe,b,ce),oe=ce.x,se=ce.y;if(Ge.free(ce),a.mj++,!(23<a.mj)){if(oe=Math.atan2(se,oe),oe=b===Ac?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,HS(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 ce=!1;if(0<=x!=(z===Ac)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=se,!1;ce=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=se,!1;ce=!0}return se=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ce&&(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===Ac)){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}Rs.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Rs.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 Ge(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))},Rs.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 ce=Math.sin(oe);ee+=Math.sqrt(1-a*a*ce*ce)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function 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}}Rs.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(Ux(a));default:Pt("Invalid sorting type.")}return a};function Ux(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new an;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}Rs.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 an;for(var oe=0,se=0;se<y.length;se++){var ce=y[se].length;if(ce===1)E.push(se);else if(ce===0)b.add(a.M(se));else{if(oe===0)x.push(se);else{for(var ge=ce=1/0,xe=-1,we=[],Fe=0;Fe<x.length;Fe++)0>y[x[Fe]].indexOf(x[Fe===x.length-1?0:Fe+1])&&we.push(Fe===x.length-1?0:Fe+1);if(we.length===0)for(Fe=0;Fe<x.length;Fe++)we.push(Fe);for(Fe=0;Fe<we.length;Fe++){for(var Ne=we[Fe],Qe=y[se],Ve=0,rt=0;rt<ee.length;rt++){var at=z[ee[rt]],ft=z[re[rt]];if(at<ft){var At=at;at=ft}else At=ft;if(At<Ne&&Ne<=at)for(ft=0;ft<Qe.length;ft++){var Kt=Qe[ft];0>x.indexOf(Kt)||At<z[Kt]&&z[Kt]<at||At===z[Kt]||at===z[Kt]||Ve++}else for(ft=0;ft<Qe.length;ft++)Kt=Qe[ft],0>x.indexOf(Kt)||At<z[Kt]&&z[Kt]<at&&At!==z[Kt]&&at!==z[Kt]&&Ve++}for(Qe=Ve,rt=Ve=0;rt<y[se].length;rt++)At=x.indexOf(y[se][rt]),0<=At&&(At=Math.abs(Ne-(At>=Ne?At+1:At)),Ve+=At<x.length+1-At?At:x.length+1-At);for(rt=0;rt<ee.length;rt++)At=z[ee[rt]],at=z[re[rt]],At>=Ne&&At++,at>=Ne&&at++,At>at&&(ft=at,at=At,At=ft),at-At<(x.length+2)/2==(At<Ne&&Ne<=at)&&Ve++;(Qe<ce||Qe===ce&&Ve<ge)&&(ce=Qe,ge=Ve,xe=Ne)}for(x.splice(xe,0,se),ce=0;ce<x.length;ce++)z[x[ce]]=ce;for(ce=0;ce<y[se].length;ce++)ge=y[se][ce],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],ce=x.indexOf(se),0<=ce){for(xe=ge=0;xe<y[se].length;xe++)we=x.indexOf(y[se][xe]),0>we||we===ce||(Fe=we>ce?we-ce:ce-we,ge+=we<ce!=Fe>ee-Fe?1:-1);x.splice(0>ge?ce:ce+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},zt.Object.defineProperties(Rs.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!==lh&&a!==sh&&a!==fg&&a!==Uf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ac&&a!==gg&&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 sh=new on(Rs,"ConstantSpacing",0),fg=new on(Rs,"ConstantDistance",1),Uf=new on(Rs,"ConstantAngle",2),lh=new on(Rs,"Packed",3),Ac=new on(Rs,"Clockwise",4),gg=new on(Rs,"Counterclockwise",5),Rg=new on(Rs,"BidirectionalLeft",6),Op=new on(Rs,"BidirectionalRight",7),Q0=new on(Rs,"Forwards",8),q0=new on(Rs,"Reverse",9),$0=new on(Rs,"Ascending",10),ev=new on(Rs,"Descending",11),Ip=new on(Rs,"Optimized",12),tv=new on(Rs,"Pythagorean",13),np=new on(Rs,"Circular",14);Rs.className="CircularLayout",Rs.ConstantSpacing=sh,Rs.ConstantDistance=fg,Rs.ConstantAngle=Uf,Rs.Packed=lh,Rs.Clockwise=Ac,Rs.Counterclockwise=gg,Rs.BidirectionalLeft=Rg,Rs.BidirectionalRight=Op,Rs.Forwards=Q0,Rs.Reverse=q0,Rs.Ascending=$0,Rs.Descending=ev,Rs.Optimized=Ip,Rs.Pythagorean=tv,Rs.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){as.call(this,a)}_t(Rp,as),Rp.prototype.createVertex=function(){return new Dm(this)},Rp.prototype.createEdge=function(){return new nv(this)},Rp.className="CircularNetwork";function Dm(a){ql.call(this,a),this.u=this.Si=NaN}_t(Dm,ql);function pg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===lh)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}zt.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){od.call(this,a)}_t(nv,od),nv.className="CircularEdge";function Ku(a){Cs.call(this),this.ah=null,this.An=0,this.$d=new gi(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)}_t(Ku,Cs),Ku.prototype.cloneProtected=function(a){Cs.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},Ku.prototype.createNetwork=function(){return new ip(this)},Ku.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=Ri(),ce=0;ce<re+y.vertexes.count+2;ce++)se[ce]=null;re=0,ee.reset();for(var ge=tn.alloc();ee.next();)if(ce=ee.value,this.computeBounds(ce,ge),oe)oe=!1,b=ge.x+ge.width/2,z=ge.y+ge.height/2,se[0]=new Ge(ge.x+ge.width+E.width,ge.y),se[1]=new Ge(ge.x,ge.y+ge.height+E.height),re=2;else{var xe=JS(se,re,b,z,ge.width,ge.height,E),we=se[xe],Fe=new Ge(we.x+ge.width+E.width,we.y),Ne=new Ge(we.x,we.y+ge.height+E.height);for(xe+1<re&&se.splice(xe+1,0,null),se[xe]=Fe,se[xe+1]=Ne,re++,xe=we.x-ge.x,we=we.y-ge.y,ce=ce.vertexes.iterator;ce.next();)Fe=ce.value,Fe.centerX+=xe,Fe.centerY+=we}for(tn.free(ge),ce=y.vertexes.iterator;ce.next();)ee=ce.value,xe=ee.bounds,2>re?(b=xe.x+xe.width/2,z=xe.y+xe.height/2,se[0]=new Ge(xe.x+xe.width+E.width,xe.y),se[1]=new Ge(xe.x,xe.y+xe.height+E.height),re=2):(oe=JS(se,re,b,z,xe.width,xe.height,E),ge=se[oe],we=new Ge(ge.x+xe.width+E.width,ge.y),xe=new Ge(ge.x,ge.y+xe.height+E.height),oe+1<re&&se.splice(oe+1,0,null),se[oe]=we,se[oe+1]=xe,re++,ee.centerX=ge.x+ee.width/2,ee.centerY=ge.y+ee.height/2);for(ai(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},Ku.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},Ku.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=Hx(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 Hx(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 an),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 an,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new an,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,Dt.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,ce=oe.count-ee;ce<oe.count;ce++){var ge=oe.M(ce),xe=null;for(z=ge.edges.iterator;z.next();){var we=z.value;if(we.Ax(ge)===b){xe=we;break}}xe!==null&&(se+=xe.length,re+=ge.width*ge.height)}z=b.centerX,oe=b.centerY,ce=b.width,ge=b.height,xe=b.focus,we=ce*ge,1>we&&(we=1),re=Dt.sqrt((re+we+se*se*4/(ee*ee))/we),ee=(re-1)*ce/2,re=(re-1)*ge/2,b.bounds=new tn(z-xe.x-ee,oe-xe.y-re,ce+2*ee,ge+2*re),b.focus=new Ge(xe.x+ee,xe.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 tn(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new Ge(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=Dt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,se=0,ce=y.vertexes.iterator;ce.next();){var ge=ce.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(we,Fe){return we===null||Fe===null||we===Fe?0:Fe.width*Fe.height-we.width*we.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ce=null,ge=oe.edges.iterator;ge.next();){ce=ge.value;break}ge=oe.width;var xe=oe.height;ge=Dt.sqrt(ge*ge+xe*xe)/2,ce=z+ce.length+ge,ge=ee+(y*(re/2>>1)+se)*(re%2===0?1:-1),oe.centerX=E+ce*Math.cos(ge),oe.centerY=b+ce*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 ce=a[se],ge=ce.x-x,xe=ce.y-E;if(ge=ge*ge+xe*xe,ge<re){for(xe=se-1;0<=xe;xe--)if(a[xe].y>ce.y&&a[xe].x-ce.x<b+ee.width)continue e;for(xe=se+1;xe<y;xe++)if(a[xe].x>ce.x&&a[xe].y-ce.y<z+ee.height)continue e;oe=se,re=ge}}return oe}Ku.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ku.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,Dt.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,Dt.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,Dt.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,Dt.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(Ne,Qe){return Ne===null||Qe===null||Ne===Qe?0:Ne.centerX-Qe.centerX}):y.sort(function(Ne,Qe){return Ne===null||Qe===null||Ne===Qe?0:Ne.centerY-Qe.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 ce=E.y+re.y;E=ee.charge*a.electricalFieldX(oe,ce),se=ee.charge*a.electricalFieldY(oe,ce),E+=ee.mass*a.gravitationalFieldX(oe,ce),se+=ee.mass*a.gravitationalFieldY(oe,ce),ee.forceX+=E,ee.forceY+=se;for(var ge=z+1;ge<y.length;ge++){var xe=y[ge];if(xe!==ee){E=xe.bounds,re=xe.focus,se=E.x+re.x;var we=E.y+re.y;if(oe-se>x||se-oe>x){if(b)break}else if(ce-we>x||we-ce>x){if(!b)break}else{var Fe=QS(ee,xe);1>Fe?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new iv),Fe=E.random(),re=E.random(),oe>se?(E=Math.abs(xe.bounds.right-ee.bounds.x),E=(1+E)*Fe):oe<se?(E=Math.abs(xe.bounds.x-ee.bounds.right),E=-(1+E)*Fe):(E=Math.max(xe.width,ee.width),E=(1+E)*Fe-E/2),ce>we?(se=Math.abs(xe.bounds.bottom-ee.bounds.y),se=(1+se)*re):oe<se?(se=Math.abs(xe.bounds.y-ee.bounds.bottom),se=-(1+se)*re):(se=Math.max(xe.height,ee.height),se=(1+se)*re-se/2)):(re=-(ee.charge*xe.charge)/(Fe*Fe),E=(se-oe)/Fe*re,se=(we-ce)/Fe*re),ee.forceX+=E,ee.forceY+=se,xe.forceX-=E,xe.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,ce=z.bounds,ge=z.focus,oe=ce.x+ge.x,ce=ce.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>ce?1:-1)*(1+(z.height>x.height?z.height:x.height))*ge):(re=re.stiffness*(ge-re.length),E=(oe-E)/ge*re,se=(ce-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}Ku.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},Ku.prototype.moveFixedVertex=function(){},Ku.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ku.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Ul,y.toSpot=Ul)}},Ku.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=tn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,tn.free(x)}x=tn.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()}tn.free(x)},Ku.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ku.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ku.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ku.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ku.prototype.electricalFieldX=function(){return 0},Ku.prototype.electricalFieldY=function(){return 0},Ku.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ku.prototype.gravitationalFieldX=function(){return 0},Ku.prototype.gravitationalFieldY=function(){return 0},Ku.prototype.isFixed=function(a){return a.isFixed},zt.Object.defineProperties(Ku.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"&&Pt('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())}}}),Ku.className="ForceDirectedLayout";function $S(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}$S.className="ForceDirectedSubnet";function ip(a){as.call(this,a)}_t(ip,as),ip.prototype.createVertex=function(){return new Lm(this)},ip.prototype.createEdge=function(){return new Mm(this)},ip.className="ForceDirectedNetwork";function Lm(a){ql.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}_t(Lm,ql),zt.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){od.call(this,a),this.j=this.o=NaN}_t(Mm,od),zt.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 ba(a){Cs.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 Ge,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}_t(ba,Cs),ba.prototype.cloneProtected=function(a){Cs.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},ba.prototype.qb=function(a){a.classType===ba?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:Pt("Unknown enum value: "+a):Cs.prototype.qb.call(this,a)},ba.prototype.createNetwork=function(){return new jp(this)},ba.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 ce=b.node;if(ee=z.node,ce===null||ee===null)continue;var ge=re.fromNode;oe=re.toNode;for(var xe=re.fromPort;xe!==null&&!xe.Ed();)xe=xe.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){se=ge;var we=xe;ge=oe,xe=re,oe=se,re=we}var Fe=b.focus;se=z.focus;var Ne=E.rev?z.bounds:b.bounds;we=Ge.alloc(),ce!==ge?Ne.w()&&ge.isVisible()?ge.actualBounds.w()?(Wf(ge,xe,Dr,we),we.x+=ge.actualBounds.x-Ne.x,we.y+=ge.actualBounds.y-Ne.y):(Wf(ge,xe,Dr,we),we.w()||we.assign(Fe)):we.assign(Fe):Ne.w()?(Wf(ge,xe,Dr,we),we.w()||we.assign(Fe)):we.assign(Fe),ge=E.rev?b.bounds:z.bounds,ce=Ge.alloc(),ee!==oe?ge.w()&&oe.isVisible()?oe.actualBounds.w()?(Wf(oe,re,Dr,ce),ce.x+=oe.actualBounds.x-ge.x,ce.y+=oe.actualBounds.y-ge.y):(Wf(oe,re,Dr,ce),ce.w()||ce.assign(se)):ce.assign(se):ge.w()?(Wf(oe,re,Dr,ce),ce.w()||ce.assign(se)):ce.assign(se),this.K===90||this.K===270?(ee=Math.round((we.x-Fe.x)/this.kc),oe=we.x,re=Math.round((ce.x-se.x)/this.kc),se=ce.x):(ee=Math.round((we.y-Fe.y)/this.kc),oe=we.y,re=Math.round((ce.y-se.y)/this.kc),se=ce.y),Ge.free(we),Ge.free(ce),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(we=b.layer,ce=z.layer,ge=0,Ne=E.link,Ne!==null){var Qe=Ne.fromPort,Ve=Ne.toPort;if(Qe!==null&&Ve!==null){var rt=Ne.fromNode;if(xe=Ne.toNode,rt!==null&&xe!==null){var at=sv(this,!0),ft=sv(this,!1),At=this.setsPortSpots?at:Ne.computeSpot(!0,Qe);Fe=this.setsPortSpots?ft:Ne.computeSpot(!1,Ve);var Kt=Ne.isOrthogonal;At.$c()&&At.Hf(ft)&&Fe.$c()&&Fe.Hf(at)?ge=0:(at=Ne.getLinkPoint(rt,Qe,At,!0,Kt,xe,Ve,Ge.alloc()),ft=Ne.getLinkDirection(rt,Qe,at,At,!0,Kt,xe,Ve),Ge.free(at),At.ys()||ft!==lx(this,E,!0)?this.setsPortSpots&&rt!==null&&rt.ports.count===1&&E.rev&&(ge+=1):ge+=1,At=Ne.getLinkPoint(xe,Ve,Fe,!1,Kt,rt,Qe,Ge.alloc()),Ne=Ne.getLinkDirection(xe,Ve,At,Fe,!1,Kt,rt,Qe),Ge.free(At),Fe.ys()||Ne!==lx(this,E,!1)?this.setsPortSpots&&xe!==null&&xe.ports.count===1&&E.rev&&(ge+=2):ge+=2)}}}if(xe=ge,ge=xe===1||xe===3,(xe=xe===2||xe===3)&&(Fe=a.createVertex(),Fe.node=null,Fe.Dj=1,Fe.layer=we,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),Ne=1,ge&&Ne--,we-ce>Ne&&0<we){for(E.valid=!1,Fe=a.createVertex(),Fe.node=null,Fe.Dj=2,Fe.layer=we-1,a.dh(Fe),b=a.Zj(b,Fe,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=xe?0:ee,b.portToColOffset=0,b.portFromPos=xe?0:oe,b.portToPos=0,b=Fe,we--;we-ce>Ne&&0<we;)Fe=a.createVertex(),Fe.node=null,Fe.Dj=3,Fe.layer=we-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,we--;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=mg(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),vg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},ba.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}ba.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},ba.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 kd(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=mg(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 ce=ee+1;ce<oe;ce++){var ge=E[ce];ge.near===se&&ge.Dj===se.Dj||re++}else for(ce=ee-1;ce>oe;ce--)ge=E[ce],ge.near===se&&ge.Dj===se.Dj||re++;var xe;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,se=0;se<oe.length;se++){var we=oe[se];if(we.valid&&we.fromVertex.layer!==y)for(ge=we.fromVertex.index,ce=we.portToPos,we=we.portFromPos,xe=se+1;xe<oe.length;xe++){var Fe=oe[xe];if(Fe.valid&&Fe.fromVertex.layer!==y){var Ne=Fe.fromVertex.index,Qe=Fe.portToPos;Fe=Fe.portFromPos,ce<Qe&&(ge>Ne||ge===Ne&&we>Fe)&&re++,Qe<ce&&(Ne>ge||Ne===ge&&Fe>we)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,se=0;se<oe.length;se++)if(we=oe[se],we.valid&&we.toVertex.layer!==y)for(ge=we.toVertex.index,ce=we.portToPos,we=we.portFromPos,xe=se+1;xe<oe.length;xe++)Fe=oe[xe],Fe.valid&&Fe.toVertex.layer!==y&&(Ne=Fe.toVertex.index,Qe=Fe.portToPos,Fe=Fe.portFromPos,we<Fe&&(ge>Ne||ge===Ne&&ce>Qe)&&re++,Fe<we&&(Ne>ge||Ne===ge&&Qe>ce)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var Ve=0,rt=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var at=E[oe].sourceEdgesArrayAccess;for(se=0;se<re.length;se++)if(we=re[se],we.valid&&we.fromVertex.layer!==y)for(ge=we.fromVertex.index,we=we.portFromPos,xe=0;xe<at.length;xe++)Fe=at[xe],Fe.valid&&Fe.fromVertex.layer!==y&&(Ne=Fe.fromVertex.index,Fe=Fe.portFromPos,(ge<Ne||ge===Ne&&we<Fe)&&rt++,(Ne<ge||Ne===ge&&Fe<we)&&Ve++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,at=E[oe].destinationEdgesArrayAccess,se=0;se<re.length;se++)if(we=re[se],we.valid&&we.toVertex.layer!==y)for(ge=we.toVertex.index,ce=we.portToPos,xe=0;xe<at.length;xe++)Fe=at[xe],Fe.valid&&Fe.toVertex.layer!==y&&(Ne=Fe.toVertex.index,Qe=Fe.portToPos,(ge<Ne||ge===Ne&&ce<Qe)&&rt++,(Ne<ge||Ne===ge&&Qe<ce)&&Ve++)}z[ee*b+oe]=Ve,z[oe*b+ee]=rt}}return vg(a,y,E),z}ba.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=mg(E,b),ee=E.tc[b],re=0,oe=0;oe<ee;oe++){var se=z[oe].destinationEdgesArrayAccess;if(se!==null)for(var ce=0;ce<se.length;ce++){var ge=se[ce];if(ge.valid&&ge.toVertex.layer!==b){var xe=ge.fromVertex.column+ge.portFromColOffset,we=ge.toVertex.column+ge.portToColOffset;re+=(Math.abs(xe-we)+1)*Oy(ge)}}}vg(E,b,z),y+=re}return y}ba.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=mg(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 ce=0,ge=0,xe=re.near;if(xe!==null&&xe.layer===re.layer&&(ce+=xe.column-1,ge++),oe!==null)for(xe=0;xe<oe.length;xe++){re=oe[xe];var we=re.fromVertex;re.valid&&!re.rev&&we.layer!==y&&(ce+=we.column,ge++)}if(se!==null)for(oe=0;oe<se.length;oe++)re=se[oe],xe=re.toVertex,re.valid&&!re.rev&&xe.layer!==y&&(ce+=xe.column,ge++);z[ee]=ge===0?-1:ce/ge}return vg(a,y,E),z}function tx(a,y,x){for(var E=mg(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 ce=0,ge=[],xe=re.near;if(xe!==null&&xe.layer===re.layer&&(ge[ce]=xe.column-1,ce++),re=void 0,oe!==null)for(xe=0;xe<oe.length;xe++){re=oe[xe];var we=re.fromVertex;re.valid&&!re.rev&&we.layer!==y&&(ge[ce]=we.column+re.portFromColOffset,ce++)}if(se!==null)for(oe=0;oe<se.length;oe++)re=se[oe],xe=re.toVertex,re.valid&&!re.rev&&xe.layer!==y&&(ge[ce]=xe.column+re.portToColOffset,ce++);ce===0?z[ee]=-1:(ge.sort(function(Fe,Ne){return Fe-Ne}),se=ce>>1,z[ee]=ce&1?ge[se]:ge[se-1]+ge[se]>>1)}return vg(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)}}ba.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 ce=re.sourceEdges;ce.next();)ce.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++}ba.prototype.assignLayers=function(){switch(this.Zk){case Vy:rx(this);break;case _y: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 ce=0,ge=!1,xe=se.sourceEdgesArrayAccess;b=xe.length;for(var we=0;we<b;we++){var Fe=xe[we],Ne=Fe.fromVertex;ce+=1,Ne.component!==1&&(z+=1,Ne=Ne.layer-se.layer,Fe=a.linkMinLength(Fe),E=Math.min(E,Ne-Fe))}for(xe=se.destinationEdgesArrayAccess,b=xe.length,we=0;we<b;we++)Fe=xe[we].toVertex,--ce,Fe.component!==1?--z:ge=!0;(oe===null||ce<re)&&!ge&&(oe=se,re=ce)}}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,ce=!1,xe=ee.sourceEdgesArrayAccess,ge=xe.length,we=0;we<ge;we++)Fe=xe[we].fromVertex,se+=1,Fe.component!==1?E+=1:ce=!0;for(xe=ee.destinationEdgesArrayAccess,ge=xe.length,we=0;we<ge;we++)Fe=xe[we],Ne=Fe.toVertex,--se,Ne.component!==1&&(--E,Ne=ee.layer-Ne.layer,Fe=a.linkMinLength(Fe),b=Math.min(b,Ne-Fe));(re===null||se>z)&&!ce&&(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}ba.prototype.initializeIndices=function(){switch(this.Qk){default:case Uy: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 Gy: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))}ba.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),Zd(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),Zd(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=zc(this))}for(kd(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)ov(this,E,0),Zd(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=zc(this)),E=this.Ia;0<=E;E--)ov(this,E,0),Zd(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=zc(this))}kd(this,y);var z,ee,re;switch(this.rk){case Zy:break;case Hy: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=Zd(this,E,-1)||z;for(b=this.countCrossings(),b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Zd(this,E,1)||z;for(b=this.countCrossings(),b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Zd(this,E,1)||z;for(b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Zd(this,E,-1)||z;for(b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Zd(this,E,0)||z;for(b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Zd(this,E,0)||z;b>=a?kd(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=Zd(this,E,-1)||z;for(b=this.countCrossings(),b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Zd(this,E,1)||z;for(b=this.countCrossings(),b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Zd(this,E,1)||z;for(b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Zd(this,E,-1)||z;for(b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Zd(this,E,0)||z;for(b>=a?kd(this,y):(a=b,y=zc(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Zd(this,E,0)||z;b>=a?kd(this,y):(a=b,y=zc(this))}}kd(this,y)};function ov(a,y,x){var E=mg(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);vg(a,y,E)}function Zd(a,y,x){var E=mg(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 ce=x[E[z].index*b+E[z+1].index],ge=x[E[z+1].index*b+E[z].index],xe=0,we=0,Fe=E[z].column,Ne=E[z+1].column,Qe=a.nodeMinColumnSpace(E[z],!0),Ve=a.nodeMinColumnSpace(E[z],!1),rt=a.nodeMinColumnSpace(E[z+1],!0),at=a.nodeMinColumnSpace(E[z+1],!1);Qe=Fe-Qe+rt,Ve=Ne-Ve+at;var ft=E[z].sourceEdges.iterator;for(ft.reset();ft.next();)if(rt=ft.value,at=rt.fromVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt<z&&(xe+=2*(z-rt),we+=2*(z+1-rt)),rt===z+1&&(xe+=1),rt>z+1&&(xe+=4*(rt-z),we+=4*(rt-(z+1)))}for(ft=E[z].destinationEdges.iterator,ft.reset();ft.next();)if(rt=ft.value,at=rt.toVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt===z+1&&(we+=1)}for(ft=E[z+1].sourceEdges.iterator,ft.reset();ft.next();)if(rt=ft.value,at=rt.fromVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt<z&&(xe+=2*(z+1-rt),we+=2*(z-rt)),rt===z&&(we+=1),rt>z+1&&(xe+=4*(rt-(z+1)),we+=4*(rt-z))}for(ft=E[z+1].destinationEdges.iterator,ft.reset();ft.next();)if(rt=ft.value,at=rt.toVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt===z&&(xe+=1)}rt=at=0,ft=ee[E[z].index];var At=re[E[z].index],Kt=ee[E[z+1].index],Ei=re[E[z+1].index];ft!==-1&&(at+=Math.abs(ft-Fe),rt+=Math.abs(ft-Ve)),At!==-1&&(at+=Math.abs(At-Fe),rt+=Math.abs(At-Ve)),Kt!==-1&&(at+=Math.abs(Kt-Ne),rt+=Math.abs(Kt-Qe)),Ei!==-1&&(at+=Math.abs(Ei-Ne),rt+=Math.abs(Ei-Qe)),(we<xe-.5||we===xe&&ge<ce-.5||we===xe&&ge===ce&&rt<at-.5)&&(se=oe=!0,E[z].column=Ve,E[z+1].column=Qe,ce=E[z],E[z]=E[z+1],E[z+1]=ce)}for(z=0;z<b;z++)E[z].index=z;return vg(a,y,E),oe}ba.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=mg(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 ce=b[E].column,ge=a.nodeMinColumnSpace(b[E],!0),xe=a.nodeMinColumnSpace(b[E],!1),we=0;0>E-1||ce-b[E-1].column-1>ge+a.nodeMinColumnSpace(b[E-1],!1)?we=ce-1:we=ce,ge=E+1>=z||b[E+1].column-ce-1>xe+a.nodeMinColumnSpace(b[E+1],!0)?ce+1:ce;var Fe=xe=0,Ne=0;if(0>=x)for(var Qe=b[E].sourceEdges.iterator;Qe.next();){var Ve=Qe.value,rt=Ve.fromVertex;if(Ve.valid&&rt.layer!==y){var at=Oy(Ve),ft=Ve.portFromColOffset;Ve=Ve.portToColOffset,rt=rt.column,xe+=(Math.abs(ce+Ve-(rt+ft))+1)*at,Fe+=(Math.abs(we+Ve-(rt+ft))+1)*at,Ne+=(Math.abs(ge+Ve-(rt+ft))+1)*at}}if(0<=x)for(Qe=b[E].destinationEdges.iterator;Qe.next();)Ve=Qe.value,rt=Ve.toVertex,Ve.valid&&rt.layer!==y&&(at=Oy(Ve),ft=Ve.portFromColOffset,Ve=Ve.portToColOffset,rt=rt.column,xe+=(Math.abs(ce+ft-(rt+Ve))+1)*at,Fe+=(Math.abs(we+ft-(rt+Ve))+1)*at,Ne+=(Math.abs(ge+ft-(rt+Ve))+1)*at);Ve=ft=at=0,Qe=ee[b[E].index],rt=re[b[E].index],Qe!==-1&&(at+=Math.abs(Qe-ce),ft+=Math.abs(Qe-we),Ve+=Math.abs(Qe-ge)),rt!==-1&&(at+=Math.abs(rt-ce),ft+=Math.abs(rt-we),Ve+=Math.abs(rt-ge)),Fe<xe||Fe===xe&&ft<at?(se=oe=!0,b[E].column=we):(Ne<xe||Ne===xe&&Ve<at)&&(se=oe=!0,b[E].column=ge)}return vg(a,y,b),a.normalize(),oe}function jy(a,y,x){var E=mg(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),ce=0;if(ee[x]===-1)if(x===0&&x===b-1)ce=re;else if(x===0){var ge=E[x+1].column;ge-re===se+a.nodeMinColumnSpace(E[x+1],!0)?ce=re-1:ce=re}else x===b-1?(ge=E[x-1].column,ce=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,ce=(oe+se)/2|0);else x===0&&x===b-1?ce=ee[x]:x===0?(ge=E[x+1].column,se=ge-a.nodeMinColumnSpace(E[x+1],!0)-se-1,ce=Math.min(ee[x],se)):x===b-1?(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ce=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?ce=ee[x]:oe>=ee[x]?ce=oe:se<=ee[x]&&(ce=se));ce!==re&&(z=!0,E[x].column=ce)}vg(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?kd(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?kd(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=Ri(),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 In,t5(y,x);var z=null,ee=null,re=null,oe=null,se=(a.ve&1)!==0,ce=(a.ve&2)!==0,ge=(a.ve&4)!==0,xe=(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=to(y),b=E.next();!b.done;b=E.next())b.value.reverse();xe&&(a.verticalAlignment(y,x,!1),oe=av(a,y,!1,!0)),y.reverse(),ce&&(a.verticalAlignment(y,x,!0),ee=av(a,y,!0,!0)),ai(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(we){var Fe=Ri();se&&Fe.push(z.get(we)),ce&&Fe.push(ee.get(we)),ge&&Fe.push(re.get(we)),xe&&Fe.push(oe.get(we)),Fe.sort(function(Qe,Ve){return Qe-Ve});var Ne=Fe.length;Ne=(Fe[Math.floor((Ne-1)/2)]+Fe[Math.ceil((Ne-1)/2)])/2,ai(Fe),we.zc=Ne})}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 ce=Ky(se);if(0<ce.length){ce=ce[0].node===null;break e}}ce=!1}var ge=ce;if(oe===re.length-1||ge){for(ce=ee.length-1,ge&&(ce=Ky(se)[0].index);z<=oe;){if(se=re[z],!se.bo){ge=[];for(var xe=to(se.sourceEdgesArrayAccess),we=xe.next();!we.done;we=xe.next())we=we.value,we.valid&&ge.push(we);se.bo=ge}for(se=to(se.bo),ge=se.next();!ge.done;ge=se.next())ge=ge.value,xe=ge.fromVertex.index,(xe<b||xe>ce)&&y.add(ge);z++}b=ce}}}ba.prototype.verticalAlignment=function(a,y,x){n5(a),a=to(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=to(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,xe){return ge.vi-xe.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],ce=void 0;ce=x?hv(se,z):hv(z,se),!y.contains(ce)&&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=to(y),ee=z.next();!ee.done;ee=z.next()){var re=to(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=to(y),re=z.next();!re.done;re=z.next()){re=to(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var se=0,ce=oe;ce.align!==oe;){var ge=ce.align,xe=ee?ce.width:ce.height,we=ee?ge.width:ge.height;if(x){var Fe=hv(ce,ge),Ne=Fe.portFromPos,Qe=Fe.portToPos;Fe.link!==null&&(ce.node&&ce.node!==Fe.link.fromNode&&(Ne=ee?ce.focusX:ce.focusY),ge.node&&ge.node!==Fe.link.toNode&&(Qe=ee?ge.focusX:ge.focusY))}else Fe=hv(ge,ce),Ne=Fe.portToPos,Qe=Fe.portFromPos,Fe.link!==null&&(ce.node&&ce.node!==Fe.link.toNode&&(Ne=ee?ce.focusX:ce.focusY),ge.node&&ge.node!==Fe.link.fromNode&&(Qe=ee?ge.focusX:ge.focusY));xe=E?ce.qg+(xe-Ne)-(we-Qe):ce.qg+Ne-Qe,ge.qg=xe,se=Math.min(se,xe),ce=ce.align}ce=oe;do ce.qg=ce.qg-se,ce=ce.align;while(ce!==oe)}}for(x=to(y),ee=x.next();!ee.done;ee=x.next())for(z=to(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 hi,y=to(y),ee=y.next();!ee.done;ee=y.next())for(x=to(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&&Pt("Could not determine previous vertex in layer"),y[x][a-1]}ba.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Ri(),b=Ri(),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)));ai(E),ai(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}ba.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?Vu:ou:a.K===90?y?ou:Vu:a.K===180?y?_u:ul:y?ul:_u}ba.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,ce=oe.column|0;E?(ee=y.x+this.kc*ce,se=this.Kd[se]):(ee=this.Kd[se],se=y.y+this.kc*ce),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 Ge(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},ba.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 tn(0,0,x,Math.abs(this.Ta[0]))):y.push(new tn(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new tn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new tn(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new tn(0,0,Math.abs(this.Ta[0]),x)):y.push(new tn(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new tn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new tn(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},ba.prototype.commitLayers=function(){},ba.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 ce=x.fromVertex,ge=x.toVertex;if(x.valid)y.curve===vd&&y.pointsCount===4&&(ce.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===il&&(E=!0),re!==null&&oe===il&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(Dr),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(Dr),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(ce.layer===ge.layer)y.zf();else{var xe=!1,we=!1,Fe=this.ie,Ne=y.firstPickIndex+1;if(y.isOrthogonal){we=!0;var Qe=y.pointsCount;4<Qe&&y.points.removeRange(2,Qe-3)}else if(y.curve===vd)xe=!0,Qe=y.pointsCount,4<Qe&&y.points.removeRange(2,Qe-3),Qe===4&&(Ne=2);else{Qe=y.pointsCount;var Ve=se===il,rt=oe===il;2<Qe&&Ve&&rt?y.points.removeRange(1,Qe-2):3<Qe&&Ve&&!rt?y.points.removeRange(1,Qe-3):3<Qe&&!Ve&&rt?y.points.removeRange(2,Qe-2):4<Qe&&!Ve&&!rt&&y.points.removeRange(2,Qe-3)}if(x.rev){for(;ge!==null&&ce!==ge;){var at=Qe=null;for(Ve=ge.sourceEdges.iterator;Ve.next()&&(rt=Ve.value,rt.link!==x.link||(Qe=rt.fromVertex,at=rt.toVertex,Qe.node!==null)););if(Qe===null)break;if(Qe!==ce){Ve=y.i(Ne-1).x,rt=y.i(Ne-1).y;var ft=Qe.centerX,At=Qe.centerY;if(we)this.K===180||this.K===0?Ne===y.firstPickIndex+1?(y.m(Ne++,Ve,rt),y.m(Ne++,Ve,At)):(at!==null?at.centerY:rt)!==At&&(at=this.Ta[Qe.layer-1]+this.Rf.x,y.m(Ne++,at,rt),y.m(Ne++,at,At)):Ne===y.firstPickIndex+1?(y.m(Ne++,Ve,rt),y.m(Ne++,ft,rt)):(at!==null?at.centerX:Ve)!==ft&&(at=this.Ta[Qe.layer-1]+this.Rf.y,y.m(Ne++,Ve,at),y.m(Ne++,ft,at));else if(Ne===y.firstPickIndex+1){at=Math.max(10,this.he[ge.layer]);var Kt=Math.max(10,this.Ld[ge.layer]);if(xe)this.K===180?ft<=ge.bounds.x?(ge=ge.bounds.x,y.m(Ne++,ge-at,At),y.m(Ne++,ge,At),y.m(Ne++,ge+Kt,At)):(y.m(Ne++,ft-at,At),y.m(Ne++,ft,At),y.m(Ne++,ft+Kt,At)):this.K===90?At>=ge.bounds.bottom?(ge=ge.bounds.y+ge.bounds.height,y.m(Ne++,ft,ge+Kt),y.m(Ne++,ft,ge),y.m(Ne++,ft,ge-at)):(y.m(Ne++,ft,At+Kt),y.m(Ne++,ft,At),y.m(Ne++,ft,At-at)):this.K===270?At<=ge.bounds.y?(ge=ge.bounds.y,y.m(Ne++,ft,ge-at),y.m(Ne++,ft,ge),y.m(Ne++,ft,ge+Kt)):(y.m(Ne++,ft,At-at),y.m(Ne++,ft,At),y.m(Ne++,ft,At+Kt)):this.K===0&&(ft>=ge.bounds.right?(ge=ge.bounds.x+ge.bounds.width,y.m(Ne++,ge+Kt,At),y.m(Ne++,ge,At),y.m(Ne++,ge-at,At)):(y.m(Ne++,ft+Kt,At),y.m(Ne++,ft,At),y.m(Ne++,ft-at,At)));else{y.m(Ne++,Ve,rt);var Ei=0;this.K===180||this.K===0?((this.K===180?ft>=ge.bounds.right:ft<=ge.bounds.x)&&(Ei=(this.K===0?-at:Kt)/2),y.m(Ne++,Ve+Ei,At)):((this.K===270?At>=ge.bounds.bottom:At<=ge.bounds.y)&&(Ei=(this.K===90?-at:Kt)/2),y.m(Ne++,ft,rt+Ei)),y.m(Ne++,ft,At)}}else at=Math.max(10,this.he[Qe.layer]),Kt=Math.max(10,this.Ld[Qe.layer]),xe?this.K===180?(y.m(Ne++,ft-at-Fe,At),y.m(Ne++,Math.min(ft-at+Fe/2,ft),At),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,Math.max(ft+Kt-Fe/2,ft),At),y.m(Ne++,ft+Kt+Fe,At)):this.K===90?(y.m(Ne++,ft,At+Kt+Fe),y.m(Ne++,ft,Math.max(At+Kt-Fe/2,At)),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,ft,Math.min(At-at+Fe/2,At)),y.m(Ne++,ft,At-at-Fe)):this.K===270?(y.m(Ne++,ft,At-at-Fe),y.m(Ne++,ft,Math.min(At-at+Fe/2,At)),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,ft,Math.max(At+Kt-Fe/2,At)),y.m(Ne++,ft,At+Kt+Fe)):(y.m(Ne++,ft+Kt+Fe,At),y.m(Ne++,Math.max(ft+Kt-Fe/2,ft),At),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,Math.min(ft-at+Fe/2,ft),At),y.m(Ne++,ft-at-Fe,At)):y.m(Ne++,ft,At)}ge=Qe}(re===null||se!==il||we)&&(Ve=y.i(Ne-1).x,rt=y.i(Ne-1).y,ft=y.i(Ne).x,At=y.i(Ne).y,we?(Fe=this.Ld[ce.layer],this.K===180||this.K===0?(we=rt,we>=ce.bounds.y&&we<=ce.bounds.bottom&&(this.K===180?ft>=ce.bounds.x:ft<=ce.bounds.right)&&(ge=ce.centerX+(this.K===180?-Fe:Fe),we<ce.bounds.y+ce.bounds.height/2?we=ce.bounds.y-this.kc/2:we=ce.bounds.bottom+this.kc/2,y.m(Ne++,ge,rt),y.m(Ne++,ge,we)),y.m(Ne++,ft,we)):(we=Ve,we>=ce.bounds.x&&we<=ce.bounds.right&&(this.K===270?At>=ce.bounds.y:At<=ce.bounds.bottom)&&(ge=ce.centerY+(this.K===270?-Fe:Fe),we<ce.bounds.x+ce.bounds.width/2?we=ce.bounds.x-this.kc/2:we=ce.bounds.right+this.kc/2,y.m(Ne++,Ve,ge),y.m(Ne++,we,ge)),y.m(Ne++,we,At)),y.m(Ne++,ft,At)):xe?(at=Math.max(10,this.he[ce.layer]),Kt=Math.max(10,this.Ld[ce.layer]),this.K===180&&ft>=ce.bounds.x?(ge=ce.bounds.x+ce.bounds.width,y.L(Ne-2,ge,rt),y.L(Ne-1,ge+Kt,rt)):this.K===90&&At<=ce.bounds.bottom?(ge=ce.bounds.y,y.L(Ne-2,Ve,ge),y.L(Ne-1,Ve,ge-at)):this.K===270&&At>=ce.bounds.y?(ge=ce.bounds.y+ce.bounds.height,y.L(Ne-2,Ve,ge),y.L(Ne-1,Ve,ge+Kt)):this.K===0&&ft<=ce.bounds.right&&(ge=ce.bounds.x,y.L(Ne-2,ge,rt),y.L(Ne-1,ge-at,rt))):(at=Math.max(10,this.he[ce.layer]),Kt=Math.max(10,this.Ld[ce.layer]),we=0,this.K===180||this.K===0?((this.K===180?ft<=ce.bounds.x:ft>=ce.bounds.right)&&(we=(this.K===0?Kt:-at)/2),y.m(Ne++,ft+we,rt)):((this.K===270?At<=ce.bounds.y:At>=ce.bounds.bottom)&&(we=(this.K===90?Kt:-at)/2),y.m(Ne++,Ve,At+we)),y.m(Ne++,ft,At)))}else{for(;ce!==null&&ce!==ge;){for(at=Qe=null,ce=ce.destinationEdges.iterator;ce.next()&&(Ve=ce.value,Ve.link!==x.link||(Qe=Ve.toVertex,at=Ve.fromVertex,at.node!==null&&(at=null),Qe.node!==null)););if(Qe===null)break;Qe!==ge&&(Ve=y.i(Ne-1).x,rt=y.i(Ne-1).y,ft=Qe.centerX,At=Qe.centerY,we?this.K===180||this.K===0?(at!==null?at.centerY:rt)!==At&&(at=this.Ta[Qe.layer]+this.Rf.x,Ne===y.firstPickIndex+1&&(at=this.K===0?Math.max(at,Ve):Math.min(at,Ve)),y.m(Ne++,at,rt),y.m(Ne++,at,At)):(at!==null?at.centerX:Ve)!==ft&&(at=this.Ta[Qe.layer]+this.Rf.y,Ne===y.firstPickIndex+1&&(at=this.K===90?Math.max(at,rt):Math.min(at,rt)),y.m(Ne++,Ve,at),y.m(Ne++,ft,at)):(at=Math.max(10,this.he[Qe.layer]),Kt=Math.max(10,this.Ld[Qe.layer]),xe?this.K===180?(y.m(Ne++,ft+Kt+Fe,At),y.m(Ne++,Math.max(ft+Kt-Fe/2,ft),At),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,Math.min(ft-at+Fe/2,ft),At),y.m(Ne++,ft-at-Fe,At)):this.K===90?(y.m(Ne++,ft,At-at-Fe),y.m(Ne++,ft,Math.min(At-at+Fe/2,At)),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,ft,Math.max(At+Kt-Fe/2,At)),y.m(Ne++,ft,At+Kt+Fe)):this.K===270?(y.m(Ne++,ft,At+Kt+Fe),y.m(Ne++,ft,Math.max(At+Kt-Fe/2,At)),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,ft,Math.min(At-at+Fe/2,At)),y.m(Ne++,ft,At-at-Fe)):(y.m(Ne++,ft-at-Fe,At),y.m(Ne++,Math.min(ft-at+Fe/2,ft),At),y.m(Ne++,ft,At),y.m(Ne++,ft,At),y.m(Ne++,Math.max(ft+Kt-Fe/2,ft),At),y.m(Ne++,ft+Kt+Fe,At)):this.K===180?(y.m(Ne++,ft+Kt,At),y.m(Ne++,ft-at,At)):this.K===90?(y.m(Ne++,ft,At-at),y.m(Ne++,ft,At+Kt)):this.K===270?(y.m(Ne++,ft,At+Kt),y.m(Ne++,ft,At-at)):(y.m(Ne++,ft-at,At),y.m(Ne++,ft+Kt,At)))),ce=Qe}we&&(Ve=y.i(Ne-1).x,rt=y.i(Ne-1).y,ft=y.i(Ne).x,At=y.i(Ne).y,this.K===180||this.K===0?rt!==At&&(at=this.K===0?Math.min(Math.max((ft+Ve)/2,this.Ta[ge.layer]+this.Rf.x),ft):Math.max(Math.min((ft+Ve)/2,this.Ta[ge.layer]+this.Rf.x),ft),y.m(Ne++,at,rt),y.m(Ne++,at,At)):Ve!==ft&&(at=this.K===90?Math.min(Math.max((At+rt)/2,this.Ta[ge.layer]+this.Rf.y),At):Math.max(Math.min((At+rt)/2,this.Ta[ge.layer]+this.Rf.y),At),y.m(Ne++,Ve,at),y.m(Ne++,ft,at)))}E!==null&&xe&&4<=y.pointsCount&&(ee!==null&&(ee=se===il?y.getLinkPointFromPoint(b,ee,ee.ga(Dr),y.i(3),!0):y.i(0),se===il&&(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===il?y.getLinkPointFromPoint(z,re,re.ga(Dr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===il&&(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()},ba.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new an,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 yg;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 ce=0;oe.y<z.y?ce=se.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ce=se.y>z.y?0:ee.x<z.x?2:1),re.j=ce}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ce=1,re=x[z].jc,oe=z;oe<b;oe++)se=x[oe],se.jc!==re&&(ce++,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,ce<ge?(oe=!1,se=ce,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ce=0,ge=z;ge<b;ge++){var xe=x[ge];(oe?xe.first:xe.jc)!==re&&(ce++,re=oe?xe.first:xe.jc);var we=xe.link;z=we.i(xe.index),ee=we.i(xe.index+1);var Fe=this.linkSpacing*(ce-(se-1)/2);y++,we.uh(),we.L(xe.index,z.x,z.y+Fe),we.L(xe.index+1,ee.x,ee.y+Fe),we.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),ee=E.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new yg,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),ce=0,oe.x<z.x?ce=se.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ce=se.x>z.x?0:ee.y<z.y?2:1),re.j=ce),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ce=1,re=x[z].jc,oe=z;oe<b;oe++)se=x[oe],se.jc!==re&&(ce++,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,ce<ge?(oe=!1,se=ce,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ce=0,ge=z;ge<b;ge++)xe=x[ge],(oe?xe.first:xe.jc)!==re&&(ce++,re=oe?xe.first:xe.jc),we=xe.link,z=we.i(xe.index),ee=we.i(xe.index+1),Fe=this.linkSpacing*(ce-(se-1)/2),y++,we.uh(),we.L(xe.index,z.x+Fe,z.y),we.L(xe.index+1,ee.x+Fe,ee.y),we.zf()}z=b}a=E}}}},Be=ba.prototype,Be.Vx=function(a,y){return a instanceof yg&&y instanceof yg&&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 yg&&y instanceof yg&&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 yg&&y instanceof yg&&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)&&Pt("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 mg(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 vg(a,y,x){a.He[a.tc[y]]=x}zt.Object.defineProperties(ba.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()):Pt("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!==_y||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==cv&&a!==Gy&&a!==Uy||(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!==Hy||(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 on(ba,"CycleDepthFirst",0),zy=new on(ba,"CycleGreedy",1),Nm=new on(ba,"CycleFromLayers",2),uv=new on(ba,"LayerOptimalLinkLength",0),Vy=new on(ba,"LayerLongestPathSink",1),_y=new on(ba,"LayerLongestPathSource",2),cv=new on(ba,"InitDepthFirstOut",0),Gy=new on(ba,"InitDepthFirstIn",1),Uy=new on(ba,"InitNaive",2),Zy=new on(ba,"AggressiveNone",0),dv=new on(ba,"AggressiveLess",1),Hy=new on(ba,"AggressiveMore",2),r5=8;ba.className="LayeredDigraphLayout",ba.CycleDepthFirst=lv,ba.CycleGreedy=zy,ba.CycleFromLayers=Nm,ba.LayerOptimalLinkLength=uv,ba.LayerLongestPathSink=Vy,ba.LayerLongestPathSource=_y,ba.InitDepthFirstOut=cv,ba.InitDepthFirstIn=Gy,ba.InitNaive=Uy,ba.AggressiveNone=Zy,ba.AggressiveLess=dv,ba.AggressiveMore=Hy,ba.PackNone=0,ba.PackExpand=1,ba.PackStraighten=2,ba.PackMedian=4,ba.PackAll=15,ba.AlignNone=0,ba.AlignUpperLeft=1,ba.AlignUpperRight=2,ba.AlignLowerLeft=4,ba.AlignLowerRight=8,ba.AlignAll=15;function yg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}yg.className="SegInfo";function jp(a){as.call(this,a)}_t(jp,as),jp.prototype.createVertex=function(){return new Nd(this)},jp.prototype.createEdge=function(){return new Tm(this)},jp.className="LayeredDigraphNetwork";function Nd(a){ql.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}_t(Nd,ql);function px(a,y){return a.index-y.index}function hv(a,y){if(!a.$n){for(var x=[],E=to(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=to(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Pt("Unable to find destination edge to given vertex")}function Ky(a){if(!a.co){for(var y=[],x=to(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=to(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}Nd.prototype.Cl=function(a){ql.prototype.Cl.call(this,a),this.bo=this.co=null},Nd.prototype.Kl=function(a){ql.prototype.Kl.call(this,a),this.bo=this.co=null},Nd.prototype.zl=function(a){ql.prototype.zl.call(this,a),this.$n=this.ao=null},Nd.prototype.Jl=function(a){ql.prototype.Jl.call(this,a),this.$n=this.ao=null},zt.Object.defineProperties(Nd.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)}}}),Nd.prototype.deleteDestinationEdge=Nd.prototype.Jl,Nd.prototype.addDestinationEdge=Nd.prototype.zl,Nd.prototype.deleteSourceEdge=Nd.prototype.Kl,Nd.prototype.addSourceEdge=Nd.prototype.Cl,Nd.className="LayeredDigraphVertex";function Tm(a){od.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}_t(Tm,od),zt.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 ko(a){Cs.call(this),this.Ub=new In,this.Wn=mv,this.ud=ff,this.vo=yv,this.Bq=r1,this.$v=[],this.td=!0,this.Rb=Sv,this.$d=new gi(10,10).freeze();var y=new sp(this);this.W=new Hd(y),this.Y=new Hd(y),this.ru=[],a&&Object.assign(this,a)}_t(ko,Cs),ko.prototype.cloneProtected=function(a){Cs.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)},ko.prototype.qb=function(a){a.classType===ko?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:Pt("Unknown enum value: "+a):Cs.prototype.qb.call(this,a)},ko.prototype.createNetwork=function(){return new sp(this)},ko.prototype.makeNetwork=function(a){function y(E){if(E instanceof Ai)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof oi){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 Ht?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof _r?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ko.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 Ht&&(y=a),this.path===mv&&y!==null?this.ud=y.isTreePathToChildren?ff:op:this.ud=this.path===mv?ff: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 In,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Ai?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Hd&&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 Hd&&yx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hd&&Sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hd&&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 Hd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new In,this.isValidLayout=!0};function a5(a){var y=new In;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ko.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case ff:x.sourceEdges.count===0&&this.Ub.add(x);break;case op:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Pt("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 ff: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:Pt("Unhandled path value "+a.ud.toString())}}return E}function Yy(a,y){if(y!==null){switch(a.ud){case ff:if(0<y.destinationEdges.count){for(var x=new an,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 an,E=y.sourceVertexes;E.next();)b=E.value,vx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:Pt("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}ko.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===mf&&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}}ko.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(s5(this,a)),a.parent!==null&&a.parent.alignment===mf){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])}}ko.prototype.assignTreeVertexValues=function(){};function xx(a,y){if(y!==null){y.alignment!==mf&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)xx(a,y[E])}}ko.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:Pt("Unhandled sorting value "+a.sorting.toString())}},ko.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ko.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=Sg(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 ce=se.value;ce.category==="Comment"&&ce.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ce),ce.Va(),ce=ce.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ce.width),ee+=ce.height+Math.abs(re)):(z+=ce.width+Math.abs(re),ee=Math.max(ee,ce.height)),re=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=tn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,tn.free(b))};function Sg(a){return a===Zf||a===mf||a===Hf||a===Ff}function Om(a){return a===Zf||a===mf}function Xy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Sg(x)){if(Om(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Hf)return!0}}return!1}ko.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=Sg(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,ce=se.length,ge=Ge.alloc(),xe=0;xe<ce;xe++){var we=se[xe],Fe=we.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),we.move(ge),we=we.Sd();we.next();){var Ne=we.value;Ne.fromSpot=_u,Ne.toSpot=ul}else for(ge.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=ul,Ne.toSpot=_u;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=ul,Ne.toSpot=_u;else for(ge.h(a.bounds.x+a.commentMargin-Fe.width,a.bounds.y+oe),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=_u,Ne.toSpot=ul;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),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=Vu,Ne.toSpot=ou;else for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=ou,Ne.toSpot=Vu;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=ou,Ne.toSpot=Vu;else for(ge.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Fe.height),we.move(ge),we=we.Sd();we.next();)Ne=we.value,Ne.fromSpot=Vu,Ne.toSpot=ou;oe=0<=a.commentSpacing?oe+(Fe.width+a.commentSpacing):oe+(a.commentSpacing-Fe.width)}}if(Ge.free(ge),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===ff)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)}},ko.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===mf)Ex(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=Sg(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=uh(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===gf;var se=oe===pf,ce=Sg(oe),ge=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var xe=a.nodeSpacing,we=this.computeNodeIndent(a),Fe=a.rowSpacing,Ne=0;(E||se||a.hm||a.im&&a.maxGenerationCount===1)&&(Ne=Math.max(0,a.rowIndent)),E=a.width;var Qe=a.height,Ve=0,rt=0,at=0,ft=null,At=null,Kt=0,Ei=0,zi=0,Ni=0,ri=0,Mn=0,jr=0,Fr=0;if(ce&&!Om(oe)&&135<b&&ee.reverse(),Om(oe))if(1<re)for(var ra=0;ra<re;ra++)ra%2===0&&ra!==re-1&&(Fr=Math.max(Fr,y?ee[ra].Da.width:ee[ra].Da.height));else re===1&&(Fr=y?ee[0].Da.width:ee[0].Da.height);if(ce){switch(oe){case Zf:rt=135>b?Px(this,a,ee,Fr,Ve,rt):wx(this,a,ee,Fr,Ve,rt),Fr=rt.x,Ve=rt.width,rt=rt.height;break;case Hf:for(ft=0;ft<re;ft++)At=ee[ft],ge=At.Da,at=Mn===0?0:Fe,y?(At.S.h(z-ge.width,Ni+at),Ve=Math.max(Ve,ge.width),rt=Math.max(rt,Ni+at+ge.height),Ni+=at+ge.height):(At.S.h(zi+at,z-ge.height),Ve=Math.max(Ve,zi+at+ge.width),rt=Math.max(rt,ge.height),zi+=at+ge.width),Mn++;break;case Ff:for(ft=0;ft<re;ft++)At=ee[ft],z=At.Da,ge=Mn===0?0:Fe,y?(At.S.h(xe/2+a.focus.x,Ni+ge),Ve=Math.max(Ve,z.width),rt=Math.max(rt,Ni+ge+z.height),Ni+=ge+z.height):(At.S.h(zi+ge,xe/2+a.focus.y),Ve=Math.max(Ve,zi+ge+z.width),rt=Math.max(rt,z.height),zi+=ge+z.width),Mn++}ft=Xc(this,2),At=Xc(this,2),y?(ft[0].h(0,0),ft[1].h(0,rt),At[0].h(Ve,0)):(ft[0].h(0,0),ft[1].h(Ve,0),At[0].h(0,rt)),At[1].h(Ve,rt)}else for(ra=0;ra<re;ra++){var ns=ee[ra],uu=ns.Da;if(y){0<ge&&0<Mn&&zi+xe+uu.width>ge&&(zi<z&&Wg(a,oe,z-zi,0,jr,ra-1),ri++,Mn=0,jr=ra,at=rt,zi=0,Ni=135<b?-rt-Fe:rt+Fe),gv(this,ns,0,Ni);var vu=0;if(Mn===0)ft=ns.Yo,At=ns.kp,Kt=uu.width,Ei=uu.height,(ft===null||At===null||b!==uh(ns))&&(ft=Xc(this,2),At=Xc(this,2),ft[0].h(0,0),ft[1].h(0,Ei),At[0].h(Kt,0),At[1].h(Kt,Ei));else{var uc=Ri();Ei=Cx(this,a,ns,ft,At,Kt,Ei,uc),vu=Ei.x,ft=uc[0],At=uc[1],Kt=Ei.width,Ei=Ei.height,ai(uc),zi<uu.width&&0>vu&&(rp(a,-vu,0,jr,ra-1),pv(ft,-vu,0),pv(At,-vu,0),vu=0)}ns.S.h(vu,Ni),Ve=Math.max(Ve,Kt),rt=Math.max(rt,at+(ri===0?0:Fe)+uu.height),zi=Kt}else 0<ge&&0<Mn&&Ni+xe+uu.height>ge&&(Ni<z&&Wg(a,oe,0,z-Ni,jr,ra-1),ri++,Mn=0,jr=ra,at=Ve,Ni=0,zi=135<b?-Ve-Fe:Ve+Fe),gv(this,ns,zi,0),vu=0,Mn===0?(ft=ns.Yo,At=ns.kp,Kt=uu.width,Ei=uu.height,(ft===null||At===null||b!==uh(ns))&&(ft=Xc(this,2),At=Xc(this,2),ft[0].h(0,0),ft[1].h(Kt,0),At[0].h(0,Ei),At[1].h(Kt,Ei))):(uc=Ri(),Ei=Cx(this,a,ns,ft,At,Kt,Ei,uc),vu=Ei.x,ft=uc[0],At=uc[1],Kt=Ei.width,Ei=Ei.height,ai(uc),Ni<uu.height&&0>vu&&(rp(a,0,-vu,jr,ra-1),pv(ft,0,-vu),pv(At,0,-vu),vu=0)),ns.S.h(zi,vu),rt=Math.max(rt,Ei),Ve=Math.max(Ve,at+(ri===0?0:Fe)+uu.width),Ni=Ei;Mn++}switch(0<ri&&(y?(rt+=Math.max(0,x),zi<Ve&&Wg(a,oe,Ve-zi,0,jr,re-1),0<Ne&&(se||rp(a,Ne,0,0,re-1),Ve+=Ne)):(Ve+=Math.max(0,x),Ni<rt&&Wg(a,oe,0,rt-Ni,jr,re-1),0<Ne&&(se||rp(a,0,Ne,0,re-1),rt+=Ne))),Ne=se=0,oe){case Vp:y?se+=Ve/2-a.focus.x-we/2:Ne+=rt/2-a.focus.y-we/2;break;case ap:0<ri?y?se+=Ve/2-a.focus.x-we/2:Ne+=rt/2-a.focus.y-we/2:y?(Fr=ee[0].S.x+ee[0].la.x,se+=Fr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-Fr)/2-a.focus.x-we/2):(Fr=ee[0].S.y+ee[0].la.y,Ne+=Fr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-Fr)/2-a.focus.y-we/2);break;case gf:y?(se-=we,Ve+=we):(Ne-=we,rt+=we);break;case pf:y?(se+=Ve-a.width+we,Ve+=we):(Ne+=rt-a.height+we,rt+=we);break;case Zf:y?1<re?se+=Fr+xe/2-a.focus.x:se+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Ne+=Fr+xe/2-a.focus.y:Ne+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Hf:y?se+=Ve+xe/2-a.focus.x:Ne+=rt+xe/2-a.focus.y;break;case Ff:break;default:rt=this.customAlignment(a,se,Ne,Ve,rt),se=rt[0],Ne=rt[1],Ve=rt[2],rt=rt[3]}for(we=0;we<re;we++)Fr=ee[we],y?Fr.S.h(Fr.S.x+Fr.la.x-se,Fr.S.y+(135<b?(ce?-rt:-Fr.Da.height)+Fr.la.y-x:Qe+x+Fr.la.y)):Fr.S.h(Fr.S.x+(135<b?(ce?-Ve:-Fr.Da.width)+Fr.la.x-x:E+x+Fr.la.x),Fr.S.y+Fr.la.y-Ne);if(re=ee=0,ce?y?(Ve=Jy(a,Ve,se),0>se&&(se=0),135<b&&(Ne+=rt+x),rt+=Qe+x,oe===Ff&&(ee+=xe/2+a.focus.x),re+=Qe+x):(135<b&&(se+=Ve+x),Ve+=E+x,rt=Qy(a,rt,Ne),0>Ne&&(Ne=0),oe===Ff&&(re+=xe/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>Ve&&(Ve=qy(oe,E-Ve,0),ee=Ve.x,re=Ve.y,Ve=E,se=0):Ve=Jy(a,Ve,se),0>se&&(ee-=se,se=0),135<b&&(Ne+=rt+x),rt=Math.max(Math.max(rt,Qe),rt+Qe+x),re+=Qe+x):(135<b&&(se+=Ve+x),Ve=Math.max(Math.max(Ve,E),Ve+E+x),a.comments===null?Qe>rt&&(rt=qy(oe,0,Qe-rt),ee=rt.x,re=rt.y,rt=Qe,Ne=0):rt=Qy(a,rt,Ne),0>Ne&&(re-=Ne,Ne=0),ee+=E+x),0<ri)b=Xc(this,4),ri=Xc(this,4),y?(b[2].h(0,Qe+x),b[3].h(b[2].x,rt),ri[2].h(Ve,b[2].y),ri[3].h(ri[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ve,b[2].y),ri[2].h(b[2].x,rt),ri[3].h(b[3].x,ri[2].y));else{for(b=Xc(this,ft.length+2),ri=Xc(this,At.length+2),oe=0;oe<ft.length;oe++)ce=ft[oe],b[oe+2].h(ce.x+ee,ce.y+re);for(oe=0;oe<At.length;oe++)ce=At[oe],ri[oe+2].h(ce.x+ee,ce.y+re)}y?(b[0].h(se,0),b[1].h(b[0].x,Qe),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])),ri[0].h(se+E,0),ri[1].h(ri[0].x,Qe),ri[2].y<ri[1].y&&(ri[2].x<ri[0].x?ri[2].assign(ri[1]):ri[1].assign(ri[2])),ri[3].y<ri[2].y&&(ri[3].x<ri[0].x?ri[3].assign(ri[2]):ri[2].assign(ri[3])),b[2].y-=x/2,ri[2].y-=x/2):(b[0].h(0,Ne),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])),ri[0].h(0,Ne+Qe),ri[1].h(E,ri[0].y),ri[2].x<ri[1].x&&(ri[2].y<ri[0].y?ri[2].assign(ri[1]):ri[1].assign(ri[2])),ri[3].x<ri[2].x&&(ri[3].y<ri[0].y?ri[3].assign(ri[2]):ri[2].assign(ri[3])),b[2].x-=x/2,ri[2].x-=x/2),bh(this,ft),bh(this,At),a.Yo=b,a.kp=ri,a.la.h(se,Ne),a.Da.h(Ve,rt)}break;default:Pt("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=Sg(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=uh(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,ce=se===gf,ge=se===pf;re=Sg(se);var xe=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var we=y.nodeSpacing,Fe=a.computeNodeIndent(y),Ne=ce||ge?0:Fe/2,Qe=y.rowSpacing,Ve=0;(ce||ge||y.hm||y.im&&y.maxGenerationCount===1)&&(Ve=Math.max(0,y.rowIndent)),ce=y.width;var rt=y.height,at=0,ft=0,At=0,Kt=0,Ei=0,zi=0,Ni=0,ri=0,Mn=0,jr=0;if(re&&!Om(se)&&135<E&&b.reverse(),Om(se))if(1<ee)for(var Fr=0;Fr<ee;Fr++){var ra=b[Fr],ns=ra.Da;Fr%2===0&&Fr!==ee-1?Mn=Math.max(Mn,(x?ns.width:ns.height)+a.computeBusNodeSpacing(ra)-we):Fr%2!==0&&(jr=Math.max(jr,(x?ns.width:ns.height)+a.computeBusNodeSpacing(ra)-we))}else ee===1&&(Mn=x?b[0].Da.width:b[0].Da.height);if(re)switch(se){case Zf:case mf:ft=135>E?Px(a,y,b,Mn,at,ft):wx(a,y,b,Mn,at,ft),Mn=ft.x,at=ft.width,ft=ft.height;break;case Hf:for(xe=0;xe<ee;xe++)Ne=b[xe],At=Ne.Da,jr=Ni===0?0:Qe,x?(Ne.S.h(z-At.width,Ei+jr),at=Math.max(at,At.width),ft=Math.max(ft,Ei+jr+At.height),Ei+=jr+At.height):(Ne.S.h(Kt+jr,z-At.height),at=Math.max(at,Kt+jr+At.width),ft=Math.max(ft,At.height),Kt+=jr+At.width),Ni++;break;case Ff:for(z=0;z<ee;z++)xe=b[z],Ne=xe.Da,At=Ni===0?0:Qe,x?(xe.S.h(we/2+y.focus.x,Ei+At),at=Math.max(at,Ne.width),ft=Math.max(ft,Ei+At+Ne.height),Ei+=At+Ne.height):(xe.S.h(Kt+At,we/2+y.focus.y),at=Math.max(at,Kt+At+Ne.width),ft=Math.max(ft,Ne.height),Kt+=At+Ne.width),Ni++}else for(jr=0;jr<ee;jr++)Fr=b[jr],ra=Fr.Da,x?(0<xe&&0<Ni&&Kt+we+ra.width>xe&&(Kt<z&&Wg(y,se,z-Kt,0,ri,jr-1),zi++,Ni=0,ri=jr,At=ft,Kt=0,Ei=135<E?-ft-Qe:ft+Qe),ns=Ni===0?Ne:we,gv(a,Fr,0,Ei),Fr.S.h(Kt+ns,Ei),at=Math.max(at,Kt+ns+ra.width),ft=Math.max(ft,At+(zi===0?0:Qe)+ra.height),Kt+=ns+ra.width):(0<xe&&0<Ni&&Ei+we+ra.height>xe&&(Ei<z&&Wg(y,se,0,z-Ei,ri,jr-1),zi++,Ni=0,ri=jr,At=at,Ei=0,Kt=135<E?-at-Qe:at+Qe),ns=Ni===0?Ne:we,gv(a,Fr,Kt,0),Fr.S.h(Kt,Ei+ns),ft=Math.max(ft,Ei+ns+ra.height),at=Math.max(at,At+(zi===0?0:Qe)+ra.width),Ei+=ns+ra.height),Ni++;switch(0<zi&&(x?(ft+=Math.max(0,oe),Kt<at&&Wg(y,se,at-Kt,0,ri,ee-1),0<Ve&&(ge||rp(y,Ve,0,0,ee-1),at+=Ve)):(at+=Math.max(0,oe),Ei<ft&&Wg(y,se,0,ft-Ei,ri,ee-1),0<Ve&&(ge||rp(y,0,Ve,0,ee-1),ft+=Ve))),Ve=ge=0,se){case Vp:x?ge+=at/2-y.focus.x-Fe/2:Ve+=ft/2-y.focus.y-Fe/2;break;case ap:0<zi?x?ge+=at/2-y.focus.x-Fe/2:Ve+=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,Ve+=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 gf:x?(ge-=Fe,at+=Fe):(Ve-=Fe,ft+=Fe);break;case pf:x?(ge+=at-y.width+Fe,at+=Fe):(Ve+=ft-y.height+Fe,ft+=Fe);break;case Zf:case mf:x?1<ee?ge+=Mn+we/2-y.focus.x:ge+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?Ve+=Mn+we/2-y.focus.y:Ve+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Hf:x?ge+=at+we/2-y.focus.x:Ve+=ft+we/2-y.focus.y;break;case Ff:break;default:a=a.customAlignment(y,ge,Ve,at,ft),ge=a[0],Ve=a[1],at=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:rt+oe+Fe.la.y)):Fe.S.h(Fe.S.x+(135<E?(re?-at:-Fe.Da.width)+Fe.la.x-oe:ce+oe+Fe.la.x),Fe.S.y+Fe.la.y-Ve);x?(at=Jy(y,at,ge),0>ge&&(ge=0),135<E&&(Ve+=ft+oe),ft=Math.max(Math.max(ft,rt),ft+rt+oe)):(135<E&&(ge+=at+oe),at=Math.max(Math.max(at,ce),at+ce+oe),ft=Qy(y,ft,Ve),0>Ve&&(Ve=0)),y.la.h(ge,Ve),y.Da.h(at,ft)}}ko.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 tn(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new tn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=uh(y)===90,ce=0,ge=0,xe=0,we=0;we<ee;we++)if(!(we%2!==0||1<ee&&we===ee-1)){var Fe=x[we],Ne=Fe.Da,Qe=ce===0?0:oe;if(se){var Ve=a.computeBusNodeSpacing(Fe)-re;Fe.S.h(E-(Ne.width+Ve),xe+Qe),b=Math.max(b,Ne.width+Ve),z=Math.max(z,xe+Qe+Ne.height),xe+=Qe+Ne.height}else Ve=a.computeBusNodeSpacing(Fe)-re,Fe.S.h(ge+Qe,E-(Ne.height+Ve)),z=Math.max(z,Ne.height+Ve),b=Math.max(b,ge+Qe+Ne.width),ge+=Qe+Ne.width;ce++}for(ce=0,Fe=ge,we=xe,se?(ge=E+re,xe=0):(ge=0,xe=E+re),Ne=0;Ne<ee;Ne++)if(Ne%2!==0){Qe=x[Ne],Ve=Qe.Da;var rt=ce===0?0:oe;if(se){var at=a.computeBusNodeSpacing(Qe)-re;Qe.S.h(ge+at,xe+rt),b=Math.max(b,ge+Ve.width+at),z=Math.max(z,xe+rt+Ve.height),xe+=rt+Ve.height}else at=a.computeBusNodeSpacing(Qe)-re,Qe.S.h(ge+rt,xe+at),b=Math.max(b,ge+rt+Ve.width),z=Math.max(z,xe+Ve.height+at),ge+=rt+Ve.width;ce++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,se?Math.max(Math.abs(we),Math.abs(xe)):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(we,xe)+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),xe=E+re/2-x.focus.y-x.la.y,z=Math.max(z,xe+ee.height),0>xe&&(z-=xe),0>x.S.y&&(E=fv(y,x.S.y,!0,E,re)))),new tn(E,0,b,z)}function wx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new tn(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new tn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=uh(y)===270,ce=0,ge=0,xe=0,we=0;we<ee;we++)if(!(we%2!==0||1<ee&&we===ee-1)){var Fe=x[we],Ne=Fe.Da,Qe=ce===0?0:oe;if(se){var Ve=a.computeBusNodeSpacing(Fe)-re;xe-=Qe+Ne.height,Fe.S.h(E-(Ne.width+Ve),xe),b=Math.max(b,Ne.width+Ve),z=Math.max(z,Math.abs(xe))}else Ve=a.computeBusNodeSpacing(Fe)-re,ge-=Qe+Ne.width,Fe.S.h(ge,E-(Ne.height+Ve)),z=Math.max(z,Ne.height+Ve),b=Math.max(b,Math.abs(ge));ce++}for(ce=0,Fe=ge,we=xe,se?(ge=E+re,xe=0):(ge=0,xe=E+re),Ne=0;Ne<ee;Ne++)if(Ne%2!==0){Qe=x[Ne],Ve=Qe.Da;var rt=ce===0?0:oe;if(se){var at=a.computeBusNodeSpacing(Qe)-re;xe-=rt+Ve.height,Qe.S.h(ge+at,xe),b=Math.max(b,ge+Ve.width+at),z=Math.max(z,Math.abs(xe))}else at=a.computeBusNodeSpacing(Qe)-re,ge-=rt+Ve.width,Qe.S.h(ge,xe+at),z=Math.max(z,xe+Ve.height+at),b=Math.max(b,Math.abs(ge));ce++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ce=oe.Da,a=a.computeBusLastRowSpacing(oe,se?Math.max(Math.abs(we),Math.abs(xe)):Math.max(Math.abs(Fe),Math.abs(ge))),se?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-ce.height-a),ge=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,ge+ce.width),0>ge&&(b-=ge),z=Math.max(z,Math.abs(Math.min(we,xe))+a+ce.height),0>oe.S.x&&(E=fv(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ce.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Fe,ge))+a+ce.width),xe=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,xe+ce.height),0>xe&&(z-=xe),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 tn(E,0,b,z)}ko.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ko.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 gf:return a.width>y?a.width:y;case pf:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Zf:case mf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Hf:return a.width-a.focus.x+a.nodeSpacing/2+y;case Ff: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 gf:return a.height>y?a.height:y;case pf:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Zf:case mf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Hf:return a.height-a.focus.y+a.nodeSpacing/2+y;case Ff: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 gf:x=y=0;break;case pf:break;default:Pt("Unhandled alignment value "+a.toString())}return new Ge(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 ff: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:Pt("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=uh(y),se=oe===90||oe===270,ce=y.nodeSpacing;y=E;var ge=b;E=z;var xe=ee,we=x.Yo,Fe=x.kp;ee=x.Da;var Ne=se?Math.max(xe,ee.height):Math.max(E,ee.width);if((we===null||oe!==uh(x))&&(we=Xc(a,2),Fe=Xc(a,2),se?(we[0].h(0,0),we[1].h(0,ee.height),Fe[0].h(ee.width,0),Fe[1].h(Fe[0].x,we[1].y)):(we[0].h(0,0),we[1].h(ee.width,0),Fe[0].h(0,ee.height),Fe[1].h(we[1].x,Fe[0].y))),se){if(xe=9999999,!(ge===null||2>ge.length||we===null||2>we.length))for(b=x=0;x<ge.length&&b<we.length;){z=ge[x];var Qe=we[b];oe=Qe.x,se=Qe.y,oe+=E;var Ve=z;x+1<ge.length&&(Ve=ge[x+1]);var rt=Qe;Qe=rt.x,rt=rt.y,b+1<we.length&&(rt=we[b+1],Qe=rt.x,rt=rt.y,Qe+=E);var at=xe;z.y===se?at=oe-z.x:z.y>se&&z.y<rt?at=oe+(z.y-se)/(rt-se)*(Qe-oe)-z.x:se>z.y&&se<Ve.y&&(at=oe-(z.x+(se-z.y)/(Ve.y-z.y)*(Ve.x-z.x))),at<xe&&(xe=at),Ve.y<=z.y?x++:rt<=se?b++:(Ve.y<=rt&&x++,rt<=Ve.y&&b++)}if(xe=E-xe,xe+=ce,x=we,b=xe,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ce=Xc(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)se=x[z++],ce[E++].h(se.x+b,se.y);for(;oe<y.length;)se=y[oe++],ce[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++],ce[E++].h(se.x+b,se.y);for(x=Xc(a,E),oe=0;oe<E;oe++)x[oe].assign(ce[oe]);bh(a,ce),E=x}if(z=Fe,oe=xe,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(ce=Xc(a,ge.length+z.length),b=se=x=0;x<ge.length&&ge[x].y<z[0].y;)Ve=ge[x++],ce[b++].h(Ve.x,Ve.y);for(;se<z.length;)Ve=z[se++],ce[b++].h(Ve.x+oe,Ve.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++],ce[b++].h(oe.x,oe.y);for(z=Xc(a,b),x=0;x<b;x++)z[x].assign(ce[x]);bh(a,ce),b=z}return z=Math.max(0,xe)+ee.width,ee=Ne,bh(a,y),bh(a,we),bh(a,ge),bh(a,Fe),re[0]=E,re[1]=b,new tn(xe,0,z,ee)}if(E=9999999,!(ge===null||2>ge.length||we===null||2>we.length))for(b=x=0;x<ge.length&&b<we.length;)z=ge[x],Qe=we[b],oe=Qe.x,se=Qe.y,se+=xe,Ve=z,x+1<ge.length&&(Ve=ge[x+1]),rt=Qe,Qe=rt.x,rt=rt.y,b+1<we.length&&(rt=we[b+1],Qe=rt.x,rt=rt.y,rt+=xe),at=E,z.x===oe?at=se-z.y:z.x>oe&&z.x<Qe?at=se+(z.x-oe)/(Qe-oe)*(rt-se)-z.y:oe>z.x&&oe<Ve.x&&(at=se-(z.y+(oe-z.x)/(Ve.x-z.x)*(Ve.y-z.y))),at<E&&(E=at),Ve.x<=z.x?x++:Qe<=oe?b++:(Ve.x<=Qe&&x++,Qe<=Ve.x&&b++);if(xe-=E,xe+=ce,x=we,b=xe,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ce=Xc(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)se=x[z++],ce[E++].h(se.x,se.y+b);for(;oe<y.length;)se=y[oe++],ce[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++],ce[E++].h(se.x,se.y+b);for(x=Xc(a,E),oe=0;oe<E;oe++)x[oe].assign(ce[oe]);bh(a,ce),E=x}if(z=Fe,oe=xe,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(ce=Xc(a,ge.length+z.length),b=se=x=0;x<ge.length&&ge[x].x<z[0].x;)Ve=ge[x++],ce[b++].h(Ve.x,Ve.y);for(;se<z.length;)Ve=z[se++],ce[b++].h(Ve.x,Ve.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++],ce[b++].h(oe.x,oe.y);for(z=Xc(a,b),x=0;x<b;x++)z[x].assign(ce[x]);bh(a,ce),b=z}return z=Ne,ee=Math.max(0,xe)+ee.height,bh(a,y),bh(a,we),bh(a,ge),bh(a,Fe),re[0]=E,re[1]=b,new tn(xe,0,z,ee)}function Xc(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 Ge;return a}function bh(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}ko.prototype.arrangeTrees=function(){if(this.Rb===xv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Hd){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 Hd&&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:Pt("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:Pt("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)}}}ko.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ko.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ko.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 Ge(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Ge(-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 tn(0,z,x,re))):this.angle===90?(b.push(new tn(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new tn(z,0,re,x))):(b.push(new tn(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},ko.prototype.commitLayers=function(){},ko.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ko.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Hd&&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])}}ko.prototype.setPortSpots=function(a){var y=a.alignment;if(Sg(y)){var x=this.ud===ff,E=uh(a);switch(E){case 0:var b=ul;break;case 90:b=ou;break;case 180:b=_u;break;default:b=Vu}var z=a.children,ee=z.length;switch(y){case Zf:case mf: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?_u:Vu;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:oe=_u;break;case 90:oe=Vu;break;case 180:oe=ul;break;default:oe=ou}else y%2===0&&(oe=E===90||E===270?ul:ou);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Hf:for(E=E===90||E===270?ul: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 Ff:for(E=E===90||E===270?_u:Vu,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=uh(a),this.ud===ff){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=ul;break;case 90:E.fromSpot=ou;break;case 180:E.fromSpot=_u;break;default:E.fromSpot=Vu}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=_u;break;case 90:E.toSpot=Vu;break;case 180:E.toSpot=ul;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=ul;break;case 90:E.toSpot=ou;break;case 180:E.toSpot=_u;break;default:E.toSpot=Vu}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=_u;break;case 90:E.fromSpot=Vu;break;case 180:E.fromSpot=ul;break;default:E.fromSpot=ou}else E.fromSpot=a.childPortSpot}};function uh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ko.prototype.computeLayerSpacing=function(a){var y=uh(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},ko.prototype.computeNodeIndent=function(a){var y=uh(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)},zt.Object.defineProperties(ko.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()):Pt("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 on(ko,"PathDefault",-1),ff=new on(ko,"PathDestination",0),op=new on(ko,"PathSource",1),zp=new on(ko,"SortingForwards",10),Im=new on(ko,"SortingReverse",11),Rm=new on(ko,"SortingAscending",12),Wm=new on(ko,"SortingDescending",13),Vp=new on(ko,"AlignmentCenterSubtrees",20),ap=new on(ko,"AlignmentCenterChildren",21),gf=new on(ko,"AlignmentStart",22),pf=new on(ko,"AlignmentEnd",23),Zf=new on(ko,"AlignmentBus",24),mf=new on(ko,"AlignmentBusBranching",25),Hf=new on(ko,"AlignmentTopLeftBus",26),Ff=new on(ko,"AlignmentBottomRightBus",27),vv=new on(ko,"CompactionNone",30),jm=new on(ko,"CompactionBlock",31),yv=new on(ko,"StyleLayered",40),e1=new on(ko,"StyleLastParents",41),t1=new on(ko,"StyleAlternating",42),n1=new on(ko,"StyleRootOnly",43),Sv=new on(ko,"ArrangementVertical",50),i1=new on(ko,"ArrangementHorizontal",51),xv=new on(ko,"ArrangementFixedRoots",52),r1=new on(ko,"LayerIndividual",60),o1=new on(ko,"LayerSiblings",61),Ev=new on(ko,"LayerUniform",62);ko.className="TreeLayout",ko.PathDefault=mv,ko.PathDestination=ff,ko.PathSource=op,ko.SortingForwards=zp,ko.SortingReverse=Im,ko.SortingAscending=Rm,ko.SortingDescending=Wm,ko.AlignmentCenterSubtrees=Vp,ko.AlignmentCenterChildren=ap,ko.AlignmentStart=gf,ko.AlignmentEnd=pf,ko.AlignmentBus=Zf,ko.AlignmentBusBranching=mf,ko.AlignmentTopLeftBus=Hf,ko.AlignmentBottomRightBus=Ff,ko.CompactionNone=vv,ko.CompactionBlock=jm,ko.StyleLayered=yv,ko.StyleLastParents=e1,ko.StyleAlternating=t1,ko.StyleRootOnly=n1,ko.ArrangementVertical=Sv,ko.ArrangementHorizontal=i1,ko.ArrangementFixedRoots=xv,ko.LayerIndividual=r1,ko.LayerSiblings=o1,ko.LayerUniform=Ev;function sp(a){as.call(this,a)}_t(sp,as),sp.prototype.createVertex=function(){return new Hd(this)},sp.prototype.createEdge=function(){return new _p(this)},sp.className="TreeNetwork";function Hd(a){ql.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 Ge(0,0),this.Da=new gi(0,0),this.la=new Ge(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=Ul,this.wr=!0,this.Dp=Ul}_t(Hd,ql),Hd.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)},zt.Object.defineProperties(Hd.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)}}}),Hd.className="TreeVertex";function _p(a){od.call(this,a),this.$t=new Ge(0,0)}_t(_p,od),_p.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 ff:x=this.fromVertex,E=this.toVertex;break;case op:x=this.toVertex,E=this.fromVertex;break;default:Pt("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=uh(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===vd,se=a.isOrthogonal,ce;if(a.uh(),se||oe){for(ce=2;4<a.pointsCount;)a.pv(2);var ge=a.i(1),xe=a.i(2)}else{for(ce=1;3<a.pointsCount;)a.pv(1);ge=a.i(0),xe=a.i(a.pointsCount-1)}var we=a.i(a.pointsCount-1);z===0?(x.alignment===pf?(z=E.bottom+b.y,b.y===0&&ge.y>we.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===gf?(z=E.top+b.y,b.y===0&&ge.y<we.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(ce,ge.x,z),ce++,a.m(ce,E.right+ee,z),ce++,a.m(ce,E.right+ee+(b.x-re)/3,z),ce++,a.m(ce,E.right+ee+2*(b.x-re)/3,z),ce++,a.m(ce,E.right+ee+(b.x-re),z),ce++,a.m(ce,xe.x,z)):(se&&(a.m(ce,E.right+ee/2,ge.y),ce++),a.m(ce,E.right+ee/2,z),ce++,a.m(ce,E.right+ee+b.x-(se?re/2:re),z),ce++,se&&a.m(ce,a.i(ce-1).x,xe.y))):z===90?(x.alignment===pf?(z=E.right+b.x,b.x===0&&ge.x>we.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===gf?(z=E.left+b.x,b.x===0&&ge.x<we.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(ce,z,ge.y),ce++,a.m(ce,z,E.bottom+ee),ce++,a.m(ce,z,E.bottom+ee+(b.y-re)/3),ce++,a.m(ce,z,E.bottom+ee+2*(b.y-re)/3),ce++,a.m(ce,z,E.bottom+ee+(b.y-re)),ce++,a.m(ce,z,xe.y)):(se&&(a.m(ce,ge.x,E.bottom+ee/2),ce++),a.m(ce,z,E.bottom+ee/2),ce++,a.m(ce,z,E.bottom+ee+b.y-(se?re/2:re)),ce++,se&&a.m(ce,xe.x,a.i(ce-1).y))):z===180?(x.alignment===pf?(z=E.bottom+b.y,b.y===0&&ge.y>we.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===gf?(z=E.top+b.y,b.y===0&&ge.y<we.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(ce,ge.x,z),ce++,a.m(ce,E.left-ee,z),ce++,a.m(ce,E.left-ee+(b.x+re)/3,z),ce++,a.m(ce,E.left-ee+2*(b.x+re)/3,z),ce++,a.m(ce,E.left-ee+(b.x+re),z),ce++,a.m(ce,xe.x,z)):(se&&(a.m(ce,E.left-ee/2,ge.y),ce++),a.m(ce,E.left-ee/2,z),ce++,a.m(ce,E.left-ee+b.x+(se?re/2:re),z),ce++,se&&a.m(ce,a.i(ce-1).x,xe.y))):z===270?(x.alignment===pf?(z=E.right+b.x,b.x===0&&ge.x>we.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===gf?(z=E.left+b.x,b.x===0&&ge.x<we.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(ce,z,ge.y),ce++,a.m(ce,z,E.top-ee),ce++,a.m(ce,z,E.top-ee+(b.y+re)/3),ce++,a.m(ce,z,E.top-ee+2*(b.y+re)/3),ce++,a.m(ce,z,E.top-ee+(b.y+re)),ce++,a.m(ce,z,xe.y)):(se&&(a.m(ce,ge.x,E.top-ee/2),ce++),a.m(ce,z,E.top-ee/2),ce++,a.m(ce,z,E.top-ee+b.y+(se?re/2:re)),ce++,se&&a.m(ce,xe.x,a.i(ce-1).y))):Pt("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=uh(x),y!==uh(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===vd,b=a.isOrthogonal,E=Sg(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()))}}},zt.Object.defineProperties(_p.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)}}}),_p.className="TreeEdge",Un.prototype.initializeStandardTools=function(){this.gb("Action",new wa,this.mouseDownTools),this.gb("Relinking",new pa,this.mouseDownTools),this.gb("LinkReshaping",new Da,this.mouseDownTools),this.gb("Rotating",new Ns,this.mouseDownTools),this.gb("Resizing",new xl,this.mouseDownTools),this.gb("Linking",new aa,this.mouseMoveTools),this.gb("Dragging",new tr,this.mouseMoveTools),this.gb("DragSelecting",new eu,this.mouseMoveTools),this.gb("Panning",new Ds,this.mouseMoveTools),this.gb("ContextMenu",new cl,this.mouseUpTools),this.gb("TextEditing",new ha,this.mouseUpTools),this.gb("ClickCreating",new gc,this.mouseUpTools),this.gb("ClickSelecting",new Ou,this.mouseUpTools)},Zh("Horizontal",new Jm),Zh("Spot",new qm),Zh("Table",new e0),Zh("Viewbox",new i0),Zh("TableRow",new t0),Zh("TableColumn",new n0),Zh("Graduated",new tm),Zh("Grid",new em),mr.add("GraphLinksModel",mu),mr.add("TreeModel",Md);var Pv=Zn.go,a1={get licenseKey(){return Ht.licenseKey},set licenseKey(a){Ht.licenseKey=a},get version(){return Ht.version},Group:_r,EnumValue:on,List:an,Set:In,Map:hi,Point:Ge,Size:gi,Rect:tn,Margin:oo,Spot:ir,Geometry:si,PathFigure:el,PathSegment:Zo,InputEvent:jt,DiagramEvent:Gt,ChangedEvent:Sn,Model:Hi,GraphLinksModel:Uo,TreeModel:Cc,Binding:Cl,Transaction:$i,UndoManager:mi,CommandHandler:Ye,Tool:ci,DraggingTool:tr,DraggingInfo:bd,DraggingOptions:ae,LinkingBaseTool:Pa,LinkingTool:aa,RelinkingTool:pa,LinkReshapingTool:Da,ResizingTool:xl,RotatingTool:Ns,ClickSelectingTool:Ou,ActionTool:wa,ClickCreatingTool:gc,HTMLInfo:Ts,ContextMenuTool:cl,DragSelectingTool:eu,PanningTool:Ds,TextEditingTool:ha,ToolManager:Un,Animation:iu,AnimationManager:Hl,AnimationTrigger:Tc,Layer:Pl,Diagram:Ht,Palette:fe,Overview:me,Brush:$o,GraphObject:wt,Panel:ei,RowColumnDefinition:jl,Shape:io,TextBlock:os,Picture:Wc,Part:ar,Adornment:ta,Node:Ai,Link:oi,Placeholder:xc,Layout:Cs,LayoutNetwork:as,LayoutVertex:ql,LayoutEdge:od,GridLayout:Lu,PanelLayout:Ql,CircularLayout:Rs,CircularNetwork:Rp,CircularVertex:Dm,CircularEdge:nv,ForceDirectedLayout:Ku,ForceDirectedNetwork:ip,ForceDirectedVertex:Lm,ForceDirectedEdge:Mm,LayeredDigraphLayout:ba,LayeredDigraphNetwork:jp,LayeredDigraphVertex:Nd,LayeredDigraphEdge:Tm,TreeLayout:ko,TreeNetwork:sp,TreeVertex:Hd,TreeEdge:_p};typeof Pv=="object"&&Pv.version&&Yn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Pv?"debug ":"")+"version: "+Pv.version+", replaced with version: "+a1.version),Ht.prototype.go=a1,Zn.go=a1,typeof qt.exports=="object"&&(qt.exports=typeof Ee.g!="undefined"?Ee.g.go:self.go)}();var ue=typeof Ee.g!="undefined"?Ee.g.go:self.go;const et=typeof Ee.g!="undefined"?Ee.g.go:self.go,Lt=et.Group,Nt=et.EnumValue,Bt=et.List,vt=et.Set,Ue=et.Map,bt=et.Point,Ct=et.Size,yt=et.Rect,Zt=et.Margin,Ot=et.Spot,Ut=et.Geometry,Te=et.PathFigure,te=et.PathSegment,ne=et.InputEvent,de=et.DiagramEvent,le=et.ChangedEvent,pe=et.Model,Se=et.GraphLinksModel,Ae=et.TreeModel,Me=et.Binding,ke=et.Transaction,st=et.UndoManager,dt=et.CommandHandler,xt=et.Tool,ut=et.DraggingTool,It=et.DraggingInfo,Et=et.LinkingBaseTool,Tt=et.LinkingTool,Yt=et.RelinkingTool,hn=et.LinkReshapingTool,vi=et.ResizingTool,ui=et.RotatingTool,Bn=et.ClickSelectingTool,di=et.ActionTool,nt=et.ClickCreatingTool,ze=et.HTMLInfo,gn=et.ContextMenuTool,Xn=et.DragSelectingTool,ti=et.PanningTool,nn=et.TextEditingTool,vn=et.ToolManager,An=et.Animation,Si=et.AnimationManager,Vn=et.AnimationTrigger,Mi=et.Layer,pt=et.Diagram,ht=et.Palette,dn=et.Overview,Oe=et.Brush,Ce=et.GraphObject,Pe=et.Panel,Ie=et.RowColumnDefinition,Ke=et.Shape,De=et.TextBlock,tt=et.TextBlockMetrics,He=et.Picture,mt=et.Part,Wt=et.Adornment,kt=et.Node,yn=et.Link,pn=et.Placeholder,mn=et.Layout,Gn=et.LayoutNetwork,Tn=et.LayoutVertex,Xt=et.LayoutEdge,fi=et.GridLayout,Wn=et.PanelLayout,bn=et.CircularLayout,Dn=et.CircularNetwork,Bi=et.CircularVertex,On=et.CircularEdge,Jn=et.ForceDirectedLayout,Ki=et.ForceDirectedNetwork,Pi=et.ForceDirectedVertex,ur=et.ForceDirectedEdge,lo=et.LayeredDigraphLayout,jo=et.LayeredDigraphNetwork,Oo=et.LayeredDigraphVertex,Hr=et.LayeredDigraphEdge,da=et.TreeLayout,zo=et.TreeNetwork,Co=et.TreeVertex,xo=et.TreeEdge,Nr=et.version},2859:function(qt,kn,Ee){"use strict";Ee.d(kn,{hP:function(){return dn}});var ue=function(Oe,Ce){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ie){Pe.__proto__=Ie}||function(Pe,Ie){for(var Ke in Ie)Object.prototype.hasOwnProperty.call(Ie,Ke)&&(Pe[Ke]=Ie[Ke])})(Oe,Ce)};function et(Oe,Ce){function Pe(){this.constructor=Oe}ue(Oe,Ce),Oe.prototype=Ce===null?Object.create(Ce):(Pe.prototype=Ce.prototype,new Pe)}function Lt(Oe,Ce,Pe,Ie){return new(Pe||(Pe=Promise))(function(Ke,De){function tt(Wt){try{mt(Ie.next(Wt))}catch(kt){De(kt)}}function He(Wt){try{mt(Ie.throw(Wt))}catch(kt){De(kt)}}function mt(Wt){var kt;Wt.done?Ke(Wt.value):(kt=Wt.value,kt instanceof Pe?kt:new Pe(function(yn){yn(kt)})).then(tt,He)}mt((Ie=Ie.apply(Oe,Ce||[])).next())})}function Nt(Oe,Ce){var Pe,Ie,Ke,De,tt={label:0,sent:function(){if(1&Ke[0])throw Ke[1];return Ke[1]},trys:[],ops:[]};return De={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(De[Symbol.iterator]=function(){return this}),De;function He(mt){return function(Wt){return function(kt){if(Pe)throw new TypeError("Generator is already executing.");for(;tt;)try{if(Pe=1,Ie&&(Ke=2&kt[0]?Ie.return:kt[0]?Ie.throw||((Ke=Ie.return)&&Ke.call(Ie),0):Ie.next)&&!(Ke=Ke.call(Ie,kt[1])).done)return Ke;switch(Ie=0,Ke&&(kt=[2&kt[0],Ke.value]),kt[0]){case 0:case 1:Ke=kt;break;case 4:return tt.label++,{value:kt[1],done:!1};case 5:tt.label++,Ie=kt[1],kt=[0];continue;case 7:kt=tt.ops.pop(),tt.trys.pop();continue;default:if(Ke=tt.trys,!((Ke=Ke.length>0&&Ke[Ke.length-1])||kt[0]!==6&&kt[0]!==2)){tt=0;continue}if(kt[0]===3&&(!Ke||kt[1]>Ke[0]&&kt[1]<Ke[3])){tt.label=kt[1];break}if(kt[0]===6&&tt.label<Ke[1]){tt.label=Ke[1],Ke=kt;break}if(Ke&&tt.label<Ke[2]){tt.label=Ke[2],tt.ops.push(kt);break}Ke[2]&&tt.ops.pop(),tt.trys.pop();continue}kt=Ce.call(Oe,tt)}catch(yn){kt=[6,yn],Ie=0}finally{Pe=Ke=0}if(5&kt[0])throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}([mt,Wt])}}}function Bt(){for(var Oe=0,Ce=0,Pe=arguments.length;Ce<Pe;Ce++)Oe+=arguments[Ce].length;var Ie=Array(Oe),Ke=0;for(Ce=0;Ce<Pe;Ce++)for(var De=arguments[Ce],tt=0,He=De.length;tt<He;tt++,Ke++)Ie[Ke]=De[tt];return Ie}var vt=function(){function Oe(){}return Oe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Oe.setAttributes=function(Ce,Pe){for(var Ie=0,Ke=Pe;Ie<Ke.length;Ie++){var De=Ke[Ie],tt=De[0],He=De[1];Ce.setAttribute(tt,He)}},Oe.createRect=function(Ce,Pe,Ie){var Ke=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ke.setAttribute("width",Ce.toString()),Ke.setAttribute("height",Pe.toString()),Ie&&Oe.setAttributes(Ke,Ie),Ke},Oe.createLine=function(Ce,Pe,Ie,Ke,De){var tt=document.createElementNS("http://www.w3.org/2000/svg","line");return tt.setAttribute("x1",Ce.toString()),tt.setAttribute("y1",Pe.toString()),tt.setAttribute("x2",Ie.toString()),tt.setAttribute("y2",Ke.toString()),De&&Oe.setAttributes(tt,De),tt},Oe.createPolygon=function(Ce,Pe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ie.setAttribute("points",Ce),Pe&&Oe.setAttributes(Ie,Pe),Ie},Oe.createCircle=function(Ce,Pe){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()),Pe&&Oe.setAttributes(Ie,Pe),Ie},Oe.createEllipse=function(Ce,Pe,Ie){var Ke=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ke.setAttribute("cx",(Ce/2).toString()),Ke.setAttribute("cy",(Pe/2).toString()),Ke.setAttribute("rx",(Ce/2).toString()),Ke.setAttribute("ry",(Pe/2).toString()),Ie&&Oe.setAttributes(Ke,Ie),Ke},Oe.createGroup=function(Ce){var Pe=document.createElementNS("http://www.w3.org/2000/svg","g");return Ce&&Oe.setAttributes(Pe,Ce),Pe},Oe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Oe.createMarker=function(Ce,Pe,Ie,Ke,De,tt,He){var mt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Oe.setAttributes(mt,[["id",Ce],["orient",Pe],["markerWidth",Ie.toString()],["markerHeight",Ke.toString()],["refX",De.toString()],["refY",tt.toString()]]),mt.appendChild(He),mt},Oe.createText=function(Ce){var Pe=document.createElementNS("http://www.w3.org/2000/svg","text");return Pe.setAttribute("x","0"),Pe.setAttribute("y","0"),Ce&&Oe.setAttributes(Pe,Ce),Pe},Oe.createTSpan=function(Ce,Pe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ie.textContent=Ce,Pe&&Oe.setAttributes(Ie,Pe),Ie},Oe.createImage=function(Ce){var Pe=document.createElementNS("http://www.w3.org/2000/svg","image");return Ce&&Oe.setAttributes(Pe,Ce),Pe},Oe.createPoint=function(Ce,Pe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ie.x=Ce,Ie.y=Pe,Ie},Oe.createPath=function(Ce,Pe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","path");return Ie.setAttribute("d",Ce),Pe&&Oe.setAttributes(Ie,Pe),Ie},Oe}(),Ue=function(){function Oe(){}return Oe.addKey=function(Ce){Oe.key=Ce},Object.defineProperty(Oe,"isLicensed",{get:function(){return!!Oe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Oe.key)},enumerable:!1,configurable:!0}),Oe}(),bt=function(){function Oe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Oe.prototype.rasterize=function(Ce,Pe,Ie){var Ke=this;return new Promise(function(De){var tt=Ie!==void 0?Ie:document.createElement("canvas");Ce===null&&(Ke.markersOnly=!0,Ke.naturalSize=!1);var He=document.createElementNS("http://www.w3.org/2000/svg","svg");He.setAttribute("xmlns","http://www.w3.org/2000/svg"),He.setAttribute("width",Pe.width.baseVal.valueAsString),He.setAttribute("height",Pe.height.baseVal.valueAsString),He.setAttribute("viewBox","0 0 "+Pe.viewBox.baseVal.width.toString()+" "+Pe.viewBox.baseVal.height.toString()),He.innerHTML=Pe.innerHTML,Ke.naturalSize===!0?(He.width.baseVal.value=Ce.naturalWidth,He.height.baseVal.value=Ce.naturalHeight):Ke.width!==void 0&&Ke.height!==void 0&&(He.width.baseVal.value=Ke.width,He.height.baseVal.value=Ke.height),tt.width=He.width.baseVal.value,tt.height=He.height.baseVal.value;var mt=He.outerHTML,Wt=tt.getContext("2d");Ke.markersOnly!==!0&&Wt.drawImage(Ce,0,0,tt.width,tt.height);var kt=window.URL,yn=new Image(tt.width,tt.height);yn.setAttribute("crossOrigin","anonymous");var pn=new Blob([mt],{type:"image/svg+xml"}),mn=kt.createObjectURL(pn);yn.onload=function(){Wt.drawImage(yn,0,0),kt.revokeObjectURL(mn);var Gn=tt.toDataURL(Ke.imageType,Ke.imageQuality);De(Gn)},yn.src=mn})},Oe}(),Ct=function(){},yt=function(){function Oe(Ce){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ce+"_"}return Object.defineProperty(Oe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.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(Oe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Oe.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},Oe.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)},Oe.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 Zt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Zt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Zt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Ot("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Ot("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Oe.prototype.removeStyleSheet=function(){var Ce;this.styleSheet&&(((Ce=this.styleSheetRoot)!==null&&Ce!==void 0?Ce:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Oe}(),Zt=function(Oe,Ce){this.selector=Oe,this.style=Ce},Ot=function(Oe,Ce){this.localName=Oe,this.style=Ce},Ut=function(){function Oe(Ce,Pe,Ie,Ke,De){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ce,this.displayMode=Pe,this.markerItems=Ie,this.uiStyleSettings=Ke,this.styles=De,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Oe.prototype.show=function(Ce){var Pe=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(De){var tt=document.createElement("div");tt.className=""+Pe.toolbarButtonStyleClass.name,tt.setAttribute("data-type-name",De.typeName),tt.innerHTML=De.icon,tt.addEventListener("click",function(){Pe.markerToolbarButtonClicked(tt,De)}),Pe.buttons.push(tt),Pe.markerButtons.push(tt)}),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()},Oe.prototype.addButtonClickListener=function(Ce){this.buttonClickListeners.push(Ce)},Oe.prototype.removeButtonClickListener=function(Ce){this.buttonClickListeners.indexOf(Ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ce),1)},Oe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Oe.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 Pe=0;Pe<this.markerButtons.length;Pe++)Pe<Ce||Pe===Ce&&this.markerButtons.length-1===Ce?this.markerButtonBlock.appendChild(this.markerButtons[Pe]):(Pe===Ce&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Pe]))}},Oe.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")},Oe.prototype.resetButtonStyles=function(){var Ce=this;this.buttons.forEach(function(Pe){Pe.className=Pe.className.replace(Ce.uiStyleSettings.toolbarButtonStyleColorsClassName?Ce.uiStyleSettings.toolbarButtonStyleColorsClassName:Ce.toolbarButtonStyleColorsClass.name,"").trim(),Pe.className=Pe.className.replace(Ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ce.toolbarActiveButtonStyleColorsClass.name,"").trim(),Pe.className+=" "+(Ce.uiStyleSettings.toolbarButtonStyleColorsClassName?Ce.uiStyleSettings.toolbarButtonStyleColorsClassName:Ce.toolbarButtonStyleColorsClass.name)})},Oe.prototype.addActionButton=function(Ce,Pe,Ie){var Ke=this,De=document.createElement("div");switch(De.className=""+this.toolbarButtonStyleClass.name,De.innerHTML=Pe,De.setAttribute("data-action",Ie),De.addEventListener("click",function(){Ke.actionToolbarButtonClicked(De,Ie)}),Ie){case"select":De.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":De.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":De.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":De.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":De.style.fill=this.uiStyleSettings.closeButtonColor}Ce.appendChild(De),this.buttons.push(De)},Oe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ot("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 Ot("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ot("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ot("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 Ot("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Ce=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ot("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 Ot("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ot("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Zt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Zt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Oe.prototype.markerToolbarButtonClicked=function(Ce,Pe){this.setActiveButton(Ce),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ie){return Ie("marker",Pe)}),this.markerButtonOverflowBlock.style.display="none"},Oe.prototype.actionToolbarButtonClicked=function(Ce,Pe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ie){return Ie("action",Pe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Oe.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)},Oe.prototype.setActiveMarkerButton=function(Ce){var Pe=this.markerButtons.find(function(Ie){return Ie.getAttribute("data-type-name")===Ce});Pe&&this.setActiveButton(Pe)},Oe.prototype.setCurrentMarker=function(Ce){var Pe=this;this.currentMarker=Ce,this.buttons.filter(function(Ie){return/delete|notes/.test(Ie.getAttribute("data-action"))}).forEach(function(Ie){Pe.currentMarker===void 0?(Ie.style.fillOpacity="0.4",Ie.style.pointerEvents="none"):(Ie.style.fillOpacity="1",Ie.style.pointerEvents="all")})},Oe}(),Te=function(){function Oe(Ce,Pe,Ie,Ke){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ce,this.displayMode=Pe,this.uiStyleSettings=Ie,this.styles=Ke,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Oe.prototype.addStyles=function(){var Ce;this.toolboxStyleClass=this.styles.addClass(new Ot("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 Ot("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var Pe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ot("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ot("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ot("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 Ot("toolbox-panel-row_colors",`
|
|
background-color: `+((Ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ce!==void 0?Ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ot("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Pe)+`px;
|
|
padding: `+Pe+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ot("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ot("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Zt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Zt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Oe.prototype.show=function(Ce){var Pe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Pe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Pe!==void 0?Pe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Oe.prototype.setPanelButtons=function(Ce){var Pe,Ie,Ke=this;this.panels=Ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Pe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Pe!==void 0?Pe: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(De){var tt;De.uiStyleSettings=Ke.uiStyleSettings;var He=document.createElement("div");He.className=Ke.toolboxButtonStyleClass.name+" "+((tt=Ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tt!==void 0?tt:Ke.toolboxButtonStyleColorsClass.name),He.innerHTML=De.icon,He.title=De.title,He.addEventListener("click",function(){Ke.panelButtonClick(De)}),Ke.panelButtons.push(He),Ke.buttonRow.appendChild(He)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Oe.prototype.panelButtonClick=function(Ce){var Pe=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(){Pe.displayMode==="inline"?Pe.panelRow.style.display="none":Pe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(De,tt){var He,mt;De.className=Pe.toolboxButtonStyleClass.name+" "+(tt===Ie?""+((He=Pe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&He!==void 0?He:Pe.toolboxActiveButtonStyleColorsClass.name):""+((mt=Pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&mt!==void 0?mt:Pe.toolboxButtonStyleColorsClass.name))})},Oe}(),te=function(Oe,Ce){this.title=Oe,this.icon=Ce},ne=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'<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 tt.colors=[],tt.addTransparent=!1,tt.colorBoxes=[],tt.colors=Ie,tt.currentColor=Ke,tt.setCurrentColor=tt.setCurrentColor.bind(tt),tt.getColorBox=tt.getColorBox.bind(tt),tt}return et(Ce,Oe),Ce.prototype.getUi=function(){var Pe=this,Ie=document.createElement("div");return Ie.style.overflow="hidden",Ie.style.whiteSpace="nowrap",this.colors.forEach(function(Ke){var De=Pe.getColorBox(Ke);Ie.appendChild(De),Pe.colorBoxes.push(De)}),Ie},Ce.prototype.getColorBox=function(Pe){var Ie=this,Ke=this.uiStyleSettings.toolbarHeight/4,De=this.uiStyleSettings.toolbarHeight-Ke,tt=document.createElement("div");tt.style.display="inline-block",tt.style.boxSizing="content-box",tt.style.width=De-2+"px",tt.style.height=De-2+"px",tt.style.padding="1px",tt.style.marginRight="2px",tt.style.marginBottom="2px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderRadius=(De+2)/2+"px",tt.style.borderColor=Pe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){Ie.setCurrentColor(Pe,tt)});var He=document.createElement("div");return He.style.display="inline-block",He.style.width=De-2+"px",He.style.height=De-2+"px",He.style.backgroundColor=Pe,He.style.borderRadius=De/2+"px",Pe==="transparent"&&(He.style.fill=this.uiStyleSettings.toolboxAccentColor,He.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>`),tt.appendChild(He),tt},Ce.prototype.setCurrentColor=function(Pe,Ie){var Ke=this;this.currentColor=Pe,this.colorBoxes.forEach(function(De){De.style.borderColor=De===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Pe)},Ce}(te),de=function(){function Oe(Ce,Pe,Ie){this._state="new",this._isSelected=!1,this._container=Ce,this._overlayContainer=Pe,this.globalSettings=Ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Oe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(Ce){return!1},Object.defineProperty(Oe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Oe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Oe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Oe.prototype.pointerDown=function(Ce,Pe){},Oe.prototype.dblClick=function(Ce,Pe){},Oe.prototype.manipulate=function(Ce){},Oe.prototype.pointerUp=function(Ce){this.stateChanged()},Oe.prototype.dispose=function(){},Oe.prototype.addMarkerVisualToContainer=function(Ce){this.container.childNodes.length>0?this.container.insertBefore(Ce,this.container.childNodes[0]):this.container.appendChild(Ce)},Oe.prototype.getState=function(){return{typeName:Oe.typeName,state:this.state,notes:this.notes}},Oe.prototype.restoreState=function(Ce){this._state=Ce.state,this.notes=Ce.notes},Oe.prototype.scale=function(Ce,Pe){},Oe.prototype.colorChanged=function(Ce){this.onColorChanged&&this.onColorChanged(Ce),this.stateChanged()},Oe.prototype.fillColorChanged=function(Ce){this.onFillColorChanged&&this.onFillColorChanged(Ce),this.stateChanged()},Oe.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)}},Oe.typeName="MarkerBase",Oe}(),le=function(){function Oe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Oe.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},Oe}(),pe=function(){function Oe(){this.GRIP_SIZE=10,this.visual=vt.createGroup(),this.visual.appendChild(vt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(vt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Oe.prototype.ownsTarget=function(Ce){return Ce===this.visual||Ce===this.visual.childNodes[0]||Ce===this.visual.childNodes[1]},Oe}(),Se=function(){function Oe(){}return Oe.toITransformMatrix=function(Ce){return{a:Ce.a,b:Ce.b,c:Ce.c,d:Ce.d,e:Ce.e,f:Ce.f}},Oe.toSVGMatrix=function(Ce,Pe){return Ce.a=Pe.a,Ce.b=Pe.b,Ce.c=Pe.c,Ce.d=Pe.d,Ce.e=Pe.e,Ce.f=Pe.f,Ce},Oe}(),Ae=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.left=0,De.top=0,De.width=0,De.height=0,De.defaultSize={x:50,y:20},De.offsetX=0,De.offsetY=0,De.rotationAngle=0,De.CB_DISTANCE=10,De._suppressMarkerCreateEvent=!1,De.container.transform.baseVal.appendItem(vt.createTransform()),De.setupControlBox(),De}return et(Ce,Oe),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(Pe){this._visual=Pe;var Ie=vt.createTransform();this._visual.transform.baseVal.appendItem(Ie)},enumerable:!1,configurable:!0}),Ce.prototype.ownsTarget=function(Pe){return!!Oe.prototype.ownsTarget.call(this,Pe)||!!(this.controlGrips.findGripByVisual(Pe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Pe))},Ce.prototype.pointerDown=function(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.state==="new"&&(this.left=Pe.x,this.top=Pe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ke=this.unrotatePoint(Pe);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 De=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=De.x-this.width/2,this.top=De.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var tt=this.container.transform.baseVal.getItem(0);tt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(tt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ce.prototype.pointerUp=function(Pe){var Ie=this.state;Oe.prototype.pointerUp.call(this,Pe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Pe),this._state="select",Ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ce.prototype.moveVisual=function(Pe){this.visual.style.transform="translate("+Pe.x+"px, "+Pe.y+"px)"},Ce.prototype.manipulate=function(Pe){var Ie=this.unrotatePoint(Pe);this.state==="creating"?this.resize(Pe):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(Pe)},Ce.prototype.resize=function(Pe){var Ie=this.manipulationStartLeft,Ke=this.manipulationStartWidth,De=this.manipulationStartTop,tt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ie=this.manipulationStartLeft+Pe.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+Pe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:De=this.manipulationStartTop+Pe.y-this.manipulationStartY,tt=this.manipulationStartHeight+this.manipulationStartTop-De;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:tt=this.manipulationStartHeight+Pe.y-this.manipulationStartY}Ke>=0?(this.left=Ie,this.width=Ke):(this.left=Ie+Ke,this.width=-Ke),tt>=0?(this.top=De,this.height=tt):(this.top=De+tt,this.height=-tt),this.setSize()},Ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ce.prototype.rotate=function(Pe){if(Math.abs(Pe.x-this.centerX)>.1){var Ie=Math.sign(Pe.x-this.centerX);this.rotationAngle=180*Math.atan((Pe.y-this.centerY)/(Pe.x-this.centerX))/Math.PI+90*Ie,this.applyRotation()}},Ce.prototype.applyRotation=function(){var Pe=this.container.transform.baseVal.getItem(0);Pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Pe,0)},Ce.prototype.rotatePoint=function(Pe){if(this.rotationAngle===0)return Pe;var Ie=this.container.getCTM(),Ke=vt.createPoint(Pe.x,Pe.y);return{x:(Ke=Ke.matrixTransform(Ie)).x,y:Ke.y}},Ce.prototype.unrotatePoint=function(Pe){if(this.rotationAngle===0)return Pe;var Ie=this.container.getCTM();Ie=Ie.inverse();var Ke=vt.createPoint(Pe.x,Pe.y);return{x:(Ke=Ke.matrixTransform(Ie)).x,y:Ke.y}},Ce.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ce.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},Ce.prototype.setupControlBox=function(){this.controlBox=vt.createGroup();var Pe=vt.createTransform();Pe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Pe),this.container.appendChild(this.controlBox),this.controlRect=vt.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=vt.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 le,this.addControlGrips(),this.controlBox.style.display="none"},Ce.prototype.adjustControlBox=function(){var Pe=this.controlBox.transform.baseVal.getItem(0);Pe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Pe,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 Pe=new pe;return Pe.visual.transform.baseVal.appendItem(vt.createTransform()),this.controlBox.appendChild(Pe.visual),Pe},Ce.prototype.positionGrips=function(){var Pe=this.controlGrips.topLeft.GRIP_SIZE,Ie=-Pe/2,Ke=Ie,De=(this.width+this.CB_DISTANCE)/2-Pe/2,tt=(this.height+this.CB_DISTANCE)/2-Pe/2,He=this.height+this.CB_DISTANCE-Pe/2,mt=this.width+this.CB_DISTANCE-Pe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ie,Ke),this.positionGrip(this.controlGrips.topCenter.visual,De,Ke),this.positionGrip(this.controlGrips.topRight.visual,mt,Ke),this.positionGrip(this.controlGrips.centerLeft.visual,Ie,tt),this.positionGrip(this.controlGrips.centerRight.visual,mt,tt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ie,He),this.positionGrip(this.controlGrips.bottomCenter.visual,De,He),this.positionGrip(this.controlGrips.bottomRight.visual,mt,He),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,De,Ke-3*this.CB_DISTANCE)},Ce.prototype.positionGrip=function(Pe,Ie,Ke){var De=Pe.transform.baseVal.getItem(0);De.setTranslate(Ie,Ke),Pe.transform.baseVal.replaceItem(De,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:Se.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Se.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Oe.prototype.getState.call(this))},Ce.prototype.restoreState=function(Pe){Oe.prototype.restoreState.call(this,Pe);var Ie=Pe;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(Se.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Se.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ie.containerTransformMatrix))},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,Ie);var Ke=this.rotatePoint({x:this.left,y:this.top}),De=this.unrotatePoint({x:Ke.x*Pe,y:Ke.y*Ie});this.left=De.x,this.top=De.y,this.width=this.width*Pe,this.height=this.height*Ie,this.adjustControlBox()},Ce}(de),Me=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.opacity=1,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.createVisual=De.createVisual.bind(De),De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual)},Ce.prototype.createVisual=function(){this.visual=vt.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(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.manipulate=function(Pe){Oe.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){Oe.prototype.resize.call(this,Pe),this.setSize()},Ce.prototype.setSize=function(){Oe.prototype.setSize.call(this),vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ce.prototype.pointerUp=function(Pe){Oe.prototype.pointerUp.call(this,Pe),this.setSize()},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.visual&&vt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},Ce.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.visual&&vt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.visual&&vt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.visual&&vt.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},Oe.prototype.getState.call(this))},Ce.prototype.restoreState=function(Pe){var Ie=Pe;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.opacity=Ie.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,Ie),this.setSize()},Ce.title="Rectangle marker",Ce}(Ae),ke=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return tt.widths=[],tt.widthBoxes=[],tt.widths=Ie,tt.currentWidth=Ke,tt.setCurrentWidth=tt.setCurrentWidth.bind(tt),tt}return et(Ce,Oe),Ce.prototype.getUi=function(){var Pe=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.widths.forEach(function(Ke){var De=document.createElement("div");De.style.display="flex",De.style.flexGrow="2",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=Ke===Pe.currentWidth?Pe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Pe.setCurrentWidth(Ke,De)}),Ie.appendChild(De);var tt=document.createElement("div");tt.innerText=Ke.toString(),tt.style.marginRight="5px",De.appendChild(tt);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.display="flex",He.style.alignItems="center";var mt=document.createElement("hr");mt.style.minWidth="20px",mt.style.border="0px",mt.style.borderTop=Ke+"px solid "+Pe.uiStyleSettings.toolboxColor,mt.style.flexGrow="2",He.appendChild(mt),De.appendChild(He),Pe.widthBoxes.push(De)}),Ie},Ce.prototype.setCurrentWidth=function(Pe,Ie){var Ke=this;this.currentWidth=Pe,this.widthBoxes.forEach(function(De){De.style.borderColor=De===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ce}(te),st=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'<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 tt.styles=[],tt.styleBoxes=[],tt.styles=Ie,tt.currentStyle=Ke,tt.setCurrentStyle=tt.setCurrentStyle.bind(tt),tt}return et(Ce,Oe),Ce.prototype.getUi=function(){var Pe=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.styles.forEach(function(Ke){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.overflow="hidden",De.style.maxWidth=100/Pe.styles.length-5+"%",De.style.borderColor=Ke===Pe.currentStyle?Pe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Pe.setCurrentStyle(Ke,De)}),Ie.appendChild(De);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.overflow="hidden";var He=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Pe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ke!==""?'stroke-dasharray="'+Ke+'"':"")+` />
|
|
</svg>`;tt.innerHTML=He,De.appendChild(tt),Pe.styleBoxes.push(De)}),Ie},Ce.prototype.setCurrentStyle=function(Pe,Ie){var Ke=this;this.currentStyle=Pe,this.styleBoxes.forEach(function(De){De.style.borderColor=De===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ce}(te),dt=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.strokeColor=Ke.defaultColor,De.strokeWidth=Ke.defaultStrokeWidth,De.strokeDasharray=Ke.defaultStrokeDasharray,De.strokePanel=new ne("Line color",Ke.defaultColorSet,Ke.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new ke("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new st("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return et(Ce,Oe),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Oe.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.typeName="FrameMarker",Ce.title="Frame marker",Ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ce}(Me),xt=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"},ut=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.x1=0,De.y1=0,De.x2=0,De.y2=0,De.defaultLength=50,De.manipulationStartX=0,De.manipulationStartY=0,De.manipulationStartX1=0,De.manipulationStartY1=0,De.manipulationStartX2=0,De.manipulationStartY2=0,De.setupControlBox(),De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!!Oe.prototype.ownsTarget.call(this,Pe)||!(!this.grip1.ownsTarget(Pe)&&!this.grip2.ownsTarget(Pe))},Ce.prototype.pointerDown=function(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.manipulationStartX=Pe.x,this.manipulationStartY=Pe.y,this.state==="new"&&(this.x1=Pe.x,this.y1=Pe.y,this.x2=Pe.x,this.y2=Pe.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(Pe){var Ie=this.state;Oe.prototype.pointerUp.call(this,Pe),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(Pe),this._state="select",Ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ce.prototype.adjustVisual=function(){},Ce.prototype.manipulate=function(Pe){this.state==="creating"?this.resize(Pe):this.state==="move"?(this.x1=this.manipulationStartX1+Pe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Pe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Pe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Pe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Pe)},Ce.prototype.resize=function(Pe){switch(this.activeGrip){case this.grip1:this.x1=Pe.x,this.y1=Pe.y;break;case this.grip2:case void 0:this.x2=Pe.x,this.y2=Pe.y}this.adjustVisual(),this.adjustControlBox()},Ce.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ce.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},Ce.prototype.setupControlBox=function(){this.controlBox=vt.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 Pe=new pe;return Pe.visual.transform.baseVal.appendItem(vt.createTransform()),this.controlBox.appendChild(Pe.visual),Pe},Ce.prototype.positionGrips=function(){var Pe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Pe/2,this.y1-Pe/2),this.positionGrip(this.grip2.visual,this.x2-Pe/2,this.y2-Pe/2)},Ce.prototype.positionGrip=function(Pe,Ie,Ke){var De=Pe.transform.baseVal.getItem(0);De.setTranslate(Ie,Ke),Pe.transform.baseVal.replaceItem(De,0)},Ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Oe.prototype.getState.call(this))},Ce.prototype.restoreState=function(Pe){Oe.prototype.restoreState.call(this,Pe);var Ie=Pe;this.x1=Ie.x1,this.y1=Ie.y1,this.x2=Ie.x2,this.y2=Ie.y2},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,Ie),this.x1=this.x1*Pe,this.y1=this.y1*Ie,this.x2=this.x2*Pe,this.y2=this.y2*Ie,this.adjustVisual(),this.adjustControlBox()},Ce}(de),It=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.setStrokeColor=De.setStrokeColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.strokeColor=Ke.defaultColor,De.strokeWidth=Ke.defaultStrokeWidth,De.strokeDasharray=Ke.defaultStrokeDasharray,De.strokePanel=new ne("Line color",Ke.defaultColorSet,Ke.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new ke("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new st("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.selectorLine&&Pe!==this.visibleLine)},Ce.prototype.createVisual=function(){this.visual=vt.createGroup(),this.selectorLine=vt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=vt.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(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,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()),vt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),vt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),vt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.adjustVisual(),this.colorChanged(Pe)},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.adjustVisual()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,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 Pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Oe.prototype.restoreState.call(this,Pe);var Ie=Pe;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}(ut),Et=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'<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 tt.fonts=[],tt.fontBoxes=[],tt.fonts=Ie,tt.currentFont=Ke,tt.setCurrentFont=tt.setCurrentFont.bind(tt),tt}return et(Ce,Oe),Ce.prototype.getUi=function(){var Pe=this,Ie=document.createElement("div");return Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.fonts.forEach(function(Ke){var De=document.createElement("div");De.style.display="inline-block",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.overflow="hidden",De.style.maxWidth=100/Pe.fonts.length-5+"%",De.style.borderColor=Ke===Pe.currentFont?Pe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Pe.setCurrentFont(Ke,De)}),Ie.appendChild(De);var tt=document.createElement("div");tt.style.display="flex",tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.fontFamily=Ke,tt.style.overflow="hidden";var He=document.createElement("div");He.style.whiteSpace="nowrap",He.style.overflow="hidden",He.style.textOverflow="ellipsis",He.innerHTML="The quick brown fox jumps over the lazy dog",tt.appendChild(He),De.appendChild(tt),Pe.fontBoxes.push(De)}),Ie},Ce.prototype.setCurrentFont=function(Pe,Ie){var Ke=this;this.currentFont=Pe,this.fontBoxes.forEach(function(De){De.style.borderColor=De===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ce}(te),Tt=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.color="transparent",De.padding=5,De.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",De.text=De.DEFAULT_TEXT,De.isMoved=!1,De.color=Ke.defaultColor,De.fontFamily=Ke.defaultFontFamily,De.defaultSize={x:100,y:30},De.setColor=De.setColor.bind(De),De.setFont=De.setFont.bind(De),De.renderText=De.renderText.bind(De),De.sizeText=De.sizeText.bind(De),De.textEditDivClicked=De.textEditDivClicked.bind(De),De.showTextEditor=De.showTextEditor.bind(De),De.setSize=De.setSize.bind(De),De.positionTextEditor=De.positionTextEditor.bind(De),De.colorPanel=new ne("Color",Ke.defaultColorSet,Ke.defaultColor),De.colorPanel.onColorChanged=De.setColor,De.fontFamilyPanel=new Et("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){if(Oe.prototype.ownsTarget.call(this,Pe)||Pe===this.visual||Pe===this.textElement||Pe===this.bgRectangle)return!0;var Ie=!1;return this.textElement.childNodes.forEach(function(Ke){Ke===Pe&&(Ie=!0)}),Ie},Ce.prototype.createVisual=function(){this.visual=vt.createGroup(),this.bgRectangle=vt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=vt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(vt.createTransform()),this.textElement.transform.baseVal.appendItem(vt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ce.prototype.pointerDown=function(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.isMoved=!1,this.pointerDownPoint=Pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.renderText=function(){var Pe=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){Pe.textElement.appendChild(vt.createTSpan(Ie.trim()===""?" ":Ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ce.prototype.getTextScale=function(){var Pe=this.textElement.getBBox(),Ie=1;if(Pe.width>0&&Pe.height>0){var Ke=(1*this.width-this.width*this.padding*2/100)/Pe.width,De=(1*this.height-this.height*this.padding*2/100)/Pe.height;Ie=Math.min(Ke,De)}return Ie},Ce.prototype.getTextPosition=function(Pe){var Ie=this.textElement.getBBox(),Ke=0,De=0;return Ie.width>0&&Ie.height>0&&(Ke=(this.width-Ie.width*Pe)/2,De=this.height/2-Ie.height*Pe/2),{x:Ke,y:De}},Ce.prototype.sizeText=function(){var Pe=this.textElement.getBBox(),Ie=this.getTextScale(),Ke=this.getTextPosition(Ie);Ke.y-=Pe.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(Pe){Oe.prototype.manipulate.call(this,Pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Pe.x-this.pointerDownPoint.x)>5||Math.abs(Pe.y-this.pointerDownPoint.y)>5)},Ce.prototype.resize=function(Pe){Oe.prototype.resize.call(this,Pe),this.isMoved=!0,this.setSize(),this.sizeText()},Ce.prototype.setSize=function(){Oe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),vt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ce.prototype.pointerUp=function(Pe){var Ie=this.state;Ie==="creating"&&(this._suppressMarkerCreateEvent=!0),Oe.prototype.pointerUp.call(this,Pe),this.setSize(),(Ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ce.prototype.showTextEditor=function(){var Pe=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(Pe.textEditor.style.fontSize);Pe.textEditor.clientWidth>=Number.parseInt(Pe.textEditor.style.maxWidth)&&Ie>.9;)Ie-=.1,Pe.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"),De=window.getSelection();if(!De.rangeCount)return!1;De.deleteFromDocument(),De.getRangeAt(0).insertNode(document.createTextNode(Ke)),Ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Pe.textEditDivClicked(Pe.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 Pe=this.getTextScale(),Ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ke=this.textElement.getBBox(),De={x:Ke.width*Pe,y:Ke.height*Pe};Ie.x-=De.x/2,Ie.y-=De.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*Pe,12)+"px",this.textElement.style.display="none"}},Ce.prototype.textEditDivClicked=function(Pe){this.text=Pe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ce.prototype.select=function(){Oe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Oe.prototype.deselect.call(this)},Ce.prototype.dblClick=function(Pe,Ie){Oe.prototype.dblClick.call(this,Pe,Ie),this.showTextEditor()},Ce.prototype.setColor=function(Pe){this.textElement&&vt.setAttributes(this.textElement,[["fill",Pe]]),this.color=Pe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Pe)},Ce.prototype.setFont=function(Pe){this.textElement&&vt.setAttributes(this.textElement,[["font-family",Pe]]),this.fontFamily=Pe,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 Pe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){var Ie=Pe;this.color=Ie.color,this.fontFamily=Ie.fontFamily,this.padding=Ie.padding,this.text=Ie.text,this.createVisual(),Oe.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,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}(Ae),Yt=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.color="transparent",De.lineWidth=3,De.drawing=!1,De.pixelRatio=1,De.color=Ke.defaultColor,De.lineWidth=Ke.defaultStrokeWidth,De.pixelRatio=Ke.freehandPixelRatio,De.setColor=De.setColor.bind(De),De.addCanvas=De.addCanvas.bind(De),De.finishCreation=De.finishCreation.bind(De),De.setLineWidth=De.setLineWidth.bind(De),De.colorPanel=new ne("Color",Ke.defaultColorSet,Ke.defaultColor),De.colorPanel.onColorChanged=De.setColor,De.lineWidthPanel=new ke("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),De.lineWidthPanel.onWidthChanged=De.setLineWidth,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.drawingImage)},Ce.prototype.createVisual=function(){this.visual=vt.createGroup(),this.drawingImage=vt.createImage(),this.visual.appendChild(this.drawingImage);var Pe=vt.createTransform();this.visual.transform.baseVal.appendItem(Pe),this.addMarkerVisualToContainer(this.visual)},Ce.prototype.pointerDown=function(Pe,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(Pe.x,Pe.y),this.drawing=!0):Oe.prototype.pointerDown.call(this,Pe,Ie)},Ce.prototype.manipulate=function(Pe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Pe.x,Pe.y),this.canvasContext.stroke()):Oe.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){Oe.prototype.resize.call(this,Pe),vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),vt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ce.prototype.pointerUp=function(Pe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Oe.prototype.pointerUp.call(this,Pe)},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(),Oe.prototype.select.call(this)},Ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.deselect.call(this)},Ce.prototype.finishCreation=function(){for(var Pe=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],De=Ie[1],tt=Ie[2],He=Ie[3],mt=!1,Wt=0;Wt<this.canvasElement.height;Wt++)for(var kt=0;kt<this.canvasElement.width;kt++)Pe.data[Wt*this.canvasElement.width*4+4*kt+3]>0&&(mt=!0,Wt<De&&(De=Wt),kt<Ke&&(Ke=kt),Wt>He&&(He=Wt),kt>tt&&(tt=kt));if(mt){this.left=Ke/this.pixelRatio,this.top=De/this.pixelRatio,this.width=(tt-Ke)/this.pixelRatio,this.height=(He-De)/this.pixelRatio;var yn=document.createElement("canvas");yn.width=tt-Ke,yn.height=He-De,yn.getContext("2d").putImageData(this.canvasContext.getImageData(Ke,De,tt-Ke,He-De),0,0),this.drawingImgUrl=yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ce.prototype.setDrawingImage=function(){vt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),vt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ce.prototype.setColor=function(Pe){this.color=Pe,this.colorChanged(Pe)},Ce.prototype.setLineWidth=function(Pe){this.lineWidth=Pe},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 Pe=Object.assign({drawingImgUrl:this.drawingImgUrl},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){this.createVisual(),Oe.prototype.restoreState.call(this,Pe),this.drawingImgUrl=Pe.drawingImgUrl,this.setDrawingImage()},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,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}(Ae),hn=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ke||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return De.typeBoxes=[],De.currentType=Ie,De.setCurrentType=De.setCurrentType.bind(De),De}return et(Ce,Oe),Ce.prototype.getUi=function(){var Pe=this,Ie=document.createElement("div");Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2";for(var Ke=function(He){var mt="both";switch(He){case 0:mt="both";break;case 1:mt="start";break;case 2:mt="end";break;case 3:mt="none"}var Wt=document.createElement("div");if(Wt.style.display="flex",Wt.style.flexGrow="2",Wt.style.alignItems="center",Wt.style.justifyContent="space-between",Wt.style.padding="5px",Wt.style.borderWidth="2px",Wt.style.borderStyle="solid",Wt.style.borderColor=mt===De.currentType?De.uiStyleSettings.toolboxAccentColor:"transparent",Wt.addEventListener("click",function(){Pe.setCurrentType(mt,Wt)}),Ie.appendChild(Wt),mt==="both"||mt==="start"){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.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="`+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,kt.style.marginLeft="5px",Wt.appendChild(kt)}var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.style.flexGrow="2";var pn=document.createElement("hr");if(pn.style.minWidth="20px",pn.style.border="0px",pn.style.borderTop="3px solid "+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee"),pn.style.flexGrow="2",yn.appendChild(pn),Wt.appendChild(yn),mt==="both"||mt==="end"){var mn=document.createElement("div");mn.style.display="flex",mn.style.alignItems="center",mn.style.minHeight="20px",mn.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="`+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,mn.style.marginRight="5px",Wt.appendChild(mn)}De.typeBoxes.push(Wt)},De=this,tt=0;tt<4;tt++)Ke(tt);return Ie},Ce.prototype.setCurrentType=function(Pe,Ie){var Ke=this;this.currentType=Pe,this.typeBoxes.forEach(function(De){De.style.borderColor=De===Ie?Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ce}(te),vi=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.arrowType="end",De.arrowBaseHeight=10,De.arrowBaseWidth=10,De.getArrowPoints=De.getArrowPoints.bind(De),De.setArrowType=De.setArrowType.bind(De),De.arrowTypePanel=new hn("Arrow type","end"),De.arrowTypePanel.onArrowTypeChanged=De.setArrowType,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.arrow1&&Pe!==this.arrow2)},Ce.prototype.getArrowPoints=function(Pe,Ie){var Ke=this.arrowBaseWidth+2*this.strokeWidth,De=this.arrowBaseHeight+2*this.strokeWidth;return Pe-Ke/2+","+(Ie+De/2)+" "+Pe+","+(Ie-De/2)+" "+(Pe+Ke/2)+","+(Ie+De/2)},Ce.prototype.createTips=function(){this.arrow1=vt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(vt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=vt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(vt.createTransform()),this.visual.appendChild(this.arrow2)},Ce.prototype.pointerDown=function(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.state==="creating"&&this.createTips()},Ce.prototype.adjustVisual=function(){if(Oe.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",vt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),vt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Pe=0;Math.abs(this.x1-this.x2)>.1&&(Pe=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(Pe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ie,0);var Ke=this.arrow2.transform.baseVal.getItem(0);Ke.setRotate(Pe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ke,0)}},Ce.prototype.setArrowType=function(Pe){this.arrowType=Pe,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 Pe=Object.assign({arrowType:this.arrowType},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Oe.prototype.restoreState.call(this,Pe);var Ie=Pe;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}(It),ui=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.fillColor=Ke.defaultFillColor,De.strokeWidth=0,De.fillPanel=new ne("Color",Ke.defaultColorSet,Ke.defaultFillColor),De.fillPanel.onColorChanged=De.setFillColor,De}return et(Ce,Oe),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Oe.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.typeName="CoverMarker",Ce.title="Cover marker",Ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ce}(Me),Bn=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'<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 tt.opacities=[],tt.opacityBoxes=[],tt.opacities=Ie,tt.currentOpacity=Ke,tt.setCurrentOpacity=tt.setCurrentOpacity.bind(tt),tt}return et(Ce,Oe),Ce.prototype.getUi=function(){var Pe=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 De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.justifyContent="center",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=Ke===Pe.currentOpacity?Pe.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Pe.setCurrentOpacity(Ke,De)}),Ie.appendChild(De);var tt=document.createElement("div");tt.innerText=100*Ke+"%",De.appendChild(tt),Pe.opacityBoxes.push(De)}),Ie},Ce.prototype.setCurrentOpacity=function(Pe,Ie){var Ke=this;this.currentOpacity=Pe,this.opacityBoxes.forEach(function(De){De.style.borderColor=De===Ie?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ce}(te),di=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.setOpacity=De.setOpacity.bind(De),De.fillColor=Ke.defaultHighlightColor,De.strokeWidth=0,De.opacity=Ke.defaultHighlightOpacity,De.fillPanel=new ne("Color",Ke.defaultColorSet,De.fillColor),De.fillPanel.onColorChanged=De.setFillColor,De.opacityPanel=new Bn("Opacity",Ke.defaultOpacitySteps,De.opacity),De.opacityPanel.onOpacityChanged=De.setOpacity,De}return et(Ce,Oe),Ce.prototype.setOpacity=function(Pe){this.opacity=Pe,this.visual&&vt.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 Pe=Oe.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},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}(ui),nt='<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>',ze='<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>',gn=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.bgColor="transparent",De.tipPosition={x:0,y:0},De.tipBase1Position={x:0,y:0},De.tipBase2Position={x:0,y:0},De.tipMoving=!1,De.color=Ke.defaultStrokeColor,De.bgColor=Ke.defaultFillColor,De.fontFamily=Ke.defaultFontFamily,De.defaultSize={x:100,y:30},De.setBgColor=De.setBgColor.bind(De),De.getTipPoints=De.getTipPoints.bind(De),De.positionTip=De.positionTip.bind(De),De.setTipPoints=De.setTipPoints.bind(De),De.colorPanel=new ne("Text color",Ke.defaultColorSet,De.color,nt),De.colorPanel.onColorChanged=De.setColor,De.bgColorPanel=new ne("Fill color",Ke.defaultColorSet,De.bgColor,ze),De.bgColorPanel.onColorChanged=De.setBgColor,De.fontFamilyPanel=new Et("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De.tipGrip=new pe,De.tipGrip.visual.transform.baseVal.appendItem(vt.createTransform()),De.controlBox.appendChild(De.tipGrip.visual),De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return Oe.prototype.ownsTarget.call(this,Pe)||this.tipGrip.ownsTarget(Pe)||this.tip===Pe},Ce.prototype.createTip=function(){vt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=vt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ce.prototype.pointerDown=function(Pe,Ie){this.state==="new"&&Oe.prototype.pointerDown.call(this,Pe,Ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Oe.prototype.pointerDown.call(this,Pe,Ie)},Ce.prototype.pointerUp=function(Pe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Oe.prototype.pointerUp.call(this,Pe);else{var Ie=this.state==="creating";Oe.prototype.pointerUp.call(this,Pe),this.setTipPoints(Ie),this.positionTip()}},Ce.prototype.manipulate=function(Pe){if(this.tipMoving){var Ie=this.unrotatePoint(Pe);this.tipPosition={x:Ie.x-this.manipulationStartLeft,y:Ie.y-this.manipulationStartTop},this.positionTip()}else Oe.prototype.manipulate.call(this,Pe)},Ce.prototype.setBgColor=function(Pe){this.bgRectangle&&this.tip&&(vt.setAttributes(this.bgRectangle,[["fill",Pe]]),vt.setAttributes(this.tip,[["fill",Pe]])),this.bgColor=Pe,this.fillColorChanged(Pe)},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(Pe){Pe===void 0&&(Pe=!1);var Ie=Math.min(this.height/2,15),Ke=this.height/5;Pe&&(this.tipPosition={x:Ie+Ke/2,y:this.height+20});var De=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?De<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?De<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?De<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}):De<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(Pe){Oe.prototype.resize.call(this,Pe),this.positionTip()},Ce.prototype.positionTip=function(){vt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Pe=this.tipGrip.visual.transform.baseVal.getItem(0);Pe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Pe,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(),Oe.prototype.select.call(this)},Ce.prototype.getState=function(){var Pe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){var Ie=Pe;this.bgColor=Ie.bgColor,this.tipPosition=Ie.tipPosition,Oe.prototype.restoreState.call(this,Pe),this.createTip(),this.setTipPoints()},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,Ie),this.tipPosition={x:this.tipPosition.x*Pe,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}(Tt),Xn=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.opacity=1,De.strokeColor=Ke.defaultColor,De.strokeWidth=Ke.defaultStrokeWidth,De.strokeDasharray=Ke.defaultStrokeDasharray,De.fillColor=Ke.defaultFillColor,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.setOpacity=De.setOpacity.bind(De),De.createVisual=De.createVisual.bind(De),De.strokePanel=new ne("Line color",Bt(Ke.defaultColorSet,["transparent"]),Ke.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.fillPanel=new ne("Fill color",Bt(Ke.defaultColorSet,["transparent"]),De.fillColor,ze),De.fillPanel.onColorChanged=De.setFillColor,De.strokeWidthPanel=new ke("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new st("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De.opacityPanel=new Bn("Opacity",Ke.defaultOpacitySteps,De.opacity),De.opacityPanel.onOpacityChanged=De.setOpacity,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual)},Ce.prototype.createVisual=function(){this.visual=vt.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(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.manipulate=function(Pe){Oe.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){Oe.prototype.resize.call(this,Pe),this.setSize()},Ce.prototype.setSize=function(){Oe.prototype.setSize.call(this),vt.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(Pe){Oe.prototype.pointerUp.call(this,Pe),this.setSize()},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.visual&&vt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},Ce.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.visual&&vt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Pe),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.visual&&vt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.visual&&vt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ce.prototype.setOpacity=function(Pe){this.opacity=Pe,this.visual&&vt.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 Pe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){var Ie=Pe;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.opacity=Ie.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,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}(Ae),ti=function(Oe){function Ce(Pe,Ie,Ke){return Oe.call(this,Pe,Ie,Ke)||this}return et(Ce,Oe),Object.defineProperty(Ce.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.tip1&&Pe!==this.tip2)},Ce.prototype.createTips=function(){this.tip1=vt.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(vt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=vt.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(vt.createTransform()),this.visual.appendChild(this.tip2)},Ce.prototype.pointerDown=function(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.state==="creating"&&this.createTips()},Ce.prototype.adjustVisual=function(){if(Oe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(vt.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()]]),vt.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 Pe=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(Pe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ie,0);var Ke=this.tip2.transform.baseVal.getItem(0);Ke.setRotate(Pe+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 Pe=Oe.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Oe.prototype.restoreState.call(this,Pe),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}(It),nn=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.strokePanel.colors=Ke.defaultColorSet,De.fillColor="transparent",De}return et(Ce,Oe),Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Oe.prototype.getState.call(this);return Pe.typeName=Ce.typeName,Pe},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}(Xn),vn=function(){function Oe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Oe.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))},Oe.prototype.replaceLastUndoStep=function(Ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ce)},Oe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Oe.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}},Oe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Oe}(),An=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.curveX=0,De.curveY=0,De.manipulationStartCurveX=0,De.manipulationStartCurveY=0,De.setStrokeColor=De.setStrokeColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.positionGrips=De.positionGrips.bind(De),De.addControlGrips=De.addControlGrips.bind(De),De.adjustVisual=De.adjustVisual.bind(De),De.setupControlBox=De.setupControlBox.bind(De),De.resize=De.resize.bind(De),De.strokeColor=Ke.defaultColor,De.strokeWidth=Ke.defaultStrokeWidth,De.strokeDasharray=Ke.defaultStrokeDasharray,De.strokePanel=new ne("Line color",Ke.defaultColorSet,Ke.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new ke("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new st("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.selectorCurve&&Pe!==this.visibleCurve&&!this.curveGrip.ownsTarget(Pe))},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=vt.createGroup(),this.selectorCurve=vt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=vt.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(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Pe.x,this.curveY=Pe.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()),vt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),vt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),vt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ce.prototype.setupControlBox=function(){Oe.prototype.setupControlBox.call(this),this.curveControlLine1=vt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=vt.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,Oe.prototype.addControlGrips.call(this)},Ce.prototype.positionGrips=function(){Oe.prototype.positionGrips.call(this);var Pe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Pe/2,this.curveY-Pe/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(Pe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Pe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Pe.y-this.manipulationStartY),Oe.prototype.manipulate.call(this,Pe)},Ce.prototype.resize=function(Pe){this.activeGrip===this.curveGrip&&(this.curveX=Pe.x,this.curveY=Pe.y),Oe.prototype.resize.call(this,Pe),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(Pe){this.strokeColor=Pe,this.adjustVisual(),this.colorChanged(Pe)},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.adjustVisual()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.adjustVisual()},Ce.prototype.scale=function(Pe,Ie){this.curveX=this.curveX*Pe,this.curveY=this.curveY*Ie,Oe.prototype.scale.call(this,Pe,Ie)},Object.defineProperty(Ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ce.prototype.getState=function(){var Pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Oe.prototype.getState.call(this));return Pe.typeName=Ce.typeName,Pe},Ce.prototype.restoreState=function(Pe){Oe.prototype.restoreState.call(this,Pe);var Ie=Pe;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}(ut),Si=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ie,Ke)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.textColor="transparent",De.fontSize="1rem",De.isMoved=!1,De.captionText="Caption",De.PADDING=5,De.captionBoxWidth=0,De.captionBoxHeight=0,De.strokeColor=Ke.defaultColor,De.strokeWidth=Ke.defaultStrokeWidth,De.strokeDasharray=Ke.defaultStrokeDasharray,De.fillColor=Ke.defaultFillColor,De.textColor=Ke.defaultStrokeColor,De.fontFamily=Ke.defaultFontFamily,De.fontSize=Ke.defaultCaptionFontSize,De.captionText=Ke.defaultCaptionText,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.createVisual=De.createVisual.bind(De),De.sizeCaption=De.sizeCaption.bind(De),De.setCaptionText=De.setCaptionText.bind(De),De.showTextEditor=De.showTextEditor.bind(De),De.positionTextEditor=De.positionTextEditor.bind(De),De.finishTextEditing=De.finishTextEditing.bind(De),De.setFont=De.setFont.bind(De),De.setTextColor=De.setTextColor.bind(De),De.strokePanel=new ne("Line color",Bt(Ke.defaultColorSet,["transparent"]),De.strokeColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.fillPanel=new ne("Fill color",Bt(Ke.defaultColorSet,["transparent"]),De.fillColor,ze),De.fillPanel.onColorChanged=De.setFillColor,De.strokeWidthPanel=new ke("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new st("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De.fontFamilyPanel=new Et("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De.textColorPanel=new ne("Text color",Ke.defaultColorSet,De.textColor,nt),De.textColorPanel.onColorChanged=De.setTextColor,De}return et(Ce,Oe),Ce.prototype.ownsTarget=function(Pe){return!(!Oe.prototype.ownsTarget.call(this,Pe)&&Pe!==this.visual&&Pe!==this.frame&&Pe!==this.captionBg&&Pe!==this.captionElement)},Ce.prototype.createVisual=function(){this.visual=vt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=vt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=vt.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=vt.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(Pe){this.captionText=Pe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ce.prototype.pointerDown=function(Pe,Ie){Oe.prototype.pointerDown.call(this,Pe,Ie),this.isMoved=!1,this.pointerDownPoint=Pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Pe),this._state="creating")},Ce.prototype.manipulate=function(Pe){Oe.prototype.manipulate.call(this,Pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Pe.x-this.pointerDownPoint.x)>5||Math.abs(Pe.y-this.pointerDownPoint.y)>5)},Ce.prototype.resize=function(Pe){Oe.prototype.resize.call(this,Pe),this.setSize()},Ce.prototype.sizeCaption=function(){var Pe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Pe.width+2*this.PADDING,this.captionBoxHeight=Pe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),vt.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')"]]),vt.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 Pe=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"&&Pe.finishTextEditing(Pe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ie){Ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Pe.finishTextEditing(Pe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Pe.finishTextEditing(Pe.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(Pe){this.setCaptionText(Pe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ce.prototype.setFont=function(Pe){this.captionElement&&vt.setAttributes(this.captionElement,[["font-family",Pe]]),this.fontFamily=Pe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ce.prototype.setTextColor=function(Pe){this.captionElement&&vt.setAttributes(this.captionElement,[["fill",Pe]]),this.textColor=Pe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ce.prototype.setSize=function(){Oe.prototype.setSize.call(this),vt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ce.prototype.pointerUp=function(Pe){Oe.prototype.pointerUp.call(this,Pe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ce.prototype.dblClick=function(Pe,Ie){Oe.prototype.dblClick.call(this,Pe,Ie),this.showTextEditor()},Ce.prototype.setStrokeColor=function(Pe){this.strokeColor=Pe,this.frame&&vt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Pe),this.stateChanged()},Ce.prototype.setFillColor=function(Pe){this.fillColor=Pe,this.captionBg&&vt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Pe),this.stateChanged()},Ce.prototype.setStrokeWidth=function(Pe){this.strokeWidth=Pe,this.frame&&vt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ce.prototype.setStrokeDasharray=function(Pe){this.strokeDasharray=Pe,this.frame&&vt.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 Pe=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},Oe.prototype.getState.call(this));return Pe.typeName=this.typeName,Pe},Ce.prototype.restoreState=function(Pe){var Ie=Pe;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(),Oe.prototype.restoreState.call(this,Pe),this.setSize()},Ce.prototype.scale=function(Pe,Ie){Oe.prototype.scale.call(this,Pe,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}(Ae),Vn=function(){function Oe(Ce,Pe){Pe===void 0&&(Pe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ce,this.cancelable=Pe}return Object.defineProperty(Oe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Oe.prototype.preventDefault=function(){this._defaultPrevented=!0},Oe}(),Mi=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,!1)||this;return De.dataUrl=Ie,De.state=Ke,De}return et(Ce,Oe),Ce}(Vn),pt=function(Oe){function Ce(Pe,Ie,Ke){Ke===void 0&&(Ke=!1);var De=Oe.call(this,Pe,Ke)||this;return De.marker=Ie,De}return et(Ce,Oe),Ce}(Vn),ht=function(){function Oe(){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 Oe.prototype.addEventListener=function(Ce,Pe){this[Ce].push(Pe)},Oe.prototype.removeEventListener=function(Ce,Pe){var Ie=this[Ce].indexOf(Pe);Ie>-1&&this[Ce].splice(Ie,1)},Oe}(),dn=function(){function Oe(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 xt,this._isOpen=!1,this.undoRedoManager=new vn,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 ht,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Oe.instanceCounter++,this.styles=new yt(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(Oe.prototype,"ALL_MARKER_TYPES",{get:function(){return[dt,Yt,vi,Tt,nn,Xn,di,gn,ti,ui,It,An,Si]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[dt,Yt,vi,Tt,Xn,di,gn]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[dt,Yt,vi,Tt,di]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ce){var Pe=this;this._availableMarkerTypes.splice(0),Ce.forEach(function(Ie){if(typeof Ie=="string"){var Ke=Pe.ALL_MARKER_TYPES.find(function(De){return De.typeName===Ie});Ke!==void 0&&Pe._availableMarkerTypes.push(Ke)}else Pe._availableMarkerTypes.push(Ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.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(Oe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Oe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Oe.prototype.show=function(){var Ce=this;this.styles.styleSheetRoot===void 0&&Ct.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ct.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Pe){return Pe(new Vn(Ce))})},Oe.prototype.render=function(){return Lt(this,void 0,void 0,function(){var Ce;return Nt(this,function(Pe){switch(Pe.label){case 0:return this.setCurrentMarker(),(Ce=new bt).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 Pe.sent(),[4,Ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Pe.sent()]}})})},Oe.prototype.close=function(Ce){var Pe=this;if(Ce===void 0&&(Ce=!1),this.isOpen){var Ie=!1;Ce||this.eventListeners.beforeclose.forEach(function(Ke){var De=new Vn(Pe,!0);Ke(De),De.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 Vn(Pe))}),this.detachEvents(),this._isOpen=!1)}},Oe.prototype.addMarkersToToolbar=function(){for(var Ce,Pe=[],Ie=0;Ie<arguments.length;Ie++)Pe[Ie]=arguments[Ie];(Ce=this._availableMarkerTypes).push.apply(Ce,Pe)},Oe.prototype.addRenderEventListener=function(Ce){this.addEventListener("render",function(Pe){Ce(Pe.dataUrl,Pe.state)})},Oe.prototype.removeRenderEventListener=function(Ce){},Oe.prototype.addCloseEventListener=function(Ce){this.addEventListener("close",function(){Ce()})},Oe.prototype.removeCloseEventListener=function(Ce){},Oe.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))},Oe.prototype.onPopupTargetResize=function(){var Ce=1*this.target.clientWidth/this.target.clientHeight,Pe=this.editorCanvas.clientWidth/Ce>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ce:this.editorCanvas.clientWidth,Ie=Pe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ce;this.resize(Pe,Ie)},Oe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Oe.prototype.resize=function(Ce,Pe){this._isResizing=!0;var Ie=Ce/this.imageWidth,Ke=Pe/this.imageHeight;this.imageWidth=Math.round(Ce),this.imageHeight=Math.round(Pe),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},Oe.prototype.scaleMarkers=function(Ce,Pe){var Ie,Ke=this;this._currentMarker&&this._currentMarker instanceof Tt?this._currentMarker.scale(Ce,Pe):(Ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(De){De!==Ke._currentMarker&&De.scale(Ce,Pe)}),Ie!==void 0&&this.setCurrentMarker(Ie)},Oe.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"},Oe.prototype.setTopLeft=function(){var Ce=this.editingTarget.getBoundingClientRect(),Pe=this.editorCanvas.getBoundingClientRect();this.left=Ce.left-Pe.left,this.top=Ce.top-Pe.top},Oe.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)},Oe.prototype.addDefs=function(){for(var Ce,Pe=[],Ie=0;Ie<arguments.length;Ie++)Pe[Ie]=arguments[Ie];this.defs=vt.createDefs(),this.addDefsToImage(),(Ce=this.defs).append.apply(Ce,Pe)},Oe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Oe.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)},Oe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Oe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Oe.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)},Oe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Oe.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)},Oe.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()},Oe.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")},Oe.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"},Oe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Oe.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 Ut(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Te(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Oe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Oe.prototype.removeMarker=function(Ce){this.markerImage.removeChild(Ce.container),this.markers.indexOf(Ce)>-1&&this.markers.splice(this.markers.indexOf(Ce),1),Ce.dispose()},Oe.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())},Oe.prototype.toolbarButtonClicked=function(Ce,Pe){if(Ce==="marker"&&Pe!==void 0)this.createNewMarker(Pe);else if(Ce==="action")switch(Pe){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()}},Oe.prototype.deleteSelectedMarker=function(){var Ce=this;if(this._currentMarker!==void 0){var Pe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ke){var De=new pt(Ce,Ce._currentMarker,!0);Ke(De),De.defaultPrevented&&(Pe=!0)}),!Pe){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 pt(Ce,Ie))})}}},Oe.prototype.clear=function(){var Ce=this,Pe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(tt){var He=new pt(Ce,void 0,!0);tt(He),He.defaultPrevented&&(Pe=!0)}),!Pe)){this.setCurrentMarker();for(var Ie=function(tt){var He=Ke.markers[tt];Ke.setCurrentMarker(Ke.markers[tt]),Ke._currentMarker.dispose(),Ke.markerImage.removeChild(Ke._currentMarker.container),Ke.markers.splice(Ke.markers.indexOf(Ke._currentMarker),1),Ke.eventListeners.markerdelete.forEach(function(mt){return mt(new pt(Ce,He))})},Ke=this,De=this.markers.length-1;De>=0;De--)Ie(De);this.addUndoStep()}},Object.defineProperty(Oe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Oe.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))},Oe.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)},Oe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Oe.prototype.addUndoStep=function(){var Ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Pe=this.getState(),Ie=this.undoRedoManager.getLastUndoStep();if(!Ie||Ie.width===Pe.width&&Ie.height===Pe.height){var Ke=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Pe),Ke<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(De){return De(new Vn(Ce))})}else this.undoRedoManager.replaceLastUndoStep(Pe),this.eventListeners.statechange.forEach(function(De){return De(new Vn(Ce))})}},Oe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Oe.prototype.undoStep=function(){var Ce=this,Pe=this.undoRedoManager.undo();Pe!==void 0&&(this.restoreState(Pe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ie){return Ie(new Vn(Ce))}))},Oe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Oe.prototype.redoStep=function(){var Ce=this,Pe=this.undoRedoManager.redo();Pe!==void 0&&(this.restoreState(Pe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ie){return Ie(new Vn(Ce))}))},Oe.prototype.stepZoom=function(){var Ce=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ce<this.zoomSteps.length-1?this.zoomSteps[Ce+1]:this.zoomSteps[0]},Oe.prototype.panTo=function(Ce){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ce.x,top:this.prevPanPoint.y-Ce.y}),this.prevPanPoint=Ce},Oe.prototype.startRenderAndClose=function(){return Lt(this,void 0,void 0,function(){var Ce,Pe,Ie=this;return Nt(this,function(Ke){switch(Ke.label){case 0:return[4,this.render()];case 1:return Ce=Ke.sent(),Pe=this.getState(),this.eventListeners.render.forEach(function(De){return De(new Mi(Ie,Ce,Pe))}),this.close(!0),[2]}})})},Oe.prototype.getState=function(Ce){Ce===!0&&this.setCurrentMarker();var Pe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ie){return Pe.markers.push(Ie.getState())}),Pe},Oe.prototype.restoreState=function(Ce){var Pe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ce.markers.forEach(function(Ie){var Ke=Pe._availableMarkerTypes.find(function(tt){return tt.typeName===Ie.typeName});if(Ke!==void 0){var De=Pe.addNewMarker(Ke);De.restoreState(Ie),Pe.markers.push(De)}}),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 Vn(Pe))})},Oe.prototype.addNewMarker=function(Ce){var Pe=vt.createGroup();return this.markerImage.appendChild(Pe),new Ce(Pe,this.overlayContainer,this.settings)},Oe.prototype.createNewMarker=function(Ce){var Pe,Ie=this;(Pe=typeof Ce=="string"?this._availableMarkerTypes.find(function(Ke){return Ke.typeName===Ce}):Ce)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Pe),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(Pe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ke){return Ke(new pt(Ie,Ie._currentMarker))}))},Oe.prototype.markerCreated=function(Ce){var Pe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ce),this.setCurrentMarker(Ce),Ce instanceof Yt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Yt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ie){return Ie(new pt(Pe,Pe._currentMarker))})},Oe.prototype.colorChanged=function(Ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ce,this.settings.defaultStrokeColor=Ce)},Oe.prototype.fillColorChanged=function(Ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ce)},Oe.prototype.markerStateChanged=function(Ce){var Pe=this;this.eventListeners.markerchange.forEach(function(Ie){return Ie(new pt(Pe,Ce))})},Oe.prototype.setCurrentMarker=function(Ce){var Pe=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 pt(Pe,Pe._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 pt(Pe,Pe._currentMarker))}))},Oe.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 Pe=this.markers.find(function(Ie){return Ie.ownsTarget(Ce.target)});Pe!==void 0?(this.setCurrentMarker(Pe),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))},Oe.prototype.onDblClick=function(Ce){if(this._isFocused||this.focus(),this.mode==="select"){var Pe=this.markers.find(function(Ie){return Ie.ownsTarget(Ce.target)});Pe!==void 0&&Pe!==this._currentMarker&&this.setCurrentMarker(Pe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ce.clientX,Ce.clientY),Ce.target):this.setCurrentMarker()}},Oe.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}))},Oe.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()},Oe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Oe.prototype.onKeyUp=function(Ce){this._currentMarker===void 0||this.notesArea!==void 0||Ce.key!=="Delete"&&Ce.key!=="Backspace"||this.deleteSelectedMarker()},Oe.prototype.clientToLocalCoordinates=function(Ce,Pe){var Ie=this.markerImage.getBoundingClientRect();return{x:(Ce-Ie.left)/this.zoomLevel,y:(Pe-Ie.top)/this.zoomLevel}},Oe.prototype.onWindowResize=function(){this.positionUI()},Oe.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()},Oe.prototype.addLicenseKey=function(Ce){Ue.addKey(Ce)},Oe.prototype.addEventListener=function(Ce,Pe){this.eventListeners.addEventListener(Ce,Pe)},Oe.prototype.removeEventListener=function(Ce,Pe){this.eventListeners.removeEventListener(Ce,Pe)},Oe.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(Oe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Oe.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(Pe){return Pe(new Vn(Ce))}))},Oe.prototype.blur=function(){var Ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Pe){return Pe(new Vn(Ce))}))},Oe.instanceCounter=0,Oe}()},65835:function(qt,kn){"use strict";Object.defineProperty(kn,"__esModule",{value:!0}),kn.default=void 0;var Ee={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"},ue=Ee;kn.default=ue},54203:function(qt,kn,Ee){"use strict";Ee.d(kn,{Z5:function(){return sc},_l:function(){return rs},bK:function(){return Oc}});var ue=Ee(59301),et=Ee(75229);function Lt(ve,ye){ve.prototype=Object.create(ye.prototype),ve.prototype.constructor=ve,(0,et.Z)(ve,ye)}var Nt=Ee(96663),Bt=Ee(59781),vt=ue.createContext(null),Ue=null;function bt(ve){ve()}var Ct=bt,yt=function(ye){return Ct=ye},Zt=function(){return Ct};function Ot(){var ve=Zt(),ye=null,be=null;return{clear:function(){ye=null,be=null},notify:function(){ve(function(){for(var Xe=ye;Xe;)Xe.callback(),Xe=Xe.next})},get:function(){for(var Xe=[],qe=ye;qe;)Xe.push(qe),qe=qe.next;return Xe},subscribe:function(Xe){var qe=!0,ct=be={callback:Xe,next:null,prev:be};return ct.prev?ct.prev.next=ct:ye=ct,function(){!qe||ye===null||(qe=!1,ct.next?ct.next.prev=ct.prev:be=ct.prev,ct.prev?ct.prev.next=ct.next:ye=ct.next)}}}}var Ut={notify:function(){},get:function(){return[]}};function Te(ve,ye){var be,Re=Ut;function Xe(un){return Qt(),Re.subscribe(un)}function qe(){Re.notify()}function ct(){fn.onStateChange&&fn.onStateChange()}function St(){return!!be}function Qt(){be||(be=ye?ye.addNestedSub(ct):ve.subscribe(ct),Re=Ot())}function wn(){be&&(be(),be=void 0,Re.clear(),Re=Ut)}var fn={addNestedSub:Xe,notifyNestedSubs:qe,handleChangeWrapper:ct,isSubscribed:St,trySubscribe:Qt,tryUnsubscribe:wn,getListeners:function(){return Re}};return fn}var te=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?ue.useLayoutEffect:ue.useEffect;function ne(ve){var ye=ve.store,be=ve.context,Re=ve.children,Xe=(0,ue.useMemo)(function(){var St=Te(ye);return{store:ye,subscription:St}},[ye]),qe=(0,ue.useMemo)(function(){return ye.getState()},[ye]);te(function(){var St=Xe.subscription;return St.onStateChange=St.notifyNestedSubs,St.trySubscribe(),qe!==ye.getState()&&St.notifyNestedSubs(),function(){St.tryUnsubscribe(),St.onStateChange=null}},[Xe,qe]);var ct=be||vt;return ue.createElement(ct.Provider,{value:Xe},Re)}var de=ne,le=Ee(30176),pe=Ee(94266),Se=Ee.n(pe),Ae=Ee(53410),Me=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ke=["reactReduxForwardedRef"],st=[],dt=[null,null],xt=function(ye){try{return JSON.stringify(ye)}catch(be){return String(ye)}};function ut(ve,ye){var be=ve[1];return[ye.payload,be+1]}function It(ve,ye,be){te(function(){return ve.apply(void 0,ye)},be)}function Et(ve,ye,be,Re,Xe,qe,ct){ve.current=Re,ye.current=Xe,be.current=!1,qe.current&&(qe.current=null,ct())}function Tt(ve,ye,be,Re,Xe,qe,ct,St,Qt,wn){if(ve){var fn=!1,un=null,ln=function(){if(!fn){var Ar=ye.getState(),Lr,Xr;try{Lr=Re(Ar,Xe.current)}catch(bo){Xr=bo,un=bo}Xr||(un=null),Lr===qe.current?ct.current||Qt():(qe.current=Lr,St.current=Lr,ct.current=!0,wn({type:"STORE_UPDATED",payload:{error:Xr}}))}};be.onStateChange=ln,be.trySubscribe(),ln();var Rn=function(){if(fn=!0,be.tryUnsubscribe(),be.onStateChange=null,un)throw un};return Rn}}var Yt=function(){return[null,0]};function hn(ve,ye){ye===void 0&&(ye={});var be=ye,Re=be.getDisplayName,Xe=Re===void 0?function(ps){return"ConnectAdvanced("+ps+")"}:Re,qe=be.methodName,ct=qe===void 0?"connectAdvanced":qe,St=be.renderCountProp,Qt=St===void 0?void 0:St,wn=be.shouldHandleStateChanges,fn=wn===void 0?!0:wn,un=be.storeKey,ln=un===void 0?"store":un,Rn=be.withRef,bi=Rn===void 0?!1:Rn,Ar=be.forwardRef,Lr=Ar===void 0?!1:Ar,Xr=be.context,bo=Xr===void 0?vt:Xr,Go=(0,le.Z)(be,Me);if(0)var Wo;var va=bo;return function(Ks){var Hu=Ks.displayName||Ks.name||"Component",Is=Xe(Hu),ju=(0,Nt.Z)({},Go,{getDisplayName:Xe,methodName:ct,renderCountProp:Qt,shouldHandleStateChanges:fn,storeKey:ln,displayName:Is,wrappedComponentName:Hu,WrappedComponent:Ks}),Ic=Go.pure;function Kc(Cu){return ve(Cu.dispatch,ju)}var xh=Ic?ue.useMemo:function(Cu){return Cu()};function Bd(Cu){var Uh=(0,ue.useMemo)(function(){var Du=Cu.reactReduxForwardedRef,Gd=(0,le.Z)(Cu,ke);return[Cu.context,Du,Gd]},[Cu]),zu=Uh[0],Eh=Uh[1],ig=Uh[2],Ph=(0,ue.useMemo)(function(){return zu&&zu.Consumer&&(0,Ae.isContextConsumer)(ue.createElement(zu.Consumer,null))?zu:va},[zu,va]),$o=(0,ue.useContext)(Ph),Tf=!!Cu.store&&!!Cu.store.getState&&!!Cu.store.dispatch,Kg=!!$o&&!!$o.store,wh=Tf?Cu.store:$o.store,lf=(0,ue.useMemo)(function(){return Kc(wh)},[wh]),Pf=(0,ue.useMemo)(function(){if(!fn)return dt;var Du=Te(wh,Tf?null:$o.subscription),Gd=Du.notifyNestedSubs.bind(Du);return[Du,Gd]},[wh,Tf,$o]),md=Pf[0],Dg=Pf[1],Lg=(0,ue.useMemo)(function(){return Tf?$o:(0,Nt.Z)({},$o,{subscription:md})},[Tf,$o,md]),mp=(0,ue.useReducer)(ut,st,Yt),$p=mp[0],Yg=$p[0],rg=mp[1];if(Yg&&Yg.error)throw Yg.error;var vp=(0,ue.useRef)(),Xg=(0,ue.useRef)(ig),og=(0,ue.useRef)(),ag=(0,ue.useRef)(!1),Jg=xh(function(){return og.current&&ig===Xg.current?og.current:lf(wh.getState(),ig)},[wh,Yg,ig]);It(Et,[Xg,vp,ag,ig,Jg,og,Dg]),It(Tt,[fn,wh,md,lf,Xg,vp,ag,og,Dg,rg],[wh,md,lf]);var Ya=(0,ue.useMemo)(function(){return ue.createElement(Ks,(0,Nt.Z)({},Jg,{ref:Eh}))},[Eh,Ks,Jg]),Yc=(0,ue.useMemo)(function(){return fn?ue.createElement(Ph.Provider,{value:Lg},Ya):Ya},[Ph,Ya,Lg]);return Yc}var pd=Ic?ue.memo(Bd):Bd;if(pd.WrappedComponent=Ks,pd.displayName=Bd.displayName=Is,Lr){var lc=ue.forwardRef(function(Uh,zu){return ue.createElement(pd,(0,Nt.Z)({},Uh,{reactReduxForwardedRef:zu}))});return lc.displayName=Is,lc.WrappedComponent=Ks,Se()(lc,Ks)}return Se()(pd,Ks)}}function vi(ve,ye){return ve===ye?ve!==0||ye!==0||1/ve===1/ye:ve!==ve&&ye!==ye}function ui(ve,ye){if(vi(ve,ye))return!0;if(typeof ve!="object"||ve===null||typeof ye!="object"||ye===null)return!1;var be=Object.keys(ve),Re=Object.keys(ye);if(be.length!==Re.length)return!1;for(var Xe=0;Xe<be.length;Xe++)if(!Object.prototype.hasOwnProperty.call(ye,be[Xe])||!vi(ve[be[Xe]],ye[be[Xe]]))return!1;return!0}function Bn(ve,ye){var be={},Re=function(ct){var St=ve[ct];typeof St=="function"&&(be[ct]=function(){return ye(St.apply(void 0,arguments))})};for(var Xe in ve)Re(Xe);return be}function di(ve){return function(be,Re){var Xe=ve(be,Re);function qe(){return Xe}return qe.dependsOnOwnProps=!1,qe}}function nt(ve){return ve.dependsOnOwnProps!==null&&ve.dependsOnOwnProps!==void 0?!!ve.dependsOnOwnProps:ve.length!==1}function ze(ve,ye){return function(Re,Xe){var qe=Xe.displayName,ct=function(Qt,wn){return ct.dependsOnOwnProps?ct.mapToProps(Qt,wn):ct.mapToProps(Qt)};return ct.dependsOnOwnProps=!0,ct.mapToProps=function(Qt,wn){ct.mapToProps=ve,ct.dependsOnOwnProps=nt(ve);var fn=ct(Qt,wn);return typeof fn=="function"&&(ct.mapToProps=fn,ct.dependsOnOwnProps=nt(fn),fn=ct(Qt,wn)),fn},ct}}function gn(ve){return typeof ve=="function"?ze(ve,"mapDispatchToProps"):void 0}function Xn(ve){return ve?void 0:di(function(ye){return{dispatch:ye}})}function ti(ve){return ve&&typeof ve=="object"?di(function(ye){return Bn(ve,ye)}):void 0}var nn=[gn,Xn,ti];function vn(ve){return typeof ve=="function"?ze(ve,"mapStateToProps"):void 0}function An(ve){return ve?void 0:di(function(){return{}})}var Si=[vn,An];function Vn(ve,ye,be){return(0,Nt.Z)({},be,ve,ye)}function Mi(ve){return function(be,Re){var Xe=Re.displayName,qe=Re.pure,ct=Re.areMergedPropsEqual,St=!1,Qt;return function(fn,un,ln){var Rn=ve(fn,un,ln);return St?(!qe||!ct(Rn,Qt))&&(Qt=Rn):(St=!0,Qt=Rn),Qt}}}function pt(ve){return typeof ve=="function"?Mi(ve):void 0}function ht(ve){return ve?void 0:function(){return Vn}}var dn=[pt,ht],Oe=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ce(ve,ye,be,Re){return function(qe,ct){return be(ve(qe,ct),ye(Re,ct),ct)}}function Pe(ve,ye,be,Re,Xe){var qe=Xe.areStatesEqual,ct=Xe.areOwnPropsEqual,St=Xe.areStatePropsEqual,Qt=!1,wn,fn,un,ln,Rn;function bi(Go,Wo){return wn=Go,fn=Wo,un=ve(wn,fn),ln=ye(Re,fn),Rn=be(un,ln,fn),Qt=!0,Rn}function Ar(){return un=ve(wn,fn),ye.dependsOnOwnProps&&(ln=ye(Re,fn)),Rn=be(un,ln,fn),Rn}function Lr(){return ve.dependsOnOwnProps&&(un=ve(wn,fn)),ye.dependsOnOwnProps&&(ln=ye(Re,fn)),Rn=be(un,ln,fn),Rn}function Xr(){var Go=ve(wn,fn),Wo=!St(Go,un);return un=Go,Wo&&(Rn=be(un,ln,fn)),Rn}function bo(Go,Wo){var va=!ct(Wo,fn),ps=!qe(Go,wn,Wo,fn);return wn=Go,fn=Wo,va&&ps?Ar():va?Lr():ps?Xr():Rn}return function(Wo,va){return Qt?bo(Wo,va):bi(Wo,va)}}function Ie(ve,ye){var be=ye.initMapStateToProps,Re=ye.initMapDispatchToProps,Xe=ye.initMergeProps,qe=(0,le.Z)(ye,Oe),ct=be(ve,qe),St=Re(ve,qe),Qt=Xe(ve,qe),wn=qe.pure?Pe:Ce;return wn(ct,St,Qt,ve,qe)}var Ke=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function De(ve,ye,be){for(var Re=ye.length-1;Re>=0;Re--){var Xe=ye[Re](ve);if(Xe)return Xe}return function(qe,ct){throw new Error("Invalid value of type "+typeof ve+" for "+be+" argument when connecting component "+ct.wrappedComponentName+".")}}function tt(ve,ye){return ve===ye}function He(ve){var ye=ve===void 0?{}:ve,be=ye.connectHOC,Re=be===void 0?hn:be,Xe=ye.mapStateToPropsFactories,qe=Xe===void 0?Si:Xe,ct=ye.mapDispatchToPropsFactories,St=ct===void 0?nn:ct,Qt=ye.mergePropsFactories,wn=Qt===void 0?dn:Qt,fn=ye.selectorFactory,un=fn===void 0?Ie:fn;return function(Rn,bi,Ar,Lr){Lr===void 0&&(Lr={});var Xr=Lr,bo=Xr.pure,Go=bo===void 0?!0:bo,Wo=Xr.areStatesEqual,va=Wo===void 0?tt:Wo,ps=Xr.areOwnPropsEqual,Ks=ps===void 0?ui:ps,Hu=Xr.areStatePropsEqual,Is=Hu===void 0?ui:Hu,ju=Xr.areMergedPropsEqual,Ic=ju===void 0?ui:ju,Kc=(0,le.Z)(Xr,Ke),xh=De(Rn,qe,"mapStateToProps"),Bd=De(bi,St,"mapDispatchToProps"),pd=De(Ar,wn,"mergeProps");return Re(un,(0,Nt.Z)({methodName:"connect",getDisplayName:function(Cu){return"Connect("+Cu+")"},shouldHandleStateChanges:!!Rn,initMapStateToProps:xh,initMapDispatchToProps:Bd,initMergeProps:pd,pure:Go,areStatesEqual:va,areOwnPropsEqual:Ks,areStatePropsEqual:Is,areMergedPropsEqual:Ic},Kc))}}var mt=He();function Wt(){var ve=useContext(ReactReduxContext);return ve}function kt(ve){ve===void 0&&(ve=ReactReduxContext);var ye=ve===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ve)};return function(){var Re=ye(),Xe=Re.store;return Xe}}var yn=null;function pn(ve){ve===void 0&&(ve=ReactReduxContext);var ye=ve===ReactReduxContext?useDefaultStore:createStoreHook(ve);return function(){var Re=ye();return Re.dispatch}}var mn=null,Gn=function(ye,be){return ye===be};function Tn(ve,ye,be,Re){var Xe=useReducer(function(bi){return bi+1},0),qe=Xe[1],ct=useMemo(function(){return createSubscription(be,Re)},[be,Re]),St=useRef(),Qt=useRef(),wn=useRef(),fn=useRef(),un=be.getState(),ln;try{if(ve!==Qt.current||un!==wn.current||St.current){var Rn=ve(un);fn.current===void 0||!ye(Rn,fn.current)?ln=Rn:ln=fn.current}else ln=fn.current}catch(bi){throw St.current&&(bi.message+=`
|
|
The error may be correlated with this previous error:
|
|
`+St.current.stack+`
|
|
|
|
`),bi}return useIsomorphicLayoutEffect(function(){Qt.current=ve,wn.current=un,fn.current=ln,St.current=void 0}),useIsomorphicLayoutEffect(function(){function bi(){try{var Ar=be.getState();if(Ar===wn.current)return;var Lr=Qt.current(Ar);if(ye(Lr,fn.current))return;fn.current=Lr,wn.current=Ar}catch(Xr){St.current=Xr}qe()}return ct.onStateChange=bi,ct.trySubscribe(),bi(),function(){return ct.tryUnsubscribe()}},[be,ct]),ln}function Xt(ve){ve===void 0&&(ve=ReactReduxContext);var ye=ve===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ve)};return function(Re,Xe){Xe===void 0&&(Xe=Gn);var qe=ye(),ct=qe.store,St=qe.subscription,Qt=Tn(Re,Xe,ct,St);return useDebugValue(Qt),Qt}}var fi=null,Wn=Ee(4676);yt(Wn.unstable_batchedUpdates);function bn(ve,ye){if(ve.length!==ye.length)return!1;for(var be=0;be<ve.length;be++)if(ve[be]!==ye[be])return!1;return!0}function Dn(ve,ye){var be=(0,ue.useState)(function(){return{inputs:ye,result:ve()}})[0],Re=(0,ue.useRef)(!0),Xe=(0,ue.useRef)(be),qe=Re.current||!!(ye&&Xe.current.inputs&&bn(ye,Xe.current.inputs)),ct=qe?Xe.current:{inputs:ye,result:ve()};return(0,ue.useEffect)(function(){Re.current=!1,Xe.current=ct},[ct]),ct.result}function Bi(ve,ye){return Dn(function(){return ve},ye)}var On=Dn,Jn=Bi,Ki=!0,Pi="Invariant failed";function ur(ve,ye){if(!ve){if(Ki)throw new Error(Pi);var be=typeof ye=="function"?ye():ye,Re=be?"".concat(Pi,": ").concat(be):Pi;throw new Error(Re)}}var lo=function(ye){var be=ye.top,Re=ye.right,Xe=ye.bottom,qe=ye.left,ct=Re-qe,St=Xe-be,Qt={top:be,right:Re,bottom:Xe,left:qe,width:ct,height:St,x:qe,y:be,center:{x:(Re+qe)/2,y:(Xe+be)/2}};return Qt},jo=function(ye,be){return{top:ye.top-be.top,left:ye.left-be.left,bottom:ye.bottom+be.bottom,right:ye.right+be.right}},Oo=function(ye,be){return{top:ye.top+be.top,left:ye.left+be.left,bottom:ye.bottom-be.bottom,right:ye.right-be.right}},Hr=function(ye,be){return{top:ye.top+be.y,left:ye.left+be.x,bottom:ye.bottom+be.y,right:ye.right+be.x}},da={top:0,right:0,bottom:0,left:0},zo=function(ye){var be=ye.borderBox,Re=ye.margin,Xe=Re===void 0?da:Re,qe=ye.border,ct=qe===void 0?da:qe,St=ye.padding,Qt=St===void 0?da:St,wn=lo(jo(be,Xe)),fn=lo(Oo(be,ct)),un=lo(Oo(fn,Qt));return{marginBox:wn,borderBox:lo(be),paddingBox:fn,contentBox:un,margin:Xe,border:ct,padding:Qt}},Co=function(ye){var be=ye.slice(0,-2),Re=ye.slice(-2);if(Re!=="px")return 0;var Xe=Number(be);return isNaN(Xe)&&ur(!1),Xe},xo=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Nr=function(ye,be){var Re=ye.borderBox,Xe=ye.border,qe=ye.margin,ct=ye.padding,St=Hr(Re,be);return zo({borderBox:St,border:Xe,margin:qe,padding:ct})},Be=function(ye,be){return be===void 0&&(be=xo()),Nr(ye,be)},ya=function(ye,be){var Re={top:Co(be.marginTop),right:Co(be.marginRight),bottom:Co(be.marginBottom),left:Co(be.marginLeft)},Xe={top:Co(be.paddingTop),right:Co(be.paddingRight),bottom:Co(be.paddingBottom),left:Co(be.paddingLeft)},qe={top:Co(be.borderTopWidth),right:Co(be.borderRightWidth),bottom:Co(be.borderBottomWidth),left:Co(be.borderLeftWidth)};return zo({borderBox:ye,margin:Re,padding:Xe,border:qe})},to=function(ye){var be=ye.getBoundingClientRect(),Re=window.getComputedStyle(ye);return ya(be,Re)},jn=Number.isNaN||function(ye){return typeof ye=="number"&&ye!==ye};function Vi(ve,ye){return!!(ve===ye||jn(ve)&&jn(ye))}function Wi(ve,ye){if(ve.length!==ye.length)return!1;for(var be=0;be<ve.length;be++)if(!Vi(ve[be],ye[be]))return!1;return!0}function pi(ve,ye){ye===void 0&&(ye=Wi);var be,Re=[],Xe,qe=!1;function ct(){for(var St=[],Qt=0;Qt<arguments.length;Qt++)St[Qt]=arguments[Qt];return qe&&be===this&&ye(St,Re)||(Xe=ve.apply(this,St),qe=!0,be=this,Re=St),Xe}return ct}var qn=pi,nr=function(ye){var be=[],Re=null,Xe=function(){for(var ct=arguments.length,St=new Array(ct),Qt=0;Qt<ct;Qt++)St[Qt]=arguments[Qt];be=St,!Re&&(Re=requestAnimationFrame(function(){Re=null,ye.apply(void 0,be)}))};return Xe.cancel=function(){Re&&(cancelAnimationFrame(Re),Re=null)},Xe},en=nr,_t=!0,zt=/[ \t]{2,}/g,Li=/^[ \t]*/gm,yr=function(ye){return ye.replace(zt," ").replace(Li,"").trim()},Oi=function(ye){return yr(`
|
|
%creact-beautiful-dnd
|
|
|
|
%c`+yr(ye)+`
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
`)},Zn=function(ye){return[Oi(ye),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ki="__react-beautiful-dnd-disable-dev-warnings";function zr(ve,ye){var be;_t||typeof window!="undefined"&&window[ki]||(be=console)[ve].apply(be,Zn(ye))}var br=zr.bind(null,"warn"),Br=zr.bind(null,"error");function Pt(){}function Di(ve,ye){return(0,Nt.Z)({},ve,{},ye)}function En(ve,ye,be){var Re=ye.map(function(Xe){var qe=Di(be,Xe.options);return ve.addEventListener(Xe.eventName,Xe.fn,qe),function(){ve.removeEventListener(Xe.eventName,Xe.fn,qe)}});return function(){Re.forEach(function(qe){qe()})}}var Yn=!0,Mt="Invariant failed";function Ft(ve){this.message=ve}Ft.prototype.toString=function(){return this.message};function sn(ve,ye){if(!ve)throw Yn?new Ft(Mt):new Ft(Mt+": "+(ye||""))}var Sr=function(ve){Lt(ye,ve);function ye(){for(var Re,Xe=arguments.length,qe=new Array(Xe),ct=0;ct<Xe;ct++)qe[ct]=arguments[ct];return Re=ve.call.apply(ve,[this].concat(qe))||this,Re.callbacks=null,Re.unbind=Pt,Re.onWindowError=function(St){var Qt=Re.getCallbacks();Qt.isDragging()&&Qt.tryAbort();var wn=St.error;wn instanceof Ft&&St.preventDefault()},Re.getCallbacks=function(){if(!Re.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Re.callbacks},Re.setCallbacks=function(St){Re.callbacks=St},Re}var be=ye.prototype;return be.componentDidMount=function(){this.unbind=En(window,[{eventName:"error",fn:this.onWindowError}])},be.componentWillUnmount=function(){this.unbind()},be.componentDidCatch=function(Xe){if(Xe instanceof Ft){this.setState({});return}throw Xe},be.render=function(){return this.props.children(this.setCallbacks)},ye}(ue.Component),Ii=`
|
|
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
|
|
`,Ri=function(ye){return ye+1},ai=function(ye){return`
|
|
You have lifted an item in position `+Ri(ye.source.index)+`
|
|
`},Ti=function(ye,be){var Re=ye.droppableId===be.droppableId,Xe=Ri(ye.index),qe=Ri(be.index);return Re?`
|
|
You have moved the item from position `+Xe+`
|
|
to position `+qe+`
|
|
`:`
|
|
You have moved the item from position `+Xe+`
|
|
in list `+ye.droppableId+`
|
|
to list `+be.droppableId+`
|
|
in position `+qe+`
|
|
`},Jr=function(ye,be,Re){var Xe=be.droppableId===Re.droppableId;return Xe?`
|
|
The item `+ye+`
|
|
has been combined with `+Re.draggableId:`
|
|
The item `+ye+`
|
|
in list `+be.droppableId+`
|
|
has been combined with `+Re.draggableId+`
|
|
in list `+Re.droppableId+`
|
|
`},Qr=function(ye){var be=ye.destination;if(be)return Ti(ye.source,be);var Re=ye.combine;return Re?Jr(ye.draggableId,ye.source,Re):"You are over an area that cannot be dropped on"},Lo=function(ye){return`
|
|
The item has returned to its starting position
|
|
of `+Ri(ye.index)+`
|
|
`},Ln=function(ye){if(ye.reason==="CANCEL")return`
|
|
Movement cancelled.
|
|
`+Lo(ye.source)+`
|
|
`;var be=ye.destination,Re=ye.combine;return be?`
|
|
You have dropped the item.
|
|
`+Ti(ye.source,be)+`
|
|
`:Re?`
|
|
You have dropped the item.
|
|
`+Jr(ye.draggableId,ye.source,Re)+`
|
|
`:`
|
|
The item has been dropped while not over a drop area.
|
|
`+Lo(ye.source)+`
|
|
`},ja={dragHandleUsageInstructions:Ii,onDragStart:ai,onDragUpdate:Qr,onDragEnd:Ln},co={x:0,y:0},Kr=function(ye,be){return{x:ye.x+be.x,y:ye.y+be.y}},on=function(ye,be){return{x:ye.x-be.x,y:ye.y-be.y}},Vt=function(ye,be){return ye.x===be.x&&ye.y===be.y},cn=function(ye){return{x:ye.x!==0?-ye.x:0,y:ye.y!==0?-ye.y:0}},Jt=function(ye,be,Re){var Xe;return Re===void 0&&(Re=0),Xe={},Xe[ye]=be,Xe[ye==="x"?"y":"x"]=Re,Xe},zn=function(ye,be){return Math.sqrt(Math.pow(be.x-ye.x,2)+Math.pow(be.y-ye.y,2))},er=function(ye,be){return Math.min.apply(Math,be.map(function(Re){return zn(ye,Re)}))},sr=function(ye){return function(be){return{x:ye(be.x),y:ye(be.y)}}},li=function(ve,ye){var be=lo({top:Math.max(ye.top,ve.top),right:Math.min(ye.right,ve.right),bottom:Math.min(ye.bottom,ve.bottom),left:Math.max(ye.left,ve.left)});return be.width<=0||be.height<=0?null:be},Ci=function(ye,be){return{top:ye.top+be.y,left:ye.left+be.x,bottom:ye.bottom+be.y,right:ye.right+be.x}},Qn=function(ye){return[{x:ye.left,y:ye.top},{x:ye.right,y:ye.top},{x:ye.left,y:ye.bottom},{x:ye.right,y:ye.bottom}]},an={top:0,right:0,bottom:0,left:0},Vr=function(ye,be){return be?Ci(ye,be.scroll.diff.displacement):ye},In=function(ye,be,Re){if(Re&&Re.increasedBy){var Xe;return(0,Nt.Z)({},ye,(Xe={},Xe[be.end]=ye[be.end]+Re.increasedBy[be.line],Xe))}return ye},Or=function(ye,be){return be&&be.shouldClipSubject?li(be.pageMarginBox,ye):lo(ye)},Tr=function(ve){var ye=ve.page,be=ve.withPlaceholder,Re=ve.axis,Xe=ve.frame,qe=Vr(ye.marginBox,Xe),ct=In(qe,Re,be),St=Or(ct,Xe);return{page:ye,withPlaceholder:be,active:St}},fr=function(ve,ye){ve.frame||sn(!1);var be=ve.frame,Re=on(ye,be.scroll.initial),Xe=cn(Re),qe=(0,Nt.Z)({},be,{scroll:{initial:be.scroll.initial,current:ye,diff:{value:Re,displacement:Xe},max:be.scroll.max}}),ct=Tr({page:ve.subject.page,withPlaceholder:ve.subject.withPlaceholder,axis:ve.axis,frame:qe}),St=(0,Nt.Z)({},ve,{frame:qe,subject:ct});return St};function Bo(ve){return Number.isInteger?Number.isInteger(ve):typeof ve=="number"&&isFinite(ve)&&Math.floor(ve)===ve}function Gr(ve){return Object.values?Object.values(ve):Object.keys(ve).map(function(ye){return ve[ye]})}function Ui(ve,ye){if(ve.findIndex)return ve.findIndex(ye);for(var be=0;be<ve.length;be++)if(ye(ve[be]))return be;return-1}function xr(ve,ye){if(ve.find)return ve.find(ye);var be=Ui(ve,ye);if(be!==-1)return ve[be]}function ro(ve){return Array.prototype.slice.call(ve)}var Cn=qn(function(ve){return ve.reduce(function(ye,be){return ye[be.descriptor.id]=be,ye},{})}),hi=qn(function(ve){return ve.reduce(function(ye,be){return ye[be.descriptor.id]=be,ye},{})}),Ge=qn(function(ve){return Gr(ve)}),To=qn(function(ve){return Gr(ve)}),no=qn(function(ve,ye){var be=To(ye).filter(function(Re){return ve===Re.descriptor.droppableId}).sort(function(Re,Xe){return Re.descriptor.index-Xe.descriptor.index});return be});function rr(ve){return ve.at&&ve.at.type==="REORDER"?ve.at.destination:null}function qi(ve){return ve.at&&ve.at.type==="COMBINE"?ve.at.combine:null}var Qi=qn(function(ve,ye){return ye.filter(function(be){return be.descriptor.id!==ve.descriptor.id})}),oa=function(ve){var ye=ve.isMovingForward,be=ve.draggable,Re=ve.destination,Xe=ve.insideDestination,qe=ve.previousImpact;if(!Re.isCombineEnabled)return null;var ct=rr(qe);if(!ct)return null;function St(Ar){var Lr={type:"COMBINE",combine:{draggableId:Ar,droppableId:Re.descriptor.id}};return(0,Nt.Z)({},qe,{at:Lr})}var Qt=qe.displaced.all,wn=Qt.length?Qt[0]:null;if(ye)return wn?St(wn):null;var fn=Qi(be,Xe);if(!wn){if(!fn.length)return null;var un=fn[fn.length-1];return St(un.descriptor.id)}var ln=Ui(fn,function(Ar){return Ar.descriptor.id===wn});ln===-1&&sn(!1);var Rn=ln-1;if(Rn<0)return null;var bi=fn[Rn];return St(bi.descriptor.id)},ys=function(ve,ye){return ve.descriptor.droppableId===ye.descriptor.id},bs={point:co,value:0},_o={invisible:{},visible:{},all:[]},Ea={displaced:_o,displacedBy:bs,at:null},za=function(ve,ye){return function(be){return ve<=be&&be<=ye}},Mr=function(ve){var ye=za(ve.top,ve.bottom),be=za(ve.left,ve.right);return function(Re){var Xe=ye(Re.top)&&ye(Re.bottom)&&be(Re.left)&&be(Re.right);if(Xe)return!0;var qe=ye(Re.top)||ye(Re.bottom),ct=be(Re.left)||be(Re.right),St=qe&&ct;if(St)return!0;var Qt=Re.top<ve.top&&Re.bottom>ve.bottom,wn=Re.left<ve.left&&Re.right>ve.right,fn=Qt&&wn;if(fn)return!0;var un=Qt&&ct||wn&&qe;return un}},Ir=function(ve){var ye=za(ve.top,ve.bottom),be=za(ve.left,ve.right);return function(Re){var Xe=ye(Re.top)&&ye(Re.bottom)&&be(Re.left)&&be(Re.right);return Xe}},gi={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ho={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ba=function(ve){return function(ye){var be=za(ye.top,ye.bottom),Re=za(ye.left,ye.right);return function(Xe){return ve===gi?be(Xe.top)&&be(Xe.bottom):Re(Xe.left)&&Re(Xe.right)}}},Ws=function(ye,be){var Re=be.frame?be.frame.scroll.diff.displacement:co;return Ci(ye,Re)},Xa=function(ye,be,Re){return be.subject.active?Re(be.subject.active)(ye):!1},la=function(ye,be,Re){return Re(be)(ye)},Ta=function(ye){var be=ye.target,Re=ye.destination,Xe=ye.viewport,qe=ye.withDroppableDisplacement,ct=ye.isVisibleThroughFrameFn,St=qe?Ws(be,Re):be;return Xa(St,Re,ct)&&la(St,Xe,ct)},Ls=function(ye){return Ta((0,Nt.Z)({},ye,{isVisibleThroughFrameFn:Mr}))},ll=function(ye){return Ta((0,Nt.Z)({},ye,{isVisibleThroughFrameFn:Ir}))},rn=function(ye){return Ta((0,Nt.Z)({},ye,{isVisibleThroughFrameFn:Ba(ye.destination.axis)}))},Va=function(ye,be,Re){if(typeof Re=="boolean")return Re;if(!be)return!0;var Xe=be.invisible,qe=be.visible;if(Xe[ye])return!1;var ct=qe[ye];return ct?ct.shouldAnimate:!0};function tn(ve,ye){var be=ve.page.marginBox,Re={top:ye.point.y,right:0,bottom:0,left:ye.point.x};return lo(jo(be,Re))}function Ss(ve){var ye=ve.afterDragging,be=ve.destination,Re=ve.displacedBy,Xe=ve.viewport,qe=ve.forceShouldAnimate,ct=ve.last;return ye.reduce(function(Qt,wn){var fn=tn(wn,Re),un=wn.descriptor.id;Qt.all.push(un);var ln=Ls({target:fn,destination:be,viewport:Xe,withDroppableDisplacement:!0});if(!ln)return Qt.invisible[wn.descriptor.id]=!0,Qt;var Rn=Va(un,ct,qe),bi={draggableId:un,shouldAnimate:Rn};return Qt.visible[un]=bi,Qt},{all:[],visible:{},invisible:{}})}function yu(ve,ye){if(!ve.length)return 0;var be=ve[ve.length-1].descriptor.index;return ye.inHomeList?be:be+1}function fl(ve){var ye=ve.insideDestination,be=ve.inHomeList,Re=ve.displacedBy,Xe=ve.destination,qe=yu(ye,{inHomeList:be});return{displaced:_o,displacedBy:Re,at:{type:"REORDER",destination:{droppableId:Xe.descriptor.id,index:qe}}}}function Vl(ve){var ye=ve.draggable,be=ve.insideDestination,Re=ve.destination,Xe=ve.viewport,qe=ve.displacedBy,ct=ve.last,St=ve.index,Qt=ve.forceShouldAnimate,wn=ys(ye,Re);if(St==null)return fl({insideDestination:be,inHomeList:wn,displacedBy:qe,destination:Re});var fn=xr(be,function(Ar){return Ar.descriptor.index===St});if(!fn)return fl({insideDestination:be,inHomeList:wn,displacedBy:qe,destination:Re});var un=Qi(ye,be),ln=be.indexOf(fn),Rn=un.slice(ln),bi=Ss({afterDragging:Rn,destination:Re,displacedBy:qe,last:ct,viewport:Xe.frame,forceShouldAnimate:Qt});return{displaced:bi,displacedBy:qe,at:{type:"REORDER",destination:{droppableId:Re.descriptor.id,index:St}}}}function is(ve,ye){return!!ye.effected[ve]}var kl=function(ve){var ye=ve.isMovingForward,be=ve.destination,Re=ve.draggables,Xe=ve.combine,qe=ve.afterCritical;if(!be.isCombineEnabled)return null;var ct=Xe.draggableId,St=Re[ct],Qt=St.descriptor.index,wn=is(ct,qe);return wn?ye?Qt:Qt-1:ye?Qt+1:Qt},Nl=function(ve){var ye=ve.isMovingForward,be=ve.isInHomeList,Re=ve.insideDestination,Xe=ve.location;if(!Re.length)return null;var qe=Xe.index,ct=ye?qe+1:qe-1,St=Re[0].descriptor.index,Qt=Re[Re.length-1].descriptor.index,wn=be?Qt:Qt+1;return ct<St||ct>wn?null:ct},ga=function(ve){var ye=ve.isMovingForward,be=ve.isInHomeList,Re=ve.draggable,Xe=ve.draggables,qe=ve.destination,ct=ve.insideDestination,St=ve.previousImpact,Qt=ve.viewport,wn=ve.afterCritical,fn=St.at;if(fn||sn(!1),fn.type==="REORDER"){var un=Nl({isMovingForward:ye,isInHomeList:be,location:fn.destination,insideDestination:ct});return un==null?null:Vl({draggable:Re,insideDestination:ct,destination:qe,viewport:Qt,last:St.displaced,displacedBy:St.displacedBy,index:un})}var ln=kl({isMovingForward:ye,destination:qe,displaced:St.displaced,draggables:Xe,combine:fn.combine,afterCritical:wn});return ln==null?null:Vl({draggable:Re,insideDestination:ct,destination:qe,viewport:Qt,last:St.displaced,displacedBy:St.displacedBy,index:ln})},gl=function(ve){var ye=ve.displaced,be=ve.afterCritical,Re=ve.combineWith,Xe=ve.displacedBy,qe=!!(ye.visible[Re]||ye.invisible[Re]);return is(Re,be)?qe?co:cn(Xe.point):qe?Xe.point:co},Vc=function(ve){var ye=ve.afterCritical,be=ve.impact,Re=ve.draggables,Xe=qi(be);Xe||sn(!1);var qe=Xe.draggableId,ct=Re[qe].page.borderBox.center,St=gl({displaced:be.displaced,afterCritical:ye,combineWith:qe,displacedBy:be.displacedBy});return Kr(ct,St)},du=function(ye,be){return be.margin[ye.start]+be.borderBox[ye.size]/2},Su=function(ye,be){return be.margin[ye.end]+be.borderBox[ye.size]/2},xu=function(ye,be,Re){return be[ye.crossAxisStart]+Re.margin[ye.crossAxisStart]+Re.borderBox[ye.crossAxisSize]/2},oo=function(ye){var be=ye.axis,Re=ye.moveRelativeTo,Xe=ye.isMoving;return Jt(be.line,Re.marginBox[be.end]+du(be,Xe),xu(be,Re.marginBox,Xe))},xd=function(ye){var be=ye.axis,Re=ye.moveRelativeTo,Xe=ye.isMoving;return Jt(be.line,Re.marginBox[be.start]-Su(be,Xe),xu(be,Re.marginBox,Xe))},Ed=function(ye){var be=ye.axis,Re=ye.moveInto,Xe=ye.isMoving;return Jt(be.line,Re.contentBox[be.start]+du(be,Xe),xu(be,Re.contentBox,Xe))},Bc=function(ve){var ye=ve.impact,be=ve.draggable,Re=ve.draggables,Xe=ve.droppable,qe=ve.afterCritical,ct=no(Xe.descriptor.id,Re),St=be.page,Qt=Xe.axis;if(!ct.length)return Ed({axis:Qt,moveInto:Xe.page,isMoving:St});var wn=ye.displaced,fn=ye.displacedBy,un=wn.all[0];if(un){var ln=Re[un];if(is(un,qe))return xd({axis:Qt,moveRelativeTo:ln.page,isMoving:St});var Rn=Nr(ln.page,fn.point);return xd({axis:Qt,moveRelativeTo:Rn,isMoving:St})}var bi=ct[ct.length-1];if(bi.descriptor.id===be.descriptor.id)return St.borderBox.center;if(is(bi.descriptor.id,qe)){var Ar=Nr(bi.page,cn(qe.displacedBy.point));return oo({axis:Qt,moveRelativeTo:Ar,isMoving:St})}return oo({axis:Qt,moveRelativeTo:bi.page,isMoving:St})},Od=function(ve,ye){var be=ve.frame;return be?Kr(ye,be.scroll.diff.displacement):ye},Nh=function(ye){var be=ye.impact,Re=ye.draggable,Xe=ye.droppable,qe=ye.draggables,ct=ye.afterCritical,St=Re.page.borderBox.center,Qt=be.at;return!Xe||!Qt?St:Qt.type==="REORDER"?Bc({impact:be,draggable:Re,draggables:qe,droppable:Xe,afterCritical:ct}):Vc({impact:be,draggables:qe,afterCritical:ct})},ir=function(ve){var ye=Nh(ve),be=ve.droppable,Re=be?Od(be,ye):ye;return Re},il=function(ve,ye){var be=on(ye,ve.scroll.initial),Re=cn(be),Xe=lo({top:ye.y,bottom:ye.y+ve.frame.height,left:ye.x,right:ye.x+ve.frame.width}),qe={frame:Xe,scroll:{initial:ve.scroll.initial,max:ve.scroll.max,current:ye,diff:{value:be,displacement:Re}}};return qe};function bl(ve,ye){return ve.map(function(be){return ye[be]})}function wr(ve,ye){for(var be=0;be<ye.length;be++){var Re=ye[be].visible[ve];if(Re)return Re}return null}var ao=function(ve){var ye=ve.impact,be=ve.viewport,Re=ve.destination,Xe=ve.draggables,qe=ve.maxScrollChange,ct=il(be,Kr(be.scroll.current,qe)),St=Re.frame?fr(Re,Kr(Re.frame.scroll.current,qe)):Re,Qt=ye.displaced,wn=Ss({afterDragging:bl(Qt.all,Xe),destination:Re,displacedBy:ye.displacedBy,viewport:ct.frame,last:Qt,forceShouldAnimate:!1}),fn=Ss({afterDragging:bl(Qt.all,Xe),destination:St,displacedBy:ye.displacedBy,viewport:be.frame,last:Qt,forceShouldAnimate:!1}),un={},ln={},Rn=[Qt,wn,fn];Qt.all.forEach(function(Ar){var Lr=wr(Ar,Rn);if(Lr){ln[Ar]=Lr;return}un[Ar]=!0});var bi=(0,Nt.Z)({},ye,{displaced:{all:Qt.all,invisible:un,visible:ln}});return bi},ua=function(ve,ye){return Kr(ve.scroll.diff.displacement,ye)},Dr=function(ve){var ye=ve.pageBorderBoxCenter,be=ve.draggable,Re=ve.viewport,Xe=ua(Re,ye),qe=on(Xe,be.page.borderBox.center);return Kr(be.client.borderBox.center,qe)},Bl=function(ve){var ye=ve.draggable,be=ve.destination,Re=ve.newPageBorderBoxCenter,Xe=ve.viewport,qe=ve.withDroppableDisplacement,ct=ve.onlyOnMainAxis,St=ct===void 0?!1:ct,Qt=on(Re,ye.page.borderBox.center),wn=Ci(ye.page.borderBox,Qt),fn={target:wn,destination:be,withDroppableDisplacement:qe,viewport:Xe};return St?rn(fn):ll(fn)},ku=function(ve){var ye=ve.isMovingForward,be=ve.draggable,Re=ve.destination,Xe=ve.draggables,qe=ve.previousImpact,ct=ve.viewport,St=ve.previousPageBorderBoxCenter,Qt=ve.previousClientSelection,wn=ve.afterCritical;if(!Re.isEnabled)return null;var fn=no(Re.descriptor.id,Xe),un=ys(be,Re),ln=oa({isMovingForward:ye,draggable:be,destination:Re,insideDestination:fn,previousImpact:qe})||ga({isMovingForward:ye,isInHomeList:un,draggable:be,draggables:Xe,destination:Re,insideDestination:fn,previousImpact:qe,viewport:ct,afterCritical:wn});if(!ln)return null;var Rn=ir({impact:ln,draggable:be,droppable:Re,draggables:Xe,afterCritical:wn}),bi=Bl({draggable:be,destination:Re,newPageBorderBoxCenter:Rn,viewport:ct.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(bi){var Ar=Dr({pageBorderBoxCenter:Rn,draggable:be,viewport:ct});return{clientSelection:Ar,impact:ln,scrollJumpRequest:null}}var Lr=on(Rn,St),Xr=ao({impact:ln,viewport:ct,destination:Re,draggables:Xe,maxScrollChange:Lr});return{clientSelection:Qt,impact:Xr,scrollJumpRequest:Lr}},xs=function(ye){var be=ye.subject.active;return be||sn(!1),be},hu=function(ve){var ye=ve.isMovingForward,be=ve.pageBorderBoxCenter,Re=ve.source,Xe=ve.droppables,qe=ve.viewport,ct=Re.subject.active;if(!ct)return null;var St=Re.axis,Qt=za(ct[St.start],ct[St.end]),wn=Ge(Xe).filter(function(un){return un!==Re}).filter(function(un){return un.isEnabled}).filter(function(un){return!!un.subject.active}).filter(function(un){return Mr(qe.frame)(xs(un))}).filter(function(un){var ln=xs(un);return ye?ct[St.crossAxisEnd]<ln[St.crossAxisEnd]:ln[St.crossAxisStart]<ct[St.crossAxisStart]}).filter(function(un){var ln=xs(un),Rn=za(ln[St.start],ln[St.end]);return Qt(ln[St.start])||Qt(ln[St.end])||Rn(ct[St.start])||Rn(ct[St.end])}).sort(function(un,ln){var Rn=xs(un)[St.crossAxisStart],bi=xs(ln)[St.crossAxisStart];return ye?Rn-bi:bi-Rn}).filter(function(un,ln,Rn){return xs(un)[St.crossAxisStart]===xs(Rn[0])[St.crossAxisStart]});if(!wn.length)return null;if(wn.length===1)return wn[0];var fn=wn.filter(function(un){var ln=za(xs(un)[St.start],xs(un)[St.end]);return ln(be[St.line])});return fn.length===1?fn[0]:fn.length>1?fn.sort(function(un,ln){return xs(un)[St.start]-xs(ln)[St.start]})[0]:wn.sort(function(un,ln){var Rn=er(be,Qn(xs(un))),bi=er(be,Qn(xs(ln)));return Rn!==bi?Rn-bi:xs(un)[St.start]-xs(ln)[St.start]})[0]},ic=function(ye,be){var Re=ye.page.borderBox.center;return is(ye.descriptor.id,be)?on(Re,be.displacedBy.point):Re},Ms=function(ye,be){var Re=ye.page.borderBox;return is(ye.descriptor.id,be)?Ci(Re,cn(be.displacedBy.point)):Re},Tl=function(ve){var ye=ve.pageBorderBoxCenter,be=ve.viewport,Re=ve.destination,Xe=ve.insideDestination,qe=ve.afterCritical,ct=Xe.filter(function(St){return ll({target:Ms(St,qe),destination:Re,viewport:be.frame,withDroppableDisplacement:!0})}).sort(function(St,Qt){var wn=zn(ye,Od(Re,ic(St,qe))),fn=zn(ye,Od(Re,ic(Qt,qe)));return wn<fn?-1:fn<wn?1:St.descriptor.index-Qt.descriptor.index});return ct[0]||null},Gl=qn(function(ye,be){var Re=be[ye.line];return{value:Re,point:Jt(ye.line,Re)}}),Yu=function(ye,be,Re){var Xe=ye.axis;if(ye.descriptor.mode==="virtual")return Jt(Xe.line,be[Xe.line]);var qe=ye.subject.page.contentBox[Xe.size],ct=no(ye.descriptor.id,Re),St=ct.reduce(function(fn,un){return fn+un.client.marginBox[Xe.size]},0),Qt=St+be[Xe.line],wn=Qt-qe;return wn<=0?null:Jt(Xe.line,wn)},ed=function(ye,be){return(0,Nt.Z)({},ye,{scroll:(0,Nt.Z)({},ye.scroll,{max:be})})},Jd=function(ye,be,Re){var Xe=ye.frame;ys(be,ye)&&sn(!1),ye.subject.withPlaceholder&&sn(!1);var qe=Gl(ye.axis,be.displaceBy).point,ct=Yu(ye,qe,Re),St={placeholderSize:qe,increasedBy:ct,oldFrameMaxScroll:ye.frame?ye.frame.scroll.max:null};if(!Xe){var Qt=Tr({page:ye.subject.page,withPlaceholder:St,axis:ye.axis,frame:ye.frame});return(0,Nt.Z)({},ye,{subject:Qt})}var wn=ct?Kr(Xe.scroll.max,ct):Xe.scroll.max,fn=ed(Xe,wn),un=Tr({page:ye.subject.page,withPlaceholder:St,axis:ye.axis,frame:fn});return(0,Nt.Z)({},ye,{subject:un,frame:fn})},Qh=function(ye){var be=ye.subject.withPlaceholder;be||sn(!1);var Re=ye.frame;if(!Re){var Xe=Tr({page:ye.subject.page,axis:ye.axis,frame:null,withPlaceholder:null});return(0,Nt.Z)({},ye,{subject:Xe})}var qe=be.oldFrameMaxScroll;qe||sn(!1);var ct=ed(Re,qe),St=Tr({page:ye.subject.page,axis:ye.axis,frame:ct,withPlaceholder:null});return(0,Nt.Z)({},ye,{subject:St,frame:ct})},Th=function(ve){var ye=ve.previousPageBorderBoxCenter,be=ve.moveRelativeTo,Re=ve.insideDestination,Xe=ve.draggable,qe=ve.draggables,ct=ve.destination,St=ve.viewport,Qt=ve.afterCritical;if(!be){if(Re.length)return null;var wn={displaced:_o,displacedBy:bs,at:{type:"REORDER",destination:{droppableId:ct.descriptor.id,index:0}}},fn=ir({impact:wn,draggable:Xe,droppable:ct,draggables:qe,afterCritical:Qt}),un=ys(Xe,ct)?ct:Jd(ct,Xe,qe),ln=Bl({draggable:Xe,destination:un,newPageBorderBoxCenter:fn,viewport:St.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return ln?wn:null}var Rn=ye[ct.axis.line]<=be.page.borderBox.center[ct.axis.line],bi=function(){var Lr=be.descriptor.index;return be.descriptor.id===Xe.descriptor.id||Rn?Lr:Lr+1}(),Ar=Gl(ct.axis,Xe.displaceBy);return Vl({draggable:Xe,insideDestination:Re,destination:ct,viewport:St,displacedBy:Ar,last:_o,index:bi})},Id=function(ve){var ye=ve.isMovingForward,be=ve.previousPageBorderBoxCenter,Re=ve.draggable,Xe=ve.isOver,qe=ve.draggables,ct=ve.droppables,St=ve.viewport,Qt=ve.afterCritical,wn=hu({isMovingForward:ye,pageBorderBoxCenter:be,source:Xe,droppables:ct,viewport:St});if(!wn)return null;var fn=no(wn.descriptor.id,qe),un=Tl({pageBorderBoxCenter:be,viewport:St,destination:wn,insideDestination:fn,afterCritical:Qt}),ln=Th({previousPageBorderBoxCenter:be,destination:wn,draggable:Re,draggables:qe,moveRelativeTo:un,insideDestination:fn,viewport:St,afterCritical:Qt});if(!ln)return null;var Rn=ir({impact:ln,draggable:Re,droppable:wn,draggables:qe,afterCritical:Qt}),bi=Dr({pageBorderBoxCenter:Rn,draggable:Re,viewport:St});return{clientSelection:bi,impact:ln,scrollJumpRequest:null}},Ol=function(ve){var ye=ve.at;return ye?ye.type==="REORDER"?ye.destination.droppableId:ye.combine.droppableId:null},rc=function(ye,be){var Re=Ol(ye);return Re?be[Re]:null},Il=function(ve){var ye=ve.state,be=ve.type,Re=rc(ye.impact,ye.dimensions.droppables),Xe=!!Re,qe=ye.dimensions.droppables[ye.critical.droppable.id],ct=Re||qe,St=ct.axis.direction,Qt=St==="vertical"&&(be==="MOVE_UP"||be==="MOVE_DOWN")||St==="horizontal"&&(be==="MOVE_LEFT"||be==="MOVE_RIGHT");if(Qt&&!Xe)return null;var wn=be==="MOVE_DOWN"||be==="MOVE_RIGHT",fn=ye.dimensions.draggables[ye.critical.draggable.id],un=ye.current.page.borderBoxCenter,ln=ye.dimensions,Rn=ln.draggables,bi=ln.droppables;return Qt?ku({isMovingForward:wn,previousPageBorderBoxCenter:un,draggable:fn,destination:ct,draggables:Rn,viewport:ye.viewport,previousClientSelection:ye.current.client.selection,previousImpact:ye.impact,afterCritical:ye.afterCritical}):Id({isMovingForward:wn,previousPageBorderBoxCenter:un,draggable:fn,isOver:ct,draggables:Rn,droppables:bi,viewport:ye.viewport,afterCritical:ye.afterCritical})};function Dc(ve){return ve.phase==="DRAGGING"||ve.phase==="COLLECTING"}function Pd(ve){var ye=za(ve.top,ve.bottom),be=za(ve.left,ve.right);return function(Xe){return ye(Xe.y)&&be(Xe.x)}}function Ul(ve,ye){return ve.left<ye.right&&ve.right>ye.left&&ve.top<ye.bottom&&ve.bottom>ye.top}function qh(ve){var ye=ve.pageBorderBox,be=ve.draggable,Re=ve.candidates,Xe=be.page.borderBox.center,qe=Re.map(function(ct){var St=ct.axis,Qt=Jt(ct.axis.line,ye.center[St.line],ct.page.borderBox.center[St.crossAxisLine]);return{id:ct.descriptor.id,distance:zn(Xe,Qt)}}).sort(function(ct,St){return St.distance-ct.distance});return qe[0]?qe[0].id:null}function xf(ve){var ye=ve.pageBorderBox,be=ve.draggable,Re=ve.droppables,Xe=Ge(Re).filter(function(qe){if(!qe.isEnabled)return!1;var ct=qe.subject.active;if(!ct||!Ul(ye,ct))return!1;if(Pd(ct)(ye.center))return!0;var St=qe.axis,Qt=ct.center[St.crossAxisLine],wn=ye[St.crossAxisStart],fn=ye[St.crossAxisEnd],un=za(ct[St.crossAxisStart],ct[St.crossAxisEnd]),ln=un(wn),Rn=un(fn);return!ln&&!Rn?!0:ln?wn<Qt:fn>Qt});return Xe.length?Xe.length===1?Xe[0].descriptor.id:qh({pageBorderBox:ye,draggable:be,candidates:Xe}):null}var wd=function(ye,be){return lo(Ci(ye,be))},hh=function(ve,ye){var be=ve.frame;return be?wd(ye,be.scroll.diff.value):ye};function Vu(ve){var ye=ve.displaced,be=ve.id;return!!(ye.visible[be]||ye.invisible[be])}function _u(ve){var ye=ve.draggable,be=ve.closest,Re=ve.inHomeList;return be?Re&&be.descriptor.index>ye.descriptor.index?be.descriptor.index-1:be.descriptor.index:null}var ul=function(ve){var ye=ve.pageBorderBoxWithDroppableScroll,be=ve.draggable,Re=ve.destination,Xe=ve.insideDestination,qe=ve.last,ct=ve.viewport,St=ve.afterCritical,Qt=Re.axis,wn=Gl(Re.axis,be.displaceBy),fn=wn.value,un=ye[Qt.start],ln=ye[Qt.end],Rn=Qi(be,Xe),bi=xr(Rn,function(Lr){var Xr=Lr.descriptor.id,bo=Lr.page.borderBox.center[Qt.line],Go=is(Xr,St),Wo=Vu({displaced:qe,id:Xr});return Go?Wo?ln<=bo:un<bo-fn:Wo?ln<=bo+fn:un<bo}),Ar=_u({draggable:be,closest:bi,inHomeList:ys(be,Re)});return Vl({draggable:be,insideDestination:Xe,destination:Re,viewport:ct,last:qe,displacedBy:wn,index:Ar})},ou=4,Oh=function(ve){var ye=ve.draggable,be=ve.pageBorderBoxWithDroppableScroll,Re=ve.previousImpact,Xe=ve.destination,qe=ve.insideDestination,ct=ve.afterCritical;if(!Xe.isCombineEnabled)return null;var St=Xe.axis,Qt=Gl(Xe.axis,ye.displaceBy),wn=Qt.value,fn=be[St.start],un=be[St.end],ln=Qi(ye,qe),Rn=xr(ln,function(Ar){var Lr=Ar.descriptor.id,Xr=Ar.page.borderBox,bo=Xr[St.size],Go=bo/ou,Wo=is(Lr,ct),va=Vu({displaced:Re.displaced,id:Lr});return Wo?va?un>Xr[St.start]+Go&&un<Xr[St.end]-Go:fn>Xr[St.start]-wn+Go&&fn<Xr[St.end]-wn-Go:va?un>Xr[St.start]+wn+Go&&un<Xr[St.end]+wn-Go:fn>Xr[St.start]+Go&&fn<Xr[St.end]-Go});if(!Rn)return null;var bi={displacedBy:Qt,displaced:Re.displaced,at:{type:"COMBINE",combine:{draggableId:Rn.descriptor.id,droppableId:Xe.descriptor.id}}};return bi},Qd=function(ve){var ye=ve.pageOffset,be=ve.draggable,Re=ve.draggables,Xe=ve.droppables,qe=ve.previousImpact,ct=ve.viewport,St=ve.afterCritical,Qt=wd(be.page.borderBox,ye),wn=xf({pageBorderBox:Qt,draggable:be,droppables:Xe});if(!wn)return Ea;var fn=Xe[wn],un=no(fn.descriptor.id,Re),ln=hh(fn,Qt);return Oh({pageBorderBoxWithDroppableScroll:ln,draggable:be,previousImpact:qe,destination:fn,insideDestination:un,afterCritical:St})||ul({pageBorderBoxWithDroppableScroll:ln,draggable:be,destination:fn,insideDestination:un,last:qe.displaced,viewport:ct,afterCritical:St})},pl=function(ve,ye){var be;return(0,Nt.Z)({},ve,(be={},be[ye.descriptor.id]=ye,be))},$h=function(ye){var be=ye.previousImpact,Re=ye.impact,Xe=ye.droppables,qe=Ol(be),ct=Ol(Re);if(!qe||qe===ct)return Xe;var St=Xe[qe];if(!St.subject.withPlaceholder)return Xe;var Qt=Qh(St);return pl(Xe,Qt)},qd=function(ve){var ye=ve.draggable,be=ve.draggables,Re=ve.droppables,Xe=ve.previousImpact,qe=ve.impact,ct=$h({previousImpact:Xe,impact:qe,droppables:Re}),St=Ol(qe);if(!St)return ct;var Qt=Re[St];if(ys(ye,Qt)||Qt.subject.withPlaceholder)return ct;var wn=Jd(Qt,ye,be);return pl(ct,wn)},Rd=function(ve){var ye=ve.state,be=ve.clientSelection,Re=ve.dimensions,Xe=ve.viewport,qe=ve.impact,ct=ve.scrollJumpRequest,St=Xe||ye.viewport,Qt=Re||ye.dimensions,wn=be||ye.current.client.selection,fn=on(wn,ye.initial.client.selection),un={offset:fn,selection:wn,borderBoxCenter:Kr(ye.initial.client.borderBoxCenter,fn)},ln={selection:Kr(un.selection,St.scroll.current),borderBoxCenter:Kr(un.borderBoxCenter,St.scroll.current),offset:Kr(un.offset,St.scroll.diff.value)},Rn={client:un,page:ln};if(ye.phase==="COLLECTING")return(0,Nt.Z)({phase:"COLLECTING"},ye,{dimensions:Qt,viewport:St,current:Rn});var bi=Qt.draggables[ye.critical.draggable.id],Ar=qe||Qd({pageOffset:ln.offset,draggable:bi,draggables:Qt.draggables,droppables:Qt.droppables,previousImpact:ye.impact,viewport:St,afterCritical:ye.afterCritical}),Lr=qd({draggable:bi,impact:Ar,previousImpact:ye.impact,draggables:Qt.draggables,droppables:Qt.droppables}),Xr=(0,Nt.Z)({},ye,{current:Rn,dimensions:{draggables:Qt.draggables,droppables:Lr},impact:Ar,viewport:St,scrollJumpRequest:ct||null,forceShouldAnimate:ct?!1:null});return Xr};function qr(ve,ye){return ve.map(function(be){return ye[be]})}var Ih=function(ve){var ye=ve.impact,be=ve.viewport,Re=ve.draggables,Xe=ve.destination,qe=ve.forceShouldAnimate,ct=ye.displaced,St=qr(ct.all,Re),Qt=Ss({afterDragging:St,destination:Xe,displacedBy:ye.displacedBy,viewport:be.frame,forceShouldAnimate:qe,last:ct});return(0,Nt.Z)({},ye,{displaced:Qt})},Dt=function(ve){var ye=ve.impact,be=ve.draggable,Re=ve.droppable,Xe=ve.draggables,qe=ve.viewport,ct=ve.afterCritical,St=ir({impact:ye,draggable:be,draggables:Xe,droppable:Re,afterCritical:ct});return Dr({pageBorderBoxCenter:St,draggable:be,viewport:qe})},si=function(ve){var ye=ve.state,be=ve.dimensions,Re=ve.viewport;ye.movementMode!=="SNAP"&&sn(!1);var Xe=ye.impact,qe=Re||ye.viewport,ct=be||ye.dimensions,St=ct.draggables,Qt=ct.droppables,wn=St[ye.critical.draggable.id],fn=Ol(Xe);fn||sn(!1);var un=Qt[fn],ln=Ih({impact:Xe,viewport:qe,destination:un,draggables:St}),Rn=Dt({impact:ln,draggable:wn,droppable:un,draggables:St,viewport:qe,afterCritical:ye.afterCritical});return Rd({impact:ln,clientSelection:Rn,state:ye,dimensions:ct,viewport:qe})},ef=function(ve){return{index:ve.index,droppableId:ve.droppableId}},Rh=function(ve){var ye=ve.draggable,be=ve.home,Re=ve.draggables,Xe=ve.viewport,qe=Gl(be.axis,ye.displaceBy),ct=no(be.descriptor.id,Re),St=ct.indexOf(ye);St===-1&&sn(!1);var Qt=ct.slice(St+1),wn=Qt.reduce(function(Rn,bi){return Rn[bi.descriptor.id]=!0,Rn},{}),fn={inVirtualList:be.descriptor.mode==="virtual",displacedBy:qe,effected:wn},un=Ss({afterDragging:Qt,destination:be,displacedBy:qe,last:null,viewport:Xe.frame,forceShouldAnimate:!1}),ln={displaced:un,displacedBy:qe,at:{type:"REORDER",destination:ef(ye.descriptor)}};return{impact:ln,afterCritical:fn}},cd=function(ve,ye){return{draggables:ve.draggables,droppables:pl(ve.droppables,ye)}},hc=function(ye){},Au=function(ye){},Gc=function(ve){var ye=ve.draggable,be=ve.offset,Re=ve.initialWindowScroll,Xe=Nr(ye.client,be),qe=Be(Xe,Re),ct=(0,Nt.Z)({},ye,{placeholder:(0,Nt.Z)({},ye.placeholder,{client:Xe}),client:Xe,page:qe});return ct},tf=function(ve){var ye=ve.frame;return ye||sn(!1),ye},el=function(ve){var ye=ve.additions,be=ve.updatedDroppables,Re=ve.viewport,Xe=Re.scroll.diff.value;return ye.map(function(qe){var ct=qe.descriptor.droppableId,St=be[ct],Qt=tf(St),wn=Qt.scroll.diff.value,fn=Kr(Xe,wn),un=Gc({draggable:qe,offset:fn,initialWindowScroll:Re.scroll.initial});return un})},Zo=function(ve){var ye=ve.state,be=ve.published;hc();var Re=be.modified.map(function(Go){var Wo=ye.dimensions.droppables[Go.droppableId],va=fr(Wo,Go.scroll);return va}),Xe=(0,Nt.Z)({},ye.dimensions.droppables,{},Cn(Re)),qe=hi(el({additions:be.additions,updatedDroppables:Xe,viewport:ye.viewport})),ct=(0,Nt.Z)({},ye.dimensions.draggables,{},qe);be.removals.forEach(function(Go){delete ct[Go]});var St={droppables:Xe,draggables:ct},Qt=Ol(ye.impact),wn=Qt?St.droppables[Qt]:null,fn=St.draggables[ye.critical.draggable.id],un=St.droppables[ye.critical.droppable.id],ln=Rh({draggable:fn,home:un,draggables:ct,viewport:ye.viewport}),Rn=ln.impact,bi=ln.afterCritical,Ar=wn&&wn.isCombineEnabled?ye.impact:Rn,Lr=Qd({pageOffset:ye.current.page.offset,draggable:St.draggables[ye.critical.draggable.id],draggables:St.draggables,droppables:St.droppables,previousImpact:Ar,viewport:ye.viewport,afterCritical:bi});Au();var Xr=(0,Nt.Z)({phase:"DRAGGING"},ye,{phase:"DRAGGING",impact:Lr,onLiftImpact:Rn,dimensions:St,afterCritical:bi,forceShouldAnimate:!1});if(ye.phase==="COLLECTING")return Xr;var bo=(0,Nt.Z)({phase:"DROP_PENDING"},Xr,{phase:"DROP_PENDING",reason:ye.reason,isWaiting:!1});return bo},au=function(ye){return ye.movementMode==="SNAP"},Xu=function(ye,be,Re){var Xe=cd(ye.dimensions,be);return!au(ye)||Re?Rd({state:ye,dimensions:Xe}):si({state:ye,dimensions:Xe})};function tl(ve){return ve.isDragging&&ve.movementMode==="SNAP"?(0,Nt.Z)({phase:"DRAGGING"},ve,{scrollJumpRequest:null}):ve}var Oa={phase:"IDLE",completed:null,shouldFlush:!1},ml=function(ve,ye){if(ve===void 0&&(ve=Oa),ye.type==="FLUSH")return(0,Nt.Z)({},Oa,{shouldFlush:!0});if(ye.type==="INITIAL_PUBLISH"){ve.phase!=="IDLE"&&sn(!1);var be=ye.payload,Re=be.critical,Xe=be.clientSelection,qe=be.viewport,ct=be.dimensions,St=be.movementMode,Qt=ct.draggables[Re.draggable.id],wn=ct.droppables[Re.droppable.id],fn={selection:Xe,borderBoxCenter:Qt.client.borderBox.center,offset:co},un={client:fn,page:{selection:Kr(fn.selection,qe.scroll.initial),borderBoxCenter:Kr(fn.selection,qe.scroll.initial),offset:Kr(fn.selection,qe.scroll.diff.value)}},ln=Ge(ct.droppables).every(function(Lg){return!Lg.isFixedOnPage}),Rn=Rh({draggable:Qt,home:wn,draggables:ct.draggables,viewport:qe}),bi=Rn.impact,Ar=Rn.afterCritical,Lr={phase:"DRAGGING",isDragging:!0,critical:Re,movementMode:St,dimensions:ct,initial:un,current:un,isWindowScrollAllowed:ln,impact:bi,afterCritical:Ar,onLiftImpact:bi,viewport:qe,scrollJumpRequest:null,forceShouldAnimate:null};return Lr}if(ye.type==="COLLECTION_STARTING"){if(ve.phase==="COLLECTING"||ve.phase==="DROP_PENDING")return ve;ve.phase!=="DRAGGING"&&sn(!1);var Xr=(0,Nt.Z)({phase:"COLLECTING"},ve,{phase:"COLLECTING"});return Xr}if(ye.type==="PUBLISH_WHILE_DRAGGING")return ve.phase==="COLLECTING"||ve.phase==="DROP_PENDING"||sn(!1),Zo({state:ve,published:ye.payload});if(ye.type==="MOVE"){if(ve.phase==="DROP_PENDING")return ve;Dc(ve)||sn(!1);var bo=ye.payload.client;return Vt(bo,ve.current.client.selection)?ve:Rd({state:ve,clientSelection:bo,impact:au(ve)?ve.impact:null})}if(ye.type==="UPDATE_DROPPABLE_SCROLL"){if(ve.phase==="DROP_PENDING"||ve.phase==="COLLECTING")return tl(ve);Dc(ve)||sn(!1);var Go=ye.payload,Wo=Go.id,va=Go.newScroll,ps=ve.dimensions.droppables[Wo];if(!ps)return ve;var Ks=fr(ps,va);return Xu(ve,Ks,!1)}if(ye.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ve.phase==="DROP_PENDING")return ve;Dc(ve)||sn(!1);var Hu=ye.payload,Is=Hu.id,ju=Hu.isEnabled,Ic=ve.dimensions.droppables[Is];Ic||sn(!1),Ic.isEnabled===ju&&sn(!1);var Kc=(0,Nt.Z)({},Ic,{isEnabled:ju});return Xu(ve,Kc,!0)}if(ye.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ve.phase==="DROP_PENDING")return ve;Dc(ve)||sn(!1);var xh=ye.payload,Bd=xh.id,pd=xh.isCombineEnabled,lc=ve.dimensions.droppables[Bd];lc||sn(!1),lc.isCombineEnabled===pd&&sn(!1);var Cu=(0,Nt.Z)({},lc,{isCombineEnabled:pd});return Xu(ve,Cu,!0)}if(ye.type==="MOVE_BY_WINDOW_SCROLL"){if(ve.phase==="DROP_PENDING"||ve.phase==="DROP_ANIMATING")return ve;Dc(ve)||sn(!1),ve.isWindowScrollAllowed||sn(!1);var Uh=ye.payload.newScroll;if(Vt(ve.viewport.scroll.current,Uh))return tl(ve);var zu=il(ve.viewport,Uh);return au(ve)?si({state:ve,viewport:zu}):Rd({state:ve,viewport:zu})}if(ye.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Dc(ve))return ve;var Eh=ye.payload.maxScroll;if(Vt(Eh,ve.viewport.scroll.max))return ve;var ig=(0,Nt.Z)({},ve.viewport,{scroll:(0,Nt.Z)({},ve.viewport.scroll,{max:Eh})});return(0,Nt.Z)({phase:"DRAGGING"},ve,{viewport:ig})}if(ye.type==="MOVE_UP"||ye.type==="MOVE_DOWN"||ye.type==="MOVE_LEFT"||ye.type==="MOVE_RIGHT"){if(ve.phase==="COLLECTING"||ve.phase==="DROP_PENDING")return ve;ve.phase!=="DRAGGING"&&sn(!1);var Ph=Il({state:ve,type:ye.type});return Ph?Rd({state:ve,impact:Ph.impact,clientSelection:Ph.clientSelection,scrollJumpRequest:Ph.scrollJumpRequest}):ve}if(ye.type==="DROP_PENDING"){var $o=ye.payload.reason;ve.phase!=="COLLECTING"&&sn(!1);var Tf=(0,Nt.Z)({phase:"DROP_PENDING"},ve,{phase:"DROP_PENDING",isWaiting:!0,reason:$o});return Tf}if(ye.type==="DROP_ANIMATE"){var Kg=ye.payload,wh=Kg.completed,lf=Kg.dropDuration,Pf=Kg.newHomeClientOffset;ve.phase==="DRAGGING"||ve.phase==="DROP_PENDING"||sn(!1);var md={phase:"DROP_ANIMATING",completed:wh,dropDuration:lf,newHomeClientOffset:Pf,dimensions:ve.dimensions};return md}if(ye.type==="DROP_COMPLETE"){var Dg=ye.payload.completed;return{phase:"IDLE",completed:Dg,shouldFlush:!1}}return ve},We=function(ye){return{type:"BEFORE_INITIAL_CAPTURE",payload:ye}},Ze=function(ye){return{type:"LIFT",payload:ye}},$e=function(ye){return{type:"INITIAL_PUBLISH",payload:ye}},jt=function(ye){return{type:"PUBLISH_WHILE_DRAGGING",payload:ye}},Gt=function(){return{type:"COLLECTION_STARTING",payload:null}},Sn=function(ye){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ye}},Pn=function(ye){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ye}},Hn=function(ye){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ye}},ni=function(ye){return{type:"MOVE",payload:ye}},yi=function(ye){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ye}},$i=function(ye){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ye}},mi=function(){return{type:"MOVE_UP",payload:null}},Gi=function(){return{type:"MOVE_DOWN",payload:null}},ci=function(){return{type:"MOVE_RIGHT",payload:null}},hr=function(){return{type:"MOVE_LEFT",payload:null}},Un=function(){return{type:"FLUSH",payload:null}},ji=function(ye){return{type:"DROP_ANIMATE",payload:ye}},cr=function(ye){return{type:"DROP_COMPLETE",payload:ye}},so=function(ye){return{type:"DROP",payload:ye}},Zr=function(ye){return{type:"DROP_PENDING",payload:ye}},fo=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function vo(ve){if(!(ve.length<=1)){for(var ye=ve.map(function(St){return St.descriptor.index}),be={},Re=1;Re<ye.length;Re++){var Xe=ye[Re],qe=ye[Re-1];Xe!==qe+1&&(be[Xe]=!0)}if(Object.keys(be).length)var ct=ye.map(function(St){var Qt=!!be[St];return Qt?"[\u{1F525}"+St+"]":""+St}).join(", ")}}function uo(ve,ye){if(0)var be}var tr=function(ve){return function(ye){var be=ye.getState,Re=ye.dispatch;return function(Xe){return function(qe){if(qe.type!=="LIFT"){Xe(qe);return}var ct=qe.payload,St=ct.id,Qt=ct.clientSelection,wn=ct.movementMode,fn=be();fn.phase==="DROP_ANIMATING"&&Re(cr({completed:fn.completed})),be().phase!=="IDLE"&&sn(!1),Re(Un()),Re(We({draggableId:St,movementMode:wn}));var un={shouldPublishImmediately:wn==="SNAP"},ln={draggableId:St,scrollOptions:un},Rn=ve.startPublishing(ln),bi=Rn.critical,Ar=Rn.dimensions,Lr=Rn.viewport;uo(bi,Ar),Re($e({critical:bi,dimensions:Ar,clientSelection:Qt,movementMode:wn,viewport:Lr}))}}}},Ca=function(ve){return function(){return function(ye){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(),ye(be)}}}},ia={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Io={opacity:{drop:0,combining:.7},scale:{drop:.75}},cs={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},$a=cs.outOfTheWay+"s "+ia.outOfTheWay,Ja={fluid:"opacity "+$a,snap:"transform "+$a+", opacity "+$a,drop:function(ye){var be=ye+"s "+ia.drop;return"transform "+be+", opacity "+be},outOfTheWay:"transform "+$a,placeholder:"height "+$a+", width "+$a+", margin "+$a},js=function(ye){return Vt(ye,co)?null:"translate("+ye.x+"px, "+ye.y+"px)"},es={moveTo:js,drop:function(ye,be){var Re=js(ye);return Re?be?Re+" scale("+Io.scale.drop+")":Re:null}},Ga=cs.minDropTime,ss=cs.maxDropTime,ks=ss-Ga,_s=1500,ds=.6,zs=function(ve){var ye=ve.current,be=ve.destination,Re=ve.reason,Xe=zn(ye,be);if(Xe<=0)return Ga;if(Xe>=_s)return ss;var qe=Xe/_s,ct=Ga+ks*qe,St=Re==="CANCEL"?ct*ds:ct;return Number(St.toFixed(2))},vl=function(ve){var ye=ve.impact,be=ve.draggable,Re=ve.dimensions,Xe=ve.viewport,qe=ve.afterCritical,ct=Re.draggables,St=Re.droppables,Qt=Ol(ye),wn=Qt?St[Qt]:null,fn=St[be.descriptor.droppableId],un=Dt({impact:ye,draggable:be,draggables:ct,afterCritical:qe,droppable:wn||fn,viewport:Xe}),ln=on(un,be.client.borderBox.center);return ln},yl=function(ve){var ye=ve.draggables,be=ve.reason,Re=ve.lastImpact,Xe=ve.home,qe=ve.viewport,ct=ve.onLiftImpact;if(!Re.at||be!=="DROP"){var St=Ih({draggables:ye,impact:ct,destination:Xe,viewport:qe,forceShouldAnimate:!0});return{impact:St,didDropInsideDroppable:!1}}if(Re.at.type==="REORDER")return{impact:Re,didDropInsideDroppable:!0};var Qt=(0,Nt.Z)({},Re,{displaced:_o});return{impact:Qt,didDropInsideDroppable:!0}},Nu=function(ve){var ye=ve.getState,be=ve.dispatch;return function(Re){return function(Xe){if(Xe.type!=="DROP"){Re(Xe);return}var qe=ye(),ct=Xe.payload.reason;if(qe.phase==="COLLECTING"){be(Zr({reason:ct}));return}if(qe.phase!=="IDLE"){var St=qe.phase==="DROP_PENDING"&&qe.isWaiting;St&&sn(!1),qe.phase==="DRAGGING"||qe.phase==="DROP_PENDING"||sn(!1);var Qt=qe.critical,wn=qe.dimensions,fn=wn.draggables[qe.critical.draggable.id],un=yl({reason:ct,lastImpact:qe.impact,afterCritical:qe.afterCritical,onLiftImpact:qe.onLiftImpact,home:qe.dimensions.droppables[qe.critical.droppable.id],viewport:qe.viewport,draggables:qe.dimensions.draggables}),ln=un.impact,Rn=un.didDropInsideDroppable,bi=Rn?rr(ln):null,Ar=Rn?qi(ln):null,Lr={index:Qt.draggable.index,droppableId:Qt.droppable.id},Xr={draggableId:fn.descriptor.id,type:fn.descriptor.type,source:Lr,reason:ct,mode:qe.movementMode,destination:bi,combine:Ar},bo=vl({impact:ln,draggable:fn,dimensions:wn,viewport:qe.viewport,afterCritical:qe.afterCritical}),Go={critical:qe.critical,afterCritical:qe.afterCritical,result:Xr,impact:ln},Wo=!Vt(qe.current.client.offset,bo)||!!Xr.combine;if(!Wo){be(cr({completed:Go}));return}var va=zs({current:qe.current.client.offset,destination:bo,reason:ct}),ps={newHomeClientOffset:bo,dropDuration:va,completed:Go};be(ji(ps))}}}},Rl=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 Ma(ve){var ye=ve.onWindowScroll;function be(){ye(Rl())}var Re=en(be),Xe=Eu(Re),qe=Pt;function ct(){return qe!==Pt}function St(){ct()&&sn(!1),qe=En(window,[Xe])}function Qt(){ct()||sn(!1),Re.cancel(),qe(),qe=Pt}return{start:St,stop:Qt,isActive:ct}}var Vs=function(ye){return ye.type==="DROP_COMPLETE"||ye.type==="DROP_ANIMATE"||ye.type==="FLUSH"},Pa=function(ve){var ye=Ma({onWindowScroll:function(Re){ve.dispatch(yi({newScroll:Re}))}});return function(be){return function(Re){!ye.isActive()&&Re.type==="INITIAL_PUBLISH"&&ye.start(),ye.isActive()&&Vs(Re)&&ye.stop(),be(Re)}}},Bs=function(ve){var ye=!1,be=!1,Re=setTimeout(function(){be=!0}),Xe=function(ct){ye||be||(ye=!0,ve(ct),clearTimeout(Re))};return Xe.wasCalled=function(){return ye},Xe},As=function(){var ve=[],ye=function(qe){var ct=Ui(ve,function(wn){return wn.timerId===qe});ct===-1&&sn(!1);var St=ve.splice(ct,1),Qt=St[0];Qt.callback()},be=function(qe){var ct=setTimeout(function(){return ye(ct)}),St={timerId:ct,callback:qe};ve.push(St)},Re=function(){if(ve.length){var qe=[].concat(ve);ve.length=0,qe.forEach(function(ct){clearTimeout(ct.timerId),ct.callback()})}};return{add:be,flush:Re}},Gs=function(ye,be){return ye==null&&be==null?!0:ye==null||be==null?!1:ye.droppableId===be.droppableId&&ye.index===be.index},Tu=function(ye,be){return ye==null&&be==null?!0:ye==null||be==null?!1:ye.draggableId===be.draggableId&&ye.droppableId===be.droppableId},aa=function(ye,be){if(ye===be)return!0;var Re=ye.draggable.id===be.draggable.id&&ye.draggable.droppableId===be.draggable.droppableId&&ye.draggable.type===be.draggable.type&&ye.draggable.index===be.draggable.index,Xe=ye.droppable.id===be.droppable.id&&ye.droppable.type===be.droppable.type;return Re&&Xe},Ys=function(ye,be){hc(),be(),Au()},Dl=function(ye,be){return{draggableId:ye.draggable.id,type:ye.droppable.type,source:{droppableId:ye.droppable.id,index:ye.draggable.index},mode:be}},su=function(ye,be,Re,Xe){if(!ye){Re(Xe(be));return}var qe=Bs(Re),ct={announce:qe};ye(be,ct),qe.wasCalled()||Re(Xe(be))},pa=function(ve,ye){var be=As(),Re=null,Xe=function(ln,Rn){Re&&sn(!1),Ys("onBeforeCapture",function(){var bi=ve().onBeforeCapture;if(bi){var Ar={draggableId:ln,mode:Rn};bi(Ar)}})},qe=function(ln,Rn){Re&&sn(!1),Ys("onBeforeDragStart",function(){var bi=ve().onBeforeDragStart;bi&&bi(Dl(ln,Rn))})},ct=function(ln,Rn){Re&&sn(!1);var bi=Dl(ln,Rn);Re={mode:Rn,lastCritical:ln,lastLocation:bi.source,lastCombine:null},be.add(function(){Ys("onDragStart",function(){return su(ve().onDragStart,bi,ye,ja.onDragStart)})})},St=function(ln,Rn){var bi=rr(Rn),Ar=qi(Rn);Re||sn(!1);var Lr=!aa(ln,Re.lastCritical);Lr&&(Re.lastCritical=ln);var Xr=!Gs(Re.lastLocation,bi);Xr&&(Re.lastLocation=bi);var bo=!Tu(Re.lastCombine,Ar);if(bo&&(Re.lastCombine=Ar),!(!Lr&&!Xr&&!bo)){var Go=(0,Nt.Z)({},Dl(ln,Re.mode),{combine:Ar,destination:bi});be.add(function(){Ys("onDragUpdate",function(){return su(ve().onDragUpdate,Go,ye,ja.onDragUpdate)})})}},Qt=function(){Re||sn(!1),be.flush()},wn=function(ln){Re||sn(!1),Re=null,Ys("onDragEnd",function(){return su(ve().onDragEnd,ln,ye,ja.onDragEnd)})},fn=function(){if(Re){var ln=(0,Nt.Z)({},Dl(Re.lastCritical,Re.mode),{combine:null,destination:null,reason:"CANCEL"});wn(ln)}};return{beforeCapture:Xe,beforeStart:qe,start:ct,update:St,flush:Qt,drop:wn,abort:fn}},Sl=function(ve,ye){var be=pa(ve,ye);return function(Re){return function(Xe){return function(qe){if(qe.type==="BEFORE_INITIAL_CAPTURE"){be.beforeCapture(qe.payload.draggableId,qe.payload.movementMode);return}if(qe.type==="INITIAL_PUBLISH"){var ct=qe.payload.critical;be.beforeStart(ct,qe.payload.movementMode),Xe(qe),be.start(ct,qe.payload.movementMode);return}if(qe.type==="DROP_COMPLETE"){var St=qe.payload.completed.result;be.flush(),Xe(qe),be.drop(St);return}if(Xe(qe),qe.type==="FLUSH"){be.abort();return}var Qt=Re.getState();Qt.phase==="DRAGGING"&&be.update(Qt.critical,Qt.impact)}}}},Da=function(ve){return function(ye){return function(be){if(be.type!=="DROP_ANIMATION_FINISHED"){ye(be);return}var Re=ve.getState();Re.phase!=="DROP_ANIMATING"&&sn(!1),ve.dispatch(cr({completed:Re.completed}))}}},Gu=function(ve){var ye=null,be=null;function Re(){be&&(cancelAnimationFrame(be),be=null),ye&&(ye(),ye=null)}return function(Xe){return function(qe){if((qe.type==="FLUSH"||qe.type==="DROP_COMPLETE"||qe.type==="DROP_ANIMATION_FINISHED")&&Re(),Xe(qe),qe.type==="DROP_ANIMATE"){var ct={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Qt=ve.getState();Qt.phase==="DROP_ANIMATING"&&ve.dispatch(fo())}};be=requestAnimationFrame(function(){be=null,ye=En(window,[ct])})}}}},fc=function(ve){return function(){return function(ye){return function(be){(be.type==="DROP_COMPLETE"||be.type==="FLUSH"||be.type==="DROP_ANIMATE")&&ve.stopPublishing(),ye(be)}}}},$l=function(ve){var ye=!1;return function(){return function(be){return function(Re){if(Re.type==="INITIAL_PUBLISH"){ye=!0,ve.tryRecordFocus(Re.payload.critical.draggable.id),be(Re),ve.tryRestoreFocusRecorded();return}if(be(Re),!!ye){if(Re.type==="FLUSH"){ye=!1,ve.tryRestoreFocusRecorded();return}if(Re.type==="DROP_COMPLETE"){ye=!1;var Xe=Re.payload.completed.result;Xe.combine&&ve.tryShiftRecord(Xe.draggableId,Xe.combine.draggableId),ve.tryRestoreFocusRecorded()}}}}}},Fu=function(ye){return ye.type==="DROP_COMPLETE"||ye.type==="DROP_ANIMATE"||ye.type==="FLUSH"},Lc=function(ve){return function(ye){return function(be){return function(Re){if(Fu(Re)){ve.stop(),be(Re);return}if(Re.type==="INITIAL_PUBLISH"){be(Re);var Xe=ye.getState();Xe.phase!=="DRAGGING"&&sn(!1),ve.start(Xe);return}be(Re),ve.scroll(ye.getState())}}}},xl=function(ve){return function(ye){return function(be){if(ye(be),be.type==="PUBLISH_WHILE_DRAGGING"){var Re=ve.getState();Re.phase==="DROP_PENDING"&&(Re.isWaiting||ve.dispatch(so({reason:Re.reason})))}}}},Ns=Bt.qC,Ou=function(ve){var ye=ve.dimensionMarshal,be=ve.focusMarshal,Re=ve.styleMarshal,Xe=ve.getResponders,qe=ve.announce,ct=ve.autoScroller;return(0,Bt.MT)(ml,Ns((0,Bt.md)(Ca(Re),fc(ye),tr(ye),Nu,Da,Gu,xl,Lc(ct),Pa,$l(be),Sl(Xe,qe))))},wa=function(){return{additions:{},removals:{},modified:{}}};function gc(ve){var ye=ve.registry,be=ve.callbacks,Re=wa(),Xe=null,qe=function(){Xe||(be.collectionStarting(),Xe=requestAnimationFrame(function(){Xe=null,hc();var fn=Re,un=fn.additions,ln=fn.removals,Rn=fn.modified,bi=Object.keys(un).map(function(Xr){return ye.draggable.getById(Xr).getDimension(co)}).sort(function(Xr,bo){return Xr.descriptor.index-bo.descriptor.index}),Ar=Object.keys(Rn).map(function(Xr){var bo=ye.droppable.getById(Xr),Go=bo.callbacks.getScrollWhileDragging();return{droppableId:Xr,scroll:Go}}),Lr={additions:bi,removals:Object.keys(ln),modified:Ar};Re=wa(),Au(),be.publish(Lr)}))},ct=function(fn){var un=fn.descriptor.id;Re.additions[un]=fn,Re.modified[fn.descriptor.droppableId]=!0,Re.removals[un]&&delete Re.removals[un],qe()},St=function(fn){var un=fn.descriptor;Re.removals[un.id]=!0,Re.modified[un.droppableId]=!0,Re.additions[un.id]&&delete Re.additions[un.id],qe()},Qt=function(){Xe&&(cancelAnimationFrame(Xe),Xe=null,Re=wa())};return{add:ct,remove:St,stop:Qt}}var eu=function(ve){var ye=ve.scrollHeight,be=ve.scrollWidth,Re=ve.height,Xe=ve.width,qe=on({x:be,y:ye},{x:Xe,y:Re}),ct={x:Math.max(0,qe.x),y:Math.max(0,qe.y)};return ct},Ds=function(){var ve=document.documentElement;return ve||sn(!1),ve},Ts=function(){var ve=Ds(),ye=eu({scrollHeight:ve.scrollHeight,scrollWidth:ve.scrollWidth,width:ve.clientWidth,height:ve.clientHeight});return ye},El=function(){var ve=Rl(),ye=Ts(),be=ve.y,Re=ve.x,Xe=Ds(),qe=Xe.clientWidth,ct=Xe.clientHeight,St=Re+qe,Qt=be+ct,wn=lo({top:be,left:Re,right:St,bottom:Qt}),fn={frame:wn,scroll:{initial:ve,current:ve,max:ye,diff:{value:co,displacement:co}}};return fn},cl=function(ve){var ye=ve.critical,be=ve.scrollOptions,Re=ve.registry;hc();var Xe=El(),qe=Xe.scroll.current,ct=ye.droppable,St=Re.droppable.getAllByType(ct.type).map(function(un){return un.callbacks.getDimensionAndWatchScroll(qe,be)}),Qt=Re.draggable.getAllByType(ye.draggable.type).map(function(un){return un.getDimension(qe)}),wn={draggables:hi(Qt),droppables:Cn(St)};Au();var fn={dimensions:wn,critical:ye,viewport:Xe};return fn};function tu(ve,ye,be){if(be.descriptor.id===ye.id||be.descriptor.type!==ye.type)return!1;var Re=ve.droppable.getById(be.descriptor.droppableId);return Re.descriptor.mode==="virtual"}var Ia=function(ve,ye){var be=null,Re=gc({callbacks:{publish:ye.publishWhileDragging,collectionStarting:ye.collectionStarting},registry:ve}),Xe=function(Rn,bi){ve.droppable.exists(Rn)||sn(!1),be&&ye.updateDroppableIsEnabled({id:Rn,isEnabled:bi})},qe=function(Rn,bi){be&&(ve.droppable.exists(Rn)||sn(!1),ye.updateDroppableIsCombineEnabled({id:Rn,isCombineEnabled:bi}))},ct=function(Rn,bi){be&&(ve.droppable.exists(Rn)||sn(!1),ye.updateDroppableScroll({id:Rn,newScroll:bi}))},St=function(Rn,bi){be&&ve.droppable.getById(Rn).callbacks.scroll(bi)},Qt=function(){if(be){Re.stop();var Rn=be.critical.droppable;ve.droppable.getAllByType(Rn.type).forEach(function(bi){return bi.callbacks.dragStopped()}),be.unsubscribe(),be=null}},wn=function(Rn){be||sn(!1);var bi=be.critical.draggable;Rn.type==="ADDITION"&&tu(ve,bi,Rn.value)&&Re.add(Rn.value),Rn.type==="REMOVAL"&&tu(ve,bi,Rn.value)&&Re.remove(Rn.value)},fn=function(Rn){be&&sn(!1);var bi=ve.draggable.getById(Rn.draggableId),Ar=ve.droppable.getById(bi.descriptor.droppableId),Lr={draggable:bi.descriptor,droppable:Ar.descriptor},Xr=ve.subscribe(wn);return be={critical:Lr,unsubscribe:Xr},cl({critical:Lr,registry:ve,scrollOptions:Rn.scrollOptions})},un={updateDroppableIsEnabled:Xe,updateDroppableIsCombineEnabled:qe,scrollDroppable:St,updateDroppableScroll:ct,startPublishing:fn,stopPublishing:Qt};return un},Zl=function(ve,ye){return ve.phase==="IDLE"?!0:ve.phase!=="DROP_ANIMATING"||ve.completed.result.draggableId===ye?!1:ve.completed.result.reason==="DROP"},fu=function(ve){window.scrollBy(ve.x,ve.y)},Ll=qn(function(ve){return Ge(ve).filter(function(ye){return!(!ye.isEnabled||!ye.frame)})}),gu=function(ye,be){var Re=xr(Ll(be),function(Xe){return Xe.frame||sn(!1),Pd(Xe.frame.pageMarginBox)(ye)});return Re},Qu=function(ve){var ye=ve.center,be=ve.destination,Re=ve.droppables;if(be){var Xe=Re[be];return Xe.frame?Xe:null}var qe=gu(ye,Re);return qe},Us={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ye){return Math.pow(ye,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Iu=function(ve,ye){var be=ve[ye.size]*Us.startFromPercentage,Re=ve[ye.size]*Us.maxScrollAtPercentage,Xe={startScrollingFrom:be,maxScrollValueAt:Re};return Xe},ha=function(ve){var ye=ve.startOfRange,be=ve.endOfRange,Re=ve.current,Xe=be-ye;if(Xe===0)return 0;var qe=Re-ye,ct=qe/Xe;return ct},Ps=1,Mc=function(ve,ye){if(ve>ye.startScrollingFrom)return 0;if(ve<=ye.maxScrollValueAt)return Us.maxPixelScroll;if(ve===ye.startScrollingFrom)return Ps;var be=ha({startOfRange:ye.maxScrollValueAt,endOfRange:ye.startScrollingFrom,current:ve}),Re=1-be,Xe=Us.maxPixelScroll*Us.ease(Re);return Math.ceil(Xe)},Ju=Us.durationDampening.accelerateAt,nu=Us.durationDampening.stopDampeningAt,pc=function(ve,ye){var be=ye,Re=nu,Xe=Date.now(),qe=Xe-be;if(qe>=nu)return ve;if(qe<Ju)return Ps;var ct=ha({startOfRange:Ju,endOfRange:Re,current:qe}),St=ve*Us.ease(ct);return Math.ceil(St)},mc=function(ve){var ye=ve.distanceToEdge,be=ve.thresholds,Re=ve.dragStartTime,Xe=ve.shouldUseTimeDampening,qe=Mc(ye,be);return qe===0?0:Xe?Math.max(pc(qe,Re),Ps):qe},fh=function(ve){var ye=ve.container,be=ve.distanceToEdges,Re=ve.dragStartTime,Xe=ve.axis,qe=ve.shouldUseTimeDampening,ct=Iu(ye,Xe),St=be[Xe.end]<be[Xe.start];return St?mc({distanceToEdge:be[Xe.end],thresholds:ct,dragStartTime:Re,shouldUseTimeDampening:qe}):-1*mc({distanceToEdge:be[Xe.start],thresholds:ct,dragStartTime:Re,shouldUseTimeDampening:qe})},kc=function(ve){var ye=ve.container,be=ve.subject,Re=ve.proposedScroll,Xe=be.height>ye.height,qe=be.width>ye.width;return!qe&&!Xe?Re:qe&&Xe?null:{x:qe?0:Re.x,y:Xe?0:Re.y}},Sa=sr(function(ve){return ve===0?0:ve}),Ao=function(ve){var ye=ve.dragStartTime,be=ve.container,Re=ve.subject,Xe=ve.center,qe=ve.shouldUseTimeDampening,ct={top:Xe.y-be.top,right:be.right-Xe.x,bottom:be.bottom-Xe.y,left:Xe.x-be.left},St=fh({container:be,distanceToEdges:ct,dragStartTime:ye,axis:gi,shouldUseTimeDampening:qe}),Qt=fh({container:be,distanceToEdges:ct,dragStartTime:ye,axis:ho,shouldUseTimeDampening:qe}),wn=Sa({x:Qt,y:St});if(Vt(wn,co))return null;var fn=kc({container:be,subject:Re,proposedScroll:wn});return fn?Vt(fn,co)?null:fn:null},Qa=sr(function(ve){return ve===0?0:ve>0?1:-1}),rl=function(){var ve=function(be,Re){return be<0?be:be>Re?be-Re:0};return function(ye){var be=ye.current,Re=ye.max,Xe=ye.change,qe=Kr(be,Xe),ct={x:ve(qe.x,Re.x),y:ve(qe.y,Re.y)};return Vt(ct,co)?null:ct}}(),oc=function(ye){var be=ye.max,Re=ye.current,Xe=ye.change,qe={x:Math.max(Re.x,be.x),y:Math.max(Re.y,be.y)},ct=Qa(Xe),St=rl({max:qe,current:Re,change:ct});return!St||ct.x!==0&&St.x===0||ct.y!==0&&St.y===0},td=function(ye,be){return oc({current:ye.scroll.current,max:ye.scroll.max,change:be})},dd=function(ye,be){if(!td(ye,be))return null;var Re=ye.scroll.max,Xe=ye.scroll.current;return rl({current:Xe,max:Re,change:be})},Uc=function(ye,be){var Re=ye.frame;return Re?oc({current:Re.scroll.current,max:Re.scroll.max,change:be}):!1},Hl=function(ye,be){var Re=ye.frame;return!Re||!Uc(ye,be)?null:rl({current:Re.scroll.current,max:Re.scroll.max,change:be})},ka=function(ve){var ye=ve.viewport,be=ve.subject,Re=ve.center,Xe=ve.dragStartTime,qe=ve.shouldUseTimeDampening,ct=Ao({dragStartTime:Xe,container:ye.frame,subject:be,center:Re,shouldUseTimeDampening:qe});return ct&&td(ye,ct)?ct:null},Ra=function(ve){var ye=ve.droppable,be=ve.subject,Re=ve.center,Xe=ve.dragStartTime,qe=ve.shouldUseTimeDampening,ct=ye.frame;if(!ct)return null;var St=Ao({dragStartTime:Xe,container:ct.pageMarginBox,subject:be,center:Re,shouldUseTimeDampening:qe});return St&&Uc(ye,St)?St:null},vc=function(ve){var ye=ve.state,be=ve.dragStartTime,Re=ve.shouldUseTimeDampening,Xe=ve.scrollWindow,qe=ve.scrollDroppable,ct=ye.current.page.borderBoxCenter,St=ye.dimensions.draggables[ye.critical.draggable.id],Qt=St.page.marginBox;if(ye.isWindowScrollAllowed){var wn=ye.viewport,fn=ka({dragStartTime:be,viewport:wn,subject:Qt,center:ct,shouldUseTimeDampening:Re});if(fn){Xe(fn);return}}var un=Qu({center:ct,destination:Ol(ye.impact),droppables:ye.dimensions.droppables});if(un){var ln=Ra({dragStartTime:be,droppable:un,subject:Qt,center:ct,shouldUseTimeDampening:Re});ln&&qe(un.descriptor.id,ln)}},ac=function(ve){var ye=ve.scrollWindow,be=ve.scrollDroppable,Re=en(ye),Xe=en(be),qe=null,ct=function(fn){qe||sn(!1);var un=qe,ln=un.shouldUseTimeDampening,Rn=un.dragStartTime;vc({state:fn,scrollWindow:Re,scrollDroppable:Xe,dragStartTime:Rn,shouldUseTimeDampening:ln})},St=function(fn){hc(),qe&&sn(!1);var un=Date.now(),ln=!1,Rn=function(){ln=!0};vc({state:fn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Rn,scrollDroppable:Rn}),qe={dragStartTime:un,shouldUseTimeDampening:ln},Au(),ln&&ct(fn)},Qt=function(){qe&&(Re.cancel(),Xe.cancel(),qe=null)};return{start:St,stop:Qt,scroll:ct}},hd=function(ve){var ye=ve.move,be=ve.scrollDroppable,Re=ve.scrollWindow,Xe=function(wn,fn){var un=Kr(wn.current.client.selection,fn);ye({client:un})},qe=function(wn,fn){if(!Uc(wn,fn))return fn;var un=Hl(wn,fn);if(!un)return be(wn.descriptor.id,fn),null;var ln=on(fn,un);be(wn.descriptor.id,ln);var Rn=on(fn,ln);return Rn},ct=function(wn,fn,un){if(!wn||!td(fn,un))return un;var ln=dd(fn,un);if(!ln)return Re(un),null;var Rn=on(un,ln);Re(Rn);var bi=on(un,Rn);return bi},St=function(wn){var fn=wn.scrollJumpRequest;if(fn){var un=Ol(wn.impact);un||sn(!1);var ln=qe(wn.dimensions.droppables[un],fn);if(ln){var Rn=wn.viewport,bi=ct(wn.isWindowScrollAllowed,Rn,ln);bi&&Xe(wn,bi)}}};return St},Wh=function(ve){var ye=ve.scrollDroppable,be=ve.scrollWindow,Re=ve.move,Xe=ac({scrollWindow:be,scrollDroppable:ye}),qe=hd({move:Re,scrollWindow:be,scrollDroppable:ye}),ct=function(wn){if(wn.phase==="DRAGGING"){if(wn.movementMode==="FLUID"){Xe.scroll(wn);return}wn.scrollJumpRequest&&qe(wn)}},St={scroll:ct,start:Xe.start,stop:Xe.stop};return St},qu="data-rbd",$u=function(){var ve=qu+"-drag-handle";return{base:ve,draggableId:ve+"-draggable-id",contextId:ve+"-context-id"}}(),Wd=function(){var ve=qu+"-draggable";return{base:ve,contextId:ve+"-context-id",id:ve+"-id"}}(),$d=function(){var ve=qu+"-droppable";return{base:ve,contextId:ve+"-context-id",id:ve+"-id"}}(),Pu={contextId:qu+"-scroll-container-context-id"},Nc=function(ye){return function(be){return"["+be+'="'+ye+'"]'}},ol=function(ye,be){return ye.map(function(Re){var Xe=Re.styles[be];return Xe?Re.selector+" { "+Xe+" }":""}).join(" ")},sa="pointer-events: none;",pu=function(ve){var ye=Nc(ve),be=function(){var St=`
|
|
cursor: -webkit-grab;
|
|
cursor: grab;
|
|
`;return{selector:ye($u.contextId),styles:{always:`
|
|
-webkit-touch-callout: none;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
touch-action: manipulation;
|
|
`,resting:St,dragging:sa,dropAnimating:St}}}(),Re=function(){var St=`
|
|
transition: `+Ja.outOfTheWay+`;
|
|
`;return{selector:ye(Wd.contextId),styles:{dragging:St,dropAnimating:St,userCancel:St}}}(),Xe={selector:ye($d.contextId),styles:{always:"overflow-anchor: none;"}},qe={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=[Re,be,Xe,qe];return{always:ol(ct,"always"),resting:ol(ct,"resting"),dragging:ol(ct,"dragging"),dropAnimating:ol(ct,"dropAnimating"),userCancel:ol(ct,"userCancel")}},Na=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?ue.useLayoutEffect:ue.useEffect,eh=function(){var ye=document.querySelector("head");return ye||sn(!1),ye},gh=function(ye){var be=document.createElement("style");return ye&&be.setAttribute("nonce",ye),be.type="text/css",be};function iu(ve,ye){var be=On(function(){return pu(ve)},[ve]),Re=(0,ue.useRef)(null),Xe=(0,ue.useRef)(null),qe=Jn(qn(function(un){var ln=Xe.current;ln||sn(!1),ln.textContent=un}),[]),ct=Jn(function(un){var ln=Re.current;ln||sn(!1),ln.textContent=un},[]);Na(function(){!Re.current&&!Xe.current||sn(!1);var un=gh(ye),ln=gh(ye);return Re.current=un,Xe.current=ln,un.setAttribute(qu+"-always",ve),ln.setAttribute(qu+"-dynamic",ve),eh().appendChild(un),eh().appendChild(ln),ct(be.always),qe(be.resting),function(){var Rn=function(Ar){var Lr=Ar.current;Lr||sn(!1),eh().removeChild(Lr),Ar.current=null};Rn(Re),Rn(Xe)}},[ye,ct,qe,be.always,be.resting,ve]);var St=Jn(function(){return qe(be.dragging)},[qe,be.dragging]),Qt=Jn(function(un){if(un==="DROP"){qe(be.dropAnimating);return}qe(be.userCancel)},[qe,be.dropAnimating,be.userCancel]),wn=Jn(function(){Xe.current&&qe(be.resting)},[qe,be.resting]),fn=On(function(){return{dragging:St,dropping:Qt,resting:wn}},[St,Qt,wn]);return fn}var th=function(ve){return ve&&ve.ownerDocument?ve.ownerDocument.defaultView:window};function ec(ve){return ve instanceof th(ve).HTMLElement}function Cd(ve,ye){var be="["+$u.contextId+'="'+ve+'"]',Re=ro(document.querySelectorAll(be));if(!Re.length)return null;var Xe=xr(Re,function(qe){return qe.getAttribute($u.draggableId)===ye});return!Xe||!ec(Xe)?null:Xe}function jd(ve){var ye=(0,ue.useRef)({}),be=(0,ue.useRef)(null),Re=(0,ue.useRef)(null),Xe=(0,ue.useRef)(!1),qe=Jn(function(ln,Rn){var bi={id:ln,focus:Rn};return ye.current[ln]=bi,function(){var Lr=ye.current,Xr=Lr[ln];Xr!==bi&&delete Lr[ln]}},[]),ct=Jn(function(ln){var Rn=Cd(ve,ln);Rn&&Rn!==document.activeElement&&Rn.focus()},[ve]),St=Jn(function(ln,Rn){be.current===ln&&(be.current=Rn)},[]),Qt=Jn(function(){Re.current||Xe.current&&(Re.current=requestAnimationFrame(function(){Re.current=null;var ln=be.current;ln&&ct(ln)}))},[ct]),wn=Jn(function(ln){be.current=null;var Rn=document.activeElement;Rn&&Rn.getAttribute($u.draggableId)===ln&&(be.current=ln)},[]);Na(function(){return Xe.current=!0,function(){Xe.current=!1;var ln=Re.current;ln&&cancelAnimationFrame(ln)}},[]);var fn=On(function(){return{register:qe,tryRecordFocus:wn,tryRestoreFocusRecorded:Qt,tryShiftRecord:St}},[qe,wn,Qt,St]);return fn}function nf(){var ve={draggables:{},droppables:{}},ye=[];function be(un){return ye.push(un),function(){var Rn=ye.indexOf(un);Rn!==-1&&ye.splice(Rn,1)}}function Re(un){ye.length&&ye.forEach(function(ln){return ln(un)})}function Xe(un){return ve.draggables[un]||null}function qe(un){var ln=Xe(un);return ln||sn(!1),ln}var ct={register:function(ln){ve.draggables[ln.descriptor.id]=ln,Re({type:"ADDITION",value:ln})},update:function(ln,Rn){var bi=ve.draggables[Rn.descriptor.id];bi&&bi.uniqueId===ln.uniqueId&&(delete ve.draggables[Rn.descriptor.id],ve.draggables[ln.descriptor.id]=ln)},unregister:function(ln){var Rn=ln.descriptor.id,bi=Xe(Rn);bi&&ln.uniqueId===bi.uniqueId&&(delete ve.draggables[Rn],Re({type:"REMOVAL",value:ln}))},getById:qe,findById:Xe,exists:function(ln){return!!Xe(ln)},getAllByType:function(ln){return Gr(ve.draggables).filter(function(Rn){return Rn.descriptor.type===ln})}};function St(un){return ve.droppables[un]||null}function Qt(un){var ln=St(un);return ln||sn(!1),ln}var wn={register:function(ln){ve.droppables[ln.descriptor.id]=ln},unregister:function(ln){var Rn=St(ln.descriptor.id);Rn&&ln.uniqueId===Rn.uniqueId&&delete ve.droppables[ln.descriptor.id]},getById:Qt,findById:St,exists:function(ln){return!!St(ln)},getAllByType:function(ln){return Gr(ve.droppables).filter(function(Rn){return Rn.descriptor.type===ln})}};function fn(){ve.draggables={},ve.droppables={},ye.length=0}return{draggable:ct,droppable:wn,subscribe:be,clean:fn}}function Ad(){var ve=On(nf,[]);return(0,ue.useEffect)(function(){return function(){requestAnimationFrame(ve.clean)}},[ve]),ve}var Zc=ue.createContext(null),Hc=function(){var ve=document.body;return ve||sn(!1),ve},Tc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},rf=function(ye){return"rbd-announcement-"+ye};function Fd(ve){var ye=On(function(){return rf(ve)},[ve]),be=(0,ue.useRef)(null);(0,ue.useEffect)(function(){var qe=document.createElement("div");return be.current=qe,qe.id=ye,qe.setAttribute("aria-live","assertive"),qe.setAttribute("aria-atomic","true"),(0,Nt.Z)(qe.style,Tc),Hc().appendChild(qe),function(){setTimeout(function(){var Qt=Hc();Qt.contains(qe)&&Qt.removeChild(qe),qe===be.current&&(be.current=null)})}},[ye]);var Re=Jn(function(Xe){var qe=be.current;if(qe){qe.textContent=Xe;return}},[]);return Re}var fd=0,zd={separator:"::"};function Pl(){fd=0}function yc(ve,ye){return ye===void 0&&(ye=zd),On(function(){return""+ve+ye.separator+fd++},[ye.separator,ve])}function ph(ve){var ye=ve.contextId,be=ve.uniqueId;return"rbd-hidden-text-"+ye+"-"+be}function jh(ve){var ye=ve.contextId,be=ve.text,Re=yc("hidden-text",{separator:"-"}),Xe=On(function(){return ph({contextId:ye,uniqueId:Re})},[Re,ye]);return(0,ue.useEffect)(function(){var ct=document.createElement("div");return ct.id=Xe,ct.textContent=be,ct.style.display="none",Hc().appendChild(ct),function(){var Qt=Hc();Qt.contains(ct)&&Qt.removeChild(ct)}},[Xe,be]),Xe}var mh=ue.createContext(null),Ht={react:"^16.8.5","react-dom":"^16.8.5"},it=/(\d+)\.(\d+)\.(\d+)/,lt=function(ye){var be=it.exec(ye);be==null&&sn(!1);var Re=Number(be[1]),Xe=Number(be[2]),qe=Number(be[3]);return{major:Re,minor:Xe,patch:qe,raw:ye}},ot=function(ye,be){return be.major>ye.major?!0:be.major<ye.major?!1:be.minor>ye.minor?!0:be.minor<ye.minor?!1:be.patch>=ye.patch},xn=function(ve,ye){var be=lt(ve),Re=lt(ye);ot(be,Re)},wi=`
|
|
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
|
|
`,Yi=function(ve){var ye=ve.doctype;ye&&(ye.name.toLowerCase(),ye.publicId)};function dr(ve){}function xi(ve,ye){}function Fn(){xi(function(){xn(Ht.react,ue.version),Yi(document)},[])}function Fi(ve){var ye=(0,ue.useRef)(ve);return(0,ue.useEffect)(function(){ye.current=ve}),ye}function Yr(){var ve=null;function ye(){return!!ve}function be(ct){return ct===ve}function Re(ct){ve&&sn(!1);var St={abandon:ct};return ve=St,St}function Xe(){ve||sn(!1),ve=null}function qe(){ve&&(ve.abandon(),Xe())}return{isClaimed:ye,isActive:be,claim:Re,release:Xe,tryAbandon:qe}}var Po=9,kr=13,$r=27,No=32,So=33,po=34,lr=35,ma=36,Vo=37,mo=38,Fo=39,Pr=40,gr,Mo=(gr={},gr[kr]=!0,gr[Po]=!0,gr),Ur=function(ve){Mo[ve.keyCode]&&ve.preventDefault()},Do=function(){var ve="visibilitychange";if(typeof document=="undefined")return ve;var ye=[ve,"ms"+ve,"webkit"+ve,"moz"+ve,"o"+ve],be=xr(ye,function(Re){return"on"+Re in document});return be||ve}(),yo=0,ca=5;function xa(ve,ye){return Math.abs(ye.x-ve.x)>=ca||Math.abs(ye.y-ve.y)>=ca}var $n={type:"IDLE"};function wo(ve){var ye=ve.cancel,be=ve.completed,Re=ve.getPhase,Xe=ve.setPhase;return[{eventName:"mousemove",fn:function(ct){var St=ct.button,Qt=ct.clientX,wn=ct.clientY;if(St===yo){var fn={x:Qt,y:wn},un=Re();if(un.type==="DRAGGING"){ct.preventDefault(),un.actions.move(fn);return}un.type!=="PENDING"&&sn(!1);var ln=un.point;if(xa(ln,fn)){ct.preventDefault();var Rn=un.actions.fluidLift(fn);Xe({type:"DRAGGING",actions:Rn})}}}},{eventName:"mouseup",fn:function(ct){var St=Re();if(St.type!=="DRAGGING"){ye();return}ct.preventDefault(),St.actions.drop({shouldBlockNextClick:!0}),be()}},{eventName:"mousedown",fn:function(ct){Re().type==="DRAGGING"&&ct.preventDefault(),ye()}},{eventName:"keydown",fn:function(ct){var St=Re();if(St.type==="PENDING"){ye();return}if(ct.keyCode===$r){ct.preventDefault(),ye();return}Ur(ct)}},{eventName:"resize",fn:ye},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Re().type==="PENDING"&&ye()}},{eventName:"webkitmouseforcedown",fn:function(ct){var St=Re();if(St.type==="IDLE"&&sn(!1),St.actions.shouldRespectForcePress()){ye();return}ct.preventDefault()}},{eventName:Do,fn:ye}]}function Yo(ve){var ye=(0,ue.useRef)($n),be=(0,ue.useRef)(Pt),Re=On(function(){return{eventName:"mousedown",fn:function(un){if(!un.defaultPrevented&&un.button===yo&&!(un.ctrlKey||un.metaKey||un.shiftKey||un.altKey)){var ln=ve.findClosestDraggableId(un);if(ln){var Rn=ve.tryGetLock(ln,ct,{sourceEvent:un});if(Rn){un.preventDefault();var bi={x:un.clientX,y:un.clientY};be.current(),wn(Rn,bi)}}}}}},[ve]),Xe=On(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(un){if(!un.defaultPrevented){var ln=ve.findClosestDraggableId(un);if(ln){var Rn=ve.findOptionsForDraggable(ln);Rn&&(Rn.shouldRespectForcePress||ve.canGetLock(ln)&&un.preventDefault())}}}}},[ve]),qe=Jn(function(){var un={passive:!1,capture:!0};be.current=En(window,[Xe,Re],un)},[Xe,Re]),ct=Jn(function(){var fn=ye.current;fn.type!=="IDLE"&&(ye.current=$n,be.current(),qe())},[qe]),St=Jn(function(){var fn=ye.current;ct(),fn.type==="DRAGGING"&&fn.actions.cancel({shouldBlockNextClick:!0}),fn.type==="PENDING"&&fn.actions.abort()},[ct]),Qt=Jn(function(){var un={capture:!0,passive:!1},ln=wo({cancel:St,completed:ct,getPhase:function(){return ye.current},setPhase:function(bi){ye.current=bi}});be.current=En(window,ln,un)},[St,ct]),wn=Jn(function(un,ln){ye.current.type!=="IDLE"&&sn(!1),ye.current={type:"PENDING",point:ln,actions:un},Qt()},[Qt]);Na(function(){return qe(),function(){be.current()}},[qe])}var Jo;function Qo(){}var ms=(Jo={},Jo[po]=!0,Jo[So]=!0,Jo[ma]=!0,Jo[lr]=!0,Jo);function Cr(ve,ye){function be(){ye(),ve.cancel()}function Re(){ye(),ve.drop()}return[{eventName:"keydown",fn:function(qe){if(qe.keyCode===$r){qe.preventDefault(),be();return}if(qe.keyCode===No){qe.preventDefault(),Re();return}if(qe.keyCode===Pr){qe.preventDefault(),ve.moveDown();return}if(qe.keyCode===mo){qe.preventDefault(),ve.moveUp();return}if(qe.keyCode===Fo){qe.preventDefault(),ve.moveRight();return}if(qe.keyCode===Vo){qe.preventDefault(),ve.moveLeft();return}if(ms[qe.keyCode]){qe.preventDefault();return}Ur(qe)}},{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:Do,fn:be}]}function Xo(ve){var ye=(0,ue.useRef)(Qo),be=On(function(){return{eventName:"keydown",fn:function(qe){if(qe.defaultPrevented||qe.keyCode!==No)return;var ct=ve.findClosestDraggableId(qe);if(!ct)return;var St=ve.tryGetLock(ct,fn,{sourceEvent:qe});if(!St)return;qe.preventDefault();var Qt=!0,wn=St.snapLift();ye.current();function fn(){Qt||sn(!1),Qt=!1,ye.current(),Re()}ye.current=En(window,Cr(wn,fn),{capture:!0,passive:!1})}}},[ve]),Re=Jn(function(){var qe={passive:!1,capture:!0};ye.current=En(window,[be],qe)},[be]);Na(function(){return Re(),function(){ye.current()}},[Re])}var Ha={type:"IDLE"},ls=120,hs=.15;function Ua(ve){var ye=ve.cancel,be=ve.getPhase;return[{eventName:"orientationchange",fn:ye},{eventName:"resize",fn:ye},{eventName:"contextmenu",fn:function(Xe){Xe.preventDefault()}},{eventName:"keydown",fn:function(Xe){if(be().type!=="DRAGGING"){ye();return}Xe.keyCode===$r&&Xe.preventDefault(),ye()}},{eventName:Do,fn:ye}]}function pr(ve){var ye=ve.cancel,be=ve.completed,Re=ve.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(qe){var ct=Re();if(ct.type!=="DRAGGING"){ye();return}ct.hasMoved=!0;var St=qe.touches[0],Qt=St.clientX,wn=St.clientY,fn={x:Qt,y:wn};qe.preventDefault(),ct.actions.move(fn)}},{eventName:"touchend",fn:function(qe){var ct=Re();if(ct.type!=="DRAGGING"){ye();return}qe.preventDefault(),ct.actions.drop({shouldBlockNextClick:!0}),be()}},{eventName:"touchcancel",fn:function(qe){if(Re().type!=="DRAGGING"){ye();return}qe.preventDefault(),ye()}},{eventName:"touchforcechange",fn:function(qe){var ct=Re();ct.type==="IDLE"&&sn(!1);var St=qe.touches[0];if(St){var Qt=St.force>=hs;if(Qt){var wn=ct.actions.shouldRespectForcePress();if(ct.type==="PENDING"){wn&&ye();return}if(wn){if(ct.hasMoved){qe.preventDefault();return}ye();return}qe.preventDefault()}}}},{eventName:Do,fn:ye}]}function Ho(ve){var ye=(0,ue.useRef)(Ha),be=(0,ue.useRef)(Pt),Re=Jn(function(){return ye.current},[]),Xe=Jn(function(Rn){ye.current=Rn},[]),qe=On(function(){return{eventName:"touchstart",fn:function(Rn){if(!Rn.defaultPrevented){var bi=ve.findClosestDraggableId(Rn);if(bi){var Ar=ve.tryGetLock(bi,St,{sourceEvent:Rn});if(Ar){var Lr=Rn.touches[0],Xr=Lr.clientX,bo=Lr.clientY,Go={x:Xr,y:bo};be.current(),un(Ar,Go)}}}}}},[ve]),ct=Jn(function(){var Rn={capture:!0,passive:!1};be.current=En(window,[qe],Rn)},[qe]),St=Jn(function(){var ln=ye.current;ln.type!=="IDLE"&&(ln.type==="PENDING"&&clearTimeout(ln.longPressTimerId),Xe(Ha),be.current(),ct())},[ct,Xe]),Qt=Jn(function(){var ln=ye.current;St(),ln.type==="DRAGGING"&&ln.actions.cancel({shouldBlockNextClick:!0}),ln.type==="PENDING"&&ln.actions.abort()},[St]),wn=Jn(function(){var Rn={capture:!0,passive:!1},bi={cancel:Qt,completed:St,getPhase:Re},Ar=En(window,pr(bi),Rn),Lr=En(window,Ua(bi),Rn);be.current=function(){Ar(),Lr()}},[Qt,Re,St]),fn=Jn(function(){var Rn=Re();Rn.type!=="PENDING"&&sn(!1);var bi=Rn.actions.fluidLift(Rn.point);Xe({type:"DRAGGING",actions:bi,hasMoved:!1})},[Re,Xe]),un=Jn(function(Rn,bi){Re().type!=="IDLE"&&sn(!1);var Ar=setTimeout(fn,ls);Xe({type:"PENDING",point:bi,actions:Rn,longPressTimerId:Ar}),wn()},[wn,Re,Xe,fn]);Na(function(){return ct(),function(){be.current();var bi=Re();bi.type==="PENDING"&&(clearTimeout(bi.longPressTimerId),Xe(Ha))}},[Re,ct,Xe]),Na(function(){var Rn=En(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Rn},[])}function Wa(ve){}var Ko={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ts(ve,ye){if(ye==null)return!1;var be=!!Ko[ye.tagName.toLowerCase()];if(be)return!0;var Re=ye.getAttribute("contenteditable");return Re==="true"||Re===""?!0:ye===ve?!1:ts(ve,ye.parentElement)}function fs(ve,ye){var be=ye.target;return ec(be)?ts(ve,be):!1}var al=function(ve){return lo(ve.getBoundingClientRect()).center};function Xs(ve){return ve instanceof th(ve).Element}var Os=function(){var ve="matches";if(typeof document=="undefined")return ve;var ye=[ve,"msMatchesSelector","webkitMatchesSelector"],be=xr(ye,function(Re){return Re in Element.prototype});return be||ve}();function eo(ve,ye){return ve==null?null:ve[Os](ye)?ve:eo(ve.parentElement,ye)}function qa(ve,ye){return ve.closest?ve.closest(ye):eo(ve,ye)}function sl(ve){return"["+$u.contextId+'="'+ve+'"]'}function Kl(ve,ye){var be=ye.target;if(!Xs(be))return null;var Re=sl(ve),Xe=qa(be,Re);return!Xe||!ec(Xe)?null:Xe}function La(ve,ye){var be=Kl(ve,ye);return be?be.getAttribute($u.draggableId):null}function Ro(ve,ye){var be="["+Wd.contextId+'="'+ve+'"]',Re=ro(document.querySelectorAll(be)),Xe=xr(Re,function(qe){return qe.getAttribute(Wd.id)===ye});return!Xe||!ec(Xe)?null:Xe}function na(ve){ve.preventDefault()}function Yl(ve){var ye=ve.expected,be=ve.phase,Re=ve.isLockActive,Xe=ve.shouldWarn;return!(!Re()||ye!==be)}function Ru(ve){var ye=ve.lockAPI,be=ve.store,Re=ve.registry,Xe=ve.draggableId;if(ye.isClaimed())return!1;var qe=Re.draggable.findById(Xe);return!(!qe||!qe.options.isEnabled||!Zl(be.getState(),Xe))}function tc(ve){var ye=ve.lockAPI,be=ve.contextId,Re=ve.store,Xe=ve.registry,qe=ve.draggableId,ct=ve.forceSensorStop,St=ve.sourceEvent,Qt=Ru({lockAPI:ye,store:Re,registry:Xe,draggableId:qe});if(!Qt)return null;var wn=Xe.draggable.getById(qe),fn=Ro(be,wn.descriptor.id);if(!fn||St&&!wn.options.canDragInteractiveElements&&fs(fn,St))return null;var un=ye.claim(ct||Pt),ln="PRE_DRAG";function Rn(){return wn.options.shouldRespectForcePress}function bi(){return ye.isActive(un)}function Ar(ps,Ks){Yl({expected:ps,phase:ln,isLockActive:bi,shouldWarn:!0})&&Re.dispatch(Ks())}var Lr=Ar.bind(null,"DRAGGING");function Xr(ps){function Ks(){ye.release(),ln="COMPLETED"}ln!=="PRE_DRAG"&&(Ks(),ln!=="PRE_DRAG"&&sn(!1)),Re.dispatch(Ze(ps.liftActionArgs)),ln="DRAGGING";function Hu(Is,ju){if(ju===void 0&&(ju={shouldBlockNextClick:!1}),ps.cleanup(),ju.shouldBlockNextClick){var Ic=En(window,[{eventName:"click",fn:na,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Ic)}Ks(),Re.dispatch(so({reason:Is}))}return(0,Nt.Z)({isActive:function(){return Yl({expected:"DRAGGING",phase:ln,isLockActive:bi,shouldWarn:!1})},shouldRespectForcePress:Rn,drop:function(ju){return Hu("DROP",ju)},cancel:function(ju){return Hu("CANCEL",ju)}},ps.actions)}function bo(ps){var Ks=en(function(Is){Lr(function(){return ni({client:Is})})}),Hu=Xr({liftActionArgs:{id:qe,clientSelection:ps,movementMode:"FLUID"},cleanup:function(){return Ks.cancel()},actions:{move:Ks}});return(0,Nt.Z)({},Hu,{move:Ks})}function Go(){var ps={moveUp:function(){return Lr(mi)},moveRight:function(){return Lr(ci)},moveDown:function(){return Lr(Gi)},moveLeft:function(){return Lr(hr)}};return Xr({liftActionArgs:{id:qe,clientSelection:al(fn),movementMode:"SNAP"},cleanup:Pt,actions:ps})}function Wo(){var ps=Yl({expected:"PRE_DRAG",phase:ln,isLockActive:bi,shouldWarn:!0});ps&&ye.release()}var va={isActive:function(){return Yl({expected:"PRE_DRAG",phase:ln,isLockActive:bi,shouldWarn:!1})},shouldRespectForcePress:Rn,fluidLift:bo,snapLift:Go,abort:Wo};return va}var fa=[Yo,Xo,Ho];function Za(ve){var ye=ve.contextId,be=ve.store,Re=ve.registry,Xe=ve.customSensors,qe=ve.enableDefaultSensors,ct=[].concat(qe?fa:[],Xe||[]),St=(0,ue.useState)(function(){return Yr()})[0],Qt=Jn(function(bo,Go){bo.isDragging&&!Go.isDragging&&St.tryAbandon()},[St]);Na(function(){var bo=be.getState(),Go=be.subscribe(function(){var Wo=be.getState();Qt(bo,Wo),bo=Wo});return Go},[St,be,Qt]),Na(function(){return St.tryAbandon},[St.tryAbandon]);var wn=Jn(function(Xr){return Ru({lockAPI:St,registry:Re,store:be,draggableId:Xr})},[St,Re,be]),fn=Jn(function(Xr,bo,Go){return tc({lockAPI:St,registry:Re,contextId:ye,store:be,draggableId:Xr,forceSensorStop:bo,sourceEvent:Go&&Go.sourceEvent?Go.sourceEvent:null})},[ye,St,Re,be]),un=Jn(function(Xr){return La(ye,Xr)},[ye]),ln=Jn(function(Xr){var bo=Re.draggable.findById(Xr);return bo?bo.options:null},[Re.draggable]),Rn=Jn(function(){St.isClaimed()&&(St.tryAbandon(),be.getState().phase!=="IDLE"&&be.dispatch(Un()))},[St,be]),bi=Jn(St.isClaimed,[St]),Ar=On(function(){return{canGetLock:wn,tryGetLock:fn,findClosestDraggableId:un,findOptionsForDraggable:ln,tryReleaseLock:Rn,isLockClaimed:bi}},[wn,fn,un,ln,Rn,bi]);Wa(ct);for(var Lr=0;Lr<ct.length;Lr++)ct[Lr](Ar)}var Eo=function(ye){return{onBeforeCapture:ye.onBeforeCapture,onBeforeDragStart:ye.onBeforeDragStart,onDragStart:ye.onDragStart,onDragEnd:ye.onDragEnd,onDragUpdate:ye.onDragUpdate}};function Rr(ve){return ve.current||sn(!1),ve.current}function qo(ve){var ye=ve.contextId,be=ve.setCallbacks,Re=ve.sensors,Xe=ve.nonce,qe=ve.dragHandleUsageInstructions,ct=(0,ue.useRef)(null);Fn();var St=Fi(ve),Qt=Jn(function(){return Eo(St.current)},[St]),wn=Fd(ye),fn=jh({contextId:ye,text:qe}),un=iu(ye,Xe),ln=Jn(function(Is){Rr(ct).dispatch(Is)},[]),Rn=On(function(){return(0,Bt.DE)({publishWhileDragging:jt,updateDroppableScroll:Sn,updateDroppableIsEnabled:Pn,updateDroppableIsCombineEnabled:Hn,collectionStarting:Gt},ln)},[ln]),bi=Ad(),Ar=On(function(){return Ia(bi,Rn)},[bi,Rn]),Lr=On(function(){return Wh((0,Nt.Z)({scrollWindow:fu,scrollDroppable:Ar.scrollDroppable},(0,Bt.DE)({move:ni},ln)))},[Ar.scrollDroppable,ln]),Xr=jd(ye),bo=On(function(){return Ou({announce:wn,autoScroller:Lr,dimensionMarshal:Ar,focusMarshal:Xr,getResponders:Qt,styleMarshal:un})},[wn,Lr,Ar,Xr,Qt,un]);ct.current=bo;var Go=Jn(function(){var Is=Rr(ct),ju=Is.getState();ju.phase!=="IDLE"&&Is.dispatch(Un())},[]),Wo=Jn(function(){var Is=Rr(ct).getState();return Is.isDragging||Is.phase==="DROP_ANIMATING"},[]),va=On(function(){return{isDragging:Wo,tryAbort:Go}},[Wo,Go]);be(va);var ps=Jn(function(Is){return Zl(Rr(ct).getState(),Is)},[]),Ks=Jn(function(){return Dc(Rr(ct).getState())},[]),Hu=On(function(){return{marshal:Ar,focus:Xr,contextId:ye,canLift:ps,isMovementAllowed:Ks,dragHandleUsageInstructionsId:fn,registry:bi}},[ye,Ar,fn,Xr,ps,Ks,bi]);return Za({contextId:ye,store:bo,registry:bi,customSensors:Re,enableDefaultSensors:ve.enableDefaultSensors!==!1}),(0,ue.useEffect)(function(){return Go},[Go]),ue.createElement(mh.Provider,{value:Hu},ue.createElement(de,{context:Zc,store:bo},ve.children))}var Ka=0;function Qs(){Ka=0}function Sc(){return On(function(){return""+Ka++},[])}function Xl(){Qs(),Pl()}function sc(ve){var ye=Sc(),be=ve.dragHandleUsageInstructions||ja.dragHandleUsageInstructions;return ue.createElement(Sr,null,function(Re){return ue.createElement(qo,{nonce:ve.nonce,contextId:ye,setCallbacks:Re,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 Jl=function(ye){return function(be){return ye===be}},nd=Jl("scroll"),mr=Jl("auto"),vs=Jl("visible"),Aa=function(ye,be){return be(ye.overflowX)||be(ye.overflowY)},qs=function(ye,be){return be(ye.overflowX)&&be(ye.overflowY)},Uu=function(ye){var be=window.getComputedStyle(ye),Re={overflowX:be.overflowX,overflowY:be.overflowY};return Aa(Re,nd)||Aa(Re,mr)},Zs=function(){return!1;var ye,be,Re,Xe},ru=function ve(ye){return ye==null?null:ye===document.body?Zs()?ye:null:ye===document.documentElement?null:Uu(ye)?ye:ve(ye.parentElement)},gd=function(ve){if(ve)var ye=ru(ve.parentElement)},Vd=function(ve){return{x:ve.scrollLeft,y:ve.scrollTop}},of=function ve(ye){if(!ye)return!1;var be=window.getComputedStyle(ye);return be.position==="fixed"?!0:ve(ye.parentElement)},bu=function(ve){var ye=ru(ve),be=of(ve);return{closestScrollable:ye,isFixedOnPage:be}},Ef=function(ve){var ye=ve.descriptor,be=ve.isEnabled,Re=ve.isCombineEnabled,Xe=ve.isFixedOnPage,qe=ve.direction,ct=ve.client,St=ve.page,Qt=ve.closest,wn=function(){if(!Qt)return null;var Rn=Qt.scrollSize,bi=Qt.client,Ar=eu({scrollHeight:Rn.scrollHeight,scrollWidth:Rn.scrollWidth,height:bi.paddingBox.height,width:bi.paddingBox.width});return{pageMarginBox:Qt.page.marginBox,frameClient:bi,scrollSize:Rn,shouldClipSubject:Qt.shouldClipSubject,scroll:{initial:Qt.scroll,current:Qt.scroll,max:Ar,diff:{value:co,displacement:co}}}}(),fn=qe==="vertical"?gi:ho,un=Tr({page:St,withPlaceholder:null,axis:fn,frame:wn}),ln={descriptor:ye,isCombineEnabled:Re,isFixedOnPage:Xe,axis:fn,isEnabled:be,client:ct,page:St,frame:wn,subject:un};return ln},ng=function(ye,be){var Re=to(ye);if(!be||ye!==be)return Re;var Xe=Re.paddingBox.top-be.scrollTop,qe=Re.paddingBox.left-be.scrollLeft,ct=Xe+be.scrollHeight,St=qe+be.scrollWidth,Qt={top:Xe,right:St,bottom:ct,left:qe},wn=jo(Qt,Re.border),fn=zo({borderBox:wn,margin:Re.margin,border:Re.border,padding:Re.padding});return fn},Nf=function(ve){var ye=ve.ref,be=ve.descriptor,Re=ve.env,Xe=ve.windowScroll,qe=ve.direction,ct=ve.isDropDisabled,St=ve.isCombineEnabled,Qt=ve.shouldClipSubject,wn=Re.closestScrollable,fn=ng(ye,wn),un=Be(fn,Xe),ln=function(){if(!wn)return null;var bi=to(wn),Ar={scrollHeight:wn.scrollHeight,scrollWidth:wn.scrollWidth};return{client:bi,page:Be(bi,Xe),scroll:Vd(wn),scrollSize:Ar,shouldClipSubject:Qt}}(),Rn=Ef({descriptor:be,isEnabled:!ct,isCombineEnabled:St,isFixedOnPage:Re.isFixedOnPage,direction:qe,client:fn,page:un,closest:ln});return Rn},nh={passive:!1},af={passive:!0},ih=function(ve){return ve.shouldPublishImmediately?nh:af};function Js(ve){var ye=(0,ue.useContext)(ve);return ye||sn(!1),ye}var zh=function(ye){return ye&&ye.env.closestScrollable||null};function sf(ve){var ye=(0,ue.useRef)(null),be=Js(mh),Re=yc("droppable"),Xe=be.registry,qe=be.marshal,ct=Fi(ve),St=On(function(){return{id:ve.droppableId,type:ve.type,mode:ve.mode}},[ve.droppableId,ve.mode,ve.type]),Qt=(0,ue.useRef)(St),wn=On(function(){return qn(function(Wo,va){ye.current||sn(!1);var ps={x:Wo,y:va};qe.updateDroppableScroll(St.id,ps)})},[St.id,qe]),fn=Jn(function(){var Wo=ye.current;return!Wo||!Wo.env.closestScrollable?co:Vd(Wo.env.closestScrollable)},[]),un=Jn(function(){var Wo=fn();wn(Wo.x,Wo.y)},[fn,wn]),ln=On(function(){return en(un)},[un]),Rn=Jn(function(){var Wo=ye.current,va=zh(Wo);Wo&&va||sn(!1);var ps=Wo.scrollOptions;if(ps.shouldPublishImmediately){un();return}ln()},[ln,un]),bi=Jn(function(Wo,va){ye.current&&sn(!1);var ps=ct.current,Ks=ps.getDroppableRef();Ks||sn(!1);var Hu=bu(Ks),Is={ref:Ks,descriptor:St,env:Hu,scrollOptions:va};ye.current=Is;var ju=Nf({ref:Ks,descriptor:St,env:Hu,windowScroll:Wo,direction:ps.direction,isDropDisabled:ps.isDropDisabled,isCombineEnabled:ps.isCombineEnabled,shouldClipSubject:!ps.ignoreContainerClipping}),Ic=Hu.closestScrollable;return Ic&&(Ic.setAttribute(Pu.contextId,be.contextId),Ic.addEventListener("scroll",Rn,ih(Is.scrollOptions))),ju},[be.contextId,St,Rn,ct]),Ar=Jn(function(){var Wo=ye.current,va=zh(Wo);return Wo&&va||sn(!1),Vd(va)},[]),Lr=Jn(function(){var Wo=ye.current;Wo||sn(!1);var va=zh(Wo);ye.current=null,va&&(ln.cancel(),va.removeAttribute(Pu.contextId),va.removeEventListener("scroll",Rn,ih(Wo.scrollOptions)))},[Rn,ln]),Xr=Jn(function(Wo){var va=ye.current;va||sn(!1);var ps=zh(va);ps||sn(!1),ps.scrollTop+=Wo.y,ps.scrollLeft+=Wo.x},[]),bo=On(function(){return{getDimensionAndWatchScroll:bi,getScrollWhileDragging:Ar,dragStopped:Lr,scroll:Xr}},[Lr,bi,Ar,Xr]),Go=On(function(){return{uniqueId:Re,descriptor:St,callbacks:bo}},[bo,St,Re]);Na(function(){return Qt.current=Go.descriptor,Xe.droppable.register(Go),function(){ye.current&&Lr(),Xe.droppable.unregister(Go)}},[bo,St,Lr,Go,qe,Xe.droppable]),Na(function(){ye.current&&qe.updateDroppableIsEnabled(Qt.current.id,!ve.isDropDisabled)},[ve.isDropDisabled,qe]),Na(function(){ye.current&&qe.updateDroppableIsCombineEnabled(Qt.current.id,ve.isCombineEnabled)},[ve.isCombineEnabled,qe])}function vh(){}var Vh={width:0,height:0,margin:an},yh=function(ye){var be=ye.isAnimatingOpenOnMount,Re=ye.placeholder,Xe=ye.animate;return be||Xe==="close"?Vh:{height:Re.client.borderBox.height,width:Re.client.borderBox.width,margin:Re.client.margin}},Gh=function(ye){var be=ye.isAnimatingOpenOnMount,Re=ye.placeholder,Xe=ye.animate,qe=yh({isAnimatingOpenOnMount:be,placeholder:Re,animate:Xe});return{display:Re.display,boxSizing:"border-box",width:qe.width,height:qe.height,marginTop:qe.margin.top,marginRight:qe.margin.right,marginBottom:qe.margin.bottom,marginLeft:qe.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Xe!=="none"?Ja.placeholder:null}};function Bu(ve){var ye=(0,ue.useRef)(null),be=Jn(function(){ye.current&&(clearTimeout(ye.current),ye.current=null)},[]),Re=ve.animate,Xe=ve.onTransitionEnd,qe=ve.onClose,ct=ve.contextId,St=(0,ue.useState)(ve.animate==="open"),Qt=St[0],wn=St[1];(0,ue.useEffect)(function(){return Qt?Re!=="open"?(be(),wn(!1),vh):ye.current?vh:(ye.current=setTimeout(function(){ye.current=null,wn(!1)}),be):vh},[Re,Qt,be]);var fn=Jn(function(ln){ln.propertyName==="height"&&(Xe(),Re==="close"&&qe())},[Re,qe,Xe]),un=Gh({isAnimatingOpenOnMount:Qt,animate:ve.animate,placeholder:ve.placeholder});return ue.createElement(ve.placeholder.tagName,{style:un,"data-rbd-placeholder-context-id":ct,onTransitionEnd:fn,ref:ve.innerRef})}var Bg=ue.memo(Bu),Sh=ue.createContext(null);function bd(ve){ve&&ec(ve)||sn(!1)}function lu(ve){return typeof ve=="boolean"}function ie(ve,ye){ye.forEach(function(be){return be(ve)})}var ae=[function(ye){var be=ye.props;be.droppableId||sn(!1),typeof be.droppableId!="string"&&sn(!1)},function(ye){var be=ye.props;lu(be.isDropDisabled)||sn(!1),lu(be.isCombineEnabled)||sn(!1),lu(be.ignoreContainerClipping)||sn(!1)},function(ye){var be=ye.getDroppableRef;bd(be())}],fe=[function(ye){var be=ye.props,Re=ye.getPlaceholderRef;if(be.placeholder)var Xe=Re()}],he=[function(ye){var be=ye.props;be.renderClone||sn(!1)},function(ye){var be=ye.getPlaceholderRef;be()&&sn(!1)}];function me(ve){xi(function(){ie(ve,ae),ve.props.mode==="standard"&&ie(ve,fe),ve.props.mode==="virtual"&&ie(ve,he)})}var Le=function(ve){Lt(ye,ve);function ye(){for(var Re,Xe=arguments.length,qe=new Array(Xe),ct=0;ct<Xe;ct++)qe[ct]=arguments[ct];return Re=ve.call.apply(ve,[this].concat(qe))||this,Re.state={isVisible:!!Re.props.on,data:Re.props.on,animate:Re.props.shouldAnimate&&Re.props.on?"open":"none"},Re.onClose=function(){Re.state.animate==="close"&&Re.setState({isVisible:!1})},Re}ye.getDerivedStateFromProps=function(Xe,qe){return Xe.shouldAnimate?Xe.on?{isVisible:!0,data:Xe.on,animate:"open"}:qe.isVisible?{isVisible:!0,data:qe.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Xe.on,data:Xe.on,animate:"none"}};var be=ye.prototype;return be.render=function(){if(!this.state.isVisible)return null;var Xe={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Xe)},ye}(ue.PureComponent),je={dragging:5e3,dropAnimating:4500},Je=function(ye,be){return be?Ja.drop(be.duration):ye?Ja.snap:Ja.fluid},Ye=function(ye,be){return ye?be?Io.opacity.drop:Io.opacity.combining:null},gt=function(ye){return ye.forceShouldAnimate!=null?ye.forceShouldAnimate:ye.mode==="SNAP"};function $t(ve){var ye=ve.dimension,be=ye.client,Re=ve.offset,Xe=ve.combineWith,qe=ve.dropping,ct=!!Xe,St=gt(ve),Qt=!!qe,wn=Qt?es.drop(Re,ct):es.moveTo(Re),fn={position:"fixed",top:be.marginBox.top,left:be.marginBox.left,boxSizing:"border-box",width:be.borderBox.width,height:be.borderBox.height,transition:Je(St,qe),transform:wn,opacity:Ye(ct,Qt),zIndex:Qt?je.dropAnimating:je.dragging,pointerEvents:"none"};return fn}function wt(ve){return{transform:es.moveTo(ve.offset),transition:ve.shouldAnimateDisplacement?null:"none"}}function Kn(ve){return ve.type==="DRAGGING"?$t(ve):wt(ve)}function Nn(ve,ye,be){be===void 0&&(be=co);var Re=window.getComputedStyle(ye),Xe=ye.getBoundingClientRect(),qe=ya(Xe,Re),ct=Be(qe,be),St={client:qe,tagName:ye.tagName.toLowerCase(),display:Re.display},Qt={x:qe.marginBox.width,y:qe.marginBox.height},wn={descriptor:ve,placeholder:St,displaceBy:Qt,client:qe,page:ct};return wn}function Zi(ve){var ye=yc("draggable"),be=ve.descriptor,Re=ve.registry,Xe=ve.getDraggableRef,qe=ve.canDragInteractiveElements,ct=ve.shouldRespectForcePress,St=ve.isEnabled,Qt=On(function(){return{canDragInteractiveElements:qe,shouldRespectForcePress:ct,isEnabled:St}},[qe,St,ct]),wn=Jn(function(Rn){var bi=Xe();return bi||sn(!1),Nn(be,bi,Rn)},[be,Xe]),fn=On(function(){return{uniqueId:ye,descriptor:be,options:Qt,getDimension:wn}},[be,wn,Qt,ye]),un=(0,ue.useRef)(fn),ln=(0,ue.useRef)(!0);Na(function(){return Re.draggable.register(un.current),function(){return Re.draggable.unregister(un.current)}},[Re.draggable]),Na(function(){if(ln.current){ln.current=!1;return}var Rn=un.current;un.current=fn,Re.draggable.update(fn,Rn)},[fn,Re.draggable])}function Xi(ve,ye,be){xi(function(){function Re(qe){return"Draggable[id: "+qe+"]: "}var Xe=ve.draggableId;Xe||sn(!1),typeof Xe!="string"&&sn(!1),Bo(ve.index)||sn(!1),ve.mapped.type!=="DRAGGING"&&(bd(be()),ve.isEnabled&&(Cd(ye,Xe)||sn(!1)))})}function Rt(ve){}function ii(ve){ve.preventDefault()}function Ji(ve){var ye=(0,ue.useRef)(null),be=Jn(function(Is){ye.current=Is},[]),Re=Jn(function(){return ye.current},[]),Xe=Js(mh),qe=Xe.contextId,ct=Xe.dragHandleUsageInstructionsId,St=Xe.registry,Qt=Js(Sh),wn=Qt.type,fn=Qt.droppableId,un=On(function(){return{id:ve.draggableId,index:ve.index,type:wn,droppableId:fn}},[ve.draggableId,ve.index,wn,fn]),ln=ve.children,Rn=ve.draggableId,bi=ve.isEnabled,Ar=ve.shouldRespectForcePress,Lr=ve.canDragInteractiveElements,Xr=ve.isClone,bo=ve.mapped,Go=ve.dropAnimationFinished;if(Xi(ve,qe,Re),Rt(Xr),!Xr){var Wo=On(function(){return{descriptor:un,registry:St,getDraggableRef:Re,canDragInteractiveElements:Lr,shouldRespectForcePress:Ar,isEnabled:bi}},[un,St,Re,Lr,Ar,bi]);Zi(Wo)}var va=On(function(){return bi?{tabIndex:0,role:"button","aria-describedby":ct,"data-rbd-drag-handle-draggable-id":Rn,"data-rbd-drag-handle-context-id":qe,draggable:!1,onDragStart:ii}:null},[qe,ct,Rn,bi]),ps=Jn(function(Is){bo.type==="DRAGGING"&&bo.dropping&&Is.propertyName==="transform"&&Go()},[Go,bo]),Ks=On(function(){var Is=Kn(bo),ju=bo.type==="DRAGGING"&&bo.dropping?ps:null,Ic={innerRef:be,draggableProps:{"data-rbd-draggable-context-id":qe,"data-rbd-draggable-id":Rn,style:Is,onTransitionEnd:ju},dragHandleProps:va};return Ic},[qe,va,Rn,bo,ps,be]),Hu=On(function(){return{draggableId:un.id,type:un.type,source:{index:un.index,droppableId:un.droppableId}}},[un.droppableId,un.id,un.index,un.type]);return ln(Ks,bo.snapshot,Hu)}var or=function(ve,ye){return ve===ye},vr=function(ve){var ye=ve.combine,be=ve.destination;return be?be.droppableId:ye?ye.droppableId:null},Wr=function(ye){return ye.combine?ye.combine.draggableId:null},Er=function(ye){return ye.at&&ye.at.type==="COMBINE"?ye.at.combine.draggableId:null};function ea(){var ve=qn(function(Xe,qe){return{x:Xe,y:qe}}),ye=qn(function(Xe,qe,ct,St,Qt){return{isDragging:!0,isClone:qe,isDropAnimating:!!Qt,dropAnimation:Qt,mode:Xe,draggingOver:ct,combineWith:St,combineTargetFor:null}}),be=qn(function(Xe,qe,ct,St,Qt,wn,fn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Qt,combineWith:wn,mode:qe,offset:Xe,dimension:ct,forceShouldAnimate:fn,snapshot:ye(qe,St,Qt,wn,null)}}}),Re=function(qe,ct){if(qe.isDragging){if(qe.critical.draggable.id!==ct.draggableId)return null;var St=qe.current.client.offset,Qt=qe.dimensions.draggables[ct.draggableId],wn=Ol(qe.impact),fn=Er(qe.impact),un=qe.forceShouldAnimate;return be(ve(St.x,St.y),qe.movementMode,Qt,ct.isClone,wn,fn,un)}if(qe.phase==="DROP_ANIMATING"){var ln=qe.completed;if(ln.result.draggableId!==ct.draggableId)return null;var Rn=ct.isClone,bi=qe.dimensions.draggables[ct.draggableId],Ar=ln.result,Lr=Ar.mode,Xr=vr(Ar),bo=Wr(Ar),Go=qe.dropDuration,Wo={duration:Go,curve:ia.drop,moveTo:qe.newHomeClientOffset,opacity:bo?Io.opacity.drop:null,scale:bo?Io.scale.drop:null};return{mapped:{type:"DRAGGING",offset:qe.newHomeClientOffset,dimension:bi,dropping:Wo,draggingOver:Xr,combineWith:bo,mode:Lr,forceShouldAnimate:null,snapshot:ye(Lr,Rn,Xr,bo,Wo)}}}return null};return Re}function ws(ve){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ve,combineWith:null}}var Ml={mapped:{type:"SECONDARY",offset:co,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ws(null)}};function us(){var ve=qn(function(ct,St){return{x:ct,y:St}}),ye=qn(ws),be=qn(function(ct,St,Qt){return St===void 0&&(St=null),{mapped:{type:"SECONDARY",offset:ct,combineTargetFor:St,shouldAnimateDisplacement:Qt,snapshot:ye(St)}}}),Re=function(St){return St?be(co,St,!0):null},Xe=function(St,Qt,wn,fn){var un=wn.displaced.visible[St],ln=!!(fn.inVirtualList&&fn.effected[St]),Rn=qi(wn),bi=Rn&&Rn.draggableId===St?Qt:null;if(!un){if(!ln)return Re(bi);if(wn.displaced.invisible[St])return null;var Ar=cn(fn.displacedBy.point),Lr=ve(Ar.x,Ar.y);return be(Lr,bi,!0)}if(ln)return Re(bi);var Xr=wn.displacedBy.point,bo=ve(Xr.x,Xr.y);return be(bo,bi,un.shouldAnimate)},qe=function(St,Qt){if(St.isDragging)return St.critical.draggable.id===Qt.draggableId?null:Xe(Qt.draggableId,St.critical.draggable.id,St.impact,St.afterCritical);if(St.phase==="DROP_ANIMATING"){var wn=St.completed;return wn.result.draggableId===Qt.draggableId?null:Xe(Qt.draggableId,wn.result.draggableId,wn.impact,wn.afterCritical)}return null};return qe}var wl=function(){var ye=ea(),be=us(),Re=function(qe,ct){return ye(qe,ct)||be(qe,ct)||Ml};return Re},Hs={dropAnimationFinished:fo},$s=mt(wl,Hs,null,{context:Zc,pure:!0,areStatePropsEqual:or})(Ji);function wu(ve){var ye=Js(Sh),be=ye.isUsingCloneFor;return be===ve.draggableId&&!ve.isClone?null:ue.createElement($s,ve)}function rs(ve){var ye=typeof ve.isDragDisabled=="boolean"?!ve.isDragDisabled:!0,be=!!ve.disableInteractiveElementBlocking,Re=!!ve.shouldRespectForcePress;return ue.createElement(wu,(0,Nt.Z)({},ve,{isClone:!1,isEnabled:ye,canDragInteractiveElements:be,shouldRespectForcePress:Re}))}function Fs(ve){var ye=(0,ue.useContext)(mh);ye||sn(!1);var be=ye.contextId,Re=ye.isMovementAllowed,Xe=(0,ue.useRef)(null),qe=(0,ue.useRef)(null),ct=ve.children,St=ve.droppableId,Qt=ve.type,wn=ve.mode,fn=ve.direction,un=ve.ignoreContainerClipping,ln=ve.isDropDisabled,Rn=ve.isCombineEnabled,bi=ve.snapshot,Ar=ve.useClone,Lr=ve.updateViewportMaxScroll,Xr=ve.getContainerForClone,bo=Jn(function(){return Xe.current},[]),Go=Jn(function(Kc){Xe.current=Kc},[]),Wo=Jn(function(){return qe.current},[]),va=Jn(function(Kc){qe.current=Kc},[]);me({props:ve,getDroppableRef:bo,getPlaceholderRef:Wo});var ps=Jn(function(){Re()&&Lr({maxScroll:Ts()})},[Re,Lr]);sf({droppableId:St,type:Qt,mode:wn,direction:fn,isDropDisabled:ln,isCombineEnabled:Rn,ignoreContainerClipping:un,getDroppableRef:bo});var Ks=ue.createElement(Le,{on:ve.placeholder,shouldAnimate:ve.shouldAnimatePlaceholder},function(Kc){var xh=Kc.onClose,Bd=Kc.data,pd=Kc.animate;return ue.createElement(Bg,{placeholder:Bd,onClose:xh,innerRef:va,animate:pd,contextId:be,onTransitionEnd:ps})}),Hu=On(function(){return{innerRef:Go,placeholder:Ks,droppableProps:{"data-rbd-droppable-id":St,"data-rbd-droppable-context-id":be}}},[be,St,Ks,Go]),Is=Ar?Ar.dragging.draggableId:null,ju=On(function(){return{droppableId:St,type:Qt,isUsingCloneFor:Is}},[St,Is,Qt]);function Ic(){if(!Ar)return null;var Kc=Ar.dragging,xh=Ar.render,Bd=ue.createElement(wu,{draggableId:Kc.draggableId,index:Kc.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(pd,lc){return xh(pd,lc,Kc)});return Wn.createPortal(Bd,Xr())}return ue.createElement(Sh.Provider,{value:ju},ct(Hu,bi),Ic())}var gs=function(ye,be){return ye===be.droppable.type},dl=function(ye,be){return be.draggables[ye.draggable.id]},Wu=function(){var ye={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},be=(0,Nt.Z)({},ye,{shouldAnimatePlaceholder:!1}),Re=qn(function(ct){return{draggableId:ct.id,type:ct.type,source:{index:ct.index,droppableId:ct.droppableId}}}),Xe=qn(function(ct,St,Qt,wn,fn,un){var ln=fn.descriptor.id,Rn=fn.descriptor.droppableId===ct;if(Rn){var bi=un?{render:un,dragging:Re(fn.descriptor)}:null,Ar={isDraggingOver:Qt,draggingOverWith:Qt?ln:null,draggingFromThisWith:ln,isUsingPlaceholder:!0};return{placeholder:fn.placeholder,shouldAnimatePlaceholder:!1,snapshot:Ar,useClone:bi}}if(!St)return be;if(!wn)return ye;var Lr={isDraggingOver:Qt,draggingOverWith:ln,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:fn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Lr,useClone:null}}),qe=function(St,Qt){var wn=Qt.droppableId,fn=Qt.type,un=!Qt.isDropDisabled,ln=Qt.renderClone;if(St.isDragging){var Rn=St.critical;if(!gs(fn,Rn))return be;var bi=dl(Rn,St.dimensions),Ar=Ol(St.impact)===wn;return Xe(wn,un,Ar,Ar,bi,ln)}if(St.phase==="DROP_ANIMATING"){var Lr=St.completed;if(!gs(fn,Lr.critical))return be;var Xr=dl(Lr.critical,St.dimensions);return Xe(wn,un,vr(Lr.result)===wn,Ol(Lr.impact)===wn,Xr,ln)}if(St.phase==="IDLE"&&St.completed&&!St.shouldFlush){var bo=St.completed;if(!gs(fn,bo.critical))return be;var Go=Ol(bo.impact)===wn,Wo=!!(bo.impact.at&&bo.impact.at.type==="COMBINE"),va=bo.critical.droppable.id===wn;return Go?Wo?ye:be:va?ye:be}return be};return qe},Zu={updateViewportMaxScroll:$i};function id(){return document.body||sn(!1),document.body}var Wl={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:id},Oc=mt(Wu,Zu,null,{context:Zc,pure:!0,areStatePropsEqual:or})(Fs);Oc.defaultProps=Wl},51581:function(qt,kn,Ee){"use strict";Object.defineProperty(kn,"__esModule",{value:!0});var ue=function(){function Ot(Ut,Te){for(var te=0;te<Te.length;te++){var ne=Te[te];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(Ut,ne.key,ne)}}return function(Ut,Te,te){return Te&&Ot(Ut.prototype,Te),te&&Ot(Ut,te),Ut}}(),et=Ee(59301),Lt=vt(et),Nt=Ee(12708),Bt=vt(Nt);function vt(Ot){return Ot&&Ot.__esModule?Ot:{default:Ot}}function Ue(Ot,Ut){var Te={};for(var te in Ot)Ut.indexOf(te)>=0||Object.prototype.hasOwnProperty.call(Ot,te)&&(Te[te]=Ot[te]);return Te}function bt(Ot,Ut){if(!(Ot instanceof Ut))throw new TypeError("Cannot call a class as a function")}function Ct(Ot,Ut){if(!Ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ut&&(typeof Ut=="object"||typeof Ut=="function")?Ut:Ot}function yt(Ot,Ut){if(typeof Ut!="function"&&Ut!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ut);Ot.prototype=Object.create(Ut&&Ut.prototype,{constructor:{value:Ot,enumerable:!1,writable:!0,configurable:!0}}),Ut&&(Object.setPrototypeOf?Object.setPrototypeOf(Ot,Ut):Ot.__proto__=Ut)}var Zt=function(Ot){yt(Ut,Ot);function Ut(Te){bt(this,Ut);var te=Ct(this,(Ut.__proto__||Object.getPrototypeOf(Ut)).call(this,Te));return te.scrollListener=te.scrollListener.bind(te),te.eventListenerOptions=te.eventListenerOptions.bind(te),te.mousewheelListener=te.mousewheelListener.bind(te),te}return ue(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,Se=ne.pageYOffset!==void 0?ne.pageYOffset:pe.scrollTop;this.props.isReverse?le=Se:le=this.calculateOffset(te,Se)}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,Se=ne.initialLoad,Ae=ne.isReverse,Me=ne.loader,ke=ne.loadMore,st=ne.pageStart,dt=ne.ref,xt=ne.threshold,ut=ne.useCapture,It=ne.useWindow,Et=ne.getScrollParent,Tt=Ue(ne,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Tt.ref=function(hn){te.scrollComponent=hn,dt&&dt(hn)};var Yt=[de];return pe&&(Me?Ae?Yt.unshift(Me):Yt.push(Me):this.defaultLoader&&(Ae?Yt.unshift(this.defaultLoader):Yt.push(this.defaultLoader))),Lt.default.createElement(le,Tt,Yt)}}]),Ut}(et.Component);Zt.propTypes={children:Bt.default.node.isRequired,element:Bt.default.node,hasMore:Bt.default.bool,initialLoad:Bt.default.bool,isReverse:Bt.default.bool,loader:Bt.default.node,loadMore:Bt.default.func.isRequired,pageStart:Bt.default.number,ref:Bt.default.func,getScrollParent:Bt.default.func,threshold:Bt.default.number,useCapture:Bt.default.bool,useWindow:Bt.default.bool},Zt.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},kn.default=Zt,qt.exports=kn.default},26724:function(qt,kn,Ee){qt.exports=Ee(51581)},38486:function(qt,kn){"use strict";var Ee;var ue=60103,et=60106,Lt=60107,Nt=60108,Bt=60114,vt=60109,Ue=60110,bt=60112,Ct=60113,yt=60120,Zt=60115,Ot=60116,Ut=60121,Te=60122,te=60117,ne=60129,de=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;ue=le("react.element"),et=le("react.portal"),Lt=le("react.fragment"),Nt=le("react.strict_mode"),Bt=le("react.profiler"),vt=le("react.provider"),Ue=le("react.context"),bt=le("react.forward_ref"),Ct=le("react.suspense"),yt=le("react.suspense_list"),Zt=le("react.memo"),Ot=le("react.lazy"),Ut=le("react.block"),Te=le("react.server.block"),te=le("react.fundamental"),ne=le("react.debug_trace_mode"),de=le("react.legacy_hidden")}function pe(Tt){if(typeof Tt=="object"&&Tt!==null){var Yt=Tt.$$typeof;switch(Yt){case ue:switch(Tt=Tt.type,Tt){case Lt:case Bt:case Nt:case Ct:case yt:return Tt;default:switch(Tt=Tt&&Tt.$$typeof,Tt){case Ue:case bt:case Ot:case Zt:case vt:return Tt;default:return Yt}}case et:return Yt}}}var Se=vt,Ae=ue,Me=bt,ke=Lt,st=Ot,dt=Zt,xt=et,ut=Bt,It=Nt,Et=Ct;Ee=Ue,Ee=Se,Ee=Ae,Ee=Me,Ee=ke,Ee=st,Ee=dt,Ee=xt,Ee=ut,Ee=It,Ee=Et,Ee=function(){return!1},Ee=function(){return!1},kn.isContextConsumer=function(Tt){return pe(Tt)===Ue},Ee=function(Tt){return pe(Tt)===vt},Ee=function(Tt){return typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===ue},Ee=function(Tt){return pe(Tt)===bt},Ee=function(Tt){return pe(Tt)===Lt},Ee=function(Tt){return pe(Tt)===Ot},Ee=function(Tt){return pe(Tt)===Zt},Ee=function(Tt){return pe(Tt)===et},Ee=function(Tt){return pe(Tt)===Bt},Ee=function(Tt){return pe(Tt)===Nt},Ee=function(Tt){return pe(Tt)===Ct},Ee=function(Tt){return typeof Tt=="string"||typeof Tt=="function"||Tt===Lt||Tt===Bt||Tt===ne||Tt===Nt||Tt===Ct||Tt===yt||Tt===de||typeof Tt=="object"&&Tt!==null&&(Tt.$$typeof===Ot||Tt.$$typeof===Zt||Tt.$$typeof===vt||Tt.$$typeof===Ue||Tt.$$typeof===bt||Tt.$$typeof===te||Tt.$$typeof===Ut||Tt[0]===Te)},Ee=pe},53410:function(qt,kn,Ee){"use strict";qt.exports=Ee(38486)},25510:function(qt){"use strict";qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyB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bi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpNmWJKSGe56Hnnr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aQI/ewuKHq0PRcHDCXc5bSLPXClvz33Xdf0SNQJ9St5JoXzvPArETuWcrOCzMcgIrdi0suHH6JAy2X7YIckKfkgocJCc7Lds1rDOwi97JitpRnCXUB2PcYASNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(qt,kn,Ee){"use strict";qt.exports=Ee.p+"static/AssistantCode3.a8740efb.jpeg"},13014:function(qt,kn,Ee){"use strict";qt.exports=Ee.p+"static/yunying_code.7d649890.jpg"},36723:function(qt){"use strict";qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEYCAYAAADmlsvOAAAgAElEQVR4Xuy9CZwc1XUu/t2q6p6efbSNtpGEhDaEQCALSQizCAzGbN7+YMfxktjx8/8l7714w7Fjv8hKHK/Yfs9xFsfJcxIn9gtObLxjVtuAACNjMGIXCAmExGikGc3ey73n/c6tut23q6t7umd6ZnpGXfyERtNV9966y9dn+c45AvWrPgM1OgOffpDmxSnzR2kn868f29r4fI0Osz6sKZwBMYV91buqz0BFM/C5+0evc+BcOTga+8junWKwoofrN8/KGagD1qxc1pn/UtffTO62ZamPkSP6btwW/+rMf6P6G1RjBuqAVY1ZrLdR9Rn40p7hpVJ4HyeIf/vI+bH7qt5BvcEZOQN1wJqRyzb7B33Tg5nfAakL6GTsT258rRia/W9cf8NyZqAOWOXMUv2eKZ2Bz9zTN8eLNX1SEP3iw+c3fHdKO693VtMzUAesml6eU3Nwn98zeo0jnCtIxT514wWi+9SchfpbR81AHbDq+6KmZuCTd/fPb21M/E9J+M1Hzo//U00Nrj6YaZ+BOmBN+xLUB2DPwBcfSL2bCBsdGvnUB3e0n6jPTn0G7BmoA1Z9P9TMDNz0QHKDEO5/U4Sf3bjd+37NDKw+kJqZgTpg1cxSzJyBfOFRanbTWKUymXbAG3E9vPyBLeLIRN7gc/cea3Xdto9COAMDh57+0u4bNqYm0l792dk5A3XAmp3rOilv9ckfUlPr/NS1JMSFAGJ5oroQx0jKe2ig4d5KaQi77iavOZF8ryvc9el0+osfvbDp0KS8QL3RGT8DdcCa8Us4RS9AJL70q/QfKcJ6Qc49ynF/NRhHb4dEYyaZOQ1CbhOOswagfkqqv7/x4sYD5Y2MxE33pd4MR1wmBP75Q9vjD5T3XP2uU3EG6oB1Kq76ON75c/cnz/CE+OO0yvzLR3c07Ylq4vMPjK5xhfs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QaJwMIXjTka9LYeh9Dvb4aAvSNYq4+Jm2goXxPp0K3dMM0KWHVMUvGGBrwmQ2IrhNUJWkPY0BC9f2qA8cMX0qfqEkAtDs9D+Bpqnq9bihv5nwrYS0ATWMMpS0a7RmrnqrkJp/QlMAWgGsP3UqCeg7ALwBQtWPs86Mi0pZwwj2EY2koSlhNnlVfClvlG/DpQsEX/z9BI6s2Gez0VMcDxLQ70ThONwM6bfL9gVakukrPsNvfEyWsNmBujKHhntFUKYXRHsa/JDL6hy3yI1DwGi3pRYDG8BkAlI6YxoqERKmJqh0dNudFhNdoaSECSlgtBLdW1cYYkhjPQtIORnsYX5TEAqmMu5Y6R7WAbO733KkLXAlISoy0SemJJMWEC8dUamou4PXUpg9DPWi1+VpjDLMK0bWCJMZIrMGLJEcy44vX6LGjZHNDCYipqUhIfNEJc4x2JXqJ+8bwV0SE32lJIQJKWCmclCRd8m1lJKpASqN6aRMaNwMC6Y2bA1Q5eT1ffN/N/mWBvxIJiGfogr9U17gLRyLiixIRyYikRELiZzzOUtCduSSrLH3XKGGlb06a3iNf9WR8fBIX/wYv/h/Y0ILvmHItuJbvgxd3PvkiQQYvkh/XUJDtKCBFewwBofAzkgXJhp/xffDibhpfNF4HL5IP39NuxL9MiMD3/Mvv+N5+Tauq1vSlk7oK/x9GzthFmz90vwAAAABJRU5ErkJggg=="},10609:function(qt){function kn(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}qt.exports=kn,qt.exports.__esModule=!0,qt.exports.default=qt.exports}}]);
|