(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.defaultValuene.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())),lete&&(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.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())),lete&&(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())),lete&&(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())),le0&&(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;bt4?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=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=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;He0?(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;ptnn/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+ne1&&(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=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;vtO?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;ytne 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/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK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U9q2pzAe7VHiVo4SgD8vH4gwS83z/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}){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/sQGDXxe5qmLuBW4dyFRtT3BrBwB5YArAOSB415pF9yuKe38TFHWRsMzPoKjvWVxbsGwca+7ag347d/3XADp0XnMxU/U/Kqp+rOD8D2AsBG4BQmzh3mSAqtJzI0xRPuaW8ZywjFeWjM+t3cJftFUe99sGdI5QRwTNA4SKyUyIwwQQkCBuy0tRwYCYYOwNZuGBn6Pa+5jItrEQXW/wbxLQsrdEMN8yToPCLmQCI4Rldq9FZErpIu21SIvp5TyCTKyi2qbWvaeLWs5UDYLhZ3Axo1HVZ1cdwqJdF2zb3PmbApSAzDPNyUzBXyF4T+kPN3YxZoMVCwN1lUBtJdBQDYQbgXgMMFIANwEuiBXZYGoa4AsAoTwgvxgoLgeKyoHcAvvvG/PBNBiYskFY1p1Nuvf+3xKwvw1Apwht2O7GaWCYCsH7bBRIAsY0gIo1wKolwIaVNoAEHFPBFQ0W08CZD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VXf7Z+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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TIgMS43MzcgNy41MDQgNC4xNiIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik0yOC4wODYgNi40ODhoLTIuNTA4Yy0xLjAwMy0xLjA3NC0zLjA4Ni0xLjgwMi01LjQ4Ni0xLjgwMi0yLjQwOCAwLTQuNDkxLjczNS01LjQ5NCAxLjgxLjczNi0xLjM2MyAzLjA0My0yLjU2NyA1Ljg3Ni0yLjkyIDMuNDQ2LS40MjYgNy4xMzcgMS4yMSA3LjYxMiAyLjkxMiIgZmlsbD0iIzE5NkVGRCIvPjwvZz48L3N2Zz4=",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=/]*>/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,`${mn.outerHTML}`};function dn(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("","gs"),""),kt=kt.replace(//g,""),kt=kt.replace(//g,""),kt=kt.replace(new RegExp(".*?<\\/video>","gs"),""),kt=kt.replace(new RegExp(".*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp(".*?<\\/style>","gs"),""),kt=kt.replace(new RegExp(".*?<\\/script>","gs"),""),kt}const Oe=kt=>kt.replace(/([\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}`)}),``}),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(">",">"))}),`
${Oe(Xn||"")}
`}let kt=Oe(Xn);kt=(0,Lt.ZP)(kt);const yn=(0,Lt.ez)();Xn.match(/\[TOC\]/)&&(kt=kt.replace("

[TOC]

",(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"),'$&');else{const Gn=document.createElement("span");Gn.innerHTML=pn.textContent.replace(new RegExp(yn,"gi"),'$&'),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=>//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{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""+On+""}),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{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),Lt=Ee(78241),Nt=Ee(61621),Bt=Ee(3113),vt=Ee(99064),Ue=Ee(43418),bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAIwCAYAAABawRXrAADVaUlEQVR42uydCXhcdbn/RRAEURGvC4LgAsJFUVQUQWRRQdkLBUoXREVRLgh6BUG40KJA7ZK0EAiZ2z+VpWy9rbGltHSBdCHJNG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7U0raOXJKjC/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;Li0){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(ZnOi.y?1:yr.xOi.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(``):((tn=Ls==null?void 0:Ls.type)==null?void 0:tn.indexOf("video"))>-1?Ir.replaceSelection(``):((Ss=Ls==null?void 0:Ls.type)==null?void 0:Ss.indexOf("pdf"))>-1?Ir.replaceSelection(`${Ls.name}`):to.includes(ll)?Ir.replaceSelection(`${Ls.name}`):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(`
`),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{du.id?Ln.replaceSelection(`![,](/api/attachments/${du.id}?type=${du.content_type})`):(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(`

${Vl||

`):Ln.replaceSelection(`${Vl||`):((Xa=is==null?void 0:is.type)==null?void 0:Xa.indexOf("video"))>-1?Ln.replaceSelection(``):((la=is==null?void 0:is.type)==null?void 0:la.indexOf("pdf"))>-1?Ln.replaceSelection(`${is.name}`):to.includes(kl)?Ln.replaceSelection(`${is.name}`):Ln.replaceSelection(`[${is.name}](${fl})`),Ln.focus();case lo:const{row:Nl,col:ga,align:gl}=Mr;let Vc=` `;for(let du=0;du{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&&giIr||Ir>Ba-20&&hout 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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].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{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{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-.5Me(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{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+=`
${He[Jn==null?void 0:Jn.componentIndex]}
${Jn.value>0?Jn.value.toFixed(5):Jn.value==0?0:"--"} ${Ie==0?"Cores":"MiB"}
`}),`
${(Bi=Dn[0])==null?void 0:Bi.name}
${On}
`}},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-.5st(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&&XtHe(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&&qtsetOpenTime(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{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;Mskl({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:"addIcon___aVZVl"},Gn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAABkCAYAAABKHuhiAAAgAElEQVR4Xu19CZRdVZX2d95cr+aqzAkkISGBkBCmZhCQkADCryjaJrYo+IvdKOAEor89rL/Ir2LLIHbaCWyRtqUl0sumW0UQbVvGJqjMYUqKzEmlUhlreuP513fu2e+dunVfvXr1XqDUOmu9dd+998z7O3vvs8+5ZyvUKnTo0IoFmNMWxbGxKI5KhJFM5XAwpbGhK4WXH36/2lqroibyqX0PqFpkuex7etrUBlyQjGJKTiG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rG+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"),'$&')}}))),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{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:Fndr($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.lengthsl(!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{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=["
    "];const Ct=new(et()).Renderer,yt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Zt(){Ue.length=0,bt=["
      "]}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("
    • "+Tt.text+""),ut++;var Yt=[];return ut=Ut(xt,ut,Tt.level,Yt),Yt.length>0&&(Et.push("
        "),Yt.forEach(function(hn){Et.push(hn)}),Et.push("
      ")),Et.push("
    • "),ut=Ut(xt,ut,It,Et),ut}function Te(){return Ut(Ue,0,0,bt),bt.push("
    "),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?`

    ${xt}

    `:`
    ${It?xt:(0,Lt.escape)(xt,!0)}
    `:'
    '+(It?xt:(0,Lt.escape)(xt,!0))+"
    "},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}),"'+xt+""},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/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhC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OAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/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{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{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{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;_t1){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":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);qnzt===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;Sn1&&(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=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;Sl2&&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;NaGi(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)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{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{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{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{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{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{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{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;Bi3&&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);xo1){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"&&Bi3&&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)),Jn0;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=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=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);yntypeof 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{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=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;pe0;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=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'"]=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;UtTe.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?` `:"")+"",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?"/":""&&(Ae+=">"),Ot[ne]=Ae}if(Ct.replaceSelections(Ot),Zt=Ct.listSelections(),!te)for(var ne=0;ne=0&&yt[de]==Zt;de--)++ne;Ot=te.to;for(var de=1;de=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)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=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"\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:aefe?-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;Leae||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;meae)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-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;me0}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.posae},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.lastColumnPos0?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=ie.first&&aefe?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;hethis.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;KnNn&&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(;Xiie.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&>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.posie.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.highlightFrontierfe;he--){var me=ki(ie,he).stateAfter;if(me&&(!(me instanceof Lo)||he+me.lookAhead=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=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.from0&&Je)for(var vr=0;vr0)){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;feae)&&(!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=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;meae.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;megt&&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;jeYe||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=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;Le2&&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;hefe)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=fe.lineN&&aeae)&&(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=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+Je0&&(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=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=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=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=XiRt)&&($t=Nn,wt=Rt)}}return $t||($t=me[me.length-1]),$t.fromgt&&($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;je0&&(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;heae)&&(me.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=me.viewTo)an&&Mr(ie.doc,ae)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=me.lineN&&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;Ye0){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.viewFromfe&&(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=ie.display.viewTo||Je.to().line0?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.005||$t<-.005)&&(Br(me.line,je),hr(me.line),me.rest))for(var wt=0;wtie.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=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.topJe-he;if(ae.topme+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.leftNn+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.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=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&&Knfe)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=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.viewFromje&&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-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;jeje.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=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;Le0: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;he1&&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;Je1&&!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-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=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=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=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;heie.lastLine())){if(ae.from.lineLe&&(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){fe1||!(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;ae50){for(var je=me.lines.length%25+25,Je=je;Je10);ie.parent.maybeSpill()}},iterN:function(ie,ae,fe){for(var he=0;heie.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;me0||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=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.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=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;heie)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.lineae&&(ae=ie.from),ie.to!=null&&ie.to-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=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=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&&ii0==(Wr.level!=1),ea=Er?or.begin:Je(or.end,-1);if(Wr.from<=ea&&ea0?$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.line0)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;heie&&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.lineNn.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=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;Je20*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;Zije,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=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-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;heLe&&(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;wt0&&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]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;gt0&&$t(Le.charAt(je-1));)--je;for(;Je.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+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&&zh(ae,he)||{node:Je[0].measure.map[2],offset:0},gt=me.lineie.firstLine()&&(he=Mt(he.line-1,ki(ie.doc,he.line-1).length)),me.ch==ki(ie.doc,me.line).text.length&&me.lineae.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);Nnhe.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=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);je1e3||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=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=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:"",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-1&&Nt.substring(Ue+1,Nt.length);if(bt)return ue.findModeByExtension(bt)},ue.findModeByName=function(Nt){Nt=Nt.toLowerCase();for(var Bt=0;Bt0?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&&/$/,blockCommentStart:"",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 yx&&(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=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;bx;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-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&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.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++,999999999a||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 0a&&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=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=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=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=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=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 0y?270:0;if(y===0)return 0a?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?0y?270:0:y===0?0a?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&&0a&&(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&&-.5a&&-5e-8=b&&(b=1e-6),ace-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=ce)return we;if((oe>ce?oe-ce:ce-oe)<(se>ge?se-ge:ge-se)){if(ya)return we}else if(aa)return we;0xe&&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)?(yy?(ee.h(a,y),!1):(ee.h(a,z),!0)):Dt.$(y,E)?(aa?(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.000005y?(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)?(aa?(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(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);xese},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=y):z===re?(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,0z&&(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-5x,z=0>E;if(ase&&(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,0ce)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,za?"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=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=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:0ee&&(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=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(zre)return 0}else if(yz)return 0}else if(bee)return 0}else if(seb)return 0;return 0a?a=0:1=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=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=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=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y=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;gea?0:1a?"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;ba&&(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=we?ee=Math.PI:1<=we&&(ee=0),!oe&&0ee&&(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),360a&&(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&&0y&&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;Ea.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=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&&!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.historyIndexb||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;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.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&&(0ee&&(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,oex){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&&0y.firstPickIndex+1&&x=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.widthx?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&&0y-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.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.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(0z?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){eea&&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,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.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){0a?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)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="",0x.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;eeE&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E=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;reE)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){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++rea||1=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=0Math.abs(ee.deltaY)?-oe:-se):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0Math.abs(ee.wheelDeltaY)?-oe:-se):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0re||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){30Fe&&(this.position=Qe.h(-(y.scrollWidth-this.Aa)+Ve-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(reNe&&(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;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===gd?(y=oe>re?(ee-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.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,xy.left?re=y.left:rey.top?oe=y.top:oey;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;bAt&&(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+1se+1&&(ri=Math.max((rt-se)*Ei+a.Aa,ri)),At+ee+1ce+1&&(ri=Math.max((Qe-ce)*Ei+a.ya,ri)),Kt+re+1se+1&&(ee=Math.max((rt-se)*Ei+a.Aa,ee)),At+1ce+1&&(re=Math.max((Qe-ce)*Ei+ee,re)),Kt+1se+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+1ce+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;EE&&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;zE&&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;Ege.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)),xa.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;oece||(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&&!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=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.xE.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.yE.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;ftQe?(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||1a&&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= 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;bthis.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 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]),-1ee&&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&&eere),!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;zE.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;Ea&&(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.timestampy.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,ay.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,ay.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,ay.maxScale?!1:y.allowZoom)},Ye.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Ye.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.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&&(0a&&(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.widthre.height&&oe.heighta.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;eeb)&&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:1a||1=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;ba&&(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-6E&&(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=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;yce.offset?1:-1}),b=0;bx?(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)||1a)&&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&&reE&&(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),255Ya.j&&(Ya.j=0),Ya.u=Math.round(Ya.u),255Ya.u&&(Ya.u=0),Ya.o=Math.round(Ya.o),255Ya.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;oezi&&(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=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=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=a.rowCount);qp++)Mn=a.Fb(nl.row+qp),bg+=Mn.total||0;if(bg=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(;0kh&&(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=a.columnCount);tg++)Mn=a.Eb(nl.column+tg),hp+=Mn.total||0;if(hp=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(;0Bv&&(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=a.rowCount);Mn++){var jr=a.Fb(rt+Mn);jr.oa!==0&&(Ve.height+=jr.total)}for(Mn=1;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=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;Qeat)){Ve=Iv(Ve.figure);for(var ft=0;ftat&&rt.push(At))}}}}for(Fe=a.O.s,Ne=Fe.length,Qe=0;Qeb*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&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bge)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=ftFr+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&&(45Ni||225Ni)&&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=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=rert+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;KtFr&&(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;vuKf)){for(var Al=0;AlKf&&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;Gpzm*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(lda.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-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];Khlp&&QcBf&&.4995Bf?0Bf||.9995cp){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;Fcdh;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;qfJh||225Jh)&&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=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,se=a.graduatedMarks,ce=oe.length,ge=0;gea.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;rtee.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;cexe)){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;EE&&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;xx||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;Exe.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=0Qe.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=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;ba&&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;ba||this.type!==ei.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)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;Ex)){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;ya&&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;ba)&&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;za&&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;bb)){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;Vege&&(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;xeNe.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(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)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;EMath.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))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(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;Nex?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||Dt.$(oe.y,a))&&(oe.yy||Dt.$(oe.x,y))&&(oe.x=a&&E<=y):(a=E&&x<=a)}Be.tx=function(a,y,x){function E(Qe,Ve){for(var rt=Qe.length,at=0;atb)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=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.xse&&a.yb&&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;yb)return!1;for(re=z.segments.s,oe=re.length,se=0;seb)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= 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;ba?a=0:1a?a=0:1(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;xeb&&(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=this.Qb.length))){for(this.l|=16777216,se=this.Qb[oe],y=Math.max(1,a-y);oh(se)>y&&1a.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);0x&&1x;){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);0a.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=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:1a?a=0:1=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=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&&4rt*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;cea)&&(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())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=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;Ea&&(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(1a&&(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)}(2b&&(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),90a&&(a-=180);break;case pm:a=Dt.bp(y+90),90a&&(a-=180);break;case mm:a=Dt.bp(y-90),90a&&(a-=180);break;case O0:if(a=Dt.bp(y),45a||225a)return 0;90a&&(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;Ex/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(0E/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(0Math.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;eese&&(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=0oe?-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=0ee&&(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&&3Math.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=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.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(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&&4xe.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;Eoe?-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;aoe?-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;ay?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.ya.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.ya.y?(se.x=a.xoe.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.xoe.top&&a.yre.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.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.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.ya.y&&oe.lefta.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.yoe.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.yre.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.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=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.ya.y||E===180&&x.xa.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.xa.x?(se.y=a.yoe.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.yoe.left&&a.xre.right)&&(E===270&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.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.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.xa.x&&oe.top=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.xoe.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.xre.right)&&(E===90&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.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=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=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&&oethis.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;EIg&&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;eethis.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=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;oeQe?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=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-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;gez.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)),0ge-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.yce-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;reee.x&&ce.x>=se.x||se.xee.y&&ce.y>=se.y||se.yee&&Math.min(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.min(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;rea&&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=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;bE&&(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;Ethis.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.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=Ig&&(x[E]=Sy)}ym.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(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(!(yee||xoe)){var se=y|0,ce=x|0,ge=a.ac[se][ce];if(ge>=Ig&&ge=a.ac[se][ce]);)a.ac[se][ce]=ge,ge+=1,b?ce+=E:se+=E;if(se=b?ce:se,b)if(0se;x+=E)hf(a,y,x,1,!b,z,ee,re,oe),hf(a,y,x,-1,!b,z,ee,re,oe);else if(0se;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&&yre&&xz&&yre&&x=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++:yee?ee++:seb)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?xez&&(ce=270,xe--):E===90?geb&&(ce=180,ge--):E===180?xez&&(ce=270,xe--):geb&&(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=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 90180+a&&x<=360-a?270:0;case 13:return 180a&&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,180xe&&(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;zMath.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;zy.Nc?1:a.angley.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=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,1y?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 "+(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;gez-1||0ee)&&(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=se&&(oe-=se),se=at=0,At=Math.max(this.cellSize.height,1),ft=z=0,Kt=!0,Qe=Ge.alloc(),Ei=0;Eice-1||0oe){for(E.push(new tn(0,Kt?rt-z:rt,oe+ge,ft+z+xe)),zi=0;zise&&(z.width+=z.x-se,z.x=se);tn.free(ee)}for(re=z=ee=b=0;rey?1:0}zt.Object.defineProperties(Lu.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ge)){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=E)return"[]";var b=new cn;b.add("["),x&&1E)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;xy&&(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"+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()),0E.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;zb||(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;xE)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=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)||360xe)&&(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;wexe&&(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;eese?(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;oex){for(z=E+(b===Ac?z:-z);0>z;)z+=360;z%=360,180=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++,!(23Math.abs(we)?Math.abs(oe-z)<(ce[0].width+ce[ce.length-1].width)/2&&(ee=0):ee=0Math.abs(xe)?0:xe,oe=Math.abs(z)>Math.abs(ge)?0ge:0a.mj?a.lc-ee/(2*Math.PI):5>ce.length&&10=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++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0re){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;xb&&(b=re,z=ee)}else for(ee=0;eeb&&(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;xy[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;xy[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;Fex.indexOf(Kt)||Atx.indexOf(Kt)||At=Ne?At+1:At)),Ve+=At=Ne&&At++,at>=Ne&&at++,At>at&&(ft=at,at=At,At=ft),at-At<(x.length+2)/2==(Atwe||we===ce||(Fe=we>ce?we-ce:ce-we,ge+=weee-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=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(0this.Pl||Math.abs(a)a&&0re?(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+1this.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++,2a.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=ee))){for(var se=re=0,ce=oe.count-ee;cewe&&(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=ge.Vd?oe++:(re=!0,se++,ee+=Math.atan2(y.centerY-ge.centerY,y.centerX-ge.centerX))}if(oe!==0){for(0>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(;sece.y&&a[xe].x-ce.xce.x&&a[xe].y-ce.yy+z?(x=E+b-ee,a=a-y-z,Dt.sqrt(x*x+a*a)):a+xee+re?a>y+z?(x=E-ee-re,a=a-y-z,Dt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=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;eez-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;zx||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):oewe?(se=Math.abs(xe.bounds.bottom-ee.bounds.y),se=(1+se)*re):oege?(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;ba.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&&0Ne&&0Ne&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]ee)for(var ce=ee+1;ceoe;ce--)ge=E[ce],ge.near===se&&ge.Dj===se.Dj||re++;var xe;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,se=0;seNe||ge===Ne&&we>Fe)&&re++,Qege||Ne===ge&&Fe>we)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,se=0;seNe||ge===Ne&&ce>Qe)&&re++,Fege||Ne===ge&&Qe>ce)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe=x){for(re=E[ee].destinationEdgesArrayAccess,at=E[oe].destinationEdgesArrayAccess,se=0;se=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=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>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||zy.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.LlE){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;xee&&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;wez)&&!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;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=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())=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;xz+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++;rtz+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>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(0x)for(E=0;EE-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=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;xz?kd(a,b):eey)for(x=a.Ra;0<=x;x--)for(b=zc(a),z=rv(a),E=z+1;zz?kd(a,b):eex)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;zx)for(ee=a.Ra;0x)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;Ece)&&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=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++,0a&&Pt("Could not determine previous vertex in layer"),y[x][a-1]}ba.prototype.u=function(a){for(var y=[],x=0;xee;ee++)if(y[ee]){var re=i5(this,y[ee],E,b,ee);reee;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,reee&&(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=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.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?(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(0z.y&&(ce=se.y>z.y?0:ee.xz.x&&(ce=se.x>z.x?0:ee.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Be.Ux=function(a,y){return a instanceof yg&&y instanceof yg&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Be.Js=function(a,y){return a instanceof yg&&y instanceof yg&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Be.B=function(a,y){return a-=y,-1a},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=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(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,0y.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;bb?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;ftge&&(zivu&&(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 0ge&&(Nivu&&(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(0se&&(se=0),135Ne&&(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),135rt&&(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),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[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].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[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].xE?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;xexe&&(Ktxe&&(Eige&&(ge=0),135Ve&&(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;wese&&(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;wege&&(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;yy&&(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;Ege.length||we===null||2>we.length))for(b=x=0;xse&&z.yz.y&&sey.length||x===null||2>x.length)E=null;else{for(ce=Xc(a,y.length+x.length),E=z=oe=0;zoe;)se=x[z++],ce[E++].h(se.x+b,se.y);for(x=Xc(a,E),oe=0;oege.length||z===null||2>z.length)b=null;else{for(ce=Xc(a,ge.length+z.length),b=se=x=0;xz;)oe=ge[x++],ce[b++].h(oe.x,oe.y);for(z=Xc(a,b),x=0;xge.length||we===null||2>we.length))for(b=x=0;xoe&&z.xz.x&&oey.length||x===null||2>x.length)E=null;else{for(ce=Xc(a,y.length+x.length),E=z=oe=0;zoe;)se=x[z++],ce[E++].h(se.x,se.y+b);for(x=Xc(a,E),oe=0;oege.length||z===null||2>z.length)b=null;else{for(ce=Xc(a,ge.length+z.length),b=se=x=0;xz;)oe=ge[x++],ce[b++].h(oe.x,oe.y);for(z=Xc(a,b),x=0;x=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&&(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;xwe.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.ywe.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.xwe.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.ywe.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.x0&&Ke[Ke.length-1])||kt[0]!==6&&kt[0]!==2)){tt=0;continue}if(kt[0]===3&&(!Ke||kt[1]>Ke[0]&&kt[1]',"select"),this.addActionButton(Ie,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ie,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ie,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ie,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ie,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ie,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ie,'',"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='',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,'',"render"),this.addActionButton(Ke,'',"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;Pe0&&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||'')||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=` `),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||'')||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||'')||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=` `;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='',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='',Ce}(ut),Et=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'')||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='',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;Wt0&&(mt=!0,WtHe&&(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='',Ce}(Ae),hn=function(Oe){function Ce(Pe,Ie,Ke){var De=Oe.call(this,Pe,Ke||'')||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=` `,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=` `,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='',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='',Ce}(Me),Bn=function(Oe){function Ce(Pe,Ie,Ke,De){var tt=Oe.call(this,Pe,De||'')||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='',Ce}(ui),nt='',ze='',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.width/2&&this.tipPosition.y>=this.height/2?De.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='',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='',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='',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='',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;Iethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ce:this.editorCanvas.clientWidth,Ie=Pe',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-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),Ke1&&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=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");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;beve.bottom,wn=Re.leftve.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 ctwn?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;be1?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 wnye.left&&ve.topye.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?wnQt});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:unXr[St.start]+Go&&unXr[St.start]-wn+Go&&fnXr[St.start]+wn+Go&&unXr[St.start]+Go&&fn=_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(qeye.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.majorye.minor?!0:be.minor=ye.patch},xn=function(ve,ye){var be=lt(ve),Re=lt(ye);ot(be,Re)},wi=` We expect a html5 doctype: 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=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