(self.webpackChunk=self.webpackChunk||[]).push([[156],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Wn,ai){"use strict";ai.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},22982:function(Wn,ai){"use strict";ai.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},19493:function(Wn,ai){"use strict";ai.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},63720:function(){"use strict";function Wn(bt,nt,et,ct){et===void 0&&(et=0),ct===void 0&&(ct=1/0),this._name=bt,this._defaultValue=nt,this._minimum=et,this._maximum=ct}Object.defineProperty(Wn.prototype,"name",{get:function(){return this._name},set:function(bt){if(typeof bt!="string"||bt==="")throw new Error("Shape name must be a valid string.");this._name=bt}}),Object.defineProperty(Wn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(bt){if(typeof bt!="number"||isNaN(bt))throw new Error("The default value must be a real number, not: "+bt);this._defaultValue=bt}}),Object.defineProperty(Wn.prototype,"minimum",{get:function(){return this._minimum},set:function(bt){if(typeof bt!="number"||isNaN(bt))throw new Error("Minimum must be a real number, not: "+bt);this._minimum=bt}}),Object.defineProperty(Wn.prototype,"maximum",{get:function(){return this._maximum},set:function(bt){if(typeof bt!="number"||isNaN(bt))throw new Error("Maximum must be a real number, not: "+bt);this._maximum=bt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(bt,nt){var et=go.Shape._FigureParameters[bt];return et?et[nt]:null},go.Shape.setFigureParameter=function(bt,nt,et){if(!(et instanceof Wn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+et);if(et.defaultValueet.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+et.defaultValue);var ct=go.Shape._FigureParameters[bt];ct||(ct=[],go.Shape._FigureParameters[bt]=ct),ct[nt]=et};var ai=[];function Ot(bt,nt){var et=ai.pop();return et===void 0?new go.Point(bt,nt):(et.x=bt,et.y=nt,et)}function Tt(){var bt=ai.pop();return bt===void 0?new go.Point:bt}function ee(bt){ai.push(bt)}function xe(bt,nt,et,ct,lt,gt,mt,St,kt){kt||(kt=new go.Point);var zt=bt-et,Gt=lt-mt,$t=NaN,Wt=NaN;if(zt===0)if(Gt===0)bt===et&&($t=bt,Wt=nt);else{var Jt=(gt-St)/Gt,de=gt-Jt*lt;$t=bt,Wt=Jt*$t+de}else if(Gt===0){var le=(nt-ct)/zt,De=nt-le*bt;$t=lt,Wt=le*$t+De}else{var le=(nt-ct)/zt,Jt=(gt-St)/Gt,De=nt-le*bt,de=gt-Jt*lt;$t=(de-De)/(le-Jt),Wt=le*$t+De}return kt.x=$t,kt.y=Wt,kt}function me(bt,nt,et,ct,lt,gt,mt,St,kt,zt,Gt,$t,Wt,Jt){var de=1-kt,le=kt,De=bt*de+et*le,Re=nt*de+ct*le,Ke=et*de+lt*le,kn=ct*de+gt*le,qe=lt*de+mt*le,on=gt*de+St*le,gn=De*de+Ke*le,ge=Re*de+kn*le,Xt=Ke*de+qe*le,Ve=kn*de+on*le,An=gn*de+Xt*le,Bn=ge*de+Ve*le;zt.x=De,zt.y=Re,Gt.x=gn,Gt.y=ge,$t.x=An,$t.y=Bn,Wt.x=Xt,Wt.y=Ve,Jt.x=qe,Jt.y=on}var ye=new go.Spot(.156,.156),Ht=new go.Spot(.844,.844),ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Wn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=5),ct=Math.min(ct,nt/3),ct=Math.min(ct,et/3);var lt=ct*ae,gt=new go.Geometry().add(new go.PathFigure(ct,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,nt-lt,0,nt,lt)).add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)).add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,et-lt,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,ct,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,lt,et,0,et-lt)).add(new go.PathSegment(go.PathSegment.Line,0,ct)).add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()));return lt>1&&(gt.spot1=new go.Spot(0,0,lt,lt),gt.spot2=new go.Spot(1,1,-lt,-lt)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=et/2,ct.endX=nt,ct.endY=et/2,ct}),go.Shape.defineFigureGenerator("LineV",function(bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=nt/2,ct.startY=0,ct.endX=nt/2,ct.endY=et,ct}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et/2,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("XLine",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LineRight",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.25*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)))}),go.Shape.defineFigureGenerator("LineDown",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.25*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)))}),go.Shape.defineFigureGenerator("LineLeft",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.75*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)))}),go.Shape.defineFigureGenerator("LineUp",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.75*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(bt,nt,et){var ct=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ct*nt,(1-ct)*et,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Move,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Move,0,et/2)).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("CircleLine",function(bt,nt,et){var ct=nt/2,lt=new go.Geometry().add(new go.PathFigure(nt,nt/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ct,ct,ct,ct).close()));return lt.spot1=ye,lt.spot2=Ht,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=0,ct.endX=nt,ct.endY=et,ct}),go.Shape.defineFigureGenerator("Line2",function(bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=nt,ct.startY=0,ct.endX=0,ct.endY=et,ct}),go.Shape.defineFigureGenerator("Curve1",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,ae*nt,0,nt,(1-ae)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,ae*et,(1-ae)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,ae*et,ae*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-ae)*nt,0,0,(1-ae)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Wn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)?ct=.1:ct<-1?ct=-1:ct>1&&(ct=1);var lt=Math.abs(ct)*nt;if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),ltnt&&(ct=nt);var lt=Math.abs(ct);if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt.5&&(ct=.5);var lt=Math.abs(ct)*nt;if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),ltnt&&(ct=nt/2);var lt=Math.abs(ct);if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),ltnt&&(ct=nt/2);var lt=Math.abs(ct);if(ct===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ct>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())):gt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())),lt0&&(mt.add(new go.PathSegment(go.PathSegment.Move,nt/2+St,nt/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,St,St).close())),gt.spot1=ye,gt.spot2=Ht,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.08034461*nt,.1944299*et,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*nt,.05349299*et,-.09239631*nt,.07836421*et,.1406031*nt,-.0542823*et)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*nt,.074219*et,.2450511*nt,-.00697547*et,.3776197*nt,-.01112067*et)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*nt,.07004196*et,.4539471*nt,0,.6066018*nt,-.02526587*et)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*nt,.08370865*et,.6914277*nt,-.01904177*et,.8921095*nt,-.01220843*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*nt,.3194596*et,1.036446*nt,.04105738*et,1.020377*nt,.3022052*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*nt,.562044*et,1.04448*nt,.360238*et,.992256*nt,.5219009*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*nt,.8217117*et,1.032337*nt,.5771781*et,1.018411*nt,.8120651*et)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*nt,.9156953*et,1.028411*nt,.9571472*et,.8556702*nt,1.052487*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*nt,.9310455*et,.7431877*nt,1.009325*et,.5624123*nt,1.021761*et)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*nt,.9344623*et,.4820677*nt,1.031761*et,.3030112*nt,1.002796*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.870098*et,.2329994*nt,1.01518*et,.03213784*nt,1.01518*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*nt,.6545475*et,-.02812061*nt,.9032597*et,-.01205169*nt,.6835638*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*nt,.4265613*et,-.01812061*nt,.6089503*et,-.00606892*nt,.4555777*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.1944299*et,-.01606892*nt,.3892545*et,-.01205169*nt,.1944299*et))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(bt,nt,et){var ct=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ct*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,nt,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Line,0,ct*et).close())).setSpots(ct/2,ct/2,1-ct/2,1-ct/2)}),go.Shape.setFigureParameter("Pie",0,new Wn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Wn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(bt,nt,et){var ct=bt?bt.parameter1:NaN,lt=bt?bt.parameter2:NaN;isNaN(ct)&&(ct=0),isNaN(lt)&&(lt=315);var gt=ct%360;gt<0&&(gt+=360);var mt=lt%360,St=Math.min(nt,et)/2;return new go.Geometry().add(new go.PathFigure(St,St).add(new go.PathSegment(go.PathSegment.Arc,gt,mt,St,St,St,St).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(bt,nt,et){var ct=ae/Math.SQRT2*.5,lt=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,gt*et,nt,(1-ct)*et,(lt+ct)*nt,(gt+ct)*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Wn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30);var lt=Math.min(ct,nt)/2,gt=nt/2,mt=et/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Wn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=Math.min(ct,nt)/2,gt=nt/2,mt=et/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Wn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;if((isNaN(ct)||ct<0)&&(ct=30),nt===0||et===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=nt,lt.endY=et,lt}else{var gt=nt/2,mt=et/2,St=Math.atan2(et,nt),kt=ct-Math.min(Math.cos(St)*ct/2,gt),zt=ct-Math.min(Math.sin(St)*ct/2,mt),lt=new go.Geometry,Gt=new go.PathFigure(kt,0,!0);return lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,gt,.2*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt-kt,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt,zt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt,et-zt)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt-kt,et)),Gt.add(new go.PathSegment(go.PathSegment.Line,gt,.8*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,kt,et)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,et-zt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,zt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Wn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=new go.Geometry,gt=new go.PathFigure(.1*nt,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new Wn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*nt,ct*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*nt,(1-ct)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ct)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*nt,(1-ct)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*nt,ct*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ct*et).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Wn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.5);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Math.abs(1-ct)*nt,.25*et,Math.abs(1-ct)*nt,.75*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*nt,.75*et,ct*nt,.25*et).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,ae*nt,0,nt,(.5-ae/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+ae/2)*et,ae*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,0,nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*nt,.75*et,.5*nt,.25*et).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,.1*nt,.8*et,0,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,0,0,.45*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.55*nt,0,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.5*et,.9*nt,.8*et).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*nt,.01*et)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.6*nt,.2*et,nt,.25*et)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.7*et,nt,.8*et,.6*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,.5*nt,.75*et,.55*nt,.95*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.7*et,.45*nt,.95*et,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.4*nt,.8*et,0,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.49*nt,.01*et,0,.25*et,.4*nt,.2*et).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.4*nt,.6*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*nt,et,.5*nt,.75*et,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.6*et,.55*nt,.95*et,.5*nt,.75*et));var gt=.2,mt=.3,St=0,kt=gt*ae;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+kt+St)*et,(.5-kt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+kt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+kt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-kt+St)*et,(.5+kt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-kt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt+.05)*nt,(.5-kt+St-.02)*et)),gt=.2,mt=0,St=-.3,kt=gt*ae,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+kt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+kt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-kt+St)*et,(.5+kt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-kt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-kt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-kt+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+kt+St)*et,(.5-kt+mt)*nt,(.5+gt+St)*et)),gt=.2,mt=-.3,St=0,kt=gt*ae,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt-.05)*nt,(.5-kt+St-.02)*et,(.5+kt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-kt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-kt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+kt+St)*et,(.5-kt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+kt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+kt+St)*et).close()),ct.setSpots(.06,.33,.93,.68),ct}),go.Shape.defineFigureGenerator("YinYang",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.5,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*.5,nt*.5,nt*.5,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,nt*.5,nt*.75,nt*.25,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,nt*.5,nt*.25,nt*.25,nt*.25));var gt=.1,mt=.5,St=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(mt+gt)*nt,St*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*mt,et*St,gt*nt,gt*nt).close()),lt=new go.PathFigure(nt*.5,0,!1),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*.5,nt*.5,nt*.5,nt*.5)),St=.75,lt=new go.PathFigure((mt+gt)*nt,St*et,!0),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*mt,et*St,gt*nt,gt*nt).close()),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Peace",function(bt,nt,et){var ct=.8535533905932737,lt=.5*nt,gt=.5*et;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,gt,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,lt,et)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,ct*et)))}),go.Shape.defineFigureGenerator("NotAllowed",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=.5,mt=.5,St=.5,kt=new go.PathFigure(mt*nt,(St-gt)*et);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),gt=.4,lt=ae*.4;var zt=Tt(),Gt=Tt(),$t=Tt(),Wt=Tt();me(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.42,zt,Gt,$t,Wt,Wt);var Jt=Tt(),de=Tt(),le=Tt();me(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.58,Wt,Wt,le,Jt,de);var De=Tt(),Re=Tt(),Ke=Tt();me(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.42,De,Re,Ke,Wt,Wt);var kn=Tt(),qe=Tt(),on=Tt();return me(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.58,Wt,Wt,on,kn,qe),kt.add(new go.PathSegment(go.PathSegment.Move,on.x*nt,on.y*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,kn.x*nt,kn.y*et,qe.x*nt,qe.y*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,$t.x*nt,$t.y*et,zt.x*nt,zt.y*et,Gt.x*nt,Gt.y*et)),kt.add(new go.PathSegment(go.PathSegment.Line,on.x*nt,on.y*et).close()),kt.add(new go.PathSegment(go.PathSegment.Move,Ke.x*nt,Ke.y*et)),kt.add(new go.PathSegment(go.PathSegment.Line,le.x*nt,le.y*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Jt.x*nt,Jt.y*et,de.x*nt,de.y*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*nt,Ke.y*et,De.x*nt,De.y*et,Re.x*nt,Re.y*et).close()),ee(zt),ee(Gt),ee($t),ee(Wt),ee(Jt),ee(de),ee(le),ee(De),ee(Re),ee(Ke),ee(kn),ee(qe),ee(on),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Fragile",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.29*nt,.33*et)).add(new go.PathSegment(go.PathSegment.Line,.35*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.5*et,nt,.25*et,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.5*et,0,.25*et).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Wn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30),ct>nt&&(ct=nt);var lt=(nt-ct)/2,gt=lt+ct;return new go.Geometry().add(new go.PathFigure(gt,.5*et).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.55*et).add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.55*et).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.4,gt=.4,mt=.5,St=.5,kt=Tt(),zt=Tt(),Gt=Tt(),$t=Tt(),Wt=new go.PathFigure((mt-gt)*nt,St*et,!1);ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),me(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.44,Gt,$t,zt,kt,kt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,Gt.x*nt,Gt.y*et,$t.x*nt,$t.y*et));var Jt=Ot(zt.x,zt.y);me(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.56,kt,kt,zt,Gt,$t);var de=Ot(zt.x,zt.y);Wt.add(new go.PathSegment(go.PathSegment.Line,(Jt.x*.1+.95*.9)*nt,Jt.y*.1*et)),Wt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,Jt.y*.1*et)),Wt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),Wt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),Wt.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.9)*nt,.15*et)),Wt.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.9)*nt,(de.y*.1+.05*.9)*et)),Wt.add(new go.PathSegment(go.PathSegment.Line,de.x*nt,de.y*et)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Gt.x*nt,Gt.y*et,$t.x*nt,$t.y*et)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),gt=.35,lt=ae*.35;var le=new go.PathFigure(mt*nt,(St-gt)*et,!1);ct.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),le.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),le.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),le.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et));var De=new go.PathFigure((mt-gt)*nt,St*et,!1);return ct.add(De),ee(kt),ee(zt),ee(Gt),ee($t),ee(Jt),ee(de),ct.spot1=new go.Spot(.202,.257),ct.spot2=new go.Spot(.792,.739),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("GenderFemale",function(bt,nt,et){var ct=new go.Geometry,lt=.375,gt=0,mt=-.125,St=lt*ae,kt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+St+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+St+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-St+mt)*et,(.5+St+gt)*nt,(.5-lt+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+St+mt)*et,(.5-St+gt)*nt,(.5+lt+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),kt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),kt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,gt=0,mt=-.125,St=lt*ae;var kt=new go.PathFigure((1-.5+lt+gt)*nt,(.5+mt)*et,!1);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+St+mt)*et,(.5+St+gt)*nt,(.5+lt+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+St+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+St+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-St+mt)*et));var kt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);return ct.add(kt),ct.spot1=new go.Spot(.232,.136),ct.spot2=new go.Spot(.682,.611),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicImplies",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,ct*nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,et))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LogicAnd",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(bt,nt,et){var ct=new go.Geometry().add(new go.PathFigure(.5*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*nt,.5*et,.5*nt,.5*et)));return ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicTruth",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Move,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)))}),go.Shape.defineFigureGenerator("LogicForAll",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,0,et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(bt,nt,et){var ct=.5;return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,0,ct*et)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ct*nt,ct*et,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(bt,nt,et){var ct=.5;return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ct*nt,ct*et,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Wn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Wn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.3);var gt=(1-ct)*nt,mt=(.5-lt/2)*et,St=(.5+lt/2)*et,kt=new go.Geometry,zt=new go.PathFigure(0,mt,!0);kt.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),zt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,St)),zt.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),kt.spot1=new go.Spot(0,mt/et);var Gt=xe(0,St/et,1,St/et,gt/nt,1,1,.5,Tt());return kt.spot2=new go.Spot(Gt.x,Gt.y),ee(Gt),kt}),go.Shape.setFigureParameter("Arrow2",0,new Wn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Wn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=30),ct>nt&&(ct=nt);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var gt=nt-ct,mt=(et-lt)/2,St=mt+lt,kt=new go.Geometry,zt=new go.PathFigure(0,mt,!0);kt.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),zt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,St)),zt.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),kt.spot1=new go.Spot(0,mt/et);var Gt=xe(0,St/et,1,St/et,gt/nt,1,1,.5,Tt());return kt.spot2=new go.Spot(Gt.x,Gt.y),ee(Gt),kt}),go.Shape.defineFigureGenerator("Chevron",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("DoubleArrow",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.214*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.786*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*et).close()),ct}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Wn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*et,gt=(.5+ct/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close());var kt=xe(0,.5,.3,0,0,lt/et,.1,lt/et,Tt());return mt.spot1=new go.Spot(kt.x,kt.y),kt=xe(.7,1,1,.5,0,gt/et,1,gt/et,kt),mt.spot2=new go.Spot(kt.x,kt.y),ee(kt),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Wn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Wn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-ct)/2,mt=gt+ct,St=(et-lt)/2,kt=St+lt;(ct>et||lt>et)&&(lt>ct?(ct=ct*et/lt,gt=(et-ct)/2,mt=gt+ct,St=0,kt=et):(gt=0,mt=et,St=0,kt=et));var zt=new go.Geometry,Gt=new go.PathFigure(nt,.5*et,!0);zt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,kt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,kt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,St)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close());var $t=xe(0,.5,.3,St/et,0,gt/et,1,gt/et,Tt());return zt.spot1=new go.Spot($t.x,$t.y),$t=xe(.7,kt/et,1,.5,0,mt/et,1,mt/et,$t),zt.spot2=new go.Spot($t.x,$t.y),ee($t),zt}),go.Shape.setFigureParameter("IBeamArrow",0,new Wn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*et,gt=(.5+ct/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(0,lt/et);var kt=xe(.7,1,1,.5,0,gt/et,1,gt/et,Tt());return mt.spot2=new go.Spot(kt.x,kt.y),ee(kt),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Wn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Wn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-ct)/2,mt=gt+ct,St=(et-lt)/2,kt=St+lt;(ct>et||lt>et)&&(lt>ct?(ct=ct*et/lt,gt=(et-ct)/2,mt=gt+ct,St=0,kt=et):(gt=0,mt=et,St=0,kt=et));var zt=new go.Geometry,Gt=new go.PathFigure(nt,.5*et,!0);zt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,kt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,kt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,kt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,St)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,St)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close()),zt.spot1=new go.Spot(0,gt/et);var $t=xe(.7,kt/et,1,.5,0,mt/et,1,mt/et,Tt());return zt.spot2=new go.Spot($t.x,$t.y),ee($t),zt}),go.Shape.setFigureParameter("Pointer",0,new Wn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.1);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(ct,.35);var mt=xe(.2,.65,1,.65,0,1,1,.5,Tt());return lt.spot2=new go.Spot(mt.x,mt.y),ee(mt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Wn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*nt,.75*et,ct*nt,.25*et).close()),lt.spot1=new go.Spot(ct,.35);var mt=xe(0,.65,1,.65,0,1,1,.5,Tt());return lt.spot2=new go.Spot(mt.x,mt.y),ee(mt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Wn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.4);var lt=(.5-ct/2)*et,gt=(.5+ct/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(.2,.3);var kt=xe(.7,1,1,.5,0,gt/et,1,gt/et,Tt());return mt.spot2=new go.Spot(kt.x,kt.y),ee(kt),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Wn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=50);var lt=(et-ct)/2,gt=lt+ct;ct>et&&(lt=0,gt=et);var mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(.2,lt/et);var kt=xe(.7,1,1,.5,0,gt/et,1,gt/et,Tt());return mt.spot2=new go.Spot(kt.x,kt.y),ee(kt),mt}),go.Shape.setFigureParameter("SquareArrow",0,new Wn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.7);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(ct,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=ae*.1,mt=new go.PathFigure(0,.9*et,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et).close()),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.97),ct}),go.Shape.defineFigureGenerator("Cone2",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.9*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,et,.85/.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et).close());var gt=new go.PathFigure(0,.9*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,.8*et,.85/.9*nt,.8*et)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.82),ct}),go.Shape.defineFigureGenerator("Cube1",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var gt=new go.PathFigure(.5*nt,et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.5,.85),ct}),go.Shape.defineFigureGenerator("Cube2",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.3*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0).close());var gt=new go.PathFigure(0,.3*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.7,1),ct}),go.Shape.defineFigureGenerator("Cylinder1",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,gt=ae*.5,mt=new go.PathFigure(0,ct,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ae*ct,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,ct,(.5+gt)*nt,0,1*nt,ae*ct)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,1*et,1*nt,et-ae*ct,(.5+gt)*nt,1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,(.5-gt)*nt,1*et,0,et-ae*ct)),mt.add(new go.PathSegment(go.PathSegment.Line,0,ct));var St=new go.PathFigure(nt,ct,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*ct,1*nt,2*ct-ae*ct,(.5+gt)*nt,2*ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,ct,(.5-gt)*nt,2*ct,0,2*ct-ae*ct)),lt.spot1=new go.Spot(0,0,0,2*ct),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,gt=ae*.5,mt=new go.PathFigure(0,et-ct,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ae*ct,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,(.5+gt)*nt,0,nt,ae*ct)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,et-ae*ct,(.5+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,(.5-gt)*nt,et,0,et-ae*ct));var St=new go.PathFigure(0,et-ct,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*ct,0,et-ct-ae*ct,(.5-gt)*nt,et-2*ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-ct,(.5+gt)*nt,et-2*ct,nt,et-ct-ae*ct)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ct),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,gt=ae*.5,mt=new go.PathFigure(ct,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ae*ct,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,(.5+gt)*et,nt-ae*ct,et)),mt.add(new go.PathSegment(go.PathSegment.Line,ct,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ae*ct,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-gt)*et,ae*ct,0));var St=new go.PathFigure(ct,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,2*ct,.5*et,ct+ae*ct,0,2*ct,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,ct,et,2*ct,(.5+gt)*et,ct+ae*ct,et)),lt.spot1=new go.Spot(0,0,2*ct,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,gt=ae*.5,mt=new go.PathFigure(nt-ct,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ae*ct,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,(.5+gt)*et,nt-ae*ct,et)),mt.add(new go.PathSegment(go.PathSegment.Line,ct,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ae*ct,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-gt)*et,ae*ct,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0));var St=new go.PathFigure(nt-ct,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*ct,.5*et,nt-ct-ae*ct,0,nt-2*ct,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt-2*ct,(.5+gt)*et,nt-ct-ae*ct,et)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*ct,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.25*nt,.25*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(.25*nt,.25*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.408,.172),ct.spot2=new go.Spot(.833,.662),ct}),go.Shape.defineFigureGenerator("Prism2",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(0,et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("Pyramid1",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et).close());var gt=new go.PathFigure(.5*nt,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Pyramid2",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var gt=new go.PathFigure(.5*nt,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Actor",function(bt,nt,et){var ct=new go.Geometry,lt=.2,gt=.1,mt=ae*lt,St=ae*gt,kt=.5,zt=.1,Gt=new go.PathFigure(kt*nt,(zt+gt)*et,!0);ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-lt)*nt,zt*et,(kt-mt)*nt,(zt+gt)*et,(kt-lt)*nt,(zt+St)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-gt)*et,(kt-lt)*nt,(zt-St)*et,(kt-mt)*nt,(zt-gt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+lt)*nt,zt*et,(kt+mt)*nt,(zt-gt)*et,(kt+lt)*nt,(zt-St)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt+gt)*et,(kt+lt)*nt,(zt+St)*et,(kt+mt)*nt,(zt+gt)*et));var $t=.05,Wt=ae*$t;kt=.05,zt=.25;var Jt=new go.PathFigure(.5*nt,.2*et,!0);return ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),kt=.95,zt=.25,Jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+$t)*nt,zt*et,(kt+Wt)*nt,(zt-$t)*et,(kt+$t)*nt,(zt-Wt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),$t=.025,Wt=ae*$t,kt=.825,zt=.35,Jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-$t)*et,(kt+$t)*nt,(zt-Wt)*et,(kt+Wt)*nt,(zt-$t)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-$t)*nt,zt*et,(kt-Wt)*nt,(zt-$t)*et,(kt-$t)*nt,(zt-Wt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),$t=.05,Wt=ae*$t,kt=.5,zt=.7,Jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-$t)*et,(kt+$t)*nt,(zt-Wt)*et,(kt+Wt)*nt,(zt-$t)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-$t)*nt,zt*et,(kt-Wt)*nt,(zt-$t)*et,(kt-$t)*nt,(zt-Wt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),$t=.025,Wt=ae*$t,kt=.175,zt=.35,Jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-$t)*et,(kt+$t)*nt,(zt-Wt)*et,(kt+Wt)*nt,(zt-$t)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-$t)*nt,zt*et,(kt-Wt)*nt,(zt-$t)*et,(kt-$t)*nt,(zt-Wt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),$t=.05,Wt=ae*$t,kt=.05,zt=.25,Jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-$t)*et,(kt-$t)*nt,(zt-Wt)*et,(kt-Wt)*nt,(zt-$t)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),ct.spot1=new go.Spot(.2,.2),ct.spot2=new go.Spot(.8,.65),ct}),go.Shape.setFigureParameter("Card",0,new Wn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,gt=new go.PathFigure(nt,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ct*et)),gt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,0).close()),lt.spot1=new go.Spot(0,ct),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,.5*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et));var gt=new go.PathFigure(.5*nt,.5*et,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,.25),ct}),go.Shape.defineFigureGenerator("CreateRequest",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(0,lt*et,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),ct}),go.Shape.defineFigureGenerator("Database",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=ae*.1,mt=new go.PathFigure(nt,.1*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-gt)*et,(.5-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-gt)*et));var St=new go.PathFigure(nt,.1*et,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+gt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.4*et,nt,(.3+gt)*et,(.5+lt)*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,(.5-lt)*nt,.4*et,0,(.3+gt)*et)),ct.spot1=new go.Spot(0,.4),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("DataStorage",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.9*et,.25*nt,.1*et).close()),ct.spot1=new go.Spot(.226,0),ct.spot2=new go.Spot(.81,1),ct}),go.Shape.defineFigureGenerator("DiskStorage",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=ae*.1,mt=new go.PathFigure(nt,.1*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-gt)*et,(.5-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-gt)*et));var St=new go.PathFigure(nt,.1*et,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+gt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("Display",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close()),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("DividedEvent",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var gt=ae*.2,mt=new go.PathFigure(0,.2*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,0,(.2-gt)*et,(.2-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.2*et,(.8+gt)*nt,0,nt,(.2-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,et,nt,(.8+gt)*et,(.8+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*et,(.2-gt)*nt,et,0,(.8+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et));var St=new go.PathFigure(0,lt*et,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ct}),go.Shape.defineFigureGenerator("DividedProcess",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(0,lt*et,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ct}),go.Shape.defineFigureGenerator("Document",function(bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("ExternalOrganization",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(lt*nt,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),ct}),go.Shape.defineFigureGenerator("ExternalProcess",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var gt=new go.PathFigure(.1*nt,.4*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.9*et)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("File",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(.75*nt,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Interrupt",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,.5*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et));var gt=new go.PathFigure(nt,.5*et,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et));var mt=new go.PathFigure(nt,.5*et,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("InternalStorage",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN,gt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.1);var mt=new go.PathFigure(0,0,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var St=new go.PathFigure(lt*nt,0,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Move,0,gt*et)),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et)),ct}),go.Shape.defineFigureGenerator("Junction",function(bt,nt,et){var ct=new go.Geometry,lt=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=ae*.5,St=.5,kt=new go.PathFigure(nt,St*et,!0);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,et,nt,(St+mt)*et,(St+mt)*nt,et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,St*et,(St-mt)*nt,et,0,(St+mt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,0,0,(St-mt)*et,(St-mt)*nt,0)),kt.add(new go.PathSegment(go.PathSegment.Bezier,nt,St*et,(St+mt)*nt,0,nt,(St-mt)*et));var zt=new go.PathFigure((gt+lt)*nt,(gt+lt)*et,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt*nt,gt*et)),zt.add(new go.PathSegment(go.PathSegment.Move,gt*nt,(gt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Line,(gt+lt)*nt,gt*et)),ct}),go.Shape.defineFigureGenerator("LinedDocument",function(bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close());var gt=new go.PathFigure(.1*nt,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.75*et)),ct.spot1=new go.Spot(.1,0),ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("LoopLimit",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MagneticTape",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=.5,mt=new go.PathFigure(.5*nt,et,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*nt,.9*et,nt,(gt+lt)*et,(gt+lt)*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.15,.15),ct.spot2=new go.Spot(.85,.8),ct}),go.Shape.defineFigureGenerator("ManualInput",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MessageFromUser",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.7);var gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("MicroformProcessing",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,lt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,(1-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("MicroformRecording",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("MultiDocument",function(bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.44*et,.96*nt,.47*et,.93*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.54*et,.86*nt,.57*et,.83*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.4*nt,.4*et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0).close());var gt=new go.PathFigure(.1*nt,.2*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.44*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.8,.77),ct}),go.Shape.defineFigureGenerator("MultiProcess",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,.1*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close());var gt=new go.PathFigure(.2*nt,.1*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),ct.spot1=new go.Spot(0,.2),ct.spot2=new go.Spot(.8,1),ct}),go.Shape.defineFigureGenerator("OfflineStorage",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=1-lt,mt=new go.PathFigure(0,0,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close());var St=new go.PathFigure(.5*lt*nt,lt*et,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*nt,lt*et)),ct}),go.Shape.defineFigureGenerator("OffPageConnector",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("Or",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=.5,mt=new go.PathFigure(nt,gt*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,et,nt,(gt+lt)*et,(gt+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et));var St=new go.PathFigure(nt,.5*et,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ct}),go.Shape.defineFigureGenerator("PaperTape",function(bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.5*nt,.6*et,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ct.spot1=new go.Spot(0,.49),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN,gt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN,gt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("Procedure",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure((1-lt)*nt,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ct}),go.Shape.defineFigureGenerator("Process",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(lt*nt,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Sort",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var gt=new go.PathFigure(0,.5*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.5),ct}),go.Shape.defineFigureGenerator("Start",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(lt*nt,0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et));var mt=new go.PathFigure(lt*nt,0,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),ct.spot1=new go.Spot(lt,0),ct.spot2=new go.Spot(1-lt,1),ct}),go.Shape.defineFigureGenerator("Terminator",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et)),ct.spot1=new go.Spot(.23,0),ct.spot2=new go.Spot(.77,1),ct}),go.Shape.defineFigureGenerator("TransmittalTape",function(bt,nt,et){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,(1-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*et).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("AndGate",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=new go.PathFigure(0,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(.5+lt)*nt,0,nt,(.5-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.5+lt)*et,(.5+lt)*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.55,1),ct}),go.Shape.defineFigureGenerator("Buffer",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Clock",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=.5,mt=new go.PathFigure(nt,gt*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,et,nt,(gt+lt)*et,(gt+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et));var St=new go.PathFigure(nt,gt*et,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et));var kt=new go.PathFigure(.8*nt,.75*et,!1);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),kt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),ct}),go.Shape.defineFigureGenerator("Ground",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),ct}),go.Shape.defineFigureGenerator("Inverter",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.1,gt=.1,mt=.9,St=.5,kt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,0,et)),kt.add(new go.PathSegment(go.PathSegment.Line,0,0)),kt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var zt=new go.PathFigure((mt+gt)*nt,St*et,!0);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.4,.75),ct}),go.Shape.defineFigureGenerator("NandGate",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=ae*.4,mt=ae*.1,St=.1,kt=.9,zt=.5,Gt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+gt)*et,(.4+lt)*nt,et)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(.4+lt)*nt,0,.8*nt,(.5-gt)*et));var $t=new go.PathFigure((kt+St)*nt,zt*et,!0);return ct.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt+St)*et,(kt+St)*nt,(zt+mt)*et,(kt+mt)*nt,(zt+St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-St)*nt,zt*et,(kt-mt)*nt,(zt+St)*et,(kt-St)*nt,(zt+mt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-St)*et,(kt-St)*nt,(zt-mt)*et,(kt-mt)*nt,(zt-St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt+St)*nt,zt*et,(kt+mt)*nt,(zt-St)*et,(kt+St)*nt,(zt-mt)*et)),ct.spot1=new go.Spot(0,.05),ct.spot2=new go.Spot(.55,.95),ct}),go.Shape.defineFigureGenerator("NorGate",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*lt,mt=0,St=.5,kt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(St-lt)*et,.7*nt,(St-gt)*et)),lt=.1,gt=ae*.1,mt=.9,St=.5;var zt=new go.PathFigure((mt-lt)*nt,St*et,!0);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.6,.75),ct}),go.Shape.defineFigureGenerator("OrGate",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*lt,mt=0,St=.5,kt=new go.PathFigure(0,0,!0);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt+gt)*nt,(St-lt)*et,.8*nt,(St-gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(St+gt)*et,(mt+gt+gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et).close()),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("XnorGate",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*lt,mt=.2,St=.5,kt=new go.PathFigure(.1*nt,0,!1);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var zt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.7*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(St-lt)*et,.7*nt,(St-gt)*et)),lt=.1,gt=ae*.1,mt=.9,St=.5;var Gt=new go.PathFigure((mt-lt)*nt,St*et,!0);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.65,.75),ct}),go.Shape.defineFigureGenerator("XorGate",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*lt,mt=.2,St=.5,kt=new go.PathFigure(.1*nt,0,!1);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var zt=new go.PathFigure(.2*nt,0,!0);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt)*nt,(St-lt)*et,.9*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et).close()),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.8,.75),ct}),go.Shape.defineFigureGenerator("Capacitor",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("Resistor",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Inductor",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.1,gt=.1,mt=.1,St=.5,kt=new go.PathFigure((mt-lt*.5)*nt,et,!1);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.3,kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.5,kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.7,kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.9,kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt*.5)*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),ct}),go.Shape.defineFigureGenerator("ACvoltageSource",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.5,gt=.5,mt=.5,St=.5,kt=new go.PathFigure((mt-gt)*nt,St*et,!1);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*nt,St*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt-.1)*nt,St*et,mt*nt,(St-gt)*et,mt*nt,(St+gt)*et)),ct}),go.Shape.defineFigureGenerator("DCvoltageSource",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("Diode",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Wifi",function(bt,nt,et){var ct=new go.Geometry,lt=nt,gt=et;nt=nt*.38,et=et*.6;var mt=ae*.8,St=.8,kt=0,zt=.5,Gt=(lt-nt)/2,$t=(gt-et)/2,Wt=new go.PathFigure(kt*nt+Gt,(zt+St)*et+$t,!0);ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-St)*nt+Gt,zt*et+$t,(kt-mt)*nt+Gt,(zt+St)*et+$t,(kt-St)*nt+Gt,(zt+mt)*et+$t)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt-St)*et+$t,(kt-St)*nt+Gt,(zt-mt)*et+$t,(kt-mt)*nt+Gt,(zt-St)*et+$t)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-St+mt*.5)*nt+Gt,zt*et+$t,kt*nt+Gt,(zt-St)*et+$t,(kt-St+mt*.5)*nt+Gt,(zt-mt)*et+$t)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt+St)*et+$t,(kt-St+mt*.5)*nt+Gt,(zt+mt)*et+$t,kt*nt+Gt,(zt+St)*et+$t).close()),mt=ae*.4,St=.4,kt=.2,zt=.5;var Jt=new go.PathFigure(kt*nt+Gt,(zt+St)*et+$t,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-St)*nt+Gt,zt*et+$t,(kt-mt)*nt+Gt,(zt+St)*et+$t,(kt-St)*nt+Gt,(zt+mt)*et+$t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt-St)*et+$t,(kt-St)*nt+Gt,(zt-mt)*et+$t,(kt-mt)*nt+Gt,(zt-St)*et+$t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-St+mt*.5)*nt+Gt,zt*et+$t,kt*nt+Gt,(zt-St)*et+$t,(kt-St+mt*.5)*nt+Gt,(zt-mt)*et+$t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt+St)*et+$t,(kt-St+mt*.5)*nt+Gt,(zt+mt)*et+$t,kt*nt+Gt,(zt+St)*et+$t).close()),mt=ae*.2,St=.2,kt=.5,zt=.5;var de=new go.PathFigure((kt-St)*nt+Gt,zt*et+$t,!0);ct.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt-St)*et+$t,(kt-St)*nt+Gt,(zt-mt)*et+$t,(kt-mt)*nt+Gt,(zt-St)*et+$t)),de.add(new go.PathSegment(go.PathSegment.Bezier,(kt+St)*nt+Gt,zt*et+$t,(kt+mt)*nt+Gt,(zt-St)*et+$t,(kt+St)*nt+Gt,(zt-mt)*et+$t)),de.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt+St)*et+$t,(kt+St)*nt+Gt,(zt+mt)*et+$t,(kt+mt)*nt+Gt,(zt+St)*et+$t)),de.add(new go.PathSegment(go.PathSegment.Bezier,(kt-St)*nt+Gt,zt*et+$t,(kt-mt)*nt+Gt,(zt+St)*et+$t,(kt-St)*nt+Gt,(zt+mt)*et+$t)),mt=ae*.4,St=.4,kt=.8,zt=.5;var le=new go.PathFigure(kt*nt+Gt,(zt-St)*et+$t,!0);ct.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(kt+St)*nt+Gt,zt*et+$t,(kt+mt)*nt+Gt,(zt-St)*et+$t,(kt+St)*nt+Gt,(zt-mt)*et+$t)),le.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt+St)*et+$t,(kt+St)*nt+Gt,(zt+mt)*et+$t,(kt+mt)*nt+Gt,(zt+St)*et+$t)),le.add(new go.PathSegment(go.PathSegment.Bezier,(kt+St-mt*.5)*nt+Gt,zt*et+$t,kt*nt+Gt,(zt+St)*et+$t,(kt+St-mt*.5)*nt+Gt,(zt+mt)*et+$t)),le.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt-St)*et+$t,(kt+St-mt*.5)*nt+Gt,(zt-mt)*et+$t,kt*nt+Gt,(zt-St)*et+$t).close()),mt=ae*.8,St=.8,kt=1,zt=.5;var De=new go.PathFigure(kt*nt+Gt,(zt-St)*et+$t,!0);return ct.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(kt+St)*nt+Gt,zt*et+$t,(kt+mt)*nt+Gt,(zt-St)*et+$t,(kt+St)*nt+Gt,(zt-mt)*et+$t)),De.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt+St)*et+$t,(kt+St)*nt+Gt,(zt+mt)*et+$t,(kt+mt)*nt+Gt,(zt+St)*et+$t)),De.add(new go.PathSegment(go.PathSegment.Bezier,(kt+St-mt*.5)*nt+Gt,zt*et+$t,kt*nt+Gt,(zt+St)*et+$t,(kt+St-mt*.5)*nt+Gt,(zt+mt)*et+$t)),De.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt+Gt,(zt-St)*et+$t,(kt+St-mt*.5)*nt+Gt,(zt-mt)*et+$t,kt*nt+Gt,(zt-St)*et+$t).close()),ct}),go.Shape.defineFigureGenerator("Email",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Move,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.54*et)),ct}),go.Shape.defineFigureGenerator("Ethernet",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.35*nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,0).close());var gt=new go.PathFigure(.1*nt,et,!0,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var mt=new go.PathFigure(.6*nt,et,!0,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et).close());var St=new go.PathFigure(0,.5*et,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Move,.75*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.6*et)),St.add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.6*et)),ct}),go.Shape.defineFigureGenerator("Power",function(bt,nt,et){var ct=new go.Geometry,lt=ae*.4,gt=.4,mt=.5,St=.5,kt=Tt(),zt=Tt(),Gt=Tt(),$t=Tt();me(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,kt,kt,zt,Gt,$t);var Wt=Ot(zt.x,zt.y),Jt=new go.PathFigure(zt.x*nt,zt.y*et,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Gt.x*nt,Gt.y*et,$t.x*nt,$t.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),me(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Gt,$t,zt,kt,kt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,Gt.x*nt,Gt.y*et,$t.x*nt,$t.y*et)),lt=ae*.3,gt=.3,me(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,Gt,$t,zt,kt,kt),Jt.add(new go.PathSegment(go.PathSegment.Line,zt.x*nt,zt.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,$t.x*nt,$t.y*et,Gt.x*nt,Gt.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),me(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,kt,kt,zt,Gt,$t),Jt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,$t.x*nt,$t.y*et,Gt.x*nt,Gt.y*et).close());var Jt=new go.PathFigure(.45*nt,0,!0);return ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),ee(kt),ee(zt),ee(Gt),ee($t),ee(Wt),ct.spot1=new go.Spot(.25,.45),ct.spot2=new go.Spot(.75,.8),ct}),go.Shape.defineFigureGenerator("Fallout",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et/2,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,nt/2,et/2,nt/2,et/2));function gt(mt,St,kt){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*nt,(.8+kt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*nt,(.5+kt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*nt,(.5+kt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*nt,(.8+kt)*et).close())}return gt(lt,0,0),gt(lt,.4,0),gt(lt,.2,-.3),ct}),go.Shape.defineFigureGenerator("IrritationHazard",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close()),ct.spot1=new go.Spot(.3,.3),ct.spot2=new go.Spot(.7,.7),ct}),go.Shape.defineFigureGenerator("ElectricalHazard",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.37*nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.11*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.04*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.49*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.37*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.86*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.91*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,.78*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.56*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et).close()),ct}),go.Shape.defineFigureGenerator("FireHazard",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*nt,0,-.25*nt,.63*et,.45*nt,.44*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*nt,.42*et,.48*nt,.17*et,.54*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*nt,.18*et,.59*nt,.29*et,.58*nt,.28*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,.6*et,.8*nt,.34*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*nt,.31*et,.87*nt,.48*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,1.17*nt,.76*et,.82*nt,.8*et).close()),ct.spot1=new go.Spot(.07,.445),ct.spot2=new go.Spot(.884,.958),ct}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=0,mt=0,St=lt*ae,kt=.4*Math.SQRT2/2+.5,zt=.5-.5*Math.SQRT2/2,Gt=1,$t=.5,Wt=.5,Jt=0,de=new go.PathFigure(kt*nt,(1-zt)*et,!1);return ct.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,$t*et,Gt*nt,.7*et,Gt*nt,$t*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+gt)*nt,(Jt+gt)*et,(.5+lt+gt)*nt,(.5-St+gt)*et,(.5+St+gt)*nt,(.5-lt+gt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*nt,.9*et,(.5-lt+gt)*nt,(.5+St+mt)*et,(.5-St+gt)*nt,.9*et)),de.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*nt,.8*et)),de.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*nt,.9*et)),de.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*nt,.95*et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var gt=new go.PathFigure(nt,et,!1);ct.add(gt);var mt=new go.PathFigure(0,.5*et,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.2*nt,.35*et,.3*nt,.35*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.7*nt,.65*et,.8*nt,.65*et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close()),ct}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et).close());var lt=new go.PathFigure(0,.2*et,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ct}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.7*nt,et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,0,.6*nt,.5*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,et,.4*nt,.5*et,nt,.5*et).close());var gt=new go.PathFigure(.45*nt,.73*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.73*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*nt,.27*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*nt,.27*et)),ct}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var gt=new go.PathFigure(.335*nt,(1-.555)*et,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.68*et,(1-.12)*nt,.46*et,(1-.02)*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*nt,(1-.555)*et,.02*nt,.54*et,.12*nt,.46*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*nt,(1-.595)*et));var mt=.5-.285,St=.5,kt=mt,zt=Math.PI/4,Gt=4*(1-Math.cos(zt))/(3*Math.sin(zt)),$t=Gt*.5,Wt=mt,Jt=mt,de=Gt*Wt,le=Gt*Jt;gt.add(new go.PathSegment(go.PathSegment.Bezier,(St-Wt)*nt,kt*et,(St-(de+Wt)/2)*nt,(kt+(Jt+le)/2)*et,(St-Wt)*nt,(kt+le)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(kt-Jt)*et,(St-Wt)*nt,(kt-le)*et,(St-de)*nt,(kt-Jt)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(St+Wt)*nt,kt*et,(St+de)*nt,(kt-Jt)*et,(St+Wt)*nt,(kt-le)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(St+Wt)*nt,(kt+le)*et,(St+(de+Wt)/2)*nt,(kt+(Jt+le)/2)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*nt,(1-.595)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et));var De=new go.PathFigure(.2*nt,et,!1);ct.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var Re=new go.PathFigure(.8*nt,et,!1);return ct.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var gt=new go.PathFigure(.2*nt,.2*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventError",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var gt=new go.PathFigure(nt,et,!1);ct.add(gt);var mt=new go.PathFigure(.1*nt,et,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("Caution",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.05*nt,et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.8*et,0,et,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.1*et,.5*nt,0,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,nt,et,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,et));var gt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*nt,.875*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*nt,.875*et,gt*nt,gt*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.325*et,.575*nt,.725*et,.625*nt,.375*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.75*et,.375*nt,.375*et,.425*nt,.725*et)),ct}),go.Shape.defineFigureGenerator("Recycle",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.45*nt,.95*et,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*nt,.85*et,.17*nt,.95*et,.15*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.625*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*nt,.95*et,0,.675*et,0,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.775*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*nt,.775*et));var gt=new go.PathFigure(.475*nt,.2*et,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.175*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*nt,.05*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.05*et,.35*nt,0,.375*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.375*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.475*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.315*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.32*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.05*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,0,.65*nt,.05*et,.625*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*nt,.0105*et));var mt=new go.PathFigure(.675*nt,.575*et,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.875*nt,.525*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.85*nt,.95*et,nt,.8*et,nt,.85*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.95*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.85*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.725*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Move,.675*nt,.575*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.775*nt,.775*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*.5,mt=new go.PathFigure(nt,lt*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,et,nt,(lt+gt)*et,(lt+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*et,(lt-gt)*nt,et,0,(lt+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,0,0,(lt-gt)*et,(lt-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,lt*et,(lt+gt)*nt,0,nt,(lt-gt)*et));var St=new go.PathFigure(lt*nt,0,!1);return ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.15*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Move,0,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.15*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.85*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.58*nt,.1*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.78*nt,.54*et)),ct}),go.Shape.defineFigureGenerator("Package",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.15*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(0,.15*et,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.15*et).close()),ct.spot1=new go.Spot(0,.1),ct.spot2=new go.Spot(1,1),ct}),go.Shape.defineFigureGenerator("Class",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*et,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var mt=new go.PathFigure(0,.5*et,!1);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("Component",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close());var gt=new go.PathFigure(0,.2*et,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close());var mt=new go.PathFigure(0,.6*et,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et).close()),ct}),go.Shape.defineFigureGenerator("Boat Shipment",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.15*nt,.6*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et));var gt=new go.PathFigure(.15*nt,.6*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ct}),go.Shape.defineFigureGenerator("Customer/Supplier",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct}),go.Shape.defineFigureGenerator("Workcell",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("Supermarket",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),ct}),go.Shape.defineFigureGenerator("TruckShipment",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(nt,.8*et,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et).close());var mt=.1,St=ae*.1,kt=.2,zt=.9,Gt=new go.PathFigure((kt-mt)*nt,zt*et,!0);ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-mt)*et,(kt-mt)*nt,(zt-St)*et,(kt-St)*nt,(zt-mt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+mt)*nt,zt*et,(kt+St)*nt,(zt-mt)*et,(kt+mt)*nt,(zt-St)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt+mt)*et,(kt+mt)*nt,(zt+St)*et,(kt+St)*nt,(zt+mt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-mt)*nt,zt*et,(kt-St)*nt,(zt+mt)*et,(kt-mt)*nt,(zt+St)*et).close()),mt=.1,St=ae*.1,kt=.8,zt=.9;var $t=new go.PathFigure((kt-mt)*nt,zt*et,!0);return ct.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt-mt)*et,(kt-mt)*nt,(zt-St)*et,(kt-St)*nt,(zt-mt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt+mt)*nt,zt*et,(kt+St)*nt,(zt-mt)*et,(kt+mt)*nt,(zt-St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,kt*nt,(zt+mt)*et,(kt+mt)*nt,(zt+St)*et,(kt+St)*nt,(zt+mt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(kt-mt)*nt,zt*et,(kt-St)*nt,(zt+mt)*et,(kt-mt)*nt,(zt+St)*et).close()),ct}),go.Shape.defineFigureGenerator("KanbanPost",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ct}),go.Shape.defineFigureGenerator("Forklift",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*et,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var mt=new go.PathFigure(.5*nt,.8*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et));var St=new go.PathFigure(.5*nt,.7*et,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var kt=.1,zt=ae*.1,Gt=.1,$t=.9,Wt=new go.PathFigure((Gt-kt)*nt,$t*et,!0);ct.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,($t-kt)*et,(Gt-kt)*nt,($t-zt)*et,(Gt-zt)*nt,($t-kt)*et)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+kt)*nt,$t*et,(Gt+zt)*nt,($t-kt)*et,(Gt+kt)*nt,($t-zt)*et)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,($t+kt)*et,(Gt+kt)*nt,($t+zt)*et,(Gt+zt)*nt,($t+kt)*et)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-kt)*nt,$t*et,(Gt-zt)*nt,($t+kt)*et,(Gt-kt)*nt,($t+zt)*et)),kt=.1,zt=ae*.1,Gt=.4,$t=.9;var Jt=new go.PathFigure((Gt-kt)*nt,$t*et,!0);return ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,($t-kt)*et,(Gt-kt)*nt,($t-zt)*et,(Gt-zt)*nt,($t-kt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+kt)*nt,$t*et,(Gt+zt)*nt,($t-kt)*et,(Gt+kt)*nt,($t-zt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,($t+kt)*et,(Gt+kt)*nt,($t+zt)*et,(Gt+zt)*nt,($t+kt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-kt)*nt,$t*et,(Gt-zt)*nt,($t+kt)*et,(Gt-kt)*nt,($t+zt)*et)),ct}),go.Shape.defineFigureGenerator("RailShipment",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,.4*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.4*et).close());var gt=new go.PathFigure(.45*nt,.7*et,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et));var mt=new go.PathFigure(.55*nt,.4*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.4*et).close());var Gt=.05,$t=ae*.05,Wt=.175,Jt=.95,St=new go.PathFigure((Wt-Gt)*nt,Jt*et,!0);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt-Gt)*et,(Wt-Gt)*nt,(Jt-$t)*et,(Wt-$t)*nt,(Jt-Gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+Gt)*nt,Jt*et,(Wt+$t)*nt,(Jt-Gt)*et,(Wt+Gt)*nt,(Jt-$t)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt+Gt)*et,(Wt+Gt)*nt,(Jt+$t)*et,(Wt+$t)*nt,(Jt+Gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-Gt)*nt,Jt*et,(Wt-$t)*nt,(Jt+Gt)*et,(Wt-Gt)*nt,(Jt+$t)*et));var Gt=.05,$t=ae*.05,Wt=.375,Jt=.95,kt=new go.PathFigure((Wt-Gt)*nt,Jt*et,!0);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt-Gt)*et,(Wt-Gt)*nt,(Jt-$t)*et,(Wt-$t)*nt,(Jt-Gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+Gt)*nt,Jt*et,(Wt+$t)*nt,(Jt-Gt)*et,(Wt+Gt)*nt,(Jt-$t)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt+Gt)*et,(Wt+Gt)*nt,(Jt+$t)*et,(Wt+$t)*nt,(Jt+Gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-Gt)*nt,Jt*et,(Wt-$t)*nt,(Jt+Gt)*et,(Wt-Gt)*nt,(Jt+$t)*et));var Gt=.05,$t=ae*.05,Wt=.625,Jt=.95,zt=new go.PathFigure((Wt-Gt)*nt,Jt*et,!0);ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt-Gt)*et,(Wt-Gt)*nt,(Jt-$t)*et,(Wt-$t)*nt,(Jt-Gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+Gt)*nt,Jt*et,(Wt+$t)*nt,(Jt-Gt)*et,(Wt+Gt)*nt,(Jt-$t)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt+Gt)*et,(Wt+Gt)*nt,(Jt+$t)*et,(Wt+$t)*nt,(Jt+Gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-Gt)*nt,Jt*et,(Wt-$t)*nt,(Jt+Gt)*et,(Wt-Gt)*nt,(Jt+$t)*et));var Gt=.05,$t=ae*.05,Wt=.825,Jt=.95,de=new go.PathFigure((Wt-Gt)*nt,Jt*et,!0);ct.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt-Gt)*et,(Wt-Gt)*nt,(Jt-$t)*et,(Wt-$t)*nt,(Jt-Gt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Wt+Gt)*nt,Jt*et,(Wt+$t)*nt,(Jt-Gt)*et,(Wt+Gt)*nt,(Jt-$t)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,Wt*nt,(Jt+Gt)*et,(Wt+Gt)*nt,(Jt+$t)*et,(Wt+$t)*nt,(Jt+Gt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Wt-Gt)*nt,Jt*et,(Wt-$t)*nt,(Jt+Gt)*et,(Wt-Gt)*nt,(Jt+$t)*et).close());var le=new go.PathFigure(0,et,!1);return ct.add(le),le.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct}),go.Shape.defineFigureGenerator("Warehouse",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*et,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var mt=new go.PathFigure(.15*nt,et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et).close());var St=.05,kt=ae*.05,zt=.35,Gt=.775,$t=new go.PathFigure((zt-St)*nt,Gt*et,!0);return ct.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,zt*nt,(Gt-St)*et,(zt-St)*nt,(Gt-kt)*et,(zt-kt)*nt,(Gt-St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(zt+St)*nt,Gt*et,(zt+kt)*nt,(Gt-St)*et,(zt+St)*nt,(Gt-kt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,zt*nt,(Gt+St)*et,(zt+St)*nt,(Gt+kt)*et,(zt+kt)*nt,(Gt+St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(zt-St)*nt,Gt*et,(zt-kt)*nt,(Gt+St)*et,(zt-St)*nt,(Gt+kt)*et).close()),ct}),go.Shape.defineFigureGenerator("ControlCenter",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et).close()),ct}),go.Shape.defineFigureGenerator("Bluetooth",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Globe",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.75*nt,0,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.75*et,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.25*nt,et,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,.25*et,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,.15*nt,.25*et,.15*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.85*nt,.75*et,.85*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.15*et,.35*nt,.3*et,.65*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.85*et,.35*nt,.7*et,.65*nt,.7*et)),ct}),go.Shape.defineFigureGenerator("Wave",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*et,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.25*et,.1*nt,0,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.25*et,.425*nt,.5*et,.575*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.25*et,.8*nt,0,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.75*et,.1*nt,.5*et,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.75*et,.425*nt,et,.575*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.75*et,.8*nt,.5*et,.9*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Operator",function(bt,nt,et){var ct=new go.Geometry,lt=.3,gt=ae*.3,mt=.5,St=.7,kt=new go.PathFigure((mt-lt)*nt,St*et,!0);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et));var zt=new go.PathFigure(0,.7*et,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.7*et,0,0,nt,0)),ct}),go.Shape.defineFigureGenerator("TripleFanBlades",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.65*nt,.3*et,.65*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.35*nt,.5*et,.35*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.3*nt,.6*et,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.2*nt,et,.35*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,.7*nt,.6*et,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.8*nt,et,.65*nt,.95*et)),ct}),go.Shape.defineFigureGenerator("CentrifugalPump",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,0,.075*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,0,et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.4*et,.8*nt,et,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ct}),go.Shape.defineFigureGenerator("Battery",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.1*et));var gt=new go.PathFigure(0,.6*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Delete",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*.5,mt=.5,St=.5,kt=new go.PathFigure((mt-lt)*nt,St*et,!0);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et));var zt=new go.PathFigure(.15*nt,.5*et,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Flag",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.1*et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.1*et,.15*nt,0,.35*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,.65*nt,.2*et,.85*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.85*nt,.6*et,.65*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.35*nt,.4*et,.15*nt,.4*et).close()),ct}),go.Shape.defineFigureGenerator("Help",function(bt,nt,et){var ct=new go.Geometry,lt=.5,gt=ae*.5,mt=.5,St=.5,kt=new go.PathFigure((mt-lt)*nt,St*et,!1);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et).close()),lt=.05,gt=ae*.05,mt=.5,St=.8;var zt=new go.PathFigure((mt-lt)*nt,St*et,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et).close()),zt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),zt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,.75*nt,.475*et,.75*nt,.225*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.35*et,.4*nt,.2*et,.3*nt,.25*et)),ct}),go.Shape.defineFigureGenerator("Location",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.975*nt,.025*et,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*nt,.5*et,.5*nt,0,.025*nt,.025*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*nt,.3*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Lock",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var gt=new go.PathFigure(.2*nt,.5*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.3*et)),ct}),go.Shape.defineFigureGenerator("Unlocked",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var gt=new go.PathFigure(.2*nt,.5*et,!1);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.35*et)),ct}),go.Shape.defineFigureGenerator("Gear",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(.9375*nt,.56246875*et,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.80621875*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.763*nt,.3316875*et,.79840625*nt,.39915625*et,.7834375*nt,.3635*et)).add(new go.PathSegment(go.PathSegment.Line,.8566875*nt,.23796875*et)).add(new go.PathSegment(go.PathSegment.Line,.76825*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.67596875*nt,.24184375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*nt,.19378125*et,.64228125*nt,.2188125*et,.603875*nt,.2021875*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.19378125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*nt,.239375*et,.39759375*nt,.20190625*et,.36053125*nt,.2176875*et)).add(new go.PathSegment(go.PathSegment.Line,.2379375*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.14953125*nt,.2379375*et)).add(new go.PathSegment(go.PathSegment.Line,.23934375*nt,.3278125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*nt,.4375*et,.21765625*nt,.36059375*et,.201875*nt,.397625*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Line,.1938125*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*nt,.67596875*et,.20221875*nt,.603875*et,.21884375*nt,.64228125*et)).add(new go.PathSegment(go.PathSegment.Line,.1495625*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.238*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.3316875*nt,.76296875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*nt,.80621875*et,.36353125*nt,.78340625*et,.3991875*nt,.79840625*et)).add(new go.PathSegment(go.PathSegment.Line,.43753125*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.80621875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*nt,.760625*et,.602375*nt,.79809375*et,.63946875*nt,.78234375*et)).add(new go.PathSegment(go.PathSegment.Line,.76828125*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.85671875*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.76065625*nt,.67221875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*nt,.56246875*et,.78234375*nt,.63940625*et,.798125*nt,.602375*et)).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.56246875*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*nt,.5*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Hand",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.3*et,0,.375*et,.05*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.075*et,.3*nt,.225*et,.4*nt,.175*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*nt,.075*et,.46*nt,.05*et,.525*nt,.05*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.4*et,.525*nt,.275*et,.475*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.55*et,nt,.4*et,nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.7*et,.675*nt,.55*et,.675*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,.85*et,.65*nt,.7*et,.65*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*nt,et,.61*nt,.85*et,.61*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,.435*nt,et,0,et).close()),ct}),go.Shape.defineFigureGenerator("Map",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("Eject",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.7).close());var gt=new go.PathFigure(0,et*.6,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close()),ct}),go.Shape.defineFigureGenerator("Pencil",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close()))}),go.Shape.defineFigureGenerator("Building",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*1,et*1,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.85).close());var gt=new go.PathFigure(.126*nt,.85*et,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*nt,.45*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.45*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.85*et).close());var mt=new go.PathFigure(.402*nt,.85*et,!1);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.402*nt,.45*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.45*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.85*et).close());var St=new go.PathFigure(.678*nt,.85*et,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.678*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.85*et).close());var kt=new go.PathFigure(.5*nt,.1*et,!1);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),kt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),ct}),go.Shape.defineFigureGenerator("Staircase",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.95).close()),ct}),go.Shape.defineFigureGenerator("5Bars",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*(1-.184)).close());var gt=new go.PathFigure(nt*.204,et,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.204,et*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*1).close());var mt=new go.PathFigure(nt*.408,et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.408,et*(1-.184*2))),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*(1-.184*3))),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*1).close());var St=new go.PathFigure(nt*.612,et,!0);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.612,et*(1-.184*3))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*1).close());var kt=new go.PathFigure(nt*.816,et,!0);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),kt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),kt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),ct}),go.Shape.defineFigureGenerator("PC",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,0).close());var gt=new go.PathFigure(nt*.055,.07*et,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.1).close());var mt=new go.PathFigure(nt*.055,.13*et,!0);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.13)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.16)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.16).close());var St=new go.PathFigure(nt*.055,.18*et,!0);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.18)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.21)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.21).close());var kt=new go.PathFigure(nt*1,0,!0);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),kt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),kt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),ct}),go.Shape.defineFigureGenerator("Plane",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.55*nt,et,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*nt,.525*et,0,.4*et,.225*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.2*et,.975*nt,0,nt,.08*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et).close()),ct}),go.Shape.defineFigureGenerator("Key",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*1,et*.5,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.6*et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*nt,.425*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*nt,.5*et,.075*nt,.075*et).close()),ct}),go.Shape.defineFigureGenerator("FilmTape",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*0,nt*.3,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var gt=new go.PathFigure(0,0,!1);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*1,nt*.3,nt*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var mt=new go.PathFigure(nt*.11,et*.1,!1);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.11,et*.8).close());var St=new go.PathFigure(nt*(.11+.24133333*1+.028*1),et*.1,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.1)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.8)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*1),et*.8).close());var kt=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),kt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),kt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),ct}),go.Shape.defineFigureGenerator("FloppyDisk",function(bt,nt,et){var ct=new go.Geometry,lt=8,gt=lt*ae,mt=new go.PathFigure(lt,0,!1);ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.86,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.14)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-gt,nt-gt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,gt,et,0,et-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,gt,gt,0).close());var St=new go.PathFigure(nt*.83,0,!1);ct.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*0).close());var kt=new go.PathFigure(nt*.83,et*1,!1);ct.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),kt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),kt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*1).close());var zt=new go.PathFigure(nt*.78,et*.05,!1);return ct.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.05)),zt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.25)),zt.add(new go.PathSegment(go.PathSegment.Line,nt*.78,et*.25).close()),ct}),go.Shape.defineFigureGenerator("SpeechBubble",function(bt,nt,et){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=15),ct=Math.min(ct,nt/3),ct=Math.min(ct,et/3);var lt=ct*ae,gt=et*.8,mt=new go.Geometry,St=new go.PathFigure(ct,0,!0);return mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,nt-lt,0,nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt-ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,gt,nt,gt-lt,nt-lt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,gt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.55,gt)),St.add(new go.PathSegment(go.PathSegment.Line,ct,gt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ct,lt,gt,0,gt-lt)),St.add(new go.PathSegment(go.PathSegment.Line,0,ct)),St.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()),lt>1?(mt.spot1=new go.Spot(0,0,lt,lt),mt.spot2=new go.Spot(1,.8,-lt,-lt)):(mt.spot1=go.Spot.TopLeft,mt.spot2=new go.Spot(1,.8)),mt}),go.Shape.defineFigureGenerator("Repeat",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*.45,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.45).close());var gt=new go.PathFigure(nt*1,et*.55,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.55).close()),ct}),go.Shape.defineFigureGenerator("Windows",function(bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()).add(new go.PathSegment(go.PathSegment.Move,.4*nt,.4*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et).close()).add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.1*et).close()).add(new go.PathSegment(go.PathSegment.Move,.1*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et).close()))}),go.Shape.defineFigureGenerator("Terminal",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*.1,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.9).close());var gt=new go.PathFigure(nt*.1,et*.2,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.22,et*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.25).close());var mt=new go.PathFigure(nt*.28,et*.37,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.37)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.41)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.28,et*.41).close()),ct}),go.Shape.defineFigureGenerator("Beaker",function(bt,nt,et){var ct=new go.Geometry,lt=15,gt=lt*ae,mt=new go.PathFigure(nt*.62,et*.475,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-gt,nt-gt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,gt,et,0,et-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.475)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.03)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.62,et*.03).close()),gt>1?(ct.spot1=new go.Spot(0,0,gt,gt),ct.spot2=new go.Spot(1,1,-gt,-gt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=go.Spot.BottomRight),ct}),go.Shape.defineFigureGenerator("Download",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ct.add(lt);var gt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-gt)).close());var mt=new go.PathFigure(nt*.4,et*0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.66)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.26),et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*0).close()),ct}),go.Shape.defineFigureGenerator("Bin",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ct.add(lt);var gt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-gt)).close()),ct}),go.Shape.defineFigureGenerator("Upload",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ct.add(lt);var gt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-gt)).close());var mt=new go.PathFigure(nt*.5,et*0,!0);return ct.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.74,et*.25).close()),ct}),go.Shape.defineFigureGenerator("EmptyDrink",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close()),ct}),go.Shape.defineFigureGenerator("Drink",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close());var gt=new go.PathFigure(nt*.235,et*.28,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.765,et*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.655,et*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.345,et*.97).close()),ct}),go.Shape.defineFigureGenerator("4Arrows",function(bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.5,et*0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.25).close()),ct}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001: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 Wn={},ai="5.0",Ot={},Tt=null,ee=!1,xe=!1,me=null,ye=!1,Ht=null,ae=null,je=0;je4?parseFloat(Be):5};Wn.setHTML5Codebase=function(Be,dn){ae=Be,Ve(Be,dn)},Wn.setJavaCodebase=Wn.setJavaCodebaseVersion=Wn.isCompiledInstalled=Wn.setPreCompiledScriptPath=Wn.setPreCompiledResourcePath=function(){},Wn.setHTML5CodebaseVersion=function(Be,dn){var Qe=parseFloat(Be);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}Ht=Be,Xt(Be,dn)},Wn.getHTML5CodebaseVersion=function(){return bt},Wn.getParameters=function(){return Ot},Wn.setFontsCSSURL=function(Be){mt=Be},Wn.setGiacJSURL=function(Be){},Wn.setJNLPFile=function(Be){Nt=Be},Wn.setJNLPBaseDir=function(Be){},Wn.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var dn="auto",Qe=Ot.id,On,we=!1,ue=0;ue=5)return!0;var Be=Wn.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},Wn.startAnimation=function(){var Be=Wn.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},Wn.stopAnimation=function(){var Be=Wn.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},Wn.getAppletObject=function(){var Be=Ot.id!==void 0?Ot.id:"ggbApplet";return window[Be]},Wn.resize=function(){};var de=function(Be,dn,Qe){var On=document.createElement("param");On.setAttribute("name",dn),On.setAttribute("value",Qe),Be.appendChild(On)},le=function(Be){return Be&&Be!=="false"},De=function(Be,dn,Qe){kt(bt)<=4.2&&(Qe=!0);var On=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==bt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(On=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var we=document.createElement("div");we.classList.add("appletParameters","notranslate");var ue=dn.width,Xe=dn.height;if(dn.disableAutoScale=dn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():dn.disableAutoScale,dn.width!==void 0)if(kt(bt)<=4.4)le(dn.showToolBar)&&(dn.height-=7),le(dn.showAlgebraInput)&&(dn.height-=37),dn.width<605&&le(dn.showToolBar)&&(dn.width=605,ue=605);else{var di=100;(le(dn.showToolBar)||le(dn.showMenuBar))&&(dn.hasOwnProperty("customToolBar")&&(dn.customToolbar=dn.customToolBar),di=le(dn.showMenuBar)?245:155),ue=5?(dn.appletOnLoad=function(be){var We=Be.querySelector(".ggb_preview");We&&We.parentNode.removeChild(We),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ct),window.GGBT_wsf_view&&$(window).trigger("resize"),It(be)},xt||Ct.appendChild(Ft)):we.appendChild(Ft),Ct.appendChild(we),xt||Be.appendChild(Ct),setTimeout(function(){Wn.resize()},1)}else{var jt=document.createElement("div");jt.className="applet_scaler",jt.style.position="relative",jt.style.display="block",jt.appendChild(we),Be.appendChild(jt),dn.appletOnLoad=function(be){Wn.resize(),It(be)}}function Mt(be,We){We&&typeof We.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(be,We.appletOnLoad):renderGGBElement(be),An("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",We)}function Ut(be,We){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:be,params:We}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(rn){Mt(rn.article,rn.params)}),html5AppletsToProcess=null)},kt(bt)<5&&(be.className+=" geogebraweb")):Mt(be,We)}if(On){scriptLoadStarted=!0;for(var Fe=0;Fe0?(Li.remove(),Ct.attr("id","fullscreencontent").show(),jQuery(It).append(Ct),window.dispatchEvent(new Event("resize"))):De(Li,dn,!1),window.GGBT_wsf_view.launchFullScreen(It)}else Ge=On,De(Be,dn,!1);if(!window.GGBT_wsf_view)for(Xe=0;XeBe/4*3&&(Li=Be/4*3),It=Li/5.8,di.setAttribute("src",lt),di.setAttribute("width",Li),di.setAttribute("height",It);var Ct=(Be-Li)/2,xt=(dn-It)/2;di.style.left=Ct+"px",di.style.top=xt+"px",we.appendChild(di)}}return we.appendChild(Xe),we},gn=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Xt=function(Be,dn){if(bt=Be,dn){Ve(bt,!0);return}var Qe=!ee;if(Qe){var On=kt(bt);!isNaN(On)&&On<4.4&&(Qe=!1)}var we,ue;window.location.protocol.substr(0,4)==="http"?we=window.location.protocol:we="http:";var Xe=bt.indexOf("//");Xe>0?ue=bt:Xe===0?ue=we+bt:ue="https://www.geogebra.org/apps/5.2.814.0/";for(var di in ge)if(bt.slice(ge[di].length*-1)===ge[di]||bt.slice((ge[di].length+1)*-1)===ge[di]+"/"){Ve(ue,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!Tt.is3D&&!Tt.AV&&!Tt.SV&&!Tt.CV&&!Tt.EV2&&!Tt.CP&&!Tt.PC&&!Tt.DA&&!Tt.FI&&!Tt.PV&&!le(Ot.showToolBar)&&!le(Ot.showMenuBar)&&!le(Ot.showAlgebraInput)&&!le(Ot.enableRightClick)&&(!Ot.appName||Ot.appName=="classic")?ue+="webSimple/":ue+="web3d/",Ve(ue,!1)},Ve=function(Be,dn){if(Be.requirejs){He=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),He=Be,dn===null&&(dn=Be.indexOf("http")===-1),ie=dn,nt="web.nocache.js",et=!1;var Qe=He.split("/");Qe.length>1&&(!dn&&Qe[Qe.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):ge.indexOf(Qe[Qe.length-2])>=0&&(nt=Qe[Qe.length-2]+".nocache.js")),Qe=Be.split("/"),bt=Qe[Qe.length-3],bt.substr(0,4)==="test"?bt=bt.substr(4,1)+"."+bt.substr(5,1):(bt.substr(0,3)==="war"||bt.substr(0,4)==="beta")&&(bt="5.0");var On=parseFloat(bt);On!==NaN&&On<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+On+" is deprecated. Using version latest instead."),Xt("5.0",dn))},An=function(Be,dn){window.console&&window.console.log&&(!dn||typeof dn.showLogging=="undefined"||dn.showLogging&&dn.showLogging!=="false")&&console.log(Be)};Ot.material_id!==void 0?$t(Bn):Bn();function Bn(){var Be=ai;Ht!==null?Be=Ht:parseFloat(Be)<5&&(Be="5.0"),Xt(Be,!1),ae!==null&&Ve(ae,ie),ye=!0}return Wn},GGBAppletUtils=function(){"use strict";function Wn(){return window.GGBT_wsf_edit!==void 0}function ai(ye,Ht){Ht!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+Ht+","+Ht+")",ye.style.webkitTransform="scale("+Ht+","+Ht+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function Ot(ye,Ht,ae,je,ve,Nt){var He=null;if(Nt!=null&&Nt!="")for(var ie=ye.parentNode;ie!=null;)if((" "+ie.className+" ").indexOf(" "+Nt+" ")>-1){He=ie;break}else ie=ie.parentNode;var Ge=0,bt=0,nt=0,et=0,ct=0,lt=0,gt=0;if(He)Ge=He.offsetWidth,bt=Math.max(je?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),bt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=Ge):(Ge=window.innerWidth,bt=window.innerHeight,nt=window.innerWidth),ye){var mt=ye.getBoundingClientRect();mt.left>0&&mt.left<=Ge&&(ve===void 0||!ve)&&(document.dir==="rtl"?(ct=Ge-mt.width-mt.left,lt=nt<=480?10:30):(lt=mt.left,ct=nt<=480?10:30),et=lt+ct)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,gt=40)}}return ye&&((ae===void 0||!ae)&&Ht>0&&Ht+et1&&(Nt=!0)),Ht&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Nt=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))ve=Tt(ye,Ht,Nt,ae,ye.scaleContainerClass);else return je;return Nt&&(!ye.hasOwnProperty("scale")||je===1)?ve:Math.min(je,ve)}function xe(ye){var Ht=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),je=ye.getBoundingClientRect(),ve=(Ht-je.width)/2,Nt=(ae-je.height)/2;Nt<0&&(Nt=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ve<40?ye.style.left="40px":ye.style.left=ve+"px",ye.style.top=Nt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Nt<40?ye.style.top="40px":ye.style.top=Nt+"px",ye.style.left=ve+"px")}function me(ye,Ht){var ae=ye.querySelector(".appletParameters");if(ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ht.id!==ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(ae.parentElement&&/fullscreen/.test(ae.parentElement.className))return;var je=ee(Ht,ye);Wn()&&ae.setAttribute("data-param-scale",je);for(var ve=null,Nt=0;Nt=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(Wn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Wn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Wn){var ai=c[Wn];return ai==null?null:ai},r=d,webModule.__errFn=e}function B(){function Wn(ye){var Ht=ye.lastIndexOf(rb);Ht==-1&&(Ht=ye.length);var ae=ye.indexOf(sb);ae==-1&&(ae=ye.length);var je=ye.lastIndexOf(tb,Math.min(ae,Ht));return je>=O?ye.substring(O,je+P):W}function ai(ye){if(!ye.match(/^\w+:\/\//)){var Ht=o.createElement(ub);Ht.src=ye+vb,ye=Wn(Ht.src)}return ye}function Ot(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function Tt(){for(var ye=o.getElementsByTagName(_),Ht=O;HtO?ye[ye.length-P].href:W}function xe(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var me=Ot();return me==W&&(me=Tt()),me==W&&(me=ee()),me==W&&xe()&&(me=Wn(o.location.href)),me=ai(me),me}function C(Wn){return Wn.match(/^\//)||Wn.match(/^[a-zA-Z]+:\/\//)?Wn:webModule.__moduleBase+Wn}function D(){var Wn=[],ai=O,Ot=[],Tt=[];function ee(ye){var Ht=Tt[ye](),ae=Ot[ye];if(Ht in ae)return Ht;var je=[];for(var ve in ae)je[ae[ve]]=ve;throw r&&r(ye,je,Ht),null}if(__gwt_isKnownPropertyValue=function(ye,Ht){return Ht in Ot[ye]},webModule.__getPropMap=function(){var ye={};for(var Ht in Ot)Ot.hasOwnProperty(Ht)&&(ye[Ht]=ee(Ht));return ye},webModule.__computePropValue=ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var me=xe.indexOf(Db);me!=-1&&(ai=parseInt(xe.substring(me+P),$),xe=xe.substring(O,me))}catch(ye){}return webModule.__softPermutationId=ai,C(xe+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})()},46699:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Ax:function(){return me},Ds:function(){return ye},KI:function(){return ae},SI:function(){return xe},f1:function(){return ee}});var Tt=Ot(346);function ee(je){let ve=!0;if(je.length>0){for(let Nt=0;Ntnew Promise((zt,Gt)=>{var $t=de=>{try{Jt(kt.next(de))}catch(le){Gt(le)}},Wt=de=>{try{Jt(kt.throw(de))}catch(le){Gt(le)}},Jt=de=>de.done?zt(de.value):Promise.resolve(de.value).then($t,Wt);Jt((kt=kt.apply(mt,St)).next())});const lt=({dispatch:mt,courseEndTime:St,classroomList:kt,successCallback:zt=()=>{},visible:Gt,homeworkIds:$t,courseId:Wt,isBatch:Jt,shixunHomeworks:de})=>{const[le]=ee.default.useForm(),[De,Re]=(0,Tt.useState)(!1),[Ke,kn]=(0,Tt.useState)(!1),[qe,on]=(0,Tt.useState)(!1),[gn,ge]=(0,Tt.useState)([]),[Xt,Ve]=(0,Tt.useState)([]),[An,Bn]=(0,Tt.useState)([]),[Be,dn]=(0,Tt.useState)([]),[Qe,On]=(0,Tt.useState)([]),[we,ue]=(0,Tt.useState)([]),[Xe,di]=(0,Tt.useState)([]),[Li,It]=(0,Tt.useState)([]),[Ct,xt]=(0,Tt.useState)([]);(0,Tt.useEffect)(()=>{Gt?Ft():Mt()},[Gt]);const Ft=()=>ct(void 0,null,function*(){Re(!0);const Ut=yield(0,nt.oR)($t[0],{course_id:Wt});on(Ut.no_group),Jt?(di(Ut.all_course_groups),It(Ut.all_course_groups)):(dn(Ut.late_course_groups),On(Ut.late_course_groups),ge(Ut.submit_course_groups),Ve(Ut.submit_course_groups)),Re(!1),le.setFieldsValue({end_time:He()()})}),jt=()=>ct(void 0,null,function*(){const Ut=le.getFieldsValue(),Fe=He()(Ut.end_time).format("YYYY-MM-DD HH:mm");if((Jt?Ct.length===0:An.length===0&&we.length===0)&&!qe){xe.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}kn(!0);const nn=yield(0,nt.Mc)(Wt,{no_group:qe,homework_ids:$t,group_ids:Jt?Ct:An,end_time:Fe,late_group_ids:Jt?Ct:we});kn(!1),nn.status===0&&(Mt(),xe.ZP.success("\u64CD\u4F5C\u6210\u529F"),zt(),mt({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),Mt=()=>{Bn([]),ue([]),Ve([]),On([])};return Tt.createElement(me.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:bt.modalWrapper,width:Jt||qe?520:760,open:Gt,confirmLoading:Ke,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>jt(),onCancel:()=>{Mt(),mt({type:"classroomList/setActionTabs",payload:{}})}},Tt.createElement("div",{className:bt.tips},Tt.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),Tt.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),Tt.createElement(ee.default,{form:le,layout:"vertical"},Tt.createElement(ee.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},Tt.createElement(ye.default,{style:{width:"100%"},disabledDate:Ut=>(0,et.Q8)(Ut,St),disabledTime:Ut=>(0,et.d0)(Ut),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:He()((0,ie.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!qe&&Tt.createElement(Tt.Fragment,null,Jt?Tt.createElement("div",null,Tt.createElement(Ht.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Ut=>{It(Xe.filter(Fe=>Fe.name.indexOf(Ut.target.value)>-1))}}),Tt.createElement(ae.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:bt.antdTable,rowSelection:{type:"checkbox",onChange:Ut=>{xt(Ut)}},rowKey:"id",pagination:!1,dataSource:Li,loading:De,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):Tt.createElement(je.Z,{gutter:24},Tt.createElement(ve.Z,{span:14},Tt.createElement("div",{className:bt.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),Tt.createElement(Ht.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Ut=>{Ve(gn.filter(Fe=>Fe.name.indexOf(Ut.target.value)>-1))}}),Tt.createElement("div",{className:bt.tableWrapper},Tt.createElement(ae.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:bt.antdTable,rowSelection:{type:"checkbox",onChange:Ut=>{Bn(Ut)}},rowKey:"id",pagination:!1,dataSource:Xt,loading:De,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),Tt.createElement(ve.Z,{flex:10,style:{maxWidth:"280px"}},Tt.createElement("div",{className:bt.homeworkType},"\u8865\u4EA4\u622A\u6B62"),Tt.createElement(Ht.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Ut=>{On(Be.filter(Fe=>Fe.name.indexOf(Ut.target.value)>-1))}}),Tt.createElement("div",{className:bt.tableWrapper},Tt.createElement(ae.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:bt.antdTable,rowSelection:{type:"checkbox",onChange:Ut=>{ue(Ut)}},rowKey:"id",pagination:!1,loading:De,dataSource:Qe,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var gt=(0,Ge.connect)(({shixunHomeworks:mt,classroomList:St})=>({shixunHomeworks:mt,classroomList:St}))(lt)},9507:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return He}});var Tt=Ot(59301),ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=Ot(92310),me=Ot.n(xe),ye=Ot(29787),Ht=Ot(2859),ae=Ot(38986),je=Ot(51257),ve=(ie,Ge,bt)=>new Promise((nt,et)=>{var ct=mt=>{try{gt(bt.next(mt))}catch(St){et(St)}},lt=mt=>{try{gt(bt.throw(mt))}catch(St){et(St)}},gt=mt=>mt.done?nt(mt.value):Promise.resolve(mt.value).then(ct,lt);gt((bt=bt.apply(ie,Ge)).next())}),He=({data:ie,className:Ge,fullWidth:bt,style:nt={},onClose:et,onOk:ct,showFullTools:lt,noAssociationId:gt})=>{const mt=(0,Tt.useRef)(null),St=(0,Tt.useRef)(null),kt=(0,Tt.useRef)(null),zt=(0,Tt.useRef)(null),[Gt,$t]=(0,Tt.useState)(!1),[Wt,Jt]=(0,Tt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Tt.useEffect)(()=>(kt.current||(kt.current=document.createElement("style"),document.head.appendChild(kt.current)),ie!=null&&ie.visible?(document.body.setAttribute("data-custom","y-hidden"),kt.current.innerHTML=" html { overflow-y: hidden; }",ie!=null&&ie.src&&de()):(document.body.removeAttribute("data-custom"),kt.current&&(document.head.removeChild(kt.current),kt.current=null)),()=>{document.body.removeAttribute("data-custom"),kt.current&&(document.head.removeChild(kt.current),kt.current=null)}),[ie==null?void 0:ie.visible]);const de=()=>ve(void 0,null,function*(){$t(!0),Jt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ke=yield(0,je.ZJ)(ie==null?void 0:ie.src);mt.current.src="",mt.current.src=Ke,mt.current.onload=function(){Re()},$t(!1),Jt("")}),le=Ke=>ve(void 0,null,function*(){$t(!0),Jt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const kn=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ie.title,file:Ke.dataUrl}});kn!=null&&kn.id&&!gt?(yield(0,ae.ZP)(`/api/attachments/${ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:kn==null?void 0:kn.id,settings:JSON.stringify(Ke.state)}})).status===0&&ct():kn!=null&&kn.id&&ct(kn),$t(!1),Jt("")}),De=()=>{const Ke=document.querySelector('a[href="https://markerjs.com/"]');Ke&&Ke.parentNode&&(Ke.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(qe=>{const on=document.querySelector(qe.name);on&&on.setAttribute("title",qe.title)})},Re=()=>{St.current=new Ht.hP(mt.current),St.current.targetRoot=zt.current,St.current.addEventListener("render",le),St.current.addEventListener("beforeclose",et),lt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),ie!=null&&ie.snapshotData&&St.current.restoreState(ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),De()},300)};return Tt.createElement(Tt.Fragment,null,(ie==null?void 0:ie.visible)&&Tt.createElement(ye.Z,{spinning:Gt,tip:Wt,style:{position:"absolute",width:"100vw"}},Tt.createElement("div",{ref:zt,className:me()(ee.imageDimensions,Ge,bt?ee.fullWidth:""),style:nt},Tt.createElement("img",{className:ee.img,ref:mt}))))}},76562:function(Wn,ai,Ot){"use strict";var Tt=Ot(59301),ee=Ot(77019),xe=Ot(5269),me=Ot(20554),ye=Ot(99571),Ht=Ot(76902),ae=Ot(99587),je=Ot(48136),ve=Ot(59301);const Nt=(0,Tt.forwardRef)(({callback:He,showSaveButton:ie,value:Ge=""},bt)=>{const nt=(0,Tt.useRef)(),et=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ct=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],lt=St=>{nt.current.setValue(nt.current.getValue()+" "+St.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ve.createElement(ee.Z,{className:ae.Z.lists,gutter:[10,10]},et.map((St,kt)=>ve.createElement(xe.Z,{flex:"110px",className:ae.Z.item},ve.createElement("div",null,ve.createElement(Ht.Z,{value:`$$${St.value}$$`}),St.name),ve.createElement("div",{className:ae.Z.children},St.children.map((zt,Gt)=>ve.createElement("div",{key:Gt},ve.createElement("h1",null,zt.name),ve.createElement(ee.Z,{gutter:[10,10]},zt.data.map(($t,Wt)=>ve.createElement(xe.Z,{key:Wt,onClick:()=>lt($t),className:ae.Z.diamond},ve.createElement(Ht.Z,{value:"`$$"+$t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ve.createElement(ee.Z,{className:ae.Z.lists,gutter:[10,10]},ct.map((St,kt)=>ve.createElement(xe.Z,{flex:"110px",className:ae.Z.item},ve.createElement("div",null,ve.createElement(Ht.Z,{value:"`$$"+St.value+"$$`"}),St.name),ve.createElement("div",{className:ae.Z.children},St.children.map((zt,Gt)=>ve.createElement("div",{key:Gt},zt.name&&ve.createElement("h1",null,zt.name),ve.createElement(ee.Z,{gutter:[10,10]},zt.data.map(($t,Wt)=>ve.createElement(xe.Z,{key:Wt,onClick:()=>lt($t),className:ae.Z.diamond},ve.createElement(Ht.Z,{value:"`$$"+$t.value+"$$`"}))))))))))}],mt=()=>{var St=document.createElement("div");St.innerHTML=nt.current.getValue();var kt=St.innerText;return He&&He(kt),kt};return(0,Tt.useImperativeHandle)(bt,()=>({getData:mt})),ve.createElement("div",{className:ae.Z.mathWrap},ve.createElement(me.default,{defaultActiveKey:"1",items:gt}),ve.createElement("math-field",{locale:"zh_cn",className:ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},Ge||""),ie&&ve.createElement("div",{className:ae.Z.button},ve.createElement(ye.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ai.Z=Nt},28426:function(Wn,ai,Ot){"use strict";var Tt=Ot(59301),ee=Ot(93314),xe=Ot(99571),me=Object.defineProperty,ye=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Nt=(bt,nt,et)=>nt in bt?me(bt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):bt[nt]=et,He=(bt,nt)=>{for(var et in nt||(nt={}))je.call(nt,et)&&Nt(bt,et,nt[et]);if(ae)for(var et of ae(nt))ve.call(nt,et)&&Nt(bt,et,nt[et]);return bt},ie=(bt,nt)=>ye(bt,Ht(nt));const Ge=({img:bt,buttonProps:nt={},styles:et={},customText:ct,ButtonText:lt,ButtonClick:gt,Buttonclass:mt,ButtonTwo:St,imgStyles:kt,loading:zt=!1,className:Gt=""})=>Tt.createElement("section",{className:`tc animated fadeIn ${Gt}`,style:He({color:"#999",margin:"100px auto",visibility:zt?"hidden":"visible"},et)},Tt.createElement("img",{src:bt||ee,style:ie(He({},kt),{pointerEvents:"none",userSelect:"none"})}),Tt.createElement("p",{className:"mt20 font14"},ct||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&Tt.createElement(xe.ZP,He({className:mt,onClick:gt},nt),lt),St&&St);ai.Z=Ge},43155:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Q:function(){return Ht}});var Tt=Ot(59301),ee=Ot(82326),xe=Ot(47889),me=Ot(71051),ye=Ot(59301),Ht=(je=>(je[je.Number=1]="Number",je[je.Percent=2]="Percent",je))(Ht||{});const ae=({value:je,onChange:ve,disabled:Nt,hidePercentOption:He=!1,percentType:ie="select"})=>{const Ge=(0,Tt.useMemo)(()=>He?1:2,[He]),[bt,nt]=(0,Tt.useState)(Ge);console.log(bt);const et=lt=>je.type===1?`${lt}\u5206`:`${lt}%`,ct=(0,Tt.useCallback)(lt=>{if(bt===1){const gt=lt.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return lt.replace("%","")},[bt]);return(0,Tt.useEffect)(()=>{nt(je.type)},[je]),ye.createElement("div",{style:{display:"flex",alignItems:"center"}},ie=="select"&&ye.createElement(ee.default,{size:"large",onChange:lt=>{nt(lt),ve({type:lt,inputValue:lt===1?5:20})},value:bt||Ge,style:{width:100},options:He?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Nt}),ie=="radio"&&ye.createElement(xe.ZP.Group,{size:"large",onChange:lt=>{const gt=lt.target.value;nt(gt),ve({type:gt,inputValue:gt===1?5:20})},value:bt||Ge,disabled:Nt},!He&&ye.createElement(xe.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),ye.createElement(xe.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),ie=="radio"&&ye.createElement("div",{style:{marginRight:"10px",color:"#000000"}},je.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),ye.createElement(me.Z,{size:"large",disabled:Nt,value:je.inputValue,style:{width:"120px"},parser:ct,addonAfter:je.type===1?"\u5206":"%",max:bt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:lt=>{ve({type:bt,inputValue:lt})}}),ie=="radio"&&je.type==2&&ye.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};ai.Z=ae},45677:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return mt}});var Tt=Ot(59301),ee={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},xe=Ot(99571),me=Ot(70557),ye=Ot(75975),Ht=Ot(25399),ae=Ot(51257),je=Ot(81722),ve=Ot(28426),Nt=Ot(346),He=Ot(44203),ie=Ot(59301),Ge=Object.defineProperty,bt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ct=(St,kt,zt)=>kt in St?Ge(St,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[kt]=zt,lt=(St,kt)=>{for(var zt in kt||(kt={}))nt.call(kt,zt)&&ct(St,zt,kt[zt]);if(bt)for(var zt of bt(kt))et.call(kt,zt)&&ct(St,zt,kt[zt]);return St},gt=(St,kt,zt)=>new Promise((Gt,$t)=>{var Wt=le=>{try{de(zt.next(le))}catch(De){$t(De)}},Jt=le=>{try{de(zt.throw(le))}catch(De){$t(De)}},de=le=>le.done?Gt(le.value):Promise.resolve(le.value).then(Wt,Jt);de((zt=zt.apply(St,kt)).next())}),mt=({editOffice:St="view",data:kt,issaver:zt,onSaver:Gt,theme:$t,type:Wt,filename:Jt,monacoEditor:de,className:le,style:De,close:Re,onClose:Ke,hasMask:kn,disabledDownload:qe,onImgDimensions:on,showNodata:gn,recordInfo:ge})=>{const[Xt,Ve]=(0,Tt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[An,Bn]=(0,Tt.useState)(""),[Be,dn]=(0,Tt.useState)(),Qe=window.ENV==="build"?"/react/build":"",On=location.host.startsWith("localhost")?Nt.Z.PROXY_SERVER:Nt.Z.API_SERVER,ue=10*(1024*1024),Xe=(0,Tt.useRef)();kt!=null&&kt.startsWith("/api")&&Wt!=="txt"&&(kt=Nt.Z.API_SERVER+kt);const di=Ft=>Ft.substring(Ft.lastIndexOf("/")+1).split(".").pop();Jt&&de&&(de.filename=Jt),(0,Tt.useEffect)(()=>{var Ft,jt;const Mt=(jt=(Ft=document.cookie)==null?void 0:Ft.replace(/\s/g,""))==null?void 0:jt.split(";");Mt==null||Mt.map(Ut=>{let Fe=Ut.split("=");Fe[0]==="_educoder_session"&&Bn(Fe[1])})},[]),(0,Tt.useEffect)(()=>{Wt==="office"&&(kt.indexOf("bigfilescdn.")>-1||kt.indexOf("bigfiles1")>-1?dn({url:kt,fileType:di(kt),model:kt.indexOf("model=edit")?"edit":"view"}):It())},[Wt,kt]);function Li(Ft){return gt(this,null,function*(){Ft.data.type==="pdfdata"&&(Gt(Ft.data.data),window.removeEventListener("message",Li,!1)),console.log("mess---:",Ft.data)})}const It=()=>gt(void 0,null,function*(){console.log("data:",kt);let Ft=kt;kt.startsWith("http")||(Ft=location.origin+Ft);let jt=new URL(Ft).pathname.split("/").pop();const Mt=yield(0,je.gJ)({attachment_id:jt});Mt.url=On+Mt.url,dn(Mt)}),Ct=()=>{if(kt.startsWith("http")||kt.startsWith("blob:")){xt();return}(0,ae.Sv)(Jt||"educoder",kt,Jt)},xt=()=>{ge&&(0,He.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,ae.Nd)(Jt||"educoder",decodeURIComponent(kt))};return ie.createElement("div",{style:lt({},De||{}),className:`${kn&&ee.bgBlack} ${Wt?ee.wrp:"hide"}`},Re&&ie.createElement("div",{className:ee.close,ref:Xe},!!on&&ie.createElement(Ht.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Xe.current},ie.createElement("span",{onClick:()=>{Ke(),on()}},ie.createElement("i",{className:"icon-yulanpizhu"}))),!qe&&ie.createElement(Ht.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Xe.current},ie.createElement("span",{onClick:xt},ie.createElement("i",{className:"icon-quxiaozhiding"}))),zt&&ie.createElement(Ht.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Xe.current},ie.createElement("span",{className:"",onClick:()=>{const Ft=document.getElementById("pdfiframe");window.addEventListener("message",Li,!1),setTimeout(()=>{Ft.contentWindow.postMessage("getData","*")},300)}},ie.createElement("i",{className:"icon-baocun"}))),ie.createElement(Ht.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Xe.current},ie.createElement("span",{className:"",onClick:()=>{Ke()}},ie.createElement("i",{className:"icon-guanbi1"})))),ie.createElement("div",{className:`${ee[le]} ${le} ${ee.monaco} ${Wt==="txt"?"show":"hide"}`},Wt==="txt"&&ie.createElement(ie.Fragment,null,ie.createElement(ye.ZP,lt({},de)))),Wt==="audio"&&ie.createElement("audio",{src:`${(kt==null?void 0:kt.indexOf("http://"))>-1||(kt==null?void 0:kt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${kt}`,autoPlay:!0}),Wt==="video"&&ie.createElement(ie.Fragment,null,(kt==null?void 0:kt.indexOf("http"))>-1?ie.createElement("video",{controls:!0,src:`${kt}`,autoPlay:!0}):ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${kt}`,autoPlay:!0})),Wt==="office"&&Be&&ie.createElement("iframe",{src:`${Qe}/office.html?key=${Be.key}&url=${btoa(Be.url)}&callbackUrl=${On+(Be.callbackUrl||"")}&fileType=${Be.fileType}&title=${Be.title||""}&model=${St}&officeServer=${Nt.Z.ONLYOFFICE}&disabledDownload=${!!qe}`}),Wt==="html"&&ie.createElement("iframe",{src:kt+"&disposition=inline"}),Wt==="pdf"&&ie.createElement("iframe",{id:"pdfiframe",src:`${Qe}/js/pdfview/index.html?filename=${Jt||"educoder.pdf"}&url=${encodeURIComponent(kt)}&disabledDownload=${!!qe}&model=${St}`}),Wt==="image"&&ie.createElement("img",{src:`${(kt==null?void 0:kt.indexOf("http://"))>-1||(kt==null?void 0:kt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${kt}`}),(Wt==="other"||Wt==="download")&&ie.createElement(ie.Fragment,null,gn?ie.createElement(ve.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ie.createElement(xe.ZP,{icon:ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ct,disabled:qe},"\u4E0B\u8F7D")}):ie.createElement(xe.ZP,{type:"primary",size:"middle",onClick:Ct,disabled:qe},ie.createElement(me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Wn,ai,Ot){"use strict";Ot.d(ai,{z:function(){return $t},Z:function(){return Wt}});var Tt=Ot(59301),ee=Ot(8944),xe=Ot(81428),me=Ot(64018),ye=Ot(15360),Ht=Ot(346),ae=Ot(51257),je=Ot(15342),ve=Ot(1012),Nt=Ot(45677),He=Ot(59301),Ge=({html:Jt})=>{const de=(0,Tt.useRef)(null),le=(0,Tt.useRef)(null),De=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,Tt.useEffect)(()=>{const Re=de.current.attachShadow({mode:"open"});le.current=document.createElement("div"),le.current.className="markdown-body",le.current.innerHTML=Jt,Re.appendChild(le.current);const Ke=document.createElement("style");return Ke.textContent=De,Re.appendChild(Ke),()=>{Re.innerHTML=""}},[]),(0,Tt.useEffect)(()=>{le.current&&(le.current.innerHTML=Jt)},[Jt]),He.createElement("div",{ref:de})};function bt(Jt){const de=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],le=new RegExp(`\\b(${de.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Jt.replace(le,"").trim()}var nt=Object.defineProperty,et=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(Jt,de,le)=>de in Jt?nt(Jt,de,{enumerable:!0,configurable:!0,writable:!0,value:le}):Jt[de]=le,mt=(Jt,de)=>{for(var le in de||(de={}))ct.call(de,le)&>(Jt,le,de[le]);if(et)for(var le of et(de))lt.call(de,le)&>(Jt,le,de[le]);return Jt};const St="@\u2581\u2581@",kt="@\u2581@",zt=/]*>/g;function Gt(Jt){let de=document.createElement("div");return de.innerHTML=Jt,de.childNodes.length===0?"":de.childNodes[0].nodeValue}const $t=(Jt,de)=>{Jt=Jt||"";const le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Re=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return de?Jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(le,(kn,qe,on,gn,ge,Xt,Ve)=>{const An=qe||gn||Xt,Bn=on||ge||Ve||"?";return Ht.Z.API_SERVER+"/api/attachments/"+An+Bn+"&t="+(0,ae.Jn)(An,Date.now())+(kn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Jt=Jt.replace(Ke,(kn,qe,on,gn,ge,Xt,Ve)=>{const An=qe||gn||Xt,Bn=on||ge||Ve||"?";return Ht.Z.API_SERVER+"/attachments/download/"+An+Bn+"&t="+(0,ae.Jn)(An,Date.now())+(kn.indexOf(")")>-1?")":"&")}).replace(le,(kn,qe,on,gn,ge,Xt,Ve)=>{const An=qe||gn||Xt,Bn=on||ge||Ve||"?";return Ht.Z.API_SERVER+"/api/attachments/"+An+Bn+"&t="+(0,ae.Jn)(An,Date.now())+(kn.indexOf(")")>-1?")":"&")}).replace(De,(kn,qe,on,gn,ge)=>{const Xt=qe||gn,Ve=on||ge||"";return'"'+Ht.Z.API_SERVER+"/api/attachments/"+Xt+Ve+Xt+Ve+"&t="+(0,ae.Jn)(Xt,Date.now())}).replace(Re,(kn,qe,on,gn,ge)=>{const Xt=qe||gn,Ve=on||ge||"";return"("+Ht.Z.API_SERVER+"/files/uploads/"+Xt+Ve+Xt+Ve+"&t="+(0,ae.Jn)(Xt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Jt)};var Wt=({value:Jt="",className:de,showTextOnly:le,showLines:De,style:Re={},stylesPrev:Ke={},highlightKeywords:kn,showProgramFill:qe,isProgramFill:on,disabledFill:gn=!1,programFillValue:ge,onFillChange:Xt=Bn=>{},onFillBlur:Ve=()=>{},onFillFocus:An=()=>{}})=>{let Bn=bt(String(Jt||""));const[Be,dn]=(0,Tt.useState)(""),[Qe,On]=(0,Tt.useState)("office"),[we,ue]=(0,Tt.useState)([]),Xe=(0,Tt.useRef)("a"+(0,ve.Z)()),di={},Li=Pe=>//i.test(Pe||""),It=(Pe,be,We)=>{const rn=document.createElement(Pe===kt?"input":"textarea");rn.style.width="100%",rn.style.height=Pe===kt?"40px":"151px",rn.rows=5,rn.spellcheck=!1,rn.name="edu-program-fill",rn.placeholder="\u8BF7\u8F93\u5165",rn.dataset.id=be;const Hn=Object.keys(di).length;return di[Hn]=rn,`${rn.outerHTML}`};function Ct(Pe){return Pe=Pe.replace(/!\[.*?\]\(.*?\)/g,""),Pe=Pe.replace(/\[.*?\]\(.*?\)/g,""),Pe=Pe.replace(new RegExp("","gs"),""),Pe=Pe.replace(//g,""),Pe=Pe.replace(//g,""),Pe=Pe.replace(new RegExp(".*?<\\/video>","gs"),""),Pe=Pe.replace(new RegExp(".*?<\\/audio>","gs"),""),Pe=Pe.replace(new RegExp(".*?<\\/style>","gs"),""),Pe=Pe.replace(new RegExp(".*?<\\/script>","gs"),""),Pe}const xt=Pe=>!le&&Li(Bn)?Pe:Pe.replace(/([\s\S]+?)<\/style>/gim,function(be,We){let rn=We.replace(/(\n|\r)/g,"").split("}"),Hn=[];return rn.map(vn=>{vn!=""&&Hn.push(`.${Xe.current} ${vn}`)}),``}),Ft=(0,Tt.useMemo)(()=>{try{const rn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,vn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Cn=/\(\/attachments\/download\//g;Bn=Bn.replace(Cn,"("+Ht.Z.API_SERVER+"/attachments/download/").replace(rn,"("+Ht.Z.API_SERVER+"/api/attachments/").replace(Hn,'"'+Ht.Z.API_SERVER+"/api/attachments/").replace(vn,'"'+Ht.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `)}catch(rn){}if(qe){let rn=-1;return Bn=Bn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Hn,vn,Cn){var mi;return++rn,It(Hn,rn,(mi=ge==null?void 0:ge[rn])==null?void 0:mi.value.replaceAll("<","<").replaceAll(">",">"))}),`
${xt(Bn||"")}
`}let Pe=xt(Bn);Pe=(0,xe.ZP)(Pe);const be=(0,xe.ez)();Bn.match(/\[TOC\]/)&&(Pe=Pe.replace("

[TOC]

",(0,xe.Qv)()),(0,xe.Iy)()),Pe=Pe.replace(/(__special_katext_id_\d+__)/g,(rn,Hn)=>{const{type:vn,expression:Cn}=be[Hn];return(0,je.renderToString)(Gt(Cn)||"",{displayMode:vn==="block",throwOnError:!1,output:"html"})}),Pe=Pe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const We=document.createElement("div");if(We.innerHTML=Pe,le)return We.innerText;if(kn){const rn=kn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Fe(We,rn),We.innerHTML}return setTimeout(()=>Le(),500),We.innerHTML},[Bn,kn]);(0,Tt.useEffect)(()=>{Se.current&&Se.current.querySelectorAll(["input","textarea"]).forEach(be=>{be.oninput=jt,be.onblur=Mt,be.onfocus=Ut})},[we]),(0,Tt.useEffect)(()=>{var Pe,be,We,rn,Hn;if(ge!=null&&ge.length)try{const vn=Se.current.querySelectorAll(".edu-program-fill-score"),Cn=Se.current.querySelectorAll('[name="edu-program-fill"]');for(const[mi,Gn]of Cn.entries())Gn.value=((Pe=ge==null?void 0:ge[mi])==null?void 0:Pe.value)||"",((be=ge==null?void 0:ge[mi])==null?void 0:be.type)==="warning"?Gn.className="program-fill-warning":((We=ge==null?void 0:ge[mi])==null?void 0:We.type)==="success"?Gn.className="program-fill-success":Gn.className="";for(const[mi,Gn]of vn.entries())Gn.innerHTML=(rn=ge==null?void 0:ge[mi])!=null&&rn.score?`${(Hn=ge==null?void 0:ge[mi])==null?void 0:Hn.score}\u5206`:"";ue(ge)}catch(vn){console.log(vn,"error")}},[ge]);const jt=Pe=>{we[Pe.target.dataset.id]=we[Pe.target.dataset.id]||{},we[Pe.target.dataset.id].value=Pe.target.value,ue([...we]),Xt(we,Pe.target.dataset.id)},Mt=Pe=>{we[Pe.target.dataset.id]=we[Pe.target.dataset.id]||{},we[Pe.target.dataset.id].value=Pe.target.value,ue([...we]),Ve(we,Pe.target.dataset.id)},Ut=Pe=>{we[Pe.target.dataset.id]=we[Pe.target.dataset.id]||{},we[Pe.target.dataset.id].value=Pe.target.value,ue([...we]),An(we,Pe.target.dataset.id)};function Fe(Pe,be){return Pe.childNodes.forEach(We=>{var rn;if(We.childNodes.length>0)Fe(We,be);else if(We.nodeName!=="IMG")if(We.innerHTML)We.innerHTML=(rn=We.innerHTML)==null?void 0:rn.replace(new RegExp(be,"gi"),'$&');else{const Hn=document.createElement("span");Hn.innerHTML=We.textContent.replace(new RegExp(be,"gi"),'$&'),We.replaceWith(Hn)}})}const Se=(0,Tt.useRef)();xe.jb.WebkitLineClamp=De,De&&(Re=mt(mt({},Re),xe.jb));function nn(Pe){let be=Pe.target;if(be.tagName.toUpperCase()==="A"){let We=be.getAttribute("href");if(We.indexOf("office")>-1)Pe.preventDefault(),dn(We),On("office");else if(We.indexOf("application/pdf")>-1)Pe.preventDefault(),dn(We),On("pdf");else if(We.indexOf("text/html")>-1)Pe.preventDefault(),dn(We),On("html");else if(We.startsWith("#")){Pe.preventDefault();let rn=document.getElementById(We.replace("#",""));rn&&rn.scrollIntoView(!0)}}}const Le=()=>{var Pe;const be=(Pe=Se.current)==null?void 0:Pe.querySelectorAll("video");be==null||be.forEach(We=>{if(We.oncontextmenu=()=>!1,We.src.indexOf(".m3u8")>-1&&!We.canPlayType("application/vnd.apple.mpegurl")){if(ye.ZP.isSupported()){var rn=new ye.ZP;rn.loadSource(We.src),rn.attachMedia(We)}}})};return(0,Tt.useEffect)(()=>{if(Se.current&&Ft&&Ft.match(zt)&&window.PR.prettyPrint(),Se.current)return Se.current.addEventListener("click",nn),()=>{var Pe;(Pe=Se.current)==null||Pe.removeEventListener("click",nn),(0,xe.AL)(),(0,xe.Iy)()}},[Ft,Se.current,nn]),(0,Tt.useEffect)(()=>{var Pe;const be=We=>{We.preventDefault(),We.clipboardData.setData("text",window.getSelection().toString())};return(Pe=Se.current)==null||Pe.addEventListener("copy",be),()=>{var We;(We=Se.current)==null||We.removeEventListener("copy",be)}},[Se.current]),Tt.createElement(Tt.Fragment,null,le&&Tt.createElement("div",{ref:Se},Ft),!le&&!Li(Ft)&&Tt.createElement("div",{ref:Se,style:mt({},Re),className:`${de||""} ${gn?"disabled-fill":""} markdown-body ${Xe.current}`,dangerouslySetInnerHTML:{__html:Ft}}),!le&&Li(Ft)&&Tt.createElement(Ge,{html:Ft}),Tt.createElement(Nt.Z,{close:!0,data:Be,type:Be!=null&&Be.length?Qe:"",style:mt({},Ke),onClose:()=>dn("")}))}},3039:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return je}});var Tt=Ot(59301),ee={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},xe=Ot(62957),me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ht=(ve,Nt,He)=>new Promise((ie,Ge)=>{var bt=ct=>{try{et(He.next(ct))}catch(lt){Ge(lt)}},nt=ct=>{try{et(He.throw(ct))}catch(lt){Ge(lt)}},et=ct=>ct.done?ie(ct.value):Promise.resolve(ct.value).then(bt,nt);et((He=He.apply(ve,Nt)).next())}),je=({type:ve,resdata:Nt,onok:He,oktext:ie,okloading:Ge})=>{const[bt,nt]=(0,Tt.useState)(!1),{can_copy_list:et,can_copy_num:ct,challenge_type:lt,course_data_list:gt,no_copy_list:mt,no_copy_num:St,no_use_list:kt,no_use_num:zt,repeat_shixun_num:Gt,student_count:$t,total_num:Wt,use_num:Jt}=Nt;let de=ct>0||ve==="exercise";(0,Tt.useEffect)(()=>{(Nt==null?void 0:Nt.student_count)>0&&nt(!0)},[Nt]),console.log("---11",Ge),(0,Tt.useEffect)(()=>{Ge||nt(!1)},[Ge]);const le=()=>{if(ve==="exercise"&<===1)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Tt.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(ve==="exercise"&<===2)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Tt.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ve==="shixun"&<===1)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ve==="shixun"&<===2)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ve==="subject"&<===1)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Tt.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ve==="subject"&<===2)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",Tt.createElement("span",{className:ee.orangeColor},$t)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",Tt.createElement("span",{className:ee.orangeColor},Jt)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ve==="exercisepush")return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",Tt.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(ve==="shixunpush"&<===1)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Tt.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ve==="shixunpush"&<===2)return Tt.createElement(Tt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Tt.createElement("span",{className:ee.orangeColor},$t),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",Tt.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},De=()=>{if(ve==="exercise"||ve==="subject"||ve==="exercisepush"||ve==="shixunpush")return Tt.createElement("div",{style:{marginTop:20}},St>0&&Tt.createElement("div",null,Tt.createElement("span",{className:ee.flex},Tt.createElement("img",{src:ye,style:{width:14}}),Tt.createElement("span",{className:ee.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Tt.createElement("div",{className:ee.statusbody},ve==="exercise"&&Tt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Tt.createElement("span",{className:ee.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(ve==="subject"||ve==="exercisepush")&&Tt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",de&&Tt.createElement("span",{className:ee.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ve==="shixunpush"&&Tt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",de&&Tt.createElement("span",{className:ee.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Tt.createElement("div",null,mt==null?void 0:mt.map((Re,Ke)=>Tt.createElement("a",{href:`/shixuns/${Re.identifier}/challenges`,target:"_blank"},"\u300A",Re==null?void 0:Re.name,"\u300B",Ke+1!==St&&"\u3001"))))),ct>0&&Tt.createElement("div",{style:{marginTop:20}},Tt.createElement("span",{className:ee.flex},Tt.createElement("img",{src:me,style:{width:14}}),Tt.createElement("span",{className:ee.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Tt.createElement("div",{className:ee.statusbody},ve==="exercise"&&Tt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(ve==="subject"||ve==="exercisepush")&&Tt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ve==="shixunpush"&&Tt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Tt.createElement("div",null,et==null?void 0:et.map((Re,Ke)=>Tt.createElement("a",{href:`/shixuns/${Re.identifier}/challenges`,target:"_blank"},"\u300A",Re==null?void 0:Re.name,"\u300B",Ke+1!==ct&&"\u3001"))))));if(ve==="shixun")return Tt.createElement("div",{style:{marginTop:20}},ct>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return Tt.createElement(xe.default,{open:bt,onCancel:()=>{nt(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!de&&"none"}},zIndex:1003,confirmLoading:Ge,okText:de?ie:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ht(void 0,null,function*(){de?yield He([...et,...kt]):nt(!1)})},Tt.createElement("div",{style:{maxHeight:600,overflow:"auto"}},le(),De()))}},69720:function(Wn,ai,Ot){"use strict";Ot.d(ai,{h:function(){return St}});var Tt=Ot(59301),ee=Ot(82326),xe=Ot(28284),me=Ot(99571),ye=Ot(89780),Ht=Ot.n(ye),ae=Ot(8336),je=Ot(12469),ve=Object.defineProperty,Nt=Object.defineProperties,He=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,nt=(kt,zt,Gt)=>zt in kt?ve(kt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):kt[zt]=Gt,et=(kt,zt)=>{for(var Gt in zt||(zt={}))Ge.call(zt,Gt)&&nt(kt,Gt,zt[Gt]);if(ie)for(var Gt of ie(zt))bt.call(zt,Gt)&&nt(kt,Gt,zt[Gt]);return kt},ct=(kt,zt)=>Nt(kt,He(zt));const lt=ee.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},mt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ai.Z=({callback:kt,onCancel:zt})=>{const[Gt,$t]=(0,Tt.useState)("python");function Wt(de){$t(mt[de][1])}function Jt(de){kt(de)}return Tt.createElement(xe.default,ct(et({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Jt,style:{width:500}}),Tt.createElement(xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Tt.createElement(ee.default,{getPopupContainer:de=>de.parentNode,onChange:Wt},Object.keys(mt).map(de=>Tt.createElement(lt,{key:de,value:de},mt[de][0])))),Tt.createElement(xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Tt.createElement(St,{mode:Gt})),Tt.createElement("div",{className:"flex-container flex-end"},Tt.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Tt.createElement(me.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))};function St({value:kt,onChange:zt,mode:Gt,options:$t={}}){const Wt=(0,Tt.useRef)(),[Jt,de]=(0,Tt.useState)();return(0,Tt.useEffect)(()=>{if(Jt){let le=function(De){const Re=De.getValue();zt&&zt(Re)};return Jt.on("change",le),()=>{Jt.off("change",le)}}},[Jt,zt]),(0,Tt.useEffect)(()=>{Jt&&Jt.setOption("mode",Gt)},[Jt,Gt]),(0,Tt.useEffect)(()=>{Jt&&(kt!==Jt.getValue()||kt==="")&&setTimeout(()=>{Jt.setValue(kt||"")},300)},[Jt,kt]),(0,Tt.useEffect)(()=>{if(Wt.current&&!Jt){const le=Ht().fromTextArea(Wt.current,et({mode:Gt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$t));de(le)}},[Wt.current,Jt]),Tt.createElement("div",{className:"my-codemirror-container"},Tt.createElement("textarea",{ref:Wt}))}},39793:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return mo}});var Tt=Ot(59301),ee=Ot(89780),xe=Ot.n(ee),me=Ot(76374),ye=Ot(8336),Ht=Ot(6313),ae=Ot(25717),je=Ot(99498),ve=Ot(25419),Nt=Ot(67549),He=Ot(76902),ie=({value:Je="",className:$e,showTextOnly:Te,showLines:ln,style:Wi={}})=>{const Gi=(0,Tt.useMemo)(()=>"",[Je]);return Tt.createElement(Tt.Fragment,null,Tt.createElement("div",{dangerouslySetInnerHTML:{__html:Gi}}))},Ge=Object.defineProperty,bt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(Je,$e,Te)=>$e in Je?Ge(Je,$e,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Je[$e]=Te,mt=(Je,$e)=>{for(var Te in $e||($e={}))ct.call($e,Te)&>(Je,Te,$e[Te]);if(et)for(var Te of et($e))lt.call($e,Te)&>(Je,Te,$e[Te]);return Je},St=(Je,$e)=>bt(Je,nt($e));let kt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function zt({onActionCallback:Je,title:$e,icon:Te,actionName:ln,className:Wi="",children:Gi}){function Kr(){Je(ln)}return Tt.createElement("a",{title:$e,className:Wi,onClick:Kr},Tt.createElement("i",{className:`${Te}`}),Gi)}var Gt=({watch:Je,showNullButton:$e,showNullProgramButton:Te,onActionCallback:ln,fullScreen:Wi,insertTemp:Gi,hidetoolBar:Kr,extraUse:Nn})=>{const bi=[...kt,{title:`${Je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Tt.createElement("ul",{className:"markdown-toolbar-container"},!Kr&&bi.map((wr,Ko)=>Tt.createElement("li",{key:Ko},wr.actionName?Tt.createElement(zt,St(mt({},wr),{onActionCallback:ln})):Tt.createElement("span",{className:"v-line"}))),$e?Tt.createElement("li",null,Tt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ln},Tt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Te?Tt.createElement(Tt.Fragment,null,Tt.createElement("li",null,Tt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ln},Tt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Tt.createElement("li",null,Tt.createElement(zt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ln},Tt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Gi&&Tt.createElement("li",null,Tt.createElement(zt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gi}`,onActionCallback:ln},Tt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&Tt.createElement("li",null,Nn),Tt.createElement("li",{className:"btn-full-screen"},Tt.createElement(zt,{icon:`${Wi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Wi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ln})))},$t=Ot(91558),Wt=Ot(28284),Jt=Ot(37568),de=Ot(99571),le=Object.defineProperty,De=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,on=(Je,$e,Te)=>$e in Je?le(Je,$e,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Je[$e]=Te,gn=(Je,$e)=>{for(var Te in $e||($e={}))kn.call($e,Te)&&on(Je,Te,$e[Te]);if(Ke)for(var Te of Ke($e))qe.call($e,Te)&&on(Je,Te,$e[Te]);return Je},ge=(Je,$e)=>De(Je,Re($e));const Xt={labelCol:{span:4},wrapperCol:{span:20}};var Ve=({callback:Je,onCancel:$e})=>{function Te(ln){Je(ln)}return Tt.createElement(Wt.default,ge(gn({},Xt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Te,style:{width:500}}),Tt.createElement(Wt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Tt.createElement(Jt.default,null)),Tt.createElement(Wt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Tt.createElement(Jt.default,null)),Tt.createElement("div",{className:"flex-container flex-end"},Tt.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Tt.createElement(de.ZP,{type:"ghost",onClick:$e},"\u53D6\u6D88")))},An=Ot(69720),Bn=Ot(17077),Be=Ot(62957),dn=Ot(77019),Qe=Ot(9507),On=Ot(59301),we=({callback:Je,onCancel:$e})=>{const Te=document.createElement("canvas"),ln=Te.getContext("2d");Te.width=1e3,Te.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Te.width,Te.height);const Wi=Te.toDataURL("image/png");return On.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},On.createElement(dn.Z,{style:{height:"100vh"}},On.createElement(Qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Wi,visible:!0,title:String(Date.now())},onOk:Gi=>{Je({src:Gi.url})},onClose:$e})))},ue=Ot(12378);function Xe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Xe,go.CommandHandler),Xe.prototype.canAlignSelection=function(){var Je=this.diagram;return!(Je===null||Je.isReadOnly||Je.isModelReadOnly||Je.selection.count<2)},Xe.prototype.alignLeft=function(){var Je=this.diagram;Je.startTransaction("aligning left");var $e=1/0;Je.selection.each(function(Te){Te instanceof go.Link||($e=Math.min(Te.position.x,$e))}),Je.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point($e,Te.position.y))}),Je.commitTransaction("aligning left")},Xe.prototype.alignRight=function(){var Je=this.diagram;Je.startTransaction("aligning right");var $e=-1/0;Je.selection.each(function(Te){if(!(Te instanceof go.Link)){var ln=Te.actualBounds.x+Te.actualBounds.width;$e=Math.max(ln,$e)}}),Je.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point($e-Te.actualBounds.width,Te.position.y))}),Je.commitTransaction("aligning right")},Xe.prototype.alignTop=function(){var Je=this.diagram;Je.startTransaction("alignTop");var $e=1/0;Je.selection.each(function(Te){Te instanceof go.Link||($e=Math.min(Te.position.y,$e))}),Je.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point(Te.position.x,$e))}),Je.commitTransaction("alignTop")},Xe.prototype.alignBottom=function(){var Je=this.diagram;Je.startTransaction("aligning bottom");var $e=-1/0;Je.selection.each(function(Te){if(!(Te instanceof go.Link)){var ln=Te.actualBounds.y+Te.actualBounds.height;$e=Math.max(ln,$e)}}),Je.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point(Te.actualBounds.x,$e-Te.actualBounds.height))}),Je.commitTransaction("aligning bottom")},Xe.prototype.alignCenterX=function(){var Je=this.diagram,$e=Je.selection.first();if($e){Je.startTransaction("aligning Center X");var Te=$e.actualBounds.x+$e.actualBounds.width/2;Je.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(Te-ln.actualBounds.width/2,ln.actualBounds.y))}),Je.commitTransaction("aligning Center X")}},Xe.prototype.alignCenterY=function(){var Je=this.diagram,$e=Je.selection.first();if($e){Je.startTransaction("aligning Center Y");var Te=$e.actualBounds.y+$e.actualBounds.height/2;Je.selection.each(function(ln){ln instanceof go.Link||ln.move(new go.Point(ln.actualBounds.x,Te-ln.actualBounds.height/2))}),Je.commitTransaction("aligning Center Y")}},Xe.prototype.alignColumn=function(Je){var $e=this.diagram;$e.startTransaction("align Column"),Je===void 0&&(Je=0),Je=parseFloat(Je);var Te=new Array;$e.selection.each(function(Nn){Nn instanceof go.Link||Te.push(Nn)});for(var ln=0;ln0){for(var Nn=Gi.elt(Kr-1);Nn!==null&&Nn.isTreeExpanded&&!Nn.isTreeLeaf;){var bi=this._sortTreeChildrenByY(Nn);Nn=bi.last()}Nn!==null&&Je.select(Nn)}else Je.select(Wi)}}else if(Te.key==="Down")if($e.isTreeExpanded&&!$e.isTreeLeaf){var ln=this._sortTreeChildrenByY($e).first();ln!==null&&Je.select(ln)}else for(;$e!==null;){var Wi=$e.findTreeParentNode();if(Wi===null)break;var Gi=this._sortTreeChildrenByY(Wi),Kr=Gi.indexOf($e);if(KrGi.y?1:Wi.xGi.x?1:0}),$e},Xe.prototype.copyToClipboard=function(Je){go.CommandHandler.prototype.copyToClipboard.call(this,Je),this._lastPasteOffset.set(this.pasteOffset)},Xe.prototype.pasteFromClipboard=function(){var Je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Je},Object.defineProperty(Xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Je){if(Je!=="move"&&Je!=="select"&&Je!=="scroll"&&Je!=="tree"&&Je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Je);this._arrowKeyBehavior=Je}}),Object.defineProperty(Xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Je){if(!(Je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Je);this._pasteOffset.set(Je)}});var di=Xe,Li=Ot(63720),It=Ot(5269),Ct=Ot(38986),xt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ft=Ot(48790),jt=Ot(59301),Mt=(Je,$e,Te)=>new Promise((ln,Wi)=>{var Gi=bi=>{try{Nn(Te.next(bi))}catch(wr){Wi(wr)}},Kr=bi=>{try{Nn(Te.throw(bi))}catch(wr){Wi(wr)}},Nn=bi=>bi.done?ln(bi.value):Promise.resolve(bi.value).then(Gi,Kr);Nn((Te=Te.apply(Je,$e)).next())});function Ut({onCancel:Je,callback:$e}){let Te=(0,Tt.useRef)(),ln=(0,Tt.useRef)(),Wi=(0,Tt.useRef)(),Gi=(0,Tt.useRef)(!1);const Kr=(0,Tt.useRef)(!1),[Nn,bi]=(0,Tt.useState)(0);function wr(){const Si=ue.bx.make,qt={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"};Te.current=new ue.S0(ln.current,{padding:20,grid:Si(ue.s_,"Grid",Si(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Si(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ee=>{var Mi=Ee.diagram.commandHandler.addTopLevelParts(Ee.diagram.selection,!0);Mi||Ee.diagram.currentTool.doCancel()},commandHandler:Si(di),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ee=>{var Mi=Ee.subject;Mi.location=Mi.location.copy().snapToGridPoint(Ee.diagram.grid.gridOrigin,Ee.diagram.grid.gridCellSize),setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ee=>{var Mi=Ee.subject;setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ee=>{var Mi=Ee.parameter.part;Mi.invalidateConnectedLinks();var Ki=Ee.subject;Ee.diagram.toolManager.linkingTool.isForwards?Ki.toNode.invalidateConnectedLinks():Ki.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Te.current.nodeTemplate=Si(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),Si(ue.bn,{name:"SHAPE",fill:qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Si(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Si(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),Te.current.nodeTemplate.toolTip=Si("ToolTip",Si(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},Si(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),Si(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Ce(Ee,Mi){var Ki=(hi,xr)=>{hi.handled=!0,hi.diagram.model.commit(ur=>{var Cr=xr.part.adornedPart,Nr=new ue.E9().setRectSpot(Cr.actualBounds,Ee);Nr.subtract(Cr.location),Nr.scale(2,2),Nr.x+=Math.sign(Nr.x)*130,Nr.y+=Math.sign(Nr.y)*130,Nr.add(Cr.location),Nr.snapToGridPoint(hi.diagram.grid.gridOrigin,hi.diagram.grid.gridCellSize);var zr=ur.copyNodeData(Cr.data);ur.setGroupKeyForNodeData(zr,ur.getGroupKeyForNodeData(Cr.data)),ur.addNodeData(zr);var Qr={from:Cr.key,to:ur.getKeyForNodeData(zr)};ur.addLinkData(Qr);var an=hi.diagram.findNodeForData(zr);an.location=Nr,hi.diagram.select(an),setTimeout(()=>{hi.diagram.commandHandler.editTextBlock()},20)})};return Si(ue.bn,{figure:Mi,alignment:Ee,alignmentFocus:Ee.opposite(),width:Ee.equals(ue.z6.Top)||Ee.equals(ue.z6.Bottom)?25:18,height:Ee.equals(ue.z6.Top)||Ee.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(hi,xr)=>xr.fill="dodgerblue",mouseLeave:(hi,xr)=>xr.fill="orange",isActionable:!0,click:Ki,contextClick:Ki})}function Jn(Ee){return Si(ue.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Mi,Ki)=>Ki.fill="dodgerblue",mouseLeave:(Mi,Ki)=>Ki.fill="orange",click:(Mi,Ki)=>{Mi.diagram.commandHandler.showContextMenu(Ki.part.adornedPart)}},Ee||{})}Te.current.nodeTemplate.selectionAdornmentTemplate=Si(ue.uz,"Spot",Si(ue.Vm,{padding:10}),Ce(ue.z6.Top,"TriangleUp"),Ce(ue.z6.Left,"TriangleLeft"),Ce(ue.z6.Right,"TriangleRight"),Ce(ue.z6.Bottom,"TriangleDown"),Jn({alignment:new ue.z6(.75,0)}));function Qn(Ee,Mi){return(Ki,hi)=>{Ki.handled=!0,Ki.diagram.model.commit(xr=>{xr.set(hi.part.adornedPart.data,Ee,Mi)})}}function Ze(Ee,Mi){return Mi||(Mi="color"),Si(ue.bn,{width:16,height:16,stroke:"lightgray",fill:Ee,margin:1,background:"transparent",mouseEnter:(Ki,hi)=>hi.stroke="dodgerblue",mouseLeave:(Ki,hi)=>hi.stroke="lightgray",click:Qn(Mi,Ee),contextClick:Qn(Mi,Ee)})}function qn(){return[Si("ContextMenuButton",Si(ue.s_,"Horizontal",Ze(qt.white,"fill"),Ze(qt.beige,"fill"),Ze(qt.extralightblue,"fill"),Ze(qt.extralightred,"fill"))),Si("ContextMenuButton",Si(ue.s_,"Horizontal",Ze(qt.lightgray,"fill"),Ze(qt.lightgreen,"fill"),Ze(qt.lightblue,"fill"),Ze(qt.lightred,"fill")))]}function Rn(){return[Si("ContextMenuButton",Si(ue.s_,"Horizontal",Ze(qt.black),Ze(qt.green),Ze(qt.blue),Ze(qt.red))),Si("ContextMenuButton",Si(ue.s_,"Horizontal",Ze(qt.white),Ze(qt.magenta),Ze(qt.purple),Ze(qt.orange)))]}function zn(Ee,Mi){return Mi||(Mi="thickness"),Si(ue.bn,"LineH",{width:16,height:16,strokeWidth:Ee,margin:1,background:"transparent",mouseEnter:(Ki,hi)=>hi.background="dodgerblue",mouseLeave:(Ki,hi)=>hi.background="transparent",click:Qn(Mi,Ee),contextClick:Qn(Mi,Ee)})}function Pi(Ee,Mi){return Mi||(Mi="dash"),Si(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ee,margin:1,background:"transparent",mouseEnter:(Ki,hi)=>hi.background="dodgerblue",mouseLeave:(Ki,hi)=>hi.background="transparent",click:Qn(Mi,Ee),contextClick:Qn(Mi,Ee)})}function ti(){return[Si("ContextMenuButton",Si(ue.s_,"Horizontal",zn(1),zn(2),zn(3),zn(4))),Si("ContextMenuButton",Si(ue.s_,"Horizontal",Pi(null),Pi([2,4]),Pi([4,4])))]}function ii(Ee,Mi){return Mi||(Mi="figure"),Si(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ee,margin:1,background:"transparent",mouseEnter:(Ki,hi)=>hi.fill="dodgerblue",mouseLeave:(Ki,hi)=>hi.fill="lightgray",click:Qn(Mi,Ee),contextClick:Qn(Mi,Ee)})}Te.current.nodeTemplate.contextMenu=Si("ContextMenu",Si("ContextMenuButton",Si(ue.s_,"Horizontal",ii("Rectangle"),ii("RoundedRectangle"),ii("Ellipse"),ii("Diamond"))),Si("ContextMenuButton",Si(ue.s_,"Horizontal",ii("Parallelogram2"),ii("ManualOperation"),ii("Procedure"),ii("Cylinder1"))),Si("ContextMenuButton",Si(ue.s_,"Horizontal",ii("Terminator"),ii("CreateRequest"),ii("Document"),ii("TriangleDown"))),qn(),Rn(),ti()),Te.current.groupTemplate=Si(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ee,Mi)=>{var Ki=Mi.addMembers(Mi.diagram.selection,!0);Ki||Mi.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),Si(ue.s_,"Auto",{name:"BODY"},Si(ue.bn,{parameter1:10,fill:qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Si(ue.Vm,{background:"transparent",margin:20})),Si(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),Te.current.groupTemplate.selectionAdornmentTemplate=Si(ue.uz,"Spot",Si(ue.s_,"Auto",Si(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Si(ue.Vm,{margin:1.5})),Jn({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),Te.current.groupTemplate.contextMenu=Si("ContextMenu",qn(),Rn(),ti()),Te.current.linkTemplate=Si(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",Ee=>Ee>=1?10:0),new ue.KX("toShortLength","dir",Ee=>Ee>=1?10:0),new ue.KX("points").makeTwoWay(),Si(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Si(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Ee=>Ee===1)),Si(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Ee=>Ee>=1),new ue.KX("width","thickness",Ee=>7+3*Ee),new ue.KX("height","thickness",Ee=>7+3*Ee),new ue.KX("segmentOffset","thickness",Ee=>new ue.E9(-15,4+1.5*Ee))),Si(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Ee=>Ee===2),new ue.KX("width","thickness",Ee=>7+3*Ee),new ue.KX("height","thickness",Ee=>7+3*Ee),new ue.KX("segmentOffset","thickness",Ee=>new ue.E9(-15,4+1.5*Ee))),Si(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),Te.current.linkTemplate.selectionAdornmentTemplate=Si(ue.uz,Si(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Fi(2)},new ue.KX("pathPattern","thickness",Fi)),Jn({alignmentFocus:new ue.z6(0,0,-6,-4)}));function Fi(Ee){return Si(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ee+4).toString()+" H3"})}function yr(Ee){var Mi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ee===0?Mi="M0 0 M16 16 M0 8 L16 8":Ee===2&&(Mi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Si(ue.bn,{geometryString:Mi,margin:2,background:"transparent",mouseEnter:(Ki,hi)=>hi.background="dodgerblue",mouseLeave:(Ki,hi)=>hi.background="transparent",click:Qn("dir",Ee),contextClick:Qn("dir",Ee)})}function ir(Ee){var Mi=(Ki,hi)=>{Ki.handled=!0,Ki.diagram.model.commit(xr=>{var ur=hi.part.adornedPart;xr.set(ur.data,Ee?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(Ee?ur.toNode:ur.fromNode).invalidateConnectedLinks()})};return Si(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ki,hi)=>hi.background="dodgerblue",mouseLeave:(Ki,hi)=>hi.background="transparent",click:Mi,contextClick:Mi})}function Ln(Ee,Mi){var Ki=0,hi=ue.z6.RightSide;Ee.equals(ue.z6.Top)?(Ki=270,hi=ue.z6.TopSide):Ee.equals(ue.z6.Left)?(Ki=180,hi=ue.z6.LeftSide):Ee.equals(ue.z6.Bottom)&&(Ki=90,hi=ue.z6.BottomSide),Mi||(Ki-=180);var xr=(ur,Cr)=>{ur.handled=!0,ur.diagram.model.commit(Nr=>{var zr=Cr.part.adornedPart;Nr.set(zr.data,Mi?"toSpot":"fromSpot",ue.z6.stringify(hi)),(Mi?zr.toNode:zr.fromNode).invalidateConnectedLinks()})};return Si(ue.bn,{alignment:Ee,alignmentFocus:Ee.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ki,background:"transparent",mouseEnter:(ur,Cr)=>Cr.background="dodgerblue",mouseLeave:(ur,Cr)=>Cr.background="transparent",click:xr,contextClick:xr})}Te.current.linkTemplate.contextMenu=Si("ContextMenu",Rn(),ti(),Si("ContextMenuButton",Si(ue.s_,"Horizontal",yr(0),yr(1),yr(2))),Si("ContextMenuButton",Si(ue.s_,"Horizontal",Si(ue.s_,"Spot",ir(!1),Ln(ue.z6.Top,!1),Ln(ue.z6.Left,!1),Ln(ue.z6.Right,!1),Ln(ue.z6.Bottom,!1)),Si(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},ir(!0),Ln(ue.z6.Top,!0),Ln(ue.z6.Left,!0),Ln(ue.z6.Right,!0),Ln(ue.z6.Bottom,!0)))));const vi=`{ "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 mr=["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 br(Ee){return console.log("shapeName:",Ee),mr.indexOf(Ee)>=0}var to=new ue.YI(Wi.current,{maxSelectionCount:1,linkTemplate:Si(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:Si(ue.uz,"Link",{locationSpot:ue.z6.Center},Si(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Si(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),Si(ue.bn,{isPanelMain:!0,strokeWidth:2}),Si(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(Ee=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ee.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Te.current.addDiagramListener("TextEdited",function(Ee){var Mi;const Ki=Ee.subject.part;var hi=(Mi=document.activeElement)==null?void 0:Mi.value;typeof hi=="string"&&hi.trim()===""&&Te.current.model.commit(function(xr){xr.set(Ki.data,"text","\u672A\u547D\u540D"),Te.current.commandHandler.stopCommand()},"increment")}),to.nodeTemplate=Si(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),Si(ue.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),Si(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{Te.current.grid=Si(ue.s_,"Grid",Si(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Si(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Te.current.grid.visible=!0,Te.current.grid.gridCellStroke="darkgray",Te.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Te.current,Te.current}const Ko=()=>Mt(this,null,function*(){var Si,qt=Te.current.makeImage();const Ce=yield(0,Ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:qt.src,file_data:JSON.stringify({login:(Si=(0,Ft.eY)())==null?void 0:Si.login,data:JSON.parse(Te.current.model.toJson())})}});$e({src:Ce.url})});return(0,Tt.useEffect)(()=>(setTimeout(()=>{wr()},500),bi(Nn+1),()=>{Te.current=null}),[]),jt.createElement("div",{ref:Kr,className:"body-overflow-initial"},jt.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Nn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:jt.createElement(dn.Z,null,jt.createElement(It.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),jt.createElement(It.Z,{onClick:()=>{var Si,qt,Ce=Te.current.selection.first();if(Gi.current=!Gi.current,document.activeElement&&Ce){let Jn=(qt=(Si=document.activeElement)==null?void 0:Si.value)==null?void 0:qt.trim();typeof Jn=="string"&&Te.current.model.commit(function(Qn){Qn.set(Ce.data,"text",Jn||"\u672A\u547D\u540D"),Te.current.commandHandler.stopCommand()},"increment")}bi(Nn+1)}},jt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Je},jt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Gi.current?"none":"block"},className:xt.flowChartWrp},jt.createElement("div",{style:{display:"flex",height:"100%"}},jt.createElement("div",{style:{width:"300px",height:"100%"}},jt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),jt.createElement("div",{style:{height:"calc(100% - 50px)"},className:xt.myPaletteDiv,ref:Wi})),jt.createElement("div",{style:{flex:1,position:"relative"}},jt.createElement("div",{ref:ln,style:{height:"80vh"}}))),jt.createElement("div",{className:"tr"},jt.createElement(de.ZP,{size:"large",onClick:Ko,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Fe=Ut,Se=Ot(47889),nn=Ot(71051);const Le=Se.ZP.Group,Pe={margin:"0 8px"};var be=({callback:Je,onCancel:$e})=>{function Te(ln){Je(ln)}return Tt.createElement(Wt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Te},Tt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Tt.createElement("span",{style:Pe},"\u5355\u5143\u683C\u6570\uFF1A"),Tt.createElement("span",{style:Pe},"\u884C\u6570"),Tt.createElement(Wt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Tt.createElement(nn.Z,null)),Tt.createElement("span",{style:Pe},"\u5217\u6570"),Tt.createElement(Wt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Tt.createElement(nn.Z,null))),Tt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Tt.createElement("span",{style:Pe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Tt.createElement(Wt.default.Item,{name:"align"},Tt.createElement(Le,null,Tt.createElement(Se.ZP,{value:"default"},Tt.createElement("i",{className:"fa fa-align-justify"})),Tt.createElement(Se.ZP,{value:"left"},Tt.createElement("i",{className:"fa fa-align-left"})),Tt.createElement(Se.ZP,{value:"center"},Tt.createElement("i",{className:"fa fa-align-center"})),Tt.createElement(Se.ZP,{value:"right"},Tt.createElement("i",{className:"fa fa-align-right"}))))),Tt.createElement("div",{className:"flex-container flex-end"},Tt.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Tt.createElement(de.ZP,{type:"ghost",onClick:$e},"\u53D6\u6D88")))},We=Ot(71411),rn=Ot(43001),Hn=Ot.n(rn),Cn=(0,Tt.forwardRef)(({use3d:Je,width:$e,height:Te,callback:ln,showSaveButton:Wi},Gi)=>{const Kr=(0,Tt.useRef)(),Nn=(0,Tt.useRef)(),[bi,wr]=(0,Tt.useState)(!1),Ko=(0,Tt.useRef)({id:Kr,appName:"graphing",width:$e||1e3,height:Te||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Tt.useEffect)(()=>{Nn.current=new(Hn())(Ko.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const Si=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(qt),qt};return(0,Tt.useEffect)(()=>{Ko.current.appName=bi?"3D":"graphing",Nn.current.inject("applet_container")},[bi]),(0,Tt.useEffect)(()=>{wr(Je)},[Je]),(0,Tt.useImperativeHandle)(Gi,()=>({getImgData:Si})),Tt.createElement(Tt.Fragment,null,Tt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Kr}),Tt.createElement(dn.Z,{align:"middle"},Tt.createElement(It.Z,{flex:1},Tt.createElement(We.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:bi,onChange:qt=>wr(qt)})),Tt.createElement(It.Z,null,Tt.createElement(de.ZP,{size:"large",onClick:Si,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),mi=Ot(76562),Gn=Ot(6767);const yi="link",ni="upload-image",ki="add-flowchart",Ri="draw-image",Qi="add-flowchart",Ir="code-block",Xi="add-table",Rr="------------",wo={default:Rr,left:`:${Rr}`,center:`:${Rr}:`,right:`${Rr}:`};var oo=Ot(37808);function uo(){}let po=0;const Do=1e4,Zo="\u2581",Lo="@\u2581\u2581@",Vo="@\u2581@",Lt=` **\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`,yn=["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 Dn(Je){return/^\d+$/.test(Je)?`${Je}px`:Je}const vr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Vi={[vr+"-B"]:"bold",[vr+"-I"]:"italic"},Jr={[yi]:"\u6DFB\u52A0\u94FE\u63A5",[Ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ni]:"\u6DFB\u52A0\u56FE\u7247",[Ri]:"\u6DFB\u52A0\u753B\u56FE",[ki]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var mo=({defaultValue:Je="",onChange:$e,width:Te="100%",height:ln=400,miniToolbar:Wi=!1,isFocus:Gi=!1,watch:Kr,insertTemp:Nn,mode:bi="markdown",id:wr="markdown-editor-id",showResizeBar:Ko=!1,noStorage:Si=!1,showNullButton:qt=!1,showNullProgramButton:Ce=!1,hidetoolBar:Jn=!1,fullScreen:Qn=!1,onBlur:Ze,onCMBeforeChange:qn,onFullScreen:Rn,className:zn="",disablePaste:Pi=!1,disabled:ti=!1,disabledFill:ii=!1,placeholder:Fi="",values:yr="",extraUse:ir})=>{const[Ln,vi]=(0,Tt.useState)(null),[mr,br]=(0,Tt.useState)(Je),[to,Ee]=(0,Tt.useState)(Kr),[Mi,Ki]=(0,Tt.useState)(Qn),[hi,xr]=(0,Tt.useState)(""),[ur,Cr]=(0,Tt.useState)(0),[Nr,zr]=(0,Tt.useState)(ln),[Qr,an]=(0,Tt.useState)(!1),[vo,sn]=(0,Tt.useState)(0),[Zi,jr]=(0,Tt.useState)(0),Tr=(0,Tt.useRef)(),Fo=(0,Tt.useRef)(),Gr=(0,Tt.useRef)(),Sr=(0,Tt.useRef)();(0,Tt.useEffect)(()=>{const In=window.scrollY||window.pageYOffset;br(yr),Ln==null||Ln.setValue(yr),window.scrollTo(0,In)},[yr]),(0,Tt.useEffect)(()=>{Rn==null||Rn(Mi)},[Mi]),(0,Tt.useEffect)(()=>{if(Tr.current){let In=function(ne,Yt){var fe;if(Pi){Yt.preventDefault();return}const pe=Yt.clipboardData;if(pe){const Oe=pe.types.toString(),Ie=pe.items;if(Oe==="Files"||pe.types.indexOf("Files")>-1){if(Yt.preventDefault(),bi=="stex")return;try{let Ye=Ie[1];((fe=Ie[0])==null?void 0:fe.kind)==="file"&&(Ye=Ie[0]);const Pn=Ye.getAsFile(),En=Pn.name.split(".").pop();(0,Bn.I)(Pn,Ue=>{var Zn,ri,oe;Ue.id?((Zn=Pn==null?void 0:Pn.type)==null?void 0:Zn.indexOf("image"))>-1?At.replaceSelection(``):((ri=Pn==null?void 0:Pn.type)==null?void 0:ri.indexOf("video"))>-1?At.replaceSelection(``):((oe=Pn==null?void 0:Pn.type)==null?void 0:oe.indexOf("pdf"))>-1?At.replaceSelection(`${Pn.name}`):yn.includes(En)?At.replaceSelection(`${Pn.name}`):At.replaceSelection(`[${Pn.name}](/api/attachments/${Ue.id}?type=${Ue.content_type})`):(Ue==null?void 0:Ue.status)===401&&(document.location.href="/user/login")})}catch(Ye){Gn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const At=xe().fromTextArea(Tr.current,{mode:bi,lineNumbers:!Wi,lineWrapping:!0,value:Je,autoCloseTags:!0,autoCloseBrackets:!0});return At.on("keyup",function(ne,Yt){Yt.keyCode===8&&(ne.getValue()==""?At.setOption("placeholder",Fi):At.setOption("placeholder",null))}),At.on("keydown",function(ne,Yt){if(Yt.keyCode===8){var fe=Ne(ne);fe&&Yt.preventDefault()}}),Gi&&At.focus(),At.on("paste",In),ti&&At.on("beforeChange",function(ne,Yt){(Yt.origin==="paste"||Yt.origin==="+input")&&Yt.cancel()}),vi(At),()=>{At.off("paste",In)}}},[]);const bo=(0,Tt.useCallback)(()=>{if(Fo.current)try{}catch(In){console.log(In,"---- to set md editor body height")}},[Nr,Fo,Mi]);(0,Tt.useEffect)(()=>{function In(){let At=new me.Z(ne=>{for(let Yt of ne)(Yt.target.offsetHeight>0||Yt.target.offsetWidth>0)&&(bo(),Ln.setSize("100%","100%"),Ln.refresh())});return At.observe(Tr.current.parentElement),At}if(Ln){const At=In();return()=>{var ne,Yt;(ne=Tr.current)!=null&&ne.parentElement&&At.unobserve((Yt=Tr.current)==null?void 0:Yt.parentElement)}}},[Ln,bo]),(0,Tt.useEffect)(()=>{if(Ln){let In=[];for(const[At,ne]of Object.entries(Vi)){let Yt={[At]:()=>{cn(ne)}};In.push(Yt),Ln.addKeyMap(Yt)}return()=>{for(let At of In)Ln.removeKeyMap(At)}}},[Ln]),(0,Tt.useEffect)(()=>{Qn!==Mi&&Ki(Qn)},[Qn]),(0,oo.Z)(()=>{if(!Si&&ur>0){let In=new Date().getTime(),At=window.sessionStorage.getItem(wr);In>=ur+Do&&(!At||At!==mr)&&(window.sessionStorage.setItem(wr,mr),an(!0))}},Do),(0,Tt.useEffect)(()=>{Ee(Kr)},[Ln,Kr]),(0,Tt.useEffect)(()=>{Ln&&Gi&&Ln.focus()},[Ln,Gi]),(0,Tt.useEffect)(()=>{if(to&&Ln){let In=function(ne){let Yt=ne.target;if(Sr.current){let fe=Yt.scrollTop/Yt.scrollHeight;Sr.current.scrollTop=Sr.current.scrollHeight*fe}};const At=Ln.getScrollerElement();return At.addEventListener("scroll",In),()=>{At.removeEventListener("scroll",In)}}},[Ln,to]),(0,Tt.useEffect)(()=>{if(Ln&&qn){let In=function(At,ne){qn(At,ne)};return Ln.on("beforeChange",In),()=>{Ln.off("beforeChange",In)}}},[Ln,qn]),(0,Tt.useEffect)(()=>{if(Ln&&Ze){let In=function(){Ze(Ln.getValue())};return Ln.on("blur",In),()=>{Ln.off("blur",In)}}},[Ln,Ze]);function Ne(In,At){var ne=In.getDoc(),Yt=ne.getCursor(),fe=ne.getLine(Yt.line),pe=fe.charAt(Yt.ch-1),Oe=fe.lastIndexOf("@\u2581@",Yt.ch),Ie=fe.lastIndexOf("@\u2581\u2581@",Yt.ch),Ye=Oe>Ie?Oe:Ie,Pn=Oe>Ie?3:4;if(Lo.indexOf(pe)===-1)return null;if(console.log("change1:",At,In,fe,Yt,Ye,Oe,Ie,pe),Ye>=0&&Yt.ch-Ye<5){var En=Ye+Pn;return ne.replaceRange("",{line:Yt.line,ch:Ye},{line:Yt.line,ch:En}),{line:Yt.line,ch:En}}return null}(0,Tt.useEffect)(()=>{if(Ln){let In=function(At,ne){const Yt=At.getValue();br(Yt),Cr(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$e&&(Ce?$e(Yt,un(Yt)):$e(Yt))};return Ln.on("change",In),()=>{Ln.off("change",In)}}},[Ln,$e]),(0,Tt.useEffect)(()=>{if(Ln)if(Je==null)Ln.setValue(""),br("");else{const In=window.scrollY||window.pageYOffset;Je!==Ln.getValue()&&(Ln.setValue(Je),br(Je),Ln.setCursor(ti?1:Ln.lineCount(),0),window.scrollTo(0,In))}},[Ln,Je]);const cn=(0,Tt.useCallback)(In=>{const At=Ln.getCursor(),ne=Ln.getSelection();let Yt=ne.split(` `);switch(In){case"bold":return Ln.replaceSelection("**"+ne+"**"),ne===""&&Ln.setCursor(At.line,At.ch+2),Ln.focus();case"italic":return Ln.replaceSelection("*"+ne+"*"),ne===""&&Ln.setCursor(At.line,At.ch+1),Ln.focus();case"code":return Ln.replaceSelection("`"+ne+"`"),ne===""&&Ln.setCursor(At.line,At.ch+1),Ln.focus();case"inline-latex":return xr("inline-latex"),Ln.focus();case"latex":return Ln.replaceSelection("```latex\n"+ne+"\n```"),Ln.setCursor(At.line+1,ne.length+1),Ln.focus();case"line-break":return Ln.replaceSelection(`
`),Ln.focus();case"list-ul":return ne===""?Ln.replaceSelection("- "+ne):Ln.replaceSelection(Yt.map(fe=>fe===""?"":`- ${fe}`).join(` `)),Ln.focus();case"list-ol":return ne===""?Ln.replaceSelection("1. "+ne):Ln.replaceSelection(Yt.map((fe,pe)=>fe===""?"":`${pe+1}. ${fe}`).join(` `)),Ln.focus();case"add-null-ch":return ne===""&&Ln.setCursor(At.line,At.ch),Ln.replaceSelection(Zo),Ln.focus();case"add-signal":return ne===""&&Ln.setCursor(At.line,At.ch),Ln.replaceSelection(Vo),Ln.focus();case"add-multiple":return ne===""&&Ln.setCursor(At.line,At.ch),Ln.replaceSelection(Lo),Ln.focus();case"inster-template-1":return ne===""&&Ln.setCursor(At.line,At.ch),Ln.replaceSelection(Lt),Ln.focus();case"eraser":return Ln.setValue(""),Ln.focus();case"trigger-watch":return Ee(!to),Ln.focus();case"trigger-full-screen":return Ki(!Mi),Ln.focus();case yi:xr(yi);return;case Ir:xr(Ir);return;case ni:xr(ni);return;case Ri:xr(Ri);return;case"maths-latex":xr("maths-latex");return;case ki:xr(ki);return;case Xi:xr(Xi);return;default:throw new Error}},[Ln,to,Mi]),Ae=(0,Tt.useCallback)((In,At)=>{var ne,Yt,fe,pe,Oe,Ie;switch(xr(""),hi){case yi:const{title:Zn,link:ri}=In;return Ln.replaceSelection(`[${Zn}](${ri})`),Ln.focus();case Ir:const{language:oe,content:Tn}=In;return Ln.replaceSelection(["```"+oe,Tn,"```"].join(` `)),Ln.focus();case"maths-latex":for(var Ye=atob(In),Pn=new Uint8Array(Ye.length),En=0;En{Ii.id?Ln.replaceSelection(`![,](/api/attachments/${Ii.id}?type=${Ii.content_type})`):(Ii==null?void 0:Ii.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ln.replaceSelection("`$$"+In+"$$`");break;case ni:case Ri:case Qi:const{src:Fn,alt:wn}=In,pn=At,ci=(fe=(Yt=(ne=pn==null?void 0:pn.name)==null?void 0:ne.split("."))==null?void 0:Yt.pop)==null?void 0:fe.call(Yt);return((pe=pn==null?void 0:pn.type)==null?void 0:pe.indexOf("image"))>-1||!(pn!=null&&pn.type)?pn!=null&&pn.align||pn!=null&&pn.width?Ln.replaceSelection(`

${wn||

`):Ln.replaceSelection(`${wn||`):((Oe=pn==null?void 0:pn.type)==null?void 0:Oe.indexOf("video"))>-1?Ln.replaceSelection(``):((Ie=pn==null?void 0:pn.type)==null?void 0:Ie.indexOf("pdf"))>-1?Ln.replaceSelection(`${pn.name}`):yn.includes(ci)?Ln.replaceSelection(`${pn.name}`):Ln.replaceSelection(`[${pn.name}](${Fn})`),Ln.focus();case Xi:const{row:li,col:_n,align:oi}=In;let pi=` `;for(let Ii=0;Ii{switch(hi){case yi:return Tt.createElement(Ve,{callback:Ae,onCancel:bn});case Ir:return Tt.createElement(An.Z,{callback:Ae,onCancel:bn});case ni:return Tt.createElement(Bn.Z,{callback:Ae,onCancel:bn});case ki:return Tt.createElement(Fe,{callback:Ae,onCancel:bn});case Xi:return Tt.createElement(be,{callback:Ae,onCancel:bn});case"maths-latex":return Tt.createElement(Cn,{showSaveButton:!0,callback:Ae});case"inline-latex":return Tt.createElement(mi.Z,{showSaveButton:!0,callback:Ae});default:return null}},[hi]);function bn(){xr("")}(0,Tt.useEffect)(()=>{if(Gr.current){let In=function(Oe){fe=!0,pe=Oe.pageY},At=function(){fe=!1},ne=function(Oe){if(fe){let Ie=Oe.pageY-pe;Ie<0&&(Ie=0),Ie>300&&(Ie=300);let Ye=ln+Ie+"px";zr(Ye)}},Yt=Gr.current,fe=!1,pe=0;return Yt.addEventListener("mousedown",In),document.addEventListener("mousemove",ne),document.addEventListener("mouseup",At),()=>{Yt.removeEventListener("mousedown",In),document.removeEventListener("mousemove",ne),document.removeEventListener("mouseup",At)}}},[Ln,Gr]),(0,Tt.useEffect)(()=>{zr(ln)},[ln]);const si=Dn(Te),Oi=Dn(Nr),Ai={width:si,height:Oi},gi=(0,Tt.useMemo)(()=>{if(ur){let In=new Date(ur),At=In.getHours(),ne=In.getMinutes(),Yt=In.getSeconds();return At=At<10?"0"+At:At,ne=ne<10?"0"+ne:ne,Yt=Yt<10?"0"+Yt:Yt,`${At}:${ne}:${Yt}`}return 0},[ur]),un=In=>{const At=[];if(Ce){let ne=-1;In=In.replace(/(@▁▁@|@▁@)/g,function(Yt,fe,pe){At.push({multiLine:Yt!==Vo})})}return At};function Vn(){window.sessionStorage.removeItem(wr),an(!1),Cr(0)}function Xn(){an(!1),Cr(0),Ln.setValue(window.sessionStorage.getItem(wr))}(0,Tt.useEffect)(()=>{Jr[hi]&&hi!==Ri&&hi!==ki&&setTimeout(()=>{const In=document.getElementsByClassName("markdown-popup-form")[0],At=window.innerWidth/2-In.offsetWidth/2,ne=window.innerHeight/2-In.offsetHeight/2;sn(At),jr(ne)},0)},[hi]);const Mn=In=>{In.preventDefault();const At=In.clientX-vo,ne=In.clientY-Zi;document.body.onmousemove=Yt=>{let fe=Yt.clientX-At,pe=Yt.clientY-ne;const Oe=document.getElementsByClassName("markdown-popup-form")[0],Ie=window.innerWidth-Oe.offsetWidth,Ye=window.innerHeight-Oe.offsetHeight;fe=Math.max(0,Math.min(fe,Ie)),pe=Math.max(0,Math.min(pe,Ye)),Yn(Yt.clientX,Yt.clientY,At,ne)&&(sn(fe),jr(pe))},document.body.onmouseup=function(){document.body.onmousemove=null}},Yn=(In,At,ne,Yt)=>{const fe=document.body.clientHeight,pe=document.body.clientWidth;return In<20&&ne>In||In>pe-20&&neAt||At>fe-20&&YtJt in Wt?He(Wt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:de}):Wt[Jt]=de,lt=(Wt,Jt)=>{for(var de in Jt||(Jt={}))nt.call(Jt,de)&&ct(Wt,de,Jt[de]);if(bt)for(var de of bt(Jt))et.call(Jt,de)&&ct(Wt,de,Jt[de]);return Wt},gt=(Wt,Jt)=>ie(Wt,Ge(Jt));const{useForm:mt}=Tt.default,St={width:280,marginRight:10},kt={labelCol:{span:5},wrapperCol:{span:19}};var zt=({callback:Wt,onCancel:Jt})=>{const[de]=mt();let le=(0,ve.useRef)();function De(kn){le.current.width=de.getFieldValue("width"),le.current.align=de.getFieldValue("align"),Wt(kn,le.current)}function Re(kn,qe){if(kn.status===-1){ee.ZP.error(kn.message);return}de.setFieldsValue({src:`/api/attachments/${kn.id}`,type:qe.type})}function Ke(kn){let qe=kn.target.files[0];le.current=qe,$t(qe,Re)}return Nt.createElement(Tt.default,gt(lt({form:de},kt),{className:"upload-image-panel",onFinish:De,style:{width:470,overflow:"hidden"}}),Nt.createElement(Tt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Nt.createElement("div",{className:"flex-container"},Nt.createElement(Tt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Nt.createElement(xe.default,{style:St})),Nt.createElement(Gt,{onFileChange:Ke}))),Nt.createElement(Tt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Nt.createElement(xe.default,{style:{width:264}})),Nt.createElement(Tt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Nt.createElement(me.Z,null,Nt.createElement(Tt.default.Item,{name:"width",style:{margin:0}},Nt.createElement(ye.Z,{style:{width:264}})),Nt.createElement("span",{className:"ml8"},"%"))),Nt.createElement(Tt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Nt.createElement(Ht.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Nt.createElement("aside",null,Nt.createElement(Tt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Nt.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Nt.createElement(ae.ZP,{type:"default",onClick:Jt},"\u53D6\u6D88"))))};function Gt({onFileChange:Wt}){return Nt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Nt.createElement("input",{type:"file",onChange:Wt}))}function $t(Wt,Jt){if(!Wt)throw new String("\u6CA1\u6709\u6587\u4EF6");let de=new FormData;de.append("editormd-image-file",Wt),de.append("file_param_name","editormd-image-file"),de.append("byxhr","true");var le=new window.XMLHttpRequest;le.withCredentials=!0,le.addEventListener("load",function(De){Jt(JSON.parse(De.target.responseText),Wt)},!1),le.addEventListener("error",function(De){console.error(De)},!1),le.open("POST",`${je.KI}/api/attachments.json`),le.send(de)}},91558:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return xe}});var Tt=Ot(59301),ee=Ot(4676);class xe extends Tt.Component{constructor(ye){super(ye);const Ht=window.document;this.node=Ht.createElement("div"),Ht.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,ee.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Wn,ai,Ot){"use strict";Ot.d(ai,{SV:function(){return Fe},ZP:function(){return Ut}});var Tt=Ot(59301),ee=Ot(76374);const xe={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"]},me={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"]},ye={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(` `)}]},Ht={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},ae={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 je=Ot(53184),ve=Ot.n(je),Nt=Object.defineProperty,He=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,et=(Se,nn,Le)=>nn in Se?Nt(Se,nn,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[nn]=Le,ct=(Se,nn)=>{for(var Le in nn||(nn={}))bt.call(nn,Le)&&et(Se,Le,nn[Le]);if(Ge)for(var Le of Ge(nn))nt.call(nn,Le)&&et(Se,Le,nn[Le]);return Se},lt=(Se,nn)=>He(Se,ie(nn)),gt=(Se,nn,Le)=>new Promise((Pe,be)=>{var We=vn=>{try{Hn(Le.next(vn))}catch(Cn){be(Cn)}},rn=vn=>{try{Hn(Le.throw(vn))}catch(Cn){be(Cn)}},Hn=vn=>vn.done?Pe(vn.value):Promise.resolve(vn.value).then(We,rn);Hn((Le=Le.apply(Se,nn)).next())});const mt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},St=(Se,nn)=>nn.map(Le=>({label:Le,kind:Se.languages.CompletionItemKind.Keyword,insertText:Le})),kt=Se=>Object.keys(mt.tables).map(nn=>({label:nn,kind:Se.languages.CompletionItemKind.Variable,insertText:nn})),zt=(Se,nn)=>{const Le=mt.tables[Se];return Le?Le.map(Pe=>({label:Pe,kind:nn.languages.CompletionItemKind.Field,insertText:Pe})):[]};function Gt(Se,nn,Le,Pe,be){let We=nn.getWordUntilPosition(Le),rn={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},Hn=Pe.map(vn=>({label:vn,kind:Se.languages.CompletionItemKind.Keyword,insertText:vn,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rn}));return be.map(vn=>{Hn.push(lt(ct({},vn),{range:rn}))}),Hn}var $t=Se=>{mt.languages.map(be=>(Se.languages.registerDocumentFormattingEditProvider(be,{provideDocumentFormattingEdits(We,rn,Hn){return gt(this,null,function*(){const vn=ve()(We.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:We.getFullModelRange(),text:vn}]})}}),be));const nn=ye.quickKey.map(be=>({label:be.label,kind:Se.languages.CompletionItemKind.Method,insertText:be.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Le=Ht.quickKey.map(be=>({label:be.label,kind:Se.languages.CompletionItemKind.Method,insertText:be.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Pe=me.quickKey.map(be=>({label:be.label,kind:Se.languages.CompletionItemKind.Method,insertText:be.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Se.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(be,We){var rn=be.getWordUntilPosition(We),Hn={startLineNumber:We.lineNumber,endLineNumber:We.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},vn=be.getLineContent(We.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...ye.keywords.map(Cn=>({label:Cn,kind:Se.languages.CompletionItemKind.Function,documentation:Cn,insertText:Cn,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn})),...ye.quickKey.map(Cn=>({label:Cn.label,kind:Se.languages.CompletionItemKind.Function,documentation:Cn.content,insertText:vn.startsWith("#")?Cn.content.replace(/#/,""):Cn.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn}))]}}}),Se.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(be,We){var rn=be.getWordUntilPosition(We),Hn={startLineNumber:We.lineNumber,endLineNumber:We.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn};return{suggestions:[...xe.keywords.map(vn=>({label:vn,kind:Se.languages.CompletionItemKind.Function,documentation:vn,insertText:vn,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn}))]}}}),Se.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(be,We){var rn=be.getWordUntilPosition(We),Hn={startLineNumber:We.lineNumber,endLineNumber:We.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},vn=be.getLineContent(We.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...me.keywords.map(Cn=>({label:Cn,kind:Se.languages.CompletionItemKind.Function,documentation:Cn,insertText:Cn,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn})),...me.quickKey.map(Cn=>({label:Cn.label,kind:Se.languages.CompletionItemKind.Function,documentation:Cn.content,insertText:vn.startsWith("#")?Cn.content.replace(/#/,""):Cn.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn}))]}}}),Se.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(be,We){var rn=be.getWordUntilPosition(We),Hn={startLineNumber:We.lineNumber,endLineNumber:We.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},vn=be.getLineContent(We.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...ae.keywords.map(Cn=>({label:Cn,kind:Se.languages.CompletionItemKind.Function,documentation:Cn,insertText:Cn,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn})),...ae.quickKey.map(Cn=>({label:Cn.label,kind:Se.languages.CompletionItemKind.Function,documentation:Cn.content,insertText:vn.startsWith("#")?Cn.content.replace(/#/,""):Cn.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn}))]}}}),Se.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(be,We){var rn=be.getWordUntilPosition(We),Hn={startLineNumber:We.lineNumber,endLineNumber:We.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},vn=be.getLineContent(We.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...Ht.keywords.map(Cn=>({label:Cn,kind:Se.languages.CompletionItemKind.Function,documentation:Cn,insertText:Cn,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn})),...Ht.quickKey.map(Cn=>({label:Cn.label,kind:Se.languages.CompletionItemKind.Function,documentation:Cn.content,insertText:vn.startsWith("#")?Cn.content.replace(/#/,""):Cn.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Hn}))]}}})};const Wt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Jt=Object.defineProperty,de=(Se,nn,Le)=>nn in Se?Jt(Se,nn,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[nn]=Le,le=(Se,nn,Le)=>de(Se,typeof nn!="symbol"?nn+"":nn,Le);const De=class px{constructor(nn,Le,Pe){this.placeholder=nn,this.editor=Le,this.monaco=Pe,Le.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};le(De,"ID","editor.widget.placeholderHint");var Ke=De,kn=Ot(96236),qe=Ot(6767),on=Ot(25399),gn=Ot(89392),ge=Ot(49535),Xt=Ot(56102),Ve=Object.defineProperty,An=Object.defineProperties,Bn=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,On=(Se,nn,Le)=>nn in Se?Ve(Se,nn,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[nn]=Le,we=(Se,nn)=>{for(var Le in nn||(nn={}))dn.call(nn,Le)&&On(Se,Le,nn[Le]);if(Be)for(var Le of Be(nn))Qe.call(nn,Le)&&On(Se,Le,nn[Le]);return Se},ue=(Se,nn)=>An(Se,Bn(nn)),Xe=(Se,nn)=>{var Le={};for(var Pe in Se)dn.call(Se,Pe)&&nn.indexOf(Pe)<0&&(Le[Pe]=Se[Pe]);if(Se!=null&&Be)for(var Pe of Be(Se))nn.indexOf(Pe)<0&&Qe.call(Se,Pe)&&(Le[Pe]=Se[Pe]);return Le},di=(Se,nn,Le)=>new Promise((Pe,be)=>{var We=vn=>{try{Hn(Le.next(vn))}catch(Cn){be(Cn)}},rn=vn=>{try{Hn(Le.throw(vn))}catch(Cn){be(Cn)}},Hn=vn=>vn.done?Pe(vn.value):Promise.resolve(vn.value).then(We,rn);Hn((Le=Le.apply(Se,nn)).next())});function Li(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}function It(){}let Ct=!1;const xt={"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 Ft(Se=[]){let nn=Se;if(Array.isArray(Se)){for(let Le=0;Ledi(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Se){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Se)}});var Ut=Se=>{var nn=Se,{width:Le="100%",height:Pe="100%",value:be,language:We="javascript",style:rn={},options:Hn={},overrideServices:vn={},theme:Cn="vs-dark",onEditBlur:mi,isCopy:Gn=!1,onSave:yi,autoHeight:ni=!1,forbidCopy:ki=!1,onChange:Ri=It,editorDidMount:Qi=It,onFocus:Ir=It,onBreakPoint:Xi=It,breakPointValue:Rr=[],filename:wo="educoder.txt",errorLine:oo,errorContent:uo="",highlightLine:po,openBreakPoint:Do=!1,placeholder:Zo="",showMiniMap:Lo=!0}=nn,Vo=Xe(nn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Lt=(0,Tt.useRef)(),yn=(0,Tt.useRef)({}),Dn=(0,Tt.useRef)(),Lr=(0,Tt.useRef)(),vr=(0,Tt.useRef)([]),Vi=(0,Tt.useRef)(!1),Jr=(0,Tt.useRef)(),mo=(0,Tt.useRef)(),Je=(0,Tt.useRef)(!1),[$e,Te]=(0,Tt.useState)(!1);function ln(){let Rn;return Lt.current&&(Rn=new ee.Z(zn=>{for(let Pi of zn)(Pi.target.offsetHeight>0||Pi.target.offsetWidth>0)&&yn.current.instance.layout()}),Rn.observe(Lt.current)),Rn}function Wi(){qe.ZP.warning({content:decodeURIComponent(Wt),key:"monaco-editor-tip"})}const Gi=()=>{let Rn=yn.current.instance;if(be!=null&&Rn&&$e){const zn=Rn.getModel();zn&&be!==zn.getValue()&&(Ct=!0,zn.setValue(be),Rn.layout(),Ct=!1)}};(0,Tt.useEffect)(()=>{const Rn=ge.Z.subscribe("formatDocument",zn=>{var Pi;let ti=yn.current.instance;(Pi=ti==null?void 0:ti.getAction)==null||Pi.call(ti,"editor.action.formatDocument").run()});return window.updateMonacoValue=zn=>{Ri(zn)},Rn},[]),(0,Tt.useEffect)(()=>{var Rn;let zn=yn.current.instance;Lr.current&&clearTimeout(Lr.current),Lr.current=setTimeout(()=>{Gi()},500),be&&(be!=null&&be.length)&&((Rn=zn==null?void 0:zn.updateOptions)==null||Rn.call(zn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(be.split(/\r\n|\r|\n/g).length))+3,5)}))},[be,$e,yn.current]),(0,Tt.useEffect)(()=>{if(oo&&yn.current&&yn.current.instance){let zn=yn.current.instance;zn.changeViewZones(function(Pi){var ti=document.createElement("div");ti.style.padding="10px 20px",ti.style.width="calc(100% - 20px)",ti.className="my-error-line-wrp",ti.innerHTML=uo,Pi.addZone({afterLineNumber:oo||11,heightInLines:3,domNode:ti})});var Rn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};zn.addOverlayWidget(Rn),zn.revealPositionInCenter({lineNumber:20,column:1})}},[oo,yn.current,$e]);const Kr=(Rn="",zn)=>{if(!Rn||Rn.trim()==="")return!0;const ti=yn.current.instance.getModel().getLineTokens(zn);let ii=!1;for(let Fi=0;Fi<2;Fi++)ti.getStandardTokenType(Fi)===1&&(ii=!0);return ii};(0,Tt.useEffect)(()=>{var Rn;const zn=(Rn=yn.current)==null?void 0:Rn.instance;if(zn&&$e&&ki){const Pi=zn.onDidBlurEditorWidget(()=>{Je.current=!1}),ti=zn.onDidFocusEditorText(()=>{Je.current=!0});return()=>{Pi.dispose(),ti.dispose()}}},[yn.current,$e,ki]),(0,Tt.useEffect)(()=>{var Rn;if((Rn=yn.current)!=null&&Rn.instance&&$e&&Do){let zn=yn.current.instance,Pi=zn.getModel();if(!Pi)return;(()=>{var Mi;let Ki=[],hi=[];const xr=Pi.getAllDecorations();for(let Cr of xr)Cr.options.className==="highlighted-line"&&(Ki.push((Mi=Cr==null?void 0:Cr.range)==null?void 0:Mi.startLineNumber),hi.push(Cr==null?void 0:Cr.id));if(po===Ki[0])return;Pi.deltaDecorations(hi,[]);const ur=Pi.getLineCount();po&&po<=ur&&(zn.deltaDecorations([],[{range:new jt.Range(po,1,po,Pi.getLineMaxColumn(po)),options:{isWholeLine:!0,className:"highlighted-line"}}]),zn.revealLineInCenter(po))})();const ii=(Mi=!1)=>{var Ki;let hi=[],xr=[];const ur=Pi.getAllDecorations();for(let Cr of ur)Cr.options.linesDecorationsClassName==="breakpoints-select"&&(hi.push((Ki=Cr==null?void 0:Cr.range)==null?void 0:Ki.startLineNumber),xr.push(Cr==null?void 0:Cr.id));if(Mi)return{lines:hi,ids:xr};Xi(hi)},Fi=Mi=>di(void 0,null,function*(){let Ki={range:new jt.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Pi.deltaDecorations([],[Ki]),ii()}),yr=Mi=>di(void 0,null,function*(){let Ki=[];const hi=zn.getLineDecorations(Mi);for(let xr of hi)xr.options.linesDecorationsClassName==="breakpoints-select"&&Ki.push(xr.id);yield Pi.deltaDecorations(Ki,[]),ii()}),ir=Mi=>{let Ki=zn.getLineDecorations(Mi);for(let hi of Ki)if(hi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,gn.isEqual)(Rr,ii(!0).lines)){Pi.deltaDecorations(ii(!0).ids,[]);const Mi=Rr.map(Ki=>({range:new jt.Range(Ki,1,Ki,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Pi.deltaDecorations([],Mi)}const Ln=zn.onDidChangeModelContent(Mi=>{let Ki=zn.getPosition();if(Ki){let hi=Ki.lineNumber;clearTimeout(mo.current),mo.current=setTimeout(()=>{Kr(Pi.getLineContent(hi),hi)?yr(hi):ir(hi)?(yr(hi),Fi(hi)):ii()},100)}}),vi=zn.onMouseDown(Mi=>{var Ki,hi,xr;if(Mi.target.detail&&((xr=(hi=(Ki=Mi.target)==null?void 0:Ki.element)==null?void 0:hi.className)!=null&&xr.includes("line-numbers"))){let ur=Mi.target.position.lineNumber;if(Kr(Pi.getLineContent(ur),ur))return;ir(ur)?yr(ur):Fi(ur)}}),mr=Mi=>{let Ki={range:new jt.Range(Mi,1,Mi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vr.current=zn.deltaDecorations(vr.current,[Ki])},br=()=>{vr.current=zn.deltaDecorations(vr.current,[])},to=zn.onMouseMove(Mi=>{var Ki,hi,xr;if(br(),Mi.target.detail&&((xr=(hi=(Ki=Mi.target)==null?void 0:Ki.element)==null?void 0:hi.className)!=null&&xr.includes("line-numbers"))){let ur=Mi.target.position.lineNumber;if(Kr(Pi.getLineContent(ur),ur))return;mr(ur)}}),Ee=zn.onMouseLeave(()=>{br()});return()=>{Ln.dispose(),vi.dispose(),to.dispose(),Ee.dispose()}}},[yn.current,$e,Rr,po,Do,We]),(0,Tt.useEffect)(()=>{var Rn;(Rn=yn.current)!=null&&Rn.instance&&Do&&yn.current.instance.setPosition({lineNumber:0,column:0})},[po]);function Nn(){let Rn=yn.current.instance;if(Rn){const zn=Rn.getSelection(),Pi=yn.current.pastePos||{},ti=new jt.Range(Pi.startLineNumber||zn.endLineNumber,Pi.startColumn||zn.endColumn,Pi.endLineNumber||zn.endLineNumber,Pi.endColumn||zn.endColumn);setTimeout(()=>{Rn.executeEdits("",[{range:ti,text:""}])},300)}}function bi(Rn){(window.navigator.platform.match("Mac")?Rn.metaKey:Rn.ctrlKey)&&Rn.keyCode==83&&(Rn.preventDefault(),yi())}const wr=()=>{if(ni&&yn.current.instance){const Rn=yn.current.instance.getContentHeight();Ze(Rn{if(!Je.current)return;const{keyCode:zn,ctrlKey:Pi,metaKey:ti,target:ii,type:Fi}=Rn;return(Fi==="paste"||(zn===67||zn===86)&&(ti||Pi))&&ii.nodeName==="TEXTAREA"&&(Wi(),Rn.preventDefault()),!1};function qt(Rn,zn){var Pi=window.URL||window.webkitURL||window,ti=new Blob([zn]),ii=document.createElementNS("http://www.w3.org/1999/xhtml","a");ii.href=Pi.createObjectURL(ti),ii.download=Rn,Ko(ii)}(0,Tt.useEffect)(()=>{wr()},[wr]),(0,Tt.useEffect)(()=>{Lt.current&&!$e&&Promise.all([Ot.e(8909),Ot.e(6656)]).then(Ot.bind(Ot,71448)).then(Rn=>{try{jt=Rn,yn.current.instance=jt.editor.create(Lt.current,{value:be,language:Ft(We),theme:Cn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Lo||!1}},vn);const zn=yn.current.instance;let ii=[...kn.BH._menuItems].find(Ln=>Ln[0]._debugName=="EditorContext")[1],Fi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],yr=(Ln,vi)=>{var mr,br;let to=Ln._first;do vi.includes((br=(mr=to.element)==null?void 0:mr.command)==null?void 0:br.id)&&Ln._remove(to);while(to=to.next)};if(Qi(zn,jt),setTimeout(()=>{wr(),yn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{qt(wo||"educoder.txt",zn.getValue())}})},500),yn.current.subscription=zn.onDidChangeModelContent(Ln=>{Vi.current?clearTimeout(Jr.current):(wr(),Ri(zn.getValue(),Ln)),Jr.current=setTimeout(()=>{Vi.current=!1},500)}),window.Monaco||$t(jt,Ft(We)),ki&&(yr(ii,Fi),Lt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Si),window.removeEventListener("paste",Si),window.addEventListener("keydown",Si),window.addEventListener("paste",Si)),window.Monaco=jt,mi&&zn.onDidBlurEditorWidget(()=>{mi(zn.getValue())}),Ir&&zn.onDidFocusEditorText(()=>{ki&&Mt(),Ir(zn.getValue())}),ki){Mt();try{zn.onDidPaste(Ln=>{const vi=zn.getSelection(),mr=yn.current.pastePos||{},br=new jt.Range(mr.startLineNumber||vi.endLineNumber,mr.startColumn||vi.endColumn,mr.endLineNumber||vi.endLineNumber,mr.endColumn||vi.endColumn);zn.executeEdits("",[{range:Ln.range,text:""}])})}catch(Ln){}}let ir=ln();return Zo&&typeof Zo=="string"&&new Ke(Zo,zn,jt),Te(!0),()=>{const Ln=yn.current.instance;Ln.dispose();const vi=Ln.getModel();vi&&vi.dispose(),yn.current.subscription&&yn.current.subscription.dispose(),ir.unobserve(Lt.current)}}catch(zn){}})},[]),(0,Tt.useEffect)(()=>{if(yn.current.instance&&$e)return document.addEventListener("keydown",bi,!1),()=>{document.removeEventListener("keydown",bi)}},[yi,$e]),(0,Tt.useEffect)(()=>{let Rn=yn.current.instance;if(Rn&&$e){let zn=Ft(We);jt.editor.setModelLanguage(Rn.getModel(),zn)}},[We,$e]),(0,Tt.useEffect)(()=>{yn.current.instance&&$e&&jt.editor.setTheme(Cn)},[Cn,$e]),(0,Tt.useEffect)(()=>{let Rn=yn.current.instance;Dn.current=Hn,Rn&&$e&&(Rn.updateOptions(we({},Hn)),setTimeout(()=>{Rn.getModel().updateOptions(we({},Hn))},200))},[JSON.stringify(Hn),$e]),(0,Tt.useEffect)(()=>{let Rn=yn.current.instance;Rn&&$e&&Rn.layout()},[Le,Pe,$e]);const[Ce,Jn]=(0,Tt.useState)(Li(Le)),[Qn,Ze]=(0,Tt.useState)(Li(Pe)),qn=ue(we({},rn),{width:Ce,height:Qn,position:"relative"});return Tt.createElement("div",{className:"my-monaco-editor",ref:Lt,style:qn},Gn&&Tt.createElement(Xt.CopyToClipboard,{text:be,onCopy:()=>qe.ZP.success("\u590D\u5236\u6210\u529F")},Tt.createElement(on.Z,{title:"\u590D\u5236\u4EE3\u7801"},Tt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Tt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Fe({width:Se="100%",height:nn="100%",original:Le,modified:Pe,language:be,options:We={}}){const rn=(0,Tt.useRef)(),[Hn,vn]=(0,Tt.useState)(null);function Cn(ni){let ki;return rn.current&&(ki=new ee.Z(Ri=>{for(let Qi of Ri)(Qi.target.offsetHeight>0||Qi.target.offsetWidth>0)&&ni.layout()}),ki.observe(rn.current)),ki}(0,Tt.useEffect)(()=>(rn.current&&Promise.all([Ot.e(8909),Ot.e(9404)]).then(Ot.bind(Ot,2550)).then(ni=>{jt=ni;const ki=jt.editor.createDiffEditor(rn.current,ue(we({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},We),{wordWrap:!0}));vn(ki);let Ri=Cn(ki);return()=>{ki.dispose();const Qi=ki.getModel();Qi&&Qi.dispose(),Ri.unobserve(rn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Tt.useEffect)(()=>{Hn&&Hn.setModel({original:jt.editor.createModel(Le,be),modified:jt.editor.createModel(Pe,be)})},[Le,Pe,be,Hn]);const mi=Li(Se),Gn=Li(nn),yi={width:mi,height:Gn};return Tt.createElement("div",{className:"my-diff-editor",ref:rn,style:yi})}},37808:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return ee}});var Tt=Ot(59301);function ee(xe,me){const ye=(0,Tt.useRef)();(0,Tt.useEffect)(()=>{ye.current=xe}),(0,Tt.useEffect)(()=>{function Ht(){ye.current()}if(me!==null){let ae=setInterval(Ht,me);return()=>clearInterval(ae)}},[me])}},48716:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Q8:function(){return Xt},d0:function(){return Ve},w6:function(){return ge}});var Tt=Ot(59301),ee=Ot(16326),xe=Ot(82326),me=Ot(6767),ye=Ot(62957),Ht=Ot(47889),ae=Ot(77019),je=Ot(5269),ve=Ot(25399),Nt=Ot(62673),He=Ot(99571),ie=Ot(61186),Ge=Ot.n(ie),bt=Ot(48790),nt=Ot(38986),et=Ot(89392),ct=Ot.n(et),lt=Ot(51257),gt=Ot(22982),mt=Ot(25690),St=Ot(43155),kt=Ot(40197),zt=Ot(59229),Gt=Ot(3039),$t=Ot(75736),Wt=Ot(59301),Jt=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,kn=(Qe,On,we)=>On in Qe?Jt(Qe,On,{enumerable:!0,configurable:!0,writable:!0,value:we}):Qe[On]=we,qe=(Qe,On)=>{for(var we in On||(On={}))Re.call(On,we)&&kn(Qe,we,On[we]);if(De)for(var we of De(On))Ke.call(On,we)&&kn(Qe,we,On[we]);return Qe},on=(Qe,On)=>de(Qe,le(On)),gn=(Qe,On,we)=>new Promise((ue,Xe)=>{var di=Ct=>{try{It(we.next(Ct))}catch(xt){Xe(xt)}},Li=Ct=>{try{It(we.throw(Ct))}catch(xt){Xe(xt)}},It=Ct=>Ct.done?ue(Ct.value):Promise.resolve(Ct.value).then(di,Li);It((we=we.apply(Qe,On)).next())});function ge(Qe,On){const we=[];for(let ue=Qe;ue{const ue=QeGe()(On).endOf("day"),di=Qe{const we=parseInt(Ge()(Qe).format("HH")),ue=parseInt(Ge()().format("HH")),Xe=parseInt(Ge()().format("mm"));if(!Qe)return{disabledHours:()=>ge(0,ue),disabledMinutes:()=>ge(0,Xe)};if(On){const di=parseInt(Ge()(On).format("HH")),Li=parseInt(Ge()(On).format("mm"));return Ge()(Qe).isSame(Ge()(On),"day")?{disabledHours:()=>ge(0,di),disabledMinutes:()=>we<=di?ge(0,Li):[]}:void 0}if(Ge()(Qe).isSame(Ge()(),"day"))return{disabledHours:()=>ge(0,ue),disabledMinutes:()=>Ge()(Qe).isSame(Ge()(),"hour")&&we<=ue?ge(0,Xe):[]}},An=(Qe,On)=>Qe==null?void 0:Qe.map(we=>{var ue;return(ue=On==null?void 0:On.find(Xe=>Xe.value===we))==null?void 0:ue.id}),{RangePicker:Bn}=ee.default,{Option:Be}=xe.default,dn=({shixunHomeworks:Qe,loading:On,dispatch:we,classroomList:ue,user:Xe})=>{var di,Li,It,Ct,xt,Ft,jt,Mt,Ut;const Fe=(0,mt.useParams)(),{workSetting:Se,workList:nn,shixunWorkList:Le,headerInfo:Pe,changeData:be}=Qe,[We,rn]=(0,Tt.useState)(!1),[Hn,vn]=(0,Tt.useState)(!1);let[Cn,mi]=(0,Tt.useState)([]),[Gn,yi]=(0,Tt.useState)([]),[ni,ki]=(0,Tt.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:St.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Ri,Qi]=(0,Tt.useState)({}),[Ir,Xi]=(0,Tt.useState)({});(0,Tt.useEffect)(()=>()=>{mi([])},[]),(0,Tt.useEffect)(()=>{rn(!(0,bt.GJ)())},[(0,bt.GJ)()]);const Rr=()=>{we({type:"shixunHomeworks/getWorkSetting",payload:qe({},Fe)})};(0,Tt.useEffect)(()=>{if(!(Se!=null&&Se.course_id))return;Object.keys(ni).map(function(Dn){ni[Dn]=Se[Dn]}),(!ni.allow_late||!ni.unified_late)&&(ni.late_penalty=20,ni.penalty_type=St.Q.Percent),ni.unified_setting||(ni.unified_late=!1,ni.unified_anonymous_comment=!1,ni.unified_anonymous_appeal=!1),Cn=JSON.parse(JSON.stringify(Se.group_settings.map(Dn=>on(qe({},Dn),{group_name:[Dn.group_name]})).filter(Dn=>Dn.publish_time!==null))),Gn=JSON.parse(JSON.stringify(Se.allow_late_settings.map(Dn=>on(qe({},Dn),{group_name:[Dn.group_name]})).filter(Dn=>Dn.late_time!==null))),ki(qe({},ni));const yn=(0,lt.QE)((Cn==null?void 0:Cn.length)>0?Cn:[]);mi([...yn]),(Gn==null?void 0:Gn.length)<=0?yi([{penalty_type:St.Q.Percent,late_penalty:20}]):yi([...Gn])},[Se]);const wo=()=>gn(void 0,null,function*(){var yn,Dn;if(((yn=Xe==null?void 0:Xe.userInfo)==null?void 0:yn.user_status)===2){(0,kt.Rd)();return}const Lr=JSON.parse(JSON.stringify(ni));if(Lr.challenge_settings.filter(Vi=>!Vi.hide),Lr.categoryId=Fe.categoryId,(Dn=Lr.challenge_settings)!=null&&Dn.every(Vi=>!Vi.checked)){me.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Cn),!ni.unified_setting)Cn=Cn==null?void 0:Cn.map(Vi=>{var Jr;if(!Vi.publish_time||!Vi.end_time)throw me.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Vi.group_name)throw me.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Vi.group_name=typeof(Vi==null?void 0:Vi.group_name)=="string"?[Vi==null?void 0:Vi.group_name]:Vi==null?void 0:Vi.group_name,Vi.group_id=(Jr=Se.group_settings)==null?void 0:Jr.filter(mo=>{var Je;return(Je=Vi==null?void 0:Vi.group_name)==null?void 0:Je.includes(mo.group_name)}).map(mo=>mo.group_id||mo.id).toString().split(","),Vi});else if(!ni.publish_time||!ni.end_time)throw me.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Lr.group_settings=Cn,ni.allow_late)if(ni.unified_late){if(ni.late_penalty===null||ni.late_penalty===void 0||ni.late_penalty<0||ni.late_penalty>100)throw me.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ni.late_time)throw me.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Gn=Gn==null?void 0:Gn.map(Vi=>{var Jr,mo;if(Vi.late_penalty===null||Vi.late_penalty===void 0||Vi.late_penalty<0||Vi.late_penalty>100)throw me.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Vi.late_time)throw me.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Vi.group_name)throw me.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Vi.group_name=typeof(Vi==null?void 0:Vi.group_name)=="string"?[Vi==null?void 0:Vi.group_name]:Vi==null?void 0:Vi.group_name,Vi.group_id=(mo=(Jr=Vi==null?void 0:Vi.group_name)==null?void 0:Jr.map(Je=>{var $e,Te;let ln=(Te=($e=Se.group_settings)==null?void 0:$e.filter(Wi=>(Wi==null?void 0:Wi.group_name)===Je))==null?void 0:Te[0];return ln==null?void 0:ln.group_id}))==null?void 0:mo.toString().split(","),Vi}),Lr.allow_late_settings=Gn;let vr=yield(0,$t.Tr)({homework_common_ids:[parseInt(Fe.categoryId)],course_id:Fe.coursesId,type:"homework_common"});(vr==null?void 0:vr.student_count)===0?oo(Lr):(Xi(Lr),Qi(vr))}),oo=yn=>{var Dn;if(yn.total_score===null){me.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(yn!=null&&yn.work_efficiency&&yn.eff_score===null){me.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Lr=yn.challenge_settings.reduce((Jr,mo)=>Jr+Number(mo.challenge_score),0);if((Lr==null?void 0:Lr.toFixed(10))!==((Dn=yn.total_score-yn.eff_score)==null?void 0:Dn.toFixed(10))){me.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${yn.total_score}\u5206`);return}const vr={shixun_evaluation:yn.shixun_evaluation,challenge_settings:yn.challenge_settings};let Vi=()=>{var Jr;const mo=()=>gn(void 0,null,function*(){vn(!0),(yield(0,nt.ZP)(`/api/homework_commons/${Fe.categoryId}/publish_setting.json`,{method:"post",body:qe({},yn)})).status===0&&(me.ZP.success("\u66F4\u65B0\u6210\u529F"),Rr(),we({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:qe({},Fe)})),vn(!1)});!(0,et.isEqual)(be,vr)&&!((Jr=Pe==null?void 0:Pe.homework_status)!=null&&Jr.includes("\u672A\u53D1\u5E03"))?ye.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:mo}):mo()};Se!=null&&Se.high_resources_consume&&!(Se!=null&&Se.high_resources_consume_permission)?we({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Fe.coursesId,type:"shixun",type_id:Fe.categoryId,name:Se.homework_name,fn:()=>{Vi()}}}):Vi()},uo=(yn,Dn,Lr="group_id")=>{var vr;return Dn?Dn.find(Vi=>Vi[Lr]===yn):(vr=Se==null?void 0:Se.group_settings)==null?void 0:vr.find(Vi=>Vi.group_id[0]===yn)},po=(Se==null?void 0:Se.allow_late)||(Se==null?void 0:Se.anonymous_comment),Do=yn=>{var Dn,Lr;const vr=uo(yn,Se==null?void 0:Se.allow_late_settings,"id"),Vi=uo(yn,Se==null?void 0:Se.anonymous_comment_settings),Jr=uo(yn);return(Se==null?void 0:Se.allow_late)&&vr&&Ge()(vr==null?void 0:vr.late_time)<=Ge()()||(Se==null?void 0:Se.anonymous_comment)&&Vi&&(Vi==null?void 0:Vi.evaluation_start)!==null||((Lr=(Ge()(Jr==null?void 0:Jr.end_time)<=Ge()()&&((Dn=Se==null?void 0:Se.allow_late_settings)==null?void 0:Dn.filter(mo=>mo.group_id.includes(yn))))[0])==null?void 0:Lr.late_time)!=null},Zo=(0,Tt.useMemo)(()=>(Se==null?void 0:Se.allow_late)||(Se==null?void 0:Se.all_group_late),[Se,Pe]),Lo=Se==null?void 0:Se.anonymous_comment,Vo=yn=>{if(!yn)return!1;const Dn=uo(yn,Se==null?void 0:Se.anonymous_comment_settings);return(Se==null?void 0:Se.anonymous_comment)&&Dn&&(Dn==null?void 0:Dn.evaluation_start)!==null},Lt=(yn,Dn)=>{var Lr,vr,Vi,Jr,mo;yn!=null&&yn.group_id||(yn.group_id=An(yn==null?void 0:yn.group_name,Se==null?void 0:Se.group_settings)),we({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:yn,index:Dn,rangePickerDisabled:(vr=(Lr=yn==null?void 0:yn.group_id)==null?void 0:Lr[0])!=null&&vr.publish_time?We||(Ge()()<=Ge()((Jr=uo((Vi=yn==null?void 0:yn.group_id)==null?void 0:Vi[0]))==null?void 0:Jr.publish_time)?!1:[!0,Do((mo=yn==null?void 0:yn.group_id)==null?void 0:mo[0])]):!1,disabledDate:Se==null?void 0:Se.course_end_date}})};return Wt.createElement("section",{className:gt.Z.form},Wt.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Wt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Wt.createElement("div",null,Wt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Wt.createElement(Ht.ZP.Group,{disabled:We||!((di=Pe==null?void 0:Pe.homework_status)!=null&&di.includes("\u672A\u53D1\u5E03"))||(0,bt.Rm)()&&!((Li=ue.AssistantObject.practice)!=null&&Li.can_publish),value:ni.unified_setting,onChange:yn=>{var Dn;if(!((Dn=Pe==null?void 0:Pe.homework_status)!=null&&Dn.includes("\u672A\u53D1\u5E03"))){me.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(ni.unified_setting=!ni.unified_setting,ni.unified_setting||(ni.unified_late=!1,yi([{late_penalty:5}])),ki(Object.assign({},ni)),ni.unified_setting===!1&&Cn==""){mi(Cn.concat({}));return}ni.unified_setting&&(mi([]),yi([{late_penalty:5}]))}},Wt.createElement(Ht.ZP,{value:!0,disabled:We||!(Se!=null&&Se.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Wt.createElement(Ht.ZP,{disabled:We||!((It=Se==null?void 0:Se.group_settings)!=null&&It.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Ct=Se==null?void 0:Se.group_settings)==null?void 0:Ct.length)===0&&Wt.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),ni.unified_setting&&Wt.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Wt.createElement(ae.Z,{align:"middle"},Wt.createElement(je.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Wt.createElement(je.Z,{className:"ml10"},Wt.createElement(ee.default,{size:"large",disabled:We||!((xt=Pe==null?void 0:Pe.homework_status)!=null&&xt.includes("\u672A\u53D1\u5E03")||(Ft=Pe==null?void 0:Pe.homework_status)!=null&&Ft.includes("\u672A\u5F00\u59CB"))||(0,bt.Rm)()&&!((jt=ue.AssistantObject.practice)!=null&&jt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:yn=>Xt(yn,Se==null?void 0:Se.course_end_date),disabledTime:yn=>Ve(yn),value:ni.publish_time?Ge()(ni.publish_time):"",onChange:(yn,Dn)=>{ni.publish_time=Dn,(ni.end_time==""||!ni.end_time)&&ni.unified_setting&&(ni.end_time=Ge()(yn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),ki(Object.assign({},ni))}}))),Wt.createElement(ae.Z,{align:"middle",className:"pl30"},Wt.createElement(je.Z,null,"\u622A\u6B62\u65F6\u95F4"),Wt.createElement(je.Z,{className:"ml10"},Wt.createElement(ee.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Se==null?void 0:Se.allow_late)&&(Se==null?void 0:Se.homework_status.includes("\u5DF2\u622A\u6B62"))||We||(Se==null?void 0:Se.allow_late)&&Ge()()>=Ge()(Se==null?void 0:Se.end_time)||(0,bt.Rm)()&&!((Mt=ue.AssistantObject.practice)!=null&&Mt.can_publish),disabledDate:yn=>Xt(yn,Se==null?void 0:Se.course_end_date,ni.publish_time),disabledTime:yn=>Ve(yn,ni.publish_time),value:ni.end_time?Ge()(ni.end_time):"",onChange:(yn,Dn)=>{ni.end_time=Dn,ki(Object.assign({},ni))}})))),!ni.unified_setting&&(Cn==null?void 0:Cn.length)>0&&Wt.createElement(ae.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Cn&&Cn.map(function(yn,Dn){var Lr,vr,Vi,Jr,mo,Je,$e;return Wt.createElement(je.Z,{span:24,key:Dn},Wt.createElement(ae.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Dn==(Cn==null?void 0:Cn.length)-1?"0px":"10px"}},Wt.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Dn+1),Wt.createElement(xe.default,{disabled:We||((Lr=Pe==null?void 0:Pe.homework_status)!=null&&Lr.includes("\u672A\u53D1\u5E03")&&yn.id||Ge()(){var ln;if((0,bt.Rm)()&&!((ln=ue.AssistantObject.practice)!=null&&ln.can_publish)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Cn[Dn].group_name=Te,Cn[Dn].group_id=yn.group_id;const Wi=(0,et.flattenDeep)(Cn.map(Kr=>Kr.group_name)),Gi=Gn.map(Kr=>{let Nn=(Kr==null?void 0:Kr.group_name)||[];return on(qe({},Kr),{group_name:(0,et.remove)(Nn,bi=>Wi.includes(bi))})});yi(Gi),mi(Cn.slice())},maxTagCount:4,maxTagPlaceholder:Te=>Wt.createElement("div",{style:{cursor:"pointer"},onClick:()=>Lt(yn,Dn)},"+",Te==null?void 0:Te.length)},Se.group_settings&&Se.group_settings.map(function(Te){if(!Cn.map(Wi=>Wi.group_name).flat().includes(Te.group_name))return Wt.createElement(Be,{value:Te.group_name,key:Te.id},Te.group_name)})),Wt.createElement("div",{className:"ml20"},Wt.createElement(Bn,{size:"large",ranges:{\u6B64\u523B:[yn.publish_time?Ge()(yn.publish_time):Ge()(),Ge()()]},allowClear:!1,disabled:We||(Ge()()<=Ge()((Jr=uo((Vi=yn==null?void 0:yn.group_id)==null?void 0:Vi[0]))==null?void 0:Jr.publish_time)?!1:[!0,Do((mo=yn==null?void 0:yn.group_id)==null?void 0:mo[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Te=>Xt(Te,Se==null?void 0:Se.course_end_date),disabledTime:Te=>Ve(Te),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ge()((0,lt.U6)(),"HH:mm"),Ge()((0,lt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[yn.publish_time?Ge()(yn.publish_time):void 0,yn.end_time?Ge()(yn.end_time):void 0],onChange:(Te,ln)=>{var Wi;if((0,bt.Rm)()&&!((Wi=ue.AssistantObject.practice)!=null&&Wi.can_publish)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Cn[Dn].publish_time=ln[0],!yn.end_time&&ln[0]?Cn[Dn].end_time=Ge()(ln[0]).add(7,"days"):Cn[Dn].end_time=ln[1],mi([...Cn])},onCalendarChange:(Te,ln,Wi)=>{if(ln!=null&&ln[0]&&!ln[1]){const Gi=Ge()(ln[0]).add(7,"days");Cn[Dn].publish_time=ln[0],Cn[Dn].end_time=Gi,mi([...Cn])}}})),!We&&Wt.createElement("div",{style:{display:"flex",width:"50px"}},((Je=yn==null?void 0:yn.group_id)==null?void 0:Je.length)>1&&Wt.createElement(ve.Z,{title:"\u89C4\u5219\u62C6\u5206"},Wt.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Lt(yn,Dn)})),Cn.length<(($e=Se==null?void 0:Se.group_settings)==null?void 0:$e.length)&&Wt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Te;if((0,bt.Rm)()&&!((Te=ue.AssistantObject.practice)!=null&&Te.can_publish)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}mi(Cn.concat({}))}}),((yn==null?void 0:yn.publish_time)&&Ge()(){const Te=(0,et.cloneDeep)(Gn);Te.forEach((ln,Wi)=>{ln.group_name&&(ln.group_name=ln.group_name.filter(Gi=>{var Kr;return!((Kr=Cn[Dn].group_name)!=null&&Kr.includes(Gi))}))}),Cn=Cn.filter((ln,Wi)=>Dn!==Wi),yi(Te),mi(Cn.slice()),setTimeout(()=>mi(Cn.slice()),10)}}))))}))),Wt.createElement(ae.Z,null,Wt.createElement(je.Z,null,Wt.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Wt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Wt.createElement(je.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Wt.createElement(Nt.default,{checked:ni.allow_late,disabled:We||Zo,onChange:yn=>{var Dn;if((0,bt.Rm)()&&!((Dn=ue.AssistantObject.practice)!=null&&Dn.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yn.target.checked&&ye.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Wt.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Wt.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Wt.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Wt.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),ni.allow_late=!ni.allow_late,Gn==""&&yi([{late_penalty:5}]),ki(Object.assign({},ni))}},Wt.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(ni==null?void 0:ni.allow_late)&&Wt.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Wt.createElement("div",{style:{display:"flex"}},Wt.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Wt.createElement(Ht.ZP.Group,{style:{marginLeft:"20px"},disabled:We||(Se==null?void 0:Se.anonymous_comment)||(Se==null?void 0:Se.allow_late),value:ni.unified_late,onChange:yn=>{var Dn;if((0,bt.Rm)()&&!((Dn=ue.AssistantObject.practice)!=null&&Dn.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ni.unified_late=yn.target.value,Gn==""&&!yn.target.value&&yi([{penalty_type:St.Q.Percent,late_penalty:20}]),ki(qe({},ni))}},(ni==null?void 0:ni.unified_setting)&&Wt.createElement(Ht.ZP,{value:!0,disabled:!(Se!=null&&Se.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((Ut=Se==null?void 0:Se.group_settings)==null?void 0:Ut.length)>0&&Wt.createElement(Ht.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),ni!=null&&ni.unified_late?Wt.createElement(Wt.Fragment,null,Wt.createElement(ae.Z,{align:"middle",style:{marginTop:"10px"}},Wt.createElement(je.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Wt.createElement(je.Z,{className:"ml20"},Wt.createElement(St.Z,{disabled:We||Lo,value:{type:ni.penalty_type,inputValue:ni.late_penalty},onChange:yn=>{var Dn;if((0,bt.Rm)()&&!((Dn=ue.AssistantObject.practice)!=null&&Dn.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ki(on(qe({},ni),{late_penalty:yn.inputValue,penalty_type:yn.type}))}})),Wt.createElement(je.Z,{flex:"1",className:"ml5"},Wt.createElement("span",{className:"c-grey-c ml10"},ni.penalty_type===St.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Wt.createElement(ae.Z,{align:"middle",style:{marginTop:"15px"}},Wt.createElement(je.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Wt.createElement(je.Z,{className:"ml20"},Wt.createElement(ee.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:We||Lo,value:ni.late_time?Ge()(ni.late_time):"",disabledDate:yn=>Xt(yn,Se==null?void 0:Se.course_end_date),onChange:(yn,Dn)=>{var Lr;if((0,bt.Rm)()&&!((Lr=ue.AssistantObject.practice)!=null&&Lr.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ni.late_time=Dn,ki(Object.assign({},ni))}})))):Gn.map(function(yn,Dn){var Lr;return Wt.createElement(je.Z,{span:24,key:Dn},Wt.createElement(ae.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Wt.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Dn+1),Wt.createElement(xe.default,{disabled:We||!((Lr=Pe==null?void 0:Pe.homework_status)!=null&&Lr.includes("\u672A\u53D1\u5E03"))&&yn.id||(Se==null?void 0:Se.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof yn.group_name=="string"?[yn.group_name]:yn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:vr=>{var Vi;if((0,bt.Rm)()&&!((Vi=ue.AssistantObject.practice)!=null&&Vi.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Gn[Dn].group_name=vr,Gn[Dn].group_id=yn.group_id,yi(Gn.slice())}},Se.group_settings&&Se.group_settings.map(function(vr){const Vi=Gn.map(mo=>mo.group_name).flat(),Jr=Cn.map(mo=>mo.group_name).flat();if(ni!=null&&ni.unified_setting){if(!Vi.includes(vr.group_name))return Wt.createElement(Be,{value:vr.group_name,key:vr.id},vr.group_name)}else if(Jr.includes(vr.group_name)&&!Vi.includes(vr.group_name))return Wt.createElement(Be,{value:vr.group_name,key:vr.id},vr.group_name)})),Wt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Wt.createElement(St.Z,{disabled:We||Vo(yn.id),value:{type:yn.penalty_type,inputValue:yn.late_penalty},onChange:vr=>{var Vi;if((0,bt.Rm)()&&!((Vi=ue.AssistantObject.practice)!=null&&Vi.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Gn[Dn].late_penalty=vr.inputValue,Gn[Dn].penalty_type=vr.type,yi([...Gn])}}),Wt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Wt.createElement(ee.default,{size:"large",disabled:We||Vo(yn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ge()((0,lt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:vr=>Xt(vr,Se==null?void 0:Se.course_end_date),format:"YYYY-MM-DD HH:mm",value:yn!=null&&yn.late_time?Ge()(yn.late_time):void 0,onChange:(vr,Vi)=>{var Jr;if((0,bt.Rm)()&&!((Jr=ue.AssistantObject.practice)!=null&&Jr.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Gn[Dn].late_time=Vi,yi([...Gn])}}),!We&&Wt.createElement("div",{style:{display:"flex",width:"50px"}},Wt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var vr;if((0,bt.Rm)()&&!((vr=ue.AssistantObject.practice)!=null&&vr.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yi(Gn.concat({penalty_type:St.Q.Percent,late_penalty:20}))}}),Dn>0&&!yn.id&&Wt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var vr;if((0,bt.Rm)()&&!((vr=ue.AssistantObject.practice)!=null&&vr.can_late)){me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Gn=Gn.filter((Vi,Jr)=>Dn!==Jr),yi(Gn.slice()),setTimeout(()=>yi(Gn.slice()),10)}}))))})),!We&&Wt.createElement(Wt.Fragment,null,Wt.createElement(He.ZP,{type:"primary",size:"large",loading:Hn,style:{width:"138px",marginTop:"30px"},onClick:()=>wo()},"\u4FDD\u5B58")),Wt.createElement(zt.Z,{onConfirm:(yn,Dn)=>{Cn.splice(yn,0,...Dn),Cn.splice(yn+Dn.length,1);const Lr=(0,lt.QE)([...Cn]);mi([...Lr])}}),Wt.createElement(Gt.Z,{resdata:Ri,type:"shixun",okloading:Hn,oktext:(Ri==null?void 0:Ri.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:yn=>gn(void 0,null,function*(){vn(!0);let Dn=yield(0,nt.ZP)(`/api/courses/${Fe.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Fe.categoryId)]}});vn(!1),(Dn==null?void 0:Dn.status)===0&&oo(Ir)})}))};ai.ZP=(0,mt.connect)(({shixunHomeworks:Qe,classroomList:On,loading:we,user:ue})=>({shixunHomeworks:Qe,classroomList:On,loading:we.effects,user:ue}))(dn)},93603:function(Wn,ai,Ot){"use strict";var Tt=Ot(59301),ee=Ot(14566),xe=Ot(28284),me=Ot(62957),ye=Ot(6767),Ht=Ot(54172),ae=Ot(25690),je=Ot(346),ve=Ot(19493),Nt=Ot(38986),He=Ot(61186),ie=Ot.n(He),Ge=Ot(51257),bt=Ot(59301),nt=Object.defineProperty,et=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(Gt,$t,Wt)=>$t in Gt?nt(Gt,$t,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):Gt[$t]=Wt,mt=(Gt,$t)=>{for(var Wt in $t||($t={}))ct.call($t,Wt)&>(Gt,Wt,$t[Wt]);if(et)for(var Wt of et($t))lt.call($t,Wt)&>(Gt,Wt,$t[Wt]);return Gt},St=(Gt,$t,Wt)=>new Promise((Jt,de)=>{var le=Ke=>{try{Re(Wt.next(Ke))}catch(kn){de(kn)}},De=Ke=>{try{Re(Wt.throw(Ke))}catch(kn){de(kn)}},Re=Ke=>Ke.done?Jt(Ke.value):Promise.resolve(Ke.value).then(le,De);Re((Wt=Wt.apply(Gt,$t)).next())});const{Dragger:kt}=ee.default,zt=({classroomList:Gt,dispatch:$t,onOk:Wt})=>{const Jt=(0,ae.useParams)(),[de]=xe.default.useForm(),[le,De]=(0,Tt.useState)(),[Re,Ke]=(0,Tt.useState)(!1),kn={height:100,onRemove:()=>{De("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:qe=>St(void 0,null,function*(){return De(qe),!1})};return(0,Tt.useEffect)(()=>{de.setFieldsValue({publish_time:ie()(ie()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:ie()(ie()(new Date((0,Ge.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),bt.createElement(me.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Gt.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Re},onOk:()=>St(void 0,null,function*(){de.submit()}),onCancel:()=>{de.resetFields(),$t({type:"classroomList/setActionTabs",payload:{}})}},bt.createElement(xe.default,{form:de,onFinish:qe=>St(void 0,null,function*(){var on,gn,ge;if(!(le!=null&&le.size)){ye.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ke(!0);let Xt=new FormData;Xt.append("type",Gt.actionTabs.type),Xt.append("file",le);let Ve;window.location.href.indexOf("exercise")>-1?Ve=`/api/exercises/${Gt.actionTabs.id}/supplement_score.json`:Ve=`/api/homework_commons/${Gt.actionTabs.id}/supplement_score.json`;let An=yield(0,Nt.ZP)(Ve,{method:"post",body:Xt},!0);Ke(!1),(An==null?void 0:An.status)===0&&(Wt(),de.resetFields(),$t({type:"classroomList/setActionTabs",payload:{}}),((gn=(on=An==null?void 0:An.data)==null?void 0:on.fail)==null?void 0:gn.length)>0&&me.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:bt.createElement(Ht.default,{pagination:!1,dataSource:(ge=An==null?void 0:An.data)==null?void 0:ge.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ge.FH)("",je.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Gt.actionTabs.type}`)}}))})},bt.createElement(xe.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Gt.actionTabs.name),bt.createElement(xe.default.Item,{style:{marginBottom:0},label:bt.createElement("div",null,bt.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),bt.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},bt.createElement("div",null,bt.createElement("a",{download:"\u6A21\u7248.xlsx",className:ve.Z.downloadbutton,href:je.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Gt.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),bt.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),bt.createElement(xe.default.Item,{style:{marginBottom:0}},bt.createElement(kt,mt({},kn),bt.createElement("a",{className:ve.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),bt.createElement("br",null),bt.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};ai.Z=(0,ae.connect)(({classroomList:Gt})=>({classroomList:Gt}))(zt)},73410:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return Nt}});var Tt=Ot(59301),ee=Ot(37568),xe=Ot(62673),me=Ot(77019),ye={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},Ht="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ae=Ot(28426),je=(He,ie,Ge)=>new Promise((bt,nt)=>{var et=gt=>{try{lt(Ge.next(gt))}catch(mt){nt(mt)}},ct=gt=>{try{lt(Ge.throw(gt))}catch(mt){nt(mt)}},lt=gt=>gt.done?bt(gt.value):Promise.resolve(gt.value).then(et,ct);lt((Ge=Ge.apply(He,ie)).next())}),Nt=({data:He,value:ie=[],handleChangePage:Ge,className:bt="",setSelectedRowKeys:nt,selectedRowKeys:et,onChange:ct=()=>{}})=>{const[lt,gt]=(0,Tt.useState)([]),[mt,St]=(0,Tt.useState)([]),[kt,zt]=(0,Tt.useState)([]);let[Gt,$t]=(0,Tt.useState)(1),[Wt,Jt]=(0,Tt.useState)();return(0,Tt.useEffect)(()=>{gt(He),St([]),zt([])},[He]),(0,Tt.useEffect)(()=>{nt&&(St(et),zt(et))},[et]),Tt.createElement("div",{className:`flex justify-between w-full ${bt}`},Tt.createElement("div",{className:ye.leftdiv},Tt.createElement(ee.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:de=>je(void 0,null,function*(){gt(He.filter(le=>{var De;return(De=le==null?void 0:le.name)==null?void 0:De.includes(de.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),lt.length===0&&Tt.createElement(ae.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),Tt.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},Tt.createElement(xe.default.Group,{value:mt.map(de=>`${de.id}`),onChange:de=>{nt(lt.filter(le=>de.includes(`${le.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},lt.map((de,le)=>Tt.createElement(me.Z,{key:de.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},Tt.createElement(xe.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:de.is_published,value:`${de.id}`},Tt.createElement("div",{className:ye.listClass},Tt.createElement("span",{className:ye.spantitle,style:{width:de.is_published?"108px":"170px"}},de.name),de.is_published&&Tt.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),Tt.createElement("div",{className:ye.rightdiv},Tt.createElement(ee.default.Search,{onChange:de=>{zt(mt.filter(le=>le.name.includes(de.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),kt.length===0&&Tt.createElement(ae.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),kt.length>0&&Tt.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},Tt.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},kt.map((de,le)=>Tt.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:de.id},Tt.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},de.name),Tt.createElement("img",{src:Ht,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{nt(mt.filter(De=>`${De.id}`!=`${de.id}`))}})))))))}},59229:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return ct}});var Tt=Ot(59301),ee=Ot(25690),xe=Ot(16326),me=Ot(62957),ye=Ot(37568),Ht=Ot(6767),ae=Ot(77019),je=Ot(5269),ve={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Nt=Ot(61186),He=Ot.n(Nt),ie=Ot(51257),Ge=Ot(28426),bt=Ot(59301);const{RangePicker:nt}=xe.default,et=({dispatch:lt,classroomList:gt,onConfirm:mt})=>{const[St,kt]=(0,Tt.useState)([]),[zt,Gt]=(0,Tt.useState)([]),[$t,Wt]=(0,Tt.useState)(""),[Jt,de]=(0,Tt.useState)([!1,!1]);(0,Tt.useEffect)(()=>{var Re,Ke,kn,qe;if(gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Re=gt.actionTabs)==null?void 0:Re.rangePickerDisabled),(Ke=gt.actionTabs)!=null&&Ke.rangePickerDisabled?de((kn=gt.actionTabs)==null?void 0:kn.rangePickerDisabled):de([!1,!1]);let on=gt.actionTabs.data,gn=(qe=on==null?void 0:on.group_name)==null?void 0:qe.map((ge,Xt)=>{var Ve;return{group_id:on==null?void 0:on.group_id[Xt],group_name:on==null?void 0:on.group_name[Xt],is_admin:on==null?void 0:on.is_admin,end_time:on==null?void 0:on.end_time,publish_time:Array.isArray(on==null?void 0:on.publish_time)?(Ve=on==null?void 0:on.publish_time)==null?void 0:Ve[0]:on==null?void 0:on.publish_time}});gn&&(kt([...gn]),Gt([...gn]))}},[gt.actionTabs]);const le=()=>{lt({type:"classroomList/setActionTabs",payload:{}}),Wt("")},De=Re=>{if(Re){const Ke=zt==null?void 0:zt.filter(kn=>{var qe,on;return(on=(qe=kn==null?void 0:kn.group_name)==null?void 0:qe.toLowerCase())==null?void 0:on.includes(Re==null?void 0:Re.toLowerCase())});kt(Ke)}else kt(zt)};return bt.createElement(me.default,{width:980,title:bt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},bt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",bt.createElement("span",{className:ve.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),bt.createElement(ye.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:$t,onChange:Re=>{Wt(Re.target.value.trim()),De(Re.target.value.trim())}})),centered:!0,maskClosable:!1,open:gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>le(),onOk:()=>{var Re;if(zt.some(kn=>!kn.end_time||!kn.publish_time)){Ht.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}mt((Re=gt.actionTabs)==null?void 0:Re.index,zt),le()}},bt.createElement("div",{className:ve.modal_con},bt.createElement(ae.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(St==null?void 0:St.length)>0?St.map(function(Re,Ke){return bt.createElement(je.Z,{span:24,key:Ke},bt.createElement(ae.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ke==(St==null?void 0:St.length)-1?"0px":"10px"}},bt.createElement("div",{className:ve.multiple_select,title:Re==null?void 0:Re.group_name},Re==null?void 0:Re.group_name),bt.createElement("div",{className:"ml20"},bt.createElement(nt,{size:"large",allowClear:!1,disabled:Jt,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:kn=>{var qe;return(0,ie.Q8)(kn,(qe=gt.actionTabs)==null?void 0:qe.disabledDate)},disabledTime:kn=>(0,ie.d0)(kn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[He()((0,ie.U6)(),"HH:mm"),He()((0,ie.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Re==null?void 0:Re.publish_time)&&[He()(Re==null?void 0:Re.publish_time),Re!=null&&Re.end_time?He()(Re==null?void 0:Re.end_time):void 0],onChange:(kn,qe)=>{St[Ke].publish_time=qe[0],St[Ke].end_time=qe[1],kt([...St]),zt.forEach(on=>{on.group_id===(Re==null?void 0:Re.group_id)&&(on.publish_time=qe[0],on.end_time=qe[1])}),Gt([...zt])},onCalendarChange:(kn,qe,on)=>{if(qe!=null&&qe[0]&&!qe[1]){const gn=He()(qe[0]).add(7,"days");St[Ke].publish_time=qe[0],St[Ke].end_time=gn,kt([...St]),zt.forEach(ge=>{ge.group_id===(Re==null?void 0:Re.group_id)&&(ge.publish_time=qe[0],ge.end_time=gn)}),Gt([...zt])}}})),Jt[0]?bt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):bt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{St.splice(Ke,1),kt([...St]),zt.forEach((kn,qe)=>{kn.group_id===(Re==null?void 0:Re.group_id)&&zt.splice(qe,1)}),Gt([...zt])}})))}):bt.createElement(Ge.Z,null))))};var ct=(0,ee.connect)(({classroomList:lt})=>({classroomList:lt}))(et)},81428:function(Wn,ai,Ot){"use strict";Ot.d(ai,{AL:function(){return St},Iy:function(){return He},Qv:function(){return bt},ez:function(){return mt},jb:function(){return ie}});var Tt=Ot(32834),ee=Ot.n(Tt),xe=Ot(11690),me=Ot.n(xe);let ye=1;function Ht(Wt,Jt){const de=Wt.match(/^(\s+)(?:```)/);if(de===null)return Jt;const le=de[1];return Jt.split(` `).map(De=>{const Re=De.match(/^\s+/);if(Re===null)return De;const[Ke]=Re;return Ke.length>=le.length?De.slice(le.length):De}).join(` `)}let ae=[],je=["
    "];const ve=new(ee()).Renderer,Nt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function He(){ae.length=0,je=["
      "]}const ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ge(Wt,Jt,de,le){if(Jt>=Wt.length||Wt[Jt].level<=de)return Jt;var De=Wt[Jt];le.push("
    • "+De.text+""),Jt++;var Re=[];return Jt=Ge(Wt,Jt,De.level,Re),Re.length>0&&(le.push("
        "),Re.forEach(function(Ke){le.push(Ke)}),le.push("
      ")),le.push("
    • "),Jt=Ge(Wt,Jt,de,le),Jt}function bt(){return Ge(ae,0,0,je),je.push("
    "),je.join("")}const nt={heading(Wt){const Jt=Nt.exec(Wt);if(ye+=1,Jt)return{type:"heading",raw:Jt[0],depth:Jt[1].length,text:Jt[2]}},fences(Wt){const Jt=this.rules.block.fences.exec(Wt);if(Jt){const de=Jt[0];let le=Ht(de,Jt[3]||"");const De=Jt[2]?Jt[2].trim():Jt[2];if(["latex","katex","math"].indexOf(De)>=0){const Re=lt(),Ke=le;le=Re,gt[Re]={type:"block",expression:Ke}}return{type:"code",raw:de,lang:De,text:le}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ct=0;const lt=()=>`__special_katext_id_${ct++}__`;let gt={};function mt(){return gt}function St(){ct=0,gt={}}function kt(Wt){return Wt=Wt.replace(et,(Jt,de)=>{const le=lt();return gt[le]={type:"inline",expression:de},le}),Wt}const zt=ve.listitem;ve.listitem=function(Wt){return zt(kt(Wt))};const Gt=ve.paragraph;ve.paragraph=function(Wt){return Gt(kt(Wt))};const $t=ve.tablecell;ve.tablecell=function(Wt,Jt){return $t(kt(Wt),Jt)},ve.code=function(Wt,Jt,de){const le=(Jt||"").match(/\S*/)[0];return le?["latex","katex","math"].indexOf(le)>=0?`

    ${Wt}

    `:`
    ${de?Wt:(0,xe.escape)(Wt,!0)}
    `:'
    '+(de?Wt:(0,xe.escape)(Wt,!0))+"
    "},ve.heading=function(Wt,Jt,de){let le=this.options.headerPrefix+de.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ae.push({anchor:le,level:Jt,text:Wt}),"'+Wt+""},ee().setOptions({silent:!0,gfm:!0,pedantic:!1}),ee().use({tokenizer:nt,renderer:ve}),ai.ZP=ee()},40197:function(Wn,ai,Ot){"use strict";Ot.d(ai,{rX:function(){return kt},pW:function(){return zt},gy:function(){return Gt},xY:function(){return St},O5:function(){return mt},hs:function(){return et},tJ:function(){return bt},o1:function(){return nt},Rd:function(){return gt}});var Tt=Ot(25690),ee=Ot(62957),xe=Ot(37285),me=Ot(6767),ye=Ot(48790),Ht=Ot(51257),ae=Ot(87169),je=Ot(25510),ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5D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KDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Nt=Ot.p+"static/newqrcode.a8740efb.png",He=Ot(32637),ie=Ot(59301),Ge=($t,Wt,Jt)=>new Promise((de,le)=>{var De=kn=>{try{Ke(Jt.next(kn))}catch(qe){le(qe)}},Re=kn=>{try{Ke(Jt.throw(kn))}catch(qe){le(qe)}},Ke=kn=>kn.done?de(kn.value):Promise.resolve(kn.value).then(De,Re);Ke((Jt=Jt.apply($t,Wt)).next())});const bt=($t,Wt=!1,Jt=!1,de="",le=!1)=>!!(nt($t)&&ct($t,Wt,Jt,de,le)),nt=$t=>(0,ye.bg)()?!0:($t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=$t=>{var Wt,Jt,de;const{user:le}=(0,Tt.getDvaApp)()._store.getState();(0,ye.bg)()&&!((Jt=(Wt=le==null?void 0:le.userInfo)==null?void 0:Wt.course)!=null&&Jt.course_public)&&!((de=le==null?void 0:le.userInfo)!=null&&de.profile_completed)&&$t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ct=($t,Wt=!1,Jt=!0,de="",le=!1)=>{var De;const{user:Re}=(0,Tt.getDvaApp)()._store.getState();return(De=Re.userInfo)!=null&&De.profile_completed?!0:(Jt?$t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:de,isCurrentPage:le}}):ee.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Ht.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{ee.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},gt=()=>{ee.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:ie.createElement("div",{style:{textAlign:"center"}},ie.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),ie.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:He}),ie.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},mt=()=>{var $t;const{user:Wt}=(0,Tt.getDvaApp)()._store.getState();return($t=Wt.userInfo)!=null&&$t.professional_certification?!0:(ee.default.confirm({title:"\u63D0\u793A",centered:!0,content:ie.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Ht.xg)("/account/certification")}}),!1)},St=()=>(0,ye.V9)()?!0:(ee.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ie.createElement("div",{className:"tc",style:{marginLeft:-38}},ie.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ie.createElement("img",{src:Nt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),kt=($t,Wt)=>$t?!0:(ee.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ie.createElement("div",null,ie.createElement("p",null,Wt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),ie.createElement("div",{style:{marginLeft:"110px"}},ie.createElement("img",{src:ve,width:200}),ie.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ht.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),zt=$t=>{ee.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:ie.createElement("div",null,ie.createElement("div",null,ie.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),ie.createElement(xe.Z,null),ie.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ie.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",ie.createElement("a",null,$t),"\u5929\u3002"),ie.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ie.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),ie.createElement("div",{style:{textAlign:"center",marginTop:30}},ie.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:je,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Gt=($t,Wt="")=>{const{shixunsDetail:{detail:Jt}}=(0,Tt.getDvaApp)()._store.getState();if((Jt==null?void 0:Jt.public)===2||(Jt==null?void 0:Jt.public)===1||(Jt==null?void 0:Jt.shixun_status)===3){let de="";return(Jt==null?void 0:Jt.public)===2&&(de="\u5DF2\u516C\u5F00"),(Jt==null?void 0:Jt.public)===1&&(de="\u5F85\u5BA1\u6838"),(Jt==null?void 0:Jt.shixun_status)===3&&(de="\u5DF2\u5173\u95ED"),ee.default.info({centered:!0,icon:ie.createElement(ae.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ie.createElement("div",{className:"tc",style:{marginLeft:-38}},ie.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ie.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",de,"\uFF0C",Wt,"\u3002"),ie.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ie.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:je,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Jt==null?void 0:Jt.shixun_status)===2?(ee.default.confirm({centered:!0,icon:ie.createElement(ae.Z,null),title:"\u63D0\u793A",content:ie.createElement("div",null,ie.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Wt,"\u3002"),ie.createElement("br",null),ie.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{ee.default.confirm({width:440,centered:!0,icon:ie.createElement(ae.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:()=>Ge(void 0,null,function*(){(yield $t({type:"shixunsDetail/cancelRelease",payload:{id:Jt==null?void 0:Jt.identifier}})).status!==401&&(me.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),$t({type:"shixunsDetail/getShixunsDetail",payload:{id:Jt==null?void 0:Jt.identifier}}),$t({type:"practiceSetting/getCommonData",payload:{id:Jt==null?void 0:Jt.identifier}}))})})}}),!0):!1}},99498:function(Wn,ai,Ot){(function(Tt){Tt(Ot(89780))})(function(Tt){Tt.defineOption("placeholder","",function(je,ve,Nt){var He=Nt&&Nt!=Tt.Init;if(ve&&!He)je.on("blur",ye),je.on("change",Ht),je.on("swapDoc",Ht),Tt.on(je.getInputField(),"compositionupdate",je.state.placeholderCompose=function(){me(je)}),Ht(je);else if(!ve&&He){je.off("blur",ye),je.off("change",Ht),je.off("swapDoc",Ht),Tt.off(je.getInputField(),"compositionupdate",je.state.placeholderCompose),ee(je);var ie=je.getWrapperElement();ie.className=ie.className.replace(" CodeMirror-empty","")}ve&&!je.hasFocus()&&ye(je)});function ee(je){je.state.placeholder&&(je.state.placeholder.parentNode.removeChild(je.state.placeholder),je.state.placeholder=null)}function xe(je){ee(je);var ve=je.state.placeholder=document.createElement("pre");ve.style.cssText="height: 0; overflow: visible",ve.style.direction=je.getOption("direction"),ve.className="CodeMirror-placeholder CodeMirror-line-like";var Nt=je.getOption("placeholder");typeof Nt=="string"&&(Nt=document.createTextNode(Nt)),ve.appendChild(Nt),je.display.lineSpace.insertBefore(ve,je.display.lineSpace.firstChild)}function me(je){setTimeout(function(){var ve=!1,Nt=je.getInputField();Nt.nodeName=="TEXTAREA"?ve=!Nt.value:je.lineCount()==1&&(ve=!/[^\u200b]/.test(Nt.querySelector(".CodeMirror-line").textContent)),ve?xe(je):ee(je)},20)}function ye(je){ae(je)&&xe(je)}function Ht(je){var ve=je.getWrapperElement(),Nt=ae(je);ve.className=ve.className.replace(" CodeMirror-empty","")+(Nt?" CodeMirror-empty":""),Nt?xe(je):ee(je)}function ae(je){return je.lineCount()===1&&je.getLine(0)===""}})},25717:function(Wn,ai,Ot){(function(Tt){Tt(Ot(89780))})(function(Tt){var ee={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=Tt.Pos;Tt.defineOption("autoCloseBrackets",!1,function(nt,et,ct){ct&&ct!=Tt.Init&&(nt.removeKeyMap(ye),nt.state.closeBrackets=null),et&&(Ht(me(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(ye))});function me(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:ee[et]}var ye={Backspace:ve,Enter:Nt};function Ht(nt){for(var et=0;et=0;gt--){var St=lt[gt].head;nt.replaceRange("",xe(St.line,St.ch-1),xe(St.line,St.ch+1),"+delete")}}function Nt(nt){var et=je(nt),ct=et&&me(et,"explode");if(!ct||nt.getOption("disableInput"))return Tt.Pass;for(var lt=nt.listSelections(),gt=0;gt0;return{anchor:new xe(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new xe(nt.head.line,nt.head.ch+(et?1:-1))}}function ie(nt,et){var ct=je(nt);if(!ct||nt.getOption("disableInput"))return Tt.Pass;var lt=me(ct,"pairs"),gt=lt.indexOf(et);if(gt==-1)return Tt.Pass;for(var mt=me(ct,"closeBefore"),St=me(ct,"triples"),kt=lt.charAt(gt+1)==et,zt=nt.listSelections(),Gt=gt%2==0,$t,Wt=0;Wt=0&&nt.getRange(de,xe(de.line,de.ch+3))==et+et+et?le="skipThree":le="skip";else if(kt&&de.ch>1&&St.indexOf(et)>=0&&nt.getRange(xe(de.line,de.ch-2),de)==et+et){if(de.ch>2&&/\bstring/.test(nt.getTokenTypeAt(xe(de.line,de.ch-2))))return Tt.Pass;le="addFour"}else if(kt){var Re=de.ch==0?" ":nt.getRange(xe(de.line,de.ch-1),de);if(!Tt.isWordChar(De)&&Re!=et&&!Tt.isWordChar(Re))le="both";else return Tt.Pass}else if(Gt&&(De.length===0||/\s/.test(De)||mt.indexOf(De)>-1))le="both";else return Tt.Pass;if(!$t)$t=le;else if($t!=le)return Tt.Pass}var Ke=gt%2?lt.charAt(gt-1):et,kn=gt%2?et:lt.charAt(gt+1);nt.operation(function(){if($t=="skip")nt.execCommand("goCharRight");else if($t=="skipThree")for(var qe=0;qe<3;qe++)nt.execCommand("goCharRight");else if($t=="surround"){for(var on=nt.getSelections(),qe=0;qe'"]=function(Ge){return me(Ge)}),ve.addKeyMap(ie)}});var ee=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["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 me(ve){if(ve.getOption("disableInput"))return Tt.Pass;for(var Nt=ve.listSelections(),He=[],ie=ve.getOption("autoCloseTags"),Ge=0;Gebt.ch&&(gt=gt.slice(0,gt.length-nt.end+bt.ch));var zt=gt.toLowerCase();if(!gt||nt.type=="string"&&(nt.end!=bt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&<.close||nt.string.indexOf("/")==bt.ch-nt.start-1||St&&ae(St,zt)>-1||je(ve,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(ct)||[],gt,bt,!0))return Tt.Pass;var Gt=typeof ie=="object"&&ie.emptyTags;if(Gt&&ae(Gt,gt)>-1){He[Ge]={text:"/>",newPos:Tt.Pos(bt.line,bt.ch+2)};continue}var $t=kt&&ae(kt,zt)>-1;He[Ge]={indent:$t,text:">"+($t?` `:"")+"",newPos:$t?Tt.Pos(bt.line+1,0):Tt.Pos(bt.line,bt.ch+1)}}for(var Wt=typeof ie=="object"&&ie.dontIndentOnAutoClose,Ge=Nt.length-1;Ge>=0;Ge--){var Jt=He[Ge];ve.replaceRange(Jt.text,Nt[Ge].head,Nt[Ge].anchor,"+insert");var de=ve.listSelections().slice(0);de[Ge]={head:Jt.newPos,anchor:Jt.newPos},ve.setSelections(de),!Wt&&Jt.indent&&(ve.indentLine(Jt.newPos.line,null,!0),ve.indentLine(Jt.newPos.line+1,null,!0))}}function ye(ve,Nt){for(var He=ve.listSelections(),ie=[],Ge=Nt?"/":""&&(St+=">"),ie[et]=St}if(ve.replaceSelections(ie),He=ve.listSelections(),!nt)for(var et=0;et=0&&Nt[ct]==He;ct--)++et;ie=nt.to;for(var ct=1;ct=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function Nt(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function He(ct){for(;;){var lt=ct.text.indexOf(">",ct.ch);if(lt==-1){if(ve(ct))continue;return}if(!je(ct,lt+1)){ct.ch=lt+1;continue}var gt=ct.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(ct.text.slice(gt+1,lt));return ct.ch=lt+1,mt?"selfClose":"regular"}}function ie(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(lt==-1){if(Nt(ct))continue;return}if(!je(ct,lt+1)){ct.ch=lt;continue}Ht.lastIndex=lt,ct.ch=lt;var gt=Ht.exec(ct.text);if(gt&>.index==lt)return gt}}function Ge(ct){for(;;){Ht.lastIndex=ct.ch;var lt=Ht.exec(ct.text);if(!lt){if(ve(ct))continue;return}if(!je(ct,lt.index+1)){ct.ch=lt.index+1;continue}return ct.ch=lt.index+lt[0].length,lt}}function bt(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(lt==-1){if(Nt(ct))continue;return}if(!je(ct,lt+1)){ct.ch=lt;continue}var gt=ct.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(ct.text.slice(gt+1,lt));return ct.ch=lt+1,mt?"selfClose":"regular"}}function nt(ct,lt){for(var gt=[];;){var mt=Ge(ct),St,kt=ct.line,zt=ct.ch-(mt?mt[0].length:0);if(!mt||!(St=He(ct)))return;if(St!="selfClose")if(mt[1]){for(var Gt=gt.length-1;Gt>=0;--Gt)if(gt[Gt]==mt[2]){gt.length=Gt;break}if(Gt<0&&(!lt||lt==mt[2]))return{tag:mt[2],from:ee(kt,zt),to:ee(ct.line,ct.ch)}}else gt.push(mt[2])}}function et(ct,lt){for(var gt=[];;){var mt=bt(ct);if(!mt)return;if(mt=="selfClose"){ie(ct);continue}var St=ct.line,kt=ct.ch,zt=ie(ct);if(!zt)return;if(zt[1])gt.push(zt[2]);else{for(var Gt=gt.length-1;Gt>=0;--Gt)if(gt[Gt]==zt[2]){gt.length=Gt;break}if(Gt<0&&(!lt||lt==zt[2]))return{tag:zt[2],from:ee(ct.line,ct.ch),to:ee(St,kt)}}}}Tt.registerHelper("fold","xml",function(ct,lt){for(var gt=new ae(ct,lt.line,0);;){var mt=Ge(gt);if(!mt||gt.line!=lt.line)return;var St=He(gt);if(!St)return;if(!mt[1]&&St!="selfClose"){var kt=ee(gt.line,gt.ch),zt=nt(gt,mt[2]);return zt&&xe(zt.from,kt)>0?{from:kt,to:zt.from}:null}}}),Tt.findMatchingTag=function(ct,lt,gt){var mt=new ae(ct,lt.line,lt.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var St=He(mt),kt=St&&ee(mt.line,mt.ch),zt=St&&ie(mt);if(!(!St||!zt||xe(mt,lt)>0)){var Gt={from:ee(mt.line,mt.ch),to:kt,tag:zt[2]};return St=="selfClose"?{open:Gt,close:null,at:"open"}:zt[1]?{open:et(mt,zt[2]),close:Gt,at:"close"}:(mt=new ae(ct,kt.line,kt.ch,gt),{open:Gt,close:nt(mt,zt[2]),at:"open"})}}},Tt.findEnclosingTag=function(ct,lt,gt,mt){for(var St=new ae(ct,lt.line,lt.ch,gt);;){var kt=et(St,mt);if(!kt)break;var zt=new ae(ct,lt.line,lt.ch,gt),Gt=nt(zt,kt.tag);if(Gt)return{open:kt,close:Gt}}},Tt.scanForClosingTag=function(ct,lt,gt,mt){var St=new ae(ct,lt.line,lt.ch,mt?{from:0,to:mt}:null);return nt(St,gt)}})},89780:function(Wn){(function(ai,Ot){Wn.exports=Ot()})(this,function(){"use strict";var ai=navigator.userAgent,Ot=navigator.platform,Tt=/gecko\/\d/i.test(ai),ee=/MSIE \d/.test(ai),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ai),me=/Edge\/(\d+)/.exec(ai),ye=ee||xe||me,Ht=ye&&(ee?document.documentMode||6:+(me||xe)[1]),ae=!me&&/WebKit\//.test(ai),je=ae&&/Qt\/\d+\.\d+/.test(ai),ve=!me&&/Chrome\//.test(ai),Nt=/Opera\//.test(ai),He=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ai),Ge=/PhantomJS/.test(ai),bt=!me&&/AppleWebKit/.test(ai)&&/Mobile\/\w+/.test(ai),nt=/Android/.test(ai),et=bt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ai),ct=bt||/Mac/.test(Ot),lt=/\bCrOS\b/.test(ai),gt=/win/i.test(Ot),mt=Nt&&ai.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(Nt=!1,ae=!0);var St=ct&&(je||Nt&&(mt==null||mt<12.11)),kt=Tt||ye&&Ht>=9;function zt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Gt=function(it,at){var dt=it.className,ht=zt(at).exec(dt);if(ht){var pt=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(pt?ht[1]+pt:"")}};function $t(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Wt(it,at){return $t(it).appendChild(at)}function Jt(it,at,dt,ht){var pt=document.createElement(it);if(dt&&(pt.className=dt),ht&&(pt.style.cssText=ht),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var wt=0;wt=at)return Bt+(at-wt);Bt+=Kt-wt,Bt+=dt-Bt%dt,wt=Kt+1}}var Xt=function(){this.id=null,this.f=null,this.time=0,this.handler=on(this.onTimeout,this)};Xt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Xt.prototype.set=function(it,at){this.f=at;var dt=+new Date+it;(!this.id||dt=at)return ht+Math.min(Bt,at-pt);if(pt+=wt-ht,pt+=dt-pt%dt,ht=wt+1,pt>=at)return ht}}var we=[""];function ue(it){for(;we.length<=it;)we.push(Xe(we)+" ");return we[it]}function Xe(it){return it[it.length-1]}function di(it,at){for(var dt=[],ht=0;ht"\x80"&&(it.toUpperCase()!=it.toLowerCase()||xt.test(it))}function jt(it,at){return at?at.source.indexOf("\\w")>-1&&Ft(it)?!0:at.test(it):Ft(it)}function Mt(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var Ut=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Fe(it){return it.charCodeAt(0)>=768&&Ut.test(it)}function Se(it,at,dt){for(;(dt<0?at>0:atdt?-1:1;;){if(at==dt)return at;var pt=(at+dt)/2,wt=ht<0?Math.ceil(pt):Math.floor(pt);if(wt==at)return it(wt)?at:dt;it(wt)?dt=wt:at=wt+ht}}function Le(it,at,dt,ht){if(!it)return ht(at,dt,"ltr",0);for(var pt=!1,wt=0;wtat||at==dt&&Bt.to==at)&&(ht(Math.max(Bt.from,at),Math.min(Bt.to,dt),Bt.level==1?"rtl":"ltr",wt),pt=!0)}pt||ht(at,dt,"ltr")}var Pe=null;function be(it,at,dt){var ht;Pe=null;for(var pt=0;ptat)return pt;wt.to==at&&(wt.from!=wt.to&&dt=="before"?ht=pt:Pe=pt),wt.from==at&&(wt.from!=wt.to&&dt!="before"?ht=pt:Pe=pt)}return ht!=null?ht:Pe}var We=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(re){return re<=247?it.charAt(re):1424<=re&&re<=1524?"R":1536<=re&&re<=1785?at.charAt(re-1536):1774<=re&&re<=2220?"r":8192<=re&&re<=8203?"w":re==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,wt=/[LRr]/,Bt=/[Lb1n]/,Kt=/[1n]/;function Zt(re,ze,ce){this.level=re,this.from=ze,this.to=ce}return function(re,ze){var ce=ze=="ltr"?"L":"R";if(re.length==0||ze=="ltr"&&!ht.test(re))return!1;for(var hn=re.length,tn=[],xi=0;xi-1&&(ht[at]=pt.slice(0,wt).concat(pt.slice(wt+1)))}}}function Gn(it,at){var dt=Cn(it,at);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),pt=0;pt0}function Ri(it){it.prototype.on=function(at,dt){vn(this,at,dt)},it.prototype.off=function(at,dt){mi(this,at,dt)}}function Qi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Ir(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Xi(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Rr(it){Qi(it),Ir(it)}function wo(it){return it.target||it.srcElement}function oo(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ct&&it.ctrlKey&&at==1&&(at=3),at}var uo=function(){if(ye&&Ht<9)return!1;var it=Jt("div");return"draggable"in it||"dragDrop"in it}(),po;function Do(it){if(po==null){var at=Jt("span","\u200B");Wt(it,Jt("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(po=at.offsetWidth<=1&&at.offsetHeight>2&&!(ye&&Ht<8))}var dt=po?Jt("span","\u200B"):Jt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var Zo;function Lo(it){if(Zo!=null)return Zo;var at=Wt(it,document.createTextNode("A\u062EA")),dt=le(at,0,1).getBoundingClientRect(),ht=le(at,1,2).getBoundingClientRect();return $t(it),!dt||dt.left==dt.right?!1:Zo=ht.right-dt.right<3}var Vo=` b`.split(/\n/).length!=3?function(it){for(var at=0,dt=[],ht=it.length;at<=ht;){var pt=it.indexOf(` `,at);pt==-1&&(pt=it.length);var wt=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),Bt=wt.indexOf("\r");Bt!=-1?(dt.push(wt.slice(0,Bt)),at+=Bt+1):(dt.push(wt),at=pt+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},Lt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(dt){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},yn=function(){var it=Jt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Dn=null;function Lr(it){if(Dn!=null)return Dn;var at=Wt(it,Jt("span","x")),dt=at.getBoundingClientRect(),ht=le(at,0,1).getBoundingClientRect();return Dn=Math.abs(dt.left-ht.left)>1}var vr={},Vi={};function Jr(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),vr[it]=at}function mo(it,at){Vi[it]=at}function Je(it){if(typeof it=="string"&&Vi.hasOwnProperty(it))it=Vi[it];else if(it&&typeof it.name=="string"&&Vi.hasOwnProperty(it.name)){var at=Vi[it.name];typeof at=="string"&&(at={name:at}),it=Ct(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Je("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Je("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function $e(it,at){at=Je(at);var dt=vr[at.name];if(!dt)return $e(it,"text/plain");var ht=dt(it,at);if(Te.hasOwnProperty(at.name)){var pt=Te[at.name];for(var wt in pt)pt.hasOwnProperty(wt)&&(ht.hasOwnProperty(wt)&&(ht["_"+wt]=ht[wt]),ht[wt]=pt[wt])}if(ht.name=at.name,at.helperType&&(ht.helperType=at.helperType),at.modeProps)for(var Bt in at.modeProps)ht[Bt]=at.modeProps[Bt];return ht}var Te={};function ln(it,at){var dt=Te.hasOwnProperty(it)?Te[it]:Te[it]={};gn(at,dt)}function Wi(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var dt={};for(var ht in at){var pt=at[ht];pt instanceof Array&&(pt=pt.concat([])),dt[ht]=pt}return dt}function Gi(it,at){for(var dt;it.innerMode&&(dt=it.innerMode(at),!(!dt||dt.mode==it));)at=dt.state,it=dt.mode;return dt||{mode:it,state:at}}function Kr(it,at,dt){return it.startState?it.startState(at,dt):!0}var Nn=function(it,at,dt){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};Nn.prototype.eol=function(){return this.pos>=this.string.length},Nn.prototype.sol=function(){return this.pos==this.lineStart},Nn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nn.prototype.next=function(){if(this.posat},Nn.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Nn.prototype.skipToEnd=function(){this.pos=this.string.length},Nn.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},Nn.prototype.backUp=function(it){this.pos-=it},Nn.prototype.column=function(){return this.lastColumnPos0?null:(wt&&at!==!1&&(this.pos+=wt[0].length),wt)}},Nn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nn.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},Nn.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},Nn.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function bi(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var pt=dt.children[ht],wt=pt.chunkSize();if(at=it.first&&atdt?Ze(dt,bi(it,dt).text.length):yr(at,bi(it,at.line).text.length)}function yr(it,at){var dt=it.ch;return dt==null||dt>at?Ze(it.line,at):dt<0?Ze(it.line,0):it}function ir(it,at){for(var dt=[],ht=0;htthis.maxLookAhead&&(this.maxLookAhead=it),at},vi.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},vi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vi.fromSaved=function(it,at,dt){return at instanceof Ln?new vi(it,Wi(it.mode,at.state),dt,at.lookAhead):new vi(it,Wi(it.mode,at),dt)},vi.prototype.save=function(it){var at=it!==!1?Wi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ln(at,this.maxLookAhead):at};function mr(it,at,dt,ht){var pt=[it.state.modeGen],wt={};Cr(it,at.text,it.doc.mode,dt,function(re,ze){return pt.push(re,ze)},wt,ht);for(var Bt=dt.state,Kt=function(re){dt.baseTokens=pt;var ze=it.state.overlays[re],ce=1,hn=0;dt.state=!0,Cr(it,at.text,ze.mode,dt,function(tn,xi){for(var Ei=ce;hntn&&pt.splice(ce,1,tn,pt[ce+1],ji),ce+=2,hn=Math.min(tn,ji)}if(xi)if(ze.opaque)pt.splice(Ei,ce-Ei,tn,"overlay "+xi),ce=Ei+2;else for(;Eiit.options.maxHighlightLength&&Wi(it.doc.mode,ht.state),wt=mr(it,at,ht);pt&&(ht.state=pt),at.stateAfter=ht.save(!pt),at.styles=wt.styles,wt.classes?at.styleClasses=wt.classes:at.styleClasses&&(at.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function to(it,at,dt){var ht=it.doc,pt=it.display;if(!ht.mode.startState)return new vi(ht,!0,at);var wt=Nr(it,at,dt),Bt=wt>ht.first&&bi(ht,wt-1).stateAfter,Kt=Bt?vi.fromSaved(ht,Bt,wt):new vi(ht,Kr(ht.mode),wt);return ht.iter(wt,at,function(Zt){Ee(it,Zt.text,Kt);var re=Kt.line;Zt.stateAfter=re==at-1||re%5==0||re>=pt.viewFrom&&reat.start)return wt}throw new Error("Mode "+it.name+" failed to advance stream.")}var hi=function(it,at,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=dt};function xr(it,at,dt,ht){var pt=it.doc,wt=pt.mode,Bt;at=Fi(pt,at);var Kt=bi(pt,at.line),Zt=to(it,at.line,dt),re=new Nn(Kt.text,it.options.tabSize,Zt),ze;for(ht&&(ze=[]);(ht||re.posit.options.maxHighlightLength?(Kt=!1,Bt&&Ee(it,at,ht,ze.pos),ze.pos=at.length,ce=null):ce=ur(Ki(dt,ze,ht.state,hn),wt),hn){var tn=hn[0].name;tn&&(ce="m-"+(ce?tn+" "+ce:tn))}if(!Kt||re!=ce){for(;ZtBt;--Kt){if(Kt<=wt.first)return wt.first;var Zt=bi(wt,Kt-1),re=Zt.stateAfter;if(re&&(!dt||Kt+(re instanceof Ln?re.lookAhead:0)<=wt.modeFrontier))return Kt;var ze=ge(Zt.text,null,it.options.tabSize);(pt==null||ht>ze)&&(pt=Kt-1,ht=ze)}return pt}function zr(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontierdt;ht--){var pt=bi(it,ht).stateAfter;if(pt&&(!(pt instanceof Ln)||ht+pt.lookAhead=at:wt.to>at);(ht||(ht=[])).push(new Zi(Bt,wt.from,Zt?null:wt.to))}}return ht}function Sr(it,at,dt){var ht;if(it)for(var pt=0;pt=at:wt.to>at);if(Kt||wt.from==at&&Bt.type=="bookmark"&&(!dt||wt.marker.insertLeft)){var Zt=wt.from==null||(Bt.inclusiveLeft?wt.from<=at:wt.from0&&Kt)for(var Hr=0;Hr0)){var ze=[Zt,1],ce=qn(re.from,Kt.from),hn=qn(re.to,Kt.to);(ce<0||!Bt.inclusiveLeft&&!ce)&&ze.push({from:re.from,to:Kt.from}),(hn>0||!Bt.inclusiveRight&&!hn)&&ze.push({from:Kt.to,to:re.to}),pt.splice.apply(pt,ze),Zt+=ze.length-3}}return pt}function Ae(it){var at=it.markedSpans;if(at){for(var dt=0;dtat)&&(!ht||Oi(ht,wt.marker)<0)&&(ht=wt.marker)}return ht}function Xn(it,at,dt,ht,pt){var wt=bi(it,at),Bt=an&&wt.markedSpans;if(Bt)for(var Kt=0;Kt=0&&ce<=0||ze<=0&&ce>=0)&&(ze<=0&&(Zt.marker.inclusiveRight&&pt.inclusiveLeft?qn(re.to,dt)>=0:qn(re.to,dt)>0)||ze>=0&&(Zt.marker.inclusiveRight&&pt.inclusiveLeft?qn(re.from,ht)<=0:qn(re.from,ht)<0)))return!0}}}function Mn(it){for(var at;at=gi(it);)it=at.find(-1,!0).line;return it}function Yn(it){for(var at;at=un(it);)it=at.find(1,!0).line;return it}function In(it){for(var at,dt;at=un(it);)it=at.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function At(it,at){var dt=bi(it,at),ht=Mn(dt);return dt==ht?at:qt(ht)}function ne(it,at){if(at>it.lastLine())return at;var dt=bi(it,at),ht;if(!Yt(it,dt))return at;for(;ht=un(dt);)dt=ht.find(1,!0).line;return qt(dt)+1}function Yt(it,at){var dt=an&&at.markedSpans;if(dt){for(var ht=void 0,pt=0;ptat.maxLineLength&&(at.maxLineLength=pt,at.maxLine=ht)})}var Ye=function(it,at,dt){this.text=it,Dt(this,at),this.height=dt?dt(this):1};Ye.prototype.lineNo=function(){return qt(this)},Ri(Ye);function Pn(it,at,dt,ht){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Ae(it),Dt(it,dt);var pt=ht?ht(it):1;pt!=it.height&&Si(it,pt)}function En(it){it.parent=null,Ae(it)}var Ue={},Zn={};function ri(it,at){if(!it||/^\s*$/.test(it))return null;var dt=at.addModeClass?Zn:Ue;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function oe(it,at){var dt=de("span",null,null,ae?"padding-right: .1px":null),ht={pre:de("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var wt=pt?at.rest[pt-1]:at.line,Bt=void 0;ht.pos=0,ht.addToken=Fn,Lo(it.display.measure)&&(Bt=rn(wt,it.doc.direction))&&(ht.addToken=pn(ht.addToken,Bt)),ht.map=[];var Kt=at!=it.display.externalMeasured&&qt(wt);li(wt,ht,br(it,wt,Kt)),wt.styleClasses&&(wt.styleClasses.bgClass&&(ht.bgClass=kn(wt.styleClasses.bgClass,ht.bgClass||"")),wt.styleClasses.textClass&&(ht.textClass=kn(wt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(Do(it.display.measure))),pt==0?(at.measure.map=ht.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(ht.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(ae){var Zt=ht.content.lastChild;(/\bcm-tab\b/.test(Zt.className)||Zt.querySelector&&Zt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return Gn(it,"renderLine",it,at.line,ht.pre),ht.pre.className&&(ht.textClass=kn(ht.pre.className,ht.textClass||"")),ht}function Tn(it){var at=Jt("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function Fn(it,at,dt,ht,pt,wt,Bt){if(at){var Kt=it.splitSpaces?wn(at,it.trailingSpace):at,Zt=it.cm.state.specialChars,re=!1,ze;if(!Zt.test(at))it.col+=at.length,ze=document.createTextNode(Kt),it.map.push(it.pos,it.pos+at.length,ze),ye&&Ht<9&&(re=!0),it.pos+=at.length;else{ze=document.createDocumentFragment();for(var ce=0;;){Zt.lastIndex=ce;var hn=Zt.exec(at),tn=hn?hn.index-ce:at.length-ce;if(tn){var xi=document.createTextNode(Kt.slice(ce,ce+tn));ye&&Ht<9?ze.appendChild(Jt("span",[xi])):ze.appendChild(xi),it.map.push(it.pos,it.pos+tn,xi),it.col+=tn,it.pos+=tn}if(!hn)break;ce+=tn+1;var Ei=void 0;if(hn[0]==" "){var ji=it.cm.options.tabSize,nr=ji-it.col%ji;Ei=ze.appendChild(Jt("span",ue(nr),"cm-tab")),Ei.setAttribute("role","presentation"),Ei.setAttribute("cm-text"," "),it.col+=nr}else hn[0]=="\r"||hn[0]==` `?(Ei=ze.appendChild(Jt("span",hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ei.setAttribute("cm-text",hn[0]),it.col+=1):(Ei=it.cm.options.specialCharPlaceholder(hn[0]),Ei.setAttribute("cm-text",hn[0]),ye&&Ht<9?ze.appendChild(Jt("span",[Ei])):ze.appendChild(Ei),it.col+=1);it.map.push(it.pos,it.pos+1,Ei),it.pos++}}if(it.trailingSpace=Kt.charCodeAt(at.length-1)==32,dt||ht||pt||re||wt||Bt){var Fr=dt||"";ht&&(Fr+=ht),pt&&(Fr+=pt);var fr=Jt("span",[ze],Fr,wt);if(Bt)for(var Hr in Bt)Bt.hasOwnProperty(Hr)&&Hr!="style"&&Hr!="class"&&fr.setAttribute(Hr,Bt[Hr]);return it.content.appendChild(fr)}it.content.appendChild(ze)}}function wn(it,at){if(it.length>1&&!/ /.test(it))return it;for(var dt=at,ht="",pt=0;ptre&&ce.from<=re));hn++);if(ce.to>=ze)return it(dt,ht,pt,wt,Bt,Kt,Zt);it(dt,ht.slice(0,ce.to-re),pt,wt,null,Kt,Zt),wt=null,ht=ht.slice(ce.to-re),re=ce.to}}}function ci(it,at,dt,ht){var pt=!ht&&dt.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!ht&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",dt.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function li(it,at,dt){var ht=it.markedSpans,pt=it.text,wt=0;if(!ht){for(var Bt=1;BtZt||Go.collapsed&&hr.to==Zt&&hr.from==Zt)){if(hr.to!=null&&hr.to!=Zt&&tn>hr.to&&(tn=hr.to,Ei=""),Go.className&&(xi+=" "+Go.className),Go.css&&(hn=(hn?hn+";":"")+Go.css),Go.startStyle&&hr.from==Zt&&(ji+=" "+Go.startStyle),Go.endStyle&&hr.to==tn&&(Hr||(Hr=[])).push(Go.endStyle,hr.to),Go.title&&((Fr||(Fr={})).title=Go.title),Go.attributes)for(var Ba in Go.attributes)(Fr||(Fr={}))[Ba]=Go.attributes[Ba];Go.collapsed&&(!nr||Oi(nr.marker,Go)<0)&&(nr=hr)}else hr.from>Zt&&tn>hr.from&&(tn=hr.from)}if(Hr)for(var ms=0;ms=Kt)break;for(var sl=Math.min(Kt,tn);;){if(ze){var Vs=Zt+ze.length;if(!nr){var cs=Vs>sl?ze.slice(0,sl-Zt):ze;at.addToken(at,cs,ce?ce+xi:xi,ji,Zt+cs.length==tn?Ei:"",hn,Fr)}if(Vs>=sl){ze=ze.slice(sl-Zt),Zt=sl;break}Zt=Vs,ji=""}ze=pt.slice(wt,wt=dt[re++]),ce=ri(dt[re++],at.cm.options)}}}function _n(it,at,dt){this.line=at,this.rest=In(at),this.size=this.rest?qt(Xe(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=Yt(it,at)}function oi(it,at,dt){for(var ht=[],pt,wt=at;wt2&&wt.push((Zt.bottom+re.top)/2-dt.top)}}wt.push(dt.bottom-dt.top)}}function Yr(it,at,dt){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;htdt)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function ta(it,at){at=Mn(at);var dt=qt(at),ht=it.display.externalMeasured=new _n(it.doc,at,dt);ht.lineN=dt;var pt=ht.built=oe(it,ht);return ht.text=pt.pre,Wt(it.display.lineMeasure,pt.pre),ht}function yo(it,at,dt,ht){return Uo(it,Co(it,at),dt,ht)}function na(it,at){if(at>=it.display.viewFrom&&at=dt.lineN&&atat)&&(wt=Zt-Kt,pt=wt-1,at>=Zt&&(Bt="right")),pt!=null){if(ht=it[re+2],Kt==Zt&&dt==(ht.insertLeft?"left":"right")&&(Bt=dt),dt=="left"&&pt==0)for(;re&&it[re-2]==it[re-3]&&it[re-1].insertLeft;)ht=it[(re-=3)+2],Bt="left";if(dt=="right"&&pt==Zt-Kt)for(;re=0&&(dt=it[pt]).left==dt.right;pt--);return dt}function So(it,at,dt,ht){var pt=Qo(at.map,dt,ht),wt=pt.node,Bt=pt.start,Kt=pt.end,Zt=pt.collapse,re;if(wt.nodeType==3){for(var ze=0;ze<4;ze++){for(;Bt&&Fe(at.line.text.charAt(pt.coverStart+Bt));)--Bt;for(;pt.coverStart+Kt0&&(Zt=ht="right");var ce;it.options.lineWrapping&&(ce=wt.getClientRects()).length>1?re=ce[ht=="right"?ce.length-1:0]:re=wt.getBoundingClientRect()}if(ye&&Ht<9&&!Bt&&(!re||!re.left&&!re.right)){var hn=wt.parentNode.getClientRects()[0];hn?re={left:hn.left,right:hn.left+Za(it.display),top:hn.top,bottom:hn.bottom}:re=ia}for(var tn=re.top-at.rect.top,xi=re.bottom-at.rect.top,Ei=(tn+xi)/2,ji=at.view.measure.heights,nr=0;nr=ht.text.length?(Zt=ht.text.length,re="before"):Zt<=0&&(Zt=0,re="after"),!Kt)return Bt(re=="before"?Zt-1:Zt,re=="before");function ze(xi,Ei,ji){var nr=Kt[Ei],Fr=nr.level==1;return Bt(ji?xi-1:xi,Fr!=ji)}var ce=be(Kt,Zt,re),hn=Pe,tn=ze(Zt,ce,re=="before");return hn!=null&&(tn.other=ze(Zt,hn,re!="before")),tn}function Hi(it,at){var dt=0;at=Fi(it.doc,at),it.options.lineWrapping||(dt=Za(it.display)*at.ch);var ht=bi(it.doc,at.line),pt=pe(ht)+Ui(it.display);return{left:dt,right:dt,top:pt,bottom:pt+ht.height}}function cr(it,at,dt,ht,pt){var wt=Ze(it,at,dt);return wt.xRel=pt,ht&&(wt.outside=ht),wt}function qi(it,at,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return cr(ht.first,0,null,-1,-1);var pt=Ce(ht,dt),wt=ht.first+ht.size-1;if(pt>wt)return cr(ht.first+ht.size-1,bi(ht,wt).text.length,null,1,1);at<0&&(at=0);for(var Bt=bi(ht,pt);;){var Kt=en(it,Bt,pt,at,dt),Zt=Vn(Bt,Kt.ch+(Kt.xRel>0||Kt.outside>0?1:0));if(!Zt)return Kt;var re=Zt.find(1);if(re.line==pt)return re;Bt=bi(ht,pt=re.line)}}function Un(it,at,dt,ht){ht-=no(at);var pt=at.text.length,wt=nn(function(Bt){return Uo(it,dt,Bt-1).bottom<=ht},pt,0);return pt=nn(function(Bt){return Uo(it,dt,Bt).top>ht},wt,pt),{begin:wt,end:pt}}function zo(it,at,dt,ht){dt||(dt=Co(it,at));var pt=qo(it,at,Uo(it,dt,ht),"line").top;return Un(it,at,dt,pt)}function se(it,at,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>at}function en(it,at,dt,ht,pt){pt-=pe(at);var wt=Co(it,at),Bt=no(at),Kt=0,Zt=at.text.length,re=!0,ze=rn(at,it.doc.direction);if(ze){var ce=(it.options.lineWrapping?ja:za)(it,at,dt,wt,ze,ht,pt);re=ce.level!=1,Kt=re?ce.from:ce.to-1,Zt=re?ce.to:ce.from-1}var hn=null,tn=null,xi=nn(function(co){var hr=Uo(it,wt,co);return hr.top+=Bt,hr.bottom+=Bt,se(hr,ht,pt,!1)?(hr.top<=pt&&hr.left<=ht&&(hn=co,tn=hr),!0):!1},Kt,Zt),Ei,ji,nr=!1;if(tn){var Fr=ht-tn.left=Hr.bottom?1:0}return xi=Se(at.text,xi,1),cr(dt,xi,ji,nr,ht-Ei)}function za(it,at,dt,ht,pt,wt,Bt){var Kt=nn(function(ce){var hn=pt[ce],tn=hn.level!=1;return se(tr(it,Ze(dt,tn?hn.to:hn.from,tn?"before":"after"),"line",at,ht),wt,Bt,!0)},0,pt.length-1),Zt=pt[Kt];if(Kt>0){var re=Zt.level!=1,ze=tr(it,Ze(dt,re?Zt.from:Zt.to,re?"after":"before"),"line",at,ht);se(ze,wt,Bt,!0)&&ze.top>Bt&&(Zt=pt[Kt-1])}return Zt}function ja(it,at,dt,ht,pt,wt,Bt){var Kt=Un(it,at,ht,Bt),Zt=Kt.begin,re=Kt.end;/\s/.test(at.text.charAt(re-1))&&re--;for(var ze=null,ce=null,hn=0;hn=re||tn.to<=Zt)){var xi=tn.level!=1,Ei=Uo(it,ht,xi?Math.min(re,tn.to)-1:Math.max(Zt,tn.from)).right,ji=Eiji)&&(ze=tn,ce=ji)}}return ze||(ze=pt[pt.length-1]),ze.fromre&&(ze={from:ze.from,to:re,level:ze.level}),ze}var da;function ca(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(da==null){da=Jt("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)da.appendChild(document.createTextNode("x")),da.appendChild(Jt("br"));da.appendChild(document.createTextNode("x"))}Wt(it.measure,da);var dt=da.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),$t(it.measure),dt||1}function Za(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Jt("span","xxxxxxxxxx"),dt=Jt("pre",[at],"CodeMirror-line-like");Wt(it.measure,dt);var ht=at.getBoundingClientRect(),pt=(ht.right-ht.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function Ta(it){for(var at=it.display,dt={},ht={},pt=at.gutters.clientLeft,wt=at.gutters.firstChild,Bt=0;wt;wt=wt.nextSibling,++Bt){var Kt=it.display.gutterSpecs[Bt].className;dt[Kt]=wt.offsetLeft+wt.clientLeft+pt,ht[Kt]=wt.clientWidth}return{fixedPos:Ws(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:at.wrapper.clientWidth}}function Ws(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function aa(it){var at=ca(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/Za(it.display)-3);return function(pt){if(Yt(it.doc,pt))return 0;var wt=0;if(pt.widgets)for(var Bt=0;Bt0&&(re=bi(it.doc,Zt.line).text).length==Zt.ch){var ze=ge(re,re.length,it.options.tabSize)-re.length;Zt=Ze(Zt.line,Math.max(0,Math.round((wt-Or(it.display).left)/Za(it.display))-ze))}return Zt}function $a(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var dt=it.display.view,ht=0;htat)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)an&&At(it.doc,at)pt.viewFrom?ga(it):(pt.viewFrom+=ht,pt.viewTo+=ht);else if(at<=pt.viewFrom&&dt>=pt.viewTo)ga(it);else if(at<=pt.viewFrom){var wt=ls(it,dt,dt+ht,1);wt?(pt.view=pt.view.slice(wt.index),pt.viewFrom=wt.lineN,pt.viewTo+=ht):ga(it)}else if(dt>=pt.viewTo){var Bt=ls(it,at,at,-1);Bt?(pt.view=pt.view.slice(0,Bt.index),pt.viewTo=Bt.lineN):ga(it)}else{var Kt=ls(it,at,at,-1),Zt=ls(it,dt,dt+ht,1);Kt&&Zt?(pt.view=pt.view.slice(0,Kt.index).concat(oi(it,Kt.lineN,Zt.lineN)).concat(pt.view.slice(Zt.index)),pt.viewTo+=ht):ga(it)}var re=pt.externalMeasured;re&&(dt=pt.lineN&&at=ht.viewTo)){var wt=ht.view[$a(it,at)];if(wt.node!=null){var Bt=wt.changes||(wt.changes=[]);Ve(Bt,dt)==-1&&Bt.push(dt)}}}function ga(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function ls(it,at,dt,ht){var pt=$a(it,at),wt,Bt=it.display.view;if(!an||dt==it.doc.first+it.doc.size)return{index:pt,lineN:dt};for(var Kt=it.display.viewFrom,Zt=0;Zt0){if(pt==Bt.length-1)return null;wt=Kt+Bt[pt].size-at,pt++}else wt=Kt-at;at+=wt,dt+=wt}for(;At(it.doc,dt)!=dt;){if(pt==(ht<0?0:Bt.length-1))return null;dt+=ht*Bt[pt-(ht<0?1:0)].size,pt+=ht}return{index:pt,lineN:dt}}function ra(it,at,dt){var ht=it.display,pt=ht.view;pt.length==0||at>=ht.viewTo||dt<=ht.viewFrom?(ht.view=oi(it,at,dt),ht.viewFrom=at):(ht.viewFrom>at?ht.view=oi(it,at,ht.viewFrom).concat(ht.view):ht.viewFromdt&&(ht.view=ht.view.slice(0,$a(it,dt)))),ht.viewTo=dt}function us(it){for(var at=it.display.view,dt=0,ht=0;ht=it.display.viewTo||Kt.to().line0?at.blinker=setInterval(function(){it.hasFocus()||fl(it),at.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function ua(it){it.state.focused||(it.display.input.focus(),Yo(it))}function pa(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,fl(it))},100)}function Yo(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Gn(it,"focus",it,at),it.state.focused=!0,Ke(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ae&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Xo(it))}function fl(it,at){it.state.delayingBlurEvent||(it.state.focused&&(Gn(it,"blur",it,at),it.state.focused=!1,Gt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Dr(it){for(var at=it.display,dt=at.lineDiv.offsetTop,ht=0;ht.005||ze<-.005)&&(Si(pt.line,Bt),pu(pt.line),pt.rest))for(var ce=0;ceit.display.sizerWidth){var hn=Math.ceil(Kt/Za(it.display));hn>it.display.maxLineLength&&(it.display.maxLineLength=hn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function pu(it){if(it.widgets)for(var at=0;at=Bt&&(wt=Ce(at,pe(bi(at,Zt))-it.wrapper.clientHeight),Bt=Zt)}return{from:wt,to:Math.max(Bt,wt+1)}}function Zl(it,at){if(!yi(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),pt=null;if(at.top+ht.top<0?pt=!0:at.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!Ge){var wt=Jt("div","\u200B",null,`position: absolute; top: `+(at.top-dt.viewOffset-Ui(it.display))+`px; height: `+(at.bottom-at.top+Er(it)+dt.barHeight)+`px; left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(wt),wt.scrollIntoView(pt),it.display.lineSpace.removeChild(wt)}}}function Qs(it,at,dt,ht){ht==null&&(ht=0);var pt;!it.options.lineWrapping&&at==dt&&(at=at.ch?Ze(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,dt=at.sticky=="before"?Ze(at.line,at.ch+1,"before"):at);for(var wt=0;wt<5;wt++){var Bt=!1,Kt=tr(it,at),Zt=!dt||dt==at?Kt:tr(it,dt);pt={left:Math.min(Kt.left,Zt.left),top:Math.min(Kt.top,Zt.top)-ht,right:Math.max(Kt.left,Zt.left),bottom:Math.max(Kt.bottom,Zt.bottom)+ht};var re=mu(it,pt),ze=it.doc.scrollTop,ce=it.doc.scrollLeft;if(re.scrollTop!=null&&(gl(it,re.scrollTop),Math.abs(it.doc.scrollTop-ze)>1&&(Bt=!0)),re.scrollLeft!=null&&(pl(it,re.scrollLeft),Math.abs(it.doc.scrollLeft-ce)>1&&(Bt=!0)),!Bt)break}return pt}function bl(it,at){var dt=mu(it,at);dt.scrollTop!=null&&gl(it,dt.scrollTop),dt.scrollLeft!=null&&pl(it,dt.scrollLeft)}function mu(it,at){var dt=it.display,ht=ca(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,wt=ao(it),Bt={};at.bottom-at.top>wt&&(at.bottom=at.top+wt);var Kt=it.doc.height+Wr(dt),Zt=at.topKt-ht;if(at.toppt+wt){var ze=Math.min(at.top,(re?Kt:at.bottom)-wt);ze!=pt&&(Bt.scrollTop=ze)}var ce=it.options.fixedGutter?0:dt.gutters.offsetWidth,hn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-ce,tn=eo(it)-dt.gutters.offsetWidth,xi=at.right-at.left>tn;return xi&&(at.right=at.left+tn),at.left<10?Bt.scrollLeft=0:at.lefttn+hn-3&&(Bt.scrollLeft=at.right+(xi?0:10)-tn),Bt}function vu(it,at){at!=null&&(Gs(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Hs(it){Gs(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Vl(it,at,dt){(at!=null||dt!=null)&&Gs(it),at!=null&&(it.curOp.scrollLeft=at),dt!=null&&(it.curOp.scrollTop=dt)}function Wo(it,at){Gs(it),it.curOp.scrollToPos=at}function Gs(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var dt=Hi(it,at.from),ht=Hi(it,at.to);yu(it,dt,ht,at.margin)}}function yu(it,at,dt,ht){var pt=mu(it,{left:Math.min(at.left,dt.left),top:Math.min(at.top,dt.top)-ht,right:Math.max(at.right,dt.right),bottom:Math.max(at.bottom,dt.bottom)+ht});Vl(it,pt.scrollLeft,pt.scrollTop)}function gl(it,at){Math.abs(it.doc.scrollTop-at)<2||(Tt||fh(it,{top:at}),bu(it,at,!0),Tt&&fh(it),ns(it,100))}function bu(it,at,dt){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!dt)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function pl(it,at,dt,ht){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!ht)&&(it.doc.scrollLeft=at,nf(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function Po(it){var at=it.display,dt=at.gutters.offsetWidth,ht=Math.round(it.doc.height+Wr(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Er(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:dt}}var jo=function(it,at,dt){this.cm=dt;var ht=this.vert=Jt("div",[Jt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Jt("div",[Jt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=pt.tabIndex=-1,it(ht),it(pt),vn(ht,"scroll",function(){ht.clientHeight&&at(ht.scrollTop,"vertical")}),vn(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ye&&Ht<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jo.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=at?ht+"px":"0";var pt=it.viewHeight-(at?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var wt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+wt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:at?ht:0}},jo.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jo.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jo.prototype.zeroWidthHack=function(){var it=ct&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Xt,this.disableVert=new Xt},jo.prototype.enableZeroWidthBar=function(it,at,dt){it.style.pointerEvents="auto";function ht(){var pt=it.getBoundingClientRect(),wt=dt=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);wt!=it?it.style.pointerEvents="none":at.set(1e3,ht)}at.set(1e3,ht)},jo.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var wa=function(){};wa.prototype.update=function(){return{bottom:0,right:0}},wa.prototype.setScrollLeft=function(){},wa.prototype.setScrollTop=function(){},wa.prototype.clear=function(){};function ts(it,at){at||(at=Po(it));var dt=it.display.barWidth,ht=it.display.barHeight;Ja(it,at);for(var pt=0;pt<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;pt++)dt!=it.display.barWidth&&it.options.lineWrapping&&Dr(it),Ja(it,Po(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Ja(it,at){var dt=it.display,ht=dt.scrollbars.update(at);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=at.gutterWidth+"px"):dt.gutterFiller.style.display=""}var Nl={native:jo,null:wa};function ml(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Gt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Nl[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),vn(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,dt){dt=="horizontal"?pl(it,at):gl(it,at)},it),it.display.scrollbars.addClass&&Ke(it.display.wrapper,it.display.scrollbars.addClass)}var Ao=0;function qr(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ao},Ii(it.curOp)}function Ka(it){var at=it.curOp;at&&dr(at,function(dt){for(var ht=0;ht=dt.viewTo)||dt.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new Yh(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function hg(it){it.updatedDisplay=it.mustUpdate&&ef(it.cm,it.update)}function tf(it){var at=it.cm,dt=at.display;it.updatedDisplay&&Dr(at),it.barMeasure=Po(at),dt.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=yo(at,dt.maxLine,dt.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Er(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-eo(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Wa(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=to(it,at.highlightFrontier),pt=[];at.iter(ht.line,Math.min(at.first+at.size,it.display.viewTo+500),function(wt){if(ht.line>=it.display.viewFrom){var Bt=wt.styles,Kt=wt.text.length>it.options.maxHighlightLength?Wi(at.mode,ht.state):null,Zt=mr(it,wt,ht,!0);Kt&&(ht.state=Kt),wt.styles=Zt.styles;var re=wt.styleClasses,ze=Zt.classes;ze?wt.styleClasses=ze:re&&(wt.styleClasses=null);for(var ce=!Bt||Bt.length!=wt.styles.length||re!=ze&&(!re||!ze||re.bgClass!=ze.bgClass||re.textClass!=ze.textClass),hn=0;!ce&&hndt)return ns(it,it.options.workDelay),!0}),at.highlightFrontier=ht.line,at.modeFrontier=Math.max(at.modeFrontier,ht.line),pt.length&&Zr(it,function(){for(var wt=0;wt=dt.viewFrom&&at.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&us(it)==0)return!1;ss(it)&&(ga(it),at.dims=Ta(it));var pt=ht.first+ht.size,wt=Math.max(at.visible.from-it.options.viewportMargin,ht.first),Bt=Math.min(pt,at.visible.to+it.options.viewportMargin);dt.viewFromBt&&dt.viewTo-Bt<20&&(Bt=Math.min(pt,dt.viewTo)),an&&(wt=At(it.doc,wt),Bt=ne(it.doc,Bt));var Kt=wt!=dt.viewFrom||Bt!=dt.viewTo||dt.lastWrapHeight!=at.wrapperHeight||dt.lastWrapWidth!=at.wrapperWidth;ra(it,wt,Bt),dt.viewOffset=pe(bi(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var Zt=us(it);if(!Kt&&Zt==0&&!at.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var re=Gp(it);return Zt>4&&(dt.lineDiv.style.display="none"),dg(it,dt.updateLineNumbers,at.dims),Zt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,ol(re),$t(dt.cursorDiv),$t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,Kt&&(dt.lastWrapHeight=at.wrapperHeight,dt.lastWrapWidth=at.wrapperWidth,ns(it,400)),dt.updateLineNumbers=null,!0}function va(it,at){for(var dt=at.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||at.oldDisplayWidth==eo(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+Wr(it.display)-ao(it),dt.top)}),at.visible=lo(it.display,it.doc,dt),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else ht&&(at.visible=lo(it.display,it.doc,dt));if(!ef(it,at))break;Dr(it);var pt=Po(it);Da(it),ts(it,pt),ph(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function fh(it,at){var dt=new Yh(it,at);if(ef(it,dt)){Dr(it),va(it,dt);var ht=Po(it);Da(it),ts(it,ht),ph(it,ht),dt.finish()}}function dg(it,at,dt){var ht=it.display,pt=it.options.lineNumbers,wt=ht.lineDiv,Bt=wt.firstChild;function Kt(xi){var Ei=xi.nextSibling;return ae&&ct&&it.display.currentWheelTarget==xi?xi.style.display="none":xi.parentNode.removeChild(xi),Ei}for(var Zt=ht.view,re=ht.viewFrom,ze=0;ze-1&&(tn=!1),Ji(it,ce,re,dt)),tn&&($t(ce.lineNumber),ce.lineNumber.appendChild(document.createTextNode(Qn(it.options,re)))),Bt=ce.node.nextSibling}re+=ce.size}for(;Bt;)Bt=Kt(Bt)}function gh(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function ph(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+Er(it)+"px"}function nf(it){var at=it.display,dt=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Ws(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,wt=ht+"px",Bt=0;BtBt.clientWidth,Zt=Bt.scrollHeight>Bt.clientHeight;if(ht&&Kt||pt&&Zt){if(pt&&ct&&ae){t:for(var re=at.target,ze=wt.view;re!=Bt;re=re.parentNode)for(var ce=0;ce=0&&qn(it,ht.to())<=0)return dt}return-1};var ya=function(it,at){this.anchor=it,this.head=at};ya.prototype.from=function(){return ti(this.anchor,this.head)},ya.prototype.to=function(){return Pi(this.anchor,this.head)},ya.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ru(it,at,dt){var ht=it&&it.options.selectionsMayTouch,pt=at[dt];at.sort(function(hn,tn){return qn(hn.from(),tn.from())}),dt=Ve(at,pt);for(var wt=1;wt0:Zt>=0){var re=ti(Kt.from(),Bt.from()),ze=Pi(Kt.to(),Bt.to()),ce=Kt.empty()?Bt.from()==Bt.head:Kt.from()==Kt.head;wt<=dt&&--dt,at.splice(--wt,2,new ya(ce?ze:re,ce?re:ze))}}return new Kl(at,dt)}function Qu(it,at){return new Kl([new ya(it,at||it)],0)}function vh(it){return it.text?Ze(it.from.line+it.text.length-1,Xe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Xh(it,at){if(qn(it,at.from)<0)return it;if(qn(it,at.to)<=0)return vh(at);var dt=it.line+at.text.length-(at.to.line-at.from.line)-1,ht=it.ch;return it.line==at.to.line&&(ht+=vh(at).ch-at.to.ch),Ze(dt,ht)}function hc(it,at){for(var dt=[],ht=0;ht1&&it.remove(Kt.line+1,xi-1),it.insert(Kt.line+1,nr)}ui(it,"change",it,at)}function xu(it,at,dt){function ht(pt,wt,Bt){if(pt.linked)for(var Kt=0;Kt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Xe(it.done)}function pc(it,at,dt,ht){var pt=it.history;pt.undone.length=0;var wt=+new Date,Bt,Kt;if((pt.lastOp==ht||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>wt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Bt=gc(pt,pt.lastOp==ht)))Kt=Xe(Bt.changes),qn(at.from,at.to)==0&&qn(at.from,Kt.to)==0?Kt.to=vh(at):Bt.changes.push(af(it,at));else{var Zt=Xe(pt.done);for((!Zt||!Zt.ranges)&&Dd(it.sel,pt.done),Bt={changes:[af(it,at)],generation:pt.generation},pt.done.push(Bt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(dt),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=wt,pt.lastOp=pt.lastSelOp=ht,pt.lastOrigin=pt.lastSelOrigin=at.origin,Kt||Gn(it,"historyAdded")}function fg(it,at,dt,ht){var pt=at.charAt(0);return pt=="*"||pt=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function mc(it,at,dt,ht){var pt=it.history,wt=ht&&ht.origin;dt==pt.lastSelOp||wt&&pt.lastSelOrigin==wt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==wt||fg(it,wt,Xe(pt.done),at))?pt.done[pt.done.length-1]=at:Dd(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=wt,pt.lastSelOp=dt,ht&&ht.clearRedo!==!1&&Td(pt.undone)}function Dd(it,at){var dt=Xe(at);dt&&dt.ranges&&dt.equals(it)||at.push(it)}function yh(it,at,dt,ht){var pt=at["spans_"+it.id],wt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Bt){Bt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[wt]=Bt.markedSpans),++wt})}function _s(it){if(!it)return null;for(var at,dt=0;dt-1&&(Xe(Kt)[ce]=re[ce],delete re[ce])}}return ht}function lf(it,at,dt,ht){if(ht){var pt=it.anchor;if(dt){var wt=qn(at,pt)<0;wt!=qn(dt,pt)<0?(pt=at,at=dt):wt!=qn(at,dt)<0&&(at=dt)}return new ya(pt,at)}else return new ya(dt||at,at)}function uf(it,at,dt,ht,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Zs(it,new Kl([lf(it.sel.primary(),at,dt,pt)],0),ht)}function Zp(it,at,dt){for(var ht=[],pt=it.cm&&(it.cm.display.shift||it.extend),wt=0;wt=at.ch:Kt.to>at.ch))){if(pt&&(Gn(Zt,"beforeCursorEnter"),Zt.explicitlyCleared))if(wt.markedSpans){--Bt;continue}else break;if(!Zt.atomic)continue;if(dt){var ce=Zt.find(ht<0?1:-1),hn=void 0;if((ht<0?ze:re)&&(ce=pg(it,ce,-ht,ce&&ce.line==at.line?wt:null)),ce&&ce.line==at.line&&(hn=qn(ce,dt))&&(ht<0?hn<0:hn>0))return qu(it,ce,at,ht,pt)}var tn=Zt.find(ht<0?-1:1);return(ht<0?re:ze)&&(tn=pg(it,tn,ht,tn.line==at.line?wt:null)),tn?qu(it,tn,at,ht,pt):null}}return at}function Sc(it,at,dt,ht,pt){var wt=ht||1,Bt=qu(it,at,dt,wt,pt)||!pt&&qu(it,at,dt,wt,!0)||qu(it,at,dt,-wt,pt)||!pt&&qu(it,at,dt,-wt,!0);return Bt||(it.cantEdit=!0,Ze(it.first,0))}function pg(it,at,dt,ht){return dt<0&&at.ch==0?at.line>it.first?Fi(it,Ze(at.line-1)):null:dt>0&&at.ch==(ht||bi(it,at.line)).text.length?at.line=0;--pt)_h(it,{from:ht[pt].from,to:ht[pt].to,text:pt?[""]:at.text,origin:at.origin});else _h(it,at)}}function _h(it,at){if(!(at.text.length==1&&at.text[0]==""&&qn(at.from,at.to)==0)){var dt=hc(it,at);pc(it,at,dt,it.cm?it.cm.curOp.id:NaN),Bd(it,at,dt,bo(it,at));var ht=[];xu(it,function(pt,wt){!wt&&Ve(ht,pt.history)==-1&&(vg(pt.history,at),ht.push(pt.history)),Bd(pt,at,null,bo(pt,at))})}}function Pc(it,at,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var pt=it.history,wt,Bt=it.sel,Kt=at=="undo"?pt.done:pt.undone,Zt=at=="undo"?pt.undone:pt.done,re=0;re=0;--tn){var xi=hn(tn);if(xi)return xi.v}}}}function mg(it,at){if(at!=0&&(it.first+=at,it.sel=new Kl(di(it.sel.ranges,function(pt){return new ya(Ze(pt.anchor.line+at,pt.anchor.ch),Ze(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){sa(it.cm,it.first,it.first-at,at);for(var dt=it.cm.display,ht=dt.viewFrom;htit.lastLine())){if(at.from.linewt&&(at={from:at.from,to:Ze(wt,bi(it,wt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=wr(it,at.from,at.to),dt||(dt=hc(it,at)),it.cm?Kp(it.cm,at,ht):rf(it,at,ht),Qh(it,dt,Be),it.cantEdit&&Sc(it,Ze(it.firstLine(),0))&&(it.cantEdit=!1)}}function Kp(it,at,dt){var ht=it.doc,pt=it.display,wt=at.from,Bt=at.to,Kt=!1,Zt=wt.line;it.options.lineWrapping||(Zt=qt(Mn(bi(ht,wt.line))),ht.iter(Zt,Bt.line+1,function(tn){if(tn==pt.maxLine)return Kt=!0,!0})),ht.sel.contains(at.from,at.to)>-1&&ni(it),rf(ht,at,dt,aa(it)),it.options.lineWrapping||(ht.iter(Zt,wt.line+at.text.length,function(tn){var xi=Oe(tn);xi>pt.maxLineLength&&(pt.maxLine=tn,pt.maxLineLength=xi,pt.maxLineChanged=!0,Kt=!1)}),Kt&&(it.curOp.updateMaxLine=!0)),zr(ht,wt.line),ns(it,400);var re=at.text.length-(Bt.line-wt.line)-1;at.full?sa(it):wt.line==Bt.line&&at.text.length==1&&!cg(it.doc,at)?_r(it,wt.line,"text"):sa(it,wt.line,Bt.line+1,re);var ze=ki(it,"changes"),ce=ki(it,"change");if(ce||ze){var hn={from:wt,to:Bt,text:at.text,removed:at.removed,origin:at.origin};ce&&ui(it,"change",it,hn),ze&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(hn)}it.display.selForContextMenu=null}function qh(it,at,dt,ht,pt){var wt;ht||(ht=dt),qn(ht,dt)<0&&(wt=[ht,dt],dt=wt[0],ht=wt[1]),typeof at=="string"&&(at=it.splitLines(at)),xh(it,{from:dt,to:ht,text:at,origin:pt})}function Yl(it,at,dt,ht){dt1||!(this.children[0]instanceof Od))){var Kt=[];this.collapse(Kt),this.children=[new Od(Kt)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at50){for(var Bt=pt.lines.length%25+25,Kt=Bt;Kt10);it.parent.maybeSpill()}},iterN:function(it,at,dt){for(var ht=0;htit.display.maxLineLength&&(it.display.maxLine=re,it.display.maxLineLength=ze,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&sa(it,ht,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&vc(it.doc)),it&&ui(it,"markerCleared",it,this,ht,pt),at&&Ka(it),this.parent&&this.parent.clear()}},Me.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,pt=0;pt0||Bt==0&&wt.clearWhenEmpty!==!1)return wt;if(wt.replacedWith&&(wt.collapsed=!0,wt.widgetNode=de("span",[wt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||wt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(wt.widgetNode.insertLeft=!0)),wt.collapsed){if(Xn(it,at.line,at,dt,wt)||at.line!=dt.line&&Xn(it,dt.line,at,dt,wt))throw new Error("Inserting collapsed marker partially overlapping an existing one");sn()}wt.addToHistory&&pc(it,{from:at,to:dt,origin:"markText"},it.sel,NaN);var Kt=at.line,Zt=it.cm,re;if(it.iter(Kt,dt.line+1,function(ce){Zt&&wt.collapsed&&!Zt.options.lineWrapping&&Mn(ce)==Zt.display.maxLine&&(re=!0),wt.collapsed&&Kt!=at.line&&Si(ce,0),Fo(ce,new Zi(wt,Kt==at.line?at.ch:null,Kt==dt.line?dt.ch:null)),++Kt}),wt.collapsed&&it.iter(at.line,dt.line+1,function(ce){Yt(it,ce)&&Si(ce,0)}),wt.clearOnEnter&&vn(wt,"beforeCursorEnter",function(){return wt.clear()}),wt.readOnly&&(vo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),wt.collapsed&&(wt.id=++Xp,wt.atomic=!0),Zt){if(re&&(Zt.curOp.updateMaxLine=!0),wt.collapsed)sa(Zt,at.line,dt.line+1);else if(wt.className||wt.startStyle||wt.endStyle||wt.css||wt.attributes||wt.title)for(var ze=at.line;ze<=dt.line;ze++)_r(Zt,ze,"text");wt.atomic&&vc(Zt.doc),ui(Zt,"markerAdded",Zt,wt)}return wt}var Tu=function(it,at){this.markers=it,this.primary=at;for(var dt=0;dt=0;Zt--)xh(this,ht[Zt]);Kt?hf(this,Kt):this.cm&&Hs(this.cm)}),undo:$o(function(){Pc(this,"undo")}),redo:$o(function(){Pc(this,"redo")}),undoSelection:$o(function(){Pc(this,"undo",!0)}),redoSelection:$o(function(){Pc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,dt=0,ht=0;ht=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,dt){it=Fi(this,it),at=Fi(this,at);var ht=[],pt=it.line;return this.iter(it.line,at.line+1,function(wt){var Bt=wt.markedSpans;if(Bt)for(var Kt=0;Kt=Zt.to||Zt.from==null&&pt!=it.line||Zt.from!=null&&pt==at.line&&Zt.from>=at.ch)&&(!dt||dt(Zt.marker))&&ht.push(Zt.marker.parent||Zt.marker)}++pt}),ht},getAllMarks:function(){var it=[];return this.iter(function(at){var dt=at.markedSpans;if(dt)for(var ht=0;htit)return at=it,!0;it-=wt,++dt}),Fi(this,Ze(dt,at))},indexFromPos:function(it){it=Fi(this,it);var at=it.ch;if(it.lineat&&(at=it.from),it.to!=null&&it.to-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var ze=it.dataTransfer.getData("Text");if(ze){var ce;if(at.state.draggingText&&!at.state.draggingText.copy&&(ce=at.listSelections()),Qh(at.doc,Qu(dt,dt)),ce)for(var hn=0;hn=0;Kt--)qh(it.doc,"",ht[Kt].from,ht[Kt].to,"+delete");Hs(it)})}function Mg(it,at,dt){var ht=Se(it.text,at+dt,dt);return ht<0||ht>it.text.length?null:ht}function os(it,at,dt){var ht=Mg(it,at.ch,dt);return ht==null?null:new Ze(at.line,ht,dt<0?"after":"before")}function kc(it,at,dt,ht,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var wt=rn(dt,at.doc.direction);if(wt){var Bt=pt<0?Xe(wt):wt[0],Kt=pt<0==(Bt.level==1),Zt=Kt?"after":"before",re;if(Bt.level>0||at.doc.direction=="rtl"){var ze=Co(at,dt);re=pt<0?dt.text.length-1:0;var ce=Uo(at,ze,re).top;re=nn(function(hn){return Uo(at,ze,hn).top==ce},pt<0==(Bt.level==1)?Bt.from:Bt.to-1,re),Zt=="before"&&(re=Mg(dt,re,1))}else re=pt<0?Bt.to:Bt.from;return new Ze(ht,re,Zt)}}return new Ze(ht,pt<0?dt.text.length:0,pt<0?"before":"after")}function ff(it,at,dt,ht){var pt=rn(at,it.doc.direction);if(!pt)return os(at,dt,ht);dt.ch>=at.text.length?(dt.ch=at.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var wt=be(pt,dt.ch,dt.sticky),Bt=pt[wt];if(it.doc.direction=="ltr"&&Bt.level%2==0&&(ht>0?Bt.to>dt.ch:Bt.from=Bt.from&&hn>=ze.begin)){var tn=ce?"before":"after";return new Ze(dt.line,hn,tn)}}var xi=function(nr,Fr,fr){for(var Hr=function(Ba,ms){return ms?new Ze(dt.line,Kt(Ba,1),"before"):new Ze(dt.line,Ba,"after")};nr>=0&&nr0==(co.level!=1),Go=hr?fr.begin:Kt(fr.end,-1);if(co.from<=Go&&Go0?ze.end:Kt(ze.begin,-1);return ji!=null&&!(ht>0&&ji==at.text.length)&&(Ei=xi(ht>0?0:pt.length-1,ht,re(ji)),Ei)?Ei:null}var Ph={selectAll:rs,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Be)},killLine:function(it){return Sl(it,function(at){if(at.empty()){var dt=bi(it.doc,at.head.line).text.length;return at.head.ch==dt&&at.head.line0)pt=new Ze(pt.line,pt.ch+1),it.replaceRange(wt.charAt(pt.ch-1)+wt.charAt(pt.ch-2),Ze(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Bt=bi(it.doc,pt.line-1).text;Bt&&(pt=new Ze(pt.line,1),it.replaceRange(wt.charAt(0)+it.doc.lineSeparator()+Bt.charAt(Bt.length-1),Ze(pt.line-1,Bt.length-1),pt,"+transpose"))}}dt.push(new ya(pt,pt))}it.setSelections(dt)})},newlineAndIndent:function(it){return Zr(it,function(){for(var at=it.listSelections(),dt=at.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),at[dt].anchor,at[dt].head,"+input");at=it.listSelections();for(var ht=0;htit&&qn(at,this.pos)==0&&dt==this.button};var Hd,rd;function Dg(it,at){var dt=+new Date;return rd&&rd.compare(dt,it,at)?(Hd=rd=null,"triple"):Hd&&Hd.compare(dt,it,at)?(rd=new Tg(dt,it,at),Hd=null,"double"):(Hd=new Tg(dt,it,at),rd=null,"single")}function wu(it){var at=this,dt=at.display;if(!(yi(at,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,Ar(dt,it)){ae||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!Sf(at,it)){var ht=Va(at,it),pt=oo(it),wt=ht?Dg(ht,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(ht&&Bg(at,pt,ht,wt,it))&&(pt==1?ht?im(at,ht,wt,it):wo(it)==dt.scroller&&Qi(it):pt==2?(ht&&uf(at.doc,ht),setTimeout(function(){return dt.input.focus()},20)):pt==3&&(kt?at.display.input.onContextMenu(it):pa(at)))}}}function Bg(it,at,dt,ht,pt){var wt="Click";return ht=="double"?wt="Double"+wt:ht=="triple"&&(wt="Triple"+wt),wt=(at==1?"Left":at==2?"Middle":"Right")+wt,nd(it,kg(wt,pt),pt,function(Bt){if(typeof Bt=="string"&&(Bt=Ph[Bt]),!Bt)return!1;var Kt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Kt=Bt(it,dt)!=Bn}finally{it.state.suppressEdits=!1}return Kt})}function vf(it,at,dt){var ht=it.getOption("configureMouse"),pt=ht?ht(it,at,dt):{};if(pt.unit==null){var wt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;pt.unit=wt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||dt.shiftKey),pt.addNew==null&&(pt.addNew=ct?dt.metaKey:dt.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ct?dt.altKey:dt.ctrlKey)),pt}function im(it,at,dt,ht){ye?setTimeout(on(ua,it),0):it.curOp.focus=Re();var pt=vf(it,dt,ht),wt=it.doc.sel,Bt;it.options.dragDrop&&uo&&!it.isReadOnly()&&dt=="single"&&(Bt=wt.contains(at))>-1&&(qn((Bt=wt.ranges[Bt]).from(),at)<0||at.xRel>0)&&(qn(Bt.to(),at)>0||at.xRel<0)?Og(it,ht,at,pt):ev(it,ht,at,pt)}function Og(it,at,dt,ht){var pt=it.display,wt=!1,Bt=Xr(it,function(re){ae&&(pt.scroller.draggable=!1),it.state.draggingText=!1,mi(pt.wrapper.ownerDocument,"mouseup",Bt),mi(pt.wrapper.ownerDocument,"mousemove",Kt),mi(pt.scroller,"dragstart",Zt),mi(pt.scroller,"drop",Bt),wt||(Qi(re),ht.addNew||uf(it.doc,dt,null,null,ht.extend),ae&&!He||ye&&Ht==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),Kt=function(re){wt=wt||Math.abs(at.clientX-re.clientX)+Math.abs(at.clientY-re.clientY)>=10},Zt=function(){return wt=!0};ae&&(pt.scroller.draggable=!0),it.state.draggingText=Bt,Bt.copy=!ht.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),vn(pt.wrapper.ownerDocument,"mouseup",Bt),vn(pt.wrapper.ownerDocument,"mousemove",Kt),vn(pt.scroller,"dragstart",Zt),vn(pt.scroller,"drop",Bt),pa(it),setTimeout(function(){return pt.input.focus()},20)}function Ig(it,at,dt){if(dt=="char")return new ya(at,at);if(dt=="word")return it.findWordAt(at);if(dt=="line")return new ya(Ze(at.line,0),Fi(it.doc,Ze(at.line+1,0)));var ht=dt(it,at);return new ya(ht.from,ht.to)}function ev(it,at,dt,ht){var pt=it.display,wt=it.doc;Qi(at);var Bt,Kt,Zt=wt.sel,re=Zt.ranges;if(ht.addNew&&!ht.extend?(Kt=wt.sel.contains(dt),Kt>-1?Bt=re[Kt]:Bt=new ya(dt,dt)):(Bt=wt.sel.primary(),Kt=wt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Bt=new ya(dt,dt)),dt=Va(it,at,!0,!0),Kt=-1;else{var ze=Ig(it,dt,ht.unit);ht.extend?Bt=lf(Bt,ze.anchor,ze.head,ht.extend):Bt=ze}ht.addNew?Kt==-1?(Kt=re.length,Zs(wt,ru(it,re.concat([Bt]),Kt),{scroll:!1,origin:"*mouse"})):re.length>1&&re[Kt].empty()&&ht.unit=="char"&&!ht.extend?(Zs(wt,ru(it,re.slice(0,Kt).concat(re.slice(Kt+1)),0),{scroll:!1,origin:"*mouse"}),Zt=wt.sel):Sh(wt,Kt,Bt,dn):(Kt=0,Zs(wt,new Kl([Bt],0),dn),Zt=wt.sel);var ce=dt;function hn(fr){if(qn(ce,fr)!=0)if(ce=fr,ht.unit=="rectangle"){for(var Hr=[],co=it.options.tabSize,hr=ge(bi(wt,dt.line).text,dt.ch,co),Go=ge(bi(wt,fr.line).text,fr.ch,co),Ba=Math.min(hr,Go),ms=Math.max(hr,Go),Ua=Math.min(dt.line,fr.line),sl=Math.min(it.lastLine(),Math.max(dt.line,fr.line));Ua<=sl;Ua++){var Vs=bi(wt,Ua).text,cs=On(Vs,Ba,co);Ba==ms?Hr.push(new ya(Ze(Ua,cs),Ze(Ua,cs))):Vs.length>cs&&Hr.push(new ya(Ze(Ua,cs),Ze(Ua,On(Vs,ms,co))))}Hr.length||Hr.push(new ya(dt,dt)),Zs(wt,ru(it,Zt.ranges.slice(0,Kt).concat(Hr),Kt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(fr)}else{var xl=Bt,Bs=Ig(it,fr,ht.unit),fs=xl.anchor,ha;qn(Bs.anchor,fs)>0?(ha=Bs.head,fs=ti(xl.from(),Bs.anchor)):(ha=Bs.anchor,fs=Pi(xl.to(),Bs.head));var Qa=Zt.ranges.slice(0);Qa[Kt]=rm(it,new ya(Fi(wt,fs),ha)),Zs(wt,ru(it,Qa,Kt),dn)}}var tn=pt.wrapper.getBoundingClientRect(),xi=0;function Ei(fr){var Hr=++xi,co=Va(it,fr,!0,ht.unit=="rectangle");if(co)if(qn(co,ce)!=0){it.curOp.focus=Re(),hn(co);var hr=lo(pt,wt);(co.line>=hr.to||co.linetn.bottom?20:0;Go&&setTimeout(Xr(it,function(){xi==Hr&&(pt.scroller.scrollTop+=Go,Ei(fr))}),50)}}function ji(fr){it.state.selectingText=!1,xi=1/0,fr&&(Qi(fr),pt.input.focus()),mi(pt.wrapper.ownerDocument,"mousemove",nr),mi(pt.wrapper.ownerDocument,"mouseup",Fr),wt.history.lastSelOrigin=null}var nr=Xr(it,function(fr){fr.buttons===0||!oo(fr)?ji(fr):Ei(fr)}),Fr=Xr(it,ji);it.state.selectingText=Fr,vn(pt.wrapper.ownerDocument,"mousemove",nr),vn(pt.wrapper.ownerDocument,"mouseup",Fr)}function rm(it,at){var dt=at.anchor,ht=at.head,pt=bi(it.doc,dt.line);if(qn(dt,ht)==0&&dt.sticky==ht.sticky)return at;var wt=rn(pt);if(!wt)return at;var Bt=be(wt,dt.ch,dt.sticky),Kt=wt[Bt];if(Kt.from!=dt.ch&&Kt.to!=dt.ch)return at;var Zt=Bt+(Kt.from==dt.ch==(Kt.level!=1)?0:1);if(Zt==0||Zt==wt.length)return at;var re;if(ht.line!=dt.line)re=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var ze=be(wt,ht.ch,ht.sticky),ce=ze-Bt||(ht.ch-dt.ch)*(Kt.level==1?-1:1);ze==Zt-1||ze==Zt?re=ce<0:re=ce>0}var hn=wt[Zt+(re?-1:0)],tn=re==(hn.level==1),xi=tn?hn.from:hn.to,Ei=tn?"after":"before";return dt.ch==xi&&dt.sticky==Ei?at:new ya(new Ze(dt.line,xi,Ei),ht)}function yf(it,at,dt,ht){var pt,wt;if(at.touches)pt=at.touches[0].clientX,wt=at.touches[0].clientY;else try{pt=at.clientX,wt=at.clientY}catch(hn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Qi(at);var Bt=it.display,Kt=Bt.lineDiv.getBoundingClientRect();if(wt>Kt.bottom||!ki(it,dt))return Xi(at);wt-=Kt.top-Bt.viewOffset;for(var Zt=0;Zt=pt){var ze=Ce(it.doc,wt),ce=it.display.gutterSpecs[Zt];return Gn(it,dt,it,ze,ce.className,at),Xi(at)}}}function Sf(it,at){return yf(it,at,"gutterClick",!0)}function xf(it,at){Ar(it.display,at)||om(it,at)||yi(it,at,"contextmenu")||kt||it.display.input.onContextMenu(at)}function om(it,at){return ki(it,"gutterContextMenu")?yf(it,at,"gutterContextMenu",!1):!1}function Pf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ra(it)}var wh={toString:function(){return"CodeMirror.Init"}},Rg={},Mc={};function am(it){var at=it.optionHandlers;function dt(ht,pt,wt,Bt){it.defaults[ht]=pt,wt&&(at[ht]=Bt?function(Kt,Zt,re){re!=wh&&wt(Kt,Zt,re)}:wt)}it.defineOption=dt,it.Init=wh,dt("value","",function(ht,pt){return ht.setValue(pt)},!0),dt("mode",null,function(ht,pt){ht.doc.modeOption=pt,Ho(ht)},!0),dt("indentUnit",2,Ho,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){cc(ht),Ra(ht),sa(ht)},!0),dt("lineSeparator",null,function(ht,pt){if(ht.doc.lineSep=pt,!!pt){var wt=[],Bt=ht.doc.first;ht.doc.iter(function(Zt){for(var re=0;;){var ze=Zt.text.indexOf(pt,re);if(ze==-1)break;re=ze+pt.length,wt.push(Ze(Bt,ze))}Bt++});for(var Kt=wt.length-1;Kt>=0;Kt--)qh(ht.doc,pt,wt[Kt],Ze(wt[Kt].line,wt[Kt].ch+pt.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,pt,wt){ht.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),wt!=wh&&ht.refresh()}),dt("specialCharPlaceholder",Tn,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,pt){return ht.getInputField().spellcheck=pt},!0),dt("autocorrect",!1,function(ht,pt){return ht.getInputField().autocorrect=pt},!0),dt("autocapitalize",!1,function(ht,pt){return ht.getInputField().autocapitalize=pt},!0),dt("rtlMoveVisually",!gt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){Pf(ht),Tl(ht)},!0),dt("keyMap","default",function(ht,pt,wt){var Bt=ed(pt),Kt=wt!=wh&&ed(wt);Kt&&Kt.detach&&Kt.detach(ht,Bt),Bt.attach&&Bt.attach(ht,Kt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,sm,!0),dt("gutters",[],function(ht,pt){ht.display.gutterSpecs=xs(pt,ht.options.lineNumbers),Tl(ht)},!0),dt("fixedGutter",!0,function(ht,pt){ht.display.gutters.style.left=pt?Ws(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return ts(ht)},!0),dt("scrollbarStyle","native",function(ht){ml(ht),ts(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,pt){ht.display.gutterSpecs=xs(ht.options.gutters,pt),Tl(ht)},!0),dt("firstLineNumber",1,Tl,!0),dt("lineNumberFormatter",function(ht){return ht},Tl,!0),dt("showCursorWhenSelecting",!1,Da,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,pt){pt=="nocursor"&&(fl(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(pt)}),dt("screenReaderLabel",null,function(ht,pt){pt=pt===""?null:pt,ht.display.input.screenReaderLabelChanged(pt)}),dt("disableInput",!1,function(ht,pt){pt||ht.display.input.reset()},!0),dt("dragDrop",!0,wf),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Da,!0),dt("singleCursorHeightPerLine",!0,Da,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,cc,!0),dt("addModeClass",!1,cc,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,pt){return ht.doc.history.undoDepth=pt}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,cc,!0),dt("moveInputWithCursor",!0,function(ht,pt){pt||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,pt){return ht.display.input.getField().tabIndex=pt||""}),dt("autofocus",null),dt("direction","ltr",function(ht,pt){return ht.doc.setDirection(pt)},!0),dt("phrases",null)}function wf(it,at,dt){var ht=dt&&dt!=wh;if(!at!=!ht){var pt=it.display.dragFunctions,wt=at?vn:mi;wt(it.display.scroller,"dragstart",pt.start),wt(it.display.scroller,"dragenter",pt.enter),wt(it.display.scroller,"dragover",pt.over),wt(it.display.scroller,"dragleave",pt.leave),wt(it.display.scroller,"drop",pt.drop)}}function sm(it){it.options.lineWrapping?(Ke(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Gt(it.display.wrapper,"CodeMirror-wrap"),Ie(it)),kr(it),sa(it),Ra(it),setTimeout(function(){return ts(it)},100)}function la(it,at){var dt=this;if(!(this instanceof la))return new la(it,at);this.options=at=at?gn(at):{},gn(Rg,at,!1);var ht=at.value;typeof ht=="string"?ht=new Ds(ht,at.mode,null,at.lineSeparator,at.direction):at.mode&&(ht.modeOption=at.mode),this.doc=ht;var pt=new la.inputStyles[at.inputStyle](this),wt=this.display=new mh(it,ht,pt,at);wt.wrapper.CodeMirror=this,Pf(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ml(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Xt,keySeq:null,specialChars:null},at.autofocus&&!et&&wt.input.focus(),ye&&Ht<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),Gd(this),Bl(),qr(this),this.curOp.forceUpdate=!0,of(this,ht),at.autofocus&&!et||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&Yo(dt)},20):fl(this);for(var Bt in Mc)Mc.hasOwnProperty(Bt)&&Mc[Bt](this,at[Bt],wh);ss(this),at.finishInit&&at.finishInit(this);for(var Kt=0;Kt20*20}vn(at.scroller,"touchstart",function(Zt){if(!yi(it,Zt)&&!wt(Zt)&&!Sf(it,Zt)){at.input.ensurePolled(),clearTimeout(dt);var re=+new Date;at.activeTouch={start:re,moved:!1,prev:re-ht.end<=300?ht:null},Zt.touches.length==1&&(at.activeTouch.left=Zt.touches[0].pageX,at.activeTouch.top=Zt.touches[0].pageY)}}),vn(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),vn(at.scroller,"touchend",function(Zt){var re=at.activeTouch;if(re&&!Ar(at,Zt)&&re.left!=null&&!re.moved&&new Date-re.start<300){var ze=it.coordsChar(at.activeTouch,"page"),ce;!re.prev||Bt(re,re.prev)?ce=new ya(ze,ze):!re.prev.prev||Bt(re,re.prev.prev)?ce=it.findWordAt(ze):ce=new ya(Ze(ze.line,0),Fi(it.doc,Ze(ze.line+1,0))),it.setSelection(ce.anchor,ce.head),it.focus(),Qi(Zt)}pt()}),vn(at.scroller,"touchcancel",pt),vn(at.scroller,"scroll",function(){at.scroller.clientHeight&&(gl(it,at.scroller.scrollTop),pl(it,at.scroller.scrollLeft,!0),Gn(it,"scroll",it))}),vn(at.scroller,"mousewheel",function(Zt){return Ps(it,Zt)}),vn(at.scroller,"DOMMouseScroll",function(Zt){return Ps(it,Zt)}),vn(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Zt){yi(it,Zt)||Rr(Zt)},over:function(Zt){yi(it,Zt)||(qp(it,Zt),Rr(Zt))},start:function(Zt){return _p(it,Zt)},drop:Xr(it,xg),leave:function(Zt){yi(it,Zt)||$p(it)}};var Kt=at.input.getField();vn(Kt,"keyup",function(Zt){return Ng.call(it,Zt)}),vn(Kt,"keydown",Xr(it,Fg)),vn(Kt,"keypress",Xr(it,Pu)),vn(Kt,"focus",function(Zt){return Yo(it,Zt)}),vn(Kt,"blur",function(Zt){return fl(it,Zt)})}var od=[];la.defineInitHook=function(it){return od.push(it)};function ps(it,at,dt,ht){var pt=it.doc,wt;dt==null&&(dt="add"),dt=="smart"&&(pt.mode.indent?wt=to(it,at).state:dt="prev");var Bt=it.options.tabSize,Kt=bi(pt,at),Zt=ge(Kt.text,null,Bt);Kt.stateAfter&&(Kt.stateAfter=null);var re=Kt.text.match(/^\s*/)[0],ze;if(!ht&&!/\S/.test(Kt.text))ze=0,dt="not";else if(dt=="smart"&&(ze=pt.mode.indent(wt,Kt.text.slice(re.length),Kt.text),ze==Bn||ze>150)){if(!ht)return;dt="prev"}dt=="prev"?at>pt.first?ze=ge(bi(pt,at-1).text,null,Bt):ze=0:dt=="add"?ze=Zt+it.options.indentUnit:dt=="subtract"?ze=Zt-it.options.indentUnit:typeof dt=="number"&&(ze=Zt+dt),ze=Math.max(0,ze);var ce="",hn=0;if(it.options.indentWithTabs)for(var tn=Math.floor(ze/Bt);tn;--tn)hn+=Bt,ce+=" ";if(hnBt,Zt=Vo(at),re=null;if(Kt&&ht.ranges.length>1)if(al&&al.text.join(` `)==at){if(ht.ranges.length%al.text.length==0){re=[];for(var ze=0;ze=0;hn--){var tn=ht.ranges[hn],xi=tn.from(),Ei=tn.to();tn.empty()&&(dt&&dt>0?xi=Ze(xi.line,xi.ch-dt):it.state.overwrite&&!Kt?Ei=Ze(Ei.line,Math.min(bi(wt,Ei.line).text.length,Ei.ch+Xe(Zt).length)):Kt&&al&&al.lineWise&&al.text.join(` `)==Zt.join(` `)&&(xi=Ei=Ze(xi.line,0)));var ji={from:xi,to:Ei,text:re?re[hn%re.length]:Zt,origin:pt||(Kt?"paste":it.state.cutIncoming>Bt?"cut":"+input")};xh(it.doc,ji),ui(it,"inputRead",it,ji)}at&&!Kt&&jg(it,at),Hs(it),it.curOp.updateInput<2&&(it.curOp.updateInput=ce),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function zg(it,at){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&Zr(at,function(){return Ac(at,dt,0,null,"paste")}),!0}function jg(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var pt=dt.ranges[ht];if(!(pt.head.ch>100||ht&&dt.ranges[ht-1].head.line==pt.head.line)){var wt=it.getModeAt(pt.head),Bt=!1;if(wt.electricChars){for(var Kt=0;Kt-1){Bt=ps(it,pt.head.line,"smart");break}}else wt.electricInput&&wt.electricInput.test(bi(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Bt=ps(it,pt.head.line,"smart"));Bt&&ui(it,"electricInput",it,pt.head.line)}}}function Wg(it){for(var at=[],dt=[],ht=0;htwt&&(ps(this,Kt.head.line,ht,!0),wt=Kt.head.line,Bt==this.doc.sel.primIndex&&Hs(this));else{var Zt=Kt.from(),re=Kt.to(),ze=Math.max(wt,Zt.line);wt=Math.min(this.lastLine(),re.line-(re.ch?0:1))+1;for(var ce=ze;ce0&&Sh(this.doc,Bt,new ya(Zt,hn[Bt].to()),Be)}}}),getTokenAt:function(ht,pt){return xr(this,ht,pt)},getLineTokens:function(ht,pt){return xr(this,Ze(ht),pt,!0)},getTokenTypeAt:function(ht){ht=Fi(this.doc,ht);var pt=br(this,bi(this.doc,ht.line)),wt=0,Bt=(pt.length-1)/2,Kt=ht.ch,Zt;if(Kt==0)Zt=pt[2];else for(;;){var re=wt+Bt>>1;if((re?pt[re*2-1]:0)>=Kt)Bt=re;else if(pt[re*2+1]Zt&&(ht=Zt,Bt=!0),Kt=bi(this.doc,ht)}else Kt=ht;return qo(this,Kt,{top:0,left:0},pt||"page",wt||Bt).top+(Bt?this.doc.height-pe(Kt):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return Za(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,pt,wt,Bt,Kt){var Zt=this.display;ht=tr(this,Fi(this.doc,ht));var re=ht.bottom,ze=ht.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Zt.sizer.appendChild(pt),Bt=="over")re=ht.top;else if(Bt=="above"||Bt=="near"){var ce=Math.max(Zt.wrapper.clientHeight,this.doc.height),hn=Math.max(Zt.sizer.clientWidth,Zt.lineSpace.clientWidth);(Bt=="above"||ht.bottom+pt.offsetHeight>ce)&&ht.top>pt.offsetHeight?re=ht.top-pt.offsetHeight:ht.bottom+pt.offsetHeight<=ce&&(re=ht.bottom),ze+pt.offsetWidth>hn&&(ze=hn-pt.offsetWidth)}pt.style.top=re+"px",pt.style.left=pt.style.right="",Kt=="right"?(ze=Zt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(Kt=="left"?ze=0:Kt=="middle"&&(ze=(Zt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=ze+"px"),wt&&bl(this,{left:ze,top:re,right:ze+pt.offsetWidth,bottom:re+pt.offsetHeight})},triggerOnKeyDown:ho(Fg),triggerOnKeyPress:ho(Pu),triggerOnKeyUp:Ng,triggerOnMouseDown:ho(wu),execCommand:function(ht){if(Ph.hasOwnProperty(ht))return Ph[ht].call(null,this)},triggerElectric:ho(function(ht){jg(this,ht)}),findPosH:function(ht,pt,wt,Bt){var Kt=1;pt<0&&(Kt=-1,pt=-pt);for(var Zt=Fi(this.doc,ht),re=0;re0&&ze(wt.charAt(Bt-1));)--Bt;for(;Kt.5||this.options.lineWrapping)&&kr(this),Gn(this,"refresh",this)}),swapDoc:ho(function(ht){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),of(this,ht),Ra(this),this.display.input.reset(),Vl(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,ui(this,"swapDoc",this,pt),pt}),phrase:function(ht){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,ht)?pt[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ri(it),it.registerHelper=function(ht,pt,wt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][pt]=wt},it.registerGlobalHelper=function(ht,pt,wt,Bt){it.registerHelper(ht,pt,Bt),dt[ht]._global.push({pred:wt,val:Bt})}}function Ec(it,at,dt,ht,pt){var wt=at,Bt=dt,Kt=bi(it,at.line),Zt=pt&&it.direction=="rtl"?-dt:dt;function re(){var Fr=at.line+Zt;return Fr=it.first+it.size?!1:(at=new Ze(Fr,at.ch,at.sticky),Kt=bi(it,Fr))}function ze(Fr){var fr;if(ht=="codepoint"){var Hr=Kt.text.charCodeAt(at.ch+(ht>0?0:-1));isNaN(Hr)?fr=null:fr=new Ze(at.line,Math.max(0,Math.min(Kt.text.length,at.ch+dt*(Hr>=55296&&Hr<56320?2:1))),-dt)}else pt?fr=ff(it.cm,Kt,at,dt):fr=os(Kt,at,dt);if(fr==null)if(!Fr&&re())at=kc(pt,it.cm,Kt,at.line,Zt);else return!1;else at=fr;return!0}if(ht=="char"||ht=="codepoint")ze();else if(ht=="column")ze(!0);else if(ht=="word"||ht=="group")for(var ce=null,hn=ht=="group",tn=it.cm&&it.cm.getHelper(at,"wordChars"),xi=!0;!(dt<0&&!ze(!xi));xi=!1){var Ei=Kt.text.charAt(at.ch)||` `,ji=jt(Ei,tn)?"w":hn&&Ei==` `?"n":!hn||/\s/.test(Ei)?null:"p";if(hn&&!xi&&!ji&&(ji="s"),ce&&ce!=ji){dt<0&&(dt=1,ze(),at.sticky="after");break}if(ji&&(ce=ji),dt>0&&!ze(!xi))break}var nr=Sc(it,at,wt,Bt,!0);return Rn(wt,nr)&&(nr.hitSide=!0),nr}function Lh(it,at,dt,ht){var pt=it.doc,wt=at.left,Bt;if(ht=="page"){var Kt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Zt=Math.max(Kt-.5*ca(it.display),3);Bt=(dt>0?at.bottom:at.top)+dt*Zt}else ht=="line"&&(Bt=dt>0?at.bottom+3:at.top-3);for(var re;re=qi(it,wt,Bt),!!re.outside;){if(dt<0?Bt<=0:Bt>=pt.height){re.hitSide=!0;break}Bt+=dt*5}return re}var Ma=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Xt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ma.prototype.init=function(it){var at=this,dt=this,ht=dt.cm,pt=dt.div=it.lineDiv;Hg(pt,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function wt(Kt){for(var Zt=Kt.target;Zt;Zt=Zt.parentNode){if(Zt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Zt.className))break}return!1}vn(pt,"paste",function(Kt){!wt(Kt)||yi(ht,Kt)||zg(Kt,ht)||Ht<=11&&setTimeout(Xr(ht,function(){return at.updateFromDOM()}),20)}),vn(pt,"compositionstart",function(Kt){at.composing={data:Kt.data,done:!1}}),vn(pt,"compositionupdate",function(Kt){at.composing||(at.composing={data:Kt.data,done:!1})}),vn(pt,"compositionend",function(Kt){at.composing&&(Kt.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),vn(pt,"touchstart",function(){return dt.forceCompositionEnd()}),vn(pt,"input",function(){at.composing||at.readFromDOMSoon()});function Bt(Kt){if(!(!wt(Kt)||yi(ht,Kt))){if(ht.somethingSelected())ad({lineWise:!1,text:ht.getSelections()}),Kt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Zt=Wg(ht);ad({lineWise:!0,text:Zt.text}),Kt.type=="cut"&&ht.operation(function(){ht.setSelections(Zt.ranges,0,Be),ht.replaceSelection("",null,"cut")})}else return;if(Kt.clipboardData){Kt.clipboardData.clearData();var re=al.text.join(` `);if(Kt.clipboardData.setData("Text",re),Kt.clipboardData.getData("Text")==re){Kt.preventDefault();return}}var ze=Gg(),ce=ze.firstChild;ht.display.lineSpace.insertBefore(ze,ht.display.lineSpace.firstChild),ce.value=al.text.join(` `);var hn=document.activeElement;qe(ce),setTimeout(function(){ht.display.lineSpace.removeChild(ze),hn.focus(),hn==pt&&dt.showPrimarySelection()},50)}}vn(pt,"copy",Bt),vn(pt,"cut",Bt)},Ma.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Ma.prototype.prepareSelection=function(){var it=Fl(this.cm,!1);return it.focus=document.activeElement==this.div,it},Ma.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Ma.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ma.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,dt=at.doc.sel.primary(),ht=dt.from(),pt=dt.to();if(at.display.viewTo==at.display.viewFrom||ht.line>=at.display.viewTo||pt.line=at.display.viewFrom&&Cf(at,ht)||{node:Kt[0].measure.map[2],offset:0},re=pt.lineit.firstLine()&&(ht=Ze(ht.line-1,bi(it.doc,ht.line-1).length)),pt.ch==bi(it.doc,pt.line).text.length&&pt.lineat.viewTo-1)return!1;var wt,Bt,Kt;ht.line==at.viewFrom||(wt=$a(it,ht.line))==0?(Bt=qt(at.view[0].line),Kt=at.view[0].node):(Bt=qt(at.view[wt].line),Kt=at.view[wt-1].node.nextSibling);var Zt=$a(it,pt.line),re,ze;if(Zt==at.view.length-1?(re=at.viewTo-1,ze=at.lineDiv.lastChild):(re=qt(at.view[Zt+1].line)-1,ze=at.view[Zt+1].node.previousSibling),!Kt)return!1;for(var ce=it.doc.splitLines(Vd(it,Kt,ze,Bt,re)),hn=wr(it.doc,Ze(Bt,0),Ze(re,bi(it.doc,re).text.length));ce.length>1&&hn.length>1;)if(Xe(ce)==Xe(hn))ce.pop(),hn.pop(),re--;else if(ce[0]==hn[0])ce.shift(),hn.shift(),Bt++;else break;for(var tn=0,xi=0,Ei=ce[0],ji=hn[0],nr=Math.min(Ei.length,ji.length);tnht.ch&&Fr.charCodeAt(Fr.length-xi-1)==fr.charCodeAt(fr.length-xi-1);)tn--,xi++;ce[ce.length-1]=Fr.slice(0,Fr.length-xi).replace(/^\u200b+/,""),ce[0]=ce[0].slice(tn).replace(/\u200b+$/,"");var co=Ze(Bt,tn),hr=Ze(re,hn.length?Xe(hn).length-xi:0);if(ce.length>1||ce[0]||qn(co,hr))return qh(it.doc,ce,co,hr,"+input"),!0},Ma.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ma.prototype.reset=function(){this.forceCompositionEnd()},Ma.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ma.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},Ma.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Zr(this.cm,function(){return sa(it.cm)})},Ma.prototype.setUneditable=function(it){it.contentEditable="false"},Ma.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Xr(this.cm,Ac)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Ma.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Ma.prototype.onContextMenu=function(){},Ma.prototype.resetPosition=function(){},Ma.prototype.needsContentAttribute=!0;function Cf(it,at){var dt=na(it,at.line);if(!dt||dt.hidden)return null;var ht=bi(it.doc,at.line),pt=Yr(dt,ht,at.line),wt=rn(ht,it.doc.direction),Bt="left";if(wt){var Kt=be(wt,at.ch);Bt=Kt%2?"right":"left"}var Zt=Qo(pt.map,at.ch,Bt);return Zt.offset=Zt.collapse=="right"?Zt.end:Zt.start,Zt}function Zg(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function Zd(it,at){return at&&(it.bad=!0),it}function Vd(it,at,dt,ht,pt){var wt="",Bt=!1,Kt=it.doc.lineSeparator(),Zt=!1;function re(tn){return function(xi){return xi.id==tn}}function ze(){Bt&&(wt+=Kt,Zt&&(wt+=Kt),Bt=Zt=!1)}function ce(tn){tn&&(ze(),wt+=tn)}function hn(tn){if(tn.nodeType==1){var xi=tn.getAttribute("cm-text");if(xi){ce(xi);return}var Ei=tn.getAttribute("cm-marker"),ji;if(Ei){var nr=it.findMarks(Ze(ht,0),Ze(pt+1,0),re(+Ei));nr.length&&(ji=nr[0].find(0))&&ce(wr(it.doc,ji.from,ji.to).join(Kt));return}if(tn.getAttribute("contenteditable")=="false")return;var Fr=/^(pre|div|p|li|table|br)$/i.test(tn.nodeName);if(!/^br$/i.test(tn.nodeName)&&tn.textContent.length==0)return;Fr&&ze();for(var fr=0;fr=9&&at.hasSelection&&(at.hasSelection=null),dt.poll()}),vn(pt,"paste",function(Bt){yi(ht,Bt)||zg(Bt,ht)||(ht.state.pasteIncoming=+new Date,dt.fastPoll())});function wt(Bt){if(!yi(ht,Bt)){if(ht.somethingSelected())ad({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var Kt=Wg(ht);ad({lineWise:!0,text:Kt.text}),Bt.type=="cut"?ht.setSelections(Kt.ranges,null,Be):(dt.prevInput="",pt.value=Kt.text.join(` `),qe(pt))}else return;Bt.type=="cut"&&(ht.state.cutIncoming=+new Date)}}vn(pt,"cut",wt),vn(pt,"copy",wt),vn(it.scroller,"paste",function(Bt){if(!(Ar(it,Bt)||yi(ht,Bt))){if(!pt.dispatchEvent){ht.state.pasteIncoming=+new Date,dt.focus();return}var Kt=new Event("paste");Kt.clipboardData=Bt.clipboardData,pt.dispatchEvent(Kt)}}),vn(it.lineSpace,"selectstart",function(Bt){Ar(it,Bt)||Qi(Bt)}),vn(pt,"compositionstart",function(){var Bt=ht.getCursor("from");dt.composing&&dt.composing.range.clear(),dt.composing={start:Bt,range:ht.markText(Bt,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),vn(pt,"compositionend",function(){dt.composing&&(dt.poll(),dt.composing.range.clear(),dt.composing=null)})},ds.prototype.createField=function(it){this.wrapper=Gg(),this.textarea=this.wrapper.firstChild},ds.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var it=this.cm,at=it.display,dt=it.doc,ht=Fl(it);if(it.options.moveInputWithCursor){var pt=tr(it,dt.sel.primary().head,"div"),wt=at.wrapper.getBoundingClientRect(),Bt=at.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+Bt.top-wt.top)),ht.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+Bt.left-wt.left))}return ht},ds.prototype.showSelection=function(it){var at=this.cm,dt=at.display;Wt(dt.cursorDiv,it.cursors),Wt(dt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ds.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var dt=at.getSelection();this.textarea.value=dt,at.state.focused&&qe(this.textarea),ye&&Ht>=9&&(this.hasSelection=dt)}else it||(this.prevInput=this.textarea.value="",ye&&Ht>=9&&(this.hasSelection=null))}},ds.prototype.getField=function(){return this.textarea},ds.prototype.supportsTouch=function(){return!1},ds.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!et||Re()!=this.textarea))try{this.textarea.focus()}catch(it){}},ds.prototype.blur=function(){this.textarea.blur()},ds.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ds.prototype.receivedFocus=function(){this.slowPoll()},ds.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ds.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function dt(){var ht=at.poll();!ht&&!it?(it=!0,at.polling.set(60,dt)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,dt)},ds.prototype.poll=function(){var it=this,at=this.cm,dt=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!at.state.focused||Lt(dt)&&!ht&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=dt.value;if(pt==ht&&!at.somethingSelected())return!1;if(ye&&Ht>=9&&this.hasSelection===pt||ct&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var wt=pt.charCodeAt(0);if(wt==8203&&!ht&&(ht="\u200B"),wt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Bt=0,Kt=Math.min(ht.length,pt.length);Bt1e3||pt.indexOf(` `)>-1?dt.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ds.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ds.prototype.onKeyPress=function(){ye&&Ht>=9&&(this.hasSelection=null),this.fastPoll()},ds.prototype.onContextMenu=function(it){var at=this,dt=at.cm,ht=dt.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var wt=Va(dt,it),Bt=ht.scroller.scrollTop;if(!wt||Nt)return;var Kt=dt.options.resetSelectionOnContextMenu;Kt&&dt.doc.sel.contains(wt)==-1&&Xr(dt,Zs)(dt.doc,Qu(wt),Be);var Zt=pt.style.cssText,re=at.wrapper.style.cssText,ze=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-ze.top-5)+"px; left: "+(it.clientX-ze.left-5)+`px; z-index: 1000; background: `+(ye?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ce;ae&&(ce=window.scrollY),ht.input.focus(),ae&&window.scrollTo(null,ce),ht.input.reset(),dt.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=tn,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function hn(){if(pt.selectionStart!=null){var Ei=dt.somethingSelected(),ji="\u200B"+(Ei?pt.value:"");pt.value="\u21DA",pt.value=ji,at.prevInput=Ei?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=ji.length,ht.selForContextMenu=dt.doc.sel}}function tn(){if(at.contextMenuPending==tn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=re,pt.style.cssText=Zt,ye&&Ht<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Bt),pt.selectionStart!=null)){(!ye||ye&&Ht<9)&&hn();var Ei=0,ji=function(){ht.selForContextMenu==dt.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?Xr(dt,rs)(dt):Ei++<10?ht.detectingSelectAll=setTimeout(ji,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(ji,200)}}if(ye&&Ht>=9&&hn(),kt){Rr(it);var xi=function(){mi(window,"mouseup",xi),setTimeout(tn,20)};vn(window,"mouseup",xi)}else setTimeout(tn,50)},ds.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ds.prototype.setUneditable=function(){},ds.prototype.needsContentAttribute=!1;function um(it,at){if(at=at?gn(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var dt=Re();at.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=Kt.getValue()}var pt;if(it.form&&(vn(it.form,"submit",ht),!at.leaveSubmitMethodAlone)){var wt=it.form;pt=wt.submit;try{var Bt=wt.submit=function(){ht(),wt.submit=pt,wt.submit(),wt.submit=Bt}}catch(Zt){}}at.finishInit=function(Zt){Zt.save=ht,Zt.getTextArea=function(){return it},Zt.toTextArea=function(){Zt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Zt.getWrapperElement()),it.style.display="",it.form&&(mi(it.form,"submit",ht),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var Kt=la(function(Zt){return it.parentNode.insertBefore(Zt,it.nextSibling)},at);return Kt}function Kd(it){it.off=mi,it.on=vn,it.wheelEventPixels=Dl,it.Doc=Ds,it.splitLines=Vo,it.countColumn=ge,it.findColumn=On,it.isWordChar=Ft,it.Pass=Bn,it.signal=Gn,it.Line=Ye,it.changeEnd=vh,it.scrollbarModel=Nl,it.Pos=Ze,it.cmpPos=qn,it.modes=vr,it.mimeModes=Vi,it.resolveMode=Je,it.getMode=$e,it.modeExtensions=Te,it.extendMode=ln,it.copyState=Wi,it.startState=Kr,it.innerMode=Gi,it.commands=Ph,it.keyMap=yl,it.keyName=em,it.isModifierKey=Rd,it.lookupKey=Ul,it.normalizeKeyMap=Lg,it.StringStream=Nn,it.SharedTextMarker=Tu,it.TextMarker=Me,it.LineWidget=$u,it.e_preventDefault=Qi,it.e_stopPropagation=Ir,it.e_stop=Rr,it.addClass=Ke,it.contains=De,it.rmClass=Gt,it.keyNames=Du}am(la),Ch(la);var th="iter insert remove copy getEditor constructor".split(" ");for(var bc in Ds.prototype)Ds.prototype.hasOwnProperty(bc)&&Ve(th,bc)<0&&(la.prototype[bc]=function(it){return function(){return it.apply(this.doc,arguments)}}(Ds.prototype[bc]));return Ri(Ds),la.inputStyles={textarea:ds,contenteditable:Ma},la.defineMode=function(it){!la.defaults.mode&&it!="null"&&(la.defaults.mode=it),Jr.apply(this,arguments)},la.defineMIME=mo,la.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),la.defineMIME("text/plain","null"),la.defineExtension=function(it,at){la.prototype[it]=at},la.defineDocExtension=function(it,at){Ds.prototype[it]=at},la.fromTextArea=um,Kd(la),la.version="5.58.2",la})},25419:function(Wn,ai,Ot){(function(Tt){Tt(Ot(89780),Ot(15525),Ot(98101))})(function(Tt){"use strict";Tt.defineMode("markdown",function(ee,xe){var me=Tt.getMode(ee,"text/html"),ye=me.name=="null";function Ht(ge){if(Tt.findModeByName){var Xt=Tt.findModeByName(ge);Xt&&(ge=Xt.mime||Xt.mimes[0])}var Ve=Tt.getMode(ee,ge);return Ve.name=="null"?null:Ve}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var ae={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 je in ae)ae.hasOwnProperty(je)&&xe.tokenTypeOverrides[je]&&(ae[je]=xe.tokenTypeOverrides[je]);var ve=/^([*\-_])(?:\s*\1){2,}\s*$/,Nt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,He=/^\[(x| )\](?=\s)/i,ie=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ge=/^ {0,3}(?:\={1,}|-{2,})\s*$/,bt=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function gt(ge,Xt,Ve){return Xt.f=Xt.inline=Ve,Ve(ge,Xt)}function mt(ge,Xt,Ve){return Xt.f=Xt.block=Ve,Ve(ge,Xt)}function St(ge){return!ge||!/\S/.test(ge.string)}function kt(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Gt){var Xt=ye;if(!Xt){var Ve=Tt.innerMode(me,ge.htmlState);Xt=Ve.mode.name=="xml"&&Ve.state.tagStart===null&&!Ve.state.context&&Ve.state.tokenize.isInText}Xt&&(ge.f=de,ge.block=zt,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function zt(ge,Xt){var Ve=ge.column()===Xt.indentation,An=St(Xt.prevLine.stream),Bn=Xt.indentedCode,Be=Xt.prevLine.hr,dn=Xt.list!==!1,Qe=(Xt.listStack[Xt.listStack.length-1]||0)+3;Xt.indentedCode=!1;var On=Xt.indentation;if(Xt.indentationDiff===null&&(Xt.indentationDiff=Xt.indentation,dn)){for(Xt.list=null;On=4&&(Bn||Xt.prevLine.fencedCodeEnd||Xt.prevLine.header||An))return ge.skipToEnd(),Xt.indentedCode=!0,ae.code;if(ge.eatSpace())return null;if(Ve&&Xt.indentation<=Qe&&(Xe=ge.match(ie))&&Xe[1].length<=6)return Xt.quote=0,Xt.header=Xe[1].length,Xt.thisLine.header=!0,xe.highlightFormatting&&(Xt.formatting="header"),Xt.f=Xt.inline,Wt(Xt);if(Xt.indentation<=Qe&&ge.eat(">"))return Xt.quote=Ve?1:Xt.quote+1,xe.highlightFormatting&&(Xt.formatting="quote"),ge.eatSpace(),Wt(Xt);if(!ue&&!Xt.setext&&Ve&&Xt.indentation<=Qe&&(Xe=ge.match(Nt))){var di=Xe[1]?"ol":"ul";return Xt.indentation=On+ge.current().length,Xt.list=!0,Xt.quote=0,Xt.listStack.push(Xt.indentation),Xt.em=!1,Xt.strong=!1,Xt.code=!1,Xt.strikethrough=!1,xe.taskLists&&ge.match(He,!1)&&(Xt.taskList=!0),Xt.f=Xt.inline,xe.highlightFormatting&&(Xt.formatting=["list","list-"+di]),Wt(Xt)}else{if(Ve&&Xt.indentation<=Qe&&(Xe=ge.match(nt,!0)))return Xt.quote=0,Xt.fencedEndRE=new RegExp(Xe[1]+"+ *$"),Xt.localMode=xe.fencedCodeBlockHighlighting&&Ht(Xe[2]||xe.fencedCodeBlockDefaultMode),Xt.localMode&&(Xt.localState=Tt.startState(Xt.localMode)),Xt.f=Xt.block=$t,xe.highlightFormatting&&(Xt.formatting="code-block"),Xt.code=-1,Wt(Xt);if(Xt.setext||(!we||!dn)&&!Xt.quote&&Xt.list===!1&&!Xt.code&&!ue&&!et.test(ge.string)&&(Xe=ge.lookAhead(1))&&(Xe=Xe.match(Ge)))return Xt.setext?(Xt.header=Xt.setext,Xt.setext=0,ge.skipToEnd(),xe.highlightFormatting&&(Xt.formatting="header")):(Xt.header=Xe[0].charAt(0)=="="?1:2,Xt.setext=Xt.header),Xt.thisLine.header=!0,Xt.f=Xt.inline,Wt(Xt);if(ue)return ge.skipToEnd(),Xt.hr=!0,Xt.thisLine.hr=!0,ae.hr;if(ge.peek()==="[")return gt(ge,Xt,kn)}return gt(ge,Xt,Xt.inline)}function Gt(ge,Xt){var Ve=me.token(ge,Xt.htmlState);if(!ye){var An=Tt.innerMode(me,Xt.htmlState);(An.mode.name=="xml"&&An.state.tagStart===null&&!An.state.context&&An.state.tokenize.isInText||Xt.md_inside&&ge.current().indexOf(">")>-1)&&(Xt.f=de,Xt.block=zt,Xt.htmlState=null)}return Ve}function $t(ge,Xt){var Ve=Xt.listStack[Xt.listStack.length-1]||0,An=Xt.indentation=ge.quote?Xt.push(ae.formatting+"-"+ge.formatting[Ve]+"-"+ge.quote):Xt.push("error"))}if(ge.taskOpen)return Xt.push("meta"),Xt.length?Xt.join(" "):null;if(ge.taskClosed)return Xt.push("property"),Xt.length?Xt.join(" "):null;if(ge.linkHref?Xt.push(ae.linkHref,"url"):(ge.strong&&Xt.push(ae.strong),ge.em&&Xt.push(ae.em),ge.strikethrough&&Xt.push(ae.strikethrough),ge.emoji&&Xt.push(ae.emoji),ge.linkText&&Xt.push(ae.linkText),ge.code&&Xt.push(ae.code),ge.image&&Xt.push(ae.image),ge.imageAltText&&Xt.push(ae.imageAltText,"link"),ge.imageMarker&&Xt.push(ae.imageMarker)),ge.header&&Xt.push(ae.header,ae.header+"-"+ge.header),ge.quote&&(Xt.push(ae.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=ge.quote?Xt.push(ae.quote+"-"+ge.quote):Xt.push(ae.quote+"-"+xe.maxBlockquoteDepth)),ge.list!==!1){var An=(ge.listStack.length-1)%3;An?An===1?Xt.push(ae.list2):Xt.push(ae.list3):Xt.push(ae.list1)}return ge.trailingSpaceNewLine?Xt.push("trailing-space-new-line"):ge.trailingSpace&&Xt.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),Xt.length?Xt.join(" "):null}function Jt(ge,Xt){if(ge.match(bt,!0))return Wt(Xt)}function de(ge,Xt){var Ve=Xt.text(ge,Xt);if(typeof Ve!="undefined")return Ve;if(Xt.list)return Xt.list=null,Wt(Xt);if(Xt.taskList){var An=ge.match(He,!0)[1]===" ";return An?Xt.taskOpen=!0:Xt.taskClosed=!0,xe.highlightFormatting&&(Xt.formatting="task"),Xt.taskList=!1,Wt(Xt)}if(Xt.taskOpen=!1,Xt.taskClosed=!1,Xt.header&&ge.match(/^#+$/,!0))return xe.highlightFormatting&&(Xt.formatting="header"),Wt(Xt);var Bn=ge.next();if(Xt.linkTitle){Xt.linkTitle=!1;var Be=Bn;Bn==="("&&(Be=")"),Be=(Be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var dn="^\\s*(?:[^"+Be+"\\\\]+|\\\\\\\\|\\\\.)"+Be;if(ge.match(new RegExp(dn),!0))return ae.linkHref}if(Bn==="`"){var Qe=Xt.formatting;xe.highlightFormatting&&(Xt.formatting="code"),ge.eatWhile("`");var On=ge.current().length;if(Xt.code==0&&(!Xt.quote||On==1))return Xt.code=On,Wt(Xt);if(On==Xt.code){var we=Wt(Xt);return Xt.code=0,we}else return Xt.formatting=Qe,Wt(Xt)}else if(Xt.code)return Wt(Xt);if(Bn==="\\"&&(ge.next(),xe.highlightFormatting)){var ue=Wt(Xt),Xe=ae.formatting+"-escape";return ue?ue+" "+Xe:Xe}if(Bn==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Xt.imageMarker=!0,Xt.image=!0,xe.highlightFormatting&&(Xt.formatting="image"),Wt(Xt);if(Bn==="["&&Xt.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Xt.imageMarker=!1,Xt.imageAltText=!0,xe.highlightFormatting&&(Xt.formatting="image"),Wt(Xt);if(Bn==="]"&&Xt.imageAltText){xe.highlightFormatting&&(Xt.formatting="image");var ue=Wt(Xt);return Xt.imageAltText=!1,Xt.image=!1,Xt.inline=Xt.f=De,ue}if(Bn==="["&&!Xt.image)return Xt.linkText&&ge.match(/^.*?\]/)||(Xt.linkText=!0,xe.highlightFormatting&&(Xt.formatting="link")),Wt(Xt);if(Bn==="]"&&Xt.linkText){xe.highlightFormatting&&(Xt.formatting="link");var ue=Wt(Xt);return Xt.linkText=!1,Xt.inline=Xt.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?De:de,ue}if(Bn==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Xt.f=Xt.inline=le,xe.highlightFormatting&&(Xt.formatting="link");var ue=Wt(Xt);return ue?ue+=" ":ue="",ue+ae.linkInline}if(Bn==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Xt.f=Xt.inline=le,xe.highlightFormatting&&(Xt.formatting="link");var ue=Wt(Xt);return ue?ue+=" ":ue="",ue+ae.linkEmail}if(xe.xml&&Bn==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var di=ge.string.indexOf(">",ge.pos);if(di!=-1){var Li=ge.string.substring(ge.start,di);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Li)&&(Xt.md_inside=!0)}return ge.backUp(1),Xt.htmlState=Tt.startState(me),mt(ge,Xt,Gt)}if(xe.xml&&Bn==="<"&&ge.match(/^\/\w*?>/))return Xt.md_inside=!1,"tag";if(Bn==="*"||Bn==="_"){for(var It=1,Ct=ge.pos==1?" ":ge.string.charAt(ge.pos-2);It<3&&ge.eat(Bn);)It++;var xt=ge.peek()||" ",Ft=!/\s/.test(xt)&&(!ct.test(xt)||/\s/.test(Ct)||ct.test(Ct)),jt=!/\s/.test(Ct)&&(!ct.test(Ct)||/\s/.test(xt)||ct.test(xt)),Mt=null,Ut=null;if(It%2&&(!Xt.em&&Ft&&(Bn==="*"||!jt||ct.test(Ct))?Mt=!0:Xt.em==Bn&&jt&&(Bn==="*"||!Ft||ct.test(xt))&&(Mt=!1)),It>1&&(!Xt.strong&&Ft&&(Bn==="*"||!jt||ct.test(Ct))?Ut=!0:Xt.strong==Bn&&jt&&(Bn==="*"||!Ft||ct.test(xt))&&(Ut=!1)),Ut!=null||Mt!=null){xe.highlightFormatting&&(Xt.formatting=Mt==null?"strong":Ut==null?"em":"strong em"),Mt===!0&&(Xt.em=Bn),Ut===!0&&(Xt.strong=Bn);var we=Wt(Xt);return Mt===!1&&(Xt.em=!1),Ut===!1&&(Xt.strong=!1),we}}else if(Bn===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return Wt(Xt);ge.backUp(1)}if(xe.strikethrough){if(Bn==="~"&&ge.eatWhile(Bn)){if(Xt.strikethrough){xe.highlightFormatting&&(Xt.formatting="strikethrough");var we=Wt(Xt);return Xt.strikethrough=!1,we}else if(ge.match(/^[^\s]/,!1))return Xt.strikethrough=!0,xe.highlightFormatting&&(Xt.formatting="strikethrough"),Wt(Xt)}else if(Bn===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return Wt(Xt);ge.backUp(2)}}if(xe.emoji&&Bn===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Xt.emoji=!0,xe.highlightFormatting&&(Xt.formatting="emoji");var Fe=Wt(Xt);return Xt.emoji=!1,Fe}return Bn===" "&&(ge.match(/^ +$/,!1)?Xt.trailingSpace++:Xt.trailingSpace&&(Xt.trailingSpaceNewLine=!0)),Wt(Xt)}function le(ge,Xt){var Ve=ge.next();if(Ve===">"){Xt.f=Xt.inline=de,xe.highlightFormatting&&(Xt.formatting="link");var An=Wt(Xt);return An?An+=" ":An="",An+ae.linkInline}return ge.match(/^[^>]+/,!0),ae.linkInline}function De(ge,Xt){if(ge.eatSpace())return null;var Ve=ge.next();return Ve==="("||Ve==="["?(Xt.f=Xt.inline=Ke(Ve==="("?")":"]"),xe.highlightFormatting&&(Xt.formatting="link-string"),Xt.linkHref=!0,Wt(Xt)):"error"}var Re={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ke(ge){return function(Xt,Ve){var An=Xt.next();if(An===ge){Ve.f=Ve.inline=de,xe.highlightFormatting&&(Ve.formatting="link-string");var Bn=Wt(Ve);return Ve.linkHref=!1,Bn}return Xt.match(Re[ge]),Ve.linkHref=!0,Wt(Ve)}}function kn(ge,Xt){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(Xt.f=qe,ge.next(),xe.highlightFormatting&&(Xt.formatting="link"),Xt.linkText=!0,Wt(Xt)):gt(ge,Xt,de)}function qe(ge,Xt){if(ge.match(/^\]:/,!0)){Xt.f=Xt.inline=on,xe.highlightFormatting&&(Xt.formatting="link");var Ve=Wt(Xt);return Xt.linkText=!1,Ve}return ge.match(/^([^\]\\]|\\.)+/,!0),ae.linkText}function on(ge,Xt){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?Xt.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Xt.f=Xt.inline=de,ae.linkHref+" url")}var gn={startState:function(){return{f:zt,prevLine:{stream:null},thisLine:{stream:null},block:zt,htmlState:null,indentation:0,inline:de,text:Jt,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(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&Tt.copyState(me,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?Tt.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,Xt){if(Xt.formatting=!1,ge!=Xt.thisLine.stream){if(Xt.header=0,Xt.hr=!1,ge.match(/^\s*$/,!0))return kt(Xt),null;if(Xt.prevLine=Xt.thisLine,Xt.thisLine={stream:ge},Xt.taskList=!1,Xt.trailingSpace=0,Xt.trailingSpaceNewLine=!1,!Xt.localState&&(Xt.f=Xt.block,Xt.f!=Gt)){var Ve=ge.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Xt.indentation=Ve,Xt.indentationDiff=null,Ve>0)return null}}return Xt.f(ge,Xt)},innerMode:function(ge){return ge.block==Gt?{state:ge.htmlState,mode:me}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:gn}},indent:function(ge,Xt,Ve){return ge.block==Gt&&me.indent?me.indent(ge.htmlState,Xt,Ve):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,Xt,Ve):Tt.Pass},blankLine:kt,getType:Wt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return gn},"xml"),Tt.defineMIME("text/markdown","markdown"),Tt.defineMIME("text/x-markdown","markdown")})},98101:function(Wn,ai,Ot){(function(Tt){Tt(Ot(89780))})(function(Tt){"use strict";Tt.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 ee=0;ee-1&&me.substring(ae+1,me.length);if(je)return Tt.findModeByExtension(je)},Tt.findModeByName=function(me){me=me.toLowerCase();for(var ye=0;ye0?bt.cmdState[bt.cmdState.length-1]:null}function Ht(bt){var nt=bt.cmdState.pop();nt&&nt.closeBracket()}function ae(bt){for(var nt=bt.cmdState,et=nt.length-1;et>=0;et--){var ct=nt[et];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function je(bt,nt,et){return function(){this.name=bt,this.bracketNo=0,this.style=nt,this.styles=et,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ve={};ve.importmodule=je("importmodule","tag",["string","builtin"]),ve.documentclass=je("documentclass","tag",["","atom"]),ve.usepackage=je("usepackage","tag",["atom"]),ve.begin=je("begin","tag",["atom"]),ve.end=je("end","tag",["atom"]),ve.label=je("label","tag",["atom"]),ve.ref=je("ref","tag",["atom"]),ve.eqref=je("eqref","tag",["atom"]),ve.cite=je("cite","tag",["atom"]),ve.bibitem=je("bibitem","tag",["atom"]),ve.Bibitem=je("Bibitem","tag",["atom"]),ve.RBibitem=je("RBibitem","tag",["atom"]),ve.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Nt(bt,nt){bt.f=nt}function He(bt,nt){var et;if(bt.match(/^\\[a-zA-Z@]+/)){var ct=bt.current().slice(1);return et=ve.hasOwnProperty(ct)?ve[ct]:ve.DEFAULT,et=new et,me(nt,et),Nt(nt,Ge),et.style}if(bt.match(/^\\[$&%#{}_]/)||bt.match(/^\\[,;!\/\\]/))return"tag";if(bt.match("\\["))return Nt(nt,function(gt,mt){return ie(gt,mt,"\\]")}),"keyword";if(bt.match("\\("))return Nt(nt,function(gt,mt){return ie(gt,mt,"\\)")}),"keyword";if(bt.match("$$"))return Nt(nt,function(gt,mt){return ie(gt,mt,"$$")}),"keyword";if(bt.match("$"))return Nt(nt,function(gt,mt){return ie(gt,mt,"$")}),"keyword";var lt=bt.next();if(lt=="%")return bt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=ye(nt),et)et.closeBracket(lt),Nt(nt,Ge);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=ve.DEFAULT,et=new et,me(nt,et),"bracket"):/\d/.test(lt)?(bt.eatWhile(/[\w.%]/),"atom"):(bt.eatWhile(/[\w\-_]/),et=ae(nt),et.name=="begin"&&(et.argument=bt.current()),et.styleIdentifier())}function ie(bt,nt,et){if(bt.eatSpace())return null;if(et&&bt.match(et))return Nt(nt,He),"keyword";if(bt.match(/^\\[a-zA-Z@]+/))return"tag";if(bt.match(/^[a-zA-Z]+/))return"variable-2";if(bt.match(/^\\[$&%#{}_]/)||bt.match(/^\\[,;!\/]/)||bt.match(/^[\^_&]/))return"tag";if(bt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(bt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=bt.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(bt.skipToEnd(),"comment"):"error"}function Ge(bt,nt){var et=bt.peek(),ct;return et=="{"||et=="["?(ct=ye(nt),ct.openBracket(et),bt.eat(et),Nt(nt,He),"bracket"):/[ \t\r]/.test(et)?(bt.eat(et),null):(Nt(nt,He),Ht(nt),He(bt,nt))}return{startState:function(){var bt=xe.inMathMode?function(nt,et){return ie(nt,et)}:He;return{cmdState:[],f:bt}},copyState:function(bt){return{cmdState:bt.cmdState.slice(),f:bt.f}},token:function(bt,nt){return nt.f(bt,nt)},blankLine:function(bt){bt.f=He,bt.cmdState.length=0},lineComment:"%"}}),Tt.defineMIME("text/x-stex","stex"),Tt.defineMIME("text/x-latex","stex")})},15525:function(Wn,ai,Ot){(function(Tt){Tt(Ot(89780))})(function(Tt){"use strict";var ee={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},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Tt.defineMode("xml",function(me,ye){var Ht=me.indentUnit,ae={},je=ye.htmlMode?ee:xe;for(var ve in je)ae[ve]=je[ve];for(var ve in ye)ae[ve]=ye[ve];var Nt,He;function ie(le,De){function Re(qe){return De.tokenize=qe,qe(le,De)}var Ke=le.next();if(Ke=="<")return le.eat("!")?le.eat("[")?le.match("CDATA[")?Re(nt("atom","]]>")):null:le.match("--")?Re(nt("comment","-->")):le.match("DOCTYPE",!0,!0)?(le.eatWhile(/[\w\._\-]/),Re(et(1))):null:le.eat("?")?(le.eatWhile(/[\w\._\-]/),De.tokenize=nt("meta","?>"),"meta"):(Nt=le.eat("/")?"closeTag":"openTag",De.tokenize=Ge,"tag bracket");if(Ke=="&"){var kn;return le.eat("#")?le.eat("x")?kn=le.eatWhile(/[a-fA-F\d]/)&&le.eat(";"):kn=le.eatWhile(/[\d]/)&&le.eat(";"):kn=le.eatWhile(/[\w\.\-:]/)&&le.eat(";"),kn?"atom":"error"}else return le.eatWhile(/[^&<]/),null}ie.isInText=!0;function Ge(le,De){var Re=le.next();if(Re==">"||Re=="/"&&le.eat(">"))return De.tokenize=ie,Nt=Re==">"?"endTag":"selfcloseTag","tag bracket";if(Re=="=")return Nt="equals",null;if(Re=="<"){De.tokenize=ie,De.state=mt,De.tagName=De.tagStart=null;var Ke=De.tokenize(le,De);return Ke?Ke+" tag error":"tag error"}else return/[\'\"]/.test(Re)?(De.tokenize=bt(Re),De.stringStartCol=le.column(),De.tokenize(le,De)):(le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function bt(le){var De=function(Re,Ke){for(;!Re.eol();)if(Re.next()==le){Ke.tokenize=Ge;break}return"string"};return De.isInAttribute=!0,De}function nt(le,De){return function(Re,Ke){for(;!Re.eol();){if(Re.match(De)){Ke.tokenize=ie;break}Re.next()}return le}}function et(le){return function(De,Re){for(var Ke;(Ke=De.next())!=null;){if(Ke=="<")return Re.tokenize=et(le+1),Re.tokenize(De,Re);if(Ke==">")if(le==1){Re.tokenize=ie;break}else return Re.tokenize=et(le-1),Re.tokenize(De,Re)}return"meta"}}function ct(le,De,Re){this.prev=le.context,this.tagName=De,this.indent=le.indented,this.startOfLine=Re,(ae.doNotIndent.hasOwnProperty(De)||le.context&&le.context.noIndent)&&(this.noIndent=!0)}function lt(le){le.context&&(le.context=le.context.prev)}function gt(le,De){for(var Re;;){if(!le.context||(Re=le.context.tagName,!ae.contextGrabbers.hasOwnProperty(Re)||!ae.contextGrabbers[Re].hasOwnProperty(De)))return;lt(le)}}function mt(le,De,Re){return le=="openTag"?(Re.tagStart=De.column(),St):le=="closeTag"?kt:mt}function St(le,De,Re){return le=="word"?(Re.tagName=De.current(),He="tag",$t):ae.allowMissingTagName&&le=="endTag"?(He="tag bracket",$t(le,De,Re)):(He="error",St)}function kt(le,De,Re){if(le=="word"){var Ke=De.current();return Re.context&&Re.context.tagName!=Ke&&ae.implicitlyClosed.hasOwnProperty(Re.context.tagName)&<(Re),Re.context&&Re.context.tagName==Ke||ae.matchClosing===!1?(He="tag",zt):(He="tag error",Gt)}else return ae.allowMissingTagName&&le=="endTag"?(He="tag bracket",zt(le,De,Re)):(He="error",Gt)}function zt(le,De,Re){return le!="endTag"?(He="error",zt):(lt(Re),mt)}function Gt(le,De,Re){return He="error",zt(le,De,Re)}function $t(le,De,Re){if(le=="word")return He="attribute",Wt;if(le=="endTag"||le=="selfcloseTag"){var Ke=Re.tagName,kn=Re.tagStart;return Re.tagName=Re.tagStart=null,le=="selfcloseTag"||ae.autoSelfClosers.hasOwnProperty(Ke)?gt(Re,Ke):(gt(Re,Ke),Re.context=new ct(Re,Ke,kn==Re.indented)),mt}return He="error",$t}function Wt(le,De,Re){return le=="equals"?Jt:(ae.allowMissing||(He="error"),$t(le,De,Re))}function Jt(le,De,Re){return le=="string"?de:le=="word"&&ae.allowUnquoted?(He="string",$t):(He="error",$t(le,De,Re))}function de(le,De,Re){return le=="string"?de:$t(le,De,Re)}return{startState:function(le){var De={tokenize:ie,state:mt,indented:le||0,tagName:null,tagStart:null,context:null};return le!=null&&(De.baseIndent=le),De},token:function(le,De){if(!De.tagName&&le.sol()&&(De.indented=le.indentation()),le.eatSpace())return null;Nt=null;var Re=De.tokenize(le,De);return(Re||Nt)&&Re!="comment"&&(He=null,De.state=De.state(Nt||Re,le,De),He&&(Re=He=="error"?Re+" error":He)),Re},indent:function(le,De,Re){var Ke=le.context;if(le.tokenize.isInAttribute)return le.tagStart==le.indented?le.stringStartCol+1:le.indented+Ht;if(Ke&&Ke.noIndent)return Tt.Pass;if(le.tokenize!=Ge&&le.tokenize!=ie)return Re?Re.match(/^(\s*)/)[0].length:0;if(le.tagName)return ae.multilineTagIndentPastTag!==!1?le.tagStart+le.tagName.length+2:le.tagStart+Ht*(ae.multilineTagIndentFactor||1);if(ae.alignCDATA&&/$/,blockCommentStart:"",configuration:ae.htmlMode?"html":"xml",helperType:ae.htmlMode?"html":"xml",skipAttribute:function(le){le.state==Jt&&(le.state=$t)},xmlCurrentTag:function(le){return le.tagName?{name:le.tagName,close:le.type=="closeTag"}:null},xmlCurrentContext:function(le){for(var De=[],Re=le.context;Re;Re=Re.prev)Re.tagName&&De.push(Re.tagName);return De.reverse()}}}),Tt.defineMIME("text/xml","xml"),Tt.defineMIME("application/xml","xml"),Tt.mimeModes.hasOwnProperty("text/html")||Tt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Wn,ai,Ot){"use strict";Ot.d(ai,{$u:function(){return ve},BD:function(){return It},E9:function(){return je},FF:function(){return po},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return kt},NB:function(){return Le},S0:function(){return Xe},UL:function(){return Nt},Vk:function(){return lt},Vm:function(){return be},YI:function(){return di},ZA:function(){return xe},Zt:function(){return He},al:function(){return Mt},bn:function(){return jt},bx:function(){return Ct},g2:function(){return Li},h1:function(){return Jt},hD:function(){return Ri},l4:function(){return Ht},rU:function(){return Pe},s_:function(){return xt},uz:function(){return nn},z6:function(){return ie}}),Wn=Ot.hmd(Wn),function(){var Lt;function yn(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):qt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Pi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):qt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ti(){var a=to.pop();return a===void 0?[]:a}function ii(a){a.length=0,to.push(a)}function Fi(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(Ze(a)&&a.constructor)return Fi(a.constructor);return typeof a}function yr(a){var y=a;return Ze(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 ir(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 Ln(a,y,x){Object.defineProperty(lo.prototype,a,{get:y,set:x})}function vi(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="",tt=0;tt-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 mr=Nn.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)},Qr.prototype.Ad=function(){return this.next()},Qr.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},Qr.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},Qr.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},Qr.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},Qr.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},Qr.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},Qr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Qr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ln.Object.defineProperties(Qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Qr.prototype.first=Qr.prototype.first,Qr.prototype.hasNext=Qr.prototype.Ad,Qr.prototype.next=Qr.prototype.next,Qr.prototype.reset=Qr.prototype.reset,Qr.className="ListIteratorBackwards";function an(a){Zi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&qt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=an.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Jn(a,"0 <= i < length",an,"elt:i"),y[a]},Lt.get=function(a){return this.M(a)},Lt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Jn(a,"0 <= i < length",an,"setElt:i"),this._isFrozen&&Ce(this,a),x[a]=y},Lt.set=function(a,y){this.cd(a,y)},Lt.first=function(){var a=this.s;return a.length===0?null:a[0]},Lt.jc=function(){var a=this.s,y=a.length;return 0a&&Jn(a,">= 0",an,"insertAt:i"),this._isFrozen&&Ce(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&Ce(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)},Lt.delete=function(a){return this.remove(a)},Lt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Jn(a,"0 <= i < length",an,"removeAt:i"),this._isFrozen&&Ce(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Lt.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&&Ce(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Jn(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 Cr;var a=this.Sa;return a!==null?(a.reset(),a):new zr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Cr;var a=this.Hg;return a!==null?(a.reset(),a):new Qr(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 vo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}vo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},vo.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)},vo.prototype.Ad=function(){return this.next()},vo.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},vo.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},vo.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},vo.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},vo.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},vo.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},vo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},vo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ln.Object.defineProperties(vo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),vo.prototype.first=vo.prototype.first,vo.prototype.hasNext=vo.prototype.Ad,vo.prototype.next=vo.prototype.next,vo.prototype.reset=vo.prototype.reset,vo.className="SetIterator";function sn(a){Zi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&qt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=sn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new vo(this)}}}),sn.prototype.toList=sn.prototype.Hv,sn.prototype.toArray=sn.prototype.Fa,sn.prototype.clear=sn.prototype.clear,sn.prototype.retainAll=sn.prototype.pA,sn.prototype.removeAll=sn.prototype.hp,sn.prototype.delete=sn.prototype.delete,sn.prototype.remove=sn.prototype.remove,sn.prototype.first=sn.prototype.first,sn.prototype.containsAny=sn.prototype.Ty,sn.prototype.containsAll=sn.prototype.Sy,sn.prototype.has=sn.prototype.has,sn.prototype.contains=sn.prototype.contains,sn.prototype.addAll=sn.prototype.addAll,sn.prototype.add=sn.prototype.add,sn.prototype.thaw=sn.prototype.ka,sn.prototype.freeze=sn.prototype.freeze;var Fo=1;sn.className="Set",sn.uniqueHash=Zi,sn.hashIdUnique=jr,sn.hashId=Tr;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"},ln.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 Sr(a){sn.call(this),Zi(this),this._isFrozen=!0,this.ma=a}Te(Sr,sn),Lt=Sr.prototype,Lt.freeze=function(){return this},Lt.ka=function(){return this},Lt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Lt.add=function(){qt("This Set is read-only: "+this.toString())},Lt.contains=function(a){return this.ma.contains(a)},Lt.has=function(a){return this.contains(a)},Lt.remove=function(){qt("This Set is read-only: "+this.toString())},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){qt("This Set is read-only: "+this.toString())},Lt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Sr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Sr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Sr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Sr.prototype.map=function(a){for(var y=new sn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Sr.prototype.filter=function(a){for(var y=new sn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Sr.prototype.copy=function(){return new Sr(this.ma)},Sr.prototype.Iv=function(){var a=new sn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Sr.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},Sr.prototype.Hv=function(){var a=new an,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ln.Object.defineProperties(Sr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Cr:new Gr(this.ma)}}}),Sr.prototype.toList=Sr.prototype.Hv,Sr.prototype.toArray=Sr.prototype.Fa,Sr.prototype.toSet=Sr.prototype.Iv,Sr.prototype.first=Sr.prototype.first,Sr.prototype.clear=Sr.prototype.clear,Sr.prototype.delete=Sr.prototype.delete,Sr.prototype.remove=Sr.prototype.remove,Sr.prototype.has=Sr.prototype.has,Sr.prototype.contains=Sr.prototype.contains,Sr.prototype.add=Sr.prototype.add,Sr.prototype.thaw=Sr.prototype.ka,Sr.prototype.freeze=Sr.prototype.freeze,Sr.className="MapKeySet";function bo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}bo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},bo.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)},bo.prototype.Ad=function(){return this.next()},bo.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},bo.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},bo.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},bo.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},bo.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},bo.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},bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},bo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ln.Object.defineProperties(bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),bo.prototype.first=bo.prototype.first,bo.prototype.hasNext=bo.prototype.Ad,bo.prototype.next=bo.prototype.next,bo.prototype.reset=bo.prototype.reset,bo.className="MapValueSetIterator";function Ne(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ne.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ne.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"},ln.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 Ae(a){Zi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&qt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=Ae.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999=this.count)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new cn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Cr:new Gr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Cr;var a=this.jf;return a!==null?(a.reset(),a):new bo(this)}}}),Ae.prototype.toKeySet=Ae.prototype.Lf,Ae.prototype.toArray=Ae.prototype.Fa,Ae.prototype.clear=Ae.prototype.clear,Ae.prototype.delete=Ae.prototype.delete,Ae.prototype.remove=Ae.prototype.remove,Ae.prototype.get=Ae.prototype.get,Ae.prototype.getValue=Ae.prototype.I,Ae.prototype.has=Ae.prototype.has,Ae.prototype.contains=Ae.prototype.contains,Ae.prototype.first=Ae.prototype.first,Ae.prototype.addAll=Ae.prototype.addAll,Ae.prototype.set=Ae.prototype.set,Ae.prototype.add=Ae.prototype.add,Ae.prototype.thaw=Ae.prototype.ka,Ae.prototype.freeze=Ae.prototype.freeze,Ae.className="Map";function Dt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):qt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var bn,si,Oi,Ai,gi;Dt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Dt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Dt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Dt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Dt.prototype.copy=function(){var a=new Dt;return a.x=this.x,a.y=this.y,a},Lt=Dt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function un(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 Dt(x,b)}return new Dt}function Vn(a){return a.x.toString()+" "+a.y.toString()}Lt.toString=function(){return"Point("+this.x+","+this.y+")"},Lt.D=function(a){return a instanceof Dt?this.x===a.x&&this.y===a.y:!1},Lt.hi=function(a,y){return this.x===a&&this.y===y},Lt.Xa=function(a){return se.B(this.x,a.x)&&se.B(this.y,a.y)},Lt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Lt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Dt.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},Lt=Dt.prototype,Lt.scale=function(a,y){return this.x*=a,this.y*=y,this},Lt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Lt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Lt.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}Lt.Ry=function(a,y){return se.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Lt.fA=function(a,y,x,E){return se.qh(a,y,x,E,this.x,this.y,this),this},Lt.gA=function(a,y){return se.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Lt.uA=function(a,y,x,E){return se.No(this.x,this.y,a,y,x,E,this),this},Lt.vA=function(a,y){return se.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Lt.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},Lt.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},Lt.transform=function(a){return a.Ga(this),this};function Mn(a,y){return y.Cd(a),a}function Yn(a,y,x,E,b,z){var tt=b-x,rt=z-E,ot=tt*tt+rt*rt;x-=a,E-=y;var st=-x*tt-E*rt;return 0>=st||st>=ot?(tt=b-a,rt=z-y,Math.min(x*x+E*E,tt*tt+rt*rt)):(a=tt*E-rt*x,a*a/ot)}function In(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function At(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)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Dt.alloc=function(){var a=ne.pop();return a===void 0?new Dt:a},Dt.allocAt=function(a,y){var x=ne.pop();return x===void 0?new Dt(a,y):(x.x=a,x.y=y,x)},Dt.free=function(a){ne.push(a)},Dt.prototype.isReal=Dt.prototype.w,Dt.prototype.setSpot=Dt.prototype.yi,Dt.prototype.setRectSpot=Dt.prototype.xi,Dt.prototype.snapToGridPoint=Dt.prototype.vA,Dt.prototype.snapToGrid=Dt.prototype.uA,Dt.prototype.projectOntoLineSegmentPoint=Dt.prototype.gA,Dt.prototype.projectOntoLineSegment=Dt.prototype.fA,Dt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return se.Rl(a,y,x,E,b,z,tt,rt)},Dt.prototype.compareWithLineSegmentPoint=Dt.prototype.Ry,Dt.compareWithLineSegment=function(a,y,x,E,b,z){return se.Fl(a,y,x,E,b,z)},Dt.prototype.direction=Dt.prototype.direction,Dt.prototype.directionPoint=Dt.prototype.ab,Dt.prototype.normalize=Dt.prototype.normalize,Dt.prototype.distanceSquared=Dt.prototype.zd,Dt.prototype.distanceSquaredPoint=Dt.prototype.Bf,Dt.prototype.scale=Dt.prototype.scale,Dt.prototype.rotate=Dt.prototype.rotate,Dt.prototype.offset=Dt.prototype.offset,Dt.prototype.subtract=Dt.prototype.re,Dt.prototype.add=Dt.prototype.add,Dt.prototype.equalsApprox=Dt.prototype.Xa,Dt.prototype.equalTo=Dt.prototype.hi,Dt.prototype.equals=Dt.prototype.D,Dt.prototype.set=Dt.prototype.set,Dt.prototype.setTo=Dt.prototype.sg;var ne=[];Dt.className="Point",Dt.parse=un,Dt.stringify=Vn,Dt.distanceLineSegmentSquared=Yn,Dt.distanceSquared=In,Dt.direction=At,Dt.Origin=bn=new Dt(0,0).ja(),Dt.InfiniteTopLeft=si=new Dt(-1/0,-1/0).ja(),Dt.InfiniteBottomRight=Oi=new Dt(1/0,1/0).ja(),Dt.SixPoint=Ai=new Dt(6,6).ja(),Dt.NoPoint=gi=new Dt(NaN,NaN).ja(),Dt.parse=un,Dt.stringify=Vn,Dt.distanceLineSegmentSquared=Yn,Dt.distanceSquared=In,Dt.direction=At;function Yt(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):qt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var fe,pe,Oe,Ie,Ye,Pn,En;Yt.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Yt.prototype.h=function(a,y){return this.width=a,this.height=y,this},Yt.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Yt.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Yt.prototype.copy=function(){var a=new Yt;return a.width=this.width,a.height=this.height,a},Lt=Yt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ue(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 Yt(x,b)}return new Yt}function Zn(a){return a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Size("+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof Yt?this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y){return this.width===a&&this.height===y},Lt.Xa=function(a){return se.B(this.width,a.width)&&se.B(this.height,a.height)},Lt.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},Lt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Yt.alloc=function(){var a=ri.pop();return a===void 0?new Yt:a},Yt.free=function(a){ri.push(a)},Yt.prototype.isReal=Yt.prototype.w,Yt.prototype.inflate=Yt.prototype.Bc,Yt.prototype.equalsApprox=Yt.prototype.Xa,Yt.prototype.equalTo=Yt.prototype.hi,Yt.prototype.equals=Yt.prototype.D,Yt.prototype.set=Yt.prototype.set,Yt.prototype.setTo=Yt.prototype.sg;var ri=[];Yt.className="Size",Yt.parse=Ue,Yt.stringify=Zn,Yt.ZeroSize=fe=new Yt(0,0).ja(),Yt.OneSize=pe=new Yt(1,1).ja(),Yt.SixSize=Oe=new Yt(6,6).ja(),Yt.EightSize=Ie=new Yt(8,8).ja(),Yt.TenSize=Ye=new Yt(10,10).ja(),Yt.InfiniteSize=Pn=new Yt(1/0,1/0).ja(),Yt.NoSize=En=new Yt(NaN,NaN).ja(),Yt.parse=Ue,Yt.stringify=Zn;function oe(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 Dt?(x=a.x,a=a.y,y instanceof Dt?(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 Yt?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):qt("Incorrect second argument supplied to Rect constructor "+y)):qt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Lt=oe.prototype,Lt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Tn(a,y,x){a.width=y,a.height=x}Lt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Lt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.dd=function(a){return this.x=a.x,this.y=a.y,this},Lt.tA=function(a){return this.width=a.width,this.height=a.height,this},oe.prototype.copy=function(){var a=new oe;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Lt=oe.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fn(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 tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new oe(x,b,z,tt)}return new oe}function wn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof oe?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Lt.Xa=function(a){return se.B(this.x,a.x)&&se.B(this.y,a.y)&&se.B(this.width,a.width)&&se.B(this.height,a.height)};function pn(a,y){return se.$(a.x,y.x)&&se.$(a.y,y.y)&&se.$(a.width,y.width)&&se.$(a.height,y.height)}Lt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Lt.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},Lt.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},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.Bc=function(a,y){return ci(this,y,a,y,a)},Lt.Co=function(a){return ci(this,a.top,a.right,a.bottom,a.left)},Lt.Fv=function(a){return ci(this,-a.top,-a.right,-a.bottom,-a.left)},Lt.Hz=function(a,y,x,E){return ci(this,a,y,x,E)};function ci(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}Lt.Ex=function(a){return li(this,a.x,a.y,a.width,a.height)},Lt.Uu=function(a,y,x,E){return li(this,a,y,x,E)};function li(a,y,x,E,b){var z=Math.max(a.x,y),tt=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=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Lt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Lt.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 _n(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))}Lt.Ye=function(a){return oi(this,a.x,a.y,0,0)},Lt.ed=function(a){return oi(this,a.x,a.y,a.width,a.height)},Lt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),oi(this,a,y,x,E)};function oi(a,y,x,E,b){var z=Math.min(a.x,y),tt=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=tt,a.width=y-z,a.height=x-tt,a}Lt.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 pi(a,y,x,E,b,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=b&&b+tt<=a+x&&y<=z&&z+rt<=y+E}function Ii(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Lt.Mz=function(){return this.width===0&&this.height===0},oe.alloc=function(){var a=pr.pop();return a===void 0?new oe:a},oe.allocAt=function(a,y,x,E){var b=pr.pop();return b===void 0?new oe(a,y,x,E):b.h(a,y,x,E)},oe.free=function(a){pr.push(a)},ln.Object.defineProperties(oe.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 Dt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Yt(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Dt(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}}}),oe.prototype.isEmpty=oe.prototype.Mz,oe.prototype.isReal=oe.prototype.w,oe.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return se.Fx(a,y,x,E,b,z,tt,rt)},oe.prototype.setSpot=oe.prototype.yi,oe.prototype.union=oe.prototype.Kv,oe.prototype.unionRect=oe.prototype.ed,oe.prototype.unionPoint=oe.prototype.Ye,oe.prototype.intersects=oe.prototype.Vu,oe.prototype.intersectsRect=oe.prototype.Yc,oe.prototype.intersect=oe.prototype.Uu,oe.prototype.intersectRect=oe.prototype.Ex,oe.prototype.grow=oe.prototype.Hz,oe.prototype.subtractMargin=oe.prototype.Fv,oe.prototype.addMargin=oe.prototype.Co,oe.prototype.inflate=oe.prototype.Bc,oe.prototype.offset=oe.prototype.offset,oe.prototype.contains=oe.prototype.contains,oe.prototype.containsRect=oe.prototype.Re,oe.prototype.containsPoint=oe.prototype.ca,oe.prototype.equalsApprox=oe.prototype.Xa,oe.prototype.equalTo=oe.prototype.hi,oe.prototype.equals=oe.prototype.D,oe.prototype.setSize=oe.prototype.tA,oe.prototype.setPoint=oe.prototype.dd,oe.prototype.set=oe.prototype.set,oe.prototype.setTo=oe.prototype.sg;var gr=null,dr=null,pr=[];oe.className="Rect",oe.parse=Fn,oe.stringify=wn,oe.contains=pi,oe.intersects=Ii,oe.ZeroRect=gr=new oe(0,0,0,0).ja(),oe.NoRect=dr=new oe(NaN,NaN,NaN,NaN).ja(),oe.parse=Fn,oe.stringify=wn,oe.contains=pi,oe.intersects=Ii;function ui(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):qt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}ui.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ui.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},ui.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ui.prototype.copy=function(){var a=new ui;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Lt=ui.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function rr(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 ui;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new ui(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new ui(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new ui(x,b):new ui(x,b,z,tt)}return new ui}function Ji(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Lt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Lt.D=function(a){return a instanceof ui?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Lt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Lt.Xa=function(a){return se.B(this.top,a.top)&&se.B(this.right,a.right)&&se.B(this.bottom,a.bottom)&&se.B(this.left,a.left)},Lt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ui.alloc=function(){var a=sr.pop();return a===void 0?new ui:a},ui.free=function(a){sr.push(a)},ui.prototype.isReal=ui.prototype.w,ui.prototype.equalsApprox=ui.prototype.Xa,ui.prototype.equalTo=ui.prototype.hi,ui.prototype.equals=ui.prototype.D,ui.prototype.set=ui.prototype.set,ui.prototype.setTo=ui.prototype.sg;var or=null,_i=null,sr=[];ui.className="Margin",ui.parse=rr,ui.stringify=Ji,ui.ZeroMargin=or=new ui(0,0,0,0).ja(),ui.TwoMargin=_i=new ui(2,2,2,2).ja(),ui.parse=rr,ui.stringify=Ji;function mn(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 wi,Ti,zi,Di,Bi,$n,lr,Mr,Ar,Ui,Wr,Or,Er,eo,ao,ko,Yr,ta,yo,na,Co,Uo,ia,Qo,Io,So,oa,Ca,Ro,Ra,xo,so,no,qo,fo,La;mn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},mn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},mn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},mn.prototype.copy=function(){var a=new mn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Lt=mn.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this};function tr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Hi(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return wi;if(a==="TopLeft")return Ti;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return zi;if(a==="TopRight")return Di;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Bi;if(a==="Center")return $n;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return lr;if(a==="BottomLeft")return Mr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ar;if(a==="BottomRight")return Ui;if(a==="TopSide")return Wr;if(a==="LeftSide")return Or;if(a==="RightSide")return Er;if(a==="BottomSide")return eo;if(a==="TopBottomSides")return ao;if(a==="LeftRightSides")return ko;if(a==="TopLeftSides")return Yr;if(a==="TopRightSides")return ta;if(a==="BottomLeftSides")return yo;if(a==="BottomRightSides")return na;if(a==="NotTopSide")return Co;if(a==="NotLeftSide")return Uo;if(a==="NotRightSide")return ia;if(a==="NotBottomSide")return Qo;if(a==="AllSides")return Io;if(a==="Default")return So;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,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Lt=Un.prototype,Lt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Lt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Lt.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)},Lt.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))},Lt.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))},Lt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,st=this.dx,ut=this.dy,ft=y*z+x*rt+st,vt=y*tt+x*ot+ut,yt=E*z+x*rt+st,Pt=E*tt+x*ot+ut;return x=y*z+b*rt+st,y=y*tt+b*ot+ut,z=E*z+b*rt+st,E=E*tt+b*ot+ut,b=Math.min(ft,yt),ft=Math.max(ft,yt),yt=Math.min(vt,Pt),vt=Math.max(vt,Pt),b=Math.min(b,x),ft=Math.max(ft,x),yt=Math.min(yt,y),vt=Math.max(vt,y),b=Math.min(b,z),ft=Math.max(ft,z),yt=Math.min(yt,E),vt=Math.max(vt,E),a.h(b,yt,ft-b,vt-yt),a},Un.alloc=function(){var a=zo.pop();return a===void 0?new Un:a},Un.free=function(a){zo.push(a)},Un.prototype.transformRect=Un.prototype.pp,Un.prototype.transformPoint=Un.prototype.Ga,Un.prototype.scale=Un.prototype.scale,Un.prototype.translate=Un.prototype.translate,Un.prototype.rotate=Un.prototype.rotate,Un.prototype.invert=Un.prototype.Vj,Un.prototype.multiplyInverted=Un.prototype.bv,Un.prototype.multiply=Un.prototype.multiply,Un.prototype.reset=Un.prototype.reset,Un.prototype.isIdentity=Un.prototype.ws,Un.prototype.equals=Un.prototype.D,Un.prototype.setTransform=Un.prototype.setTransform,Un.prototype.set=Un.prototype.set;var zo=[];Un.className="Transform",Un.xF="54a702f3e53909c447824c6706603faf4c";var se={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=se.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);se.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),aut-st)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,rt,ot,st,ut,ft){if(se.Yb(a,y,tt,rt,ft,x,E)&&se.Yb(a,y,tt,rt,ft,b,z))return se.Yb(a,y,tt,rt,ft,st,ut);var vt=(a+x)/2,yt=(y+E)/2,Pt=(x+b)/2,Et=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(vt+Pt)/2,x=(yt+Et)/2,Pt=(Pt+b)/2,Et=(Et+z)/2;var Vt=(E+Pt)/2,Rt=(x+Et)/2;return se.cs(a,y,vt,yt,E,x,Vt,Rt,ot,st,ut,ft)||se.cs(Vt,Rt,Pt,Et,b,z,tt,rt,ot,st,ut,ft)},ax:function(a,y,x,E,b,z,tt,rt,ot){var st=(x+b)/2,ut=(E+z)/2;return ot.h((((a+x)/2+st)/2+(st+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,E,b,z,tt,rt){var ot=(x+b)/2,st=(E+z)/2;return At(((a+x)/2+ot)/2,((y+E)/2+st)/2,(ot+(b+tt)/2)/2,(st+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,ot,st){if(se.Yb(a,y,tt,rt,ot,x,E)&&se.Yb(a,y,tt,rt,ot,b,z))oi(st,a,y,0,0),oi(st,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+vt)/2,x=(ft+yt)/2,vt=(vt+b)/2,yt=(yt+z)/2;var Pt=(E+vt)/2,Et=(x+yt)/2;se.Dl(a,y,ut,ft,E,x,Pt,Et,ot,st),se.Dl(Pt,Et,vt,yt,b,z,tt,rt,ot,st)}return st},Qe:function(a,y,x,E,b,z,tt,rt,ot,st){if(se.Yb(a,y,tt,rt,ot,x,E)&&se.Yb(a,y,tt,rt,ot,b,z))st.length===0&&(st.push(a),st.push(y)),st.push(tt),st.push(rt);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+vt)/2,x=(ft+yt)/2,vt=(vt+b)/2,yt=(yt+z)/2;var Pt=(E+vt)/2,Et=(x+yt)/2;se.Qe(a,y,ut,ft,E,x,Pt,Et,ot,st),se.Qe(Pt,Et,vt,yt,b,z,tt,rt,ot,st)}return st},jv:function(a,y,x,E,b,z,tt,rt,ot,st){if(se.Yb(a,y,b,z,st,x,E))return se.Yb(a,y,b,z,st,rt,ot);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var vt=(ut+x)/2,yt=(ft+E)/2;return se.jv(a,y,ut,ft,vt,yt,tt,rt,ot,st)||se.jv(vt,yt,x,E,b,z,tt,rt,ot,st)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,rt){if(se.Yb(a,y,b,z,tt,x,E))oi(rt,a,y,0,0),oi(rt,b,z,0,0);else{var ot=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(st+E)/2;se.iv(a,y,ot,st,ut,ft,tt,rt),se.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(se.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var ot=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(st+E)/2;se.ep(a,y,ot,st,ut,ft,tt,rt),se.ep(ut,ft,x,E,b,z,tt,rt)}return rt},Eo:function(a,y,x,E,b,z,tt,rt,ot,st,ut,ft,vt,yt){if(se.Yb(a,y,tt,rt,vt,x,E)&&se.Yb(a,y,tt,rt,vt,b,z))return!se.Rl(a,y,tt,rt,ot,st,ut,ft)||(vt=(a-tt)*(st-ft)-(y-rt)*(ot-ut),vt===0)?!1:(yt.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/vt,((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/vt),!0);var Pt=(a+x)/2,Et=(y+E)/2,Vt=(x+b)/2,Rt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(Pt+Vt)/2,x=(Et+Rt)/2,Vt=(Vt+b)/2,Rt=(Rt+z)/2;var Qt=(E+Vt)/2,_t=(x+Rt)/2,te=1/0,he=!1,ke=0,jn=0;return se.Eo(a,y,Pt,Et,E,x,Qt,_t,ot,st,ut,ft,vt,yt)&&(a=(yt.x-ot)*(yt.x-ot)+(yt.y-st)*(yt.y-st),a=ut)return yt;if((ot>ut?ot-ut:ut-ot)<(st>ft?st-ft:ft-st)){if(ya)return yt}else if(aa)return yt;0vt&&yt--}else{Pt=(a+x)/2,Et=(y+E)/2;var Vt=(x+b)/2,Rt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(Pt+Vt)/2,x=(Et+Rt)/2,Vt=(Vt+b)/2,Rt=(Rt+z)/2;var Qt=(E+Vt)/2,_t=(x+Rt)/2;yt+=se.Fo(a,y,Pt,Et,E,x,Qt,_t,ot,st,ut,ft,vt),yt+=se.Fo(Qt,_t,Vt,Rt,b,z,tt,rt,ot,st,ut,ft,vt)}return yt},qh:function(a,y,x,E,b,z,tt){return se.$(a,x)?(yy?(tt.h(a,y),!1):(tt.h(a,z),!0)):se.$(y,E)?(aa?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(E-y)/(x-a),se.$(rt,tt)?(se.qh(a,y,x,E,b,z,ot),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),se.$(tt,0)?(aa?(ot.h(a,y),!1):(ot.h(b,y),!0)):se.qh(a,y,x,E,b,tt*(b-a)+y,ot))))},MA:function(a,y,x,E,b){return se.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,tt,rt,ot,st){function ut(Vt,Rt){var Qt=(Vt-a)*(Vt-a)+(Rt-y)*(Rt-y);Qt(x>a?x-a:a-x)){if(vt=1-(x-b)*(x-b)/(vt*vt),0>vt)return ot;vt=Math.sqrt(vt),E=-st*vt+z,ut(x,st*vt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(vt*vt)+x*x/(st*st),rt=2*x*(y-x*a)/(st*st)-2*x*z/(st*st)-2*b/(vt*vt),vt=rt*rt-4*E*(2*x*a*z/(st*st)-2*y*z/(st*st)+z*z/(st*st)+b*b/(vt*vt)-1+(y-x*a)*(y-x*a)/(st*st)),0>vt)return ot;vt=Math.sqrt(vt),st=(-rt+vt)/(2*E),ut(st,x*st-x*a+y),vt=(-rt-vt)/(2*E),ut(vt,x*vt-x*a+y)}return ot},Ff:function(a,y,x,E,b,z,tt,rt,ot){var st=1e21,ut=a,ft=y;if(se.Ve(a,y,a,E,b,z,tt,rt,ot)){var vt=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z);vtst},us:function(a,y,x){return se.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,tt,rt){var ot=a+x,st=y+E;return b===tt?(z=y):z===rt?(b=a):!!(pi(a,y,x,E,b,z)||pi(a,y,x,E,tt,rt)||se.Rl(a,y,ot,y,b,z,tt,rt)||se.Rl(ot,y,ot,st,b,z,tt,rt)||se.Rl(ot,st,a,st,b,z,tt,rt)||se.Rl(a,st,a,y,b,z,tt,rt))},Rl:function(a,y,x,E,b,z,tt,rt){return a===x&&y===E&&b===tt&&z===rt?a===b&&y===z:0>=se.Fl(a,y,x,E,b,z)*se.Fl(a,y,x,E,tt,rt)&&0>=se.Fl(b,z,tt,rt,a,y)*se.Fl(b,z,tt,rt,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 tt=Math.PI;z||(E*=tt/180,b*=tt/180);var rt=E>b?-1:1;z=[];var ot=tt/2,st=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return ot=st+rt*Math.min(E,ot),rt=a+x*Math.cos(st),st=y+x*Math.sin(st),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(st+y)/2,z.push([rt,st,x,ot,x,ot,a,y]),z;for(;1e-5x,z=0>E;if(ast&&(y=.5*(rt+ot),!(y===rt||y===ot));++st){var ut=a/(y+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0ut)ot=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 en.u:var y=new oe(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 en.F:if(y=new oe(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 en.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=te-1?!0:st[Et+1].match(he)!==null}function E(){return Et++,st[Et]}function b($i){var Yi=parseFloat(E()),Ur=parseFloat(E());Vt===Vt.toLowerCase()&&(Yi=_t.x+Yi,Ur=_t.y+Ur),$i.h(Yi,Ur)}function z(){return b(_t),_t}function tt(){return b(Qt),Qt}function rt(){var $i=Rt.toLowerCase();return $i!=="c"&&$i!=="s"&&$i!=="q"&&$i!=="t"?_t:new Dt(2*_t.x-Qt.x,2*_t.y-Qt.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var st=a.split(" ");for(a=0;a=te-1);)if(Rt=Vt,Vt=E(),Vt!=="")switch(Vt.toUpperCase()){case"X":yt=!0,ft=ut=!1;break;case"M":for(Pt=z(),a.mc===null||yt===!0?(Rf(a,Pt.x,Pt.y,ut,!ft,vt),yt=!1):a.moveTo(Pt.x,Pt.y),ot.assign(_t);!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"L":for(;!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"H":for(;!x();)_t=new Dt((Vt===Vt.toLowerCase()?_t.x:0)+parseFloat(E()),_t.y),a.lineTo(_t.x,_t.y);break;case"V":for(;!x();)_t=new Dt(_t.x,(Vt===Vt.toLowerCase()?_t.y:0)+parseFloat(E())),a.lineTo(_t.x,_t.y);break;case"C":for(;!x();){Pt=new Dt,b(Pt);var ke=tt(),jn=z();Eh(a,Pt.x,Pt.y,ke.x,ke.y,jn.x,jn.y)}break;case"S":for(;!x();)Pt=rt(),ke=tt(),jn=z(),Eh(a,Pt.x,Pt.y,ke.x,ke.y,jn.x,jn.y);break;case"Q":for(;!x();)Pt=tt(),ke=z(),jm(a,Pt.x,Pt.y,ke.x,ke.y);break;case"T":for(;!x();)Qt=Pt=rt(),ke=z(),jm(a,Pt.x,Pt.y,ke.x,ke.y);break;case"B":for(;!x();){Pt=parseFloat(E()),ke=parseFloat(E()),jn=parseFloat(E());var fi=parseFloat(E()),ei=parseFloat(E()),Sn=ei,_e=!1;x()||(Sn=parseFloat(E()),x()||(_e=parseFloat(E())!==0)),Vt===Vt.toLowerCase()&&(jn+=_t.x,fi+=_t.y),a.arcTo(Pt,ke,jn,fi,ei,Sn,_e)}break;case"A":for(;!x();)Pt=Math.abs(parseFloat(E())),ke=Math.abs(parseFloat(E())),jn=parseFloat(E()),ei=fi=!1,_e=Sn=0,Sn=E(),Sn.length===1?(fi=!!parseFloat(Sn),ei=!!parseFloat(E()),Sn=parseFloat(E())):Sn.length===2?(fi=!!parseFloat(Sn[0]),ei=!!parseFloat(Sn[1]),Sn=parseFloat(E())):(fi=!!parseFloat(Sn[0]),ei=!!parseFloat(Sn[1]),Sn=parseFloat(Sn.slice(2))),_e=parseFloat(E()),Vt===Vt.toLowerCase()&&(Sn=_t.x+Sn,_e=_t.y+_e),_t.h(Sn,_e),wx(a,Pt,ke,jn,fi,ei,Sn,_e);break;case"Z":Px(a),_t.assign(ot);break;case"F":for(Pt="",ke=1;st[Et+ke];)if(st[Et+ke]==="0")vt=!0,ke++;else if(st[Et+ke].match(/[Uu]/)!==null)ke++;else if(st[Et+ke].match(he)===null)ke++;else{Pt=st[Et+ke];break}Pt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),Pt.startAngle+=tt),0>a&&(Pt.startAngle=180-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),0>E&&(Pt.startAngle=-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY!==void 0&&(Pt.radiusY*=Math.sqrt(y*y+E*E));break;case us:if(tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z,Pt.radiusX===0||Pt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.xAxisRotation+=tt),0>a&&(Pt.xAxisRotation=180-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),0>E&&(Pt.xAxisRotation=-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY*=Math.sqrt(y*y+E*E);break;default:qt("Unknown Segment type: "+Pt.type)}}}}return this._isInvalidBounds=!0,this},Lt.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 en.j:return se.Yb(x,E,b,z,y,a.x,a.y);case en.u:var tt=oe.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=tt.ca(a),oe.free(tt),a;case en.F:tt=Math.min(x,b)-y;var rt=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:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case en.o:return da(this,a,y,!0,!1);default:return!1}};function da(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,st,ut,ft,vt=a.figures.s,yt=vt.length,Pt=0;Pt=a)return 0;if((b>tt?b-tt:tt-b)<(z>rt?z-rt:rt-z)){if(zrt)return 0}else if(yz)return 0}else if(btt)return 0}else if(stb)return 0;return 0a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,x=x[rt],rt=x[2*a],b=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Lt.wx=function(a){if(0>a?a=0:1=b)return b=y[tt],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+=st}}return NaN},Lt.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=rt+(a-rt)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-rt)?0:1>Math.abs(b-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=b-x?0:180:180*Math.atan2(a-rt,b-x)/Math.PI,y;tt+=ut}}return y},Lt.xx=function(a){if(this.type===en.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-tt)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var rt=Dt.alloc();return se.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Dt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===en.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(b=this.endY,tt!==ot||rt!==b){y=ot-tt,x=b-rt,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),ot),a=Math.min(Math.max(a,rt),b),tt=Math.abs(E-tt),ot=Math.abs(E-ot),rt=Math.abs(a-rt),b=Math.abs(a-b);var st=Math.min(tt,ot,rt,b);if(st===rt)return E/z;if(st===ot)return(y+a)/z;if(st===b)return(2*y+x-E)/z;if(st===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Dt.alloc(),b=1/0,rt=tt=0,ot=y.length;for(var ut=st=0,ft=0;fta?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 tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===ra&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===ra&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}kr.prototype.copy=function(){var a=new kr;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},Lt=kr.prototype,Lt.Xa=function(a){if(!(a instanceof kr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case sa:case _r:return se.B(this.endX,a.endX)&&se.B(this.endY,a.endY);case ga:return se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)&&se.B(this.point1X,a.point1X)&&se.B(this.point1Y,a.point1Y)&&se.B(this.point2X,a.point2X)&&se.B(this.point2Y,a.point2Y);case ls:return se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)&&se.B(this.point1X,a.point1X)&&se.B(this.point1Y,a.point1Y);case ra:return se.B(this.startAngle,a.startAngle)&&se.B(this.sweepAngle,a.sweepAngle)&&se.B(this.centerX,a.centerX)&&se.B(this.centerY,a.centerY)&&se.B(this.radiusX,a.radiusX)&&se.B(this.radiusY,a.radiusY);case us:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&se.B(this.xAxisRotation,a.xAxisRotation)&&se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)&&se.B(this.radiusX,a.radiusX)&&se.B(this.radiusY,a.radiusY);default:return!1}},Lt.qb=function(a){a.classType===kr&&(this.type=a)},Lt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case sa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case _r:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ga:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ls:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ra:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case us:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.close=function(){return this.isClosed=!0,this};function Va(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=se.jx(0,0,x=yt?tt=Math.PI:1<=yt&&(tt=0),!ot&&0tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,yt=y>z?z/y:1,y=se.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Un.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ot,yt),en.Ha(y,z),Un.free(z),a.ae=y,a.ae}ln.Object.defineProperties(kr.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&&Ce(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ce(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ce(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ce(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ce(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ce(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ce(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ce(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ce(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Jn(a,">= zero",kr,"radiusX"),this._isFrozen&&Ce(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Jn(a,">= zero",kr,"radiusY"),this._isFrozen&&Ce(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ce(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&&Ce(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Ce(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&&Ce(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&&Ce(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),kr.prototype.equalsApprox=kr.prototype.Xa;var sa=new Ee(kr,"Move",0),_r=new Ee(kr,"Line",1),ga=new Ee(kr,"Bezier",2),ls=new Ee(kr,"QuadraticBezier",3),ra=new Ee(kr,"Arc",4),us=new Ee(kr,"SvgArc",4);kr.className="PathSegment",kr.Move=sa,kr.Line=_r,kr.Bezier=ga,kr.QuadraticBezier=ls,kr.Arc=ra,kr.SvgArc=us;function Da(){this.H=null,this.xu=new Dt(0,0).freeze(),this.mt=new Dt(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}Da.prototype.copy=function(){var a=new Da;return this.clone(a)},Da.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},Da.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},Da.prototype.So=function(a,y){var x=this.diagram;return x===null||kg(x,a,y),y},Da.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(kg(x,a,y),y.assign(x.Ps(y))),y},ln.Object.defineProperties(Da.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}}}),Da.prototype.getMultiTouchDocumentPoint=Da.prototype.Bz,Da.prototype.getMultiTouchViewPoint=Da.prototype.So,Da.className="InputEvent";function Fl(){this.H=null,this.xa="",this.ar=this.Lr=null}Fl.prototype.copy=function(){var a=new Fl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Fl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ln.Object.defineProperties(Fl.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}}}),Fl.className="DiagramEvent";function Bo(){this.Fm=Mo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Bo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Bo.prototype.copy=function(){var a=new Bo;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=Ze(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ze(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ze(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ze(y)&&typeof y.J=="function"?y.J():y,a},Bo.prototype.qb=function(a){a.classType===Bo&&(this.change=a)},Bo.prototype.toString=function(){var a="";return a=this.change===ka?a+"* ":this.change===Mo?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===ka?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=yr(this.object)),this.oldValue!==null&&(a+=" old: "+yr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+yr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Bo.prototype.I=function(a){return a?this.oldValue:this.newValue},Bo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Bo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Bo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Bo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Bo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ln.Object.defineProperties(Bo.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===ka&&(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}}}),Bo.prototype.redo=Bo.prototype.redo,Bo.prototype.canRedo=Bo.prototype.canRedo,Bo.prototype.undo=Bo.prototype.undo,Bo.prototype.canUndo=Bo.prototype.canUndo,Bo.prototype.getParam=Bo.prototype.Dz,Bo.prototype.getValue=Bo.prototype.I,Bo.prototype.clear=Bo.prototype.clear;var ka=new Ee(Bo,"Transaction",-1),Mo=new Ee(Bo,"Property",0),Xo=new Ee(Bo,"Insert",1),ua=new Ee(Bo,"Remove",2);Bo.className="ChangedEvent",Bo.Transaction=ka,Bo.Property=Mo,Bo.Insert=Xo,Bo.Remove=ua;function pa(){this.o=new an().freeze(),this.xa="",this.j=!1}pa.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()}},ln.Object.defineProperties(pa.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}}}),pa.prototype.optimize=pa.prototype.ak,pa.prototype.redo=pa.prototype.redo,pa.prototype.canRedo=pa.prototype.canRedo,pa.prototype.undo=pa.prototype.undo,pa.prototype.canUndo=pa.prototype.canUndo,pa.prototype.clear=pa.prototype.clear,pa.className="Transaction";function Yo(){this.Pt=new sn,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}Yo.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&&Qn("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}Lt.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()}},Yo.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Qn("Change not within a transaction: "+x.toString()))}},Yo.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},ln.Object.defineProperties(Yo.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},ln.Object.defineProperties(Dr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Me&&(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}}}),Dr.prototype.startTransaction=Dr.prototype.Ea,Dr.className="Tool";function lo(){Dr.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 Yt(2,2).ja(),this.Ha=5e3,this.ia=Qs,this.u=vu,this.Mp=this.j=null,this.zj=-1}Te(lo,Dr),lo.prototype.initializeStandardTools=function(){},lo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Vr&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},lo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Hs&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Hs)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,tt=null;x.fromNode===null&&(z=Ao(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=Ao(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),b.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):ef(b,tt,z,ot,rt):ef(b,null,null,null,null)}}}}Wo.prototype.doDragOver=function(){};function Ka(a,y){var x=a.diagram;a.dragsLink&&qr(a,!0),gl(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 tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;iu(a,b,z),z=ml(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Wa!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Kn&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Wa!==null){for(a=oe.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Kn&&Fd(x,E,a);oe.free(a)}}}function iu(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof er||(x=a.mouseDrop,x!==null&&x(y))}function Fd(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 xn},!0,function(b){return b instanceof xn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Wo.prototype.doDropOnto=function(){},Wo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(pl(this,!1),mf(a,this.copiedParts),wa(this,this.copiedParts,!1),id(a,this.copiedParts)):this.mayMove()?(Po(this),wa(this,this.draggedParts,!0)):this.mayDragOut()?(pl(this,!1),wa(this,this.copiedParts,!1)):Po(this),Ja(this,a.lastInput.documentPoint))}},Wo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Po(this),pl(this,!0),mf(a,this.copiedParts),wa(this,this.copiedParts,!1),id(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Po(this),this.mayMove()&&(wa(this,this.draggedParts,!0),Ja(this,a.lastInput.documentPoint))),this.Ym=!0,Ka(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&hg(this),a.Ya(),id(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Wo.prototype.simulatedMouseMove=function(a,y,x){if(Wa===null)return!1;var E=Wa.diagram;x instanceof Me||(x=null);var b=Ju;return x!==b&&(b!==null&&b!==E&&(b.ug(),Wa.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Ju=x,x!==null&&x!==E&&(bu(),b=x.toolManager.findTool("Dragging"),b!==null&&(Gs.contains(b)||Gs.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&&(0tt&&(tt=st),ut>rt&&(rt=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,rt-b),E=z.x+z.width/2,b=z.y+z.height/2,oe.free(z),z=a.Fr,tt=new Ae,rt=Dt.alloc(),ot=y.iterator;ot.next();)st=ot.value,st instanceof xn&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,Nh(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)st=y.value,st.Zc()&&st.canCopy()&&(ot=x.I(st),ot!==null&&(st=st.location,rt.h(z.x-(E-st.x),z.y-(b-st.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Dt.free(rt),a.copiedParts=tt,yu(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Wo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Wo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Dt},ln.Object.defineProperties(Wo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Wo.prototype.getDraggingSource=Wo.prototype.Az;var Wa=null,Ju=null;Wo.className="DraggingTool",Gs=new an,Ln("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),lo.prototype.doCancel=function(){Wa!==null&&Wa.doCancel(),Dr.prototype.doCancel.call(this)};function Zr(){Dr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new xn,y=new ar;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ar,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Kn,y=new ar,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=pe,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Kn,y=new ar,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=pe,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 Ae,this.Of=this.gj=this.Pf=null}Te(Zr,Dr),Zr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Zr.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Yt.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Yt.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=$n,z=Dt.alloc(),x.location=y.ga($n,z),Dt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Zr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=pe,y.fromSpot=wi,y.toSpot=wi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Zr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Zr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Kn){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)}},Zr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Kn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Kn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Zr.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(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof Kn){var ot=tt.ga($n,Dt.alloc()),st=x.x-ot.x,ut=x.y-ot.y;Dt.free(ot),ot=st*st+ut*ut,otx){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},Zr.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},Zr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Zr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Kn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Kn))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},Zr.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)},Zr.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 sn;return E.add(a),Xr(this,x,y,E)};function Xr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Xr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Xr(a,y.labeledLink,x,E))))}Zr.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!==Ac){if(E===Hg){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!ho(this,a,y,x,!0)}if(E===Gg){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!ho(this,a,y,x,!0)}if(E===zg)return a===y?a=!0:(E=new sn,E.add(y),a=$o(this,E,a,y,x)),!a;if(E===jg)return!ho(this,a,y,x,!1);if(E===Wg)return a===y?a=!0:(E=new sn,E.add(y),a=ns(this,E,a,y,x)),!a}return!0};function ho(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 tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&ho(a,tt,x,E,b)))return!0}return!1}function $o(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 tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&$o(a,y,tt,E,b)))return!0}return!1}function ns(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 tt=z.value;if(tt!==b){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&ns(a,y,rt,E,b))return!0}}return!1}ln.Object.defineProperties(Zr.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}}}),Zr.className="LinkingBaseTool";function hs(){Zr.call(this),this.name="Linking",this.V={},this.F=null,this.K=Yh,this.Xd=null}Te(hs,Zr),hs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},hs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Kn)))return null;var x=this.direction;if(x===Yh||x===Hp){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===Yh||x===Gp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},hs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Kn&&(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 Kn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},hs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},hs.prototype.doStop=function(){Zr.prototype.doStop.call(this),this.startObject=null},hs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof Kn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=rt,b=tt):(y=rt,x=tt,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?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,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)}}},hs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof xn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},hs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},hs.prototype.doNoLink=function(){},ln.Object.defineProperties(hs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Yh=new Ee(hs,"Either",0),Hp=new Ee(hs,"ForwardsOnly",0),Gp=new Ee(hs,"BackwardsOnly",0);hs.className="LinkingTool",hs.Either=Yh,hs.ForwardsOnly=Hp,hs.BackwardsOnly=Gp;function ol(){Zr.call(this),this.name="Relinking";var a=new ar;a.figure="Diamond",a.desiredSize=Ie,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ar,a.figure="Diamond",a.desiredSize=Ie,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new oe}Te(ol,Zr),ol.prototype.updateAdornments=function(a){if(a!==null&&a instanceof xn){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)}},ol.prototype.makeAdornment=function(a,y){var x=new Vr;return x.type=fn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ol.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ol.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Vr&&x.adornedPart instanceof xn))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 t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof fn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ss.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},ss.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))},ss.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ss.prototype.stopTransaction=function(){var a=this.diagram,y=Dr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ss.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ss.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,Dt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Dt.free(b)}},ss.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,Dt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Dt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ss.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 er){var E=new an;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new at;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()}},ss.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=$n);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,st=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Dt.alloc(),se.No(a.x,a.y,rt,ot,b.width,b.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=st-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.height=Math.max(Math.min(vt.y-ot,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=st-a.width)):(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=st-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.height=Math.max(Math.min(vt.y-ot,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-ot,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))),Dt.free(vt),a},ss.prototype.computeReshape=function(){var a=tn;return this.adornedObject instanceof ar&&(a=Lv(this.adornedObject)),!(a===xi||this.diagram.lastInput.shift)},ss.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},ss.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)},xs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Dt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},xs.prototype.stopTransaction=function(){var a=this.diagram,y=Dr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},xs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},xs.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},xs.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,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()}},xs.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},ln.Object.defineProperties(xs.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Vr))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 Vr)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),xs.className="RotatingTool",Ln("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Uh(){Dr.call(this),this.name="ClickSelecting"}Te(Uh,Dr),Uh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Uh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Uh.className="ClickSelectingTool";function Tl(){Dr.call(this),this.name="Action",this.pk=null}Te(Tl,Dr),Tl.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},Tl.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Tl.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Tl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Tl.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Tl.prototype.doStop=function(){this.pk=null},Tl.className="ActionTool";function mh(){Dr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Dt(0,0)}Te(mh,Dr),mh.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},mh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},mh.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Ni)x.Zc()&&(Rl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Ze(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Dt.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Dt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},ln.Object.defineProperties(mh.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),mh.className="ClickCreatingTool";function vl(){Dr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Ni;a.layerName="Tool",a.selectable=!1;var y=new ar;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Te(vl,Dr),vl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Ho.prototype.doStart=function(){yh=this,this.textBlock!==null&&this.doActivate()},Ho.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 No&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=gc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new oe(this.textBlock.ga(Ti),this.textBlock.ga(Ui));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Ho.prototype.doCancel=function(){this.stopTool()},Ho.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ho.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xu)},Ho.prototype.acceptText=function(a){switch(a){case xu:this.qa===Dd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===gc||this.qa===mc||this.qa===pc)&&(this.qa=fg,cg(this));break;case rf:case fc:case of:(fc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===gc||this.qa===mc||this.qa===pc)&&(this.qa=fg,cg(this))}};function cg(a){var y=a.textBlock,x=a.diagram,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=mc,a.doError(b,z))}}Ho.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)},Ho.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ho.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Td,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ho.prototype.doStop=function(){yh=null},Ho.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)))},Ho.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ln.Object.defineProperties(Ho.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)}}}),Ho.prototype.measureTemporaryTextBlock=Ho.prototype.Lx;var rf=new Ee(Ho,"LostFocus",0),xu=new Ee(Ho,"MouseDown",1),of=new Ee(Ho,"Tab",2),fc=new Ee(Ho,"Enter",3),$0=new Ee(Ho,"SingleClick",0),Nd=new Ee(Ho,"SingleClickSelected",1),af=new Ee(Ho,"DoubleClick",2),Td=new Ee(Ho,"StateNone",0),gc=new Ee(Ho,"StateActive",1),pc=new Ee(Ho,"StateEditing",2),fg=new Ee(Ho,"StateValidating",3),mc=new Ee(Ho,"StateInvalid",4),Dd=new Ee(Ho,"StateValidated",5),yh=null;Ho.className="TextEditingTool",Ho.LostFocus=rf,Ho.MouseDown=xu,Ho.Tab=of,Ho.Enter=fc,Ho.SingleClick=$0,Ho.SingleClickSelected=Nd,Ho.DoubleClick=af,Ho.StateNone=Td,Ho.StateActive=gc,Ho.StateEditing=pc,Ho.StateValidating=fg,Ho.StateInvalid=mc,Ho.StateValidated=Dd,Ln("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function _s(a){yc||(gg(),yc=!0),this.H=Tu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=qu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new sn,this.ce=new rs,this.ce.Yd=this,this.Ei=new sn,this.pu=new sn,this.Sr=new sn,this.pr=new sn,a&&Object.assign(this,a)}_s.prototype.Xe=function(a){this.H=a},_s.prototype.canStart=function(){return!0};function Nu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),os(a.H),a.zb=!0)}function sf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===qu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===pg&&y.vc.clear(),a.Qw=!!(a.Pk===Sc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),xc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==ps&&E!==null&&(delete E.start.scale,delete E.end.scale),Nn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ds(x),xg(x),a.zb=!1,y.start(),y.bc&&(Sh(a),x.Ya(),mg(y,0),Sl(x,!0),Jh(a),x.R("AnimationStarting",a)))}))}}function _u(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function lf(a,y,x,E){a.isTicking||_u(a)||y instanceof xn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Lt=_s.prototype,Lt.fv=function(a){return this.ce.fv(a)},Lt.Xu=function(a){return this.ce.Xu(a)};function uf(a,y){function x(){if(0z?z+=360:ot+=360),z=b(x,z,ot-z,E)%360,tt=b(x,tt,st-tt,E),rt=b(x,rt,ut-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function gg(){function a(x,E,b,z,tt,rt){x.position=new Dt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new Ae;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,rt){tta&&Jn(a,">= 1",_s,"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}}}),_s.prototype.stopAnimation=_s.prototype.Cc;var vc=null,yc=!1,qu=new Ee(_s,"Default",1),Sc=new Ee(_s,"AnimateLocations",2),pg=new Ee(_s,"None",3);_s.className="AnimationManager",_s.defineAnimationEffect=function(a,y){yc||(gg(),yc=!0),vc.add(a,y)},_s.Default=qu,_s.AnimateLocations=Sc,_s.None=pg;function rs(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Bd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=bn,this.vc=new Ae,this.Tt=new Ae,this.yl=new sn,this.Ut=new sn,this.dw=Ch,a&&Object.assign(this,a)}rs.prototype.suspend=function(){this.Xk=!0},rs.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Pc(this,!0),Sh(this.Yd),Sl(this.H),Jh(this.Yd),this.H.redraw()};function xc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,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 mg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof ce&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var ot=vc,st;for(st in tt)st==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(st)===null||ot.get(st)(z,rt[st],tt[st],a.Lp,y,x,a)}}}Lt.stop=function(){return this.bc?(this.Ml(!0),this):this},Lt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Sh(x);for(var 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=vc;E.next();){var tt=E.key,rt=E.value,ot=b?rt.end:rt.start,st=b?rt.start:rt.end,ut=rt.Ku,ft;for(ft in st)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:st[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof Ni&&(tt.location=ut.location),rt.nv&&tt instanceof Ni&&tt.Zb(!1)}if(y.As.clear(),wc(y,!1),y.Ya(),y.N(),Sl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Sl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Jh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),xc(this,null),x.Ml(this),y.$b())}},Lt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof er&&(E=y.placeholder),E!==null?(x=E.ga(Ti),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Dt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof er)for(a=a.memberParts;a.next();)E=a.value,E instanceof Kn&&this.Cj(E,y)},Lt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof er&&(x=y.placeholder),x!==null){var E=x.ga(Ti);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 er)for(a=a.memberParts;a.next();)E=a.value,E instanceof Kn&&this.Aj(E,y)}},Lt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ln.Object.defineProperties(rs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Jn(a,">= 1",rs,"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 Kp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}rs.className="Animation",rs.EaseLinear=function(a,y,x,E){return x*a/E+y},rs.EaseInOutQuad=Bd,rs.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},rs.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},rs.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},rs.EaseOutExpo=Kp;function qh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}qh.className="AnimationState";function Yl(a,y,x){this.xd=null,this.rf=a,this.so=x||vg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=$h))}Yl.prototype.copy=function(){var a=new Yl(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 Yp(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))}ln.Object.defineProperties(Yl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var vg=new Ee(Yl,"Default",1),$h=new Ee(Yl,"Immediate",2),Od=new Ee(Yl,"Bundled",3);Yl.className="AnimationTrigger",Yl.Default=vg,Yl.Immediate=$h,Yl.Bundled=Od;function Ya(a){Zi(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)}Lt=Ya.prototype,Lt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof er?b++:ot instanceof Kn?E++:ot instanceof xn?z++:ot instanceof Vr?tt++:x++}if(rt="",0x.Oq||rt.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&&(ha(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ha(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),ha(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))}},Lt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Mo,a,this,y,x,E,b)},Lt.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)),df(this,a,y),a},Lt.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 df(a,y,x){if(y=Xp(a,y,x),x instanceof er&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;ttE&&rt.containingGroup===x&&(E=tt,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,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rtE)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot=E){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rta||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` `+x.value.toString(a-1);return y};function Sg(a,y){if(la){if(y!=null||qt("Diagram setup requires an argument DIV."),a.Ka!==null&&qt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Nn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:qt("No DIV or DIV id supplied: "+y),a.Ka===null&&qt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&qt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Nn.ResizeObserver){var x=wr(function(){a.$b()},250);a.ol=new Nn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Nn.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=Nn.go;var b=new Il(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Nn.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),Ag(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Il(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,la){b=Si("div");var z=Si("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=$p,b.addEventListener("pointerdown",tm),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=wr(function(){a.Yh=null,a.N()},300),a.Ov=wr(function(){xg(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=yl(a,tt,!0);rt.bubbles=!0;var ot=0,st=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0Math.abs(tt.deltaY)?-ot:-st):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0Math.abs(tt.wheelDeltaY)?-ot:-st):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0rt||Math.abs(st.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Ul(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Lg(a,tt,!1,!1,!1,rt[1]!==null);var ot=Nn.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var st=a,ut=tt;ot&&ot.H&&(ut=tt,st=ot.H),rt.targetDiagram=st,Rd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),Ul(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Lg(a,tt,!1,!0,!0,!1);var st=Nn.document.elementFromPoint(tt.clientX,tt.clientY)||null;st!==null&&st.shadowRoot!==void 0&&st.shadowRoot!==null&&(st=st.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),st!==null&&st.H instanceof Me&&st.H!==a&&Rd(st.H,tt,ot),st===null&&(st=tt.target),Rd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=Cg(tt,st),ot.targetObject=null,a.doMouseUp(),Ul(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=E.Z["d"+bc[1]+bc[2]+"wI"+Vd.slice(1,5)]["b"+Tx.slice(1,y)](E.Z,Fc,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Me.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Me.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Nn,"resize",a.Ov,!1)}function Ds(a){30Pt&&(this.position=Vt.h(-(y.scrollWidth-this.Aa)+Rt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rtEt&&(this.position=Vt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Dt.free(Vt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,Pt=b.right,z=E.bottom,Et=b.bottom,tt=E.x,ft=b.x,rt=E.y,E=b.y,vt>=ot&&tt>=ft&&ut<=Pt&&(x.style.width="1px"),yt>=st&&rt>=E&&z<=Et&&(x.style.height="1px"))}},Me.prototype.computeBounds=function(a){return a===void 0&&(a=new oe),os(this),Pg(this,a)};function Pg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===ad?(y=ot>rt?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Me.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ch,this.scale=Id(this,al),a!==Ch&&(Bl(this,!1),wg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Lt=Me.prototype,Lt.BA=function(a,y){y===void 0&&(y=al);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===al||y===ad)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===ad?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 Dt(a.x,a.y)}},Lt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Dt(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))},Lt.zz=function(a){if(a instanceof ce){this.eq=a;var y=Dt.alloc();this.fq=this.op(a.ga(Ti,y)),Dt.free(y)}else this.eq=null,this.fq=gi};function wg(a,y,x,E,b,z){var tt=Dt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var st=Dt.alloc();st=a.eq.ga(Ti,st),rt=st.x-a.fq.x/a.scale,ot=st.y-a.fq.y/a.scale,b=wi,Dt.free(st)}(z||a.scrollMode===Ch)&&(b.sb()&&(x>y.width&&(rt=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(ot=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?rt=y.left:rty.top?ot=y.top:oty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new sn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof er&&E.U&65536&&(E.U=E.U^65536)})}}Lt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof er||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof er&&x.isVisible()&&kc(this,x);for(a.reset();a.next();)x=a.value,x instanceof xn&&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 Vr&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function kc(a,y){for(var x=ti(),E=ti(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof er?(ll(z)||Cs(z)||ld(z))&&kc(a,z):z instanceof xn?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;bhe&&(Rt=jn.left,Qt=jn.right),Vt.height>ke&&(_t=jn.top,te=jn.bottom)):(Rt=jn.left,Qt=jn.right,_t=jn.top,te=jn.bottom);var fi=Vt.width+Rt+Qt,ei=Vt.height+_t+te;jn=a.scale;var Sn=fi>ot/jn,_e=ei>st/jn;if(!(z||a.gf||a.Be||Sn||_e))return!0;Rt=Vt.x-Rt,ot=ut.x,Qt=Vt.right+Qt,st=ut.right+tt,_t=Vt.y-_t;var $i=ut.y;Vt=Vt.bottom+te,ut=ut.bottom+rt;var Yi="1px";if(te="1px",a.scrollMode===Ch&&(Sn||_e)&&(Sn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Sn=1,Rt+1st+1&&(Sn=Math.max((Qt-st)*jn+a.Aa,Sn)),he+tt+1ut+1&&(Sn=Math.max((Vt-ut)*jn+a.ya,Sn)),ke+rt+1st+1&&(tt=Math.max((Qt-st)*jn+a.Aa,tt)),he+1ut+1&&(rt=Math.max((Vt-ut)*jn+tt,rt)),ke+1st+1&&(y=a.position.x*jn)),a.tn)switch(a.bu){case"negative":y=-(Pt.scrollWidth-y-Pt.clientWidth);break;case"reverse":y=Pt.scrollWidth-y-Pt.clientWidth}return Pt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ke+1ut+1&&(Pt.scrollTop=a.position.y*jn)),ot=a.Aa,st=a.ya,Pt.style.width=ot+(a.gf?a.Db:0)+"px",Pt.style.height=st+(a.Be?a.Db:0)+"px",x!==ot||E!==st||a.animationManager.zb?(x=oe.allocAt(b,ft,vt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,jn,z),oe.free(x),!1):!0}Lt=Me.prototype,Lt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&qt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&qt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Xo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Lt.oi=function(a){this.partManager.oi(a);var y=this;Jd(a,function(x){Hd(y,x)}),(a instanceof Vr||a instanceof er&&a.placeholder!==null)&&a.v(),a.data!==null&&Jd(a,function(x){sy(y.partManager,x)}),Cs(a)!==!0&&ld(a)!==!0||this.De.add(a),R1(a,!0,this),j1(a)?(a.actualBounds.w()&&this.N(qd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(qd(a,a.actualBounds)),this.$b()},Lt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Jd(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),j1(a)?(a.actualBounds.w()&&this.N(qd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(qd(a,a.actualBounds)),this.$b()},Lt.remove=function(a){Eg(this,a,!0)};function Eg(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(ua,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Lt.Is=function(a,y){if(y===void 0&&(y=!1),qn(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Lt.Cy=function(a,y){bg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ua,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;zE&&this.Ya(),this},Lt.kA=function(a){if(a.diagram!==this&&qt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(ua,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Lt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Lt.Yw=function(a){return this.pf===null&&(this.pf=new an),this.pf.add(a),this.model.Pe(a),this},Lt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Lt.Pe=function(a){return this.zg===null&&(this.zg=new an),this.zg.add(a),this},Lt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Lt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ka&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;Eft.Pa.indexOf(yt)&&ft.oi(vt,yt,Pt):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ft.pc(Pt?vt:-1,yt,Pt)))}else ft instanceof Me?typeof vt=="number"&&yt instanceof Ya&&(y?(yt.Xe(this),this.Wa.Gb(vt,yt)):this.Wa.mb(vt)):qt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==ka&&qt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Me.prototype.Ea=function(a){return this.undoManager.Ea(a)},Me.prototype.eb=function(a){return this.undoManager.eb(a)},Me.prototype.Kf=function(){return this.undoManager.Kf()},Me.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}},Me.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Me.prototype.rp=function(){this.partManager.rp()};function Ng(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,wu(a),a.N(),a.Ee=!0,E.zb&&(_u(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,wu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,st=a.contentAlignment;isNaN(rt)&&(st.$c()?st.Hf(Or)?rt=0:st.Hf(Er)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(ot)&&(st.$c()?st.Hf(Wr)?ot=0:st.Hf(eo)&&(ot=tt-1):ot=st.sb()?st.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Dt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Dt.free(z),a.Ca=x,wu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Bl(a,!1),E.zb&&(_u(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Me.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!==ps||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof lo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Zl(b,this)),this.vb||this.invalidateViewport(a,y),Pu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Yt.alloc(),b=1,z=1,tt=x.O.s,rt=tt.length,ot=0;otut||(pv(st.figure)?z=z*ut/se.vx(z,ut):b=b*ut/se.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=oe.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){oe.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,oe.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Dt.alloc(),se.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Yt.free(E),x.part.location=y,Dt.free(y)}}Me.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||Nu(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Ig(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),os(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||sf(z),a.aa=x}}}function Ig(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Ig(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),kc(a,y),b.isValidLayout=!0):a.xh=!0)}}Lt.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 ev(a){function y(b){var z=b.toLowerCase(),tt=new an;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new Ae,E=new Ae;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 rm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function yf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;qt("Unknown DiagramEvent name: "+y)}Lt.Bj=function(a,y){return a=yf(this,a),a!==null&&a.add(y),this},Lt.am=function(a,y){a=yf(this,a),a!==null&&a.remove(y)},Lt.R=function(a,y,x){var E=yf(this,a),b=new Fl;if(b.diagram=this,a=rm(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=oe.allocAt(0,0,E.width*b,E.height*b);var z=Dt.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(bn)||(y=new Dt(y.x+z.x/b,y.y+z.y/b)),oe.free(E),Dt.free(z),y},Lt=Me.prototype,Lt.Cs=function(){return null},Lt.av=function(){return null},Lt.bs=function(a,y){this.pj.add(a,y)},Lt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof er&&(y.$p=null)})};function Mc(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-st>ot?y(x,b,rt):Nn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var rt=a,ot=x.callbackTimeout||300,st=+new Date;return Nn.requestAnimationFrame(function(){E()}),null}Lt.Wz=function(a){return la?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Lt.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Lt.Xz=function(a,y,x){var E=am(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 Vd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Vd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&qt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function am(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&qt("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 tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Yt(1/0,1/0):new Yt(2e3,2e3));var rt=y.position||null,ot=y.parts||null,st=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,yt=y.elementFinished||null,Pt=y.showTemporary;Pt===void 0&&(Pt=!ft),y=y.showGrid,y===void 0&&(y=Pt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof st=="number"?st=new ui(st):st instanceof ui||qt("MakeImage padding must be a Margin or a number."),st.left=Math.max(st.left,0),st.right=Math.max(st.right,0),st.top=Math.max(st.top,0),st.bottom=Math.max(st.bottom,0),a.ib.Vc(!0),ft=new Il(null,vt,void 0,!0);var Et=ft.context;if(!(b||z||ot||rt))return ft.width=a.Aa+Math.ceil(st.left+st.right),ft.height=a.ya+Math.ceil(st.top+st.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=yt,ff(a,E.context,st,new Yt(ft.width,ft.height),a.Ca,a.pa,ot,ut,Pt,y),E.context):(a.Xm=!1,ff(a,Et,st,new Yt(ft.width,ft.height),a.Ca,a.pa,ot,ut,Pt,y),a.Xm=!0,ft.context);var Vt=a.Pp,Rt=a.documentBounds.copy();if(Rt.Fv(a.yb),Pt)for(var Qt=a.Wa.s,_t=Qt.length,te=0;te<_t;te++){var he=Qt[te];if(he.visible&&he.isTemporary){he=he.Pa.s;for(var ke=he.length,jn=0;jnVt?(z=Vt,b=Rt.width,Rt=Rt.height):(b=tt.width,Rt=tt.height)):(b=Rt.width*z,Rt=Rt.height*z):(z=Vt,b=Rt.width,Rt=Rt.height),st!==null?(b+=rt,Rt+=_t):st=new ui(0),tt!==null&&(Vt=tt.width,tt=tt.height,isNaN(Vt)&&(Vt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Vt)&&(b=Math.min(b,Vt)),isFinite(tt)&&(Rt=Math.min(Rt,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(Rt),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=yt,ff(a,E.context,st,new Yt(Math.ceil(b),Math.ceil(Rt)),z,Qt,ot,ut,Pt,y),E.context):(a.Xm=!1,ff(a,Et,st,new Yt(Math.ceil(b),Math.ceil(Rt)),z,Qt,ot,ut,Pt,y),a.Xm=!0,ft.context)}ln.Object.defineProperties(Me.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Cu(this,Nn.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Cu(this,Nn.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(Nn,"resize",this.Ov,!1),this.removeEventListener(Nn,"wheel",this.$j,!0),Tu===this&&(Tu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Sg(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1a&&Jn(a,">= 0",Me,"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&&Jn(a,">= 0",Me,"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",Me,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||nm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&qt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=yg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Nu(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Tg(this.cc.type);for(var b=0;bthis.scale&&(this.scale=a)):Jn(a,"> 0",Me,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Me,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Bl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ui(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&qt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Lh&&a!==Ma&&a!==Cf&&qt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Yt(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 ui(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ln.Object.defineProperties(Me,{licenseKey:{get:function(){return Zg.jc()},set:function(a){Zg.add(a.replace(/\s/g,""))}},version:{get:function(){return Zd}}}),Me.prototype.makeImageData=Me.prototype.Jx,Me.prototype.makeImage=Me.prototype.Wz,Me.prototype.cacheGroupExternalLinks=Me.prototype.Fu,Me.prototype.addRenderer=Me.prototype.bs,Me.prototype.makeSVG=Me.prototype.av,Me.prototype.makeSvg=Me.prototype.Cs,Me.prototype.stopAutoScroll=Me.prototype.ug,Me.prototype.doAutoScroll=Me.prototype.gs,Me.prototype.isUnoccupied=Me.prototype.Yj,Me.prototype.raiseDiagramEvent=Me.prototype.R,Me.prototype.removeDiagramListener=Me.prototype.am,Me.prototype.addDiagramListener=Me.prototype.Bj,Me.prototype.findTreeRoots=Me.prototype.yz,Me.prototype.layoutDiagram=Me.prototype.Uz,Me.prototype.findTopLevelGroups=Me.prototype.qz,Me.prototype.findTopLevelNodesAndLinks=Me.prototype.rz,Me.prototype.ensureBounds=Me.prototype.Va,Me.prototype.findLinksByExample=Me.prototype.ls,Me.prototype.findNodesByExample=Me.prototype.ms,Me.prototype.findLinkForData=Me.prototype.Kc,Me.prototype.findNodeForData=Me.prototype.ii,Me.prototype.findPartForData=Me.prototype.Lc,Me.prototype.findLinkForKey=Me.prototype.findLinkForKey,Me.prototype.findNodeForKey=Me.prototype.Vb,Me.prototype.findPartForKey=Me.prototype.findPartForKey,Me.prototype.rebuildParts=Me.prototype.Wd,Me.prototype.transformViewToDoc=Me.prototype.Ps,Me.prototype.transformRectDocToView=Me.prototype.zA,Me.prototype.transformDocToView=Me.prototype.op,Me.prototype.centerRect=Me.prototype.es,Me.prototype.scrollToRect=Me.prototype.tv,Me.prototype.scroll=Me.prototype.scroll,Me.prototype.highlightCollection=Me.prototype.Jz,Me.prototype.highlight=Me.prototype.Iz,Me.prototype.selectCollection=Me.prototype.rA,Me.prototype.select=Me.prototype.select,Me.prototype.updateAllRelationshipsFromData=Me.prototype.rp,Me.prototype.updateAllTargetBindings=Me.prototype.updateAllTargetBindings,Me.prototype.commit=Me.prototype.commit,Me.prototype.rollbackTransaction=Me.prototype.Kf,Me.prototype.commitTransaction=Me.prototype.eb,Me.prototype.startTransaction=Me.prototype.Ea,Me.prototype.raiseChanged=Me.prototype.g,Me.prototype.raiseChangedEvent=Me.prototype.cb,Me.prototype.removeChangedListener=Me.prototype.ik,Me.prototype.addChangedListener=Me.prototype.Pe,Me.prototype.removeModelChangedListener=Me.prototype.mA,Me.prototype.addModelChangedListener=Me.prototype.Yw,Me.prototype.findLayer=Me.prototype.Qj,Me.prototype.removeLayer=Me.prototype.kA,Me.prototype.addLayerAfter=Me.prototype.Cy,Me.prototype.addLayerBefore=Me.prototype.Ww,Me.prototype.addLayer=Me.prototype.Al,Me.prototype.moveParts=Me.prototype.moveParts,Me.prototype.copyParts=Me.prototype.Kj,Me.prototype.removeParts=Me.prototype.Is,Me.prototype.remove=Me.prototype.remove,Me.prototype.add=Me.prototype.add,Me.prototype.clearDelayedGeometries=Me.prototype.bx,Me.prototype.setProperties=Me.prototype.nm,Me.prototype.attach=Me.prototype.Du,Me.prototype.set=Me.prototype.set,Me.prototype.resetInputOptions=Me.prototype.Sx,Me.prototype.setInputOption=Me.prototype.sA,Me.prototype.getInputOption=Me.prototype.Ql,Me.prototype.resetRenderingHints=Me.prototype.Tx,Me.prototype.setRenderingHint=Me.prototype.Xx,Me.prototype.getRenderingHint=Me.prototype.Gf,Me.prototype.maybeUpdate=Me.prototype.bd,Me.prototype.requestUpdate=Me.prototype.$b,Me.prototype.delayInitialization=Me.prototype.Xy,Me.prototype.isUpdateRequested=Me.prototype.Pz,Me.prototype.invalidateDocumentBounds=Me.prototype.Ya,Me.prototype.findObjectsNear=Me.prototype.og,Me.prototype.findPartsNear=Me.prototype.mz,Me.prototype.findObjectsIn=Me.prototype.Cf,Me.prototype.findPartsIn=Me.prototype.ux,Me.prototype.findObjectsAt=Me.prototype.ji,Me.prototype.findPartsAt=Me.prototype.lz,Me.prototype.findObjectAt=Me.prototype.ic,Me.prototype.findPartAt=Me.prototype.Ol,Me.prototype.focusObject=Me.prototype.zz,Me.prototype.alignDocument=Me.prototype.Jy,Me.prototype.zoomToRect=Me.prototype.BA,Me.prototype.zoomToFit=Me.prototype.zoomToFit,Me.prototype.diagramScroll=Me.prototype.kx,Me.prototype.focus=Me.prototype.focus;var wf=new Ae,sm=null,la=Nn.document!==void 0,Gd=null,od="",ps=new Ee(Me,"None",0),al=new Ee(Me,"Uniform",1),ad=new Ee(Me,"UniformToFill",2),Ac=new Ee(Me,"CycleAll",10),zg=new Ee(Me,"CycleNotDirected",11),jg=new Ee(Me,"CycleNotDirectedFast",12),Wg=new Ee(Me,"CycleNotUndirected",13),Hg=new Ee(Me,"CycleDestinationTree",14),Gg=new Ee(Me,"CycleSourceTree",15),Ch=new Ee(Me,"DocumentScroll",1),Ec=new Ee(Me,"InfiniteScroll",2),Lh=new Ee(Me,"TreeParentCollapsed",21),Ma=new Ee(Me,"AllParentsCollapsed",22),Cf=new Ee(Me,"AnyParentsCollapsed",23),Zg=new an,Zd="2.3.10",Vd="image",Fc=null,lm=!1;function ds(){if(la){var a=Nn.document.createElement("canvas"),y=a.getContext("2d"),x=vi("7ca11abfd022028846");y[x]=vi("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",bi.Dx+"4ae6247590da4bb21c324ba3a84e385776",Un.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",se.za],b=1;5>b;b++)y[vi("7ca11abfd7330390")](vi(E[b-1]),10,15*b);for(y[x]=vi("39f046ebb36e4b"),x=1;5>x;x++)y[vi("7ca11abfd7330390")](vi(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Un.prototype.Cd=Un.prototype.Eu),Fc=a}}Me.className="Diagram",Me.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Nn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Me?y.H:null},Me.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},Me.useDOM=function(a){la=a?Nn.document!==void 0:!1},Me.isUsingDOM=function(){return la},Me.None=ps,Me.Uniform=al,Me.UniformToFill=ad,Me.CycleAll=Ac,Me.CycleNotDirected=zg,Me.CycleNotDirectedFast=jg,Me.CycleNotUndirected=Wg,Me.CycleDestinationTree=Hg,Me.CycleSourceTree=Gg,Me.DocumentScroll=Ch,Me.InfiniteScroll=Ec,Me.TreeParentCollapsed=Lh,Me.AllParentsCollapsed=Ma,Me.AnyParentsCollapsed=Cf;function um(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Kd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Nn[vi("76a715b2f73f148a")][vi("72ba13b5")]||"";if(a.Rc=!0,la){var E=Me[vi("76a115b6ed251eaf4692")];if(E)for(var b=Zg.iterator;b.next()&&(E=b.value,E=vi(E).split(vi("39e9")),!(6>E.length));){var z=vi(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=vi(bi[vi("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=Nn[vi("74a900bae4370f8b51")][vi("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[vi("73a612b6fb191d")](vi("3aad1ab6e022098b4dc4")),z=vi(E[2]),-1tt&&z!==vi("7da71ca0ad381e90")&&(tt=y[vi("73a612b6fb191d")](vi("76a715b2ef3e149757"))),0>tt&&(tt=y[vi("73a612b6fb191d")](vi("76a715b2ef3e149757"))),0>tt&&(tt=y[vi("73a612b6fb191d")](vi("2bfa41fdb3784bca12"))),0>tt&&(tt=x[vi("73a612b6fb191d")](vi("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttrt),!a.Rc)))break;if(z[0]==="#"){tt=Nn.document.createElement("div");for(var ot=E[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),E="",E+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[vi("79a417a0f0181a8946")]=E,Nn.document[vi("78a712aa")]){Nn.document[vi("78a712aa")][vi("7bb806b6ed32388c4a875b")](tt),ot=Nn.getComputedStyle(tt).getPropertyValue(vi("78a704b7e62456904c9b12701b6532a8"));var st=Nn.getComputedStyle(tt).getPropertyValue(vi("75b817b0ea2202"));if(Nn.document[vi("78a712aa")][vi("68ad1bbcf533388c4a875b")](tt),ot){if(tt=Nn[vi("77a902b0eb1b1e804a8a")],st==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(vi("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&&Bt(E)},x.autoScale=al,x.vb=!1,y&&Object.assign(x,y),x}Te(pt,Me),pt.prototype.computePixelRatio=function(){return 1},pt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(jd(this),this.ql===null){var x=new Il(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),wt(this)}finally{this.ta=a,this.ib=y}}}Me.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&qt("No div specified"),this.ta===null&&qt("No canvas specified"),!(this.ta instanceof Cu)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){jd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?wt(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)}}}),pt.className="Overview";function Kt(){Wo.call(this),this.j=null}Te(Kt,Wo),Kt.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))},Zt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Zt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Zt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Zt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Zt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Zt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Nu(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=gr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),sf(y)},Zt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Zt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ot){this.cg=null}a===null&&(0a&&(a+=360)),a},Lt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Lt.qs=function(a,y){return y===void 0&&(y=new Dt),y.assign(a),this.oe.Cd(y),y},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,se.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*st+ft,a=a*ot+y*ut+vt,y=x*rt+E*st+ft,x=x*ot+E*ut+vt,b.h(0,0),E=this.naturalBounds,x=se.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},ce.prototype.measure=function(a,y,x,E){if(ll(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 tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var rt=this instanceof fn;switch(Os(this,!0)){case tn:tt=b=0,rt&&(y=a=1/0);break;case hn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case Ei:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case ji:isFinite(y)&&y>E&&(tt=y),b=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;b>rt.width&&ot.widthrt.height&&ot.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||qt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),oe.free(z)},Lt=ce.prototype,Lt.eh=function(){};function ms(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 tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Os(a,!0),x===E&&z===b&&(y=tn),y){case tn:(x>E||z>b)&&(Aa(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case hn:Aa(a,!0),a.measure(E,b,0,0);break;case Ei:Aa(a,!0),a.measure(E,z,0,0);break;case ji:Aa(a,!0),a.measure(x,b,0,0)}}}Lt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),pn(a,y)||(x.oh(),this.Pn(x)))},Lt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Kn&&Z1(a,this))},Lt.gc=function(a,y){if(!xl(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 fn&&Ah(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,st=this.areaBackground,ut=this.Ma;st===null&&ut===null||a.yc(),st!==null&&(ha(this,a,st,!0,!0,ot,rt),st instanceof $r&&st.type===Cl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(st)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(ha(this,a,ut,!0,!1,ot,rt),ut instanceof $r&&ut.type===Cl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&Qa(this),st=this.part,ot=!1;var ft=0;st&&y.Gf("drawShadows")&&(ot=st.isShadowed)&&(ut=st.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var vt;if(!(vt=y.$i||!ut)){var yt=this.naturalBounds;vt=this.wh;var Pt=vt.m11,Et=vt.m21,Vt=vt.dx,Rt=vt.m12,Qt=vt.m22,_t=vt.dy,te,he=te=0;vt=te*Pt+he*Et+Vt;var ke=te*Rt+he*Qt+_t;te=yt.width+ft,he=0;var jn=te*Pt+he*Et+Vt;te=te*Rt+he*Qt+_t,he=Math.min(vt,jn);var fi=Math.min(ke,te),ei=Math.max(vt+0,jn)-he,Sn=Math.max(ke+0,te)-fi;vt=he,ke=fi,te=yt.width+ft,he=yt.height+ft,jn=te*Pt+he*Et+Vt,te=te*Rt+he*Qt+_t,he=Math.min(vt,jn),fi=Math.min(ke,te),ei=Math.max(vt+ei,jn)-he,Sn=Math.max(ke+Sn,te)-fi,vt=he,ke=fi,te=0,he=yt.height+ft,jn=te*Pt+he*Et+Vt,te=te*Rt+he*Qt+_t,he=Math.min(vt,jn),fi=Math.min(ke,te),ei=Math.max(vt+ei,jn)-he,Sn=Math.max(ke+Sn,te)-fi,vt=he,ke=fi,ft=y.viewportBounds,yt=ft.x,Pt=ft.y,vt=!(vt>ft.width+yt||yt>ei+vt||ke>ft.height+Pt||Pt>Sn+ke)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof No&&(a.font=this.font),vt){if(ke=rt.se()?rt.naturalBounds:rt.actualBounds,ei=Math.max(tt.x,ke.x),Sn=Math.max(tt.y,ke.y),ft=Math.min(tt.right,ke.right)-ei,yt=Math.min(tt.bottom,ke.bottom)-Sn,Pt=this.tb,Pt!==null&&(ei=Pt.x,Sn=Pt.y,ft=Pt.width,yt=Pt.height),ei>tt.width+tt.x||tt.x>ke.width+ke.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(ei,Sn,ft,yt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ot&&(ke=st.shadowOffset,a.Ev(ke.x*y.scale*this.scale*y.Mb,ke.y*y.scale*this.scale*y.Mb,st.shadowBlur),eh(a),a.shadowColor=st.shadowColor)}ot&&this.shadowVisible===!0?eh(a):ot&&this.shadowVisible===!1&&Iu(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),sl(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&Ua(this,rt)&&this.shadowVisible===null&&Iu(a),this.Ma!==null&&(a.yc(),Vs(this,a,st,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||Ua(this,rt))?(Xl(this,!0),this.shadowVisible===null&&Iu(a)):Xl(this,!1),this.hh(a,y),ot&&this.l&512&&eh(a),ut&&ot&&Iu(a),vt&&(a.restore(),a.Vc(this instanceof fn)),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 Ua(a,y){return y===null?!1:(Ah(y)&&(y=y.panel),(y.l&512)!==0||(y.type===fn.Auto||y.type===fn.Spot)&&y.Pb()!==a)}Lt.Dv=function(){};function sl(a,y,x,E){ha(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof $r&&a.areaBackground.type===Cl?(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 Vs(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,ot=x.height+b;ha(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof $r&&a.Ma.type===Cl?(y.beginPath(),y.rect(z-b/2,tt-b/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,rt,ot)}function cs(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;ttb)&&qt("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)&&qt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new hi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);zd(a,b)}else zd(a,y);else qt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function kh(a,y){Lf.add(a,y)}function hm(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}ln.Object.defineProperties(ce.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Tc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(hr(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&&(hr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ms},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ms&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1a||1=a&&qt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Uy(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 ar&&this.qc(),this.g("desiredSize",E,a),es(this)&&(a=this.part,a!==null&&(Go(this,a,"width"),Go(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 Yt(a,this.jd.height).freeze(),this.v(),this instanceof ar&&this.qc(),this.g("desiredSize",y,a),es(this)&&(a=this.part,a!==null&&Go(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 Yt(this.jd.width,a).freeze(),this.v(),this instanceof ar&&this.qc(),this.g("desiredSize",y,a),es(this)&&(a=this.part,a!==null&&Go(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:fe},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(),hr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Pn},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(),hr(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 ui(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&&Qa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Qa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(hr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:tn},set:function(a){this.reshapingBehavior!==a&&(hr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&qt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ws(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Jn(a,">= 0",ce,"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&&Jn(a,">= 1",ce,"columnSpan"),hr(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&&Jn(a,">= 0",ce,"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&&Jn(a,">= 1",ce,"rowSpan"),hr(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&&(hr(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 Kn||qt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Y1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:wi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Yd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Jn(a,">= 0",ce,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Yd(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),Yd(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&&Jn(a,">= 0",ce,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:wi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Yd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Jn(a,">= 0",ce,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Yd(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),Yd(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&&Jn(a,">= 0",ce,"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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(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&&(hr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ce.prototype.trigger=ce.prototype.Jv,ce.prototype.findBindingPanel=ce.prototype.ih,ce.prototype.findTemplateBinder=ce.prototype.pz,ce.prototype.setProperties=ce.prototype.nm,ce.prototype.apply=ce.prototype.apply,ce.prototype.attach=ce.prototype.Du,ce.prototype.set=ce.prototype.set,ce.prototype.isEnabledObject=ce.prototype.If,ce.prototype.isVisibleObject=ce.prototype.Ed,ce.prototype.isContainedBy=ce.prototype.rg,ce.prototype.getNearestIntersectionPoint=ce.prototype.rs,ce.prototype.getLocalPoint=ce.prototype.qs,ce.prototype.getDocumentScale=ce.prototype.Df,ce.prototype.getDocumentAngle=ce.prototype.li,ce.prototype.getDocumentBounds=ce.prototype.mi,ce.prototype.getDocumentPoint=ce.prototype.ga,ce.prototype.intersectsRect=ce.prototype.Yc,ce.prototype.containedInRect=ce.prototype.fh,ce.prototype.containsRect=ce.prototype.Re,ce.prototype.containsPoint=ce.prototype.ca,ce.prototype.raiseChanged=ce.prototype.g,ce.prototype.raiseChangedEvent=ce.prototype.cb,ce.prototype.addCopyProperty=ce.prototype.Vw;var Lf=null;ce.className="GraphObject",Lf=new Ae,kh("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=wl(fn,fn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof fn){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"},wl(ar,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new mn(0,0,2.76142374915397,2.761423749153969),spot2:new mn(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 fn&&(x=E.fb("ButtonBorder"),x instanceof ar)){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 fn&&(x=E.fb("ButtonBorder"),x instanceof ar&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof fn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof ar){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof fn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof ar){var z=x.diagram,tt=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=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof fn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof ar){var z=x.diagram,tt=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=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof fn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof ar))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),kh("TreeExpanderButton",function(){var a=wl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},wl(ar,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ie},new Sa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Sa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Vr&&(x=x.adornedPart),x instanceof Kn){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}),kh("SubGraphExpanderButton",function(){var a=wl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},wl(ar,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ie},new Sa("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Vr&&(x=x.adornedPart),x instanceof er){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}),kh("ToolTip",function(){return wl(Vr,fn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Dt(0,3),shadowBlur:5},wl(ar,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new mn(0,0,4,6),spot2:new mn(1,1,-4,-4)}))}),kh("ContextMenu",function(){return wl(Vr,fn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Dt(0,3),shadowBlur:5},new Sa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),kh("ContextMenuButton",function(){var a=wl("Button");a.stretch=Ei;var y=a.fb("ButtonBorder");return y instanceof ar&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new mn(0,0,2,3),y.spot2=new mn(1,1,-2,-2)),a}),kh("PanelExpanderButton",function(a){var y=hm(a,"COLLAPSIBLE"),x=wl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},wl(ar,{name:"ButtonIcon",strokeWidth:2},new Sa("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof ar&&(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 tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),kh("CheckBoxButton",function(a){var y=hm(a);return a=wl("Button",{desiredSize:new Yt(14,14)},wl(ar,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:hn,geometryStretch:xi,visible:!1},y!==""?new Sa("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof fn){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}),kh("CheckBox",function(a){a=hm(a),a=wl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ui(0,1,0,0)});var y=wl(fn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ui(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}),ce.None=tn=new Ee(ce,"None",0),ce.Default=nr=new Ee(ce,"Default",0),ce.Vertical=ji=new Ee(ce,"Vertical",4),ce.Horizontal=Ei=new Ee(ce,"Horizontal",5),ce.Fill=hn=new Ee(ce,"Fill",3),ce.Uniform=xi=new Ee(ce,"Uniform",1),ce.UniformToFill=Fr=new Ee(ce,"UniformToFill",2),ce.FlipVertical=fr=new Ee(ce,"FlipVertical",1),ce.FlipHorizontal=Hr=new Ee(ce,"FlipHorizontal",2),ce.FlipBoth=co=new Ee(ce,"FlipBoth",3),ce.make=wl,ce.getBuilders=function(){var a=new Ae,y;for(y in Lf)if(y!==y.toLowerCase()){var x=Lf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ce.defineBuilder=kh,ce.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,tt=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]=tt,this.translate(-y,-x)}},Ud.className="STransform";function Dc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Dc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Dc.className="SGradient";function Cu(a,y,x){this.ownerDocument=a=y===void 0?Nn.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 qs(this,x)}Cu.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},Cu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ze(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},Cu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cu.prototype.focus=function(){this.Oa.focus()},Cu.prototype.mx=function(){this.ownerDocument=null},ln.Object.defineProperties(Cu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Cu.className="SVGSurface";function qs(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 Ud,this.j=dm(this),this.Nj=dm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Fo++,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 Xy(a,y,x,E,b,z,tt){a.Nj===void 0?Kg(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Lt=qs.prototype,Lt.arc=function(a,y,x,E,b,z,tt,rt){var ot=2*Math.PI,st=ot-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),vt=a+ut,yt=y+ft,Pt=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%ot+ot),E>st?(this.path.push(["A",x,x,0,1,Pt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Pt,vt,yt])):1e-6=Math.PI),Pt,a+x*Math.cos(b),y+x*Math.sin(b)])},Lt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Lt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Lt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Lt.clearRect=function(){},Lt.clip=function(){this.Yl.clipPath=!0},Lt.closePath=function(){this.path.push(["z"])},Lt.createLinearGradient=function(a,y,x,E){var b=new Dc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Lt.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"+Fo++,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(Vd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Lt.createRadialGradient=function(a,y,x,E,b,z){var tt=new Dc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Jy(a,y,x,E,b,z,tt,rt,ot){E=rt/E,b=ot/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Lt.drawImage=function(a,y,x,E,b,z,tt,rt,ot){var st="";a instanceof HTMLCanvasElement&&(st=a.toDataURL()),a instanceof HTMLImageElement&&(st=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,rt=E=ut,ot=b=a),E=E||0,b=b||0,rt=rt||0,ot=ot||0,Jy(this,y,x,E,b,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||E,height:a||b,href:st},se.$(E,rt)&&se.$(b,ot)?st.toLowerCase().indexOf(".svg")===-1&&st.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),kf(this,Vd,z,this.rb),this.addElement(Vd,z)},Lt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Lt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Lt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},kf(this,"fill",a,this.rb),this.addElement("rect",a)},Lt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},kf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Lt.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},kf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Lt.lineTo=function(a,y){this.path.push(["L",a,y])},Lt.moveTo=function(a,y){this.path.push(["M",a,y])},Lt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Lt.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"])},Lt.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},Lt.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;yut.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)},Lt.jk=function(){this.Hm||this.stroke()},Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Lt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Lt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Lt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Lt.Hs=function(){},ln.Object.defineProperties(Xd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Xd.className="CanvasSurfaceContext";function Yg(){this.F=this.o=this.u=this.j=0}Yg.className="ColorNumbers";function $r(a,y){Ff||(hv(),Ff=!0),Zi(this),this._isFrozen=!1,a===void 0?(this.na=Mh,this.xk="black"):typeof a=="string"?(this.na=Mh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ih?(this.Qd=zi,this.Lk=Ar):this.Lk=a===Cl?this.Qd=$n:this.Qd=wi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}$r.prototype.copy=function(){var a=new $r;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},Lt=$r.prototype,Lt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Lt.ka=function(){return Object.isFrozen(this)&&qt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Lt.qb=function(a){a.classType===$r&&(this.type=a)},Lt.toString=function(){var a="Brush(";if(this.type===Mh)a+=this.color;else if(a=this.type===ih?a+"Linear ":this.type===Cl?a+"Radial ":this.type===bf?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+")"},Lt.addColorStop=function(a,y){return this._isFrozen&&Ce(this),(typeof a!="number"||!isFinite(a)||1a)&&Jn(a,"0 <= loc <= 1",$r,"addColorStop:loc"),this.we===null&&(this.we=new Ae),this.we.add(a,y),this.na===Mh&&(this.type=ih),this.xe=null,this},Lt.Vz=function(a,y){if(this._isFrozen&&Ce(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Nf:y,this.type===Mh)nh(this.color),this.color=Af(a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Af(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Nf:x,nh(a),Af(y,x)}Lt.Wy=function(a,y){if(this._isFrozen&&Ce(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Nf:y,this.type===Mh)nh(this.color),this.color=Af(-a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Af(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Nf:x,nh(a),Af(-y,x)}function ov(a,y,x){nh(a),a=Oo.j;var E=Oo.u,b=Oo.o,z=Oo.F;return nh(y),x===void 0&&(x=.5),"rgba("+Math.round((Oo.j-a)*x+a)+", "+Math.round((Oo.u-E)*x+E)+", "+Math.round((Oo.o-b)*x+b)+", "+Math.round((Oo.F-z)*x+z)+")"}Lt.Gx=function(){if(this.type===Mh)return Mf(this.color);if((this.type===ih||this.type===Cl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Cl)return Mf(a.first().value);if(a.get(.5)!==null)return Mf(a.get(.5));if(a.count===2)return a=a.Fa(),Mf(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);b>z&&rt=b&&rtE&&(z=x,x=E,E=z,z=b),b=E-x,Mf(ov(a.get(x),a.get(E),1-z/b))}return!1};function Mf(a){return a?a instanceof $r?a.Gx():(nh(a),128>(299*Oo.j+587*Oo.u+114*Oo.o)/1e3):!1}function Af(a,y){switch(y){case Nf:y=100*sv(Oo.j);var x=100*sv(Oo.u),E=100*sv(Oo.o);return Ls.j=.4124564*y+.3575761*x+.1804375*E,Ls.u=.2126729*y+.7151522*x+.072175*E,Ls.o=.0193339*y+.119192*x+.9503041*E,Ls.F=Oo.F,y=uv(Ls.j/Ef[0]),x=uv(Ls.u/Ef[1]),E=uv(Ls.o/Ef[2]),Ru.j=116*x-16,Ru.u=500*(y-x),Ru.o=200*(x-E),Ru.F=Ls.F,Ru.j=Math.min(100,Math.max(0,Ru.j+100*a)),a=(Ru.j+16)/116,y=a-Ru.o/200,Ls.j=Ef[0]*e1(Ru.u/500+a),Ls.u=Ef[1]*(Ru.j>fm*dv?Math.pow(a,3):Ru.j/fm),Ls.o=Ef[2]*e1(y),Ls.F=Ru.F,a=-.969266*Ls.j+1.8760108*Ls.u+.041556*Ls.o,y=.0556434*Ls.j+-.2040259*Ls.u+1.0572252*Ls.o,Oo.j=255*lv((3.2404542*Ls.j+-1.5371385*Ls.u+-.4985314*Ls.o)/100),Oo.u=255*lv(a/100),Oo.o=255*lv(y/100),Oo.F=Ls.F,Oo.j=Math.round(Oo.j),255Oo.j&&(Oo.j=0),Oo.u=Math.round(Oo.u),255Oo.u&&(Oo.u=0),Oo.o=Math.round(Oo.o),255Oo.o&&(Oo.o=0),"rgba("+Oo.j+", "+Oo.u+", "+Oo.o+", "+Oo.F+")";case n1:return av(),ul.o=Math.min(100,Math.max(0,ul.o+100*a)),"hsla("+ul.j+", "+ul.u+"%, "+ul.o+"%, "+ul.F+")";default:qt("Unknown color space: "+y)}}function nh(a){Ff||(hv(),Ff=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Oo.j=a[0],Oo.u=a[1],Oo.o=a[2],Oo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Oo.j=0,Oo.u=0,Oo.o=0,Oo.F=1)}}function av(){var a=Oo.j/255,y=Oo.u/255,x=Oo.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 tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}ul.j=Math.round(tt),ul.u=Math.round(100*a),ul.o=Math.round(100*b),ul.F=Oo.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(fm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/fm}function Bc(a,y){typeof a!="string"&&(a instanceof $r||qt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=la?new Il(null,void 0,{willReadFrequently:!0}).context:null}ln.Object.defineProperties($r.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ce(this,a),this.na=a,this.start.Mc()&&(a===ih?this.start=zi:a===Cl&&(this.start=$n)),this.end.Mc()&&(a===ih?this.end=Ar:a===Cl&&(this.end=$n)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ce(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ce(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ce(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ce(this,a),0>a&&Jn(a,">= zero",$r,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ce(this,a),0>a&&Jn(a,">= zero",$r,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ce(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ce(this,a),this.cr=a,this.xe=null}}}),$r.prototype.isDark=$r.prototype.Gx,$r.prototype.darkenBy=$r.prototype.Wy,$r.prototype.lightenBy=$r.prototype.Vz,$r.prototype.addColorStop=$r.prototype.addColorStop;var dv=216/24389,fm=24389/27,Ef=[95.047,100,108.883],cv=null,Oo=new Yg,ul=new Yg,Ls=new Yg,Ru=new Yg,Ff=!1;$r.className="Brush";var Mh;$r.Solid=Mh=new Ee($r,"Solid",0);var ih;$r.Linear=ih=new Ee($r,"Linear",1);var Cl;$r.Radial=Cl=new Ee($r,"Radial",2);var bf;$r.Pattern=bf=new Ee($r,"Pattern",4);var Nf;$r.Lab=Nf=new Ee($r,"Lab",5);var n1;$r.HSL=n1=new Ee($r,"HSL",6),$r.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},$r.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Ff||(hv(),Ff=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},$r.lighten=function(a){return $y(a)},$r.lightenBy=$y,$r.darken=function(a){return t1(a)},$r.darkenBy=t1,$r.mix=ov,$r.isDark=Mf;function ba(){this.xa="Base"}ba.prototype.measure=function(){},ba.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},ba.prototype.arrange=function(){},ba.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},ba.prototype.iA=function(a){a.Uj()},ba.prototype.gc=function(){},ln.Object.defineProperties(ba.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return fn}}}),ba.prototype.remeasureObject=ba.prototype.iA,ba.prototype.arrangeElement=ba.prototype.Ly,ba.prototype.measureElement=ba.prototype.Yz,ba.className="PanelLayout";function gm(){this.xa="Base"}Te(gm,ba),gm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=rh(a);for(var ot=0;otfi&&(Ia=Math.max(fi-wd,0));var G0=_e.oa===0;_e.oc=_e.oc+Ia,_e.actual=_e.oa+Ia,fi=Math.max(fi-(Ia+(G0?wd:0)),0)}if(Ys.columnSpan===1&&(Ss===tn||Ss===ji)){_e=a.Eb(ys);var Bp=_e.Wc();Ia=Math.max(ic-_e.actual,0),Ia+Bp>jn&&(Ia=Math.max(jn-Bp,0));var Wy=_e.oa===0;_e.oc=_e.oc+Ia,_e.actual=_e.oa+Ia,jn=Math.max(jn-(Ia+(Wy?Bp:0)),0)}Pd&&Ys.Uj()}}}}}ii(Qt);var Yu=0,sh=0;z=a.columnCount;for(var Uc=0;Uc=a.rowCount);Hh++)_e=a.Fb(fa.row+Hh),Ia=0,Ia=Ss===hn||Ss===ji?Math.max(_e.minimum,fu[fa.row+Hh]===0?_e.maximum:Math.min(fu[fa.row+Hh],_e.maximum)):Math.max(_e.minimum,isNaN(_e.Hc)?_e.maximum:Math.min(_e.Hc,_e.maximum)),hh.height+=Ia,rl+=_e.minimum;for(var Gl=1;Gl=a.columnCount);Gl++)_e=a.Eb(fa.column+Gl),Ia=0,Ia=Ss===hn||Ss===Ei?Math.max(_e.minimum,El[fa.column+Gl]===0?_e.maximum:Math.min(El[fa.column+Gl],_e.maximum)):Math.max(_e.minimum,isNaN(_e.Hc)?_e.maximum:Math.min(_e.Hc,_e.maximum)),hh.width+=Ia,Y0+=_e.minimum;qa.width+=hh.width,qa.height+=hh.height;var sg=fa.margin,Ad=sg.right+sg.left,Ip=sg.top+sg.bottom;fa.measure(qa.width,qa.height,Y0,rl);for(var lg=fa.measuredBounds,Fu=Math.max(lg.width+Ad,0),sc=Math.max(lg.height+Ip,0),Ed=0,ug=0;ug=a.rowCount);ug++)_e=a.Fb(fa.row+ug),Ed+=_e.total||0;if(Ed=Gh)&&!(fa.row+dh>=a.rowCount);dh++){_e=a.Fb(fa.row+dh);var Vh=_e.oa||0,lc=Zh(fa,_e,Xu);_e.actual=Math.min(_e.maximum,Vh+lc),_e.oa!==Vh&&(Gh-=_e.oa-Vh)}for(;0gu&&(_e.actual=Math.min(_e.maximum,gu+Gh),_e.oa!==gu&&(Gh-=_e.oa-gu)),_e.index===0)break;_e=a.Fb(_e.index-1)}}for(var Qc=0,Kh=0;Kh=a.columnCount);Kh++)_e=a.Eb(fa.column+Kh),Qc+=_e.total||0;if(Qc=_c)&&!(fa.column+uc>=a.columnCount);uc++){_e=a.Eb(fa.column+uc);var Rp=_e.oa||0,Zy=ch(fa,_e,Gy);_e.actual=Math.min(_e.maximum,Rp+Zy),_e.oa!==Rp&&(_c-=_e.oa-Rp)}for(;0<_c;){var U0=_e.oa||0;if(isNaN(_e.width)&&_e.maximum>U0&&(_e.actual=Math.min(_e.maximum,U0+_c),_e.oa!==U0&&(_c-=_e.oa-U0)),_e.index===0)break;_e=a.Eb(_e.index-1)}}}}ii(_t),Yt.free(hh),Yt.free(qa),fu!==void 0&&ii(fu),El!==void 0&&ii(El);var qc=0,$c=0,X0=a.desiredSize,gx=a.maxSize;Ss=Os(a,!0);var zp=sh=Yu=0,jp=0;z=a.columnCount;for(var J0=0;J0=a.rowCount);_e++){var $i=a.Fb(Qt+_e);$i.oa!==0&&(Rt.height+=$i.total)}for(_e=1;_e=a.columnCount);_e++)$i=a.Eb(te+_e),$i.oa!==0&&(Rt.width+=$i.total);var Yi=he.oa+Rt.width,Ur=_t.oa+Rt.height;_e=rt,$i=ot;var Eo=Yi,Oa=Ur,Ga=rt,vs=ot,Ia=Yi,Rh=Ur;rt+Yi>x.width&&(Ia=Math.max(x.width-rt,0)),ot+Ur>x.height&&(Rh=Math.max(x.height-ot,0));var xa=ei.alignment;if(xa.Xb()){xa=a.defaultAlignment,xa.sb()||(xa=$n);var hu=xa.x,ys=xa.y,zh=xa.offsetX;xa=xa.offsetY;var cl=he.alignment,Wl=_t.alignment;cl.sb()&&(hu=cl.x,zh=cl.offsetX),Wl.sb()&&(ys=Wl.y,xa=Wl.offsetY)}else hu=xa.x,ys=xa.y,zh=xa.offsetX,xa=xa.offsetY;(isNaN(hu)||isNaN(ys))&&(ys=hu=.5,xa=zh=0),cl=Sn.width,Wl=Sn.height;var el=ei.margin,Ys=el.left+el.right,Pd=el.top+el.bottom,du=ou(ei,_t,he,!1);!isNaN(ei.desiredSize.width)||du!==hn&&du!==Ei||(cl=Math.max(Yi-Ys,0)),!isNaN(ei.desiredSize.height)||du!==hn&&du!==ji||(Wl=Math.max(Ur-Pd,0)),Yi=ei.maxSize,Ur=ei.minSize,cl=Math.min(Yi.width,cl),Wl=Math.min(Yi.height,Wl),cl=Math.max(Ur.width,cl),Wl=Math.max(Ur.height,Wl),Yi=Wl+Pd,_e+=Eo*hu-(cl+Ys)*hu+zh+el.left,$i+=Oa*ys-Yi*ys+xa+el.top,ei.visible&&(pi(Ga,vs,Ia,Rh,_e,$i,Sn.width,Sn.height)?ei.arrange(_e,$i,cl,Wl):ei.arrange(_e,$i,cl,Wl,new oe(Ga,vs,Ia,Rh)))}}}for(Yt.free(Rt),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,st=Math.ceil(rt/b),ut=Math.ceil(ot/E),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var yt=[],Pt=a.O.s,Et=Pt.length,Vt=0;Vt_t)){Rt=pv(Rt.figure);for(var te=0;te_t&&Qt.push(he))}}}}for(Pt=a.O.s,Et=Pt.length,Vt=0;Vtb*Rt*x))){if(_t=ke.segmentIndex,(!isFinite(_t)||isNaN(_t))&&(_t=0),0>_t&&(_t=Rt-Math.min(-_t,Rt)),_t=Math.round(_t%Rt),Rt=ke.opacity,te=1,Rt!==1){if(Rt===0)continue;te=y.globalAlpha,y.globalAlpha=te*Rt}he=yt[Vt];var jn=!1,fi=ke.strokeDashArray;if(fi!==null&&(jn=!0,y.js(fi,ke.strokeDashOffset)),ke.figure==="LineV"&&ke.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bft)Qt.measure(1/0,1/0,0,0),_t=Qt.measuredBounds,x.ed(_t),yt.push(_t);else{var te=Qt.segmentIndex,he=Qt.segmentFraction,ke=Qt.alignmentFocus;ke.Mc()&&(ke=$n);var jn=Qt.segmentOrientation,fi=Qt.segmentOffset;if(isNaN(te)){var ei=ot.ua;_t=ti(),ei.Qu(he,_t);var Sn=Dt.allocAt(_t[0],_t[1]);if(Sn.add(ot.i(0)),ei.type===en.j?Sn.offset(-ei.startX,-ei.startY):(ei=ei.figures.first(),ei!==null&&Sn.offset(-ei.startX,-ei.startY)),ei=_t[2],jn!==Ms){var _e=ot.computeAngle(Qt,jn,ei);Qt.Kb=_e}_e=Sn.x-y.x;var $i=Sn.y-y.y;Dt.free(Sn),ii(_t)}else if(te<-ft||te>=ft)_t=Dt.alloc(),ot.vg(),ot.computeMidPoint(_t),ei=ot.midAngle,jn!==Ms&&(_e=ot.computeAngle(Qt,jn,ei),Qt.Kb=_e),_e=_t.x-y.x,$i=_t.y-y.y,Dt.free(_t);else{if(_e=0,0<=te?($i=ut.M(te),_t=teYi+10?0<=te?ei.ab($i):$i.ab(ei):Yi>Sn+10?0<=te?_t.ab(_e):_e.ab(_t):0<=te?ei.ab(_e):_e.ab(ei)}else ei=0<=te?$i.ab(_t):_t.ab($i);jn!==Ms&&(_e=ot.computeAngle(Qt,jn,ei),Qt.Kb=_e),_e=$i.x+(_t.x-$i.x)*he-y.x,$i=$i.y+(_t.y-$i.y)*he-y.y}Qt.measure(1/0,1/0,0,0),_t=Qt.measuredBounds,Sn=Qt.naturalBounds;var Ur=0;Qt instanceof ar&&(Ur=Qt.strokeWidth),Yi=Sn.width+Ur;var Eo=Sn.height+Ur;Pt.reset(),Pt.translate(-_t.x,-_t.y),Pt.scale(Qt.scale,Qt.scale),Pt.rotate(jn===Ms?Qt.angle:ei,Yi/2,Eo/2),jn!==ap&&jn!==lp||Pt.rotate(90,Yi/2,Eo/2),jn!==sp&&jn!==up||Pt.rotate(-90,Yi/2,Eo/2),jn===t0&&(45ei||225ei)&&Pt.rotate(-ei,Yi/2,Eo/2),Sn=new oe(0,0,Yi,Eo),Et.xi(Sn,ke),Pt.Ga(Et),ke=-Et.x+Ur/2*Qt.scale,Qt=-Et.y+Ur/2*Qt.scale,Vt.assign(fi),Ur=isNaN(fi.x);var Oa=isNaN(fi.y);if(Ur||Oa){Yi=Yi/2+3,Eo=Eo/2+3;var Ga=45<=ei&&135>=ei,vs=225<=ei&&315>=ei;jn===Ms&&(Ga||vs)?(Vt.x=Oa?Yi:fi.y,Vt.y=Ur?Eo:fi.x,Ga?0<=te||isNaN(te)&&.5>he||!Ur||(Vt.y=-Eo):vs&&((0<=te||isNaN(te)&&.5>he)&&Ur&&(Vt.y=-Eo),Oa&&(Vt.x=-Yi))):(Ur&&(Vt.x=0<=te||isNaN(te)&&.5>he?Yi:-Yi),Oa&&(Vt.y=-Eo),Vt.rotate(ei))}else Vt.rotate(ei);_e+=Vt.x,$i+=Vt.y,Sn.set(_t),Sn.h(_e+ke,$i+Qt,_t.width,_t.height),yt.push(Sn),x.ed(Sn)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Tn(b,x.width||0,x.height||0),Un.free(Pt),Dt.free(Et),Dt.free(Vt)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Vr||a instanceof xn){var E=a,b=null;a instanceof Vr&&(b=a,E=b.adornedPart);var z=a instanceof Vr?null:E.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt=x)Pt=Dt.alloc(),yt=ft,Vt=Pt,yt.vg(),yt.computeMidPoint(Vt),yt=ft.midAngle,st!==Ms&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=Pt.x,Vt=Pt.y,Dt.free(Pt);else{if(Et=0,0<=rt?(Pt=y.s[rt],Vt=rtQt+10?0<=rt?yt.ab(Pt):Pt.ab(yt):Qt>Rt+10?0<=rt?Vt.ab(Et):Et.ab(Vt):0<=rt?yt.ab(Et):Et.ab(yt)}else yt=0<=rt?Pt.ab(Vt):Vt.ab(Pt);st!==Ms&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=Pt.x+(Vt.x-Pt.x)*ot,Vt=Pt.y+(Vt.y-Pt.y)*ot}if(vt.ys())tt.location=new Dt(ft,Vt);else{vt.Mc()&&(vt=$n),Pt=Un.alloc(),Pt.reset(),Pt.scale(tt.scale,tt.scale),Pt.rotate(tt.angle,0,0);var _t=tt.naturalBounds;Et=oe.allocAt(0,0,_t.width,_t.height),Rt=Dt.alloc(),Rt.xi(Et,vt),Pt.Ga(Rt),vt=-Rt.x,Qt=-Rt.y;var te=_t.width,he=_t.height;_t=Dt.alloc(),_t.assign(ut);var ke=isNaN(ut.x),jn=isNaN(ut.y);if(ke||jn){te=te/2+3,he=he/2+3;var fi=45<=yt&&135>=yt,ei=225<=yt&&315>=yt;st===Ms&&(fi||ei)?(_t.x=jn?te:ut.y,_t.y=ke?he:ut.x,fi?0<=rt||isNaN(rt)&&.5>ot||!ke||(_t.y=-he):ei&&((0<=rt||isNaN(rt)&&.5>ot)&&ke&&(_t.y=-he),jn&&(_t.x=-te))):(ke&&(_t.x=0<=rt||isNaN(rt)&&.5>ot?te:-te),jn&&(_t.y=-he),_t.rotate(yt))}else _t.rotate(yt);ft+=_t.x,Vt+=_t.y,Pt.pp(Et),vt+=Et.x,Qt+=Et.y,rt=Dt.allocAt(ft+vt,Vt+Qt),tt.move(rt),Dt.free(rt),Dt.free(_t),Dt.free(Rt),oe.free(Et),Un.free(Pt)}}b!==null?b.Ul(!1):E.Ul(!1),E=T1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Dt.free(E)}};function i1(a,y,x,E){if(ll(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Vr&&a.type===fn.Link&&a.adornedObject instanceof ar&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof xn&&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 Vr&&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),Aa(E,!1)}}function Xg(){this.xa="Base"}Te(Xg,ba),Xg.prototype.measure=function(a,y,x,E,b,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,st=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new oe(-ot.left,-ot.top,Math.max(ft.width+st,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),b.assign(vt);for(var yt=rt.geometry,Pt=rt.strokeWidth,Et=yt.flattenedSegments,Vt=yt.flattenedLengths,Rt=yt.flattenedTotalLength,Qt=Et.length,_t=0,te=0,he=ti(),ke=0;keYi&&(Yi+=360),fi.push(Yi)}_t=_e,te=$i}he.push(fi)}if(a.graduatedIntervals===null){for(var Ur=[],Eo=a.O.s,Oa=Eo.length,Ga=0;GaRh)){for(var xa=0;xaRh&&Ia.push(ys)}}}}}a.graduatedIntervals=Ur}var zh=a.graduatedIntervals,cl=a.O.s,Wl=cl.length,el=0,Ys=0,Pd=Rt;a.graduatedMarks=[];for(var du,tg=0;tgDp*Ss*Rt/a.graduatedRange&&nl.graduatedSkip===null)){var Yc=Vt[0][0],Mu=0,Us=0;Ys=Rt*nl.graduatedStart-1e-4,Pd=Rt*nl.graduatedEnd+1e-4;var ic=Dp*Ss,il=a.graduatedTickBase;if(ila.graduatedMin+ic&&(il-=Math.floor((il-a.graduatedMin)/ic)*ic);for(var G0=zh[tg],Bp=il,Wy=1e-6*a.graduatedMax,Yu=1;il<=a.graduatedMax+Wy;Yu++){t:{for(var sh=G0.length,Uc=0;Uc-eg){var Ld=!1;break t}}Ld=!0}if(Ld&&(il>a.graduatedMax&&(il=a.graduatedMax),nl.graduatedSkip===null||nl instanceof No&&!nl.graduatedSkip(il,nl)||nl instanceof ar&&!nl.graduatedSkip(il,nl))&&(el=(il-a.graduatedMin)*Rt/a.graduatedRange,el>Rt&&(el=Rt),Ys<=el&&el<=Pd)){for(var Uu=he[Mu][Us],jh=Vt[Mu][Us];MuYc&&Uslh&&.4995lh?0lh||.9995Xc){var ig=1-Math.abs(.5-lh);Uu=(cu*ig+Eu*(1-ig))%360;break t}}}Uu=cu}if(nl instanceof No){var eu="";nl.graduatedFunction!==null?(eu=nl.graduatedFunction(il,nl),eu=eu!=null?eu.toString():""):eu=(+il.toFixed(2)).toString(),eu!==""&&du.push({$l:ng,angle:Uu,text:eu})}else du.push({$l:ng,angle:Uu})}il=Bp+Yu*ic}}}a.graduatedMarks.push(du)}ii(he);var qa=a.graduatedMarks;if(qa!==null)for(var Op=E.length,Ns=0;Nsnu;nu++){switch(nu){case 0:Js.h(hh,fu);break;case 1:Js.h(hh+rg,fu);break;case 2:Js.h(hh,fu+ac);break;case 3:Js.h(hh+rg,fu+ac)}Js.rotate(fa+Pa.angle),Js.offset(K0,ag),og===0&&nu===0?El.h(Js.x,Js.y,0,0):El.Ye(Js),Js.offset(-K0,-ag),Js.rotate(-fa-Pa.angle)}Dt.free(Js),uh.graduatedBounds!==null&&uh.graduatedBounds.push(El),oi(Wh,El.x,El.y,El.width,El.height)}else if(Pa instanceof No){var Hl=a,Y0=b;Hl.temporaryTextBlock===null&&(Hl.temporaryTextBlock=new No);var rl=Hl.temporaryTextBlock;y1(rl,Pa);var Hh=Pa.alignmentFocus;Hh.Mc()&&(Hh=zi);for(var Gl=Pa.segmentOrientation,sg=Pa.segmentOffset,Ad=new oe,Ip=0,lg=0,Fu=0,sc=0,Ed=0,ug=Ts.length,Gh=0;GhFu||225Fu)&&gu.rotate(-Fu,Vh/2,lc/2);var Qc=oe.allocAt(0,0,Vh,lc),Kh=Dt.alloc();Kh.xi(Qc,Hh),gu.Ga(Kh);var _c=-Kh.x,Gy=-Kh.y,ch=Dt.alloc();ch.assign(sg),isNaN(ch.x)&&(ch.x=Vh/2+3),isNaN(ch.y)&&(ch.y=-(lc/2+3)),ch.rotate(Fu),Ip+=ch.x+_c,lg+=ch.y+Gy;var uc=new oe(Ip,lg,Zh.width,Zh.height),Rp=new oe(Zh.x,Zh.y,Zh.width,Zh.height),Zy=new oe(dh.x,dh.y,dh.width,dh.height);Xu.Sz=sc,Xu.lineCount=rl.lineCount,Xu.lines=[rl.Cb,rl.Ih,rl.df,rl.Le,rl.Qc,rl.Qb,rl.ze],Xu.actualBounds=uc,Xu.measuredBounds=Rp,Xu.naturalBounds=Zy,Gh===0?Ad.assign(uc):Ad.ed(uc),Dt.free(ch),Dt.free(Kh),oe.free(Qc),Un.free(gu)}Hl.graduatedBounds!==null&&Hl.graduatedBounds.push(Ad),oi(Y0,Ad.x,Ad.y,Ad.width,Ad.height)}Aa(Pa,!1)}}},Xg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,st=0;st=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,st=a.graduatedMarks,ut=ot.length,ft=0;fta.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Et=vt.measuredBounds,Vt=vt.strokeWidth*vt.scale,Rt=vt.alignmentFocus;Rt.Mc()&&(Rt=zi);for(var Qt=0;Qttt.height)continue}else if(st.position>tt.width)continue;var ut=st.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=st.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){ha(a,y,ft,!1,!1,tt,z),ft=!1;var vt=st.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=st.position+ut,x?vt>tt.height&&(ut-=vt-tt.height):vt>tt.width&&(ut-=vt-tt.width),st=st.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(st+=ut.top,vt=tt.width-ut.right,y.moveTo(ut.left,st),y.lineTo(vt,st)):(st+=ut.left,vt=tt.height-ut.bottom,y.moveTo(st,ut.top),y.lineTo(st,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function km(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,ot=o1(a,!0),st=o1(a,!1),ut=0;utvt)){var yt=ft.Wc(),Pt=ft.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Et=ft.separatorStroke;Et===null&&(Et=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Et===null||ft.index===(x?ot:st))&&(Pt=0),yt-=Pt,Pt=ft.position+Pt,yt+=ft.actual,Pt+yt>vt&&(yt=vt-Pt),0>=yt||(vt=a.yb,ha(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Pt+vt.top,tt.width-(vt.left+vt.right),yt):y.fillRect(Pt+vt.left,vt.top,yt,tt.height-(vt.top+vt.bottom)))}}}}function o1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(Pt),Dt.free(Pt)),Dt.free(ut),z&&b.transform(tt),st},Lt.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 hn:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case Ei:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case ji:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Lt.gh=function(a){var y=this.naturalBounds,x=rh(this);if(pi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Dt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Mn(b.set(a),z.transform),z.ca(b)))return Dt.free(b),!0}return Dt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Lt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Evt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof fn?ut:null,vt=Un.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,vt):Ba(ft,a,E,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),Un.free(vt))}}return z===void 0&&Un.free(tt),E}return z===void 0&&Un.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof fn&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Lt.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 tt=this.naturalBounds,rt=this.se(),ot=rt?a:Mn(Dt.allocAt(a.x,a.y),this.transform),st=rt?y:Mn(Dt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(st),ft=0Vt.width||Et.y>Vt.height||0>Et.x+Et.width||0>Et.y+Et.height))&&(Pt.se()?(Et=Pt.transform,Mn(ot.set(a),Et),Mn(st.set(y),Et)):(ot.set(a),st.set(y)),Et=Pt,Pt=Pt instanceof fn?Pt:null,(Pt!==null?Pt.og(ot,st,x,E,b,z):Et.tx(ot,st,b))&&(x!==null&&(Et=x(Et)),Et===null||E!==null&&!E(Et)||z.add(Et)))}}Dt.free(ot),Dt.free(st)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof ar&&(y=a.spot1,y===So&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ti),y}function yv(a){var y=null;return a instanceof ar&&(y=a.spot2,y===So&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ui),y}Lt.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else qt("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),ll(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof fn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Am(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Kn&&(x.Te=!0),x.Te&&x instanceof Kn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(ua,"elements",this,y,null,E,null),x.cb(Xo,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Lt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Jn(a,">= 0",fn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ea;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Xo,"rowdefs",this,null,x,null,a)}return y[a]},Lt.oA=function(a){if(0>a&&Jn(a,">= 0",fn,"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(ua,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ea?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Lt.Eb=function(a){0>a&&Jn(a,">= 0",fn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ea;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Xo,"coldefs",this,null,x,null,a)}return y[a]},Lt.jA=function(a){if(0>a&&Jn(a,">= 0",fn,"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(ua,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ea?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Lt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Em(y,a),this},Lt.Hy=function(a,y){return(a=this.Fb(a))&&Em(a,new Ea(y)),this},Lt.By=function(a,y){return(a=this.Eb(a))&&Em(a,new Ea(y)),this},Lt.nz=function(a){if(0>a||this.type!==fn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==fn.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);f1(this,this.itemArray)};function f1(a,y){var x=Jg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;Ex)){var b=Pv(a,y);if(b=wv(a,b),b!==null){if(Rl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ae),a.ge.add(y,b)),z=x+Jg(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;ya&&Jn(a,">= 0",fn,"padding"),a=new ui(a)):(0>a.left&&Jn(a.left,">= 0",fn,"padding:value.left"),0>a.right&&Jn(a.right,">= 0",fn,"padding:value.right"),0>a.top&&Jn(a.top,">= 0",fn,"padding:value.top"),0>a.bottom&&Jn(a.bottom,">= 0",fn,"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:or},set:function(a){typeof a=="number"&&(a=new ui(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ll),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof $r)&&(a instanceof $r&&a.freeze(),this.T===null&&(this.T=new Ll),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Ll),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba)&&qt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&qt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Ni&&!(this instanceof Vr);Rl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof xn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Ni&&(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 Tc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||f1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Ae}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Ni||a.isPanelMain)&&qt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););hr(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&&(hr(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 er&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Am(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),ln.Object.defineProperties(fn,{Position:{get:function(){return Jl.I("Position")}},Horizontal:{get:function(){return Jl.I("Horizontal")}},Vertical:{get:function(){return Jl.I("Vertical")}},Spot:{get:function(){return Jl.I("Spot")}},Auto:{get:function(){return Jl.I("Auto")}},Table:{get:function(){return Jl.I("Table")}},Viewbox:{get:function(){return Jl.I("Viewbox")}},TableRow:{get:function(){return Jl.I("TableRow")}},TableColumn:{get:function(){return Jl.I("TableColumn")}},Link:{get:function(){return Jl.I("Link")}},Grid:{get:function(){return Jl.I("Grid")}},Graduated:{get:function(){return Jl.I("Graduated")}}}),fn.prototype.rebuildItemElements=fn.prototype.mv,fn.prototype.findItemPanelForData=fn.prototype.sx,fn.prototype.updateTargetBindings=fn.prototype.La,fn.prototype.copyTemplate=fn.prototype.Uy,fn.prototype.graduatedValueForPoint=fn.prototype.Gz,fn.prototype.graduatedPointForValue=fn.prototype.Fz,fn.prototype.findColumnForLocalX=fn.prototype.fz,fn.prototype.findRowForLocalY=fn.prototype.nz,fn.prototype.addColumnDefinition=fn.prototype.By,fn.prototype.addRowDefinition=fn.prototype.Hy,fn.prototype.addRowColumnDefinition=fn.prototype.Gy,fn.prototype.removeColumnDefinition=fn.prototype.jA,fn.prototype.getColumnDefinition=fn.prototype.Eb,fn.prototype.removeRowDefinition=fn.prototype.oA,fn.prototype.getRowDefinition=fn.prototype.Fb,fn.prototype.removeAt=fn.prototype.mb,fn.prototype.remove=fn.prototype.remove,fn.prototype.insertAt=fn.prototype.Gb,fn.prototype.elt=fn.prototype.M,fn.prototype.add=fn.prototype.add,fn.prototype.findObject=fn.prototype.fb,fn.prototype.findInVisualTree=fn.prototype.Nl,fn.prototype.walkVisualTreeFrom=fn.prototype.qm,fn.prototype.findMainElement=fn.prototype.Pb;var g1=!1,p1=null,Jl=new Ae;fn.className="Panel",fn.definePanelLayout=Lu,Lu("Position",new gm),Lu("Vertical",new mm),Lu("Auto",new ym),Lu("Link",new Lm);function oh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}oh.prototype.copy=function(){var a=new oh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},oh.className="GradPanelSettings";function Ll(){this.Pc=[],this.Oc=[],this.j=this.ob=bm,this.hb=this.Hb=0,this.Qp=or,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ll.prototype.copy=function(a){for(var y=new Ll,x=this.Pc,E=x.length,b=y.Pc,z=0;za&&Jn(a,">= 0",Ea,"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&&Jn(a,">= 0",Ea,"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))&&Jn(a,">= 0",Ea,"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&&Jn(a,">= 0",Ea,"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 ui(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Bc(a,"RowColumnDefinition.separatorStroke"),a instanceof $r&&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,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],st,ut,ft,vt,yt,Pt,Et=0,Vt=ti(),Rt=2;Rtft&&(ft=1),b=x=ft,st=tt/2,ut=st!==0,Rt=0,Pt=Vt[Rt],ft=Pt[0],yt=Pt[1],vt=Pt[2],Pt=Pt[3];for(var Qt=0;.1<=Et;){if(Qt===0&&(ut?(b=x,b-=st,Et-=st,ut=!1):b=x,b===0&&(b=1)),b>Et){ii(Vt);return}b>Pt?(Qt=b-Pt,b=Pt):Qt=0;var _t=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(_t=-_t),rt+=_t,ot+=vt*_t,a.translate(rt,ot),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Qt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-rt,-ot),Et-=b,Pt-=b,Qt!==0){if(Rt++,Rt===Vt.length){ii(Vt);return}Pt=Vt[Rt],ft=Pt[0],yt=Pt[1],vt=Pt[2],Pt=Pt[3],b=Qt}}ii(Vt)}}Lt.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,tt=this.naturalBounds;E!==null&&ha(this,a,E,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===fn.Link&&rt instanceof Vr&&rt.category==="Selection"&&rt.adornedObject instanceof ar&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(ha(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||E!==null&&E!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),b.type===en.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===en.u){var st=b.startX;ot=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(st,ut);var vt=Math.min(ot,ft);st=Math.abs(ut-st),ot=Math.abs(ft-ot),a.beginPath(),a.rect(b,vt,st,ot),E!==null&&a.ng(E),x!==null&&(rt&&z&&Iu(a),a.jk(),rt&&z&&eh(a)),a.Se()}else if(b.type===en.F)st=b.startX,ot=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-st)/2,vt=Math.abs(ft-ot)/2,st=Math.min(st,ut)+b,ot=Math.min(ot,ft)+vt,a.beginPath(),a.moveTo(st,ot-vt),a.bezierCurveTo(st+se.wg*b,ot-vt,st+b,ot-se.wg*vt,st+b,ot),a.bezierCurveTo(st+b,ot+se.wg*vt,st+se.wg*b,ot+vt,st,ot+vt),a.bezierCurveTo(st-se.wg*b,ot+vt,st-b,ot+se.wg*vt,st-b,ot),a.bezierCurveTo(st-b,ot-se.wg*vt,st-se.wg*b,ot-vt,st,ot-vt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&Iu(a),a.jk(),rt&&z&&eh(a)),a.Se();else if(b.type===en.o)for(b=b.figures,ot=b.length,vt=0;vtEt.sweepAngle,yt!==null?yt.endX:st.startX,yt!==null?yt.endY:st.startY)}else if(yt=Va(Et,st),Vt=yt.length,Vt===0)a.lineTo(Et.centerX,Et.centerY);else for(var Rt=0;Rt(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(oe.free(z),se.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===en.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return oe.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),oe.free(z),a}if(x.type===en.F){tt=x.startX,b=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(b,ot),tt=Math.abs(rt-tt)/2,b=Math.abs(ot-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return oe.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),oe.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===en.o)return oe.free(z),this.fill===null?Za(x,a.x,a.y,b):da(x,a,b,1=this.strokeWidth)ut=se.Ve(st.startX,st.startY,st.endX,st.endY,z,tt,rt,ot,b);else{if(st.startX===st.endX?(E=ft,ut=0):(y=(st.endY-st.startY)/(st.endX-st.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=ti(),a=new Dt,se.Ve(st.startX+E,st.startY+ut,st.endX+E,st.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Dt,se.Ve(st.startX-E,st.startY-ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Dt,se.Ve(st.startX+E,st.startY+ut,st.startX-E,st.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Dt,se.Ve(st.endX+E,st.endY+ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return ii(y),!1;for(ut=!0,ot=1/0,E=0;EMath.abs(x)){if(ot=tt-ut-x*(z-E),0>a*a*x*x+st*st-ot*ot){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+st*st-ot*ot),rt=(-(a*a*x*ot)+a*st*ft)/(st*st+a*a*x*x)+E,a=(-(a*a*x*ot)-a*st*ft)/(st*st+a*a*x*x)+E,st=x*(rt-E)+ot+ut,ot=x*(a-E)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-st)*(tt-st))rt){b.x=NaN,b.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)Math.abs(Pt)?(Et*=.5/Pt,Pt=.5):Et!==0&&.5>Math.abs(Et)&&(Pt*=.5/Et,Et=.5),Rt-=Pt,Qt-=Et;yt.contains(Rt,Qt);)Rt-=Pt,Qt-=Et;for(b.x=rt,b.y=ot,Et=0;Etx?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||se.$(ot.y,a))&&(ot.yy||se.$(ot.x,y))&&(ot.x=a&&E<=y):(a=E&&x<=a)}Lt.tx=function(a,y,x){function E(Vt,Rt){for(var Qt=Vt.length,_t=0;_tb)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||In(y,z,0,-ft)>=b||In(y,z,0,ft)>=b||In(y,z,ut,0)>=b)}else if(y.type===en.o){if(st=y.bounds,z=st.x,rt=st.y,ot=st.x+st.width,st=st.y+st.height,a.x>ot&&a.xst&&a.yb&&Yn(a.x,a.y,z,rt,ot,rt)>b&&Yn(a.x,a.y,ot,st,z,st)>b&&Yn(a.x,a.y,ot,st,ot,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Za(y,a.x,a.y,z):da(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yb)return!1;for(rt=z.segments.s,ot=rt.length,st=0;stb)return!1;break;case ga:var vt=ti();if(se.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),ii(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case ls:if(vt=ti(),se.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),ii(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case ra:case us:vt=ft.type===ra?Va(ft,z):$a(ft,z,tt,ut);var yt=vt.length;if(yt===0){if(tt=ft.type===ra?ft.centerX:ft.endX,ut=ft.type===ra?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var Pt=ti(),Et=0;Et= 0",ar,"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"?Jn(a,'"butt", "round", or "square"',ar,"strokeCap"):(Qd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Jn(a,'"miter", "bevel", or "round"',ar,"strokeJoin"):(Qd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Qd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof qs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case Hr:a.translate(b,0),a.scale(-1,1);break;case fr:a.translate(0,z),a.scale(1,-1);break;case co:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(E=this.verticalAlignment,E=E.y*z-E.y*vt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,rt,ot,st);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vtb&&(yt=b),E+=y,this.Oj(this.Qb[vt],a,0,E,b,tt,yt,x,rt,ot,st),E+=tt+ft}switch(this.flip){case Hr:a.scale(-1,1),a.translate(-b,0);break;case fr:a.scale(1,-1),a.translate(0,-z);break;case co:a.scale(-1,-1),a.translate(-b,-z)}}},Lt.Oj=function(a,y,x,E,b,z,tt,rt,ot,st,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=b-tt:ot==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=b:ot==="center"&&(ft=b/2),b=Dm!==null?Dm(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),st){rt=Bm!==null?Bm(this,z):.8*z,ot=x+ft,st=E+rt,b=x+ft+tt,rt=E+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(ot,st),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof qs&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof qs&&y.ad.classList.add("gojs-td"))}},Lt.kk=function(a,y,x){if(!ce.prototype.kk.call(this,a,y,x))return!1;if(ha(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x=this.Qb.length))){for(this.l|=16777216,st=this.Qb[ot],y=Math.max(1,a-y);Ql(st)>y&&1a.maxLines&&(a.l|=16777216))}function Av(a,y,x,E){var b=a.formatting===$g;b&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,qg(a)+rt);var ot=a.overflow===Om?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,rt);else if(tt=y,a.wrap===Ev){a.Le=1;var st=Ql(y);if(ot===0||st<=x)a.Cb=Math.max(a.Cb,st),_g(a,y,a.Cb),E!==null&&E.h(st,rt);else{for(z=Df(a,tt),tt=tt.substr(z.length),y=Df(a,tt),st=Ql(z+y);0x&&1x;){var ft=1;for(st=Ql(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=Ql(y.substr(0,ft));if(ft===1){var vt=st;z=Math.max(z,st)}else vt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),_g(a,y.substr(0,ft),vt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Df(a,tt),st=Ql(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,rt*a.Le)}}function Df(a,y){if(a.wrap===w1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E=y.length?y:y.substr(0,E)}function Ql(a){return Is===null?8*a.length:Is.measureText(a).width}function qg(a){if(a.df!==null)return a.df;var y=a.Ae;if(Is===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>L1?x=Nv[y]:(x=1.3*Is.measureText("M").width,Nv[y]=x,L1++),a.df=x}function S1(a){if(Is===null)return 6;if(Im[a]!==void 0&&5e3>Tv)var y=Im[a];else y=Is.measureText(tp).width,Im[a]=y,Tv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,qg(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,tt,rt=!1;!rt;){if(tt=x.indexOf(` `,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Ev){a.Le=0;var ot=Yt.alloc();Av(a,z,y,ot),b+=ot.height,Yt.free(ot),a.Gc+=a.Le}else Av(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=b}ln.Object.defineProperties(No.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"||(ku(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:tn},set:function(a){var y=this.flip;y!==a&&(ku(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ro},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),ku(this),this.da.Yr=a,ws(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Yt.alloc();Av(this,this.ec,999999,a);var y=a.width;Yt.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Tn(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:Fv},set:function(a){var y=this.wrap;y!==a&&(ku(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:bv},set:function(a){var y=this.overflow;y!==a&&(ku(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Bc(a,"TextBlock.stroke"),a instanceof $r&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return qg(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&&(ku(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&&(ku(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new ju),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1a?a=0:1=a&&Jn(a,"> 0",No,"maxLines"),ku(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Dm=null,Bm=null,Ev=new Ee(No,"None",0),P1=new Ee(No,"WrapFit",1),Fv=new Ee(No,"WrapDesiredSize",2),w1=new Ee(No,"WrapBreakAll",3),bv=new Ee(No,"OverflowClip",0),Om=new Ee(No,"OverflowEllipsis",1),$g=new Ee(No,"FormatTrim",0),C1=new Ee(No,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new hi,L1=0,Im=new hi,Tv=0,tp="...",k1="",Is=null,Rm=!1;No.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=tn,this.gq=$g,this.Jq=1/0,this.$q=bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ro,this.$r=Fv}Dv.prototype.copy=function(){var a=new Dv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},No.getEllipsis=function(){return tp},No.setEllipsis=function(a){tp=a,Im=new hi,Tv=0},No.getBaseline=function(){return Dm},No.setBaseline=function(a){Dm=a},No.getUnderline=function(){return Bm},No.setUnderline=function(a){Bm=a},No.isValidFont=function(a){if(Rm||(Is=la?new Il(null).context:null,Rm=!0),Is===null)return!0;var y=Is.font;if(a===y||a==="10px sans-serif")return!0;Is.font="10px sans-serif",Is.font=a;var x=Is.font;if(x!=="10px sans-serif")return Is.font=y,!0;Is.font="19px serif";var E=Is.font;return Is.font=a,x=Is.font,Is.font=y,x!==E},No.FormatNone=C1,No.FormatTrim=$g,No.None=Ev,No.OverflowClip=bv,No.OverflowEllipsis=Om,No.WrapBreakAll=w1,No.WrapDesiredSize=Fv,No.WrapFit=P1;function ju(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}ju.prototype.copy=function(){var a=new ju;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},ju.className="GradElementSettings";function Rs(a,y){ce.call(this),this.Eg=null,this.qo="",this.Xg=dr,this.Nk=hn,this.Zg=this.Hd=null,this.Mk=$n,this.Xf=tn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Bf;Te(Rs,ce),Rs.prototype.cloneProtected=function(a){ce.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Rs.prototype.qb=function(a){a===tn||a===xi||a===Fr?this.imageStretch=a:ce.prototype.qb.call(this,a)},Rs.prototype.toString=function(){return"Picture("+this.source+")#"+Tr(this)};function Of(a){a===void 0&&(a=""),a!==""?Bf[a]&&(delete Bf[a],zm--):(Bf=new hi,zm=0)}function M1(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")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot=E.width&&(z=z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)),vt>=E.height&&(tt=tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)),ot=Math.min(E.width,ft),rt=Math.min(E.height,vt);break;case hn:ft=E.width,vt=E.height;break;case xi:case Fr:yt===xi?(yt=Math.min(E.height/vt,E.width/ft),ft*=yt,vt*=yt):yt===Fr&&(yt=Math.max(E.height/vt,E.width/ft),ft*=yt,vt*=yt,ft>=E.width&&(z=(z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)/ft)*ot),vt>=E.height&&(tt=(tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)/vt)*rt),ot*=1/(ft/E.width),rt*=1/(vt/E.height),ft=E.width,vt=E.height)}yt=this.Df()*y.scale;var Et=ft*yt*vt*yt,Vt=ot*rt/Et,Rt=x.__goCache;yt=null;var Qt=xx;if(!b){if(x.sq&&Rt!==void 0&&4Qt*Qt)for(Rt.gi===null&&(E1(Rt,4,st,ut,x),E1(Rt,16,st,ut,x)),b=Rt.gi,st=b.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=se.Mf[E];if(b!==void 0)return b;var z=a*se.wg;return b=new en().add(new aa(a,0,!0).add(new kr(_r,y-a,0)).add(new kr(ga,y,a,y-z,0,y,z)).add(new kr(_r,y,x-a)).add(new kr(ga,y-a,x,y,x-z,y-z,x)).add(new kr(_r,a,x)).add(new kr(ga,0,x-a,z,x,0,x-z)).add(new kr(_r,0,a)).add(new kr(ga,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&&(zs(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(zs(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(zs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof xn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(zs(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(zs(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(zs(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:En},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),zs(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(zs(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(zs(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:So},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),zs(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&qt("Cannot make a Group a member of itself: "+this.toString()),qt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof er&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof er&&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 er){for(x=new sn,hd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Kn)for(E=E.linksConnected;E.next();)zf(E.value)}if(this instanceof Kn){for(x=this.linksConnected;x.next();)zf(x.value);x=this.labeledLink,x!==null&&zf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&df(y,-1,a))}}else qt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(zs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Kn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(zs(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(zs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ai},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),zs(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(zs(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(zs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Ni.prototype.invalidateLayout=Ni.prototype.C,Ni.prototype.findCommonContainingGroup=Ni.prototype.px,Ni.prototype.isMemberOf=Ni.prototype.Td,Ni.prototype.findTopLevelPart=Ni.prototype.sz,Ni.prototype.findSubGraphLevel=Ni.prototype.oz,Ni.prototype.ensureBounds=Ni.prototype.Va,Ni.prototype.getDocumentBounds=Ni.prototype.mi,Ni.prototype.findObject=Ni.prototype.fb,Ni.prototype.moveTo=Ni.prototype.moveTo,Ni.prototype.invalidateAdornments=Ni.prototype.Wb,Ni.prototype.clearAdornments=Ni.prototype.Ej,Ni.prototype.removeAdornment=Ni.prototype.Jf,Ni.prototype.addAdornment=Ni.prototype.bh,Ni.prototype.findAdornment=Ni.prototype.Pj,Ni.prototype.updateTargetBindings=Ni.prototype.La;var W1=!1;Ni.className="Part",Ni.LayoutNone=0,Ni.LayoutAdded=1,Ni.LayoutRemoved=2,Ni.LayoutShown=4,Ni.LayoutHidden=8,Ni.LayoutNodeSized=16,Ni.LayoutGroupLayout=32,Ni.LayoutNodeReplaced=64,Ni.LayoutStandard=127,Ni.LayoutAll=16777215;function Vr(a,y){a===void 0||a instanceof ba||typeof a=="string"?Ni.call(this,a):(Ni.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)}Te(Vr,Ni),Vr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Vr.prototype.updateRelationshipsFromData=function(){},Vr.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof xn&&y instanceof ar){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 sn;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function X1(a,y,x,E,b,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new sn;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),st={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();st.vv=a,ft.all(function(vt){return function(yt){return yt===vt.vv||!yt.isTreeExpanded}}(st))&&b.Cj(ut,z)}(2b&&(b=rt.right),rt.bottom>z&&(z=rt.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},ln.Object.defineProperties(ks.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ui(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ks.className="Placeholder";function xn(a){Ni.call(this,fn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ms,this.Om=0,this.Qm=Ms,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new an().freeze(),this.Tg=this.Mg=null,this.ml=new oe,this.ua=new en,this.u=this.o=this.Sf=this.Wf=null,this.su=new Dt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Te(xn,Ni),xn.prototype.cloneProtected=function(a){Ni.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())},Lt=xn.prototype,Lt.Af=function(a){Ni.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&$s(y),a=a.toPort,a!==null&&$s(a)},Lt.qb=function(a){a.classType===xn?(a.value&2)===2?this.routing=a:a===hl||a===Th||a===Wf?this.curve=a:a===rp||a===_m||a===qm?this.adjusting=a:a!==Qv&&a!==Ms&&qt("Unknown Link enum value for a Link property: "+a):Ni.prototype.qb.call(this,a)},Lt.Xc=function(){this.ba===null&&(this.ba=new Vg)},Lt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Cs(a)||ld(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Cs(a)||ld(a)))},Lt.zv=function(){return!1},Lt.Av=function(){},Lt.Zc=function(){return!1},xn.prototype.computeAngle=function(a,y,x){return xn.computeAngle(y,x)},xn.computeAngle=function(a,y){switch(a){default:case Ms:a=0;break;case op:a=y;break;case ap:a=y+90;break;case sp:a=y-90;break;case _v:a=y+180;break;case $m:a=se.bp(y),90a&&(a-=180);break;case lp:a=se.bp(y+90),90a&&(a-=180);break;case up:a=se.bp(y-90),90a&&(a-=180);break;case t0:if(a=se.bp(y),45a||225a)return 0;90a&&(a-=180)}return se.bp(a)};function zf(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&&Kv(x,a),a.Ah=y,y!==null&&Vv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Lt=xn.prototype,Lt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Ni.prototype.oh.call(this)},Lt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Lt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new sn),a.wd.add(y),a.v()}Lt.Vo=function(a){if(Ni.prototype.Vo.call(this,a),$d(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Zm(x,this,E)}np(this)}},Lt.Wo=function(a){if(Ni.prototype.Wo.call(this,a),$d(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Vm(x,this,E)}ip(this)}},Lt.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))},xn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},xn.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?Ni.prototype.move.call(this,a,!1):(a=Dt.allocAt(x.x+E,x.y+b),Ni.prototype.move.call(this,a,!1),Dt.free(a)),Nh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},xn.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},xn.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},xn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(gi),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()===hl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===hl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return se.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),se.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 tt=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},xn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===hl))return this.ua.wx(.5);if(this.computeCurve()===hl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),se.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)},Lt=xn.prototype,Lt.i=function(a){return this.Nb.s[a]},Lt.dd=function(a,y){this.Nb.cd(a,y)},Lt.L=function(a,y,x){this.Nb.cd(a,new Dt(y,x))},Lt.Kz=function(a,y){this.Nb.Gb(a,y)},Lt.m=function(a,y,x){this.Nb.Gb(a,new Dt(y,x))},Lt.ne=function(a){this.Nb.add(a)},Lt.yf=function(a,y){this.Nb.add(new Dt(a,y))},Lt.pv=function(a){this.Nb.mb(a)},Lt.Fj=function(){this.Nb.clear()};function Nh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new an,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Dt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),ws(a)),E?Ym(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&hf(tt.animationManager,a,b),a.g("points",z,b)}}Lt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Lt.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,tt=0;ttst&&(ft=-ft),Et=(0>ot?-1:1)*ft+yt,Vt=ut*(Et-yt)+Pt),yt=z.x+2*rt/3,Pt=z.y+2*ot/3;var Rt=yt,Qt=Pt;se.B(ot,0)?Qt=0ot?-1:1)*ft+yt,Qt=ut*(Rt-yt)+Pt),this.Fj(),this.ne(z),this.yf(Et,Vt),this.yf(Rt,Qt),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,vt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,vt),b=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+vt/2,y=E.y+x/2,z=a,rt=y,se.B(x,0)?rt=0tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(E),this.yf(z,rt),this.ne(b)):(this.ne(E),this.ne(b),rt=oe.alloc(),y.mi(rt),ot=rt.ca(b),vt.mi(rt),st=rt.ca(E),(ot||st)&&(tt=y.ga(Xm(tt),new Dt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(Xm(x),new Dt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),oe.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||st)&&this.Fj();var _t=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Et=Pt=0,(ut||!rt||st)&&(Vt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),st&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>_t&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),st&&(Vt+=Math.abs(_t)*(ut?1:2)),yt===0?Pt=Vt:yt===90?Et=Vt:yt===180?Pt=-Vt:yt===270?Et=-Vt:(Pt=Vt*Math.cos(yt*Math.PI/180),Et=Vt*Math.sin(yt*Math.PI/180)),tt.Mc()&&st&&(Vt=y.ga($n,Dt.alloc()),Rt=Dt.allocAt(Vt.x+1e3*Pt,Vt.y+1e3*Et),this.getLinkPointFromPoint(a,y,Vt,Rt,!0,ft),Dt.free(Vt),Dt.free(Rt))),Vt=this.getLinkPoint(E,b,x,!1,ut,a,y);var te=Qt=Rt=0;if(ut||!ot||st){var he=this.computeEndSegmentLength(E,b,x,!1);te=this.getLinkDirection(E,b,Vt,x,!1,ut,a,y),st&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(te+=ut?0:30,0>_t&&(te+=180)),0>te?te+=360:360<=te&&(te-=360),st&&(he+=Math.abs(_t)*(ut?1:2)),te===0?Rt=he:te===90?Qt=he:te===180?Rt=-he:te===270?Qt=-he:(Rt=he*Math.cos(te*Math.PI/180),Qt=he*Math.sin(te*Math.PI/180)),x.Mc()&&st&&(x=b.ga($n,Dt.alloc()),tt=Dt.allocAt(x.x+1e3*Rt,x.y+1e3*Qt),this.getLinkPointFromPoint(E,b,x,tt,!1,Vt),Dt.free(x),Dt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Dt(ft.x+Pt,ft.y+Et)),tt=Vt,(ut||!ot||st)&&(tt=new Dt(Vt.x+Rt,Vt.y+Qt)),!vt&&!ut&&rt&&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}xn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Dt),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 tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var rt=-a.m12*b,ot=-a.m21*b,st=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*ot+ut,E=E.x*rt+E.y*st+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*st+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Um(a,y){var x=y.Zn;return x===null&&(x=new jc,x.port=y,x.node=y.part,y.Zn=x),sS(x,a)}xn.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Dt),x.sb()&&!jf(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Um(this,y);if(ot!==null){if(rt.assign(ot.Zo),b&&this.routing===eS){var st=Um(this,tt);if(st!==null&&ot.Gl=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Wr)||x.Hf(eo))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Dt.free(ot),Dt.free(st)}}return rt}}return x=y.ga(Xm(x),Dt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Yv(x,tt.copy()))):(ot=this.computeSpot(!E,tt),z=Dt.alloc(),tt=tt.ga(Xm(ot),z),b&&(tt=Yv(x,tt)),Dt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Dt.free(x),rt},xn.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,rt){t:if(E.sb())var ot=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)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(ot,rt.copy()):x):(x=Dt.alloc(),rt=rt.ga($n,x),Dt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Dt.free(ot),ot=x}return E.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),jf(E)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},xn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Um(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)},xn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=$n:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===So?wi:y)):(a=y||this.toPort,a===null?a=$n:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===So?wi:y)),a};function jf(a){return a===wi||a.x===.5&&a.y===.5}function Xm(a){return a.x===.5&&a.y===.5?a:$n}xn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ms&&4vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=Un.alloc(),ft.set(tt),ut instanceof fn)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof ar)if(rt=a,vt=E,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),vt)t:{var yt=rt,Pt=ft;if(ut.fh(yt,Pt))rt=!0;else{if(Pt===void 0&&(Pt=ut.transform,yt.Re(ut.actualBounds))){rt=!0;break t}rt=yt.left,vt=yt.right;var Et=yt.top;yt=yt.bottom;var Vt=Dt.alloc(),Rt=Dt.alloc(),Qt=Dt.alloc(),_t=Un.alloc();_t.set(Pt),_t.bv(ut.transform),_t.Vj(),Rt.x=vt,Rt.y=Et,Rt.transform(_t),Vt.x=rt,Vt.y=Et,Vt.transform(_t),Pt=!1,_d(ut,Vt,Rt,Qt)?Pt=!0:(Vt.x=vt,Vt.y=yt,Vt.transform(_t),_d(ut,Vt,Rt,Qt)?Pt=!0:(Rt.x=rt,Rt.y=yt,Rt.transform(_t),_d(ut,Vt,Rt,Qt)?Pt=!0:(Vt.x=rt,Vt.y=Et,Vt.transform(_t),_d(ut,Vt,Rt,Qt)&&(Pt=!0)))),Un.free(_t),Dt.free(Vt),Dt.free(Rt),Dt.free(Qt),rt=Pt}}else rt=ut.fh(rt,ft)}else rt=Ba(ut,a,E,ft);rt&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&b.add(vt)),Un.free(ft)}}}return z===void 0&&Un.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&Un.free(tt),!1},xn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?hl:this.curve},xn.prototype.computeCorner=function(){if(this.curve===hl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},xn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Eot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=E.x-tt;var vt=E.y-ft;for(ot=Math.sqrt(rt*rt+vt*vt),se.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),st=ot/st,ut=vt-ut,this.dd(a,y),a+=1;aot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=st,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,E)}}return!0;case qm:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,st=(tt-b)*(tt-b)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=E.x,vt=E.y;var yt=1;if(ot-rt!==0){var Pt=(vt-ut)/(ot-rt);yt=Math.sqrt(1+1/(Pt*Pt))}else Pt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=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 rt=b.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(hp,hp),ot.Bc(hp,hp),rt.Ye(a),ot.Ye(x);var st=Dt.alloc(),ut=Dt.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&ot.right>a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.ya.y?(st.x=a.xot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=st.x,ut.y=x.y):E===0&&a.xot.top&&a.yrt.bottom)&&(E===180&&(ot.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(E===90||E===270)&&(st.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=E===270||(E===0||E===180)&&x.ya.y&&ot.lefta.y?(st.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(E===270&&a.yot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=st.x,ut.y=x.y):E===180&&a.x>ot.right&&a.y>ot.top&&a.yrt.bottom)&&(E===0&&(ot.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y=a.x||a.x>=ot.left&&a.x<=x.x?(E===90||E===270)&&(st.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&ot.bottom>a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.xa.x?(st.y=a.yot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=st.y):E===90&&a.yot.left&&a.xrt.right)&&(E===270&&(ot.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(E===0||E===180)&&(st.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=E===180||(E===90||E===270)&&x.xa.x&&ot.top=a.x?(st.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(E===180&&a.xot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=st.y):E===270&&a.y>ot.bottom&&a.x>ot.left&&a.xrt.right)&&(E===90&&(ot.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x=a.y||a.y>=ot.top&&a.y<=x.y?(E===0||E===180)&&(st.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=E===180||(E===90||E===270)&&x.x=Gf&&(rS(yt),rt.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),oS(yt,a,y,ft,E,rt,!1),ot=Wu(yt,ft.x,ft.y)),!yt.abort&&otthis.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?se.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):se.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=yt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(se.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):se.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=yt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Pt!==null&&(E===0||E===180?this.yf(z.x,Pt.y):this.yf(Pt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Dt.free(st),Dt.free(ut)}},xn.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 Uv(a){if(a.diagram===null||!a.isAvoiding||!Sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=xf(a.diagram,!0,a.containingGroup,null);for(var E=1;Etc&&Wu(y,ut,ft)!==st-1&&(Wu(y,x-rt,E)===st-1?(b=180,ut=x-rt,ft=E):Wu(y,x+rt,E)===st-1?(b=0,ut=x+rt,ft=E):Wu(y,x,E-ot)===st-1?(b=270,ut=x,ft=E-ot):Wu(y,x,E+ot)===st-1&&(b=90,ut=x,ft=E+ot));st>tc&&Wu(y,ut,ft)===st-1;)x=ut,E=ft,b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,--st;z?st>tc&&(b===180||b===0?x=Math.floor(x/rt)*rt+rt/2:(b===90||b===270)&&(E=Math.floor(E/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,E=Math.floor(E/ot)*ot+ot/2),st>tc&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=ot):b===90?(z=180,tt-=rt):b===180?(z=270,ut-=ot):b===270&&(z=0,tt+=rt),Wu(y,tt,ut)===st-1?Xv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=ot):b===90?(z=0,tt+=rt):b===180?(z=90,ut+=ot):b===270&&(z=180,tt-=rt),Wu(y,tt,ut)===st-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}xn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Yn(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;ttthis.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),ot=this.i(E),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);E=z.x,ot=z.y}else{for(ot=0;otVt?Pt>yt?(z.x=Rt-_t,z.y=yt-_t,b.x=Rt+Et,b.y=yt+Et):(z.x=Rt-_t,z.y=yt+_t,b.x=Rt+Et,b.y=yt-Et):Pt>yt?(z.x=Rt+_t,z.y=yt-_t,b.x=Rt-Et,b.y=yt+Et):(z.x=Rt+_t,z.y=yt+_t,b.x=Rt-Et,b.y=yt-Et)),se.$(Vt,Rt)&&se.$(yt,Pt)&&(yt>vt?(Qt>Rt?(z.x=Rt-_t,z.y=yt-_t,b.x=Rt+Et):(z.x=Rt+_t,z.y=yt-_t,b.x=Rt-Et),b.y=yt+Et):(Qt>Rt?(z.x=Rt-_t,z.y=yt+_t,b.x=Rt+Et):(z.x=Rt+_t,z.y=yt+_t,b.x=Rt-Et),b.y=yt-Et)),(se.$(Vt,Rt)&&se.$(Rt,Qt)||se.$(vt,yt)&&se.$(yt,Pt))&&(Vt=.5*(Vt+Qt),vt=.5*(vt+Pt),z.x=Vt,z.y=vt,b.x=Vt,b.y=vt),(ft===1||ft===2&&se.$(tt.x,this.i(0).x)&&se.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+st.x),x.y=.5*(tt.y+st.y)),Eh(rt,x.x-E,x.y-ot,z.x-E,z.y-ot,st.x-E,st.y-ot),y.set(z),x.set(b),tt=st}}st=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Oc(this,ut.copy(),!1,bn)),st=.5*(st+ut.x),tt=.5*(tt+ut.y),Eh(rt,b.x-E,b.y-ot,st-E,tt-ot,ut.x-E,ut.y-ot),Dt.free(y),Dt.free(x),Dt.free(z),Dt.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Oc(this,tt.copy(),!1,bn)),Eh(rt,z.x-E,z.y-ot,b.x-E,b.y-ot,tt.x-E,tt.y-ot);else{for(z=Dt.alloc(),z.assign(this.i(0)),b=Dt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,st=0;ft=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Oc(this,ut.copy(),!1,bn)),Ic(this,rt,-E,-ot,z,ut,x);else if(st===0)for(ft=1;ftz.x?te=vt.x-Pt:te=vt.x+Pt,Rt.y>vt.y?Qt=vt.y+_t:Qt=vt.y-_t,Rt=Dt.allocAt(te,he),Ic(this,rt,ft,Vt,z,Rt,Et),Dt.free(Rt),jm(rt,vt.x+ft,vt.y+Vt,yt+ft,Qt+Vt),z.h(yt,Qt)}else se.B(z.x,vt.x)&&se.B(vt.y,Rt.y)?(Pt=Math.min(tt,Math.abs(vt.y-b.y)/2),Pt=_t=Math.min(Pt,Math.abs(Rt.x-vt.x)/2),se.B(_t,0)?(Ic(this,rt,ft,Vt,z,vt,Et),z.assign(vt)):(te=vt.x,he=vt.y,yt=te,Qt=he,vt.y>z.y?he=vt.y-Pt:he=vt.y+Pt,Rt.x>vt.x?yt=vt.x+_t:yt=vt.x-_t,Rt=Dt.allocAt(te,he),Ic(this,rt,ft,Vt,z,Rt,Et),Dt.free(Rt),jm(rt,vt.x+ft,vt.y+Vt,yt+ft,Qt+Vt),z.h(yt,Qt))):(Ic(this,rt,ft,Vt,z,vt,Et),z.assign(vt));b.assign(ut),ft=st}Dt.free(z)}Wm=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=ot,this.computeShortLength(!0)!==0&&(b=Oc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Oc(this,rt,!1,z)),a.type=en.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Jm(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),se.$(a,0)?y:se.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Oc(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=Jm(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=Jm(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 Jv(a,y,x,E){for(var b=a.pointsCount,z=y;se.$(y.x,z.x)&&se.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!se.$(y.x,z.x)&&!se.$(y.y,z.y))return x-1;for(var tt=z;se.$(y.x,z.x)&&se.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||se.$(y.y,z.y)&&se.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}xn.prototype.computeJumpLength=function(){return 10};function Ic(a,y,x,E,b,z,tt){if(!tt&&$d(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],st=0;if(a.isVisible()&&(st=kx(a,b,z,ot)),0ft-tt);)st--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+E,ft+=x,yt=z.y+E,a.curve===Th?Rf(y,ft,yt,!1):Eh(y,vt,ut,ft,ut,ft,yt)}else if(se.B(b.x,z.x))if(b.yut-tt);)st--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===Th?Rf(y,yt,ut,!1):Eh(y,ft,vt,ft,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function kx(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 tt=z.length,rt=0;rttt.x&&ut.x>=st.x||st.xtt.y&&ut.y>=st.y||st.ytt&&Math.min(Pt,Et)ut&&!se.B(Pt,Et)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(se.B(ft,yt)&&se.B(Pt,Et)&&Math.min(ut,vt)Pt&&Math.min(tt,Vt)ft&&!se.B(tt,Vt)){rt.x=Pt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(b?x.push(rt.x):x.push(rt.y)),tt=st}Dt.free(rt)}function $d(a){return a=a.curve,a===Wf||a===Th}function Qm(a,y){(y||$d(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}xn.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 tt=b.length,rt=0;rta&&Jn(a,">= 0",xn,"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:So},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&$s(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Jn(a,">= 0",xn,"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 rt=this.i(z-1),ot=this.i(z);se.Dl(b.x,b.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),b=ot}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)):se.$(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||!jf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!jf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Qm(this,y===Th||y===Wf||a===Th||a===Wf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Qm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),xn.prototype.invalidateOtherJumpOvers=xn.prototype.Xo,xn.prototype.findClosestSegment=xn.prototype.ez,xn.prototype.updateRoute=xn.prototype.vg,xn.prototype.invalidateRoute=xn.prototype.bb,xn.prototype.rollbackRoute=xn.prototype.rv,xn.prototype.commitRoute=xn.prototype.zf,xn.prototype.startRoute=xn.prototype.uh,xn.prototype.clearPoints=xn.prototype.Fj,xn.prototype.removePoint=xn.prototype.pv,xn.prototype.addPointAt=xn.prototype.yf,xn.prototype.addPoint=xn.prototype.ne,xn.prototype.insertPointAt=xn.prototype.m,xn.prototype.insertPoint=xn.prototype.Kz,xn.prototype.setPointAt=xn.prototype.L,xn.prototype.setPoint=xn.prototype.dd,xn.prototype.getPoint=xn.prototype.i,xn.prototype.getOtherPort=xn.prototype.Cz,xn.prototype.getOtherNode=xn.prototype.To;var Rc=null,zc=null,Qv=new Ee(xn,"Normal",1),Ax=new Ee(xn,"Orthogonal",2),Ex=new Ee(xn,"AvoidsNodes",6),eS=new Ee(xn,"AvoidsNodesStraight",7),Ms=new Ee(xn,"None",0),hl=new Ee(xn,"Bezier",9),Th=new Ee(xn,"JumpGap",10),Wf=new Ee(xn,"JumpOver",11),rp=new Ee(xn,"End",17),_m=new Ee(xn,"Scale",18),qm=new Ee(xn,"Stretch",19),op=new Ee(xn,"OrientAlong",21),ap=new Ee(xn,"OrientPlus90",22),sp=new Ee(xn,"OrientMinus90",23),_v=new Ee(xn,"OrientOpposite",24),$m=new Ee(xn,"OrientUpright",25),lp=new Ee(xn,"OrientPlus90Upright",26),up=new Ee(xn,"OrientMinus90Upright",27),t0=new Ee(xn,"OrientUpright45",28),nS=16,iS=14,hp=8;xn.className="Link",xn.Normal=Qv,xn.Orthogonal=Ax,xn.AvoidsNodes=Ex,xn.AvoidsNodesStraight=eS,xn.None=Ms,xn.Bezier=hl,xn.JumpGap=Th,xn.JumpOver=Wf,xn.End=rp,xn.Scale=_m,xn.Stretch=qm,xn.OrientAlong=op,xn.OrientPlus90=ap,xn.OrientMinus90=sp,xn.OrientOpposite=_v,xn.OrientUpright=$m,xn.OrientPlus90Upright=lp,xn.OrientMinus90Upright=up,xn.OrientUpright45=t0,xn.EndSegmentStep=8,xn.CurvinessStart=nS,xn.SpacingMin=iS,xn.OrthoShortCut=hp;function e0(a,y,x,E){Zi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}e0.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=tc&&(x[E]=qv)}dp.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]===Dh)return!1}return!0};function Hu(a,y,x,E,b,z,tt,rt,ot){if(!(ytt||xot)){var st=y|0,ut=x|0,ft=a.ac[st][ut];if(ft>=tc&&ft=a.ac[st][ut]);)a.ac[st][ut]=ft,ft+=1,b?ut+=E:st+=E;if(st=b?ut:st,b)if(0st;x+=E)Hu(a,y,x,1,!b,z,tt,rt,ot),Hu(a,y,x,-1,!b,z,tt,rt,ot);else if(0st;y+=E)Hu(a,y,x,1,!b,z,tt,rt,ot),Hu(a,y,x,-1,!b,z,tt,rt,ot)}}function n0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=Dh,ut=tc;for(a.ac[y][x]=ut;st===Dh&&y>z&&yrt&&xz&&yrt&&x=Math.abs(rt-st)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),E=a.ac,rt|=0,ot|=0,st|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][ot]===Dh?(n0(a,rt,ot,yt,x,z,y,ft,vt),n0(a,rt,ot,1,!x,z,y,ft,vt),n0(a,rt,ot,-1,!x,z,y,ft,vt)):n0(a,rt,ot,yt,x,rt,ot,rt,ot),E[st][ut]===Dh?(i0(a,st,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,vt),i0(a,st,ut,1,!(b===90||b===270),z,y,ft,vt),i0(a,st,ut,-1,!(b===90||b===270),z,y,ft,vt)):i0(a,st,ut,yt,x,st,ut,st,ut),x=ti(),tt&&aS(a,st,ut,b,rt,ot,x))for((x[0]!==st||x[1]!==ut)&&(x.unshift(ut),x.unshift(st)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=tc,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],st=x[z+1];y>b?b++:ytt?tt++:stb)ut--;else break;else if(ft>z)ft--;else break;var vt=rt[ut][ft];if(vt===0||vt===$v)break;ot=ut,st=ft}for(;;){if(ut=E,ft=ot,vt=st,E===0?vtz&&(ut=270,vt--):E===90?ftb&&(ut=180,ft--):E===180?vtz&&(ut=270,vt--):ftb&&(ut=180,ft--),ft=rt[ft][vt],ut!==E&&ft!==0&&ft!==$v){if(tt.push(ot),tt.push(st),aS(a,ot,st,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][st]=$v,E===0){if(ot===y)return!1;ot--}else if(E===90){if(st===x)return!1;st--}else if(E===180){if(ot===y)return!1;ot++}else{if(st===x)return!1;st++}}}ln.Object.defineProperties(dp.prototype,{bounds:{get:function(){return new oe(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}jc.prototype.Sl=function(){this.pe.length=0};function sS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof er?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var rt=a.port.ga(Ti,Dt.alloc()),ot=a.port.ga(Ui,Dt.alloc());for(b=oe.allocAt(rt.x,rt.y,0,0),b.Ye(ot),Dt.free(rt),Dt.free(ot),rt=Dt.allocAt(b.x+b.width/2,b.y+b.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var st=tt.value;if(st.isVisible()&&st.fromPort!==st.toPort){var ut=st.fromPort===a.port||st.fromNode!==null&&st.fromNode.Td(E),ft=st.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?st.toPort:st.fromPort,ut!==null)){var vt=ut.part;if(vt!==null){var yt=vt.findVisibleNode();yt!==null&&yt!==vt&&(vt=yt,ut=vt.port),ut=st.computeOtherPoint(vt,ut),vt=rt.ab(ut),vt-=ot,0>vt?vt+=360:360<=vt&&(vt-=360),ft=Fx(b,ft,vt,st.isOrthogonal),ft===0?(ft=4,180vt&&(vt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(st,vt,ft),a.pe[z]=yt):(yt.link=st,yt.angle=vt,yt.Nc=ft),yt.hv.set(ut),z++}}}}for(Dt.free(rt),a.pe.sort(jc.prototype.j),ot=a.pe.length,E=-1,z=rt=0;zMath.abs(Et)?(Qt=Math.abs(Et)/vt,vt=Math.abs(Et)):Qt=1;break;case 2:yt>Math.abs(_t)?(Qt=Math.abs(_t)/yt,yt=Math.abs(_t)):Qt=1;break;case 1:ft>Math.abs(Et)?(Qt=Math.abs(Et)/ft,ft=Math.abs(Et)):Qt=1;break;default:case 4:ut>Math.abs(_t)?(Qt=Math.abs(_t)/ut,ut=Math.abs(_t)):Qt=1}Rt=0}var ke=te.Zo;if(E===Zv){switch(te=te.link.computeThickness(),te*=Qt,ke.set(he),Pt){case 8:ke.x=he.x+Et/2+vt/2-Rt-te/2;break;case 2:ke.y=he.y+_t/2+yt/2-Rt-te/2;break;case 1:ke.x=he.x+Et/2-ft/2+Rt+te/2;break;default:case 4:ke.y=he.y+_t/2-ut/2+Rt+te/2}Rt+=te}else{var jn=.5;E===Km&&(jn=(te.Uo+1)/(te.Gl+1)),ke.x=he.x+Et*jn,ke.y=he.y+_t*jn}}}for(Dt.free(rt),Dt.free(ot),Dt.free(tt),Dt.free(st),he=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},jc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,wi,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+=tt+20,tt=0):z++}},_o.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,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof xn)&&(cp(rt),this.rh(rt))){var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(x,E),rt instanceof er&&(rt.rh=!1),x+=Math.max(st,50)+20,z=Math.max(z,Math.max(ot,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},_o.prototype.rh=function(a){return!!(!a.location.w()||a instanceof er&&a.rh)};function dd(a,y,x,E,b,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;E&&!ot.isTopLevel||b!==null&&!b(ot)||!ot.canLayout()||(z&&ot instanceof Kn?ot.isLinkLabel||(ot instanceof er&&ot.layout===null?dd(a,y,ot.memberParts,!1,b,z,tt,rt):(cp(ot),y.add(ot))):tt&&ot instanceof xn?y.add(ot):!rt||!ot.Zc()||ot instanceof Kn||(cp(ot),y.add(ot)))}}function cp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}_o.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new oe),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},_o.prototype.ex=function(a){var y=new sn;return a instanceof Me?(dd(this,y,a.nodes,!0,null,!0,!0,!0),dd(this,y,a.links,!0,null,!0,!0,!0),dd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof er?dd(this,y,a.memberParts,!1,null,!0,!0,!0):dd(this,y,a.iterator,!1,null,!0,!0,!0),y},_o.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(Ti),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ln.Object.defineProperties(_o.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())}}}),_o.prototype.collectParts=_o.prototype.ex,_o.prototype.getLayoutBounds=_o.prototype.ni,_o.prototype.invalidateLayout=_o.prototype.C,_o.className="Layout";function To(a){Zi(this),this.Sc=a,this.wf=new sn,this.ye=new sn,this.Es=new Ae,this.zs=new Ae}To.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 sn,this.ye=new sn,this.Es=new Ae,this.zs=new Ae},To.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}ln.Object.defineProperties(Na.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=oe.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),oe.free(x),!(a instanceof er)&&(a=a.locationObject.ga($n),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 sn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new sn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new sn,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}}}),Na.prototype.deleteDestinationEdge=Na.prototype.Jl,Na.prototype.addDestinationEdge=Na.prototype.zl,Na.prototype.deleteSourceEdge=Na.prototype.Kl,Na.prototype.addSourceEdge=Na.prototype.Cl,Na.className="LayoutVertex",Na.standardComparer=ry,Na.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},tl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},tl.prototype.commit=function(){},tl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ln.Object.defineProperties(tl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),tl.prototype.getOtherVertex=tl.prototype.Ax,tl.className="LayoutEdge";function _a(a){_o.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Yt(NaN,NaN).freeze(),this.tf=new Yt(10,10).freeze(),this.Jb=fp,this.Rb=o0,this.nd=gp,this.hd=uS,a&&Object.assign(this,a)}Te(_a,_o),_a.prototype.cloneProtected=function(a){_o.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},_a.prototype.qb=function(a){a.classType===_a?a===gp||a===s0||a===oy||a===a0?this.sorting=a:a===o0||a===au?this.arrangement=a:a===fp||a===r0?this.alignment=a:qt("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},_a.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 er)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 a0:b.reverse();break;case gp:b.sort(this.comparer);break;case s0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case r0:var rt=y,ot=x,st=oe.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ftz-1||0tt)&&(E.push(new oe(0,Et,tt+rt,Rt)),Vt=0,Pt=yt,Et+=Rt,Rt=0),Rt=Math.max(Rt,ke),vt){case au:te=-te.width;break;default:te=0}switch(_t.moveTo(Pt+te,Et),vt){case au:Pt-=he;break;default:Pt+=he}Vt++}E.push(new oe(0,Et,tt+rt,Rt)),oe.free(st);break;case fp:for(ot=tt,ut=z,ft=y,vt=x,tt=oe.alloc(),yt=Math.max(this.cellSize.width,1),z=Et=st=0,rt=Dt.alloc(),Pt=0;Pt=st&&(ot-=st),st=_t=0,he=Math.max(this.cellSize.height,1),te=z=0,ke=!0,Vt=Dt.alloc(),jn=0;jnut-1||0ot){for(E.push(new oe(0,ke?Qt-z:Qt,ot+ft,te+z+vt)),fi=0;fist&&(z.width+=z.x-st,z.x=st);oe.free(tt)}for(rt=z=tt=b=0;rty?1:0}ln.Object.defineProperties(_a.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ft)){var Et=ft+Jg(Pt);Pt.pc(Et,!0),xv(Pt,Et,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},io.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)},io.prototype.rp=function(){for(var a=this.H.model,y=new sn,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new Ki;b.add("["),x&&1E)return;Pi(a.Tc,E)}Fa(a,"nodeDataArray",ua,"nodeDataArray",a,y,null,E,null),a.qp(y)}Lt.nA=function(a){if(qn(a))for(var y=a.length,x=0;xy&&(y=a.length),zn(a,y,x),Fa(this,"",Xo,"",a,null,x,null,y)},Lt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&qt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Pi(a,y),Fa(this,"",ua,"",a,x,null,y,null)},Lt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ma(a,y),y===void 0))return"";if(typeof y=="string")return y;qt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Lt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=ma(a,x);E===void 0&&(E=""),E!==y&&(Jo(a,x,y),Fa(this,"nodeCategory",Mo,x,a,E,y))}else Jo(a,x,y)}},Lt.lm=function(a,y){this.jm(y,this.Ro(a))},Lt.Tl=function(){return!1},Lt.Wj=function(){return!1},Lt.ri=function(){return!1},Lt.xs=function(){return!1},Lt.Xj=function(){return!1};function hy(){return new Ci}function mp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return mp(a,y.constructor);return typeof y}function dy(a){return _l[a]?_l[a]:Nn.go!==void 0&&Nn.go[a]?Nn.go[a]:null}function ma(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Jo(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}ln.Object.defineProperties(Ci.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&qt("Model.nodeKeyProperty may not be the empty string"),0"+dl(this,b,!1)}return y},Lt.Qv=function(a,y){this.linkKeyProperty===""&&qt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ci.prototype.Qv.call(this,a,y),E=this,b=new sn,z=new sn,tt=new sn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Xo?b.add(ut.newValue):ut.change===ua&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Ci||E.lb(ut.object)||ES(E,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(E.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===ua){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ze(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}}Ci.prototype.changeState.call(this,a,y)}},Lt=Br.prototype,Lt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Jo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Lt.yx=function(a){return dl(this,a,!0)},Lt.wv=function(a,y){Vf(this,a,y,!0)},Lt.Bx=function(a){return dl(this,a,!1)},Lt.Bv=function(a,y){Vf(this,a,y,!1)};function dl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ma(y,a),a!==void 0))){if(fd(a))return a;qt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Vf(a,y,x,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=ma(y,b);z!==x&&(lu(a,z,y),Jo(y,b,x),a.hc(x)===null&&su(a,x,y),Fa(a,E?"linkFromKey":"linkToKey",Mo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Jo(y,b,x)}}Lt.zx=function(a){return c0(this,a,!0)},Lt.xv=function(a,y){Kf(this,a,y,!0)},Lt.Cx=function(a){return c0(this,a,!1)},Lt.Cv=function(a,y){Kf(this,a,y,!1)};function c0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ma(y,a),y===void 0?"":y)}function Kf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=ma(y,b);z===void 0&&(z=""),z!==x&&(Jo(y,b,x),Fa(a,E?"linkFromPortId":"linkToPortId",Mo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Jo(y,b,x)}}Lt.Ef=function(a){if(a===null)return f0;var y=this.je;return y===""?f0:(a=ma(a,y),a===void 0?f0:a)},Lt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=ma(a,x);if(E===void 0&&(E=f0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;zb||(E.splice(b,1),this.Jc(a)&&(lu(this,y,a),Fa(this,"linkLabelKeys",ua,x,a,y,null,b,null)))}else E!==void 0&&qt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Lt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ma(a,y),y!==void 0)){if(fd(y))return y;qt("Key value for link data "+a+" is not a number or a string: "+y)}}},Lt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=ma(a,x);E!==y&&this.jh(y)===null&&(Jo(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Fa(this,"linkKey",Mo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Jo(a,x,y)}},Lt.jh=function(a){return a===null&&qt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&fd(a)?this.wb.I(a):null},Lt.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))){Jo(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Jo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Jo(a,y,x)}}}}},Lt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Lt.fi=function(a){a!==null&&(jr(a),this.Jc(a)||FS(this,a,!0))};function FS(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&&qt("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)),Fa(a,"linkDataArray",Xo,"linkDataArray",a,null,y,null,E),cy(a,y)}Lt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)return;a.md.splice(E,1)}if(Fa(a,"linkDataArray",ua,"linkDataArray",a,y,null,E,null),x=dl(a,y,!0),lu(a,x,y),x=dl(a,y,!1),lu(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,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,st=this.radius;(!isFinite(st)||0>=st)&&(st=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===$l&&ot===Wc?rt=ql:rt===$l&&ot!==Wc&&(rt=this.arrangement),(this.direction===ec||this.direction===Yf)&&this.sorting!==Uf){for(ot=0;!(ot>=E.length)&&(a.add(E.M(ot)),!(ot+1>=E.length));ot+=2)x.add(E.M(ot+1));this.direction===ec?(this.arrangement===$l&&a.reverse(),E=new an,E.addAll(a),E.addAll(x)):(this.arrangement===$l&&x.reverse(),E=new an,E.addAll(x),E.addAll(a))}ot=E.length;for(var yt=z=b=0;ytvt&&(yt===0||yt===E.length-1)&&(Et/=2),b+=Et,z++}if(isNaN(st)||rt===$l){if(isNaN(y)&&(y=6),rt!==ql&&rt!==$l){for(z=-1/0,tt=0;ttst?(st=b,z=st*ut):tt=yt/(360<=vt?ot:ot-1)}if(this.kw=rt,this.lc=st,this.Zm=ut,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,rt=this.lc,st=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,ot=this.Jp,this.direction!==ec&&this.direction!==Yf||E!==$l)if(this.direction===ec||this.direction===Yf){switch(tt=0,E){case gd:tt=180*p0(this,rt,vt,st,ot)/Math.PI;break;case ql:ot=y=0,tt=a.first(),tt!==null&&(y=md(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=md(tt,Math.PI/2)),tt=180*p0(this,rt,vt,st,ft+(y+ot)/2)/Math.PI;break;case Bh:tt=ut/y.length}if(this.direction===ec){switch(E){case gd:xp(this,a,st,pd);break;case ql:Sp(this,a,st,pd);break;case Bh:yp(this,a,ut/2,st,pd)}switch(E){case gd:xp(this,x,st+tt,bs);break;case ql:Sp(this,x,st+tt,bs);break;case Bh:yp(this,x,ut/2,st+tt,bs)}}else{switch(E){case gd:xp(this,x,st,pd);break;case ql:Sp(this,x,st,pd);break;case Bh:yp(this,x,ut/2,st,pd)}switch(E){case gd:xp(this,a,st+tt,bs);break;case ql:Sp(this,a,st+tt,bs);break;case Bh:yp(this,a,ut/2,st+tt,bs)}}}else switch(E){case gd:xp(this,y,st,this.direction);break;case ql:Sp(this,y,st,this.direction);break;case Bh:yp(this,y,ut,st,this.direction);break;case $l:TS(this,y,ut,st,this.direction)}else TS(this,y,ut,st-ut/2,bs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function yp(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;otx){for(z=E+(b===bs?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));ft++)OS(a,ot,st,ut,ft,b,z)||IS(a,ot,st,ut,ft,b,z),ot=z.x,st=z.y;if(Dt.free(z),a.mj++,!(23Math.abs(yt)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(vt)?0:vt,ot=Math.abs(z)>Math.abs(ft)?0ft:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=ft.length-1));vt++)OS(a,ot,st,ft,vt,b,ut)||IS(a,ot,st,ft,vt,b,ut),ot=ut.x,st=ut.y;if(Dt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=st,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=st,!1;ut=!0}return st=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(st=-st),Math.abs(x-st)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=st,!1):(tt.x=z,tt.y=st,!0)}function IS(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,st=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===bs)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=st,tt.y=z;return}E=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=st,tt.y=z;return}E=!0}st=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==E&&(st=-st),tt.x=st,tt.y=z}ea.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ea.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 Dt(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))},ea.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(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 tt=0,rt=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),ot=0,st=0;st<=z;st++){E!==void 0&&b!==void 0?ot=E+st*b/z:ot=st*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function g0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function p0(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,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(E+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=b)return rt*a}}ea.prototype.sort=function(a){switch(this.sorting){case m0:break;case v0:a.reverse();break;case y0:a.sort(this.comparer);break;case S0:a.sort(this.comparer),a.reverse();break;case Uf:return this.ak(Dx(a));default:qt("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;xb&&(b=rt,z=tt)}else for(tt=0;ttb&&(b=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.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}ea.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[Pt]].indexOf(x[Pt===x.length-1?0:Pt+1])&&yt.push(Pt===x.length-1?0:Pt+1);if(yt.length===0)for(Pt=0;Ptx.indexOf(ke)||hex.indexOf(ke)||he=Et?he+1:he)),Rt+=he=Et&&he++,_t>=Et&&_t++,he>_t&&(te=_t,_t=he,he=te),_t-he<(x.length+2)/2==(heyt||yt===ut||(Pt=yt>ut?yt-ut:ut-yt,ft+=yttt-Pt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),E.splice(rt,1),rt--}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!==$l&&a!==ql&&a!==gd&&a!==Bh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==bs&&a!==pd&&a!==ec&&a!==Yf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==m0&&a!==v0&&a!==y0&&!S0&&a!==Uf||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==x0&&a!==Wc||(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 ql=new Ee(ea,"ConstantSpacing",0),gd=new Ee(ea,"ConstantDistance",1),Bh=new Ee(ea,"ConstantAngle",2),$l=new Ee(ea,"Packed",3),bs=new Ee(ea,"Clockwise",4),pd=new Ee(ea,"Counterclockwise",5),ec=new Ee(ea,"BidirectionalLeft",6),Yf=new Ee(ea,"BidirectionalRight",7),m0=new Ee(ea,"Forwards",8),v0=new Ee(ea,"Reverse",9),y0=new Ee(ea,"Ascending",10),S0=new Ee(ea,"Descending",11),Uf=new Ee(ea,"Optimized",12),x0=new Ee(ea,"Pythagorean",13),Wc=new Ee(ea,"Circular",14);ea.className="CircularLayout",ea.ConstantSpacing=ql,ea.ConstantDistance=gd,ea.ConstantAngle=Bh,ea.Packed=$l,ea.Clockwise=bs,ea.Counterclockwise=pd,ea.BidirectionalLeft=ec,ea.BidirectionalRight=Yf,ea.Forwards=m0,ea.Reverse=v0,ea.Ascending=y0,ea.Descending=S0,ea.Optimized=Uf,ea.Pythagorean=x0,ea.Circular=Wc;function Pp(){this.Pl=-1/0,this.tm=this.mk=null}Pp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0rt?(b=vt.x+vt.width/2,z=vt.y+vt.height/2,st[0]=new Dt(vt.x+vt.width+E.width,vt.y),st[1]=new Dt(vt.x,vt.y+vt.height+E.height),rt=2):(ot=zS(st,rt,b,z,vt.width,vt.height,E),ft=st[ot],yt=new Dt(ft.x+vt.width+E.width,ft.y),vt=new Dt(ft.x,ft.y+vt.height+E.height),ot+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=tt))){for(var st=rt=0,ut=ot.count-tt;utyt&&(yt=1),rt=se.sqrt((rt+yt+st*st*4/(tt*tt))/yt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new oe(z-vt.x-tt,ot-vt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Dt(vt.x+tt,vt.y+rt)}}return a.network=E,x}function Ix(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,tt=b.Tv;E.bounds=new oe(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Dt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ft.Vd?ot++:(rt=!0,st++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0>1)+st)*(rt%2===0?1:-1),ot.centerX=E+ut*Math.cos(ft),ot.centerY=b+ut*Math.sin(ft),rt++}}}}function zS(a,y,x,E,b,z,tt){var rt=9e19,ot=-1,st=0;t:for(;stut.y&&a[vt].x-ut.xut.x&&a[vt].y-ut.yy+z?(x=E+b-tt,a=a-y-z,se.sqrt(x*x+a*a)):a+xtt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,se.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,tt=1;ttz-x)?y.sort(function(Et,Vt){return Et===null||Vt===null||Et===Vt?0:Et.centerX-Vt.centerX}):y.sort(function(Et,Vt){return Et===null||Vt===null||Et===Vt?0:Et.centerY-Vt.centerY}),x=a.Zf;var st=E=rt=0;for(z=0;zx||st-ot>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var Pt=jS(tt,vt);1>Pt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new w0),Pt=E.random(),rt=E.random(),ot>st?(E=Math.abs(vt.bounds.right-tt.bounds.x),E=(1+E)*Pt):otyt?(st=Math.abs(vt.bounds.bottom-tt.bounds.y),st=(1+st)*rt):otft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new w0),rt=ft.random(),ft=ft.random(),E=(E>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,st=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),E=(ot-E)/ft*rt,st=(ut-tt)/ft*rt),x.forceX+=E,x.forceY+=st,z.forceX-=E,z.forceY-=st;for(b=E=0;ba.epsilonDistance*a.epsilonDistance}as.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},as.prototype.moveFixedVertex=function(){},as.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},as.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=So,y.toSpot=So)}},as.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=oe.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,oe.free(x)}x=oe.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()}oe.free(x)},as.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},as.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},as.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},as.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},as.prototype.electricalFieldX=function(){return 0},as.prototype.electricalFieldY=function(){return 0},as.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},as.prototype.gravitationalFieldX=function(){return 0},as.prototype.gravitationalFieldY=function(){return 0},as.prototype.isFixed=function(a){return a.isFixed},ln.Object.defineProperties(as.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&&0Et&&0Et&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utot;ut--)ft=E[ut],ft.near===st&&ft.Dj===st.Dj||rt++;var vt;if(0<=x)for(ot=E[tt].sourceEdgesArrayAccess,st=0;stEt||ft===Et&&yt>Pt)&&rt++,Vtft||Et===ft&&Pt>yt)&&rt++}}}if(0>=x){for(ot=E[tt].destinationEdgesArrayAccess,st=0;stEt||ft===Et&&ut>Vt)&&rt++,Ptft||Et===ft&&Vt>ut)&&rt++)}for(z[tt*b+tt]=rt,ot=tt+1;ot=x){for(rt=E[tt].destinationEdgesArrayAccess,_t=E[ot].destinationEdgesArrayAccess,st=0;st=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ut+=vt.column-1,ft++),ot!==null)for(vt=0;vt=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ut]=vt.column-1,ut++),rt=void 0,ot!==null)for(vt=0;vt>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return yd(a,y,E),z}function kp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,st=y.layer-ot.layer;rt=a.linkMinLength(rt),st===rt&&kp(a,ot,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,st=ot.layer-y.layer,rt=a.linkMinLength(rt),st===rt&&kp(a,ot,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}ro.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;jx(a)!==null;){for(b=VS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=VS(a);for(b=KS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=KS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,st=rt.destinationEdges;st.next();)st.value.toVertex.valid&&ot++;st=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&st++;(b===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case A0: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&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(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;xtt&&kp(a,rt,0,-1,!0,!1)}for(kp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var st=tt.value;if(st.component===1){var ut=0,ft=!1,vt=st.sourceEdgesArrayAccess;b=vt.length;for(var yt=0;ytz)&&!ut&&(rt=tt,z=st)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else rt.component=0}}}function QS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}ro.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case F0: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&&_S(this,x);break;case wy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function _S(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=tt;E--)z=zl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=zl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=zl(this,E,1)||z;for(b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=zl(this,E,-1)||z;for(b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=zl(this,E,0)||z;for(b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=zl(this,E,0)||z;b>=a?Ml(this,y):(a=b,y=js(this))}break;default:case b0:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())=tt;E--)z=zl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=zl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=zl(this,E,1)||z;for(b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=zl(this,E,-1)||z;for(b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=zl(this,E,0)||z;for(b>=a?Ml(this,y):(a=b,y=js(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=zl(this,E,0)||z;b>=a?Ml(this,y):(a=b,y=js(this))}}Ml(this,y)};function L0(a,y,x){var E=vd(a,y),b=a.tc[y],z=ZS(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(vt+=4*(Qt-z),yt+=4*(Qt-(z+1)))}for(te=E[z].destinationEdges.iterator,te.reset();te.next();)if(Qt=te.value,_t=Qt.toVertex,Qt.valid&&_t.layer===y){for(Qt=0;E[Qt]!==_t;)Qt++;Qt===z+1&&(yt+=1)}for(te=E[z+1].sourceEdges.iterator,te.reset();te.next();)if(Qt=te.value,_t=Qt.fromVertex,Qt.valid&&_t.layer===y){for(Qt=0;E[Qt]!==_t;)Qt++;Qtz+1&&(vt+=4*(Qt-(z+1)),yt+=4*(Qt-z))}for(te=E[z+1].destinationEdges.iterator,te.reset();te.next();)if(Qt=te.value,_t=Qt.toVertex,Qt.valid&&_t.layer===y){for(Qt=0;E[Qt]!==_t;)Qt++;Qt===z&&(vt+=1)}Qt=_t=0,te=tt[E[z].index];var he=rt[E[z].index],ke=tt[E[z+1].index],jn=rt[E[z+1].index];te!==-1&&(_t+=Math.abs(te-Pt),Qt+=Math.abs(te-Rt)),he!==-1&&(_t+=Math.abs(he-Pt),Qt+=Math.abs(he-Rt)),ke!==-1&&(_t+=Math.abs(ke-Et),Qt+=Math.abs(ke-Vt)),jn!==-1&&(_t+=Math.abs(jn-Et),Qt+=Math.abs(jn-Vt)),(yt>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=Jf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Jf(this,y,-1)||x;x=Jf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Jf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Jf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Jf(this,y,0)||x}}else Zx(this)};function Jf(a,y,x){for(var E=!1;Wx(a,y,x);)E=!0;return E}function Wx(a,y,x){var E,b=vd(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(E=0;EE-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,ft=E+1>=z||b[E+1].column-ut-1>vt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var Pt=vt=0,Et=0;if(0>=x)for(var Vt=b[E].sourceEdges.iterator;Vt.next();){var Rt=Vt.value,Qt=Rt.fromVertex;if(Rt.valid&&Qt.layer!==y){var _t=gy(Rt),te=Rt.portFromColOffset;Rt=Rt.portToColOffset,Qt=Qt.column,vt+=(Math.abs(ut+Rt-(Qt+te))+1)*_t,Pt+=(Math.abs(yt+Rt-(Qt+te))+1)*_t,Et+=(Math.abs(ft+Rt-(Qt+te))+1)*_t}}if(0<=x)for(Vt=b[E].destinationEdges.iterator;Vt.next();)Rt=Vt.value,Qt=Rt.toVertex,Rt.valid&&Qt.layer!==y&&(_t=gy(Rt),te=Rt.portFromColOffset,Rt=Rt.portToColOffset,Qt=Qt.column,vt+=(Math.abs(ut+te-(Qt+Rt))+1)*_t,Pt+=(Math.abs(yt+te-(Qt+Rt))+1)*_t,Et+=(Math.abs(ft+te-(Qt+Rt))+1)*_t);Rt=te=_t=0,Vt=tt[b[E].index],Qt=rt[b[E].index],Vt!==-1&&(_t+=Math.abs(Vt-ut),te+=Math.abs(Vt-yt),Rt+=Math.abs(Vt-ft)),Qt!==-1&&(_t+=Math.abs(Qt-ut),te+=Math.abs(Qt-yt),Rt+=Math.abs(Qt-ft)),Pt=tt[x]?ut=ot:st<=tt[x]&&(ut=st));ut!==rt&&(z=!0,E[x].column=ut)}yd(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=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 Gx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),ot=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&ot>=y&&(b[E.layer]=!0),rt<=x&&ot>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;xz?Ml(a,b):tty)for(x=a.Ra;0<=x;x--)for(b=js(a),z=C0(a),E=z+1;zz?Ml(a,b):ttx)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&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Zx(a){for(var y=ti(),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 sn,Vx(y,x);var z=null,tt=null,rt=null,ot=null,st=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(st&&(a.verticalAlignment(y,x,!0),z=k0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=k0(a,y,!1,!1)),E=Dn(y),b=E.next();!b.done;b=E.next())b.value.reverse();vt&&(a.verticalAlignment(y,x,!1),ot=k0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=k0(a,y,!0,!0)),ii(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(yt){var Pt=ti();st&&Pt.push(z.get(yt)),ut&&Pt.push(tt.get(yt)),ft&&Pt.push(rt.get(yt)),vt&&Pt.push(ot.get(yt)),Pt.sort(function(Vt,Rt){return Vt-Rt});var Et=Pt.length;Et=(Pt[Math.floor((Et-1)/2)]+Pt[Math.ceil((Et-1)/2)])/2,ii(Pt),yt.zc=Et})}function Vx(a,y){for(var x=a.length,E=1;Eut)&&y.add(ft);z++}b=ut}}}ro.prototype.verticalAlignment=function(a,y,x){Kx(a),a=Dn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Dn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?My(z):Xx(z),rt=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0a&&qt("Could not determine previous vertex in layer"),y[x][a-1]}ro.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var rt=Yx(this,y[tt],E,b,tt);rttt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(ot){return function(st){st.value+=ot.delta}}(z)));ii(E),ii(b)};function Yx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rttt&&(tt=rt+ot)}),x[b]=z,E[b]=tt,tt-z}ro.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=M0(this,!0),y=M0(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 M0(a,y){return a.K===270?y?xo:qo:a.K===90?y?qo:xo:a.K===180?y?so:no:y?no:so}ro.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=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Et++,te,ft+ke),y.m(Et++,te,ft),y.m(Et++,te,ft-_t)):(y.m(Et++,te,he+ke),y.m(Et++,te,he),y.m(Et++,te,he-_t)):this.K===270?he<=ft.bounds.y?(ft=ft.bounds.y,y.m(Et++,te,ft-_t),y.m(Et++,te,ft),y.m(Et++,te,ft+ke)):(y.m(Et++,te,he-_t),y.m(Et++,te,he),y.m(Et++,te,he+ke)):this.K===0&&(te>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Et++,ft+ke,he),y.m(Et++,ft,he),y.m(Et++,ft-_t,he)):(y.m(Et++,te+ke,he),y.m(Et++,te,he),y.m(Et++,te-_t,he)));else{y.m(Et++,Rt,Qt);var jn=0;this.K===180||this.K===0?((this.K===180?te>=ft.bounds.right:te<=ft.bounds.x)&&(jn=(this.K===0?-_t:ke)/2),y.m(Et++,Rt+jn,he)):((this.K===270?he>=ft.bounds.bottom:he<=ft.bounds.y)&&(jn=(this.K===90?-_t:ke)/2),y.m(Et++,te,Qt+jn)),y.m(Et++,te,he)}}else _t=Math.max(10,this.he[Vt.layer]),ke=Math.max(10,this.Ld[Vt.layer]),vt?this.K===180?(y.m(Et++,te-_t-Pt,he),y.m(Et++,Math.min(te-_t+Pt/2,te),he),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,Math.max(te+ke-Pt/2,te),he),y.m(Et++,te+ke+Pt,he)):this.K===90?(y.m(Et++,te,he+ke+Pt),y.m(Et++,te,Math.max(he+ke-Pt/2,he)),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,te,Math.min(he-_t+Pt/2,he)),y.m(Et++,te,he-_t-Pt)):this.K===270?(y.m(Et++,te,he-_t-Pt),y.m(Et++,te,Math.min(he-_t+Pt/2,he)),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,te,Math.max(he+ke-Pt/2,he)),y.m(Et++,te,he+ke+Pt)):(y.m(Et++,te+ke+Pt,he),y.m(Et++,Math.max(te+ke-Pt/2,te),he),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,Math.min(te-_t+Pt/2,te),he),y.m(Et++,te-_t-Pt,he)):y.m(Et++,te,he)}ft=Vt}(rt===null||st!==wi||yt)&&(Rt=y.i(Et-1).x,Qt=y.i(Et-1).y,te=y.i(Et).x,he=y.i(Et).y,yt?(Pt=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Qt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?te>=ut.bounds.x:te<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Pt:Pt),yt=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?he>=ut.bounds.y:he<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Pt:Pt),yt=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Et-2,ft,Qt),y.L(Et-1,ft+ke,Qt)):this.K===90&&he<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Et-2,Rt,ft),y.L(Et-1,Rt,ft-_t)):this.K===270&&he>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Et-2,Rt,ft),y.L(Et-1,Rt,ft+ke)):this.K===0&&te<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Et-2,ft,Qt),y.L(Et-1,ft-_t,Qt))):(_t=Math.max(10,this.he[ut.layer]),ke=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?te<=ut.bounds.x:te>=ut.bounds.right)&&(yt=(this.K===0?ke:-_t)/2),y.m(Et++,te+yt,Qt)):((this.K===270?he<=ut.bounds.y:he>=ut.bounds.bottom)&&(yt=(this.K===90?ke:-_t)/2),y.m(Et++,Rt,he+yt)),y.m(Et++,te,he)))}else{for(;ut!==null&&ut!==ft;){for(_t=Vt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Rt=ut.value,Rt.link!==x.link||(Vt=Rt.toVertex,_t=Rt.fromVertex,_t.node!==null&&(_t=null),Vt.node!==null)););if(Vt===null)break;Vt!==ft&&(Rt=y.i(Et-1).x,Qt=y.i(Et-1).y,te=Vt.centerX,he=Vt.centerY,yt?this.K===180||this.K===0?(_t!==null?_t.centerY:Qt)!==he&&(_t=this.Ta[Vt.layer]+this.Rf.x,Et===y.firstPickIndex+1&&(_t=this.K===0?Math.max(_t,Rt):Math.min(_t,Rt)),y.m(Et++,_t,Qt),y.m(Et++,_t,he)):(_t!==null?_t.centerX:Rt)!==te&&(_t=this.Ta[Vt.layer]+this.Rf.y,Et===y.firstPickIndex+1&&(_t=this.K===90?Math.max(_t,Qt):Math.min(_t,Qt)),y.m(Et++,Rt,_t),y.m(Et++,te,_t)):(_t=Math.max(10,this.he[Vt.layer]),ke=Math.max(10,this.Ld[Vt.layer]),vt?this.K===180?(y.m(Et++,te+ke+Pt,he),y.m(Et++,Math.max(te+ke-Pt/2,te),he),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,Math.min(te-_t+Pt/2,te),he),y.m(Et++,te-_t-Pt,he)):this.K===90?(y.m(Et++,te,he-_t-Pt),y.m(Et++,te,Math.min(he-_t+Pt/2,he)),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,te,Math.max(he+ke-Pt/2,he)),y.m(Et++,te,he+ke+Pt)):this.K===270?(y.m(Et++,te,he+ke+Pt),y.m(Et++,te,Math.max(he+ke-Pt/2,he)),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,te,Math.min(he-_t+Pt/2,he)),y.m(Et++,te,he-_t-Pt)):(y.m(Et++,te-_t-Pt,he),y.m(Et++,Math.min(te-_t+Pt/2,te),he),y.m(Et++,te,he),y.m(Et++,te,he),y.m(Et++,Math.max(te+ke-Pt/2,te),he),y.m(Et++,te+ke+Pt,he)):this.K===180?(y.m(Et++,te+ke,he),y.m(Et++,te-_t,he)):this.K===90?(y.m(Et++,te,he-_t),y.m(Et++,te,he+ke)):this.K===270?(y.m(Et++,te,he+ke),y.m(Et++,te,he-_t)):(y.m(Et++,te-_t,he),y.m(Et++,te+ke,he)))),ut=Vt}yt&&(Rt=y.i(Et-1).x,Qt=y.i(Et-1).y,te=y.i(Et).x,he=y.i(Et).y,this.K===180||this.K===0?Qt!==he&&(_t=this.K===0?Math.min(Math.max((te+Rt)/2,this.Ta[ft.layer]+this.Rf.x),te):Math.max(Math.min((te+Rt)/2,this.Ta[ft.layer]+this.Rf.x),te),y.m(Et++,_t,Qt),y.m(Et++,_t,he)):Rt!==te&&(_t=this.K===90?Math.min(Math.max((he+Qt)/2,this.Ta[ft.layer]+this.Rf.y),he):Math.max(Math.min((he+Qt)/2,this.Ta[ft.layer]+this.Rf.y),he),y.m(Et++,Rt,_t),y.m(Et++,te,_t)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=st===wi?y.getLinkPointFromPoint(b,tt,tt.ga($n),y.i(3),!0):y.i(0),st===wi&&(st=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+st.x)/2,st.y),y.L(2,E.x,(st.y+E.y)/2)):(y.L(1,st.x,(tt.y+st.y)/2),y.L(2,(st.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=ot===wi?y.getLinkPointFromPoint(z,rt,rt.ga($n),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===wi&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(b.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},ro.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&&(ut=st.y>z.y?0:tt.xz.x&&(ut=st.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Lt.Ux=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Lt.Js=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Lt.B=function(a,y){return a-=y,-1a},Lt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&qt("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 A0=new Ee(ro,"CycleDepthFirst",0),Sy=new Ee(ro,"CycleGreedy",1),Mp=new Ee(ro,"CycleFromLayers",2),E0=new Ee(ro,"LayerOptimalLinkLength",0),xy=new Ee(ro,"LayerLongestPathSink",1),Py=new Ee(ro,"LayerLongestPathSource",2),F0=new Ee(ro,"InitDepthFirstOut",0),wy=new Ee(ro,"InitDepthFirstIn",1),Cy=new Ee(ro,"InitNaive",2),Ly=new Ee(ro,"AggressiveNone",0),b0=new Ee(ro,"AggressiveLess",1),ky=new Ee(ro,"AggressiveMore",2),Ux=8;ro.className="LayeredDigraphLayout",ro.CycleDepthFirst=A0,ro.CycleGreedy=Sy,ro.CycleFromLayers=Mp,ro.LayerOptimalLinkLength=E0,ro.LayerLongestPathSink=xy,ro.LayerLongestPathSource=Py,ro.InitDepthFirstOut=F0,ro.InitDepthFirstIn=wy,ro.InitNaive=Cy,ro.AggressiveNone=Ly,ro.AggressiveLess=b0,ro.AggressiveMore=ky,ro.PackNone=0,ro.PackExpand=1,ro.PackStraighten=2,ro.PackMedian=4,ro.PackAll=15,ro.AlignNone=0,ro.AlignUpperLeft=1,ro.AlignUpperRight=2,ro.AlignLowerLeft=4,ro.AlignLowerRight=8,ro.AlignAll=15;function Sd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Sd.className="SegInfo";function Qf(a){To.call(this,a)}Te(Qf,To),Qf.prototype.createVertex=function(){return new Al(this)},Qf.prototype.createEdge=function(){return new Ap(this)},Qf.className="LayeredDigraphNetwork";function Al(a){Na.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}Te(Al,Na);function ix(a,y){return a.index-y.index}function N0(a,y){if(!a.$n){for(var x=[],E=Dn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Dn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;qt("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=Dn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=Dn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}Al.prototype.Cl=function(a){Na.prototype.Cl.call(this,a),this.bo=this.co=null},Al.prototype.Kl=function(a){Na.prototype.Kl.call(this,a),this.bo=this.co=null},Al.prototype.zl=function(a){Na.prototype.zl.call(this,a),this.$n=this.ao=null},Al.prototype.Jl=function(a){Na.prototype.Jl.call(this,a),this.$n=this.ao=null},ln.Object.defineProperties(Al.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Al.prototype.deleteDestinationEdge=Al.prototype.Jl,Al.prototype.addDestinationEdge=Al.prototype.zl,Al.prototype.deleteSourceEdge=Al.prototype.Kl,Al.prototype.addSourceEdge=Al.prototype.Cl,Al.className="LayeredDigraphVertex";function Ap(a){tl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Te(Ap,tl),ln.Object.defineProperties(Ap.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Ap.className="LayeredDigraphEdge";function Pr(a){_o.call(this),this.Ub=new sn,this.Wn=O0,this.ud=Gu,this.vo=R0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=z0,this.$d=new Yt(10,10).freeze();var y=new Kc(this);this.W=new jl(y),this.Y=new jl(y),this.ru=[],a&&Object.assign(this,a)}Te(Pr,_o),Pr.prototype.cloneProtected=function(a){_o.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)},Pr.prototype.qb=function(a){a.classType===Pr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:qt("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},Pr.prototype.createNetwork=function(){return new Kc(this)},Pr.prototype.makeNetwork=function(a){function y(E){if(E instanceof Kn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof xn){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 Me?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof er?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Pr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==j0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Me&&(y=a),this.path===O0&&y!==null?this.ud=y.isTreePathToChildren?Gu:Zc:this.ud=this.path===O0?Gu:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Pr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;bb?hx(this,a,tt,Yi,Rt,Qt):dx(this,a,tt,Yi,Rt,Qt),Yi=Qt.x,Rt=Qt.width,Qt=Qt.height;break;case Ih:for(te=0;teft&&(fiGa&&(Gc(a,-Ga,0,$i,Ur-1),B0(te,-Ga,0),B0(he,-Ga,0),Ga=0)}Eo.S.h(Ga,ei),Rt=Math.max(Rt,ke),Qt=Math.max(Qt,_t+(Sn===0?0:Pt)+Oa.height),fi=ke}else 0ft&&(eiGa&&(Gc(a,0,-Ga,$i,Ur-1),B0(te,0,-Ga),B0(he,0,-Ga),Ga=0)),Eo.S.h(fi,Ga),Qt=Math.max(Qt,jn),Rt=Math.max(Rt,_t+(Sn===0?0:Pt)+Oa.width),ei=jn;_e++}switch(0st&&(st=0),135Et&&(Et=0),ot===ah&&(rt+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Rt&&(Rt=Ny(ot,E-Rt,0),tt=Rt.x,rt=Rt.y,Rt=E,st=0):Rt=Fy(a,Rt,st),0>st&&(tt-=st,st=0),135Qt&&(Qt=Ny(ot,0,Vt-Qt),tt=Qt.x,rt=Qt.y,Qt=Vt,Et=0):Qt=by(a,Qt,Et),0>Et&&(rt-=Et,Et=0),tt+=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])),Sn[0].h(st+E,0),Sn[1].h(Sn[0].x,Vt),Sn[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])),Sn[0].h(0,Et+Vt),Sn[1].h(E,Sn[0].y),Sn[2].xE?hx(a,y,b,_e,_t,te):dx(a,y,b,_e,_t,te),_e=te.x,_t=te.width,te=te.height;break;case Ih:for(vt=0;vtvt&&(kevt&&(jnft&&(ft=0),135Rt&&(Rt=0)),y.la.h(ft,Rt),y.Da.h(_t,te)}}Pr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new oe(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new oe(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=tu(y)===90,ut=0,ft=0,vt=0,yt=0;ytst&&(b-=st),z=Math.max(z,Math.max(yt,vt)+a+tt.height),0>x.S.x&&(E=T0(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Pt,ft)+a+tt.width),vt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(E=T0(y,x.S.y,!0,E,rt)))),new oe(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new oe(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new oe(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=tu(y)===270,ut=0,ft=0,vt=0,yt=0;ytft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(yt,vt))+a+ut.height),0>ot.S.x&&(E=T0(y,ot.S.x,!1,E,rt))):(ot.S.h(-b-ut.width-a,E+rt/2-ot.focus.y-ot.la.y),b=Math.max(b,Math.abs(Math.min(Pt,ft))+a+ut.width),vt=E+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>ot.S.y&&(E=T0(y,ot.S.y,!0,E,rt)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Zu:return a.width>y?a.width:y;case Vu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Oh:case Ku:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ih:return a.width-a.focus.x+a.nodeSpacing/2+y;case ah:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function by(a,y,x){switch(a.alignment){case Vc:case qf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Zu:return a.height>y?a.height:y;case Vu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Oh:case Ku:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ih:return a.height-a.focus.y+a.nodeSpacing/2+y;case ah:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case qf:y/=2,x/=2;break;case Vc:y/=2,x/=2;break;case Zu:x=y=0;break;case Vu:break;default:qt("Unhandled alignment value "+a.toString())}return new Dt(y,x)}function nc(a,y,x,E,b,z){y=Ny(y,x,E),Gc(a,y.x,y.y,b,z)}function Gc(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 D0(a,y,x,E){var b=y.parent;switch(a.ud){case Gu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Zc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:qt("Unhandled path value "+a.ud.toString())}}function B0(a,y,x){for(var E=0;Eft.length||yt===null||2>yt.length))for(b=x=0;xst&&z.yz.y&&sty.length||x===null||2>x.length)E=null;else{for(ut=Ks(a,y.length+x.length),E=z=ot=0;zot;)st=x[z++],ut[E++].h(st.x+b,st.y);for(x=Ks(a,E),ot=0;otft.length||z===null||2>z.length)b=null;else{for(ut=Ks(a,ft.length+z.length),b=st=x=0;xz;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=Ks(a,b),x=0;xft.length||yt===null||2>yt.length))for(b=x=0;xot&&z.xz.x&&oty.length||x===null||2>x.length)E=null;else{for(ut=Ks(a,y.length+x.length),E=z=ot=0;zot;)st=x[z++],ut[E++].h(st.x,st.y+b);for(x=Ks(a,E),ot=0;otft.length||z===null||2>z.length)b=null;else{for(ut=Ks(a,ft.length+z.length),b=st=x=0;xz;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=Ks(a,b),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Pr.prototype.computeLayerSpacing=function(a){var y=tu(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!==I0&&a!==Tp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==_f&&a!==Fp&&a!==bp&&!Np||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==I0&&a!==Tp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var O0=new Ee(Pr,"PathDefault",-1),Gu=new Ee(Pr,"PathDestination",0),Zc=new Ee(Pr,"PathSource",1),_f=new Ee(Pr,"SortingForwards",10),Fp=new Ee(Pr,"SortingReverse",11),bp=new Ee(Pr,"SortingAscending",12),Np=new Ee(Pr,"SortingDescending",13),qf=new Ee(Pr,"AlignmentCenterSubtrees",20),Vc=new Ee(Pr,"AlignmentCenterChildren",21),Zu=new Ee(Pr,"AlignmentStart",22),Vu=new Ee(Pr,"AlignmentEnd",23),Oh=new Ee(Pr,"AlignmentBus",24),Ku=new Ee(Pr,"AlignmentBusBranching",25),Ih=new Ee(Pr,"AlignmentTopLeftBus",26),ah=new Ee(Pr,"AlignmentBottomRightBus",27),I0=new Ee(Pr,"CompactionNone",30),Tp=new Ee(Pr,"CompactionBlock",31),R0=new Ee(Pr,"StyleLayered",40),Dy=new Ee(Pr,"StyleLastParents",41),By=new Ee(Pr,"StyleAlternating",42),Oy=new Ee(Pr,"StyleRootOnly",43),z0=new Ee(Pr,"ArrangementVertical",50),Iy=new Ee(Pr,"ArrangementHorizontal",51),j0=new Ee(Pr,"ArrangementFixedRoots",52),Ry=new Ee(Pr,"LayerIndividual",60),zy=new Ee(Pr,"LayerSiblings",61),W0=new Ee(Pr,"LayerUniform",62);Pr.className="TreeLayout",Pr.PathDefault=O0,Pr.PathDestination=Gu,Pr.PathSource=Zc,Pr.SortingForwards=_f,Pr.SortingReverse=Fp,Pr.SortingAscending=bp,Pr.SortingDescending=Np,Pr.AlignmentCenterSubtrees=qf,Pr.AlignmentCenterChildren=Vc,Pr.AlignmentStart=Zu,Pr.AlignmentEnd=Vu,Pr.AlignmentBus=Oh,Pr.AlignmentBusBranching=Ku,Pr.AlignmentTopLeftBus=Ih,Pr.AlignmentBottomRightBus=ah,Pr.CompactionNone=I0,Pr.CompactionBlock=Tp,Pr.StyleLayered=R0,Pr.StyleLastParents=Dy,Pr.StyleAlternating=By,Pr.StyleRootOnly=Oy,Pr.ArrangementVertical=z0,Pr.ArrangementHorizontal=Iy,Pr.ArrangementFixedRoots=j0,Pr.LayerIndividual=Ry,Pr.LayerSiblings=zy,Pr.LayerUniform=W0;function Kc(a){To.call(this,a)}Te(Kc,To),Kc.prototype.createVertex=function(){return new jl(this)},Kc.prototype.createEdge=function(){return new $f(this)},Kc.className="TreeNetwork";function jl(a){Na.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 Dt(0,0),this.Da=new Yt(0,0),this.la=new Dt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=_f,this.hd=ry,this.Kb=0,this.Jb=Vc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Tp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=So,this.wr=!0,this.Dp=So}Te(jl,Na),jl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},ln.Object.defineProperties(jl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Zu?(z=E.top+b.y,b.y===0&&ft.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Zu?(z=E.left+b.x,b.x===0&&ft.xyt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Zu?(z=E.top+b.y,b.y===0&&ft.yyt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Zu?(z=E.left+b.x,b.x===0&&ft.x0&&jt[jt.length-1])||Le[0]!==6&&Le[0]!==2)){Ut=0;continue}if(Le[0]===3&&(!jt||Le[1]>jt[0]&&Le[1]',"select"),this.addActionButton(Ft,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ft,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ft,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ft,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ft,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ft,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ft,'',"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(Mt){var Ut=document.createElement("div");Ut.className=""+xt.toolbarButtonStyleClass.name,Ut.setAttribute("data-type-name",Mt.typeName),Ut.innerHTML=Mt.icon,Ut.addEventListener("click",function(){xt.markerToolbarButtonClicked(Ut,Mt)}),xt.buttons.push(Ut),xt.markerButtons.push(Ut)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var jt=document.createElement("div");jt.className=this.toolbarBlockStyleClass.name,jt.style.whiteSpace="nowrap",jt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(jt),this.addActionButton(jt,'',"render"),this.addActionButton(jt,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},It.prototype.addButtonClickListener=function(Ct){this.buttonClickListeners.push(Ct)},It.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},It.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},It.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xt=0;xt0&&this.buttonClickListeners.forEach(function(Ft){return Ft("marker",xt)}),this.markerButtonOverflowBlock.style.display="none"},It.prototype.actionToolbarButtonClicked=function(Ct,xt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ft){return Ft("action",xt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},It.prototype.setActiveButton=function(Ct){this.resetButtonStyles(),Ct.className=Ct.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},It.prototype.setActiveMarkerButton=function(Ct){var xt=this.markerButtons.find(function(Ft){return Ft.getAttribute("data-type-name")===Ct});xt&&this.setActiveButton(xt)},It.prototype.setCurrentMarker=function(Ct){var xt=this;this.currentMarker=Ct,this.buttons.filter(function(Ft){return/delete|notes/.test(Ft.getAttribute("data-action"))}).forEach(function(Ft){xt.currentMarker===void 0?(Ft.style.fillOpacity="0.4",Ft.style.pointerEvents="none"):(Ft.style.fillOpacity="1",Ft.style.pointerEvents="all")})},It}(),bt=function(){function It(Ct,xt,Ft,jt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ct,this.displayMode=xt,this.uiStyleSettings=Ft,this.styles=jt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return It.prototype.addStyles=function(){var Ct;this.toolboxStyleClass=this.styles.addClass(new ie("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new ie("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var xt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ie("toolbox-panel-row_colors",` background-color: `+((Ct=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ct!==void 0?Ct:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px; padding: `+xt+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new He("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new He("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},It.prototype.show=function(Ct){var xt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},It.prototype.setPanelButtons=function(Ct){var xt,Ft,jt=this;this.panels=Ct,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ft=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ft!==void 0?Ft:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Mt){var Ut;Mt.uiStyleSettings=jt.uiStyleSettings;var Fe=document.createElement("div");Fe.className=jt.toolboxButtonStyleClass.name+" "+((Ut=jt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:jt.toolboxButtonStyleColorsClass.name),Fe.innerHTML=Mt.icon,Fe.title=Mt.title,Fe.addEventListener("click",function(){jt.panelButtonClick(Mt)}),jt.panelButtons.push(Fe),jt.buttonRow.appendChild(Fe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},It.prototype.panelButtonClick=function(Ct){var xt=this,Ft=-1;if(Ct!==this.activePanel){Ft=this.panels.indexOf(Ct),this.panelRow.innerHTML="";var jt=Ct.getUi();jt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(jt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Ct}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xt.displayMode==="inline"?xt.panelRow.style.display="none":xt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Mt,Ut){var Fe,Se;Mt.className=xt.toolboxButtonStyleClass.name+" "+(Ut===Ft?""+((Fe=xt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Fe!==void 0?Fe:xt.toolboxActiveButtonStyleColorsClass.name):""+((Se=xt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Se!==void 0?Se:xt.toolboxButtonStyleColorsClass.name))})},It}(),nt=function(It,Ct){this.title=It,this.icon=Ct},et=function(It){function Ct(xt,Ft,jt,Mt){var Ut=It.call(this,xt,Mt||'')||this;return Ut.colors=[],Ut.addTransparent=!1,Ut.colorBoxes=[],Ut.colors=Ft,Ut.currentColor=jt,Ut.setCurrentColor=Ut.setCurrentColor.bind(Ut),Ut.getColorBox=Ut.getColorBox.bind(Ut),Ut}return ee(Ct,It),Ct.prototype.getUi=function(){var xt=this,Ft=document.createElement("div");return Ft.style.overflow="hidden",Ft.style.whiteSpace="nowrap",this.colors.forEach(function(jt){var Mt=xt.getColorBox(jt);Ft.appendChild(Mt),xt.colorBoxes.push(Mt)}),Ft},Ct.prototype.getColorBox=function(xt){var Ft=this,jt=this.uiStyleSettings.toolbarHeight/4,Mt=this.uiStyleSettings.toolbarHeight-jt,Ut=document.createElement("div");Ut.style.display="inline-block",Ut.style.boxSizing="content-box",Ut.style.width=Mt-2+"px",Ut.style.height=Mt-2+"px",Ut.style.padding="1px",Ut.style.marginRight="2px",Ut.style.marginBottom="2px",Ut.style.borderWidth="2px",Ut.style.borderStyle="solid",Ut.style.borderRadius=(Mt+2)/2+"px",Ut.style.borderColor=xt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ut.addEventListener("click",function(){Ft.setCurrentColor(xt,Ut)});var Fe=document.createElement("div");return Fe.style.display="inline-block",Fe.style.width=Mt-2+"px",Fe.style.height=Mt-2+"px",Fe.style.backgroundColor=xt,Fe.style.borderRadius=Mt/2+"px",xt==="transparent"&&(Fe.style.fill=this.uiStyleSettings.toolboxAccentColor,Fe.innerHTML=` `),Ut.appendChild(Fe),Ut},Ct.prototype.setCurrentColor=function(xt,Ft){var jt=this;this.currentColor=xt,this.colorBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===Ft?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xt)},Ct}(nt),ct=function(){function It(Ct,xt,Ft){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=xt,this.globalSettings=Ft,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(It.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),It.prototype.ownsTarget=function(Ct){return!1},Object.defineProperty(It.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),It.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},It.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},It.prototype.pointerDown=function(Ct,xt){},It.prototype.dblClick=function(Ct,xt){},It.prototype.manipulate=function(Ct){},It.prototype.pointerUp=function(Ct){this.stateChanged()},It.prototype.dispose=function(){},It.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},It.prototype.getState=function(){return{typeName:It.typeName,state:this.state,notes:this.notes}},It.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},It.prototype.scale=function(Ct,xt){},It.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},It.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},It.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},It.typeName="MarkerBase",It}(),lt=function(){function It(){this.findGripByVisual=this.findGripByVisual.bind(this)}return It.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},It}(),gt=function(){function It(){this.GRIP_SIZE=10,this.visual=Ht.createGroup(),this.visual.appendChild(Ht.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ht.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return It.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},It}(),mt=function(){function It(){}return It.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},It.toSVGMatrix=function(Ct,xt){return Ct.a=xt.a,Ct.b=xt.b,Ct.c=xt.c,Ct.d=xt.d,Ct.e=xt.e,Ct.f=xt.f,Ct},It}(),St=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.left=0,Mt.top=0,Mt.width=0,Mt.height=0,Mt.defaultSize={x:50,y:20},Mt.offsetX=0,Mt.offsetY=0,Mt.rotationAngle=0,Mt.CB_DISTANCE=10,Mt._suppressMarkerCreateEvent=!1,Mt.container.transform.baseVal.appendItem(Ht.createTransform()),Mt.setupControlBox(),Mt}return ee(Ct,It),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(xt){this._visual=xt;var Ft=Ht.createTransform();this._visual.transform.baseVal.appendItem(Ft)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(xt){return!!It.prototype.ownsTarget.call(this,xt)||!!(this.controlGrips.findGripByVisual(xt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.state==="new"&&(this.left=xt.x,this.top=xt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var jt=this.unrotatePoint(xt);if(this.manipulationStartX=jt.x,this.manipulationStartY=jt.y,this.offsetX=jt.x-this.left,this.offsetY=jt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ft),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ft)){this.activeGrip=this.rotatorGrip;var Mt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Mt.x-this.width/2,this.top=Mt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ut=this.container.transform.baseVal.getItem(0);Ut.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ut,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(xt){var Ft=this.state;It.prototype.pointerUp.call(this,xt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xt),this._state="select",Ft==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(xt){this.visual.style.transform="translate("+xt.x+"px, "+xt.y+"px)"},Ct.prototype.manipulate=function(xt){var Ft=this.unrotatePoint(xt);this.state==="creating"?this.resize(xt):this.state==="move"?(this.left=this.manipulationStartLeft+(Ft.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ft.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ft):this.state==="rotate"&&this.rotate(xt)},Ct.prototype.resize=function(xt){var Ft=this.manipulationStartLeft,jt=this.manipulationStartWidth,Mt=this.manipulationStartTop,Ut=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ft=this.manipulationStartLeft+xt.x-this.manipulationStartX,jt=this.manipulationStartWidth+this.manipulationStartLeft-Ft;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:jt=this.manipulationStartWidth+xt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Mt=this.manipulationStartTop+xt.y-this.manipulationStartY,Ut=this.manipulationStartHeight+this.manipulationStartTop-Mt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ut=this.manipulationStartHeight+xt.y-this.manipulationStartY}jt>=0?(this.left=Ft,this.width=jt):(this.left=Ft+jt,this.width=-jt),Ut>=0?(this.top=Mt,this.height=Ut):(this.top=Mt+Ut,this.height=-Ut),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(xt){if(Math.abs(xt.x-this.centerX)>.1){var Ft=Math.sign(xt.x-this.centerX);this.rotationAngle=180*Math.atan((xt.y-this.centerY)/(xt.x-this.centerX))/Math.PI+90*Ft,this.applyRotation()}},Ct.prototype.applyRotation=function(){var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0)},Ct.prototype.rotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Ft=this.container.getCTM(),jt=Ht.createPoint(xt.x,xt.y);return{x:(jt=jt.matrixTransform(Ft)).x,y:jt.y}},Ct.prototype.unrotatePoint=function(xt){if(this.rotationAngle===0)return xt;var Ft=this.container.getCTM();Ft=Ft.inverse();var jt=Ht.createPoint(xt.x,xt.y);return{x:(jt=jt.matrixTransform(Ft)).x,y:jt.y}},Ct.prototype.select=function(){It.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){It.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=Ht.createGroup();var xt=Ht.createTransform();xt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xt),this.container.appendChild(this.controlBox),this.controlRect=Ht.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ht.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new lt,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var xt=this.controlBox.transform.baseVal.getItem(0);xt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Ct.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new gt;return xt.visual.transform.baseVal.appendItem(Ht.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.controlGrips.topLeft.GRIP_SIZE,Ft=-xt/2,jt=Ft,Mt=(this.width+this.CB_DISTANCE)/2-xt/2,Ut=(this.height+this.CB_DISTANCE)/2-xt/2,Fe=this.height+this.CB_DISTANCE-xt/2,Se=this.width+this.CB_DISTANCE-xt/2;this.positionGrip(this.controlGrips.topLeft.visual,Ft,jt),this.positionGrip(this.controlGrips.topCenter.visual,Mt,jt),this.positionGrip(this.controlGrips.topRight.visual,Se,jt),this.positionGrip(this.controlGrips.centerLeft.visual,Ft,Ut),this.positionGrip(this.controlGrips.centerRight.visual,Se,Ut),this.positionGrip(this.controlGrips.bottomLeft.visual,Ft,Fe),this.positionGrip(this.controlGrips.bottomCenter.visual,Mt,Fe),this.positionGrip(this.controlGrips.bottomRight.visual,Se,Fe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Mt,jt-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(xt,Ft,jt){var Mt=xt.transform.baseVal.getItem(0);Mt.setTranslate(Ft,jt),xt.transform.baseVal.replaceItem(Mt,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},It.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){It.prototype.restoreState.call(this,xt);var Ft=xt;this.left=Ft.left,this.top=Ft.top,this.width=Ft.width,this.height=Ft.height,this.rotationAngle=Ft.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ft.containerTransformMatrix))},Ct.prototype.scale=function(xt,Ft){It.prototype.scale.call(this,xt,Ft);var jt=this.rotatePoint({x:this.left,y:this.top}),Mt=this.unrotatePoint({x:jt.x*xt,y:jt.y*Ft});this.left=Mt.x,this.top=Mt.y,this.width=this.width*xt,this.height=this.height*Ft,this.adjustControlBox()},Ct}(ct),kt=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.opacity=1,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!(!It.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=Ht.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){It.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){It.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.setSize=function(){It.prototype.setSize.call(this),Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){It.prototype.pointerUp.call(this,xt),this.setSize()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&Ht.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&Ht.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&Ht.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&Ht.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},It.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){var Ft=xt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.opacity=Ft.opacity,this.createVisual(),It.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Ft){It.prototype.scale.call(this,xt,Ft),this.setSize()},Ct.title="Rectangle marker",Ct}(St),zt=function(It){function Ct(xt,Ft,jt,Mt){var Ut=It.call(this,xt,Mt||'')||this;return Ut.widths=[],Ut.widthBoxes=[],Ut.widths=Ft,Ut.currentWidth=jt,Ut.setCurrentWidth=Ut.setCurrentWidth.bind(Ut),Ut}return ee(Ct,It),Ct.prototype.getUi=function(){var xt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.widths.forEach(function(jt){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.flexGrow="2",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.borderColor=jt===xt.currentWidth?xt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){xt.setCurrentWidth(jt,Mt)}),Ft.appendChild(Mt);var Ut=document.createElement("div");Ut.innerText=jt.toString(),Ut.style.marginRight="5px",Mt.appendChild(Ut);var Fe=document.createElement("div");Fe.style.minHeight="20px",Fe.style.flexGrow="2",Fe.style.display="flex",Fe.style.alignItems="center";var Se=document.createElement("hr");Se.style.minWidth="20px",Se.style.border="0px",Se.style.borderTop=jt+"px solid "+xt.uiStyleSettings.toolboxColor,Se.style.flexGrow="2",Fe.appendChild(Se),Mt.appendChild(Fe),xt.widthBoxes.push(Mt)}),Ft},Ct.prototype.setCurrentWidth=function(xt,Ft){var jt=this;this.currentWidth=xt,this.widthBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===Ft?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(nt),Gt=function(It){function Ct(xt,Ft,jt,Mt){var Ut=It.call(this,xt,Mt||'')||this;return Ut.styles=[],Ut.styleBoxes=[],Ut.styles=Ft,Ut.currentStyle=jt,Ut.setCurrentStyle=Ut.setCurrentStyle.bind(Ut),Ut}return ee(Ct,It),Ct.prototype.getUi=function(){var xt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.styles.forEach(function(jt){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.overflow="hidden",Mt.style.maxWidth=100/xt.styles.length-5+"%",Mt.style.borderColor=jt===xt.currentStyle?xt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){xt.setCurrentStyle(jt,Mt)}),Ft.appendChild(Mt);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.overflow="hidden";var Fe=` `;Ut.innerHTML=Fe,Mt.appendChild(Ut),xt.styleBoxes.push(Mt)}),Ft},Ct.prototype.setCurrentStyle=function(xt,Ft){var jt=this;this.currentStyle=xt,this.styleBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===Ft?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(nt),$t=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.strokeColor=jt.defaultColor,Mt.strokeWidth=jt.defaultStrokeWidth,Mt.strokeDasharray=jt.defaultStrokeDasharray,Mt.strokePanel=new et("Line color",jt.defaultColorSet,jt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Gt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return ee(Ct,It),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=It.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='',Ct}(kt),Wt=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"},Jt=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.x1=0,Mt.y1=0,Mt.x2=0,Mt.y2=0,Mt.defaultLength=50,Mt.manipulationStartX=0,Mt.manipulationStartY=0,Mt.manipulationStartX1=0,Mt.manipulationStartY1=0,Mt.manipulationStartX2=0,Mt.manipulationStartY2=0,Mt.setupControlBox(),Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!!It.prototype.ownsTarget.call(this,xt)||!(!this.grip1.ownsTarget(xt)&&!this.grip2.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.manipulationStartX=xt.x,this.manipulationStartY=xt.y,this.state==="new"&&(this.x1=xt.x,this.y1=xt.y,this.x2=xt.x,this.y2=xt.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(Ft)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ft)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(xt){var Ft=this.state;It.prototype.pointerUp.call(this,xt),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(xt),this._state="select",Ft==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.resize(xt):this.state==="move"?(this.x1=this.manipulationStartX1+xt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xt)},Ct.prototype.resize=function(xt){switch(this.activeGrip){case this.grip1:this.x1=xt.x,this.y1=xt.y;break;case this.grip2:case void 0:this.x2=xt.x,this.y2=xt.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){It.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){It.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=Ht.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new gt;return xt.visual.transform.baseVal.appendItem(Ht.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xt/2,this.y1-xt/2),this.positionGrip(this.grip2.visual,this.x2-xt/2,this.y2-xt/2)},Ct.prototype.positionGrip=function(xt,Ft,jt){var Mt=xt.transform.baseVal.getItem(0);Mt.setTranslate(Ft,jt),xt.transform.baseVal.replaceItem(Mt,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},It.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){It.prototype.restoreState.call(this,xt);var Ft=xt;this.x1=Ft.x1,this.y1=Ft.y1,this.x2=Ft.x2,this.y2=Ft.y2},Ct.prototype.scale=function(xt,Ft){It.prototype.scale.call(this,xt,Ft),this.x1=this.x1*xt,this.y1=this.y1*Ft,this.x2=this.x2*xt,this.y2=this.y2*Ft,this.adjustVisual(),this.adjustControlBox()},Ct}(ct),de=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.strokeColor=jt.defaultColor,Mt.strokeWidth=jt.defaultStrokeWidth,Mt.strokeDasharray=jt.defaultStrokeDasharray,Mt.strokePanel=new et("Line color",jt.defaultColorSet,jt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Gt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!(!It.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorLine&&xt!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.selectorLine=Ht.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ht.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ht.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ht.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ht.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},It.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){It.prototype.restoreState.call(this,xt);var Ft=xt;this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='',Ct}(Jt),le=function(It){function Ct(xt,Ft,jt,Mt){var Ut=It.call(this,xt,Mt||'')||this;return Ut.fonts=[],Ut.fontBoxes=[],Ut.fonts=Ft,Ut.currentFont=jt,Ut.setCurrentFont=Ut.setCurrentFont.bind(Ut),Ut}return ee(Ct,It),Ct.prototype.getUi=function(){var xt=this,Ft=document.createElement("div");return Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.fonts.forEach(function(jt){var Mt=document.createElement("div");Mt.style.display="inline-block",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.overflow="hidden",Mt.style.maxWidth=100/xt.fonts.length-5+"%",Mt.style.borderColor=jt===xt.currentFont?xt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){xt.setCurrentFont(jt,Mt)}),Ft.appendChild(Mt);var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.fontFamily=jt,Ut.style.overflow="hidden";var Fe=document.createElement("div");Fe.style.whiteSpace="nowrap",Fe.style.overflow="hidden",Fe.style.textOverflow="ellipsis",Fe.innerHTML="The quick brown fox jumps over the lazy dog",Ut.appendChild(Fe),Mt.appendChild(Ut),xt.fontBoxes.push(Mt)}),Ft},Ct.prototype.setCurrentFont=function(xt,Ft){var jt=this;this.currentFont=xt,this.fontBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===Ft?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(nt),De=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.color="transparent",Mt.padding=5,Mt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Mt.text=Mt.DEFAULT_TEXT,Mt.isMoved=!1,Mt.color=jt.defaultColor,Mt.fontFamily=jt.defaultFontFamily,Mt.defaultSize={x:100,y:30},Mt.setColor=Mt.setColor.bind(Mt),Mt.setFont=Mt.setFont.bind(Mt),Mt.renderText=Mt.renderText.bind(Mt),Mt.sizeText=Mt.sizeText.bind(Mt),Mt.textEditDivClicked=Mt.textEditDivClicked.bind(Mt),Mt.showTextEditor=Mt.showTextEditor.bind(Mt),Mt.setSize=Mt.setSize.bind(Mt),Mt.positionTextEditor=Mt.positionTextEditor.bind(Mt),Mt.colorPanel=new et("Color",jt.defaultColorSet,jt.defaultColor),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.fontFamilyPanel=new le("Font",jt.defaultFontFamilies,jt.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){if(It.prototype.ownsTarget.call(this,xt)||xt===this.visual||xt===this.textElement||xt===this.bgRectangle)return!0;var Ft=!1;return this.textElement.childNodes.forEach(function(jt){jt===xt&&(Ft=!0)}),Ft},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.bgRectangle=Ht.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ht.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ht.createTransform()),this.textElement.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.renderText=function(){var xt=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(Ft){xt.textElement.appendChild(Ht.createTSpan(Ft.trim()===""?" ":Ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var xt=this.textElement.getBBox(),Ft=1;if(xt.width>0&&xt.height>0){var jt=(1*this.width-this.width*this.padding*2/100)/xt.width,Mt=(1*this.height-this.height*this.padding*2/100)/xt.height;Ft=Math.min(jt,Mt)}return Ft},Ct.prototype.getTextPosition=function(xt){var Ft=this.textElement.getBBox(),jt=0,Mt=0;return Ft.width>0&&Ft.height>0&&(jt=(this.width-Ft.width*xt)/2,Mt=this.height/2-Ft.height*xt/2),{x:jt,y:Mt}},Ct.prototype.sizeText=function(){var xt=this.textElement.getBBox(),Ft=this.getTextScale(),jt=this.getTextPosition(Ft);jt.y-=xt.y*Ft,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+jt.x+"px, "+jt.y+"px) scale("+Ft+", "+Ft+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(jt.x,jt.y),this.textElement.transform.baseVal.getItem(1).setScale(Ft,Ft))},Ct.prototype.manipulate=function(xt){It.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){It.prototype.resize.call(this,xt),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){It.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(xt){var Ft=this.state;Ft==="creating"&&(this._suppressMarkerCreateEvent=!0),It.prototype.pointerUp.call(this,xt),this.setSize(),(Ft==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var xt=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(Ft){Ft.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ft=Number.parseFloat(xt.textEditor.style.fontSize);xt.textEditor.clientWidth>=Number.parseInt(xt.textEditor.style.maxWidth)&&Ft>.9;)Ft-=.1,xt.textEditor.style.fontSize=Math.max(Ft,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ft){Ft.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ft){if(Ft.clipboardData){var jt=Ft.clipboardData.getData("text"),Mt=window.getSelection();if(!Mt.rangeCount)return!1;Mt.deleteFromDocument(),Mt.getRangeAt(0).insertNode(document.createTextNode(jt)),Ft.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xt.textEditDivClicked(xt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xt=this.getTextScale(),Ft=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),jt=this.textElement.getBBox(),Mt={x:jt.width*xt,y:jt.height*xt};Ft.x-=Mt.x/2,Ft.y-=Mt.y/2,this.textEditor.style.top=Ft.y+"px",this.textEditor.style.left=Ft.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ft.x+"px",this.textEditor.style.fontSize=Math.max(16*xt,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(xt){this.text=xt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){It.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),It.prototype.deselect.call(this)},Ct.prototype.dblClick=function(xt,Ft){It.prototype.dblClick.call(this,xt,Ft),this.showTextEditor()},Ct.prototype.setColor=function(xt){this.textElement&&Ht.setAttributes(this.textElement,[["fill",xt]]),this.color=xt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xt)},Ct.prototype.setFont=function(xt){this.textElement&&Ht.setAttributes(this.textElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},It.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){var Ft=xt;this.color=Ft.color,this.fontFamily=Ft.fontFamily,this.padding=Ft.padding,this.text=Ft.text,this.createVisual(),It.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Ft){It.prototype.scale.call(this,xt,Ft),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.icon='',Ct}(St),Re=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.color="transparent",Mt.lineWidth=3,Mt.drawing=!1,Mt.pixelRatio=1,Mt.color=jt.defaultColor,Mt.lineWidth=jt.defaultStrokeWidth,Mt.pixelRatio=jt.freehandPixelRatio,Mt.setColor=Mt.setColor.bind(Mt),Mt.addCanvas=Mt.addCanvas.bind(Mt),Mt.finishCreation=Mt.finishCreation.bind(Mt),Mt.setLineWidth=Mt.setLineWidth.bind(Mt),Mt.colorPanel=new et("Color",jt.defaultColorSet,jt.defaultColor),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.lineWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Mt.lineWidthPanel.onWidthChanged=Mt.setLineWidth,Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!(!It.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.drawingImage=Ht.createImage(),this.visual.appendChild(this.drawingImage);var xt=Ht.createTransform();this.visual.transform.baseVal.appendItem(xt),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Ft){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(xt.x,xt.y),this.drawing=!0):It.prototype.pointerDown.call(this,xt,Ft)},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xt.x,xt.y),this.canvasContext.stroke()):It.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){It.prototype.resize.call(this,xt),Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):It.prototype.pointerUp.call(this,xt)},Ct.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),It.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),It.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var xt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ft=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],jt=Ft[0],Mt=Ft[1],Ut=Ft[2],Fe=Ft[3],Se=!1,nn=0;nn0&&(Se=!0,nnFe&&(Fe=nn),Le>Ut&&(Ut=Le));if(Se){this.left=jt/this.pixelRatio,this.top=Mt/this.pixelRatio,this.width=(Ut-jt)/this.pixelRatio,this.height=(Fe-Mt)/this.pixelRatio;var Pe=document.createElement("canvas");Pe.width=Ut-jt,Pe.height=Fe-Mt,Pe.getContext("2d").putImageData(this.canvasContext.getImageData(jt,Mt,Ut-jt,Fe-Mt),0,0),this.drawingImgUrl=Pe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){Ht.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(xt){this.color=xt,this.colorChanged(xt)},Ct.prototype.setLineWidth=function(xt){this.lineWidth=xt},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({drawingImgUrl:this.drawingImgUrl},It.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){this.createVisual(),It.prototype.restoreState.call(this,xt),this.drawingImgUrl=xt.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(xt,Ft){It.prototype.scale.call(this,xt,Ft),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.icon='',Ct}(St),Ke=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,jt||'')||this;return Mt.typeBoxes=[],Mt.currentType=Ft,Mt.setCurrentType=Mt.setCurrentType.bind(Mt),Mt}return ee(Ct,It),Ct.prototype.getUi=function(){var xt=this,Ft=document.createElement("div");Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2";for(var jt=function(Fe){var Se="both";switch(Fe){case 0:Se="both";break;case 1:Se="start";break;case 2:Se="end";break;case 3:Se="none"}var nn=document.createElement("div");if(nn.style.display="flex",nn.style.flexGrow="2",nn.style.alignItems="center",nn.style.justifyContent="space-between",nn.style.padding="5px",nn.style.borderWidth="2px",nn.style.borderStyle="solid",nn.style.borderColor=Se===Mt.currentType?Mt.uiStyleSettings.toolboxAccentColor:"transparent",nn.addEventListener("click",function(){xt.setCurrentType(Se,nn)}),Ft.appendChild(nn),Se==="both"||Se==="start"){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.minHeight="20px",Le.innerHTML=` `,Le.style.marginLeft="5px",nn.appendChild(Le)}var Pe=document.createElement("div");Pe.style.display="flex",Pe.style.alignItems="center",Pe.style.minHeight="20px",Pe.style.flexGrow="2";var be=document.createElement("hr");if(be.style.minWidth="20px",be.style.border="0px",be.style.borderTop="3px solid "+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee"),be.style.flexGrow="2",Pe.appendChild(be),nn.appendChild(Pe),Se==="both"||Se==="end"){var We=document.createElement("div");We.style.display="flex",We.style.alignItems="center",We.style.minHeight="20px",We.innerHTML=` `,We.style.marginRight="5px",nn.appendChild(We)}Mt.typeBoxes.push(nn)},Mt=this,Ut=0;Ut<4;Ut++)jt(Ut);return Ft},Ct.prototype.setCurrentType=function(xt,Ft){var jt=this;this.currentType=xt,this.typeBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===Ft?jt.uiStyleSettings!==void 0?jt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(nt),kn=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.arrowType="end",Mt.arrowBaseHeight=10,Mt.arrowBaseWidth=10,Mt.getArrowPoints=Mt.getArrowPoints.bind(Mt),Mt.setArrowType=Mt.setArrowType.bind(Mt),Mt.arrowTypePanel=new Ke("Arrow type","end"),Mt.arrowTypePanel.onArrowTypeChanged=Mt.setArrowType,Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!(!It.prototype.ownsTarget.call(this,xt)&&xt!==this.arrow1&&xt!==this.arrow2)},Ct.prototype.getArrowPoints=function(xt,Ft){var jt=this.arrowBaseWidth+2*this.strokeWidth,Mt=this.arrowBaseHeight+2*this.strokeWidth;return xt-jt/2+","+(Ft+Mt/2)+" "+xt+","+(Ft-Mt/2)+" "+(xt+jt/2)+","+(Ft+Mt/2)},Ct.prototype.createTips=function(){this.arrow1=Ht.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ht.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(It.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ht.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ht.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xt=0;Math.abs(this.x1-this.x2)>.1&&(xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ft=this.arrow1.transform.baseVal.getItem(0);Ft.setRotate(xt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ft,0);var jt=this.arrow2.transform.baseVal.getItem(0);jt.setRotate(xt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(jt,0)}},Ct.prototype.setArrowType=function(xt){this.arrowType=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({arrowType:this.arrowType},It.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){It.prototype.restoreState.call(this,xt);var Ft=xt;this.arrowType=Ft.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='',Ct}(de),qe=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.fillColor=jt.defaultFillColor,Mt.strokeWidth=0,Mt.fillPanel=new et("Color",jt.defaultColorSet,jt.defaultFillColor),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt}return ee(Ct,It),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=It.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='',Ct}(kt),on=function(It){function Ct(xt,Ft,jt,Mt){var Ut=It.call(this,xt,Mt||'')||this;return Ut.opacities=[],Ut.opacityBoxes=[],Ut.opacities=Ft,Ut.currentOpacity=jt,Ut.setCurrentOpacity=Ut.setCurrentOpacity.bind(Ut),Ut}return ee(Ct,It),Ct.prototype.getUi=function(){var xt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",Ft.style.justifyContent="space-between",this.opacities.forEach(function(jt){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.justifyContent="center",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.borderColor=jt===xt.currentOpacity?xt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){xt.setCurrentOpacity(jt,Mt)}),Ft.appendChild(Mt);var Ut=document.createElement("div");Ut.innerText=100*jt+"%",Mt.appendChild(Ut),xt.opacityBoxes.push(Mt)}),Ft},Ct.prototype.setCurrentOpacity=function(xt,Ft){var jt=this;this.currentOpacity=xt,this.opacityBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===Ft?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(nt),gn=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.setOpacity=Mt.setOpacity.bind(Mt),Mt.fillColor=jt.defaultHighlightColor,Mt.strokeWidth=0,Mt.opacity=jt.defaultHighlightOpacity,Mt.fillPanel=new et("Color",jt.defaultColorSet,Mt.fillColor),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.opacityPanel=new on("Opacity",jt.defaultOpacitySteps,Mt.opacity),Mt.opacityPanel.onOpacityChanged=Mt.setOpacity,Mt}return ee(Ct,It),Ct.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&Ht.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=It.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.icon='',Ct}(qe),ge='',Xt='',Ve=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.bgColor="transparent",Mt.tipPosition={x:0,y:0},Mt.tipBase1Position={x:0,y:0},Mt.tipBase2Position={x:0,y:0},Mt.tipMoving=!1,Mt.color=jt.defaultStrokeColor,Mt.bgColor=jt.defaultFillColor,Mt.fontFamily=jt.defaultFontFamily,Mt.defaultSize={x:100,y:30},Mt.setBgColor=Mt.setBgColor.bind(Mt),Mt.getTipPoints=Mt.getTipPoints.bind(Mt),Mt.positionTip=Mt.positionTip.bind(Mt),Mt.setTipPoints=Mt.setTipPoints.bind(Mt),Mt.colorPanel=new et("Text color",jt.defaultColorSet,Mt.color,ge),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.bgColorPanel=new et("Fill color",jt.defaultColorSet,Mt.bgColor,Xt),Mt.bgColorPanel.onColorChanged=Mt.setBgColor,Mt.fontFamilyPanel=new le("Font",jt.defaultFontFamilies,jt.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt.tipGrip=new gt,Mt.tipGrip.visual.transform.baseVal.appendItem(Ht.createTransform()),Mt.controlBox.appendChild(Mt.tipGrip.visual),Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return It.prototype.ownsTarget.call(this,xt)||this.tipGrip.ownsTarget(xt)||this.tip===xt},Ct.prototype.createTip=function(){Ht.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ht.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(xt,Ft){this.state==="new"&&It.prototype.pointerDown.call(this,xt,Ft),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ft)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):It.prototype.pointerDown.call(this,xt,Ft)},Ct.prototype.pointerUp=function(xt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,It.prototype.pointerUp.call(this,xt);else{var Ft=this.state==="creating";It.prototype.pointerUp.call(this,xt),this.setTipPoints(Ft),this.positionTip()}},Ct.prototype.manipulate=function(xt){if(this.tipMoving){var Ft=this.unrotatePoint(xt);this.tipPosition={x:Ft.x-this.manipulationStartLeft,y:Ft.y-this.manipulationStartTop},this.positionTip()}else It.prototype.manipulate.call(this,xt)},Ct.prototype.setBgColor=function(xt){this.bgRectangle&&this.tip&&(Ht.setAttributes(this.bgRectangle,[["fill",xt]]),Ht.setAttributes(this.tip,[["fill",xt]])),this.bgColor=xt,this.fillColorChanged(xt)},Ct.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Ct.prototype.setTipPoints=function(xt){xt===void 0&&(xt=!1);var Ft=Math.min(this.height/2,15),jt=this.height/5;xt&&(this.tipPosition={x:Ft+jt/2,y:this.height+20});var Mt=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?Mt.1)){var xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ft=this.tip1.transform.baseVal.getItem(0);Ft.setRotate(xt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ft,0);var jt=this.tip2.transform.baseVal.getItem(0);jt.setRotate(xt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(jt,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=It.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){It.prototype.restoreState.call(this,xt),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.icon='',Ct}(de),Be=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.strokePanel.colors=jt.defaultColorSet,Mt.fillColor="transparent",Mt}return ee(Ct,It),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=It.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.icon='',Ct}(An),dn=function(){function It(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(It.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),It.prototype.addUndoStep=function(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},It.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},It.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},It.prototype.undo=function(){if(this.undoStack.length>1){var Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},It.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},It}(),Qe=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.curveX=0,Mt.curveY=0,Mt.manipulationStartCurveX=0,Mt.manipulationStartCurveY=0,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.positionGrips=Mt.positionGrips.bind(Mt),Mt.addControlGrips=Mt.addControlGrips.bind(Mt),Mt.adjustVisual=Mt.adjustVisual.bind(Mt),Mt.setupControlBox=Mt.setupControlBox.bind(Mt),Mt.resize=Mt.resize.bind(Mt),Mt.strokeColor=jt.defaultColor,Mt.strokeWidth=jt.defaultStrokeWidth,Mt.strokeDasharray=jt.defaultStrokeDasharray,Mt.strokePanel=new et("Line color",jt.defaultColorSet,jt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Gt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!(!It.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorCurve&&xt!==this.visibleCurve&&!this.curveGrip.ownsTarget(xt))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.selectorCurve=Ht.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ht.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xt.x,this.curveY=xt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ft)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ht.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ht.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ht.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){It.prototype.setupControlBox.call(this),this.curveControlLine1=Ht.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ht.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,It.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){It.prototype.positionGrips.call(this);var xt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xt/2,this.curveY-xt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Ct.prototype.manipulate=function(xt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xt.y-this.manipulationStartY),It.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){this.activeGrip===this.curveGrip&&(this.curveX=xt.x,this.curveY=xt.y),It.prototype.resize.call(this,xt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual()},Ct.prototype.scale=function(xt,Ft){this.curveX=this.curveX*xt,this.curveY=this.curveY*Ft,It.prototype.scale.call(this,xt,Ft)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},It.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){It.prototype.restoreState.call(this,xt);var Ft=xt;this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.curveX=Ft.curveX,this.curveY=Ft.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.icon='',Ct}(Jt),On=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,Ft,jt)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.textColor="transparent",Mt.fontSize="1rem",Mt.isMoved=!1,Mt.captionText="Caption",Mt.PADDING=5,Mt.captionBoxWidth=0,Mt.captionBoxHeight=0,Mt.strokeColor=jt.defaultColor,Mt.strokeWidth=jt.defaultStrokeWidth,Mt.strokeDasharray=jt.defaultStrokeDasharray,Mt.fillColor=jt.defaultFillColor,Mt.textColor=jt.defaultStrokeColor,Mt.fontFamily=jt.defaultFontFamily,Mt.fontSize=jt.defaultCaptionFontSize,Mt.captionText=jt.defaultCaptionText,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt.sizeCaption=Mt.sizeCaption.bind(Mt),Mt.setCaptionText=Mt.setCaptionText.bind(Mt),Mt.showTextEditor=Mt.showTextEditor.bind(Mt),Mt.positionTextEditor=Mt.positionTextEditor.bind(Mt),Mt.finishTextEditing=Mt.finishTextEditing.bind(Mt),Mt.setFont=Mt.setFont.bind(Mt),Mt.setTextColor=Mt.setTextColor.bind(Mt),Mt.strokePanel=new et("Line color",ye(jt.defaultColorSet,["transparent"]),Mt.strokeColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.fillPanel=new et("Fill color",ye(jt.defaultColorSet,["transparent"]),Mt.fillColor,Xt),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.strokeWidthPanel=new zt("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Gt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt.fontFamilyPanel=new le("Font",jt.defaultFontFamilies,jt.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt.textColorPanel=new et("Text color",jt.defaultColorSet,Mt.textColor,ge),Mt.textColorPanel.onColorChanged=Mt.setTextColor,Mt}return ee(Ct,It),Ct.prototype.ownsTarget=function(xt){return!(!It.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.frame&&xt!==this.captionBg&&xt!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ht.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ht.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Ht.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Ct.prototype.setCaptionText=function(xt){this.captionText=xt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(xt,Ft){It.prototype.pointerDown.call(this,xt,Ft),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){It.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){It.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.sizeCaption=function(){var xt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xt.width+2*this.PADDING,this.captionBoxHeight=xt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ht.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Ht.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Ct.prototype.showTextEditor=function(){var xt=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(Ft){Ft.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ft){Ft.key==="Enter"&&xt.finishTextEditing(xt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ft){Ft.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Ct.prototype.finishTextEditing=function(xt){this.setCaptionText(xt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(xt){this.captionElement&&Ht.setAttributes(this.captionElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(xt){this.captionElement&&Ht.setAttributes(this.captionElement,[["fill",xt]]),this.textColor=xt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){It.prototype.setSize.call(this),Ht.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(xt){It.prototype.pointerUp.call(this,xt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(xt,Ft){It.prototype.dblClick.call(this,xt,Ft),this.showTextEditor()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.frame&&Ht.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.captionBg&&Ht.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.frame&&Ht.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.frame&&Ht.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=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},It.prototype.getState.call(this));return xt.typeName=this.typeName,xt},Ct.prototype.restoreState=function(xt){var Ft=xt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.textColor=Ft.textColor,this.fontFamily=Ft.fontFamily,this.captionText=Ft.captionText,this.fontSize=Ft.fontSize,this.createVisual(),It.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,Ft){It.prototype.scale.call(this,xt,Ft),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.icon='',Ct}(St),we=function(){function It(Ct,xt){xt===void 0&&(xt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=xt}return Object.defineProperty(It.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),It.prototype.preventDefault=function(){this._defaultPrevented=!0},It}(),ue=function(It){function Ct(xt,Ft,jt){var Mt=It.call(this,xt,!1)||this;return Mt.dataUrl=Ft,Mt.state=jt,Mt}return ee(Ct,It),Ct}(we),Xe=function(It){function Ct(xt,Ft,jt){jt===void 0&&(jt=!1);var Mt=It.call(this,xt,jt)||this;return Mt.marker=Ft,Mt}return ee(Ct,It),Ct}(we),di=function(){function It(){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 It.prototype.addEventListener=function(Ct,xt){this[Ct].push(xt)},It.prototype.removeEventListener=function(Ct,xt){var Ft=this[Ct].indexOf(xt);Ft>-1&&this[Ct].splice(Ft,1)},It}(),Li=function(){function It(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Wt,this._isOpen=!1,this.undoRedoManager=new dn,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 di,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=It.instanceCounter++,this.styles=new Nt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(It.prototype,"ALL_MARKER_TYPES",{get:function(){return[$t,Re,kn,De,Be,An,gn,Ve,Bn,qe,de,Qe,On]},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$t,Re,kn,De,An,gn,Ve]},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$t,Re,kn,De,gn]},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var xt=this;this._availableMarkerTypes.splice(0),Ct.forEach(function(Ft){if(typeof Ft=="string"){var jt=xt.ALL_MARKER_TYPES.find(function(Mt){return Mt.typeName===Ft});jt!==void 0&&xt._availableMarkerTypes.push(jt)}else xt._availableMarkerTypes.push(Ft)})},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ct){this._zoomLevel=Ct,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(It.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),It.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ae.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},It.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xt){return xt(new we(Ct))})},It.prototype.render=function(){return xe(this,void 0,void 0,function(){var Ct;return me(this,function(xt){switch(xt.label){case 0:return this.setCurrentMarker(),(Ct=new je).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xt.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xt.sent()]}})})},It.prototype.close=function(Ct){var xt=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var Ft=!1;Ct||this.eventListeners.beforeclose.forEach(function(jt){var Mt=new we(xt,!0);jt(Mt),Mt.defaultPrevented&&(Ft=!0)}),Ft||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(jt){return jt(new we(xt))}),this.detachEvents(),this._isOpen=!1)}},It.prototype.addMarkersToToolbar=function(){for(var Ct,xt=[],Ft=0;Ftthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,Ft=xt',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},It.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")},It.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"},It.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},It.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Ct=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ge(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(Ct),1),Ct.dispose()},It.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())},It.prototype.toolbarButtonClicked=function(Ct,xt){if(Ct==="marker"&&xt!==void 0)this.createNewMarker(xt);else if(Ct==="action")switch(xt){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()}},It.prototype.deleteSelectedMarker=function(){var Ct=this;if(this._currentMarker!==void 0){var xt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(jt){var Mt=new Xe(Ct,Ct._currentMarker,!0);jt(Mt),Mt.defaultPrevented&&(xt=!0)}),!xt){var Ft=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(jt){return jt(new Xe(Ct,Ft))})}}},It.prototype.clear=function(){var Ct=this,xt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ut){var Fe=new Xe(Ct,void 0,!0);Ut(Fe),Fe.defaultPrevented&&(xt=!0)}),!xt)){this.setCurrentMarker();for(var Ft=function(Ut){var Fe=jt.markers[Ut];jt.setCurrentMarker(jt.markers[Ut]),jt._currentMarker.dispose(),jt.markerImage.removeChild(jt._currentMarker.container),jt.markers.splice(jt.markers.indexOf(jt._currentMarker),1),jt.eventListeners.markerdelete.forEach(function(Se){return Se(new Xe(Ct,Fe))})},jt=this,Mt=this.markers.length-1;Mt>=0;Mt--)Ft(Mt);this.addUndoStep()}},Object.defineProperty(It.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),It.prototype.showNotesEditor=function(){var Ct;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",this.overlayContainer.appendChild(this.notesArea))},It.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)},It.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},It.prototype.addUndoStep=function(){var Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xt=this.getState(),Ft=this.undoRedoManager.getLastUndoStep();if(!Ft||Ft.width===xt.width&&Ft.height===xt.height){var jt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xt),jt1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},It.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},It.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},It.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},It.prototype.clientToLocalCoordinates=function(Ct,xt){var Ft=this.markerImage.getBoundingClientRect();return{x:(Ct-Ft.left)/this.zoomLevel,y:(xt-Ft.top)/this.zoomLevel}},It.prototype.onWindowResize=function(){this.positionUI()},It.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},It.prototype.addLicenseKey=function(Ct){ae.addKey(Ct)},It.prototype.addEventListener=function(Ct,xt){this.eventListeners.addEventListener(Ct,xt)},It.prototype.removeEventListener=function(Ct,xt){this.eventListeners.removeEventListener(Ct,xt)},It.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(It.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),It.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xt){return xt(new we(Ct))}))},It.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xt){return xt(new we(Ct))}))},It.instanceCounter=0,It}()},23425:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return Gt}});var Tt=Ot(4635),ee=Ot(14809),xe=Ot(93664),me=Ot(20439),ye=Ot(50298),Ht=Ot(92310),ae=Ot.n(Ht),je=Ot(18929),ve=Ot(10228),Nt=Ot(26112),He=Ot(48736),ie=Ot(59301),Ge=Ot(17119),bt=[10,20,50,100],nt=function(Wt){var Jt=Wt.pageSizeOptions,de=Jt===void 0?bt:Jt,le=Wt.locale,De=Wt.changeSize,Re=Wt.pageSize,Ke=Wt.goButton,kn=Wt.quickGo,qe=Wt.rootPrefixCls,on=Wt.disabled,gn=Wt.buildOptionText,ge=Wt.showSizeChanger,Xt=Wt.sizeChangerRender,Ve=ie.useState(""),An=(0,ye.Z)(Ve,2),Bn=An[0],Be=An[1],dn=function(){return!Bn||Number.isNaN(Bn)?void 0:Number(Bn)},Qe=typeof gn=="function"?gn:function(xt){return"".concat(xt," ").concat(le.items_per_page)},On=function(Ft){Be(Ft.target.value)},we=function(Ft){Ke||Bn===""||(Be(""),!(Ft.relatedTarget&&(Ft.relatedTarget.className.indexOf("".concat(qe,"-item-link"))>=0||Ft.relatedTarget.className.indexOf("".concat(qe,"-item"))>=0))&&(kn==null||kn(dn())))},ue=function(Ft){Bn!==""&&(Ft.keyCode===ve.Z.ENTER||Ft.type==="click")&&(Be(""),kn==null||kn(dn()))},Xe=function(){return de.some(function(Ft){return Ft.toString()===Re.toString()})?de:de.concat([Re]).sort(function(Ft,jt){var Mt=Number.isNaN(Number(Ft))?0:Number(Ft),Ut=Number.isNaN(Number(jt))?0:Number(jt);return Mt-Ut})},di="".concat(qe,"-options");if(!ge&&!kn)return null;var Li=null,It=null,Ct=null;return ge&&Xt&&(Li=Xt({disabled:on,size:Re,onSizeChange:function(Ft){De==null||De(Number(Ft))},"aria-label":le.page_size,className:"".concat(di,"-size-changer"),options:Xe().map(function(xt){return{label:Qe(xt),value:xt}})})),kn&&(Ke&&(Ct=typeof Ke=="boolean"?ie.createElement("button",{type:"button",onClick:ue,onKeyUp:ue,disabled:on,className:"".concat(di,"-quick-jumper-button")},le.jump_to_confirm):ie.createElement("span",{onClick:ue,onKeyUp:ue},Ke)),It=ie.createElement("div",{className:"".concat(di,"-quick-jumper")},le.jump_to,ie.createElement("input",{disabled:on,type:"text",value:Bn,onChange:On,onKeyUp:ue,onBlur:we,"aria-label":le.page}),le.page,Ct)),ie.createElement("li",{className:di},Li,It)},et=nt,ct=function(Wt){var Jt=Wt.rootPrefixCls,de=Wt.page,le=Wt.active,De=Wt.className,Re=Wt.showTitle,Ke=Wt.onClick,kn=Wt.onKeyPress,qe=Wt.itemRender,on="".concat(Jt,"-item"),gn=ae()(on,"".concat(on,"-").concat(de),(0,Tt.Z)((0,Tt.Z)({},"".concat(on,"-active"),le),"".concat(on,"-disabled"),!de),De),ge=function(){Ke(de)},Xt=function(Bn){kn(Bn,Ke,de)},Ve=qe(de,"page",ie.createElement("a",{rel:"nofollow"},de));return Ve?ie.createElement("li",{title:Re?String(de):null,className:gn,onClick:ge,onKeyDown:Xt,tabIndex:0},Ve):null},lt=ct,gt=function(Wt,Jt,de){return de};function mt(){}function St($t){var Wt=Number($t);return typeof Wt=="number"&&!Number.isNaN(Wt)&&isFinite(Wt)&&Math.floor(Wt)===Wt}function kt($t,Wt,Jt){var de=typeof $t=="undefined"?Wt:$t;return Math.floor((Jt-1)/de)+1}var zt=function(Wt){var Jt=Wt.prefixCls,de=Jt===void 0?"rc-pagination":Jt,le=Wt.selectPrefixCls,De=le===void 0?"rc-select":le,Re=Wt.className,Ke=Wt.current,kn=Wt.defaultCurrent,qe=kn===void 0?1:kn,on=Wt.total,gn=on===void 0?0:on,ge=Wt.pageSize,Xt=Wt.defaultPageSize,Ve=Xt===void 0?10:Xt,An=Wt.onChange,Bn=An===void 0?mt:An,Be=Wt.hideOnSinglePage,dn=Wt.align,Qe=Wt.showPrevNextJumpers,On=Qe===void 0?!0:Qe,we=Wt.showQuickJumper,ue=Wt.showLessItems,Xe=Wt.showTitle,di=Xe===void 0?!0:Xe,Li=Wt.onShowSizeChange,It=Li===void 0?mt:Li,Ct=Wt.locale,xt=Ct===void 0?Ge.Z:Ct,Ft=Wt.style,jt=Wt.totalBoundaryShowSizeChanger,Mt=jt===void 0?50:jt,Ut=Wt.disabled,Fe=Wt.simple,Se=Wt.showTotal,nn=Wt.showSizeChanger,Le=nn===void 0?gn>Mt:nn,Pe=Wt.sizeChangerRender,be=Wt.pageSizeOptions,We=Wt.itemRender,rn=We===void 0?gt:We,Hn=Wt.jumpPrevIcon,vn=Wt.jumpNextIcon,Cn=Wt.prevIcon,mi=Wt.nextIcon,Gn=ie.useRef(null),yi=(0,je.Z)(10,{value:ge,defaultValue:Ve}),ni=(0,ye.Z)(yi,2),ki=ni[0],Ri=ni[1],Qi=(0,je.Z)(1,{value:Ke,defaultValue:qe,postState:function(jr){return Math.max(1,Math.min(jr,kt(void 0,ki,gn)))}}),Ir=(0,ye.Z)(Qi,2),Xi=Ir[0],Rr=Ir[1],wo=ie.useState(Xi),oo=(0,ye.Z)(wo,2),uo=oo[0],po=oo[1];(0,ie.useEffect)(function(){po(Xi)},[Xi]);var Do=Bn!==mt,Zo="current"in Wt,Lo=Math.max(1,Xi-(ue?3:5)),Vo=Math.min(kt(void 0,ki,gn),Xi+(ue?3:5));function Lt(Zi,jr){var Tr=Zi||ie.createElement("button",{type:"button","aria-label":jr,className:"".concat(de,"-item-link")});return typeof Zi=="function"&&(Tr=ie.createElement(Zi,(0,me.Z)({},Wt))),Tr}function yn(Zi){var jr=Zi.target.value,Tr=kt(void 0,ki,gn),Fo;return jr===""?Fo=jr:Number.isNaN(Number(jr))?Fo=uo:jr>=Tr?Fo=Tr:Fo=Number(jr),Fo}function Dn(Zi){return St(Zi)&&Zi!==Xi&&St(gn)&&gn>0}var Lr=gn>ki?we:!1;function vr(Zi){(Zi.keyCode===ve.Z.UP||Zi.keyCode===ve.Z.DOWN)&&Zi.preventDefault()}function Vi(Zi){var jr=yn(Zi);switch(jr!==uo&&po(jr),Zi.keyCode){case ve.Z.ENTER:Je(jr);break;case ve.Z.UP:Je(jr-1);break;case ve.Z.DOWN:Je(jr+1);break;default:break}}function Jr(Zi){Je(yn(Zi))}function mo(Zi){var jr=kt(Zi,ki,gn),Tr=Xi>jr&&jr!==0?jr:Xi;Ri(Zi),po(Tr),It==null||It(Xi,Zi),Rr(Tr),Bn==null||Bn(Tr,Zi)}function Je(Zi){if(Dn(Zi)&&!Ut){var jr=kt(void 0,ki,gn),Tr=Zi;return Zi>jr?Tr=jr:Zi<1&&(Tr=1),Tr!==uo&&po(Tr),Rr(Tr),Bn==null||Bn(Tr,ki),Tr}return Xi}var $e=Xi>1,Te=Xi2?Tr-2:0),Gr=2;Grgn?gn:Xi*ki])),Rn=null,zn=kt(void 0,ki,gn);if(Be&&gn<=ki)return null;var Pi=[],ti={rootPrefixCls:de,onClick:Je,onKeyPress:Nn,showTitle:di,itemRender:rn,page:-1},ii=Xi-1>0?Xi-1:0,Fi=Xi+1=mr*2&&Xi!==3&&(Pi[0]=ie.cloneElement(Pi[0],{className:ae()("".concat(de,"-item-after-jump-prev"),Pi[0].props.className)}),Pi.unshift(Qn)),zn-Xi>=mr*2&&Xi!==zn-2){var Cr=Pi[Pi.length-1];Pi[Pi.length-1]=ie.cloneElement(Cr,{className:ae()("".concat(de,"-item-before-jump-next"),Cr.props.className)}),Pi.push(Rn)}hi!==1&&Pi.unshift(ie.createElement(lt,(0,ee.Z)({},ti,{key:1,page:1}))),xr!==zn&&Pi.push(ie.createElement(lt,(0,ee.Z)({},ti,{key:zn,page:zn})))}var Nr=qt(ii);if(Nr){var zr=!$e||!zn;Nr=ie.createElement("li",{title:di?xt.prev_page:null,onClick:ln,tabIndex:zr?null:0,onKeyDown:bi,className:ae()("".concat(de,"-prev"),(0,Tt.Z)({},"".concat(de,"-disabled"),zr)),"aria-disabled":zr},Nr)}var Qr=Ce(Fi);if(Qr){var an,vo;Fe?(an=!Te,vo=$e?0:null):(an=!Te||!zn,vo=an?null:0),Qr=ie.createElement("li",{title:di?xt.next_page:null,onClick:Wi,tabIndex:vo,onKeyDown:wr,className:ae()("".concat(de,"-next"),(0,Tt.Z)({},"".concat(de,"-disabled"),an)),"aria-disabled":an},Qr)}var sn=ae()(de,Re,(0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)((0,Tt.Z)({},"".concat(de,"-start"),dn==="start"),"".concat(de,"-center"),dn==="center"),"".concat(de,"-end"),dn==="end"),"".concat(de,"-simple"),Fe),"".concat(de,"-disabled"),Ut));return ie.createElement("ul",(0,ee.Z)({className:sn,style:Ft,ref:Gn},Ze),qn,Nr,Fe?vi:Pi,Qr,ie.createElement(et,{locale:xt,rootPrefixCls:de,disabled:Ut,selectPrefixCls:De,changeSize:mo,pageSize:ki,pageSizeOptions:be,quickGo:Lr?Je:null,goButton:Ln,showSizeChanger:Le,sizeChangerRender:Pe}))},Gt=zt},48365:function(Wn,ai,Ot){"use strict";var Tt=Ot(61186),ee=Ot.n(Tt),xe=Ot(90111),me=Ot.n(xe),ye=Ot(58319),Ht=Ot.n(ye),ae=Ot(23250),je=Ot.n(ae),ve=Ot(74959),Nt=Ot.n(ve),He=Ot(10238),ie=Ot.n(He),Ge=Ot(33656),bt=Ot.n(Ge);ee().extend(bt()),ee().extend(ie()),ee().extend(me()),ee().extend(Ht()),ee().extend(je()),ee().extend(Nt()),ee().extend(function(gt,mt){var St=mt.prototype,kt=St.format;St.format=function(Gt){var $t=(Gt||"").replace("Wo","wo");return kt.bind(this)($t)}});var nt={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"},et=function(mt){var St=nt[mt];return St||mt.split("_")[0]},ct=function(){},lt={getNow:function(){var mt=ee()();return typeof mt.tz=="function"?mt.tz():mt},getFixedDate:function(mt){return ee()(mt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(mt){return mt.endOf("month")},getWeekDay:function(mt){var St=mt.locale("en");return St.weekday()+St.localeData().firstDayOfWeek()},getYear:function(mt){return mt.year()},getMonth:function(mt){return mt.month()},getDate:function(mt){return mt.date()},getHour:function(mt){return mt.hour()},getMinute:function(mt){return mt.minute()},getSecond:function(mt){return mt.second()},getMillisecond:function(mt){return mt.millisecond()},addYear:function(mt,St){return mt.add(St,"year")},addMonth:function(mt,St){return mt.add(St,"month")},addDate:function(mt,St){return mt.add(St,"day")},setYear:function(mt,St){return mt.year(St)},setMonth:function(mt,St){return mt.month(St)},setDate:function(mt,St){return mt.date(St)},setHour:function(mt,St){return mt.hour(St)},setMinute:function(mt,St){return mt.minute(St)},setSecond:function(mt,St){return mt.second(St)},setMillisecond:function(mt,St){return mt.millisecond(St)},isAfter:function(mt,St){return mt.isAfter(St)},isValidate:function(mt){return mt.isValid()},locale:{getWeekFirstDay:function(mt){return ee()().locale(et(mt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(mt,St){return St.locale(et(mt)).weekday(0)},getWeek:function(mt,St){return St.locale(et(mt)).week()},getShortWeekDays:function(mt){return ee()().locale(et(mt)).localeData().weekdaysMin()},getShortMonths:function(mt){return ee()().locale(et(mt)).localeData().monthsShort()},format:function(mt,St,kt){return St.locale(et(mt)).format(kt)},parse:function(mt,St,kt){for(var zt=et(mt),Gt=0;Gt2&&arguments[2]!==void 0?arguments[2]:"0",fe=String(At);fe.length2&&arguments[2]!==void 0?arguments[2]:[],fe=Nt.useState([!1,!1]),pe=(0,me.Z)(fe,2),Oe=pe[0],Ie=pe[1],Ye=function(Ue,Zn){Ie(function(ri){return zt(ri,Zn,Ue)})},Pn=Nt.useMemo(function(){return Oe.map(function(En,Ue){if(En)return!0;var Zn=At[Ue];return Zn?!!(!Yt[Ue]&&!Zn||Zn&&ne(Zn,{activeIndex:Ue})):!1})},[At,Oe,ne,Yt]);return[Pn,Ye]}function De(At,ne,Yt,fe,pe){var Oe="",Ie=[];return At&&Ie.push(pe?"hh":"HH"),ne&&Ie.push("mm"),Yt&&Ie.push("ss"),Oe=Ie.join(":"),fe&&(Oe+=".SSS"),pe&&(Oe+=" A"),Oe}function Re(At,ne,Yt,fe,pe,Oe){var Ie=At.fieldDateTimeFormat,Ye=At.fieldDateFormat,Pn=At.fieldTimeFormat,En=At.fieldMonthFormat,Ue=At.fieldYearFormat,Zn=At.fieldWeekFormat,ri=At.fieldQuarterFormat,oe=At.yearFormat,Tn=At.cellYearFormat,Fn=At.cellQuarterFormat,wn=At.dayFormat,pn=At.cellDateFormat,ci=De(ne,Yt,fe,pe,Oe);return(0,xe.Z)((0,xe.Z)({},At),{},{fieldDateTimeFormat:Ie||"YYYY-MM-DD ".concat(ci),fieldDateFormat:Ye||"YYYY-MM-DD",fieldTimeFormat:Pn||ci,fieldMonthFormat:En||"YYYY-MM",fieldYearFormat:Ue||"YYYY",fieldWeekFormat:Zn||"gggg-wo",fieldQuarterFormat:ri||"YYYY-[Q]Q",yearFormat:oe||"YYYY",cellYearFormat:Tn||"YYYY",cellQuarterFormat:Fn||"[Q]Q",cellDateFormat:pn||wn||"D"})}function Ke(At,ne){var Yt=ne.showHour,fe=ne.showMinute,pe=ne.showSecond,Oe=ne.showMillisecond,Ie=ne.use12Hours;return Nt.useMemo(function(){return Re(At,Yt,fe,pe,Oe,Ie)},[At,Yt,fe,pe,Oe,Ie])}var kn=Ot(93664);function qe(At,ne,Yt){return Yt!=null?Yt:ne.some(function(fe){return At.includes(fe)})}var on=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function gn(At){var ne=Gt(At,on),Yt=At.format,fe=At.picker,pe=null;return Yt&&(pe=Yt,Array.isArray(pe)&&(pe=pe[0]),pe=(0,kn.Z)(pe)==="object"?pe.format:pe),fe==="time"&&(ne.format=pe),[ne,pe]}function ge(At){return At&&typeof At=="string"}function Xt(At,ne,Yt,fe){return[At,ne,Yt,fe].some(function(pe){return pe!==void 0})}function Ve(At,ne,Yt,fe,pe){var Oe=ne,Ie=Yt,Ye=fe;if(!At&&!Oe&&!Ie&&!Ye&&!pe)Oe=!0,Ie=!0,Ye=!0;else if(At){var Pn,En,Ue,Zn=[Oe,Ie,Ye].some(function(Tn){return Tn===!1}),ri=[Oe,Ie,Ye].some(function(Tn){return Tn===!0}),oe=Zn?!0:!ri;Oe=(Pn=Oe)!==null&&Pn!==void 0?Pn:oe,Ie=(En=Ie)!==null&&En!==void 0?En:oe,Ye=(Ue=Ye)!==null&&Ue!==void 0?Ue:oe}return[Oe,Ie,Ye,pe]}function An(At){var ne=At.showTime,Yt=gn(At),fe=(0,me.Z)(Yt,2),pe=fe[0],Oe=fe[1],Ie=ne&&(0,kn.Z)(ne)==="object"?ne:{},Ye=(0,xe.Z)((0,xe.Z)({defaultOpenValue:Ie.defaultOpenValue||Ie.defaultValue},pe),Ie),Pn=Ye.showMillisecond,En=Ye.showHour,Ue=Ye.showMinute,Zn=Ye.showSecond,ri=Xt(En,Ue,Zn,Pn),oe=Ve(ri,En,Ue,Zn,Pn),Tn=(0,me.Z)(oe,3);return En=Tn[0],Ue=Tn[1],Zn=Tn[2],[Ye,(0,xe.Z)((0,xe.Z)({},Ye),{},{showHour:En,showMinute:Ue,showSecond:Zn,showMillisecond:Pn}),Ye.format,Oe]}function Bn(At,ne,Yt,fe,pe){var Oe=At==="time";if(At==="datetime"||Oe){for(var Ie=fe,Ye=$t(At,pe,null),Pn=Ye,En=[ne,Yt],Ue=0;Ue1&&(Ie=ne.addDate(Ie,-7)),Ie}function Fe(At,ne){var Yt=ne.generateConfig,fe=ne.locale,pe=ne.format;return At?typeof pe=="function"?pe(At):Yt.locale.format(fe.locale,At,pe):""}function Se(At,ne,Yt){var fe=ne,pe=["getHour","getMinute","getSecond","getMillisecond"],Oe=["setHour","setMinute","setSecond","setMillisecond"];return Oe.forEach(function(Ie,Ye){Yt?fe=At[Ie](fe,At[pe[Ye]](Yt)):fe=At[Ie](fe,0)}),fe}function nn(At,ne,Yt,fe,pe){var Oe=(0,ye.zX)(function(Ie,Ye){return!!(Yt&&Yt(Ie,Ye)||fe&&At.isAfter(fe,Ie)&&!Ft(At,ne,fe,Ie,Ye.type)||pe&&At.isAfter(Ie,pe)&&!Ft(At,ne,pe,Ie,Ye.type))});return Oe}function Le(At,ne,Yt){return Nt.useMemo(function(){var fe=$t(At,ne,Yt),pe=kt(fe),Oe=pe[0],Ie=(0,kn.Z)(Oe)==="object"&&Oe.type==="mask"?Oe.format:null;return[pe.map(function(Ye){return typeof Ye=="string"||typeof Ye=="function"?Ye:Ye.format}),Ie]},[At,ne,Yt])}function Pe(At,ne,Yt){return typeof At[0]=="function"||Yt?!0:ne}function be(At,ne,Yt,fe){var pe=(0,ye.zX)(function(Oe,Ie){var Ye=(0,xe.Z)({type:ne},Ie);if(delete Ye.activeIndex,!At.isValidate(Oe)||Yt&&Yt(Oe,Ye))return!0;if((ne==="date"||ne==="time")&&fe){var Pn,En=Ie&&Ie.activeIndex===1?"end":"start",Ue=((Pn=fe.disabledTime)===null||Pn===void 0?void 0:Pn.call(fe,Oe,En,{from:Ye.from}))||{},Zn=Ue.disabledHours,ri=Ue.disabledMinutes,oe=Ue.disabledSeconds,Tn=Ue.disabledMilliseconds,Fn=fe.disabledHours,wn=fe.disabledMinutes,pn=fe.disabledSeconds,ci=Zn||Fn,li=ri||wn,_n=oe||pn,oi=At.getHour(Oe),pi=At.getMinute(Oe),Ii=At.getSecond(Oe),gr=At.getMillisecond(Oe);if(ci&&ci().includes(oi)||li&&li(oi).includes(pi)||_n&&_n(oi,pi).includes(Ii)||Tn&&Tn(oi,pi,Ii).includes(gr))return!0}return!1});return pe}function We(At){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=Nt.useMemo(function(){var fe=At&&kt(At);return ne&&fe&&(fe[1]=fe[1]||fe[0]),fe},[At,ne]);return Yt}function rn(At,ne){var Yt=At.generateConfig,fe=At.locale,pe=At.picker,Oe=pe===void 0?"date":pe,Ie=At.prefixCls,Ye=Ie===void 0?"rc-picker":Ie,Pn=At.styles,En=Pn===void 0?{}:Pn,Ue=At.classNames,Zn=Ue===void 0?{}:Ue,ri=At.order,oe=ri===void 0?!0:ri,Tn=At.components,Fn=Tn===void 0?{}:Tn,wn=At.inputRender,pn=At.allowClear,ci=At.clearIcon,li=At.needConfirm,_n=At.multiple,oi=At.format,pi=At.inputReadOnly,Ii=At.disabledDate,gr=At.minDate,dr=At.maxDate,pr=At.showTime,ui=At.value,rr=At.defaultValue,Ji=At.pickerValue,or=At.defaultPickerValue,_i=We(ui),sr=We(rr),mn=We(Ji),wi=We(or),Ti=Oe==="date"&&pr?"datetime":Oe,zi=Ti==="time"||Ti==="datetime",Di=zi||_n,Bi=li!=null?li:zi,$n=An(At),lr=(0,me.Z)($n,4),Mr=lr[0],Ar=lr[1],Ui=lr[2],Wr=lr[3],Or=Ke(fe,Ar),Er=Nt.useMemo(function(){return Bn(Ti,Ui,Wr,Mr,Or)},[Ti,Ui,Wr,Mr,Or]),eo=Nt.useMemo(function(){return(0,xe.Z)((0,xe.Z)({},At),{},{prefixCls:Ye,locale:Or,picker:Oe,styles:En,classNames:Zn,order:oe,components:(0,xe.Z)({input:wn},Fn),clearIcon:Be(Ye,pn,ci),showTime:Er,value:_i,defaultValue:sr,pickerValue:mn,defaultPickerValue:wi},ne==null?void 0:ne())},[At]),ao=Le(Ti,Or,oi),ko=(0,me.Z)(ao,2),Yr=ko[0],ta=ko[1],yo=Pe(Yr,pi,_n),na=nn(Yt,fe,Ii,gr,dr),Co=be(Yt,Oe,na,Er),Uo=Nt.useMemo(function(){return(0,xe.Z)((0,xe.Z)({},eo),{},{needConfirm:Bi,inputReadOnly:yo,disabledDate:na})},[eo,Bi,yo,na]);return[Uo,Ti,Di,Yr,ta,Co]}var Hn=Ot(16089);function vn(At,ne,Yt){var fe=(0,ye.C8)(ne,{value:At}),pe=(0,me.Z)(fe,2),Oe=pe[0],Ie=pe[1],Ye=Nt.useRef(At),Pn=Nt.useRef(),En=function(){Hn.Z.cancel(Pn.current)},Ue=(0,ye.zX)(function(){Ie(Ye.current),Yt&&Oe!==Ye.current&&Yt(Ye.current)}),Zn=(0,ye.zX)(function(ri,oe){En(),Ye.current=ri,ri||oe?Ue():Pn.current=(0,Hn.Z)(Ue)});return Nt.useEffect(function(){return En},[]),[Oe,Zn]}function Cn(At,ne){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],fe=arguments.length>3?arguments[3]:void 0,pe=Yt.every(function(Ue){return Ue})?!1:At,Oe=vn(pe,ne||!1,fe),Ie=(0,me.Z)(Oe,2),Ye=Ie[0],Pn=Ie[1];function En(Ue){var Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Zn.inherit||Ye)&&Pn(Ue,Zn.force)}return[Ye,En]}function mi(At){var ne=Nt.useRef();return Nt.useImperativeHandle(At,function(){var Yt;return{nativeElement:(Yt=ne.current)===null||Yt===void 0?void 0:Yt.nativeElement,focus:function(pe){var Oe;(Oe=ne.current)===null||Oe===void 0||Oe.focus(pe)},blur:function(){var pe;(pe=ne.current)===null||pe===void 0||pe.blur()}}}),ne}function Gn(At,ne){return Nt.useMemo(function(){return At||(ne?((0,ve.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ne).map(function(Yt){var fe=(0,me.Z)(Yt,2),pe=fe[0],Oe=fe[1];return{label:pe,value:Oe}})):[])},[At,ne])}function yi(At,ne){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,fe=Nt.useRef(ne);fe.current=ne,(0,Ht.o)(function(){if(At)fe.current(At);else{var pe=(0,Hn.Z)(function(){fe.current(At)},Yt);return function(){Hn.Z.cancel(pe)}}},[At])}function ni(At){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=Nt.useState(0),pe=(0,me.Z)(fe,2),Oe=pe[0],Ie=pe[1],Ye=Nt.useState(!1),Pn=(0,me.Z)(Ye,2),En=Pn[0],Ue=Pn[1],Zn=Nt.useRef([]),ri=Nt.useRef(null),oe=Nt.useRef(null),Tn=function(_n){ri.current=_n},Fn=function(_n){return ri.current===_n},wn=function(_n){Ue(_n)},pn=function(_n){return _n&&(oe.current=_n),oe.current},ci=function(_n){var oi=Zn.current,pi=new Set(oi.filter(function(gr){return _n[gr]||ne[gr]})),Ii=oi[oi.length-1]===0?1:0;return pi.size>=2||At[Ii]?null:Ii};return yi(En||Yt,function(){En||(Zn.current=[],Tn(null))}),Nt.useEffect(function(){En&&Zn.current.push(Oe)},[En,Oe]),[En,wn,pn,Oe,Ie,ci,Zn.current,Tn,Fn]}function ki(At,ne,Yt,fe,pe,Oe){var Ie=Yt[Yt.length-1],Ye=function(En,Ue){var Zn=(0,me.Z)(At,2),ri=Zn[0],oe=Zn[1],Tn=(0,xe.Z)((0,xe.Z)({},Ue),{},{from:Wt(At,Yt)});return Ie===1&&ne[0]&&ri&&!Ft(fe,pe,ri,En,Tn.type)&&fe.isAfter(ri,En)||Ie===0&&ne[1]&&oe&&!Ft(fe,pe,oe,En,Tn.type)&&fe.isAfter(En,oe)?!0:Oe==null?void 0:Oe(En,Tn)};return Ye}function Ri(At,ne,Yt,fe){switch(ne){case"date":case"week":return At.addMonth(Yt,fe);case"month":case"quarter":return At.addYear(Yt,fe);case"year":return At.addYear(Yt,fe*10);case"decade":return At.addYear(Yt,fe*100);default:return Yt}}var Qi=[];function Ir(At,ne,Yt,fe,pe,Oe,Ie,Ye){var Pn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Qi,En=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Qi,Ue=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Qi,Zn=arguments.length>11?arguments[11]:void 0,ri=arguments.length>12?arguments[12]:void 0,oe=arguments.length>13?arguments[13]:void 0,Tn=Ie==="time",Fn=Oe||0,wn=function(mn){var wi=At.getNow();return Tn&&(wi=Se(At,wi)),Pn[mn]||Yt[mn]||wi},pn=(0,me.Z)(En,2),ci=pn[0],li=pn[1],_n=(0,ye.C8)(function(){return wn(0)},{value:ci}),oi=(0,me.Z)(_n,2),pi=oi[0],Ii=oi[1],gr=(0,ye.C8)(function(){return wn(1)},{value:li}),dr=(0,me.Z)(gr,2),pr=dr[0],ui=dr[1],rr=Nt.useMemo(function(){var sr=[pi,pr][Fn];return Tn?sr:Se(At,sr,Ue[Fn])},[Tn,pi,pr,Fn,At,Ue]),Ji=function(mn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ti=[Ii,ui][Fn];Ti(mn);var zi=[pi,pr];zi[Fn]=mn,Zn&&(!Ft(At,ne,pi,zi[0],Ie)||!Ft(At,ne,pr,zi[1],Ie))&&Zn(zi,{source:wi,range:Fn===1?"end":"start",mode:fe})},or=function(mn,wi){if(Ye){var Ti={date:"month",week:"month",month:"year",quarter:"year"},zi=Ti[Ie];if(zi&&!Ft(At,ne,mn,wi,zi))return Ri(At,Ie,wi,-1);if(Ie==="year"&&mn){var Di=Math.floor(At.getYear(mn)/10),Bi=Math.floor(At.getYear(wi)/10);if(Di!==Bi)return Ri(At,Ie,wi,-1)}}return wi},_i=Nt.useRef(null);return(0,Ht.Z)(function(){if(pe&&!Pn[Fn]){var sr=Tn?null:At.getNow();if(_i.current!==null&&_i.current!==Fn?sr=[pi,pr][Fn^1]:Yt[Fn]?sr=Fn===0?Yt[0]:or(Yt[0],Yt[1]):Yt[Fn^1]&&(sr=Yt[Fn^1]),sr){ri&&At.isAfter(ri,sr)&&(sr=ri);var mn=Ye?Ri(At,Ie,sr,1):sr;oe&&At.isAfter(mn,oe)&&(sr=Ye?Ri(At,Ie,oe,-1):oe),Ji(sr,"reset")}}},[pe,Fn,Yt[Fn]]),Nt.useEffect(function(){pe?_i.current=Fn:_i.current=null},[pe,Fn]),(0,Ht.Z)(function(){pe&&Pn&&Pn[Fn]&&Ji(Pn[Fn],"reset")},[pe,Fn]),[rr,Ji]}function Xi(At,ne){var Yt=Nt.useRef(At),fe=Nt.useState({}),pe=(0,me.Z)(fe,2),Oe=pe[1],Ie=function(En){return En&&ne!==void 0?ne:Yt.current},Ye=function(En){Yt.current=En,Oe({})};return[Ie,Ye,Ie(!0)]}var Rr=[];function wo(At,ne,Yt){var fe=function(Ie){return Ie.map(function(Ye){return Fe(Ye,{generateConfig:At,locale:ne,format:Yt[0]})})},pe=function(Ie,Ye){for(var Pn=Math.max(Ie.length,Ye.length),En=-1,Ue=0;Ue2&&arguments[2]!==void 0?arguments[2]:1,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,pe=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Oe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Ie=[],Ye=Yt>=1?Yt|0:1,Pn=At;Pn<=ne;Pn+=Ye){var En=pe.includes(Pn);(!En||!fe)&&Ie.push({label:St(Pn,Oe),value:Pn,disabled:En})}return Ie}function Dn(At){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yt=arguments.length>2?arguments[2]:void 0,fe=ne||{},pe=fe.use12Hours,Oe=fe.hourStep,Ie=Oe===void 0?1:Oe,Ye=fe.minuteStep,Pn=Ye===void 0?1:Ye,En=fe.secondStep,Ue=En===void 0?1:En,Zn=fe.millisecondStep,ri=Zn===void 0?100:Zn,oe=fe.hideDisabledOptions,Tn=fe.disabledTime,Fn=fe.disabledHours,wn=fe.disabledMinutes,pn=fe.disabledSeconds,ci=Nt.useMemo(function(){return Yt||At.getNow()},[Yt,At]);if(0)var li,_n,oi;var pi=Nt.useCallback(function(Di){var Bi=(Tn==null?void 0:Tn(Di))||{};return[Bi.disabledHours||Fn||Lt,Bi.disabledMinutes||wn||Lt,Bi.disabledSeconds||pn||Lt,Bi.disabledMilliseconds||Lt]},[Tn,Fn,wn,pn]),Ii=Nt.useMemo(function(){return pi(ci)},[ci,pi]),gr=(0,me.Z)(Ii,4),dr=gr[0],pr=gr[1],ui=gr[2],rr=gr[3],Ji=Nt.useCallback(function(Di,Bi,$n,lr){var Mr=yn(0,23,Ie,oe,Di()),Ar=pe?Mr.map(function(Er){return(0,xe.Z)((0,xe.Z)({},Er),{},{label:St(Er.value%12||12,2)})}):Mr,Ui=function(eo){return yn(0,59,Pn,oe,Bi(eo))},Wr=function(eo,ao){return yn(0,59,Ue,oe,$n(eo,ao))},Or=function(eo,ao,ko){return yn(0,999,ri,oe,lr(eo,ao,ko),3)};return[Ar,Ui,Wr,Or]},[oe,Ie,pe,ri,Pn,Ue]),or=Nt.useMemo(function(){return Ji(dr,pr,ui,rr)},[Ji,dr,pr,ui,rr]),_i=(0,me.Z)(or,4),sr=_i[0],mn=_i[1],wi=_i[2],Ti=_i[3],zi=function(Bi,$n){var lr=function(){return sr},Mr=mn,Ar=wi,Ui=Ti;if($n){var Wr=pi($n),Or=(0,me.Z)(Wr,4),Er=Or[0],eo=Or[1],ao=Or[2],ko=Or[3],Yr=Ji(Er,eo,ao,ko),ta=(0,me.Z)(Yr,4),yo=ta[0],na=ta[1],Co=ta[2],Uo=ta[3];lr=function(){return yo},Mr=na,Ar=Co,Ui=Uo}var ia=Vo(Bi,lr,Mr,Ar,Ui,At);return ia};return[zi,sr,mn,wi,Ti]}function Lr(At){var ne=At.mode,Yt=At.internalMode,fe=At.renderExtraFooter,pe=At.showNow,Oe=At.showTime,Ie=At.onSubmit,Ye=At.onNow,Pn=At.invalid,En=At.needConfirm,Ue=At.generateConfig,Zn=At.disabledDate,ri=Nt.useContext(ct),oe=ri.prefixCls,Tn=ri.locale,Fn=ri.button,wn=Fn===void 0?"button":Fn,pn=Ue.getNow(),ci=Dn(Ue,Oe,pn),li=(0,me.Z)(ci,1),_n=li[0],oi=fe==null?void 0:fe(ne),pi=Zn(pn,{type:ne}),Ii=function(){if(!pi){var or=_n(pn);Ye(or)}},gr="".concat(oe,"-now"),dr="".concat(gr,"-btn"),pr=pe&&Nt.createElement("li",{className:gr},Nt.createElement("a",{className:bt()(dr,pi&&"".concat(dr,"-disabled")),"aria-disabled":pi,onClick:Ii},Yt==="date"?Tn.today:Tn.now)),ui=En&&Nt.createElement("li",{className:"".concat(oe,"-ok")},Nt.createElement(wn,{disabled:Pn,onClick:Ie},Tn.ok)),rr=(pr||ui)&&Nt.createElement("ul",{className:"".concat(oe,"-ranges")},pr,ui);return!oi&&!rr?null:Nt.createElement("div",{className:"".concat(oe,"-footer")},oi&&Nt.createElement("div",{className:"".concat(oe,"-footer-extra")},oi),rr)}function vr(At,ne,Yt){function fe(pe,Oe){var Ie=pe.findIndex(function(Pn){return Ft(At,ne,Pn,Oe,Yt)});if(Ie===-1)return[].concat((0,ee.Z)(pe),[Oe]);var Ye=(0,ee.Z)(pe);return Ye.splice(Ie,1),Ye}return fe}var Vi=Nt.createContext(null);function Jr(){return Nt.useContext(Vi)}function mo(At,ne){var Yt=At.prefixCls,fe=At.generateConfig,pe=At.locale,Oe=At.disabledDate,Ie=At.minDate,Ye=At.maxDate,Pn=At.cellRender,En=At.hoverValue,Ue=At.hoverRangeValue,Zn=At.onHover,ri=At.values,oe=At.pickerValue,Tn=At.onSelect,Fn=At.prevIcon,wn=At.nextIcon,pn=At.superPrevIcon,ci=At.superNextIcon,li=fe.getNow(),_n={now:li,values:ri,pickerValue:oe,prefixCls:Yt,disabledDate:Oe,minDate:Ie,maxDate:Ye,cellRender:Pn,hoverValue:En,hoverRangeValue:Ue,onHover:Zn,locale:pe,generateConfig:fe,onSelect:Tn,panelType:ne,prevIcon:Fn,nextIcon:wn,superPrevIcon:pn,superNextIcon:ci};return[_n,li]}var Je=Nt.createContext({});function $e(At){for(var ne=At.rowNum,Yt=At.colNum,fe=At.baseDate,pe=At.getCellDate,Oe=At.prefixColumn,Ie=At.rowClassName,Ye=At.titleFormat,Pn=At.getCellText,En=At.getCellClassName,Ue=At.headerCells,Zn=At.cellSelection,ri=Zn===void 0?!0:Zn,oe=At.disabledDate,Tn=Jr(),Fn=Tn.prefixCls,wn=Tn.panelType,pn=Tn.now,ci=Tn.disabledDate,li=Tn.cellRender,_n=Tn.onHover,oi=Tn.hoverValue,pi=Tn.hoverRangeValue,Ii=Tn.generateConfig,gr=Tn.values,dr=Tn.locale,pr=Tn.onSelect,ui=oe||ci,rr="".concat(Fn,"-cell"),Ji=Nt.useContext(Je),or=Ji.onCellDblClick,_i=function($n){return gr.some(function(lr){return lr&&Ft(Ii,dr,$n,lr,wn)})},sr=[],mn=0;mn1&&arguments[1]!==void 0?arguments[1]:!1;Io(Hi),wn==null||wn(Hi),cr&&So(Hi)},Ca=function(Hi,cr){Or(Hi),cr&&oa(cr),So(cr,Hi)},Ro=function(Hi){if(Co(Hi),oa(Hi),Wr!==_n){var cr=["decade","year"],qi=[].concat(cr,["month"]),Un={quarter:[].concat(cr,["quarter"]),week:[].concat((0,ee.Z)(qi),["week"]),date:[].concat((0,ee.Z)(qi),["date"])},zo=Un[_n]||qi,se=zo.indexOf(Wr),en=zo[se+1];en&&Ca(en,Hi)}},Ra=Nt.useMemo(function(){var tr,Hi;if(Array.isArray(Ii)){var cr=(0,me.Z)(Ii,2);tr=cr[0],Hi=cr[1]}else tr=Ii;return!tr&&!Hi?null:(tr=tr||Hi,Hi=Hi||tr,pe.isAfter(tr,Hi)?[Hi,tr]:[tr,Hi])},[Ii,pe]),xo=de(gr,dr,pr),so=rr[Er]||ti[Er]||Gi,no=Nt.useContext(Je),qo=Nt.useMemo(function(){return(0,xe.Z)((0,xe.Z)({},no),{},{hideHeader:Ji})},[no,Ji]),fo="".concat(or,"-panel"),La=Gt(At,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Nt.createElement(Je.Provider,{value:qo},Nt.createElement("div",{ref:_i,tabIndex:Pn,className:bt()(fo,(0,He.Z)({},"".concat(fo,"-rtl"),Oe==="rtl"))},Nt.createElement(so,(0,Tt.Z)({},La,{showTime:lr,prefixCls:or,locale:Bi,generateConfig:pe,onModeChange:Ca,pickerValue:Qo,onPickerValueChange:function(Hi){oa(Hi,!0)},value:yo[0],onSelect:Ro,values:yo,cellRender:xo,hoverRangeValue:Ra,hoverValue:pi}))))}var Fi=Nt.memo(Nt.forwardRef(ii)),yr=Fi;function ir(At){var ne=At.picker,Yt=At.multiplePanel,fe=At.pickerValue,pe=At.onPickerValueChange,Oe=At.needConfirm,Ie=At.onSubmit,Ye=At.range,Pn=At.hoverValue,En=Nt.useContext(ct),Ue=En.prefixCls,Zn=En.generateConfig,ri=Nt.useCallback(function(ci,li){return Ri(Zn,ne,ci,li)},[Zn,ne]),oe=Nt.useMemo(function(){return ri(fe,1)},[fe,ri]),Tn=function(li){pe(ri(li,-1))},Fn={onCellDblClick:function(){Oe&&Ie()}},wn=ne==="time",pn=(0,xe.Z)((0,xe.Z)({},At),{},{hoverValue:null,hoverRangeValue:null,hideHeader:wn});return Ye?pn.hoverRangeValue=Pn:pn.hoverValue=Pn,Yt?Nt.createElement("div",{className:"".concat(Ue,"-panels")},Nt.createElement(Je.Provider,{value:(0,xe.Z)((0,xe.Z)({},Fn),{},{hideNext:!0})},Nt.createElement(yr,pn)),Nt.createElement(Je.Provider,{value:(0,xe.Z)((0,xe.Z)({},Fn),{},{hidePrev:!0})},Nt.createElement(yr,(0,Tt.Z)({},pn,{pickerValue:oe,onPickerValueChange:Tn})))):Nt.createElement(Je.Provider,{value:(0,xe.Z)({},Fn)},Nt.createElement(yr,pn))}function Ln(At){return typeof At=="function"?At():At}function vi(At){var ne=At.prefixCls,Yt=At.presets,fe=At.onClick,pe=At.onHover;return Yt.length?Nt.createElement("div",{className:"".concat(ne,"-presets")},Nt.createElement("ul",null,Yt.map(function(Oe,Ie){var Ye=Oe.label,Pn=Oe.value;return Nt.createElement("li",{key:Ie,onClick:function(){fe(Ln(Pn))},onMouseEnter:function(){pe(Ln(Pn))},onMouseLeave:function(){pe(null)}},Ye)}))):null}function mr(At){var ne=At.panelRender,Yt=At.internalMode,fe=At.picker,pe=At.showNow,Oe=At.range,Ie=At.multiple,Ye=At.activeInfo,Pn=Ye===void 0?[0,0,0]:Ye,En=At.presets,Ue=At.onPresetHover,Zn=At.onPresetSubmit,ri=At.onFocus,oe=At.onBlur,Tn=At.onPanelMouseDown,Fn=At.direction,wn=At.value,pn=At.onSelect,ci=At.isInvalid,li=At.defaultOpenValue,_n=At.onOk,oi=At.onSubmit,pi=Nt.useContext(ct),Ii=pi.prefixCls,gr="".concat(Ii,"-panel"),dr=Fn==="rtl",pr=Nt.useRef(null),ui=Nt.useRef(null),rr=Nt.useState(0),Ji=(0,me.Z)(rr,2),or=Ji[0],_i=Ji[1],sr=Nt.useState(0),mn=(0,me.Z)(sr,2),wi=mn[0],Ti=mn[1],zi=Nt.useState(0),Di=(0,me.Z)(zi,2),Bi=Di[0],$n=Di[1],lr=function(Ro){Ro.width&&_i(Ro.width)},Mr=(0,me.Z)(Pn,3),Ar=Mr[0],Ui=Mr[1],Wr=Mr[2],Or=Nt.useState(0),Er=(0,me.Z)(Or,2),eo=Er[0],ao=Er[1];Nt.useEffect(function(){ao(10)},[Ar]),Nt.useEffect(function(){if(Oe&&ui.current){var Ca,Ro=((Ca=pr.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,Ra=ui.current.getBoundingClientRect();if(!Ra.height||Ra.right<0){ao(function(qo){return Math.max(0,qo-1)});return}var xo=(dr?Ui-Ro:Ar)-Ra.left;if($n(xo),or&&or=Ye&&Yt<=Pn)return Oe;var En=Math.min(Math.abs(Yt-Ye),Math.abs(Yt-Pn));En0?Ws:aa));var sa=$a+ca,_r=aa-Ws+1;return String(Ws+(_r+sa-Ws)%_r)};switch(cr){case"Backspace":case"Delete":qi="",Un=se;break;case"ArrowLeft":qi="",en(-1);break;case"ArrowRight":qi="",en(1);break;case"ArrowUp":qi="",Un=za(1);break;case"ArrowDown":qi="",Un=za(-1);break;default:isNaN(Number(cr))||(qi=Bi+cr,Un=qi);break}if(qi!==null&&($n(qi),qi.length>=zo&&(en(1),$n(""))),Un!==null){var ja=ao.slice(0,Co)+St(Un,zo)+ao.slice(Uo);Qo(ja.slice(0,Ie.length))}eo({})},fo=Nt.useRef();(0,Ht.Z)(function(){if(!(!or||!Ie||oa.current)){if(!ta.match(ao)){Qo(Ie);return}return Yr.current.setSelectionRange(Co,Uo),fo.current=(0,Hn.Z)(function(){Yr.current.setSelectionRange(Co,Uo)}),function(){Hn.Z.cancel(fo.current)}}},[ta,Ie,or,ao,Ar,Co,Uo,Er,Qo]);var La=Ie?{onFocus:Ra,onBlur:so,onKeyDown:qo,onMouseDown:Ca,onMouseUp:Ro,onPaste:So}:{};return Nt.createElement("div",{ref:ko,className:bt()(ui,(0,He.Z)((0,He.Z)({},"".concat(ui,"-active"),Yt&&pe),"".concat(ui,"-placeholder"),Ue))},Nt.createElement(pr,(0,Tt.Z)({ref:Yr,"aria-invalid":wn,autoComplete:"off"},ci,{onKeyDown:no,onBlur:xo},La,{value:ao,onChange:Io})),Nt.createElement(xr,{type:"suffix",icon:Oe}),pn)}),jr=Zi,Tr=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Fo=["index"];function Gr(At,ne){var Yt=At.id,fe=At.prefix,pe=At.clearIcon,Oe=At.suffixIcon,Ie=At.separator,Ye=Ie===void 0?"~":Ie,Pn=At.activeIndex,En=At.activeHelp,Ue=At.allHelp,Zn=At.focused,ri=At.onFocus,oe=At.onBlur,Tn=At.onKeyDown,Fn=At.locale,wn=At.generateConfig,pn=At.placeholder,ci=At.className,li=At.style,_n=At.onClick,oi=At.onClear,pi=At.value,Ii=At.onChange,gr=At.onSubmit,dr=At.onInputChange,pr=At.format,ui=At.maskFormat,rr=At.preserveInvalidOnBlur,Ji=At.onInvalid,or=At.disabled,_i=At.invalid,sr=At.inputReadOnly,mn=At.direction,wi=At.onOpenChange,Ti=At.onActiveInfo,zi=At.placement,Di=At.onMouseDown,Bi=At.required,$n=At["aria-required"],lr=At.autoFocus,Mr=At.tabIndex,Ar=(0,br.Z)(At,Tr),Ui=mn==="rtl",Wr=Nt.useContext(ct),Or=Wr.prefixCls,Er=Nt.useMemo(function(){if(typeof Yt=="string")return[Yt];var xo=Yt||{};return[xo.start,xo.end]},[Yt]),eo=Nt.useRef(),ao=Nt.useRef(),ko=Nt.useRef(),Yr=function(so){var no;return(no=[ao,ko][so])===null||no===void 0?void 0:no.current};Nt.useImperativeHandle(ne,function(){return{nativeElement:eo.current,focus:function(so){if((0,kn.Z)(so)==="object"){var no,qo=so||{},fo=qo.index,La=fo===void 0?0:fo,tr=(0,br.Z)(qo,Fo);(no=Yr(La))===null||no===void 0||no.focus(tr)}else{var Hi;(Hi=Yr(so!=null?so:0))===null||Hi===void 0||Hi.focus()}},blur:function(){var so,no;(so=Yr(0))===null||so===void 0||so.blur(),(no=Yr(1))===null||no===void 0||no.blur()}}});var ta=Mi(Ar),yo=Nt.useMemo(function(){return Array.isArray(pn)?pn:[pn,pn]},[pn]),na=to((0,xe.Z)((0,xe.Z)({},At),{},{id:Er,placeholder:yo})),Co=(0,me.Z)(na,1),Uo=Co[0],ia=Nt.useState({position:"absolute",width:0}),Qo=(0,me.Z)(ia,2),Io=Qo[0],So=Qo[1],oa=(0,ye.zX)(function(){var xo=Yr(Pn);if(xo){var so=xo.nativeElement.getBoundingClientRect(),no=eo.current.getBoundingClientRect(),qo=so.left-no.left;So(function(fo){return(0,xe.Z)((0,xe.Z)({},fo),{},{width:so.width,left:qo})}),Ti([so.left,so.right,no.width])}});Nt.useEffect(function(){oa()},[Pn]);var Ca=pe&&(pi[0]&&!or[0]||pi[1]&&!or[1]),Ro=lr&&!or[0],Ra=lr&&!Ro&&!or[1];return Nt.createElement(Lo.Z,{onResize:oa},Nt.createElement("div",(0,Tt.Z)({},ta,{className:bt()(Or,"".concat(Or,"-range"),(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(Or,"-focused"),Zn),"".concat(Or,"-disabled"),or.every(function(xo){return xo})),"".concat(Or,"-invalid"),_i.some(function(xo){return xo})),"".concat(Or,"-rtl"),Ui),ci),style:li,ref:eo,onClick:_n,onMouseDown:function(so){var no=so.target;no!==ao.current.inputElement&&no!==ko.current.inputElement&&so.preventDefault(),Di==null||Di(so)}}),fe&&Nt.createElement("div",{className:"".concat(Or,"-prefix")},fe),Nt.createElement(jr,(0,Tt.Z)({ref:ao},Uo(0),{autoFocus:Ro,tabIndex:Mr,"date-range":"start"})),Nt.createElement("div",{className:"".concat(Or,"-range-separator")},Ye),Nt.createElement(jr,(0,Tt.Z)({ref:ko},Uo(1),{autoFocus:Ra,tabIndex:Mr,"date-range":"end"})),Nt.createElement("div",{className:"".concat(Or,"-active-bar"),style:Io}),Nt.createElement(xr,{type:"suffix",icon:Oe}),Ca&&Nt.createElement(ur,{icon:pe,onClear:oi})))}var Sr=Nt.forwardRef(Gr),bo=Sr;function Ne(At,ne){var Yt=At!=null?At:ne;return Array.isArray(Yt)?Yt:[Yt,Yt]}function cn(At){return At===1?"end":"start"}function Ae(At,ne){var Yt=rn(At,function(){var Zr=At.disabled,Xr=At.allowEmpty,ho=Ne(Zr,!1),$o=Ne(Xr,!1);return{disabled:ho,allowEmpty:$o}}),fe=(0,me.Z)(Yt,6),pe=fe[0],Oe=fe[1],Ie=fe[2],Ye=fe[3],Pn=fe[4],En=fe[5],Ue=pe.prefixCls,Zn=pe.styles,ri=pe.classNames,oe=pe.defaultValue,Tn=pe.value,Fn=pe.needConfirm,wn=pe.onKeyDown,pn=pe.disabled,ci=pe.allowEmpty,li=pe.disabledDate,_n=pe.minDate,oi=pe.maxDate,pi=pe.defaultOpen,Ii=pe.open,gr=pe.onOpenChange,dr=pe.locale,pr=pe.generateConfig,ui=pe.picker,rr=pe.showNow,Ji=pe.showToday,or=pe.showTime,_i=pe.mode,sr=pe.onPanelChange,mn=pe.onCalendarChange,wi=pe.onOk,Ti=pe.defaultPickerValue,zi=pe.pickerValue,Di=pe.onPickerValueChange,Bi=pe.inputReadOnly,$n=pe.suffixIcon,lr=pe.onFocus,Mr=pe.onBlur,Ar=pe.presets,Ui=pe.ranges,Wr=pe.components,Or=pe.cellRender,Er=pe.dateRender,eo=pe.monthCellRender,ao=pe.onClick,ko=mi(ne),Yr=Cn(Ii,pi,pn,gr),ta=(0,me.Z)(Yr,2),yo=ta[0],na=ta[1],Co=function(Xr,ho){(pn.some(function($o){return!$o})||!Xr)&&na(Xr,ho)},Uo=po(pr,dr,Ye,!0,!1,oe,Tn,mn,wi),ia=(0,me.Z)(Uo,5),Qo=ia[0],Io=ia[1],So=ia[2],oa=ia[3],Ca=ia[4],Ro=So(),Ra=ni(pn,ci,yo),xo=(0,me.Z)(Ra,9),so=xo[0],no=xo[1],qo=xo[2],fo=xo[3],La=xo[4],tr=xo[5],Hi=xo[6],cr=xo[7],qi=xo[8],Un=function(Xr,ho){no(!0),lr==null||lr(Xr,{range:cn(ho!=null?ho:fo)})},zo=function(Xr,ho){no(!1),Mr==null||Mr(Xr,{range:cn(ho!=null?ho:fo)})},se=Nt.useMemo(function(){if(!or)return null;var Zr=or.disabledTime,Xr=Zr?function(ho){var $o=cn(fo),ns=Wt(Ro,Hi,fo);return Zr(ho,$o,{from:ns})}:void 0;return(0,xe.Z)((0,xe.Z)({},or),{},{disabledTime:Xr})},[or,fo,Ro,Hi]),en=(0,ye.C8)([ui,ui],{value:_i}),za=(0,me.Z)(en,2),ja=za[0],da=za[1],ca=ja[fo]||ui,Za=ca==="date"&&se?"datetime":ca,Ta=Za===ui&&Za!=="time",Ws=Zo(ui,ca,rr,Ji,!0),aa=Do(pe,Qo,Io,So,oa,pn,Ye,so,yo,En),kr=(0,me.Z)(aa,2),Va=kr[0],$a=kr[1],sa=ki(Ro,pn,Hi,pr,dr,li),_r=le(Ro,En,ci),ga=(0,me.Z)(_r,2),ls=ga[0],ra=ga[1],us=Ir(pr,dr,Ro,ja,yo,fo,Oe,Ta,Ti,zi,se==null?void 0:se.defaultOpenValue,Di,_n,oi),Da=(0,me.Z)(us,2),Fl=Da[0],Bo=Da[1],ka=(0,ye.zX)(function(Zr,Xr,ho){var $o=zt(ja,fo,Xr);if(($o[0]!==ja[0]||$o[1]!==ja[1])&&da($o),sr&&ho!==!1){var ns=(0,ee.Z)(Ro);Zr&&(ns[fo]=Zr),sr(ns,$o)}}),Mo=function(Xr,ho){return zt(Ro,ho,Xr)},Xo=function(Xr,ho){var $o=Ro;Xr&&($o=Mo(Xr,fo)),cr(fo);var ns=tr($o);oa($o),Va(fo,ns===null),ns===null?Co(!1,{force:!0}):ho||ko.current.focus({index:ns})},ua=function(Xr){var ho,$o=Xr.target.getRootNode();if(!ko.current.nativeElement.contains((ho=$o.activeElement)!==null&&ho!==void 0?ho:document.activeElement)){var ns=pn.findIndex(function(hs){return!hs});ns>=0&&ko.current.focus({index:ns})}Co(!0),ao==null||ao(Xr)},pa=function(){$a(null),Co(!1,{force:!0})},Yo=Nt.useState(null),fl=(0,me.Z)(Yo,2),Dr=fl[0],pu=fl[1],lo=Nt.useState(null),Zl=(0,me.Z)(lo,2),Qs=Zl[0],bl=Zl[1],mu=Nt.useMemo(function(){return Qs||Ro},[Ro,Qs]);Nt.useEffect(function(){yo||bl(null)},[yo]);var vu=Nt.useState([0,0,0]),Hs=(0,me.Z)(vu,2),Vl=Hs[0],Wo=Hs[1],Gs=Gn(Ar,Ui),yu=function(Xr){bl(Xr),pu("preset")},gl=function(Xr){var ho=$a(Xr);ho&&Co(!1,{force:!0})},bu=function(Xr){Xo(Xr)},pl=function(Xr){bl(Xr?Mo(Xr,fo):null),pu("cell")},Po=function(Xr){Co(!0),Un(Xr)},jo=function(){qo("panel")},wa=function(Xr){var ho=zt(Ro,fo,Xr);oa(ho),!Fn&&!Ie&&Oe===Za&&Xo(Xr)},ts=function(){Co(!1)},Ja=de(Or,Er,eo,cn(fo)),Nl=Ro[fo]||null,ml=(0,ye.zX)(function(Zr){return En(Zr,{activeIndex:fo})}),Ao=Nt.useMemo(function(){var Zr=(0,je.Z)(pe,!1),Xr=(0,ae.Z)(pe,[].concat((0,ee.Z)(Object.keys(Zr)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Xr},[pe]),qr=Nt.createElement(mr,(0,Tt.Z)({},Ao,{showNow:Ws,showTime:se,range:!0,multiplePanel:Ta,activeInfo:Vl,disabledDate:sa,onFocus:Po,onBlur:zo,onPanelMouseDown:jo,picker:ui,mode:ca,internalMode:Za,onPanelChange:ka,format:Pn,value:Nl,isInvalid:ml,onChange:null,onSelect:wa,pickerValue:Fl,defaultOpenValue:kt(or==null?void 0:or.defaultOpenValue)[fo],onPickerValueChange:Bo,hoverValue:mu,onHover:pl,needConfirm:Fn,onSubmit:Xo,onOk:Ca,presets:Gs,onPresetHover:yu,onPresetSubmit:gl,onNow:bu,cellRender:Ja})),Ka=function(Xr,ho){var $o=Mo(Xr,ho);oa($o)},iu=function(){qo("input")},Fd=function(Xr,ho){var $o=Hi.length,ns=Hi[$o-1];if($o&&ns!==ho&&Fn&&!ci[ns]&&!qi(ns)&&Ro[ns]){ko.current.focus({index:ns});return}qo("input"),Co(!0,{inherit:!0}),fo!==ho&&yo&&!Fn&&Ie&&Xo(null,!0),La(ho),Un(Xr,ho)},hg=function(Xr,ho){if(Co(!1),!Fn&&qo()==="input"){var $o=tr(Ro);Va(fo,$o===null)}zo(Xr,ho)},tf=function(Xr,ho){Xr.key==="Tab"&&Xo(null,!0),wn==null||wn(Xr,ho)},Wa=Nt.useMemo(function(){return{prefixCls:Ue,locale:dr,generateConfig:pr,button:Wr.button,input:Wr.input}},[Ue,dr,pr,Wr.button,Wr.input]);if((0,Ht.Z)(function(){yo&&fo!==void 0&&ka(null,ui,!1)},[yo,fo,ui]),(0,Ht.Z)(function(){var Zr=qo();!yo&&Zr==="input"&&(Co(!1),Xo(null,!0)),!yo&&Ie&&!Fn&&Zr==="panel"&&(Co(!0),Xo())},[yo]),0)var Ju;return Nt.createElement(ct.Provider,{value:Wa},Nt.createElement(mt,(0,Tt.Z)({},Jt(pe),{popupElement:qr,popupStyle:Zn.popup,popupClassName:ri.popup,visible:yo,onClose:ts,range:!0}),Nt.createElement(bo,(0,Tt.Z)({},pe,{ref:ko,suffixIcon:$n,activeIndex:so||yo?fo:null,activeHelp:!!Qs,allHelp:!!Qs&&Dr==="preset",focused:so,onFocus:Fd,onBlur:hg,onKeyDown:tf,onSubmit:Xo,value:mu,maskFormat:Pn,onChange:Ka,onInputChange:iu,format:Ye,inputReadOnly:Bi,disabled:pn,open:yo,onOpenChange:Co,onClick:ua,onClear:pa,invalid:ls,onInvalid:ra,onActiveInfo:Wo}))))}var Dt=Nt.forwardRef(Ae),bn=Dt,si=Ot(11780);function Oi(At){var ne=At.prefixCls,Yt=At.value,fe=At.onRemove,pe=At.removeIcon,Oe=pe===void 0?"\xD7":pe,Ie=At.formatDate,Ye=At.disabled,Pn=At.maxTagCount,En=At.placeholder,Ue="".concat(ne,"-selector"),Zn="".concat(ne,"-selection"),ri="".concat(Zn,"-overflow");function oe(wn,pn){return Nt.createElement("span",{className:bt()("".concat(Zn,"-item")),title:typeof wn=="string"?wn:null},Nt.createElement("span",{className:"".concat(Zn,"-item-content")},wn),!Ye&&pn&&Nt.createElement("span",{onMouseDown:function(li){li.preventDefault()},onClick:pn,className:"".concat(Zn,"-item-remove")},Oe))}function Tn(wn){var pn=Ie(wn),ci=function(_n){_n&&_n.stopPropagation(),fe(wn)};return oe(pn,ci)}function Fn(wn){var pn="+ ".concat(wn.length," ...");return oe(pn)}return Nt.createElement("div",{className:Ue},Nt.createElement(si.Z,{prefixCls:ri,data:Yt,renderItem:Tn,renderRest:Fn,itemKey:function(pn){return Ie(pn)},maxCount:Pn}),!Yt.length&&Nt.createElement("span",{className:"".concat(ne,"-selection-placeholder")},En))}var Ai=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function gi(At,ne){var Yt=At.id,fe=At.open,pe=At.prefix,Oe=At.clearIcon,Ie=At.suffixIcon,Ye=At.activeHelp,Pn=At.allHelp,En=At.focused,Ue=At.onFocus,Zn=At.onBlur,ri=At.onKeyDown,oe=At.locale,Tn=At.generateConfig,Fn=At.placeholder,wn=At.className,pn=At.style,ci=At.onClick,li=At.onClear,_n=At.internalPicker,oi=At.value,pi=At.onChange,Ii=At.onSubmit,gr=At.onInputChange,dr=At.multiple,pr=At.maxTagCount,ui=At.format,rr=At.maskFormat,Ji=At.preserveInvalidOnBlur,or=At.onInvalid,_i=At.disabled,sr=At.invalid,mn=At.inputReadOnly,wi=At.direction,Ti=At.onOpenChange,zi=At.onMouseDown,Di=At.required,Bi=At["aria-required"],$n=At.autoFocus,lr=At.tabIndex,Mr=At.removeIcon,Ar=(0,br.Z)(At,Ai),Ui=wi==="rtl",Wr=Nt.useContext(ct),Or=Wr.prefixCls,Er=Nt.useRef(),eo=Nt.useRef();Nt.useImperativeHandle(ne,function(){return{nativeElement:Er.current,focus:function(Io){var So;(So=eo.current)===null||So===void 0||So.focus(Io)},blur:function(){var Io;(Io=eo.current)===null||Io===void 0||Io.blur()}}});var ao=Mi(Ar),ko=function(Io){pi([Io])},Yr=function(Io){var So=oi.filter(function(oa){return oa&&!Ft(Tn,oe,oa,Io,_n)});pi(So),fe||Ii()},ta=to((0,xe.Z)((0,xe.Z)({},At),{},{onChange:ko}),function(Qo){var Io=Qo.valueTexts;return{value:Io[0]||"",active:En}}),yo=(0,me.Z)(ta,2),na=yo[0],Co=yo[1],Uo=!!(Oe&&oi.length&&!_i),ia=dr?Nt.createElement(Nt.Fragment,null,Nt.createElement(Oi,{prefixCls:Or,value:oi,onRemove:Yr,formatDate:Co,maxTagCount:pr,disabled:_i,removeIcon:Mr,placeholder:Fn}),Nt.createElement("input",{className:"".concat(Or,"-multiple-input"),value:oi.map(Co).join(","),ref:eo,readOnly:!0,autoFocus:$n,tabIndex:lr}),Nt.createElement(xr,{type:"suffix",icon:Ie}),Uo&&Nt.createElement(ur,{icon:Oe,onClear:li})):Nt.createElement(jr,(0,Tt.Z)({ref:eo},na(),{autoFocus:$n,tabIndex:lr,suffixIcon:Ie,clearIcon:Uo&&Nt.createElement(ur,{icon:Oe,onClear:li}),showActiveCls:!1}));return Nt.createElement("div",(0,Tt.Z)({},ao,{className:bt()(Or,(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(Or,"-multiple"),dr),"".concat(Or,"-focused"),En),"".concat(Or,"-disabled"),_i),"".concat(Or,"-invalid"),sr),"".concat(Or,"-rtl"),Ui),wn),style:pn,ref:Er,onClick:ci,onMouseDown:function(Io){var So,oa=Io.target;oa!==((So=eo.current)===null||So===void 0?void 0:So.inputElement)&&Io.preventDefault(),zi==null||zi(Io)}}),pe&&Nt.createElement("div",{className:"".concat(Or,"-prefix")},pe),ia)}var un=Nt.forwardRef(gi),Vn=un;function Xn(At,ne){var Yt=rn(At),fe=(0,me.Z)(Yt,6),pe=fe[0],Oe=fe[1],Ie=fe[2],Ye=fe[3],Pn=fe[4],En=fe[5],Ue=pe,Zn=Ue.prefixCls,ri=Ue.styles,oe=Ue.classNames,Tn=Ue.order,Fn=Ue.defaultValue,wn=Ue.value,pn=Ue.needConfirm,ci=Ue.onChange,li=Ue.onKeyDown,_n=Ue.disabled,oi=Ue.disabledDate,pi=Ue.minDate,Ii=Ue.maxDate,gr=Ue.defaultOpen,dr=Ue.open,pr=Ue.onOpenChange,ui=Ue.locale,rr=Ue.generateConfig,Ji=Ue.picker,or=Ue.showNow,_i=Ue.showToday,sr=Ue.showTime,mn=Ue.mode,wi=Ue.onPanelChange,Ti=Ue.onCalendarChange,zi=Ue.onOk,Di=Ue.multiple,Bi=Ue.defaultPickerValue,$n=Ue.pickerValue,lr=Ue.onPickerValueChange,Mr=Ue.inputReadOnly,Ar=Ue.suffixIcon,Ui=Ue.removeIcon,Wr=Ue.onFocus,Or=Ue.onBlur,Er=Ue.presets,eo=Ue.components,ao=Ue.cellRender,ko=Ue.dateRender,Yr=Ue.monthCellRender,ta=Ue.onClick,yo=mi(ne);function na(Ao){return Ao===null?null:Di?Ao:Ao[0]}var Co=vr(rr,ui,Oe),Uo=Cn(dr,gr,[_n],pr),ia=(0,me.Z)(Uo,2),Qo=ia[0],Io=ia[1],So=function(qr,Ka,iu){if(Ti){var Fd=(0,xe.Z)({},iu);delete Fd.range,Ti(na(qr),na(Ka),Fd)}},oa=function(qr){zi==null||zi(na(qr))},Ca=po(rr,ui,Ye,!1,Tn,Fn,wn,So,oa),Ro=(0,me.Z)(Ca,5),Ra=Ro[0],xo=Ro[1],so=Ro[2],no=Ro[3],qo=Ro[4],fo=so(),La=ni([_n]),tr=(0,me.Z)(La,4),Hi=tr[0],cr=tr[1],qi=tr[2],Un=tr[3],zo=function(qr){cr(!0),Wr==null||Wr(qr,{})},se=function(qr){cr(!1),Or==null||Or(qr,{})},en=(0,ye.C8)(Ji,{value:mn}),za=(0,me.Z)(en,2),ja=za[0],da=za[1],ca=ja==="date"&&sr?"datetime":ja,Za=Zo(Ji,ja,or,_i),Ta=ci&&function(Ao,qr){ci(na(Ao),na(qr))},Ws=Do((0,xe.Z)((0,xe.Z)({},pe),{},{onChange:Ta}),Ra,xo,so,no,[],Ye,Hi,Qo,En),aa=(0,me.Z)(Ws,2),kr=aa[1],Va=le(fo,En),$a=(0,me.Z)(Va,2),sa=$a[0],_r=$a[1],ga=Nt.useMemo(function(){return sa.some(function(Ao){return Ao})},[sa]),ls=function(qr,Ka){if(lr){var iu=(0,xe.Z)((0,xe.Z)({},Ka),{},{mode:Ka.mode[0]});delete iu.range,lr(qr[0],iu)}},ra=Ir(rr,ui,fo,[ja],Qo,Un,Oe,!1,Bi,$n,kt(sr==null?void 0:sr.defaultOpenValue),ls,pi,Ii),us=(0,me.Z)(ra,2),Da=us[0],Fl=us[1],Bo=(0,ye.zX)(function(Ao,qr,Ka){if(da(qr),wi&&Ka!==!1){var iu=Ao||fo[fo.length-1];wi(iu,qr)}}),ka=function(){kr(so()),Io(!1,{force:!0})},Mo=function(qr){!_n&&!yo.current.nativeElement.contains(document.activeElement)&&yo.current.focus(),Io(!0),ta==null||ta(qr)},Xo=function(){kr(null),Io(!1,{force:!0})},ua=Nt.useState(null),pa=(0,me.Z)(ua,2),Yo=pa[0],fl=pa[1],Dr=Nt.useState(null),pu=(0,me.Z)(Dr,2),lo=pu[0],Zl=pu[1],Qs=Nt.useMemo(function(){var Ao=[lo].concat((0,ee.Z)(fo)).filter(function(qr){return qr});return Di?Ao:Ao.slice(0,1)},[fo,lo,Di]),bl=Nt.useMemo(function(){return!Di&&lo?[lo]:fo.filter(function(Ao){return Ao})},[fo,lo,Di]);Nt.useEffect(function(){Qo||Zl(null)},[Qo]);var mu=Gn(Er),vu=function(qr){Zl(qr),fl("preset")},Hs=function(qr){var Ka=Di?Co(so(),qr):[qr],iu=kr(Ka);iu&&!Di&&Io(!1,{force:!0})},Vl=function(qr){Hs(qr)},Wo=function(qr){Zl(qr),fl("cell")},Gs=function(qr){Io(!0),zo(qr)},yu=function(qr){if(qi("panel"),!(Di&&ca!==Ji)){var Ka=Di?Co(so(),qr):[qr];no(Ka),!pn&&!Ie&&Oe===ca&&ka()}},gl=function(){Io(!1)},bu=de(ao,ko,Yr),pl=Nt.useMemo(function(){var Ao=(0,je.Z)(pe,!1),qr=(0,ae.Z)(pe,[].concat((0,ee.Z)(Object.keys(Ao)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,xe.Z)((0,xe.Z)({},qr),{},{multiple:pe.multiple})},[pe]),Po=Nt.createElement(mr,(0,Tt.Z)({},pl,{showNow:Za,showTime:sr,disabledDate:oi,onFocus:Gs,onBlur:se,picker:Ji,mode:ja,internalMode:ca,onPanelChange:Bo,format:Pn,value:fo,isInvalid:En,onChange:null,onSelect:yu,pickerValue:Da,defaultOpenValue:sr==null?void 0:sr.defaultOpenValue,onPickerValueChange:Fl,hoverValue:Qs,onHover:Wo,needConfirm:pn,onSubmit:ka,onOk:qo,presets:mu,onPresetHover:vu,onPresetSubmit:Hs,onNow:Vl,cellRender:bu})),jo=function(qr){no(qr)},wa=function(){qi("input")},ts=function(qr){qi("input"),Io(!0,{inherit:!0}),zo(qr)},Ja=function(qr){Io(!1),se(qr)},Nl=function(qr,Ka){qr.key==="Tab"&&ka(),li==null||li(qr,Ka)},ml=Nt.useMemo(function(){return{prefixCls:Zn,locale:ui,generateConfig:rr,button:eo.button,input:eo.input}},[Zn,ui,rr,eo.button,eo.input]);return(0,Ht.Z)(function(){Qo&&Un!==void 0&&Bo(null,Ji,!1)},[Qo,Un,Ji]),(0,Ht.Z)(function(){var Ao=qi();!Qo&&Ao==="input"&&(Io(!1),ka()),!Qo&&Ie&&!pn&&Ao==="panel"&&ka()},[Qo]),Nt.createElement(ct.Provider,{value:ml},Nt.createElement(mt,(0,Tt.Z)({},Jt(pe),{popupElement:Po,popupStyle:ri.popup,popupClassName:oe.popup,visible:Qo,onClose:gl}),Nt.createElement(Vn,(0,Tt.Z)({},pe,{ref:yo,suffixIcon:Ar,removeIcon:Ui,activeHelp:!!lo,allHelp:!!lo&&Yo==="preset",focused:Hi,onFocus:ts,onBlur:Ja,onKeyDown:Nl,onSubmit:ka,value:bl,maskFormat:Pn,onChange:jo,onInputChange:wa,internalPicker:Oe,format:Ye,inputReadOnly:Mr,disabled:_n,open:Qo,onOpenChange:Io,onClick:Mo,onClear:Xo,invalid:ga,onInvalid:function(qr){_r(qr,0)}}))))}var Mn=Nt.forwardRef(Xn),Yn=Mn,In=Yn},25930:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Cd:function(){return de}});var Tt=Ot(14809),ee=Ot(20439),xe=Ot(62646),me=Ot(59301),ye=Ot(92310),Ht=Ot.n(ye),ae={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},je=function(){var Re=(0,me.useRef)([]),Ke=(0,me.useRef)(null);return(0,me.useEffect)(function(){var kn=Date.now(),qe=!1;Re.current.forEach(function(on){if(on){qe=!0;var gn=on.style;gn.transitionDuration=".3s, .3s, .3s, .06s",Ke.current&&kn-Ke.current<100&&(gn.transitionDuration="0s, 0s")}}),qe&&(Ke.current=Date.now())}),Re.current},ve=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Nt=function(Re){var Ke=(0,ee.Z)((0,ee.Z)({},ae),Re),kn=Ke.className,qe=Ke.percent,on=Ke.prefixCls,gn=Ke.strokeColor,ge=Ke.strokeLinecap,Xt=Ke.strokeWidth,Ve=Ke.style,An=Ke.trailColor,Bn=Ke.trailWidth,Be=Ke.transition,dn=(0,xe.Z)(Ke,ve);delete dn.gapPosition;var Qe=Array.isArray(qe)?qe:[qe],On=Array.isArray(gn)?gn:[gn],we=je(),ue=Xt/2,Xe=100-Xt/2,di="M ".concat(ge==="round"?ue:0,",").concat(ue,` L `).concat(ge==="round"?Xe:100,",").concat(ue),Li="0 0 100 ".concat(Xt),It=0;return me.createElement("svg",(0,Tt.Z)({className:Ht()("".concat(on,"-line"),kn),viewBox:Li,preserveAspectRatio:"none",style:Ve},dn),me.createElement("path",{className:"".concat(on,"-line-trail"),d:di,strokeLinecap:ge,stroke:An,strokeWidth:Bn||Xt,fillOpacity:"0"}),Qe.map(function(Ct,xt){var Ft=1;switch(ge){case"round":Ft=1-Xt/100;break;case"square":Ft=1-Xt/2/100;break;default:Ft=1;break}var jt={strokeDasharray:"".concat(Ct*Ft,"px, 100px"),strokeDashoffset:"-".concat(It,"px"),transition:Be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Mt=On[xt]||On[On.length-1];return It+=Ct,me.createElement("path",{key:xt,className:"".concat(on,"-line-path"),d:di,strokeLinecap:ge,stroke:Mt,strokeWidth:Xt,fillOpacity:"0",ref:function(Fe){we[xt]=Fe},style:jt})}))},He=Nt,ie=Ot(93664),Ge=Ot(50298),bt=Ot(47273),nt=0,et=(0,bt.Z)();function ct(){var De;return et?(De=nt,nt+=1):De="TEST_OR_SSR",De}var lt=function(De){var Re=me.useState(),Ke=(0,Ge.Z)(Re,2),kn=Ke[0],qe=Ke[1];return me.useEffect(function(){qe("rc_progress_".concat(ct()))},[]),De||kn},gt=function(Re){var Ke=Re.bg,kn=Re.children;return me.createElement("div",{style:{width:"100%",height:"100%",background:Ke}},kn)};function mt(De,Re){return Object.keys(De).map(function(Ke){var kn=parseFloat(Ke),qe="".concat(Math.floor(kn*Re),"%");return"".concat(De[Ke]," ").concat(qe)})}var St=me.forwardRef(function(De,Re){var Ke=De.prefixCls,kn=De.color,qe=De.gradientId,on=De.radius,gn=De.style,ge=De.ptg,Xt=De.strokeLinecap,Ve=De.strokeWidth,An=De.size,Bn=De.gapDegree,Be=kn&&(0,ie.Z)(kn)==="object",dn=Be?"#FFF":void 0,Qe=An/2,On=me.createElement("circle",{className:"".concat(Ke,"-circle-path"),r:on,cx:Qe,cy:Qe,stroke:dn,strokeLinecap:Xt,strokeWidth:Ve,opacity:ge===0?0:1,style:gn,ref:Re});if(!Be)return On;var we="".concat(qe,"-conic"),ue=Bn?"".concat(180+Bn/2,"deg"):"0deg",Xe=mt(kn,(360-Bn)/360),di=mt(kn,1),Li="conic-gradient(from ".concat(ue,", ").concat(Xe.join(", "),")"),It="linear-gradient(to ".concat(Bn?"bottom":"top",", ").concat(di.join(", "),")");return me.createElement(me.Fragment,null,me.createElement("mask",{id:we},On),me.createElement("foreignObject",{x:0,y:0,width:An,height:An,mask:"url(#".concat(we,")")},me.createElement(gt,{bg:It},me.createElement(gt,{bg:Li}))))}),kt=St,zt=100,Gt=function(Re,Ke,kn,qe,on,gn,ge,Xt,Ve,An){var Bn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Be=kn/100*360*((360-gn)/360),dn=gn===0?0:{bottom:0,top:180,left:90,right:-90}[ge],Qe=(100-qe)/100*Ke;Ve==="round"&&qe!==100&&(Qe+=An/2,Qe>=Ke&&(Qe=Ke-.01));var On=zt/2;return{stroke:typeof Xt=="string"?Xt:void 0,strokeDasharray:"".concat(Ke,"px ").concat(Re),strokeDashoffset:Qe+Bn,transform:"rotate(".concat(on+Be+dn,"deg)"),transformOrigin:"".concat(On,"px ").concat(On,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},$t=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Wt(De){var Re=De!=null?De:[];return Array.isArray(Re)?Re:[Re]}var Jt=function(Re){var Ke=(0,ee.Z)((0,ee.Z)({},ae),Re),kn=Ke.id,qe=Ke.prefixCls,on=Ke.steps,gn=Ke.strokeWidth,ge=Ke.trailWidth,Xt=Ke.gapDegree,Ve=Xt===void 0?0:Xt,An=Ke.gapPosition,Bn=Ke.trailColor,Be=Ke.strokeLinecap,dn=Ke.style,Qe=Ke.className,On=Ke.strokeColor,we=Ke.percent,ue=(0,xe.Z)(Ke,$t),Xe=zt/2,di=lt(kn),Li="".concat(di,"-gradient"),It=Xe-gn/2,Ct=Math.PI*2*It,xt=Ve>0?90+Ve/2:-90,Ft=Ct*((360-Ve)/360),jt=(0,ie.Z)(on)==="object"?on:{count:on,gap:2},Mt=jt.count,Ut=jt.gap,Fe=Wt(we),Se=Wt(On),nn=Se.find(function(vn){return vn&&(0,ie.Z)(vn)==="object"}),Le=nn&&(0,ie.Z)(nn)==="object",Pe=Le?"butt":Be,be=Gt(Ct,Ft,0,100,xt,Ve,An,Bn,Pe,gn),We=je(),rn=function(){var Cn=0;return Fe.map(function(mi,Gn){var yi=Se[Gn]||Se[Se.length-1],ni=Gt(Ct,Ft,Cn,mi,xt,Ve,An,yi,Pe,gn);return Cn+=mi,me.createElement(kt,{key:Gn,color:yi,ptg:mi,radius:It,prefixCls:qe,gradientId:Li,style:ni,strokeLinecap:Pe,strokeWidth:gn,gapDegree:Ve,ref:function(Ri){We[Gn]=Ri},size:zt})}).reverse()},Hn=function(){var Cn=Math.round(Mt*(Fe[0]/100)),mi=100/Mt,Gn=0;return new Array(Mt).fill(null).map(function(yi,ni){var ki=ni<=Cn-1?Se[0]:Bn,Ri=ki&&(0,ie.Z)(ki)==="object"?"url(#".concat(Li,")"):void 0,Qi=Gt(Ct,Ft,Gn,mi,xt,Ve,An,ki,"butt",gn,Ut);return Gn+=(Ft-Qi.strokeDashoffset+Ut)*100/Ft,me.createElement("circle",{key:ni,className:"".concat(qe,"-circle-path"),r:It,cx:Xe,cy:Xe,stroke:Ri,strokeWidth:gn,opacity:1,style:Qi,ref:function(Xi){We[ni]=Xi}})})};return me.createElement("svg",(0,Tt.Z)({className:Ht()("".concat(qe,"-circle"),Qe),viewBox:"0 0 ".concat(zt," ").concat(zt),style:dn,id:kn,role:"presentation"},ue),!Mt&&me.createElement("circle",{className:"".concat(qe,"-circle-trail"),r:It,cx:Xe,cy:Xe,stroke:Bn,strokeLinecap:Pe,strokeWidth:ge||gn,style:be}),Mt?Hn():rn())},de=Jt,le={Line:He,Circle:de}},6551:function(Wn,ai,Ot){"use strict";Ot.d(ai,{ZP:function(){return ae}});var Tt=Ot(50298),ee=Ot(59301),xe=Ot(47273),me=0,ye=(0,xe.Z)();function Ht(){var je;return ye?(je=me,me+=1):je="TEST_OR_SSR",je}function ae(je){var ve=ee.useState(),Nt=(0,Tt.Z)(ve,2),He=Nt[0],ie=Nt[1];return ee.useEffect(function(){ie("rc_select_".concat(Ht()))},[]),je||He}},37463:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Ac:function(){return yi},Xo:function(){return ki},Wx:function(){return Qi},ZP:function(){return Si},lk:function(){return mt}});var Tt=Ot(14809),ee=Ot(95190),xe=Ot(4635),me=Ot(20439),ye=Ot(50298),Ht=Ot(62646),ae=Ot(93664),je=Ot(18929),ve=Ot(48736),Nt=Ot(59301),He=Ot(92310),ie=Ot.n(He),Ge=Ot(34280),bt=Ot(49658),nt=Ot(8654),et=function(Ce){var Jn=Ce.className,Qn=Ce.customizeIcon,Ze=Ce.customizeIconProps,qn=Ce.children,Rn=Ce.onMouseDown,zn=Ce.onClick,Pi=typeof Qn=="function"?Qn(Ze):Qn;return Nt.createElement("span",{className:Jn,onMouseDown:function(ii){ii.preventDefault(),Rn==null||Rn(ii)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zn,"aria-hidden":!0},Pi!==void 0?Pi:Nt.createElement("span",{className:ie()(Jn.split(/\s+/).map(function(ti){return"".concat(ti,"-icon")}))},qn))},ct=et,lt=function(Ce,Jn,Qn,Ze,qn){var Rn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zn=arguments.length>6?arguments[6]:void 0,Pi=arguments.length>7?arguments[7]:void 0,ti=Nt.useMemo(function(){if((0,ae.Z)(Ze)==="object")return Ze.clearIcon;if(qn)return qn},[Ze,qn]),ii=Nt.useMemo(function(){return!!(!Rn&&Ze&&(Qn.length||zn)&&!(Pi==="combobox"&&zn===""))},[Ze,Rn,Qn.length,zn,Pi]);return{allowClear:ii,clearIcon:Nt.createElement(ct,{className:"".concat(Ce,"-clear"),onMouseDown:Jn,customizeIcon:ti},"\xD7")}},gt=Nt.createContext(null);function mt(){return Nt.useContext(gt)}function St(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ce=Nt.useState(!1),Jn=(0,ye.Z)(Ce,2),Qn=Jn[0],Ze=Jn[1],qn=Nt.useRef(null),Rn=function(){window.clearTimeout(qn.current)};Nt.useEffect(function(){return Rn},[]);var zn=function(ti,ii){Rn(),qn.current=window.setTimeout(function(){Ze(ti),ii&&ii()},qt)};return[Qn,zn,Rn]}function kt(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ce=Nt.useRef(null),Jn=Nt.useRef(null);Nt.useEffect(function(){return function(){window.clearTimeout(Jn.current)}},[]);function Qn(Ze){(Ze||Ce.current===null)&&(Ce.current=Ze),window.clearTimeout(Jn.current),Jn.current=window.setTimeout(function(){Ce.current=null},qt)}return[function(){return Ce.current},Qn]}function zt(qt,Ce,Jn,Qn){var Ze=Nt.useRef(null);Ze.current={open:Ce,triggerOpen:Jn,customizedTrigger:Qn},Nt.useEffect(function(){function qn(Rn){var zn;if(!((zn=Ze.current)!==null&&zn!==void 0&&zn.customizedTrigger)){var Pi=Rn.target;Pi.shadowRoot&&Rn.composed&&(Pi=Rn.composedPath()[0]||Pi),Ze.current.open&&qt().filter(function(ti){return ti}).every(function(ti){return!ti.contains(Pi)&&ti!==Pi})&&Ze.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qn),function(){return window.removeEventListener("mousedown",qn)}},[])}var Gt=Ot(10228);function $t(qt){return qt&&![Gt.Z.ESC,Gt.Z.SHIFT,Gt.Z.BACKSPACE,Gt.Z.TAB,Gt.Z.WIN_KEY,Gt.Z.ALT,Gt.Z.META,Gt.Z.WIN_KEY_RIGHT,Gt.Z.CTRL,Gt.Z.SEMICOLON,Gt.Z.EQUALS,Gt.Z.CAPS_LOCK,Gt.Z.CONTEXT_MENU,Gt.Z.F1,Gt.Z.F2,Gt.Z.F3,Gt.Z.F4,Gt.Z.F5,Gt.Z.F6,Gt.Z.F7,Gt.Z.F8,Gt.Z.F9,Gt.Z.F10,Gt.Z.F11,Gt.Z.F12].includes(qt)}var Wt=Ot(26112),Jt=Ot(11780);function de(qt,Ce,Jn){var Qn=(0,me.Z)((0,me.Z)({},qt),Jn?Ce:{});return Object.keys(Ce).forEach(function(Ze){var qn=Ce[Ze];typeof qn=="function"&&(Qn[Ze]=function(){for(var Rn,zn=arguments.length,Pi=new Array(zn),ti=0;tiEe&&(Yt="".concat(fe.slice(0,Ee),"..."))}var pe=function(Ie){Ie&&Ie.stopPropagation(),ur(Mn)};return typeof hi=="function"?Oi(At,Yt,Yn,ne,pe):si(Mn,Yt,Yn,ne,pe)},gi=function(Mn){if(!Ze.length)return null;var Yn=typeof Ki=="function"?Ki(Mn):Ki;return typeof hi=="function"?Oi(void 0,Yn,!1,!1,void 0,!0):si({title:Yn},Yn,!1)},un=Nt.createElement("div",{className:"".concat(Ae,"-search"),style:{width:Fo},onFocus:function(){cn(!0)},onBlur:function(){cn(!1)}},Nt.createElement(kn,{ref:Pi,open:qn,prefixCls:Qn,id:Jn,inputElement:null,disabled:ii,autoFocus:ir,autoComplete:Ln,editable:bn,activeDescendantId:vi,value:Dt,onKeyDown:zr,onMouseDown:Qr,onChange:Cr,onPaste:Nr,onCompositionStart:an,onCompositionEnd:vo,onBlur:sn,tabIndex:mr,attrs:(0,Wt.Z)(Ce,!0)}),Nt.createElement("span",{ref:Zi,className:"".concat(Ae,"-search-mirror"),"aria-hidden":!0},Dt,"\xA0")),Vn=Nt.createElement(Jt.Z,{prefixCls:"".concat(Ae,"-overflow"),data:Ze,renderItem:Ai,renderRest:gi,suffix:un,itemKey:Be,maxCount:to});return Nt.createElement("span",{className:"".concat(Ae,"-wrap")},Vn,!Ze.length&&!Dt&&Nt.createElement("span",{className:"".concat(Ae,"-placeholder")},ti))},On=Qe,we=function(Ce){var Jn=Ce.inputElement,Qn=Ce.prefixCls,Ze=Ce.id,qn=Ce.inputRef,Rn=Ce.disabled,zn=Ce.autoFocus,Pi=Ce.autoComplete,ti=Ce.activeDescendantId,ii=Ce.mode,Fi=Ce.open,yr=Ce.values,ir=Ce.placeholder,Ln=Ce.tabIndex,vi=Ce.showSearch,mr=Ce.searchValue,br=Ce.activeValue,to=Ce.maxLength,Ee=Ce.onInputKeyDown,Mi=Ce.onInputMouseDown,Ki=Ce.onInputChange,hi=Ce.onInputPaste,xr=Ce.onInputCompositionStart,ur=Ce.onInputCompositionEnd,Cr=Ce.onInputBlur,Nr=Ce.title,zr=Nt.useState(!1),Qr=(0,ye.Z)(zr,2),an=Qr[0],vo=Qr[1],sn=ii==="combobox",Zi=sn||vi,jr=yr[0],Tr=mr||"";sn&&br&&!an&&(Tr=br),Nt.useEffect(function(){sn&&vo(!1)},[sn,br]);var Fo=ii!=="combobox"&&!Fi&&!vi?!1:!!Tr,Gr=Nr===void 0?An(jr):Nr,Sr=Nt.useMemo(function(){return jr?null:Nt.createElement("span",{className:"".concat(Qn,"-selection-placeholder"),style:Fo?{visibility:"hidden"}:void 0},ir)},[jr,Fo,ir,Qn]);return Nt.createElement("span",{className:"".concat(Qn,"-selection-wrap")},Nt.createElement("span",{className:"".concat(Qn,"-selection-search")},Nt.createElement(kn,{ref:qn,prefixCls:Qn,id:Ze,open:Fi,inputElement:Jn,disabled:Rn,autoFocus:zn,autoComplete:Pi,editable:Zi,activeDescendantId:ti,value:Tr,onKeyDown:Ee,onMouseDown:Mi,onChange:function(Ne){vo(!0),Ki(Ne)},onPaste:hi,onCompositionStart:xr,onCompositionEnd:ur,onBlur:Cr,tabIndex:Ln,attrs:(0,Wt.Z)(Ce,!0),maxLength:sn?to:void 0})),!sn&&jr?Nt.createElement("span",{className:"".concat(Qn,"-selection-item"),title:Gr,style:Fo?{visibility:"hidden"}:void 0},jr.label):null,Sr)},ue=we,Xe=function(Ce,Jn){var Qn=(0,Nt.useRef)(null),Ze=(0,Nt.useRef)(!1),qn=Ce.prefixCls,Rn=Ce.open,zn=Ce.mode,Pi=Ce.showSearch,ti=Ce.tokenWithEnter,ii=Ce.disabled,Fi=Ce.prefix,yr=Ce.autoClearSearchValue,ir=Ce.onSearch,Ln=Ce.onSearchSubmit,vi=Ce.onToggleOpen,mr=Ce.onInputKeyDown,br=Ce.onInputBlur,to=Ce.domRef;Nt.useImperativeHandle(Jn,function(){return{focus:function(Gr){Qn.current.focus(Gr)},blur:function(){Qn.current.blur()}}});var Ee=kt(0),Mi=(0,ye.Z)(Ee,2),Ki=Mi[0],hi=Mi[1],xr=function(Gr){var Sr=Gr.which,bo=Qn.current instanceof HTMLTextAreaElement;!bo&&Rn&&(Sr===Gt.Z.UP||Sr===Gt.Z.DOWN)&&Gr.preventDefault(),mr&&mr(Gr),Sr===Gt.Z.ENTER&&zn==="tags"&&!Ze.current&&!Rn&&(Ln==null||Ln(Gr.target.value)),!(bo&&!Rn&&~[Gt.Z.UP,Gt.Z.DOWN,Gt.Z.LEFT,Gt.Z.RIGHT].indexOf(Sr))&&$t(Sr)&&vi(!0)},ur=function(){hi(!0)},Cr=(0,Nt.useRef)(null),Nr=function(Gr){ir(Gr,!0,Ze.current)!==!1&&vi(!0)},zr=function(){Ze.current=!0},Qr=function(Gr){Ze.current=!1,zn!=="combobox"&&Nr(Gr.target.value)},an=function(Gr){var Sr=Gr.target.value;if(ti&&Cr.current&&/[\r\n]/.test(Cr.current)){var bo=Cr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Sr=Sr.replace(bo,Cr.current)}Cr.current=null,Nr(Sr)},vo=function(Gr){var Sr=Gr.clipboardData,bo=Sr==null?void 0:Sr.getData("text");Cr.current=bo||""},sn=function(Gr){var Sr=Gr.target;if(Sr!==Qn.current){var bo=document.body.style.msTouchAction!==void 0;bo?setTimeout(function(){Qn.current.focus()}):Qn.current.focus()}},Zi=function(Gr){var Sr=Ki();Gr.target!==Qn.current&&!Sr&&!(zn==="combobox"&&ii)&&Gr.preventDefault(),(zn!=="combobox"&&(!Pi||!Sr)||!Rn)&&(Rn&&yr!==!1&&ir("",!0,!1),vi())},jr={inputRef:Qn,onInputKeyDown:xr,onInputMouseDown:ur,onInputChange:an,onInputPaste:vo,onInputCompositionStart:zr,onInputCompositionEnd:Qr,onInputBlur:br},Tr=zn==="multiple"||zn==="tags"?Nt.createElement(On,(0,Tt.Z)({},Ce,jr)):Nt.createElement(ue,(0,Tt.Z)({},Ce,jr));return Nt.createElement("div",{ref:to,className:"".concat(qn,"-selector"),onClick:sn,onMouseDown:Zi},Fi&&Nt.createElement("div",{className:"".concat(qn,"-prefix")},Fi),Tr)},di=Nt.forwardRef(Xe),Li=di,It=Ot(65966),Ct=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xt=function(Ce){var Jn=Ce===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"}}},Ft=function(Ce,Jn){var Qn=Ce.prefixCls,Ze=Ce.disabled,qn=Ce.visible,Rn=Ce.children,zn=Ce.popupElement,Pi=Ce.animation,ti=Ce.transitionName,ii=Ce.dropdownStyle,Fi=Ce.dropdownClassName,yr=Ce.direction,ir=yr===void 0?"ltr":yr,Ln=Ce.placement,vi=Ce.builtinPlacements,mr=Ce.dropdownMatchSelectWidth,br=Ce.dropdownRender,to=Ce.dropdownAlign,Ee=Ce.getPopupContainer,Mi=Ce.empty,Ki=Ce.getTriggerDOMNode,hi=Ce.onPopupVisibleChange,xr=Ce.onPopupMouseEnter,ur=(0,Ht.Z)(Ce,Ct),Cr="".concat(Qn,"-dropdown"),Nr=zn;br&&(Nr=br(zn));var zr=Nt.useMemo(function(){return vi||xt(mr)},[vi,mr]),Qr=Pi?"".concat(Cr,"-").concat(Pi):ti,an=typeof mr=="number",vo=Nt.useMemo(function(){return an?null:mr===!1?"minWidth":"width"},[mr,an]),sn=ii;an&&(sn=(0,me.Z)((0,me.Z)({},sn),{},{width:mr}));var Zi=Nt.useRef(null);return Nt.useImperativeHandle(Jn,function(){return{getPopupElement:function(){var Tr;return(Tr=Zi.current)===null||Tr===void 0?void 0:Tr.popupElement}}}),Nt.createElement(It.Z,(0,Tt.Z)({},ur,{showAction:hi?["click"]:[],hideAction:hi?["click"]:[],popupPlacement:Ln||(ir==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:zr,prefixCls:Cr,popupTransitionName:Qr,popup:Nt.createElement("div",{onMouseEnter:xr},Nr),ref:Zi,stretch:vo,popupAlign:to,popupVisible:qn,getPopupContainer:Ee,popupClassName:ie()(Fi,(0,xe.Z)({},"".concat(Cr,"-empty"),Mi)),popupStyle:sn,getTriggerDOMNode:Ki,onPopupVisibleChange:hi}),Rn)},jt=Nt.forwardRef(Ft),Mt=jt,Ut=Ot(21696);function Fe(qt,Ce){var Jn=qt.key,Qn;return"value"in qt&&(Qn=qt.value),Jn!=null?Jn:Qn!==void 0?Qn:"rc-index-key-".concat(Ce)}function Se(qt){return typeof qt!="undefined"&&!Number.isNaN(qt)}function nn(qt,Ce){var Jn=qt||{},Qn=Jn.label,Ze=Jn.value,qn=Jn.options,Rn=Jn.groupLabel,zn=Qn||(Ce?"children":"label");return{label:zn,value:Ze||"value",options:qn||"options",groupLabel:Rn||zn}}function Le(qt){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jn=Ce.fieldNames,Qn=Ce.childrenAsData,Ze=[],qn=nn(Jn,!1),Rn=qn.label,zn=qn.value,Pi=qn.options,ti=qn.groupLabel;function ii(Fi,yr){Array.isArray(Fi)&&Fi.forEach(function(ir){if(yr||!(Pi in ir)){var Ln=ir[zn];Ze.push({key:Fe(ir,Ze.length),groupOption:yr,data:ir,label:ir[Rn],value:Ln})}else{var vi=ir[ti];vi===void 0&&Qn&&(vi=ir.label),Ze.push({key:Fe(ir,Ze.length),group:!0,data:ir,label:vi}),ii(ir[Pi],!0)}})}return ii(qt,!1),Ze}function Pe(qt){var Ce=(0,me.Z)({},qt);return"props"in Ce||Object.defineProperty(Ce,"props",{get:function(){return(0,ve.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ce}}),Ce}var be=function(Ce,Jn,Qn){if(!Jn||!Jn.length)return null;var Ze=!1,qn=function zn(Pi,ti){var ii=(0,Ut.Z)(ti),Fi=ii[0],yr=ii.slice(1);if(!Fi)return[Pi];var ir=Pi.split(Fi);return Ze=Ze||ir.length>1,ir.reduce(function(Ln,vi){return[].concat((0,ee.Z)(Ln),(0,ee.Z)(zn(vi,yr)))},[]).filter(Boolean)},Rn=qn(Ce,Jn);return Ze?typeof Qn!="undefined"?Rn.slice(0,Qn):Rn:null},We=Nt.createContext(null),rn=We;function Hn(qt){var Ce=qt.visible,Jn=qt.values;if(!Ce)return null;var Qn=50;return Nt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Jn.slice(0,Qn).map(function(Ze){var qn=Ze.label,Rn=Ze.value;return["number","string"].includes((0,ae.Z)(qn))?qn:Rn}).join(", ")),Jn.length>Qn?", ...":null)}var vn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Cn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],mi=function(Ce){return Ce==="tags"||Ce==="multiple"},Gn=Nt.forwardRef(function(qt,Ce){var Jn,Qn=qt.id,Ze=qt.prefixCls,qn=qt.className,Rn=qt.showSearch,zn=qt.tagRender,Pi=qt.direction,ti=qt.omitDomProps,ii=qt.displayValues,Fi=qt.onDisplayValuesChange,yr=qt.emptyOptions,ir=qt.notFoundContent,Ln=ir===void 0?"Not Found":ir,vi=qt.onClear,mr=qt.mode,br=qt.disabled,to=qt.loading,Ee=qt.getInputElement,Mi=qt.getRawInputElement,Ki=qt.open,hi=qt.defaultOpen,xr=qt.onDropdownVisibleChange,ur=qt.activeValue,Cr=qt.onActiveValueChange,Nr=qt.activeDescendantId,zr=qt.searchValue,Qr=qt.autoClearSearchValue,an=qt.onSearch,vo=qt.onSearchSplit,sn=qt.tokenSeparators,Zi=qt.allowClear,jr=qt.prefix,Tr=qt.suffixIcon,Fo=qt.clearIcon,Gr=qt.OptionList,Sr=qt.animation,bo=qt.transitionName,Ne=qt.dropdownStyle,cn=qt.dropdownClassName,Ae=qt.dropdownMatchSelectWidth,Dt=qt.dropdownRender,bn=qt.dropdownAlign,si=qt.placement,Oi=qt.builtinPlacements,Ai=qt.getPopupContainer,gi=qt.showAction,un=gi===void 0?[]:gi,Vn=qt.onFocus,Xn=qt.onBlur,Mn=qt.onKeyUp,Yn=qt.onKeyDown,In=qt.onMouseDown,At=(0,Ht.Z)(qt,vn),ne=mi(mr),Yt=(Rn!==void 0?Rn:ne)||mr==="combobox",fe=(0,me.Z)({},At);Cn.forEach(function(Hi){delete fe[Hi]}),ti==null||ti.forEach(function(Hi){delete fe[Hi]});var pe=Nt.useState(!1),Oe=(0,ye.Z)(pe,2),Ie=Oe[0],Ye=Oe[1];Nt.useEffect(function(){Ye((0,bt.Z)())},[]);var Pn=Nt.useRef(null),En=Nt.useRef(null),Ue=Nt.useRef(null),Zn=Nt.useRef(null),ri=Nt.useRef(null),oe=Nt.useRef(!1),Tn=St(),Fn=(0,ye.Z)(Tn,3),wn=Fn[0],pn=Fn[1],ci=Fn[2];Nt.useImperativeHandle(Ce,function(){var Hi,cr;return{focus:(Hi=Zn.current)===null||Hi===void 0?void 0:Hi.focus,blur:(cr=Zn.current)===null||cr===void 0?void 0:cr.blur,scrollTo:function(Un){var zo;return(zo=ri.current)===null||zo===void 0?void 0:zo.scrollTo(Un)},nativeElement:Pn.current||En.current}});var li=Nt.useMemo(function(){var Hi;if(mr!=="combobox")return zr;var cr=(Hi=ii[0])===null||Hi===void 0?void 0:Hi.value;return typeof cr=="string"||typeof cr=="number"?String(cr):""},[zr,mr,ii]),_n=mr==="combobox"&&typeof Ee=="function"&&Ee()||null,oi=typeof Mi=="function"&&Mi(),pi=(0,nt.x1)(En,oi==null||(Jn=oi.props)===null||Jn===void 0?void 0:Jn.ref),Ii=Nt.useState(!1),gr=(0,ye.Z)(Ii,2),dr=gr[0],pr=gr[1];(0,Ge.Z)(function(){pr(!0)},[]);var ui=(0,je.Z)(!1,{defaultValue:hi,value:Ki}),rr=(0,ye.Z)(ui,2),Ji=rr[0],or=rr[1],_i=dr?Ji:!1,sr=!Ln&&yr;(br||sr&&_i&&mr==="combobox")&&(_i=!1);var mn=sr?!1:_i,wi=Nt.useCallback(function(Hi){var cr=Hi!==void 0?Hi:!_i;br||(or(cr),_i!==cr&&(xr==null||xr(cr)))},[br,_i,or,xr]),Ti=Nt.useMemo(function(){return(sn||[]).some(function(Hi){return[` `,`\r `].includes(Hi)})},[sn]),zi=Nt.useContext(rn)||{},Di=zi.maxCount,Bi=zi.rawValues,$n=function(cr,qi,Un){if(!(ne&&Se(Di)&&(Bi==null?void 0:Bi.size)>=Di)){var zo=!0,se=cr;Cr==null||Cr(null);var en=be(cr,sn,Se(Di)?Di-Bi.size:void 0),za=Un?null:en;return mr!=="combobox"&&za&&(se="",vo==null||vo(za),wi(!1),zo=!1),an&&li!==se&&an(se,{source:qi?"typing":"effect"}),zo}},lr=function(cr){!cr||!cr.trim()||an(cr,{source:"submit"})};Nt.useEffect(function(){!_i&&!ne&&mr!=="combobox"&&$n("",!1,!1)},[_i]),Nt.useEffect(function(){Ji&&br&&or(!1),br&&!oe.current&&pn(!1)},[br]);var Mr=kt(),Ar=(0,ye.Z)(Mr,2),Ui=Ar[0],Wr=Ar[1],Or=Nt.useRef(!1),Er=function(cr){var qi=Ui(),Un=cr.key,zo=Un==="Enter";if(zo&&(mr!=="combobox"&&cr.preventDefault(),_i||wi(!0)),Wr(!!li),Un==="Backspace"&&!qi&&ne&&!li&&ii.length){for(var se=(0,ee.Z)(ii),en=null,za=se.length-1;za>=0;za-=1){var ja=se[za];if(!ja.disabled){se.splice(za,1),en=ja;break}}en&&Fi(se,{type:"remove",values:[en]})}for(var da=arguments.length,ca=new Array(da>1?da-1:0),Za=1;Za1?qi-1:0),zo=1;zo1?en-1:0),ja=1;ja=Ln},[zn,Ln,Mi==null?void 0:Mi.size]),sn=function(un){un.preventDefault()},Zi=function(un){var Vn;(Vn=an.current)===null||Vn===void 0||Vn.scrollTo(typeof un=="number"?{index:un}:un)},jr=Nt.useCallback(function(gi){return Pi==="combobox"?!1:Mi.has(gi)},[Pi,(0,ee.Z)(Mi).toString(),Mi.size]),Tr=function(un){for(var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=Qr.length,Mn=0;Mn1&&arguments[1]!==void 0?arguments[1]:!1;bo(un);var Xn={source:Vn?"keyboard":"mouse"},Mn=Qr[un];if(!Mn){mr(null,-1,Xn);return}mr(Mn.value,un,Xn)};(0,Nt.useEffect)(function(){Ne(br!==!1?Tr(0):-1)},[Qr.length,ti]);var cn=Nt.useCallback(function(gi){return Pi==="combobox"?String(gi).toLowerCase()===ti.toLowerCase():Mi.has(gi)},[Pi,ti,(0,ee.Z)(Mi).toString(),Mi.size]);(0,Nt.useEffect)(function(){var gi=setTimeout(function(){if(!zn&&Rn&&Mi.size===1){var Vn=Array.from(Mi)[0],Xn=Qr.findIndex(function(Mn){var Yn=Mn.data;return ti?String(Yn.value).startsWith(ti):Yn.value===Vn});Xn!==-1&&(Ne(Xn),Zi(Xn))}});if(Rn){var un;(un=an.current)===null||un===void 0||un.scrollTo(void 0)}return function(){return clearTimeout(gi)}},[Rn,ti]);var Ae=function(un){un!==void 0&&to(un,{selected:!Mi.has(un)}),zn||ii(!1)};if(Nt.useImperativeHandle(Jn,function(){return{onKeyDown:function(un){var Vn=un.which,Xn=un.ctrlKey;switch(Vn){case Gt.Z.N:case Gt.Z.P:case Gt.Z.UP:case Gt.Z.DOWN:{var Mn=0;if(Vn===Gt.Z.UP?Mn=-1:Vn===Gt.Z.DOWN?Mn=1:wo()&&Xn&&(Vn===Gt.Z.N?Mn=1:Vn===Gt.Z.P&&(Mn=-1)),Mn!==0){var Yn=Tr(Sr+Mn,Mn);Zi(Yn),Ne(Yn,!0)}break}case Gt.Z.TAB:case Gt.Z.ENTER:{var In,At=Qr[Sr];At&&!(At!=null&&(In=At.data)!==null&&In!==void 0&&In.disabled)&&!vo?Ae(At.value):Ae(void 0),Rn&&un.preventDefault();break}case Gt.Z.ESC:ii(!1),Rn&&un.stopPropagation()}},onKeyUp:function(){},scrollTo:function(un){Zi(un)}}}),Qr.length===0)return Nt.createElement("div",{role:"listbox",id:"".concat(qn,"_list"),className:"".concat(zr,"-empty"),onMouseDown:sn},Fi);var Dt=Object.keys(Ki).map(function(gi){return Ki[gi]}),bn=function(un){return un.label};function si(gi,un){var Vn=gi.group;return{role:Vn?"presentation":"option",id:"".concat(qn,"_list_").concat(un)}}var Oi=function(un){var Vn=Qr[un];if(!Vn)return null;var Xn=Vn.data||{},Mn=Xn.value,Yn=Vn.group,In=(0,Wt.Z)(Xn,!0),At=bn(Vn);return Vn?Nt.createElement("div",(0,Tt.Z)({"aria-label":typeof At=="string"&&!Yn?At:null},In,{key:un},si(Vn,un),{"aria-selected":cn(Mn)}),Mn):null},Ai={role:"listbox",id:"".concat(qn,"_list")};return Nt.createElement(Nt.Fragment,null,hi&&Nt.createElement("div",(0,Tt.Z)({},Ai,{style:{height:0,width:0,overflow:"hidden"}}),Oi(Sr-1),Oi(Sr),Oi(Sr+1)),Nt.createElement(Rr.Z,{itemKey:"key",ref:an,data:Qr,height:ur,itemHeight:Cr,fullHeight:!1,onMouseDown:sn,onScroll:yr,virtual:hi,direction:xr,innerProps:hi?null:Ai},function(gi,un){var Vn=gi.group,Xn=gi.groupOption,Mn=gi.data,Yn=gi.label,In=gi.value,At=Mn.key;if(Vn){var ne,Yt=(ne=Mn.title)!==null&&ne!==void 0?ne:uo(Yn)?Yn.toString():void 0;return Nt.createElement("div",{className:ie()(zr,"".concat(zr,"-group"),Mn.className),title:Yt},Yn!==void 0?Yn:At)}var fe=Mn.disabled,pe=Mn.title,Oe=Mn.children,Ie=Mn.style,Ye=Mn.className,Pn=(0,Ht.Z)(Mn,oo),En=(0,Xi.Z)(Pn,Dt),Ue=jr(In),Zn=fe||!Ue&&vo,ri="".concat(zr,"-option"),oe=ie()(zr,ri,Ye,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(ri,"-grouped"),Xn),"".concat(ri,"-active"),Sr===un&&!Zn),"".concat(ri,"-disabled"),Zn),"".concat(ri,"-selected"),Ue)),Tn=bn(gi),Fn=!Ee||typeof Ee=="function"||Ue,wn=typeof Tn=="number"?Tn:Tn||In,pn=uo(wn)?wn.toString():void 0;return pe!==void 0&&(pn=pe),Nt.createElement("div",(0,Tt.Z)({},(0,Wt.Z)(En),hi?{}:si(gi,un),{"aria-selected":cn(In),className:oe,title:pn,onMouseMove:function(){Sr===un||Zn||Ne(un)},onClick:function(){Zn||Ae(In)},style:Ie}),Nt.createElement("div",{className:"".concat(ri,"-content")},typeof Nr=="function"?Nr(gi,{index:un}):wn),Nt.isValidElement(Ee)||Ue,Fn&&Nt.createElement(ct,{className:"".concat(zr,"-option-state"),customizeIcon:Ee,customizeIconProps:{value:In,disabled:Zn,isSelected:Ue}},Ue?"\u2713":null))}))},Do=Nt.forwardRef(po),Zo=Do,Lo=function(qt,Ce){var Jn=Nt.useRef({values:new Map,options:new Map}),Qn=Nt.useMemo(function(){var qn=Jn.current,Rn=qn.values,zn=qn.options,Pi=qt.map(function(Fi){if(Fi.label===void 0){var yr;return(0,me.Z)((0,me.Z)({},Fi),{},{label:(yr=Rn.get(Fi.value))===null||yr===void 0?void 0:yr.label})}return Fi}),ti=new Map,ii=new Map;return Pi.forEach(function(Fi){ti.set(Fi.value,Fi),ii.set(Fi.value,Ce.get(Fi.value)||zn.get(Fi.value))}),Jn.current.values=ti,Jn.current.options=ii,Pi},[qt,Ce]),Ze=Nt.useCallback(function(qn){return Ce.get(qn)||Jn.current.options.get(qn)},[Ce]);return[Qn,Ze]};function Vo(qt,Ce){return qe(qt).join("").toUpperCase().includes(Ce)}var Lt=function(qt,Ce,Jn,Qn,Ze){return Nt.useMemo(function(){if(!Jn||Qn===!1)return qt;var qn=Ce.options,Rn=Ce.label,zn=Ce.value,Pi=[],ti=typeof Qn=="function",ii=Jn.toUpperCase(),Fi=ti?Qn:function(ir,Ln){return Ze?Vo(Ln[Ze],ii):Ln[qn]?Vo(Ln[Rn!=="children"?Rn:"label"],ii):Vo(Ln[zn],ii)},yr=ti?function(ir){return Pe(ir)}:function(ir){return ir};return qt.forEach(function(ir){if(ir[qn]){var Ln=Fi(Jn,yr(ir));if(Ln)Pi.push(ir);else{var vi=ir[qn].filter(function(mr){return Fi(Jn,yr(mr))});vi.length&&Pi.push((0,me.Z)((0,me.Z)({},ir),{},(0,xe.Z)({},qn,vi)))}return}Fi(Jn,yr(ir))&&Pi.push(ir)}),Pi},[qt,Qn,Ze,Jn,Ce])},yn=Ot(6551),Dn=Ot(11592),Lr=["children","value"],vr=["children"];function Vi(qt){var Ce=qt,Jn=Ce.key,Qn=Ce.props,Ze=Qn.children,qn=Qn.value,Rn=(0,Ht.Z)(Qn,Lr);return(0,me.Z)({key:Jn,value:qn!==void 0?qn:Jn,children:Ze},Rn)}function Jr(qt){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Dn.Z)(qt).map(function(Jn,Qn){if(!Nt.isValidElement(Jn)||!Jn.type)return null;var Ze=Jn,qn=Ze.type.isSelectOptGroup,Rn=Ze.key,zn=Ze.props,Pi=zn.children,ti=(0,Ht.Z)(zn,vr);return Ce||!qn?Vi(Jn):(0,me.Z)((0,me.Z)({key:"__RC_SELECT_GRP__".concat(Rn===null?Qn:Rn,"__"),label:Rn},ti),{},{options:Jr(Pi)})}).filter(function(Jn){return Jn})}var mo=function(Ce,Jn,Qn,Ze,qn){return Nt.useMemo(function(){var Rn=Ce,zn=!Ce;zn&&(Rn=Jr(Jn));var Pi=new Map,ti=new Map,ii=function(ir,Ln,vi){vi&&typeof vi=="string"&&ir.set(Ln[vi],Ln)},Fi=function yr(ir){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vi=0;vi1&&arguments[1]!==void 0?arguments[1]:!1,Rn=0;Rn0?wi(Di.options):Di.options}):Di})},Fn=Nt.useMemo(function(){return to?Tn(oe):oe},[oe,to,Ai]),wn=Nt.useMemo(function(){return Le(Fn,{fieldNames:bn,childrenAsData:Ae})},[Fn,bn,Ae]),pn=function(Ti){var zi=Yn(Ti);if(Yt(zi),Gr&&(zi.length!==Ie.length||zi.some(function($n,lr){var Mr;return((Mr=Ie[lr])===null||Mr===void 0?void 0:Mr.value)!==($n==null?void 0:$n.value)}))){var Di=Fo?zi:zi.map(function($n){return $n.value}),Bi=zi.map(function($n){return Pe(Ye($n.value))});Gr(cn?Di:Di[0],cn?Bi:Bi[0])}},ci=Nt.useState(null),li=(0,ye.Z)(ci,2),_n=li[0],oi=li[1],pi=Nt.useState(0),Ii=(0,ye.Z)(pi,2),gr=Ii[0],dr=Ii[1],pr=ur!==void 0?ur:Qn!=="combobox",ui=Nt.useCallback(function(wi,Ti){var zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Di=zi.source,Bi=Di===void 0?"keyboard":Di;dr(Ti),Rn&&Qn==="combobox"&&wi!==null&&Bi==="keyboard"&&oi(String(wi))},[Rn,Qn]),rr=function(Ti,zi,Di){var Bi=function(){var ao,ko=Ye(Ti);return[Fo?{label:ko==null?void 0:ko[bn.label],value:Ti,key:(ao=ko==null?void 0:ko.key)!==null&&ao!==void 0?ao:Ti}:Ti,Pe(ko)]};if(zi&&ir){var $n=Bi(),lr=(0,ye.Z)($n,2),Mr=lr[0],Ar=lr[1];ir(Mr,Ar)}else if(!zi&&Ln&&Di!=="clear"){var Ui=Bi(),Wr=(0,ye.Z)(Ui,2),Or=Wr[0],Er=Wr[1];Ln(Or,Er)}},Ji=$e(function(wi,Ti){var zi,Di=cn?Ti.selected:!0;Di?zi=cn?[].concat((0,ee.Z)(Ie),[wi]):[wi]:zi=Ie.filter(function(Bi){return Bi.value!==wi}),pn(zi),rr(wi,Di),Qn==="combobox"?oi(""):(!mi||yr)&&(gi(""),oi(""))}),or=function(Ti,zi){pn(Ti);var Di=zi.type,Bi=zi.values;(Di==="remove"||Di==="clear")&&Bi.forEach(function($n){rr($n.value,!1,Di)})},_i=function(Ti,zi){if(gi(Ti),oi(null),zi.source==="submit"){var Di=(Ti||"").trim();if(Di){var Bi=Array.from(new Set([].concat((0,ee.Z)(En),[Di])));pn(Bi),rr(Di,!0),gi("")}return}zi.source!=="blur"&&(Qn==="combobox"&&pn(Ti),ii==null||ii(Ti))},sr=function(Ti){var zi=Ti;Qn!=="tags"&&(zi=Ti.map(function(Bi){var $n=Xn.get(Bi);return $n==null?void 0:$n.value}).filter(function(Bi){return Bi!==void 0}));var Di=Array.from(new Set([].concat((0,ee.Z)(En),(0,ee.Z)(zi))));pn(Di),Di.forEach(function(Bi){rr(Bi,!0)})},mn=Nt.useMemo(function(){var wi=Nr!==!1&&mr!==!1;return(0,me.Z)((0,me.Z)({},un),{},{flattenOptions:wn,onActiveValue:ui,defaultActiveFirstOption:pr,onSelect:Ji,menuItemSelectedIcon:Cr,rawValues:En,fieldNames:bn,virtual:wi,direction:zr,listHeight:an,listItemHeight:sn,childrenAsData:Ae,maxCount:Sr,optionRender:hi})},[Sr,un,wn,ui,pr,Ji,Cr,En,bn,Nr,mr,zr,an,sn,Ae,hi]);return Nt.createElement(rn.Provider,{value:mn},Nt.createElement(yi,(0,Tt.Z)({},bo,{id:Ne,prefixCls:qn,ref:Ce,omitDomProps:Kr,mode:Qn,displayValues:Pn,onDisplayValuesChange:or,direction:zr,searchValue:Ai,onSearch:_i,autoClearSearchValue:yr,onSearchSplit:sr,dropdownMatchSelectWidth:mr,OptionList:Zo,emptyOptions:!wn.length,activeValue:_n,activeDescendantId:"".concat(Ne,"_list_").concat(gr)})))}),wr=bi;wr.Option=Qi,wr.OptGroup=ki;var Ko=wr,Si=Ko},63158:function(Wn,ai,Ot){"use strict";var Tt=Ot(14809),ee=Ot(4635),xe=Ot(50298),me=Ot(62646),ye=Ot(59301),Ht=Ot(92310),ae=Ot.n(Ht),je=Ot(18929),ve=Ot(10228),Nt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],He=ye.forwardRef(function(ie,Ge){var bt,nt=ie.prefixCls,et=nt===void 0?"rc-switch":nt,ct=ie.className,lt=ie.checked,gt=ie.defaultChecked,mt=ie.disabled,St=ie.loadingIcon,kt=ie.checkedChildren,zt=ie.unCheckedChildren,Gt=ie.onClick,$t=ie.onChange,Wt=ie.onKeyDown,Jt=(0,me.Z)(ie,Nt),de=(0,je.Z)(!1,{value:lt,defaultValue:gt}),le=(0,xe.Z)(de,2),De=le[0],Re=le[1];function Ke(gn,ge){var Xt=De;return mt||(Xt=gn,Re(Xt),$t==null||$t(Xt,ge)),Xt}function kn(gn){gn.which===ve.Z.LEFT?Ke(!1,gn):gn.which===ve.Z.RIGHT&&Ke(!0,gn),Wt==null||Wt(gn)}function qe(gn){var ge=Ke(!De,gn);Gt==null||Gt(ge,gn)}var on=ae()(et,ct,(bt={},(0,ee.Z)(bt,"".concat(et,"-checked"),De),(0,ee.Z)(bt,"".concat(et,"-disabled"),mt),bt));return ye.createElement("button",(0,Tt.Z)({},Jt,{type:"button",role:"switch","aria-checked":De,disabled:mt,className:on,ref:Ge,onKeyDown:kn,onClick:qe}),St,ye.createElement("span",{className:"".concat(et,"-inner")},ye.createElement("span",{className:"".concat(et,"-inner-checked")},kt),ye.createElement("span",{className:"".concat(et,"-inner-unchecked")},zt)))});He.displayName="Switch",ai.Z=He},86351:function(Wn,ai,Ot){"use strict";Ot.d(ai,{R:function(){return ee},w:function(){return Tt}});var Tt={},ee="rc-table-internal-hook"},97347:function(Wn,ai,Ot){"use strict";Ot.d(ai,{L:function(){return et},Z:function(){return St}});var Tt=Ot(50298),ee=Ot(4635),xe=Ot(95190),me=Ot(93664),ye=Ot(20439),Ht=Ot(62646),ae=Ot(11592),je=Ot(48736),ve=Ot(59301),Nt=Ot(86351),He=Ot(54451);function ie(kt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof zt=="number"?zt:zt.endsWith("%")?kt*parseFloat(zt)/100:null}function Ge(kt,zt,Gt){return ve.useMemo(function(){if(zt&&zt>0){var $t=0,Wt=0;kt.forEach(function(qe){var on=ie(zt,qe.width);on?$t+=on:Wt+=1});var Jt=Math.max(zt,Gt),de=Math.max(Jt-$t,Wt),le=Wt,De=de/Wt,Re=0,Ke=kt.map(function(qe){var on=(0,ye.Z)({},qe),gn=ie(zt,on.width);if(gn)on.width=gn;else{var ge=Math.floor(De);on.width=le===1?de:ge,de-=ge,le-=1}return Re+=on.width,on});if(Re0?(0,ye.Z)((0,ye.Z)({},zt),{},{children:ct(Gt)}):zt})}function lt(kt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return kt.filter(function(Gt){return Gt&&(0,me.Z)(Gt)==="object"}).reduce(function(Gt,$t,Wt){var Jt=$t.fixed,de=Jt===!0?"left":Jt,le="".concat(zt,"-").concat(Wt),De=$t.children;return De&&De.length>0?[].concat((0,xe.Z)(Gt),(0,xe.Z)(lt(De,le).map(function(Re){return(0,ye.Z)({fixed:de},Re)}))):[].concat((0,xe.Z)(Gt),[(0,ye.Z)((0,ye.Z)({key:le},$t),{},{fixed:de})])},[])}function gt(kt){return kt.map(function(zt){var Gt=zt.fixed,$t=(0,Ht.Z)(zt,nt),Wt=Gt;return Gt==="left"?Wt="right":Gt==="right"&&(Wt="left"),(0,ye.Z)({fixed:Wt},$t)})}function mt(kt,zt){var Gt=kt.prefixCls,$t=kt.columns,Wt=kt.children,Jt=kt.expandable,de=kt.expandedKeys,le=kt.columnTitle,De=kt.getRowKey,Re=kt.onTriggerExpand,Ke=kt.expandIcon,kn=kt.rowExpandable,qe=kt.expandIconColumnIndex,on=kt.direction,gn=kt.expandRowByClick,ge=kt.columnWidth,Xt=kt.fixed,Ve=kt.scrollWidth,An=kt.clientWidth,Bn=ve.useMemo(function(){var Li=$t||et(Wt)||[];return ct(Li.slice())},[$t,Wt]),Be=ve.useMemo(function(){if(Jt){var Li=Bn.slice();if(!Li.includes(Nt.w)){var It=qe||0;It>=0&&(It||Xt==="left"||!Xt)&&Li.splice(It,0,Nt.w),Xt==="right"&&Li.splice(Bn.length,0,Nt.w)}var Ct=Li.indexOf(Nt.w);Li=Li.filter(function(Mt,Ut){return Mt!==Nt.w||Ut===Ct});var xt=Bn[Ct],Ft;Xt?Ft=Xt:Ft=xt?xt.fixed:null;var jt=(0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)((0,ee.Z)({},He.v,{className:"".concat(Gt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",le),"fixed",Ft),"className","".concat(Gt,"-row-expand-icon-cell")),"width",ge),"render",function(Ut,Fe,Se){var nn=De(Fe,Se),Le=de.has(nn),Pe=kn?kn(Fe):!0,be=Ke({prefixCls:Gt,expanded:Le,expandable:Pe,record:Fe,onExpand:Re});return gn?ve.createElement("span",{onClick:function(rn){return rn.stopPropagation()}},be):be});return Li.map(function(Mt){return Mt===Nt.w?jt:Mt})}return Bn.filter(function(Mt){return Mt!==Nt.w})},[Jt,Bn,De,de,Ke,on]),dn=ve.useMemo(function(){var Li=Be;return zt&&(Li=zt(Li)),Li.length||(Li=[{render:function(){return null}}]),Li},[zt,Be,on]),Qe=ve.useMemo(function(){return on==="rtl"?gt(lt(dn)):lt(dn)},[dn,on,Ve]),On=ve.useMemo(function(){for(var Li=-1,It=Qe.length-1;It>=0;It-=1){var Ct=Qe[It].fixed;if(Ct==="left"||Ct===!0){Li=It;break}}if(Li>=0)for(var xt=0;xt<=Li;xt+=1){var Ft=Qe[xt].fixed;if(Ft!=="left"&&Ft!==!0)return!0}var jt=Qe.findIndex(function(Fe){var Se=Fe.fixed;return Se==="right"});if(jt>=0)for(var Mt=jt;Mt=Ae}function Qe(Ne,cn){return ve(kt,function(Ae){var Dt=dn(Ne,cn||1,Ae.hoverStartRow,Ae.hoverEndRow);return[Dt,Ae.onHover]})}var On=Ot(70425),we=function(cn){var Ae=cn.ellipsis,Dt=cn.rowType,bn=cn.children,si,Oi=Ae===!0?{showTitle:!0}:Ae;return Oi&&(Oi.showTitle||Dt==="header")&&(typeof bn=="string"||typeof bn=="number"?si=bn.toString():Ht.isValidElement(bn)&&typeof bn.props.children=="string"&&(si=bn.props.children)),si};function ue(Ne){var cn,Ae,Dt,bn,si,Oi,Ai,gi,un=Ne.component,Vn=Ne.children,Xn=Ne.ellipsis,Mn=Ne.scope,Yn=Ne.prefixCls,In=Ne.className,At=Ne.align,ne=Ne.record,Yt=Ne.render,fe=Ne.dataIndex,pe=Ne.renderIndex,Oe=Ne.shouldCellUpdate,Ie=Ne.index,Ye=Ne.rowType,Pn=Ne.colSpan,En=Ne.rowSpan,Ue=Ne.fixLeft,Zn=Ne.fixRight,ri=Ne.firstFixLeft,oe=Ne.lastFixLeft,Tn=Ne.firstFixRight,Fn=Ne.lastFixRight,wn=Ne.appendNode,pn=Ne.additionalProps,ci=pn===void 0?{}:pn,li=Ne.isSticky,_n="".concat(Yn,"-cell"),oi=ve(kt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),pi=oi.supportSticky,Ii=oi.allColumnsFixedLeft,gr=oi.rowHoverable,dr=Be(ne,fe,pe,Vn,Yt,Oe),pr=(0,ee.Z)(dr,2),ui=pr[0],rr=pr[1],Ji={},or=typeof Ue=="number"&&pi,_i=typeof Zn=="number"&πor&&(Ji.position="sticky",Ji.left=Ue),_i&&(Ji.position="sticky",Ji.right=Zn);var sr=(cn=(Ae=(Dt=rr==null?void 0:rr.colSpan)!==null&&Dt!==void 0?Dt:ci.colSpan)!==null&&Ae!==void 0?Ae:Pn)!==null&&cn!==void 0?cn:1,mn=(bn=(si=(Oi=rr==null?void 0:rr.rowSpan)!==null&&Oi!==void 0?Oi:ci.rowSpan)!==null&&si!==void 0?si:En)!==null&&bn!==void 0?bn:1,wi=Qe(Ie,mn),Ti=(0,ee.Z)(wi,2),zi=Ti[0],Di=Ti[1],Bi=(0,On.zX)(function(Or){var Er;ne&&Di(Ie,Ie+mn-1),ci==null||(Er=ci.onMouseEnter)===null||Er===void 0||Er.call(ci,Or)}),$n=(0,On.zX)(function(Or){var Er;ne&&Di(-1,-1),ci==null||(Er=ci.onMouseLeave)===null||Er===void 0||Er.call(ci,Or)});if(sr===0||mn===0)return null;var lr=(Ai=ci.title)!==null&&Ai!==void 0?Ai:we({rowType:Ye,ellipsis:Xn,children:ui}),Mr=De()(_n,In,(gi={},(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)(gi,"".concat(_n,"-fix-left"),or&&pi),"".concat(_n,"-fix-left-first"),ri&&pi),"".concat(_n,"-fix-left-last"),oe&&pi),"".concat(_n,"-fix-left-all"),oe&&Ii&&pi),"".concat(_n,"-fix-right"),_i&&pi),"".concat(_n,"-fix-right-first"),Tn&&pi),"".concat(_n,"-fix-right-last"),Fn&&pi),"".concat(_n,"-ellipsis"),Xn),"".concat(_n,"-with-append"),wn),"".concat(_n,"-fix-sticky"),(or||_i)&&li&&pi),(0,de.Z)(gi,"".concat(_n,"-row-hover"),!rr&&zi)),ci.className,rr==null?void 0:rr.className),Ar={};At&&(Ar.textAlign=At);var Ui=(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},rr==null?void 0:rr.style),Ji),Ar),ci.style),Wr=ui;return(0,Wt.Z)(Wr)==="object"&&!Array.isArray(Wr)&&!Ht.isValidElement(Wr)&&(Wr=null),Xn&&(oe||Tn)&&(Wr=Ht.createElement("span",{className:"".concat(_n,"-content")},Wr)),Ht.createElement(un,(0,Nt.Z)({},rr,ci,{className:Mr,style:Ui,title:lr,scope:Mn,onMouseEnter:gr?Bi:void 0,onMouseLeave:gr?$n:void 0,colSpan:sr!==1?sr:null,rowSpan:mn!==1?mn:null}),wn,Wr)}var Xe=Ht.memo(ue);function di(Ne,cn,Ae,Dt,bn){var si=Ae[Ne]||{},Oi=Ae[cn]||{},Ai,gi;si.fixed==="left"?Ai=Dt.left[bn==="rtl"?cn:Ne]:Oi.fixed==="right"&&(gi=Dt.right[bn==="rtl"?Ne:cn]);var un=!1,Vn=!1,Xn=!1,Mn=!1,Yn=Ae[cn+1],In=Ae[Ne-1],At=Yn&&!Yn.fixed||In&&!In.fixed||Ae.every(function(Oe){return Oe.fixed==="left"});if(bn==="rtl"){if(Ai!==void 0){var ne=In&&In.fixed==="left";Mn=!ne&&At}else if(gi!==void 0){var Yt=Yn&&Yn.fixed==="right";Xn=!Yt&&At}}else if(Ai!==void 0){var fe=Yn&&Yn.fixed==="left";un=!fe&&At}else if(gi!==void 0){var pe=In&&In.fixed==="right";Vn=!pe&&At}return{fixLeft:Ai,fixRight:gi,lastFixLeft:un,firstFixRight:Vn,lastFixRight:Xn,firstFixLeft:Mn,isSticky:Dt.isSticky}}var Li=Ht.createContext({}),It=Li;function Ct(Ne){var cn=Ne.className,Ae=Ne.index,Dt=Ne.children,bn=Ne.colSpan,si=bn===void 0?1:bn,Oi=Ne.rowSpan,Ai=Ne.align,gi=ve(kt,["prefixCls","direction"]),un=gi.prefixCls,Vn=gi.direction,Xn=Ht.useContext(It),Mn=Xn.scrollColumnIndex,Yn=Xn.stickyOffsets,In=Xn.flattenColumns,At=Ae+si-1,ne=At+1===Mn?si+1:si,Yt=di(Ae,Ae+ne-1,In,Yn,Vn);return Ht.createElement(Xe,(0,Nt.Z)({className:cn,index:Ae,component:"td",prefixCls:un,record:null,dataIndex:null,align:Ai,colSpan:ne,rowSpan:Oi,render:function(){return Dt}},Yt))}var xt=Ot(62646),Ft=["children"];function jt(Ne){var cn=Ne.children,Ae=(0,xt.Z)(Ne,Ft);return Ht.createElement("tr",Ae,cn)}function Mt(Ne){var cn=Ne.children;return cn}Mt.Row=jt,Mt.Cell=Ct;var Ut=Mt;function Fe(Ne){var cn=Ne.children,Ae=Ne.stickyOffsets,Dt=Ne.flattenColumns,bn=ve(kt,"prefixCls"),si=Dt.length-1,Oi=Dt[si],Ai=Ht.useMemo(function(){return{stickyOffsets:Ae,flattenColumns:Dt,scrollColumnIndex:Oi!=null&&Oi.scrollbar?si:null}},[Oi,Dt,si,Ae]);return Ht.createElement(It.Provider,{value:Ai},Ht.createElement("tfoot",{className:"".concat(bn,"-summary")},cn))}var Se=gt(Fe),nn=Ut,Le=Ot(29301),Pe=Ot(24514),be=Ot(75152),We=Ot(26112);function rn(Ne,cn,Ae,Dt,bn,si,Oi){Ne.push({record:cn,indent:Ae,index:Oi});var Ai=si(cn),gi=bn==null?void 0:bn.has(Ai);if(cn&&Array.isArray(cn[Dt])&&gi)for(var un=0;un1?ri-1:0),Tn=1;Tn=1)),style:(0,Jt.Z)((0,Jt.Z)({},Ae),Yt==null?void 0:Yt.style)}),In.map(function(Ue,Zn){var ri=Ue.render,oe=Ue.dataIndex,Tn=Ue.className,Fn=ki(Mn,Ue,Zn,gi,bn),wn=Fn.key,pn=Fn.fixedInfo,ci=Fn.appendCellNode,li=Fn.additionalCellProps;return Ht.createElement(Xe,(0,Nt.Z)({className:Tn,ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:Ue.rowScope?Xn:Vn,prefixCls:Yn,key:wn,record:Dt,index:bn,renderIndex:si,dataIndex:oe,render:ri,shouldCellUpdate:Ue.shouldCellUpdate},pn,{appendNode:ci,additionalProps:li}))})),Pn;if(pe&&(Oe.current||fe)){var En=ne(Dt,bn,gi+1,fe);Pn=Ht.createElement(mi,{expanded:fe,className:De()("".concat(Yn,"-expanded-row"),"".concat(Yn,"-expanded-row-level-").concat(gi+1),Ie),prefixCls:Yn,component:un,cellComponent:Vn,colSpan:In.length,isEmpty:!1},En)}return Ht.createElement(Ht.Fragment,null,Ye,Pn)}var Qi=gt(Ri);function Ir(Ne){var cn=Ne.columnKey,Ae=Ne.onColumnResize,Dt=Ht.useRef();return(0,me.Z)(function(){Dt.current&&Ae(cn,Dt.current.offsetWidth)},[]),Ht.createElement(Le.Z,{data:cn},Ht.createElement("td",{ref:Dt,style:{padding:0,border:0,height:0}},Ht.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Xi=Ot(29194);function Rr(Ne){var cn=Ne.prefixCls,Ae=Ne.columnsKey,Dt=Ne.onColumnResize,bn=Ht.useRef(null);return Ht.createElement("tr",{"aria-hidden":"true",className:"".concat(cn,"-measure-row"),style:{height:0,fontSize:0},ref:bn},Ht.createElement(Le.Z.Collection,{onBatchResize:function(Oi){(0,Xi.Z)(bn.current)&&Oi.forEach(function(Ai){var gi=Ai.data,un=Ai.size;Dt(gi,un.offsetWidth)})}},Ae.map(function(si){return Ht.createElement(Ir,{key:si,columnKey:si,onColumnResize:Dt})})))}function wo(Ne){var cn=Ne.data,Ae=Ne.measureColumnWidth,Dt=ve(kt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),bn=Dt.prefixCls,si=Dt.getComponent,Oi=Dt.onColumnResize,Ai=Dt.flattenColumns,gi=Dt.getRowKey,un=Dt.expandedKeys,Vn=Dt.childrenColumnName,Xn=Dt.emptyNode,Mn=Hn(cn,Vn,un,gi),Yn=Ht.useRef({renderWithProps:!1}),In=si(["body","wrapper"],"tbody"),At=si(["body","row"],"tr"),ne=si(["body","cell"],"td"),Yt=si(["body","cell"],"th"),fe;cn.length?fe=Mn.map(function(Oe,Ie){var Ye=Oe.record,Pn=Oe.indent,En=Oe.index,Ue=gi(Ye,Ie);return Ht.createElement(Qi,{key:Ue,rowKey:Ue,record:Ye,index:Ie,renderIndex:En,rowComponent:At,cellComponent:ne,scopeCellComponent:Yt,indent:Pn})}):fe=Ht.createElement(mi,{expanded:!0,className:"".concat(bn,"-placeholder"),prefixCls:bn,component:At,cellComponent:ne,colSpan:Ai.length,isEmpty:!0},Xn);var pe=Xt(Ai);return Ht.createElement(on.Provider,{value:Yn.current},Ht.createElement(In,{className:"".concat(bn,"-tbody")},Ae&&Ht.createElement(Rr,{prefixCls:bn,columnsKey:pe,onColumnResize:Oi}),fe))}var oo=gt(wo),uo=Ot(54451),po=["columnType"];function Do(Ne){for(var cn=Ne.colWidths,Ae=Ne.columns,Dt=Ne.columCount,bn=ve(kt,["tableLayout"]),si=bn.tableLayout,Oi=[],Ai=Dt||Ae.length,gi=!1,un=Ai-1;un>=0;un-=1){var Vn=cn[un],Xn=Ae&&Ae[un],Mn=void 0,Yn=void 0;if(Xn&&(Mn=Xn[uo.v],si==="auto"&&(Yn=Xn.minWidth)),Vn||Yn||Mn||gi){var In=Mn||{},At=In.columnType,ne=(0,xt.Z)(In,po);Oi.unshift(Ht.createElement("col",(0,Nt.Z)({key:un,style:{width:Vn,minWidth:Yn}},ne))),gi=!0}}return Ht.createElement("colgroup",null,Oi)}var Zo=Do,Lo=Ot(95190),Vo=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Lt(Ne,cn){return(0,Ht.useMemo)(function(){for(var Ae=[],Dt=0;Dt1?"colgroup":"col":null,ellipsis:ne.ellipsis,align:ne.align,component:Oi,prefixCls:Vn,key:Yn[At]},Yt,{additionalProps:fe,rowType:"header"}))}))},vr=Lr;function Vi(Ne){var cn=[];function Ae(Oi,Ai){var gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;cn[gi]=cn[gi]||[];var un=Ai,Vn=Oi.filter(Boolean).map(function(Xn){var Mn={key:Xn.key,className:Xn.className||"",children:Xn.title,column:Xn,colStart:un},Yn=1,In=Xn.children;return In&&In.length>0&&(Yn=Ae(In,un,gi+1).reduce(function(At,ne){return At+ne},0),Mn.hasSubColumns=!0),"colSpan"in Xn&&(Yn=Xn.colSpan),"rowSpan"in Xn&&(Mn.rowSpan=Xn.rowSpan),Mn.colSpan=Yn,Mn.colEnd=Mn.colStart+Yn-1,cn[gi].push(Mn),un+=Yn,Yn});return Vn}Ae(Ne,0);for(var Dt=cn.length,bn=function(Ai){cn[Ai].forEach(function(gi){!("rowSpan"in gi)&&!gi.hasSubColumns&&(gi.rowSpan=Dt-Ai)})},si=0;si=ci-Ai?fe(function(li){return(0,Jt.Z)((0,Jt.Z)({},li),{},{isHiddenScrollBar:!0})}):fe(function(li){return(0,Jt.Z)((0,Jt.Z)({},li),{},{isHiddenScrollBar:!1})})}})},Tn=function(wn){fe(function(pn){return(0,Jt.Z)((0,Jt.Z)({},pn),{},{scrollLeft:wn/Xn*Mn||0})})};return Ht.useImperativeHandle(Ae,function(){return{setScrollLeft:Tn,checkScrollBarVisible:oe}}),Ht.useEffect(function(){var Fn=(0,Ce.Z)(document.body,"mouseup",Ue,!1),wn=(0,Ce.Z)(document.body,"mousemove",ri,!1);return oe(),function(){Fn.remove(),wn.remove()}},[Yn,Ye]),Ht.useEffect(function(){if(si.current){for(var Fn=[],wn=(0,Qn.bn)(si.current);wn;)Fn.push(wn),wn=wn.parentElement;return Fn.forEach(function(pn){return pn.addEventListener("scroll",oe,!1)}),window.addEventListener("resize",oe,!1),window.addEventListener("scroll",oe,!1),gi.addEventListener("scroll",oe,!1),function(){Fn.forEach(function(pn){return pn.removeEventListener("scroll",oe)}),window.removeEventListener("resize",oe),window.removeEventListener("scroll",oe),gi.removeEventListener("scroll",oe)}}},[gi]),Ht.useEffect(function(){Yt.isHiddenScrollBar||fe(function(Fn){var wn=si.current;return wn?(0,Jt.Z)((0,Jt.Z)({},Fn),{},{scrollLeft:wn.scrollLeft/wn.scrollWidth*wn.clientWidth}):Fn})},[Yt.isHiddenScrollBar]),Xn<=Mn||!Yn||Yt.isHiddenScrollBar?null:Ht.createElement("div",{style:{height:(0,be.Z)(),width:Mn,bottom:Ai},className:"".concat(Vn,"-sticky-scroll")},Ht.createElement("div",{onMouseDown:Zn,ref:In,className:De()("".concat(Vn,"-sticky-scroll-bar"),(0,de.Z)({},"".concat(Vn,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(Yn,"px"),transform:"translate3d(".concat(Yt.scrollLeft,"px, 0, 0)")}}))},Rn=Ht.forwardRef(qn);function zn(Ne){return null}var Pi=zn;function ti(Ne){return null}var ii=ti,Fi="rc-table",yr=[],ir={};function Ln(){return"No Data"}function vi(Ne,cn){var Ae=(0,Jt.Z)({rowKey:"key",prefixCls:Fi,emptyText:Ln},Ne),Dt=Ae.prefixCls,bn=Ae.className,si=Ae.rowClassName,Oi=Ae.style,Ai=Ae.data,gi=Ae.rowKey,un=Ae.scroll,Vn=Ae.tableLayout,Xn=Ae.direction,Mn=Ae.title,Yn=Ae.footer,In=Ae.summary,At=Ae.caption,ne=Ae.id,Yt=Ae.showHeader,fe=Ae.components,pe=Ae.emptyText,Oe=Ae.onRow,Ie=Ae.onHeaderRow,Ye=Ae.onScroll,Pn=Ae.internalHooks,En=Ae.transformColumns,Ue=Ae.internalRefs,Zn=Ae.tailor,ri=Ae.getContainerWidth,oe=Ae.sticky,Tn=Ae.rowHoverable,Fn=Tn===void 0?!0:Tn,wn=Ai||yr,pn=!!wn.length,ci=Pn===Tt.R,li=Ht.useCallback(function(Po,jo){return(0,Ke.Z)(fe,Po)||jo},[fe]),_n=Ht.useMemo(function(){return typeof gi=="function"?gi:function(Po){var jo=Po&&Po[gi];return jo}},[gi]),oi=li(["body"]),pi=Gi(),Ii=(0,ee.Z)(pi,3),gr=Ii[0],dr=Ii[1],pr=Ii[2],ui=$e(Ae,wn,_n),rr=(0,ee.Z)(ui,6),Ji=rr[0],or=rr[1],_i=rr[2],sr=rr[3],mn=rr[4],wi=rr[5],Ti=un==null?void 0:un.x,zi=Ht.useState(0),Di=(0,ee.Z)(zi,2),Bi=Di[0],$n=Di[1],lr=(0,Je.Z)((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},Ae),Ji),{},{expandable:!!Ji.expandedRowRender,columnTitle:Ji.columnTitle,expandedKeys:_i,getRowKey:_n,onTriggerExpand:wi,expandIcon:sr,expandIconColumnIndex:Ji.expandIconColumnIndex,direction:Xn,scrollWidth:ci&&Zn&&typeof Ti=="number"?Ti:null,clientWidth:Bi}),ci?En:null),Mr=(0,ee.Z)(lr,4),Ar=Mr[0],Ui=Mr[1],Wr=Mr[2],Or=Mr[3],Er=Wr!=null?Wr:Ti,eo=Ht.useMemo(function(){return{columns:Ar,flattenColumns:Ui}},[Ar,Ui]),ao=Ht.useRef(),ko=Ht.useRef(),Yr=Ht.useRef(),ta=Ht.useRef();Ht.useImperativeHandle(cn,function(){return{nativeElement:ao.current,scrollTo:function(jo){var wa;if(Yr.current instanceof HTMLElement){var ts=jo.index,Ja=jo.top,Nl=jo.key;if(An(Ja)){var ml;(ml=Yr.current)===null||ml===void 0||ml.scrollTo({top:Ja})}else{var Ao,qr=Nl!=null?Nl:_n(wn[ts]);(Ao=Yr.current.querySelector('[data-row-key="'.concat(qr,'"]')))===null||Ao===void 0||Ao.scrollIntoView()}}else(wa=Yr.current)!==null&&wa!==void 0&&wa.scrollTo&&Yr.current.scrollTo(jo)}}});var yo=Ht.useRef(),na=Ht.useState(!1),Co=(0,ee.Z)(na,2),Uo=Co[0],ia=Co[1],Qo=Ht.useState(!1),Io=(0,ee.Z)(Qo,2),So=Io[0],oa=Io[1],Ca=Ht.useState(new Map),Ro=(0,ee.Z)(Ca,2),Ra=Ro[0],xo=Ro[1],so=Xt(Ui),no=so.map(function(Po){return Ra.get(Po)}),qo=Ht.useMemo(function(){return no},[no.join("_")]),fo=Ko(qo,Ui,Xn),La=un&&Ve(un.y),tr=un&&Ve(Er)||!!Ji.fixed,Hi=tr&&Ui.some(function(Po){var jo=Po.fixed;return jo}),cr=Ht.useRef(),qi=bi(oe,Dt),Un=qi.isSticky,zo=qi.offsetHeader,se=qi.offsetSummary,en=qi.offsetScroll,za=qi.stickyClassName,ja=qi.container,da=Ht.useMemo(function(){return In==null?void 0:In(wn)},[In,wn]),ca=(La||Un)&&Ht.isValidElement(da)&&da.type===Ut&&da.props.fixed,Za,Ta,Ws;La&&(Ta={overflowY:pn?"scroll":"auto",maxHeight:un.y}),tr&&(Za={overflowX:"auto"},La||(Ta={overflowY:"hidden"}),Ws={width:Er===!0?"auto":Er,minWidth:"100%"});var aa=Ht.useCallback(function(Po,jo){xo(function(wa){if(wa.get(Po)!==jo){var ts=new Map(wa);return ts.set(Po,jo),ts}return wa})},[]),kr=Wi(null),Va=(0,ee.Z)(kr,2),$a=Va[0],sa=Va[1];function _r(Po,jo){jo&&(typeof jo=="function"?jo(Po):jo.scrollLeft!==Po&&(jo.scrollLeft=Po,jo.scrollLeft!==Po&&setTimeout(function(){jo.scrollLeft=Po},0)))}var ga=(0,xe.Z)(function(Po){var jo=Po.currentTarget,wa=Po.scrollLeft,ts=Xn==="rtl",Ja=typeof wa=="number"?wa:jo.scrollLeft,Nl=jo||ir;if(!sa()||sa()===Nl){var ml;$a(Nl),_r(Ja,ko.current),_r(Ja,Yr.current),_r(Ja,yo.current),_r(Ja,(ml=cr.current)===null||ml===void 0?void 0:ml.setScrollLeft)}var Ao=jo||ko.current;if(Ao){var qr=ci&&Zn&&typeof Er=="number"?Er:Ao.scrollWidth,Ka=Ao.clientWidth;if(qr===Ka){ia(!1),oa(!1);return}ts?(ia(-Ja0)):(ia(Ja>0),oa(Ja1?ne-Fn:0,pn=(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},En),un),{},{flex:"0 0 ".concat(Fn,"px"),width:"".concat(Fn,"px"),marginRight:wn,pointerEvents:"auto"}),ci=Ht.useMemo(function(){return Xn?oe<=1:Zn===0||oe===0||oe>1},[oe,Zn,Xn]);ci?pn.visibility="hidden":Xn&&(pn.height=Mn==null?void 0:Mn(oe));var li=ci?function(){return null}:Yn,_n={};return(oe===0||Zn===0)&&(_n.rowSpan=1,_n.colSpan=1),Ht.createElement(Xe,(0,Nt.Z)({className:De()(At,Vn),ellipsis:Ae.ellipsis,align:Ae.align,scope:Ae.rowScope,component:Oi,prefixCls:cn.prefixCls,key:Oe,record:gi,index:si,renderIndex:Ai,dataIndex:In,render:li,shouldCellUpdate:Ae.shouldCellUpdate},Ie,{appendNode:Ye,additionalProps:(0,Jt.Z)((0,Jt.Z)({},Pn),{},{style:pn},_n)}))}var Cr=ur,Nr=["data","index","className","rowKey","style","extra","getHeight"],zr=Ht.forwardRef(function(Ne,cn){var Ae=Ne.data,Dt=Ne.index,bn=Ne.className,si=Ne.rowKey,Oi=Ne.style,Ai=Ne.extra,gi=Ne.getHeight,un=(0,xt.Z)(Ne,Nr),Vn=Ae.record,Xn=Ae.indent,Mn=Ae.index,Yn=ve(kt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),In=Yn.scrollX,At=Yn.flattenColumns,ne=Yn.prefixCls,Yt=Yn.fixColumn,fe=Yn.componentWidth,pe=ve(Ki,["getComponent"]),Oe=pe.getComponent,Ie=vn(Vn,si,Dt,Xn),Ye=Oe(["body","row"],"div"),Pn=Oe(["body","cell"],"div"),En=Ie.rowSupportExpand,Ue=Ie.expanded,Zn=Ie.rowProps,ri=Ie.expandedRowRender,oe=Ie.expandedRowClassName,Tn;if(En&&Ue){var Fn=ri(Vn,Dt,Xn+1,Ue),wn=ni(oe,Vn,Dt,Xn),pn={};Yt&&(pn={style:(0,de.Z)({},"--virtual-width","".concat(fe,"px"))});var ci="".concat(ne,"-expanded-row-cell");Tn=Ht.createElement(Ye,{className:De()("".concat(ne,"-expanded-row"),"".concat(ne,"-expanded-row-level-").concat(Xn+1),wn)},Ht.createElement(Xe,{component:Pn,prefixCls:ne,className:De()(ci,(0,de.Z)({},"".concat(ci,"-fixed"),Yt)),additionalProps:pn},Fn))}var li=(0,Jt.Z)((0,Jt.Z)({},Oi),{},{width:In});Ai&&(li.position="absolute",li.pointerEvents="none");var _n=Ht.createElement(Ye,(0,Nt.Z)({},Zn,un,{"data-row-key":si,ref:En?null:cn,className:De()(bn,"".concat(ne,"-row"),Zn==null?void 0:Zn.className,(0,de.Z)({},"".concat(ne,"-row-extra"),Ai)),style:(0,Jt.Z)((0,Jt.Z)({},li),Zn==null?void 0:Zn.style)}),At.map(function(oi,pi){return Ht.createElement(Cr,{key:pi,component:Pn,rowInfo:Ie,column:oi,colIndex:pi,indent:Xn,index:Dt,renderIndex:Mn,record:Vn,inverse:Ai,getHeight:gi})}));return En?Ht.createElement("div",{ref:cn},_n,Tn):_n}),Qr=gt(zr),an=Qr,vo=Ht.forwardRef(function(Ne,cn){var Ae=Ne.data,Dt=Ne.onScroll,bn=ve(kt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),si=bn.flattenColumns,Oi=bn.onColumnResize,Ai=bn.getRowKey,gi=bn.expandedKeys,un=bn.prefixCls,Vn=bn.childrenColumnName,Xn=bn.scrollX,Mn=bn.direction,Yn=ve(Ki),In=Yn.sticky,At=Yn.scrollY,ne=Yn.listItemHeight,Yt=Yn.getComponent,fe=Yn.onScroll,pe=Ht.useRef(),Oe=Hn(Ae,Vn,gi,Ai),Ie=Ht.useMemo(function(){var Tn=0;return si.map(function(Fn){var wn=Fn.width,pn=Fn.key;return Tn+=wn,[pn,wn,Tn]})},[si]),Ye=Ht.useMemo(function(){return Ie.map(function(Tn){return Tn[2]})},[Ie]);Ht.useEffect(function(){Ie.forEach(function(Tn){var Fn=(0,ee.Z)(Tn,2),wn=Fn[0],pn=Fn[1];Oi(wn,pn)})},[Ie]),Ht.useImperativeHandle(cn,function(){var Tn,Fn={scrollTo:function(pn){var ci;(ci=pe.current)===null||ci===void 0||ci.scrollTo(pn)},nativeElement:(Tn=pe.current)===null||Tn===void 0?void 0:Tn.nativeElement};return Object.defineProperty(Fn,"scrollLeft",{get:function(){var pn;return((pn=pe.current)===null||pn===void 0?void 0:pn.getScrollInfo().x)||0},set:function(pn){var ci;(ci=pe.current)===null||ci===void 0||ci.scrollTo({left:pn})}}),Fn});var Pn=function(Fn,wn){var pn,ci=(pn=Oe[wn])===null||pn===void 0?void 0:pn.record,li=Fn.onCell;if(li){var _n,oi=li(ci,wn);return(_n=oi==null?void 0:oi.rowSpan)!==null&&_n!==void 0?_n:1}return 1},En=function(Fn){var wn=Fn.start,pn=Fn.end,ci=Fn.getSize,li=Fn.offsetY;if(pn<0)return null;for(var _n=si.filter(function(sr){return Pn(sr,wn)===0}),oi=wn,pi=function(mn){if(_n=_n.filter(function(wi){return Pn(wi,mn)===0}),!_n.length)return oi=mn,1},Ii=wn;Ii>=0&&!pi(Ii);Ii-=1);for(var gr=si.filter(function(sr){return Pn(sr,pn)!==1}),dr=pn,pr=function(mn){if(gr=gr.filter(function(wi){return Pn(wi,mn)!==1}),!gr.length)return dr=Math.max(mn-1,pn),1},ui=pn;ui1})&&rr.push(mn)},or=oi;or<=dr;or+=1)Ji(or);var _i=rr.map(function(sr){var mn=Oe[sr],wi=Ai(mn.record,sr),Ti=function(Bi){var $n=sr+Bi-1,lr=Ai(Oe[$n].record,$n),Mr=ci(wi,lr);return Mr.bottom-Mr.top},zi=ci(wi);return Ht.createElement(an,{key:sr,data:mn,rowKey:wi,index:sr,style:{top:-li+zi.top},extra:!0,getHeight:Ti})});return _i},Ue=Ht.useMemo(function(){return{columnsOffset:Ye}},[Ye]),Zn="".concat(un,"-tbody"),ri=Yt(["body","wrapper"]),oe={};return In&&(oe.position="sticky",oe.bottom=0,(0,Wt.Z)(In)==="object"&&In.offsetScroll&&(oe.bottom=In.offsetScroll)),Ht.createElement(hi.Provider,{value:Ue},Ht.createElement(Mi.Z,{fullHeight:!1,ref:pe,prefixCls:"".concat(Zn,"-virtual"),styles:{horizontalScrollBar:oe},className:Zn,height:At,itemHeight:ne||24,data:Oe,itemKey:function(Fn){return Ai(Fn.record)},component:ri,scrollWidth:Xn,direction:Mn,onVirtualScroll:function(Fn){var wn,pn=Fn.x;Dt({currentTarget:(wn=pe.current)===null||wn===void 0?void 0:wn.nativeElement,scrollLeft:pn})},onScroll:fe,extraRender:En},function(Tn,Fn,wn){var pn=Ai(Tn.record,Fn);return Ht.createElement(an,{data:Tn,rowKey:pn,index:Fn,style:wn.style})}))}),sn=gt(vo),Zi=sn,jr=function(cn,Ae){var Dt=Ae.ref,bn=Ae.onScroll;return Ht.createElement(Zi,{ref:Dt,data:cn,onScroll:bn})};function Tr(Ne,cn){var Ae=Ne.data,Dt=Ne.columns,bn=Ne.scroll,si=Ne.sticky,Oi=Ne.prefixCls,Ai=Oi===void 0?Fi:Oi,gi=Ne.className,un=Ne.listItemHeight,Vn=Ne.components,Xn=Ne.onScroll,Mn=bn||{},Yn=Mn.x,In=Mn.y;typeof Yn!="number"&&(Yn=1),typeof In!="number"&&(In=500);var At=(0,On.zX)(function(fe,pe){return(0,Ke.Z)(Vn,fe)||pe}),ne=(0,On.zX)(Xn),Yt=Ht.useMemo(function(){return{sticky:si,scrollY:In,listItemHeight:un,getComponent:At,onScroll:ne}},[si,In,un,At,ne]);return Ht.createElement(Ki.Provider,{value:Yt},Ht.createElement(Ee,(0,Nt.Z)({},Ne,{className:De()(gi,"".concat(Ai,"-virtual")),scroll:(0,Jt.Z)((0,Jt.Z)({},bn),{},{x:Yn}),components:(0,Jt.Z)((0,Jt.Z)({},Vn),{},{body:Ae!=null&&Ae.length?jr:void 0}),columns:Dt,internalHooks:Tt.R,tailor:!0,ref:cn})))}var Fo=Ht.forwardRef(Tr);function Gr(Ne){return lt(Fo,Ne)}var Sr=Gr(),bo=null},54451:function(Wn,ai,Ot){"use strict";Ot.d(ai,{g:function(){return Ht},v:function(){return ye}});var Tt=Ot(20439),ee=Ot(62646),xe=Ot(48736),me=["expandable"],ye="RC_TABLE_INTERNAL_COL_DEFINE";function Ht(ae){var je=ae.expandable,ve=(0,ee.Z)(ae,me),Nt;return"expandable"in ae?Nt=(0,Tt.Z)((0,Tt.Z)({},ve),je):Nt=ve,Nt.showExpandColumn===!1&&(Nt.expandIconColumnIndex=-1),Nt}},22711:function(Wn,ai,Ot){"use strict";Ot.r(ai),Ot.d(ai,{ResizableTextArea:function(){return le},default:function(){return kn}});var Tt=Ot(14809),ee=Ot(4635),xe=Ot(20439),me=Ot(95190),ye=Ot(50298),Ht=Ot(62646),ae=Ot(92310),je=Ot.n(ae),ve=Ot(36901),Nt=Ot(66003),He=Ot(30292),ie=Ot(18929),Ge=Ot(59301),bt=Ot(93664),nt=Ot(29301),et=Ot(34280),ct=Ot(16089),lt=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,gt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],mt={},St;function kt(qe){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=qe.getAttribute("id")||qe.getAttribute("data-reactid")||qe.getAttribute("name");if(on&&mt[gn])return mt[gn];var ge=window.getComputedStyle(qe),Xt=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),Ve=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),An=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Bn=gt.map(function(dn){return"".concat(dn,":").concat(ge.getPropertyValue(dn))}).join(";"),Be={sizingStyle:Bn,paddingSize:Ve,borderSize:An,boxSizing:Xt};return on&&gn&&(mt[gn]=Be),Be}function zt(qe){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;St||(St=document.createElement("textarea"),St.setAttribute("tab-index","-1"),St.setAttribute("aria-hidden","true"),St.setAttribute("name","hiddenTextarea"),document.body.appendChild(St)),qe.getAttribute("wrap")?St.setAttribute("wrap",qe.getAttribute("wrap")):St.removeAttribute("wrap");var Xt=kt(qe,on),Ve=Xt.paddingSize,An=Xt.borderSize,Bn=Xt.boxSizing,Be=Xt.sizingStyle;St.setAttribute("style","".concat(Be,";").concat(lt)),St.value=qe.value||qe.placeholder||"";var dn=void 0,Qe=void 0,On,we=St.scrollHeight;if(Bn==="border-box"?we+=An:Bn==="content-box"&&(we-=Ve),gn!==null||ge!==null){St.value=" ";var ue=St.scrollHeight-Ve;gn!==null&&(dn=ue*gn,Bn==="border-box"&&(dn=dn+Ve+An),we=Math.max(dn,we)),ge!==null&&(Qe=ue*ge,Bn==="border-box"&&(Qe=Qe+Ve+An),On=we>Qe?"":"hidden",we=Math.min(Qe,we))}var Xe={height:we,overflowY:On,resize:"none"};return dn&&(Xe.minHeight=dn),Qe&&(Xe.maxHeight=Qe),Xe}var Gt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$t=0,Wt=1,Jt=2,de=Ge.forwardRef(function(qe,on){var gn=qe,ge=gn.prefixCls,Xt=gn.defaultValue,Ve=gn.value,An=gn.autoSize,Bn=gn.onResize,Be=gn.className,dn=gn.style,Qe=gn.disabled,On=gn.onChange,we=gn.onInternalAutoSize,ue=(0,Ht.Z)(gn,Gt),Xe=(0,ie.Z)(Xt,{value:Ve,postState:function(Qi){return Qi!=null?Qi:""}}),di=(0,ye.Z)(Xe,2),Li=di[0],It=di[1],Ct=function(Qi){It(Qi.target.value),On==null||On(Qi)},xt=Ge.useRef();Ge.useImperativeHandle(on,function(){return{textArea:xt.current}});var Ft=Ge.useMemo(function(){return An&&(0,bt.Z)(An)==="object"?[An.minRows,An.maxRows]:[]},[An]),jt=(0,ye.Z)(Ft,2),Mt=jt[0],Ut=jt[1],Fe=!!An,Se=function(){try{if(document.activeElement===xt.current){var Qi=xt.current,Ir=Qi.selectionStart,Xi=Qi.selectionEnd,Rr=Qi.scrollTop;xt.current.setSelectionRange(Ir,Xi),xt.current.scrollTop=Rr}}catch(wo){}},nn=Ge.useState(Jt),Le=(0,ye.Z)(nn,2),Pe=Le[0],be=Le[1],We=Ge.useState(),rn=(0,ye.Z)(We,2),Hn=rn[0],vn=rn[1],Cn=function(){be($t)};(0,et.Z)(function(){Fe&&Cn()},[Ve,Mt,Ut,Fe]),(0,et.Z)(function(){if(Pe===$t)be(Wt);else if(Pe===Wt){var Ri=zt(xt.current,!1,Mt,Ut);be(Jt),vn(Ri)}else Se()},[Pe]);var mi=Ge.useRef(),Gn=function(){ct.Z.cancel(mi.current)},yi=function(Qi){Pe===Jt&&(Bn==null||Bn(Qi),An&&(Gn(),mi.current=(0,ct.Z)(function(){Cn()})))};Ge.useEffect(function(){return Gn},[]);var ni=Fe?Hn:null,ki=(0,xe.Z)((0,xe.Z)({},dn),ni);return(Pe===$t||Pe===Wt)&&(ki.overflowY="hidden",ki.overflowX="hidden"),Ge.createElement(nt.Z,{onResize:yi,disabled:!(An||Bn)},Ge.createElement("textarea",(0,Tt.Z)({},ue,{ref:xt,style:ki,className:je()(ge,Be,(0,ee.Z)({},"".concat(ge,"-disabled"),Qe)),disabled:Qe,value:Li,onChange:Ct})))}),le=de,De=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Re=Ge.forwardRef(function(qe,on){var gn,ge=qe.defaultValue,Xt=qe.value,Ve=qe.onFocus,An=qe.onBlur,Bn=qe.onChange,Be=qe.allowClear,dn=qe.maxLength,Qe=qe.onCompositionStart,On=qe.onCompositionEnd,we=qe.suffix,ue=qe.prefixCls,Xe=ue===void 0?"rc-textarea":ue,di=qe.showCount,Li=qe.count,It=qe.className,Ct=qe.style,xt=qe.disabled,Ft=qe.hidden,jt=qe.classNames,Mt=qe.styles,Ut=qe.onResize,Fe=qe.onClear,Se=qe.onPressEnter,nn=qe.readOnly,Le=qe.autoSize,Pe=qe.onKeyDown,be=(0,Ht.Z)(qe,De),We=(0,ie.Z)(ge,{value:Xt,defaultValue:ge}),rn=(0,ye.Z)(We,2),Hn=rn[0],vn=rn[1],Cn=Hn==null?"":String(Hn),mi=Ge.useState(!1),Gn=(0,ye.Z)(mi,2),yi=Gn[0],ni=Gn[1],ki=Ge.useRef(!1),Ri=Ge.useState(null),Qi=(0,ye.Z)(Ri,2),Ir=Qi[0],Xi=Qi[1],Rr=(0,Ge.useRef)(null),wo=(0,Ge.useRef)(null),oo=function(){var wr;return(wr=wo.current)===null||wr===void 0?void 0:wr.textArea},uo=function(){oo().focus()};(0,Ge.useImperativeHandle)(on,function(){var bi;return{resizableTextArea:wo.current,focus:uo,blur:function(){oo().blur()},nativeElement:((bi=Rr.current)===null||bi===void 0?void 0:bi.nativeElement)||oo()}}),(0,Ge.useEffect)(function(){ni(function(bi){return!xt&&bi})},[xt]);var po=Ge.useState(null),Do=(0,ye.Z)(po,2),Zo=Do[0],Lo=Do[1];Ge.useEffect(function(){if(Zo){var bi;(bi=oo()).setSelectionRange.apply(bi,(0,me.Z)(Zo))}},[Zo]);var Vo=(0,Nt.Z)(Li,di),Lt=(gn=Vo.max)!==null&&gn!==void 0?gn:dn,yn=Number(Lt)>0,Dn=Vo.strategy(Cn),Lr=!!Lt&&Dn>Lt,vr=function(wr,Ko){var Si=Ko;!ki.current&&Vo.exceedFormatter&&Vo.max&&Vo.strategy(Ko)>Vo.max&&(Si=Vo.exceedFormatter(Ko,{max:Vo.max}),Ko!==Si&&Lo([oo().selectionStart||0,oo().selectionEnd||0])),vn(Si),(0,He.rJ)(wr.currentTarget,wr,Bn,Si)},Vi=function(wr){ki.current=!0,Qe==null||Qe(wr)},Jr=function(wr){ki.current=!1,vr(wr,wr.currentTarget.value),On==null||On(wr)},mo=function(wr){vr(wr,wr.target.value)},Je=function(wr){wr.key==="Enter"&&Se&&Se(wr),Pe==null||Pe(wr)},$e=function(wr){ni(!0),Ve==null||Ve(wr)},Te=function(wr){ni(!1),An==null||An(wr)},ln=function(wr){vn(""),uo(),(0,He.rJ)(oo(),wr,Bn)},Wi=we,Gi;Vo.show&&(Vo.showFormatter?Gi=Vo.showFormatter({value:Cn,count:Dn,maxLength:Lt}):Gi="".concat(Dn).concat(yn?" / ".concat(Lt):""),Wi=Ge.createElement(Ge.Fragment,null,Wi,Ge.createElement("span",{className:je()("".concat(Xe,"-data-count"),jt==null?void 0:jt.count),style:Mt==null?void 0:Mt.count},Gi)));var Kr=function(wr){var Ko;Ut==null||Ut(wr),(Ko=oo())!==null&&Ko!==void 0&&Ko.style.height&&Xi(!0)},Nn=!Le&&!di&&!Be;return Ge.createElement(ve.BaseInput,{ref:Rr,value:Cn,allowClear:Be,handleReset:ln,suffix:Wi,prefixCls:Xe,classNames:(0,xe.Z)((0,xe.Z)({},jt),{},{affixWrapper:je()(jt==null?void 0:jt.affixWrapper,(0,ee.Z)((0,ee.Z)({},"".concat(Xe,"-show-count"),di),"".concat(Xe,"-textarea-allow-clear"),Be))}),disabled:xt,focused:yi,className:je()(It,Lr&&"".concat(Xe,"-out-of-range")),style:(0,xe.Z)((0,xe.Z)({},Ct),Ir&&!Nn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gi=="string"?Gi:void 0}},hidden:Ft,readOnly:nn,onClear:Fe},Ge.createElement(le,(0,Tt.Z)({},be,{autoSize:Le,maxLength:dn,onKeyDown:Je,onChange:mo,onFocus:$e,onBlur:Te,onCompositionStart:Vi,onCompositionEnd:Jr,className:je()(jt==null?void 0:jt.textarea),style:(0,xe.Z)((0,xe.Z)({},Mt==null?void 0:Mt.textarea),{},{resize:Ct==null?void 0:Ct.resize}),disabled:xt,prefixCls:Xe,onResize:Kr,ref:wo,readOnly:nn})))}),Ke=Re,kn=Ke},639:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return mt}});var Tt=Ot(14809),ee=Ot(4635),xe=Ot(20439),me=Ot(50298),ye=Ot(62646),Ht=Ot(59301),ae=Ot(92310),je=Ot.n(ae),ve=Ot(26112),Nt=Ot(30699),He=function(kt){for(var zt=kt.prefixCls,Gt=kt.level,$t=kt.isStart,Wt=kt.isEnd,Jt="".concat(zt,"-indent-unit"),de=[],le=0;le0&&arguments[0]!==void 0?arguments[0]:[],jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Mt=Ft.length,Ut=jt.length;if(Math.abs(Mt-Ut)!==1)return{add:!1,key:null};function Fe(Se,nn){var Le=new Map;Se.forEach(function(be){Le.set(be,!0)});var Pe=nn.filter(function(be){return!Le.has(be)});return Pe.length===1?Pe[0]:null}return Mt ").concat(jt);return jt}var On=et.forwardRef(function(Ft,jt){var Mt=Ft.prefixCls,Ut=Ft.data,Fe=Ft.selectable,Se=Ft.checkable,nn=Ft.expandedKeys,Le=Ft.selectedKeys,Pe=Ft.checkedKeys,be=Ft.loadedKeys,We=Ft.loadingKeys,rn=Ft.halfCheckedKeys,Hn=Ft.keyEntities,vn=Ft.disabled,Cn=Ft.dragging,mi=Ft.dragOverNodeKey,Gn=Ft.dropPosition,yi=Ft.motion,ni=Ft.height,ki=Ft.itemHeight,Ri=Ft.virtual,Qi=Ft.scrollWidth,Ir=Ft.focusable,Xi=Ft.activeItem,Rr=Ft.focused,wo=Ft.tabIndex,oo=Ft.onKeyDown,uo=Ft.onFocus,po=Ft.onBlur,Do=Ft.onActiveChange,Zo=Ft.onListChangeStart,Lo=Ft.onListChangeEnd,Vo=(0,kt.Z)(Ft,on),Lt=et.useRef(null),yn=et.useRef(null);et.useImperativeHandle(jt,function(){return{scrollTo:function(zn){Lt.current.scrollTo(zn)},getIndentWidth:function(){return yn.current.offsetWidth}}});var Dn=et.useState(nn),Lr=(0,St.Z)(Dn,2),vr=Lr[0],Vi=Lr[1],Jr=et.useState(Ut),mo=(0,St.Z)(Jr,2),Je=mo[0],$e=mo[1],Te=et.useState(Ut),ln=(0,St.Z)(Te,2),Wi=ln[0],Gi=ln[1],Kr=et.useState([]),Nn=(0,St.Z)(Kr,2),bi=Nn[0],wr=Nn[1],Ko=et.useState(null),Si=(0,St.Z)(Ko,2),qt=Si[0],Ce=Si[1],Jn=et.useRef(Ut);Jn.current=Ut;function Qn(){var Rn=Jn.current;$e(Rn),Gi(Rn),wr([]),Ce(null),Lo()}(0,zt.Z)(function(){Vi(nn);var Rn=kn(vr,nn);if(Rn.key!==null)if(Rn.add){var zn=Je.findIndex(function(ir){var Ln=ir.key;return Ln===Rn.key}),Pi=Be(qe(Je,Ut,Rn.key),Ri,ni,ki),ti=Je.slice();ti.splice(zn+1,0,Bn),Gi(ti),wr(Pi),Ce("show")}else{var ii=Ut.findIndex(function(ir){var Ln=ir.key;return Ln===Rn.key}),Fi=Be(qe(Ut,Je,Rn.key),Ri,ni,ki),yr=Ut.slice();yr.splice(ii+1,0,Bn),Gi(yr),wr(Fi),Ce("hide")}else Je!==Ut&&($e(Ut),Gi(Ut))},[nn,Ut]),et.useEffect(function(){Cn||Qn()},[Cn]);var Ze=yi?Wi:Ut,qn={expandedKeys:nn,selectedKeys:Le,loadedKeys:be,loadingKeys:We,checkedKeys:Pe,halfCheckedKeys:rn,dragOverNodeKey:mi,dropPosition:Gn,keyEntities:Hn};return et.createElement(et.Fragment,null,Rr&&Xi&&et.createElement("span",{style:gn,"aria-live":"assertive"},Qe(Xi)),et.createElement("div",null,et.createElement("input",{style:gn,disabled:Ir===!1||vn,tabIndex:Ir!==!1?wo:null,onKeyDown:oo,onFocus:uo,onBlur:po,value:"",onChange:ge,"aria-label":"for screen reader"})),et.createElement("div",{className:"".concat(Mt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},et.createElement("div",{className:"".concat(Mt,"-indent")},et.createElement("div",{ref:yn,className:"".concat(Mt,"-indent-unit")}))),et.createElement(Gt.Z,(0,Tt.Z)({},Vo,{data:Ze,itemKey:dn,height:ni,fullHeight:!1,virtual:Ri,itemHeight:ki,scrollWidth:Qi,prefixCls:"".concat(Mt,"-list"),ref:Lt,role:"tree",onVisibleChange:function(zn){zn.every(function(Pi){return dn(Pi)!==Xt})&&Qn()}}),function(Rn){var zn=Rn.pos,Pi=Object.assign({},(mt(Rn.data),Rn.data)),ti=Rn.title,ii=Rn.key,Fi=Rn.isStart,yr=Rn.isEnd,ir=(0,le.km)(ii,zn);delete Pi.key,delete Pi.children;var Ln=(0,le.H8)(ir,qn);return et.createElement(Ke,(0,Tt.Z)({},Pi,Ln,{title:ti,active:!!Xi&&ii===Xi.key,pos:zn,data:Rn.data,isStart:Fi,isEnd:yr,motion:yi,motionNodes:ii===Xt?bi:null,motionType:qt,onMotionStart:Zo,onMotionEnd:Qn,treeNodeRequiredProps:qn,onMouseMove:function(){Do(null)}}))}))}),we=On,ue=Ot(82661),Xe=Ot(34643),di=Ot(65065),Li=10,It=function(Ft){(0,je.Z)(Mt,Ft);var jt=(0,ve.Z)(Mt);function Mt(){var Ut;(0,ye.Z)(this,Mt);for(var Fe=arguments.length,Se=new Array(Fe),nn=0;nn2&&arguments[2]!==void 0?arguments[2]:!1,rn=Ut.state,Hn=rn.dragChildrenKeys,vn=rn.dropPosition,Cn=rn.dropTargetKey,mi=rn.dropTargetPos,Gn=rn.dropAllowed;if(Gn){var yi=Ut.props.onDrop;if(Ut.setState({dragOverNodeKey:null}),Ut.cleanDragState(),Cn!==null){var ni=(0,xe.Z)((0,xe.Z)({},(0,le.H8)(Cn,Ut.getTreeNodeRequiredProps())),{},{active:((be=Ut.getActiveItem())===null||be===void 0?void 0:be.key)===Cn,data:(0,di.Z)(Ut.state.keyEntities,Cn).node}),ki=Hn.includes(Cn);(0,nt.ZP)(!ki,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ri=(0,ue.yx)(mi),Qi={event:Le,node:(0,le.F)(ni),dragNode:Ut.dragNodeProps?(0,le.F)(Ut.dragNodeProps):null,dragNodesKeys:[Ut.dragNodeProps.eventKey].concat(Hn),dropToGap:vn!==0,dropPosition:vn+Number(Ri[Ri.length-1])};We||yi==null||yi(Qi),Ut.dragNodeProps=null}}}),(0,Nt.Z)((0,ae.Z)(Ut),"cleanDragState",function(){var Le=Ut.state.draggingNodeKey;Le!==null&&Ut.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ut.dragStartMousePosition=null,Ut.currentMouseOverDroppableNodeKey=null}),(0,Nt.Z)((0,ae.Z)(Ut),"triggerExpandActionExpand",function(Le,Pe){var be=Ut.state,We=be.expandedKeys,rn=be.flattenNodes,Hn=Pe.expanded,vn=Pe.key,Cn=Pe.isLeaf;if(!(Cn||Le.shiftKey||Le.metaKey||Le.ctrlKey)){var mi=rn.filter(function(yi){return yi.key===vn})[0],Gn=(0,le.F)((0,xe.Z)((0,xe.Z)({},(0,le.H8)(vn,Ut.getTreeNodeRequiredProps())),{},{data:mi.data}));Ut.setExpandedKeys(Hn?(0,ue._5)(We,vn):(0,ue.L0)(We,vn)),Ut.onNodeExpand(Le,Gn)}}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeClick",function(Le,Pe){var be=Ut.props,We=be.onClick,rn=be.expandAction;rn==="click"&&Ut.triggerExpandActionExpand(Le,Pe),We==null||We(Le,Pe)}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeDoubleClick",function(Le,Pe){var be=Ut.props,We=be.onDoubleClick,rn=be.expandAction;rn==="doubleClick"&&Ut.triggerExpandActionExpand(Le,Pe),We==null||We(Le,Pe)}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeSelect",function(Le,Pe){var be=Ut.state.selectedKeys,We=Ut.state,rn=We.keyEntities,Hn=We.fieldNames,vn=Ut.props,Cn=vn.onSelect,mi=vn.multiple,Gn=Pe.selected,yi=Pe[Hn.key],ni=!Gn;ni?mi?be=(0,ue.L0)(be,yi):be=[yi]:be=(0,ue._5)(be,yi);var ki=be.map(function(Ri){var Qi=(0,di.Z)(rn,Ri);return Qi?Qi.node:null}).filter(Boolean);Ut.setUncontrolledState({selectedKeys:be}),Cn==null||Cn(be,{event:"select",selected:ni,node:Pe,selectedNodes:ki,nativeEvent:Le.nativeEvent})}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeCheck",function(Le,Pe,be){var We=Ut.state,rn=We.keyEntities,Hn=We.checkedKeys,vn=We.halfCheckedKeys,Cn=Ut.props,mi=Cn.checkStrictly,Gn=Cn.onCheck,yi=Pe.key,ni,ki={event:"check",node:Pe,checked:be,nativeEvent:Le.nativeEvent};if(mi){var Ri=be?(0,ue.L0)(Hn,yi):(0,ue._5)(Hn,yi),Qi=(0,ue._5)(vn,yi);ni={checked:Ri,halfChecked:Qi},ki.checkedNodes=Ri.map(function(uo){return(0,di.Z)(rn,uo)}).filter(Boolean).map(function(uo){return uo.node}),Ut.setUncontrolledState({checkedKeys:Ri})}else{var Ir=(0,Xe.S)([].concat((0,me.Z)(Hn),[yi]),!0,rn),Xi=Ir.checkedKeys,Rr=Ir.halfCheckedKeys;if(!be){var wo=new Set(Xi);wo.delete(yi);var oo=(0,Xe.S)(Array.from(wo),{checked:!1,halfCheckedKeys:Rr},rn);Xi=oo.checkedKeys,Rr=oo.halfCheckedKeys}ni=Xi,ki.checkedNodes=[],ki.checkedNodesPositions=[],ki.halfCheckedKeys=Rr,Xi.forEach(function(uo){var po=(0,di.Z)(rn,uo);if(po){var Do=po.node,Zo=po.pos;ki.checkedNodes.push(Do),ki.checkedNodesPositions.push({node:Do,pos:Zo})}}),Ut.setUncontrolledState({checkedKeys:Xi},!1,{halfCheckedKeys:Rr})}Gn==null||Gn(ni,ki)}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeLoad",function(Le){var Pe,be=Le.key,We=Ut.state.keyEntities,rn=(0,di.Z)(We,be);if(!(rn!=null&&(Pe=rn.children)!==null&&Pe!==void 0&&Pe.length)){var Hn=new Promise(function(vn,Cn){Ut.setState(function(mi){var Gn=mi.loadedKeys,yi=Gn===void 0?[]:Gn,ni=mi.loadingKeys,ki=ni===void 0?[]:ni,Ri=Ut.props,Qi=Ri.loadData,Ir=Ri.onLoad;if(!Qi||yi.includes(be)||ki.includes(be))return null;var Xi=Qi(Le);return Xi.then(function(){var Rr=Ut.state.loadedKeys,wo=(0,ue.L0)(Rr,be);Ir==null||Ir(wo,{event:"load",node:Le}),Ut.setUncontrolledState({loadedKeys:wo}),Ut.setState(function(oo){return{loadingKeys:(0,ue._5)(oo.loadingKeys,be)}}),vn()}).catch(function(Rr){if(Ut.setState(function(oo){return{loadingKeys:(0,ue._5)(oo.loadingKeys,be)}}),Ut.loadingRetryTimes[be]=(Ut.loadingRetryTimes[be]||0)+1,Ut.loadingRetryTimes[be]>=Li){var wo=Ut.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ut.setUncontrolledState({loadedKeys:(0,ue.L0)(wo,be)}),vn()}Cn(Rr)}),{loadingKeys:(0,ue.L0)(ki,be)}})});return Hn.catch(function(){}),Hn}}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeMouseEnter",function(Le,Pe){var be=Ut.props.onMouseEnter;be==null||be({event:Le,node:Pe})}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeMouseLeave",function(Le,Pe){var be=Ut.props.onMouseLeave;be==null||be({event:Le,node:Pe})}),(0,Nt.Z)((0,ae.Z)(Ut),"onNodeContextMenu",function(Le,Pe){var be=Ut.props.onRightClick;be&&(Le.preventDefault(),be({event:Le,node:Pe}))}),(0,Nt.Z)((0,ae.Z)(Ut),"onFocus",function(){var Le=Ut.props.onFocus;Ut.setState({focused:!0});for(var Pe=arguments.length,be=new Array(Pe),We=0;We1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ut.destroyed){var We=!1,rn=!0,Hn={};Object.keys(Le).forEach(function(vn){if(Ut.props.hasOwnProperty(vn)){rn=!1;return}We=!0,Hn[vn]=Le[vn]}),We&&(!Pe||rn)&&Ut.setState((0,xe.Z)((0,xe.Z)({},Hn),be))}}),(0,Nt.Z)((0,ae.Z)(Ut),"scrollTo",function(Le){Ut.listRef.current.scrollTo(Le)}),Ut}return(0,Ht.Z)(Mt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Fe=this.props,Se=Fe.activeKey,nn=Fe.itemScrollOffset,Le=nn===void 0?0:nn;Se!==void 0&&Se!==this.state.activeKey&&(this.setState({activeKey:Se}),Se!==null&&this.scrollTo({key:Se,offset:Le}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Fe=this.state,Se=Fe.focused,nn=Fe.flattenNodes,Le=Fe.keyEntities,Pe=Fe.draggingNodeKey,be=Fe.activeKey,We=Fe.dropLevelOffset,rn=Fe.dropContainerKey,Hn=Fe.dropTargetKey,vn=Fe.dropPosition,Cn=Fe.dragOverNodeKey,mi=Fe.indent,Gn=this.props,yi=Gn.prefixCls,ni=Gn.className,ki=Gn.style,Ri=Gn.showLine,Qi=Gn.focusable,Ir=Gn.tabIndex,Xi=Ir===void 0?0:Ir,Rr=Gn.selectable,wo=Gn.showIcon,oo=Gn.icon,uo=Gn.switcherIcon,po=Gn.draggable,Do=Gn.checkable,Zo=Gn.checkStrictly,Lo=Gn.disabled,Vo=Gn.motion,Lt=Gn.loadData,yn=Gn.filterTreeNode,Dn=Gn.height,Lr=Gn.itemHeight,vr=Gn.scrollWidth,Vi=Gn.virtual,Jr=Gn.titleRender,mo=Gn.dropIndicatorRender,Je=Gn.onContextMenu,$e=Gn.onScroll,Te=Gn.direction,ln=Gn.rootClassName,Wi=Gn.rootStyle,Gi=(0,bt.Z)(this.props,{aria:!0,data:!0}),Kr;po&&((0,ee.Z)(po)==="object"?Kr=po:typeof po=="function"?Kr={nodeDraggable:po}:Kr={});var Nn={prefixCls:yi,selectable:Rr,showIcon:wo,icon:oo,switcherIcon:uo,draggable:Kr,draggingNodeKey:Pe,checkable:Do,checkStrictly:Zo,disabled:Lo,keyEntities:Le,dropLevelOffset:We,dropContainerKey:rn,dropTargetKey:Hn,dropPosition:vn,dragOverNodeKey:Cn,indent:mi,direction:Te,dropIndicatorRender:mo,loadData:Lt,filterTreeNode:yn,titleRender:Jr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return et.createElement(ct.k.Provider,{value:Nn},et.createElement("div",{className:ie()(yi,ni,ln,(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat(yi,"-show-line"),Ri),"".concat(yi,"-focused"),Se),"".concat(yi,"-active-focused"),be!==null)),style:Wi},et.createElement(we,(0,Tt.Z)({ref:this.listRef,prefixCls:yi,style:ki,data:nn,disabled:Lo,selectable:Rr,checkable:!!Do,motion:Vo,dragging:Pe!==null,height:Dn,itemHeight:Lr,virtual:Vi,focusable:Qi,focused:Se,tabIndex:Xi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Je,onScroll:$e,scrollWidth:vr},this.getTreeNodeRequiredProps(),Gi))))}}],[{key:"getDerivedStateFromProps",value:function(Fe,Se){var nn=Se.prevProps,Le={prevProps:Fe};function Pe(Xi){return!nn&&Fe.hasOwnProperty(Xi)||nn&&nn[Xi]!==Fe[Xi]}var be,We=Se.fieldNames;if(Pe("fieldNames")&&(We=(0,le.w$)(Fe.fieldNames),Le.fieldNames=We),Pe("treeData")?be=Fe.treeData:Pe("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),be=(0,le.zn)(Fe.children)),be){Le.treeData=be;var rn=(0,le.I8)(be,{fieldNames:We});Le.keyEntities=(0,xe.Z)((0,Nt.Z)({},Xt,An),rn.keyEntities)}var Hn=Le.keyEntities||Se.keyEntities;if(Pe("expandedKeys")||nn&&Pe("autoExpandParent"))Le.expandedKeys=Fe.autoExpandParent||!nn&&Fe.defaultExpandParent?(0,ue.r7)(Fe.expandedKeys,Hn):Fe.expandedKeys;else if(!nn&&Fe.defaultExpandAll){var vn=(0,xe.Z)({},Hn);delete vn[Xt];var Cn=[];Object.keys(vn).forEach(function(Xi){var Rr=vn[Xi];Rr.children&&Rr.children.length&&Cn.push(Rr.key)}),Le.expandedKeys=Cn}else!nn&&Fe.defaultExpandedKeys&&(Le.expandedKeys=Fe.autoExpandParent||Fe.defaultExpandParent?(0,ue.r7)(Fe.defaultExpandedKeys,Hn):Fe.defaultExpandedKeys);if(Le.expandedKeys||delete Le.expandedKeys,be||Le.expandedKeys){var mi=(0,le.oH)(be||Se.treeData,Le.expandedKeys||Se.expandedKeys,We);Le.flattenNodes=mi}if(Fe.selectable&&(Pe("selectedKeys")?Le.selectedKeys=(0,ue.BT)(Fe.selectedKeys,Fe):!nn&&Fe.defaultSelectedKeys&&(Le.selectedKeys=(0,ue.BT)(Fe.defaultSelectedKeys,Fe))),Fe.checkable){var Gn;if(Pe("checkedKeys")?Gn=(0,ue.E6)(Fe.checkedKeys)||{}:!nn&&Fe.defaultCheckedKeys?Gn=(0,ue.E6)(Fe.defaultCheckedKeys)||{}:be&&(Gn=(0,ue.E6)(Fe.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),Gn){var yi=Gn,ni=yi.checkedKeys,ki=ni===void 0?[]:ni,Ri=yi.halfCheckedKeys,Qi=Ri===void 0?[]:Ri;if(!Fe.checkStrictly){var Ir=(0,Xe.S)(ki,!0,Hn);ki=Ir.checkedKeys,Qi=Ir.halfCheckedKeys}Le.checkedKeys=ki,Le.halfCheckedKeys=Qi}}return Pe("loadedKeys")&&(Le.loadedKeys=Fe.loadedKeys),Le}}]),Mt}(et.Component);(0,Nt.Z)(It,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:gt,allowDrop:function(){return!0},expandAction:!1}),(0,Nt.Z)(It,"TreeNode",Wt.Z);var Ct=It,xt=Ct},82661:function(Wn,ai,Ot){"use strict";Ot.d(ai,{BT:function(){return et},E6:function(){return gt},L0:function(){return Nt},OM:function(){return nt},_5:function(){return ve},r7:function(){return mt},wA:function(){return ie},yx:function(){return He}});var Tt=Ot(95190),ee=Ot(93664),xe=Ot(48736),me=Ot(59301),ye=Ot(639),Ht=Ot(65065),ae=Ot(34061),je=null;function ve(St,kt){if(!St)return[];var zt=St.slice(),Gt=zt.indexOf(kt);return Gt>=0&&zt.splice(Gt,1),zt}function Nt(St,kt){var zt=(St||[]).slice();return zt.indexOf(kt)===-1&&zt.push(kt),zt}function He(St){return St.split("-")}function ie(St,kt){var zt=[],Gt=(0,Ht.Z)(kt,St);function $t(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Wt.forEach(function(Jt){var de=Jt.key,le=Jt.children;zt.push(de),$t(le)})}return $t(Gt.children),zt}function Ge(St){if(St.parent){var kt=He(St.pos);return Number(kt[kt.length-1])===St.parent.children.length-1}return!1}function bt(St){var kt=He(St.pos);return Number(kt[kt.length-1])===0}function nt(St,kt,zt,Gt,$t,Wt,Jt,de,le,De){var Re,Ke=St.clientX,kn=St.clientY,qe=St.target.getBoundingClientRect(),on=qe.top,gn=qe.height,ge=(De==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-Ke),Xt=(ge-12)/Gt,Ve=le.filter(function(xt){var Ft;return(Ft=de[xt])===null||Ft===void 0||(Ft=Ft.children)===null||Ft===void 0?void 0:Ft.length}),An=(0,Ht.Z)(de,zt.eventKey);if(kn-1.5?Wt({dragNode:Li,dropNode:It,dropPosition:1})?ue=1:Ct=!1:Wt({dragNode:Li,dropNode:It,dropPosition:0})?ue=0:Wt({dragNode:Li,dropNode:It,dropPosition:1})?ue=1:Ct=!1:Wt({dragNode:Li,dropNode:It,dropPosition:1})?ue=1:Ct=!1,{dropPosition:ue,dropLevelOffset:Xe,dropTargetKey:An.key,dropTargetPos:An.pos,dragOverNodeKey:we,dropContainerKey:ue===0?null:((Re=An.parent)===null||Re===void 0?void 0:Re.key)||null,dropAllowed:Ct}}function et(St,kt){if(St){var zt=kt.multiple;return zt?St.slice():St.length?[St[0]]:St}}var ct=function(kt){return kt};function lt(St,kt){if(!St)return[];var zt=kt||{},Gt=zt.processProps,$t=Gt===void 0?ct:Gt,Wt=Array.isArray(St)?St:[St];return Wt.map(function(Jt){var de=Jt.children,le=_objectWithoutProperties(Jt,je),De=lt(de,kt);return React.createElement(TreeNode,_extends({key:le.key},$t(le)),De)})}function gt(St){if(!St)return null;var kt;if(Array.isArray(St))kt={checkedKeys:St,halfCheckedKeys:void 0};else if((0,ee.Z)(St)==="object")kt={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,xe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return kt}function mt(St,kt){var zt=new Set;function Gt($t){if(!zt.has($t)){var Wt=(0,Ht.Z)(kt,$t);if(Wt){zt.add($t);var Jt=Wt.parent,de=Wt.node;de.disabled||Jt&&Gt(Jt.key)}}}return(St||[]).forEach(function($t){Gt($t)}),(0,Tt.Z)(zt)}},34643:function(Wn,ai,Ot){"use strict";Ot.d(ai,{S:function(){return ae}});var Tt=Ot(48736),ee=Ot(65065);function xe(je,ve){var Nt=new Set;return je.forEach(function(He){ve.has(He)||Nt.add(He)}),Nt}function me(je){var ve=je||{},Nt=ve.disabled,He=ve.disableCheckbox,ie=ve.checkable;return!!(Nt||He)||ie===!1}function ye(je,ve,Nt,He){for(var ie=new Set(je),Ge=new Set,bt=0;bt<=Nt;bt+=1){var nt=ve.get(bt)||new Set;nt.forEach(function(gt){var mt=gt.key,St=gt.node,kt=gt.children,zt=kt===void 0?[]:kt;ie.has(mt)&&!He(St)&&zt.filter(function(Gt){return!He(Gt.node)}).forEach(function(Gt){ie.add(Gt.key)})})}for(var et=new Set,ct=Nt;ct>=0;ct-=1){var lt=ve.get(ct)||new Set;lt.forEach(function(gt){var mt=gt.parent,St=gt.node;if(!(He(St)||!gt.parent||et.has(gt.parent.key))){if(He(gt.parent.node)){et.add(mt.key);return}var kt=!0,zt=!1;(mt.children||[]).filter(function(Gt){return!He(Gt.node)}).forEach(function(Gt){var $t=Gt.key,Wt=ie.has($t);kt&&!Wt&&(kt=!1),!zt&&(Wt||Ge.has($t))&&(zt=!0)}),kt&&ie.add(mt.key),zt&&Ge.add(mt.key),et.add(mt.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(xe(Ge,ie))}}function Ht(je,ve,Nt,He,ie){for(var Ge=new Set(je),bt=new Set(ve),nt=0;nt<=He;nt+=1){var et=Nt.get(nt)||new Set;et.forEach(function(mt){var St=mt.key,kt=mt.node,zt=mt.children,Gt=zt===void 0?[]:zt;!Ge.has(St)&&!bt.has(St)&&!ie(kt)&&Gt.filter(function($t){return!ie($t.node)}).forEach(function($t){Ge.delete($t.key)})})}bt=new Set;for(var ct=new Set,lt=He;lt>=0;lt-=1){var gt=Nt.get(lt)||new Set;gt.forEach(function(mt){var St=mt.parent,kt=mt.node;if(!(ie(kt)||!mt.parent||ct.has(mt.parent.key))){if(ie(mt.parent.node)){ct.add(St.key);return}var zt=!0,Gt=!1;(St.children||[]).filter(function($t){return!ie($t.node)}).forEach(function($t){var Wt=$t.key,Jt=Ge.has(Wt);zt&&!Jt&&(zt=!1),!Gt&&(Jt||bt.has(Wt))&&(Gt=!0)}),zt||Ge.delete(St.key),Gt&&bt.add(St.key),ct.add(St.key)}})}return{checkedKeys:Array.from(Ge),halfCheckedKeys:Array.from(xe(bt,Ge))}}function ae(je,ve,Nt,He){var ie=[],Ge;He?Ge=He:Ge=me;var bt=new Set(je.filter(function(lt){var gt=!!(0,ee.Z)(Nt,lt);return gt||ie.push(lt),gt})),nt=new Map,et=0;Object.keys(Nt).forEach(function(lt){var gt=Nt[lt],mt=gt.level,St=nt.get(mt);St||(St=new Set,nt.set(mt,St)),St.add(gt),et=Math.max(et,mt)}),(0,Tt.ZP)(!ie.length,"Tree missing follow keys: ".concat(ie.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var ct;return ve===!0?ct=ye(bt,nt,et,Ge):ct=Ht(bt,ve.halfCheckedKeys,nt,et,Ge),ct}},65065:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return Tt}});function Tt(ee,xe){return ee[xe]}},34061:function(Wn,ai,Ot){"use strict";Ot.d(ai,{F:function(){return mt},H8:function(){return gt},I8:function(){return lt},km:function(){return ie},oH:function(){return et},w$:function(){return Ge},zn:function(){return nt}});var Tt=Ot(93664),ee=Ot(95190),xe=Ot(20439),me=Ot(62646),ye=Ot(11592),Ht=Ot(2738),ae=Ot(48736),je=Ot(65065),ve=["children"];function Nt(St,kt){return"".concat(St,"-").concat(kt)}function He(St){return St&&St.type&&St.type.isTreeNode}function ie(St,kt){return St!=null?St:kt}function Ge(St){var kt=St||{},zt=kt.title,Gt=kt._title,$t=kt.key,Wt=kt.children,Jt=zt||"title";return{title:Jt,_title:Gt||[Jt],key:$t||"key",children:Wt||"children"}}function bt(St,kt){var zt=new Map;function Gt($t){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($t||[]).forEach(function(Jt){var de=Jt[kt.key],le=Jt[kt.children];warning(de!=null,"Tree node must have a certain key: [".concat(Wt).concat(de,"]"));var De=String(de);warning(!zt.has(De)||de===null||de===void 0,"Same 'key' exist in the Tree: ".concat(De)),zt.set(De,!0),Gt(le,"".concat(Wt).concat(De," > "))})}Gt(St)}function nt(St){function kt(zt){var Gt=(0,ye.Z)(zt);return Gt.map(function($t){if(!He($t))return(0,ae.ZP)(!$t,"Tree/TreeNode can only accept TreeNode as children."),null;var Wt=$t.key,Jt=$t.props,de=Jt.children,le=(0,me.Z)(Jt,ve),De=(0,xe.Z)({key:Wt},le),Re=kt(de);return Re.length&&(De.children=Re),De}).filter(function($t){return $t})}return kt(St)}function et(St,kt,zt){var Gt=Ge(zt),$t=Gt._title,Wt=Gt.key,Jt=Gt.children,de=new Set(kt===!0?[]:kt),le=[];function De(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Re.map(function(kn,qe){for(var on=Nt(Ke?Ke.pos:"0",qe),gn=ie(kn[Wt],on),ge,Xt=0;Xt<$t.length;Xt+=1){var Ve=$t[Xt];if(kn[Ve]!==void 0){ge=kn[Ve];break}}var An=Object.assign((0,Ht.Z)(kn,[].concat((0,ee.Z)($t),[Wt,Jt])),{title:ge,key:gn,parent:Ke,pos:on,children:null,data:kn,isStart:[].concat((0,ee.Z)(Ke?Ke.isStart:[]),[qe===0]),isEnd:[].concat((0,ee.Z)(Ke?Ke.isEnd:[]),[qe===Re.length-1])});return le.push(An),kt===!0||de.has(gn)?An.children=De(kn[Jt]||[],An):An.children=[],An})}return De(St),le}function ct(St,kt,zt){var Gt={};(0,Tt.Z)(zt)==="object"?Gt=zt:Gt={externalGetKey:zt},Gt=Gt||{};var $t=Gt,Wt=$t.childrenPropName,Jt=$t.externalGetKey,de=$t.fieldNames,le=Ge(de),De=le.key,Re=le.children,Ke=Wt||Re,kn;Jt?typeof Jt=="string"?kn=function(gn){return gn[Jt]}:typeof Jt=="function"&&(kn=function(gn){return Jt(gn)}):kn=function(gn,ge){return ie(gn[De],ge)};function qe(on,gn,ge,Xt){var Ve=on?on[Ke]:St,An=on?Nt(ge.pos,gn):"0",Bn=on?[].concat((0,ee.Z)(Xt),[on]):[];if(on){var Be=kn(on,An),dn={node:on,index:gn,pos:An,key:Be,parentPos:ge.node?ge.pos:null,level:ge.level+1,nodes:Bn};kt(dn)}Ve&&Ve.forEach(function(Qe,On){qe(Qe,On,{node:on,pos:An,level:ge?ge.level+1:-1},Bn)})}qe(null)}function lt(St){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=kt.initWrapper,Gt=kt.processEntity,$t=kt.onProcessFinished,Wt=kt.externalGetKey,Jt=kt.childrenPropName,de=kt.fieldNames,le=arguments.length>2?arguments[2]:void 0,De=Wt||le,Re={},Ke={},kn={posEntities:Re,keyEntities:Ke};return zt&&(kn=zt(kn)||kn),ct(St,function(qe){var on=qe.node,gn=qe.index,ge=qe.pos,Xt=qe.key,Ve=qe.parentPos,An=qe.level,Bn=qe.nodes,Be={node:on,nodes:Bn,index:gn,key:Xt,pos:ge,level:An},dn=ie(Xt,ge);Re[ge]=Be,Ke[dn]=Be,Be.parent=Re[Ve],Be.parent&&(Be.parent.children=Be.parent.children||[],Be.parent.children.push(Be)),Gt&&Gt(Be,kn)},{externalGetKey:De,childrenPropName:Jt,fieldNames:de}),$t&&$t(kn),kn}function gt(St,kt){var zt=kt.expandedKeys,Gt=kt.selectedKeys,$t=kt.loadedKeys,Wt=kt.loadingKeys,Jt=kt.checkedKeys,de=kt.halfCheckedKeys,le=kt.dragOverNodeKey,De=kt.dropPosition,Re=kt.keyEntities,Ke=(0,je.Z)(Re,St),kn={eventKey:St,expanded:zt.indexOf(St)!==-1,selected:Gt.indexOf(St)!==-1,loaded:$t.indexOf(St)!==-1,loading:Wt.indexOf(St)!==-1,checked:Jt.indexOf(St)!==-1,halfChecked:de.indexOf(St)!==-1,pos:String(Ke?Ke.pos:""),dragOver:le===St&&De===0,dragOverGapTop:le===St&&De===-1,dragOverGapBottom:le===St&&De===1};return kn}function mt(St){var kt=St.data,zt=St.expanded,Gt=St.selected,$t=St.checked,Wt=St.loaded,Jt=St.loading,de=St.halfChecked,le=St.dragOver,De=St.dragOverGapTop,Re=St.dragOverGapBottom,Ke=St.pos,kn=St.active,qe=St.eventKey,on=(0,xe.Z)((0,xe.Z)({},kt),{},{expanded:zt,selected:Gt,checked:$t,loaded:Wt,loading:Jt,halfChecked:de,dragOver:le,dragOverGapTop:De,dragOverGapBottom:Re,pos:Ke,active:kn,key:qe});return"props"in on||Object.defineProperty(on,"props",{get:function(){return(0,ae.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),on}},90472:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return qe}});var Tt=Ot(14809),ee=Ot(99153),xe=Ot(84851),me=Ot(13028),ye=Ot(19257),Ht=Ot(93046),ae=Ot(4635),je=Ot(59301),ve=Ot(20439),Nt=Ot(62646),He=Ot(93664),ie=Ot(70539),Ge=Ot(95764),bt=Ot(95190),nt=Ot(92310),et=Ot.n(nt),ct=Ot(26112),lt=Ot(48736),gt=function(on,gn){if(on&&gn){var ge=Array.isArray(gn)?gn:gn.split(","),Xt=on.name||"",Ve=on.type||"",An=Ve.replace(/\/.*$/,"");return ge.some(function(Bn){var Be=Bn.trim();if(/^\*(\/\*)?$/.test(Bn))return!0;if(Be.charAt(0)==="."){var dn=Xt.toLowerCase(),Qe=Be.toLowerCase(),On=[Qe];return(Qe===".jpg"||Qe===".jpeg")&&(On=[".jpg",".jpeg"]),On.some(function(we){return dn.endsWith(we)})}return/\/\*$/.test(Be)?An===Be.replace(/\/.*$/,""):Ve===Be?!0:/^\w+$/.test(Be)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Be,"'.Skip for check.")),!0):!1})}return!0};function mt(on,gn){var ge="cannot ".concat(on.method," ").concat(on.action," ").concat(gn.status,"'"),Xt=new Error(ge);return Xt.status=gn.status,Xt.method=on.method,Xt.url=on.action,Xt}function St(on){var gn=on.responseText||on.response;if(!gn)return gn;try{return JSON.parse(gn)}catch(ge){return gn}}function kt(on){var gn=new XMLHttpRequest;on.onProgress&&gn.upload&&(gn.upload.onprogress=function(An){An.total>0&&(An.percent=An.loaded/An.total*100),on.onProgress(An)});var ge=new FormData;on.data&&Object.keys(on.data).forEach(function(Ve){var An=on.data[Ve];if(Array.isArray(An)){An.forEach(function(Bn){ge.append("".concat(Ve,"[]"),Bn)});return}ge.append(Ve,An)}),on.file instanceof Blob?ge.append(on.filename,on.file,on.file.name):ge.append(on.filename,on.file),gn.onerror=function(An){on.onError(An)},gn.onload=function(){return gn.status<200||gn.status>=300?on.onError(mt(on,gn),St(gn)):on.onSuccess(St(gn),gn)},gn.open(on.method,on.action,!0),on.withCredentials&&"withCredentials"in gn&&(gn.withCredentials=!0);var Xt=on.headers||{};return Xt["X-Requested-With"]!==null&&gn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Xt).forEach(function(Ve){Xt[Ve]!==null&&gn.setRequestHeader(Ve,Xt[Ve])}),gn.send(ge),{abort:function(){gn.abort()}}}var zt=function(){var on=(0,Ge.Z)((0,ie.Z)().mark(function gn(ge,Xt){var Ve,An,Bn,Be,dn,Qe,On,we;return(0,ie.Z)().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:Qe=function(){return Qe=(0,Ge.Z)((0,ie.Z)().mark(function Li(It){return(0,ie.Z)().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.abrupt("return",new Promise(function(Ft){It.file(function(jt){Xt(jt)?(It.fullPath&&!jt.webkitRelativePath&&(Object.defineProperties(jt,{webkitRelativePath:{writable:!0}}),jt.webkitRelativePath=It.fullPath.replace(/^\//,""),Object.defineProperties(jt,{webkitRelativePath:{writable:!1}})),Ft(jt)):Ft(null)})}));case 1:case"end":return xt.stop()}},Li)})),Qe.apply(this,arguments)},dn=function(Li){return Qe.apply(this,arguments)},Be=function(){return Be=(0,Ge.Z)((0,ie.Z)().mark(function Li(It){var Ct,xt,Ft,jt,Mt;return(0,ie.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:Ct=It.createReader(),xt=[];case 2:return Fe.next=5,new Promise(function(Se){Ct.readEntries(Se,function(){return Se([])})});case 5:if(Ft=Fe.sent,jt=Ft.length,jt){Fe.next=9;break}return Fe.abrupt("break",12);case 9:for(Mt=0;MtMt?xt-(Ft-Mt):xt+(Ft-jt)}function gt(It,Ct,xt){var Ft=It.length,jt=Ct.length,Mt,Ut;if(Ft===0&&jt===0)return null;Ft2&&arguments[2]!==void 0?arguments[2]:!1,Pe=Se?nn<0&&Fe.current.left||nn>0&&Fe.current.right:nn<0&&Fe.current.top||nn>0&&Fe.current.bottom;return Le&&Pe?(clearTimeout(Mt.current),jt.current=!1):(!Pe||jt.current)&&Ut(),!jt.current&&Pe}};function $t(It,Ct,xt,Ft,jt,Mt,Ut){var Fe=(0,ie.useRef)(0),Se=(0,ie.useRef)(null),nn=(0,ie.useRef)(null),Le=(0,ie.useRef)(!1),Pe=Gt(Ct,xt,Ft,jt);function be(mi,Gn){if(St.Z.cancel(Se.current),!Pe(!1,Gn)){var yi=mi;if(!yi._virtualHandled)yi._virtualHandled=!0;else return;Fe.current+=Gn,nn.current=Gn,zt||yi.preventDefault(),Se.current=(0,St.Z)(function(){var ni=Le.current?10:1;Ut(Fe.current*ni,!1),Fe.current=0})}}function We(mi,Gn){Ut(Gn,!0),zt||mi.preventDefault()}var rn=(0,ie.useRef)(null),Hn=(0,ie.useRef)(null);function vn(mi){if(It){St.Z.cancel(Hn.current),Hn.current=(0,St.Z)(function(){rn.current=null},2);var Gn=mi.deltaX,yi=mi.deltaY,ni=mi.shiftKey,ki=Gn,Ri=yi;(rn.current==="sx"||!rn.current&&ni&&yi&&!Gn)&&(ki=yi,Ri=0,rn.current="sx");var Qi=Math.abs(ki),Ir=Math.abs(Ri);rn.current===null&&(rn.current=Mt&&Qi>Ir?"x":"y"),rn.current==="y"?be(mi,Ri):We(mi,ki)}}function Cn(mi){It&&(Le.current=mi.detail===nn.current)}return[vn,Cn]}function Wt(It,Ct,xt,Ft){var jt=ie.useMemo(function(){return[new Map,[]]},[It,xt.id,Ft]),Mt=(0,ye.Z)(jt,2),Ut=Mt[0],Fe=Mt[1],Se=function(Le){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le,be=Ut.get(Le),We=Ut.get(Pe);if(be===void 0||We===void 0)for(var rn=It.length,Hn=Fe.length;Hn0&&arguments[0]!==void 0?arguments[0]:!1;Le();var rn=function(){var Cn=!1;Fe.current.forEach(function(mi,Gn){if(mi&&mi.offsetParent){var yi=mi.offsetHeight,ni=getComputedStyle(mi),ki=ni.marginTop,Ri=ni.marginBottom,Qi=Re(ki),Ir=Re(Ri),Xi=yi+Qi+Ir;Se.current.get(Gn)!==Xi&&(Se.current.set(Gn,Xi),Cn=!0)}}),Cn&&Ut(function(mi){return mi+1})};if(We)rn();else{nn.current+=1;var Hn=nn.current;Promise.resolve().then(function(){Hn===nn.current&&rn()})}}function be(We,rn){var Hn=It(We),vn=Fe.current.get(Hn);rn?(Fe.current.set(Hn,rn),Pe()):Fe.current.delete(Hn),!vn!=!rn&&(rn?Ct==null||Ct(We):xt==null||xt(We))}return(0,ie.useEffect)(function(){return Le},[]),[be,Pe,Se.current,Mt]}var kn=14/15;function qe(It,Ct,xt){var Ft=(0,ie.useRef)(!1),jt=(0,ie.useRef)(0),Mt=(0,ie.useRef)(0),Ut=(0,ie.useRef)(null),Fe=(0,ie.useRef)(null),Se,nn=function(We){if(Ft.current){var rn=Math.ceil(We.touches[0].pageX),Hn=Math.ceil(We.touches[0].pageY),vn=jt.current-rn,Cn=Mt.current-Hn,mi=Math.abs(vn)>Math.abs(Cn);mi?jt.current=rn:Mt.current=Hn;var Gn=xt(mi,mi?vn:Cn,!1,We);Gn&&We.preventDefault(),clearInterval(Fe.current),Gn&&(Fe.current=setInterval(function(){mi?vn*=kn:Cn*=kn;var yi=Math.floor(mi?vn:Cn);(!xt(mi,yi,!0)||Math.abs(yi)<=.1)&&clearInterval(Fe.current)},16))}},Le=function(){Ft.current=!1,Se()},Pe=function(We){Se(),We.touches.length===1&&!Ft.current&&(Ft.current=!0,jt.current=Math.ceil(We.touches[0].pageX),Mt.current=Math.ceil(We.touches[0].pageY),Ut.current=We.target,Ut.current.addEventListener("touchmove",nn,{passive:!1}),Ut.current.addEventListener("touchend",Le,{passive:!0}))};Se=function(){Ut.current&&(Ut.current.removeEventListener("touchmove",nn),Ut.current.removeEventListener("touchend",Le))},(0,He.Z)(function(){return It&&Ct.current.addEventListener("touchstart",Pe,{passive:!0}),function(){var be;(be=Ct.current)===null||be===void 0||be.removeEventListener("touchstart",Pe),Se(),clearInterval(Fe.current)}},[It])}function on(It){return Math.floor(Math.pow(It,.5))}function gn(It,Ct){var xt="touches"in It?It.touches[0]:It;return xt[Ct?"pageX":"pageY"]-window[Ct?"scrollX":"scrollY"]}function ge(It,Ct,xt){ie.useEffect(function(){var Ft=Ct.current;if(It&&Ft){var jt=!1,Mt,Ut,Fe=function(){St.Z.cancel(Mt)},Se=function be(){Fe(),Mt=(0,St.Z)(function(){xt(Ut),be()})},nn=function(We){if(!(We.target.draggable||We.button!==0)){var rn=We;rn._virtualHandled||(rn._virtualHandled=!0,jt=!0)}},Le=function(){jt=!1,Fe()},Pe=function(We){if(jt){var rn=gn(We,!1),Hn=Ft.getBoundingClientRect(),vn=Hn.top,Cn=Hn.bottom;if(rn<=vn){var mi=vn-rn;Ut=-on(mi),Se()}else if(rn>=Cn){var Gn=rn-Cn;Ut=on(Gn),Se()}else Fe()}};return Ft.addEventListener("mousedown",nn),Ft.ownerDocument.addEventListener("mouseup",Le),Ft.ownerDocument.addEventListener("mousemove",Pe),function(){Ft.removeEventListener("mousedown",nn),Ft.ownerDocument.removeEventListener("mouseup",Le),Ft.ownerDocument.removeEventListener("mousemove",Pe),Fe()}}},[It])}var Xt=10;function Ve(It,Ct,xt,Ft,jt,Mt,Ut,Fe){var Se=ie.useRef(),nn=ie.useState(null),Le=(0,ye.Z)(nn,2),Pe=Le[0],be=Le[1];return(0,He.Z)(function(){if(Pe&&Pe.times=0;uo-=1){var po=jt(Ct[uo]),Do=xt.get(po);if(Do===void 0){mi=!0;break}if(oo-=Do,oo<=0)break}switch(ni){case"top":yi=Ri-vn;break;case"bottom":yi=Qi-Cn+vn;break;default:{var Zo=It.current.scrollTop,Lo=Zo+Cn;RiLo&&(Gn="bottom")}}yi!==null&&Ut(yi),yi!==Pe.lastTop&&(mi=!0)}mi&&be((0,xe.Z)((0,xe.Z)({},Pe),{},{times:Pe.times+1,targetAlign:Gn,lastTop:yi}))}},[Pe,It.current]),function(We){if(We==null){Fe();return}if(St.Z.cancel(Se.current),typeof We=="number")Ut(We);else if(We&&(0,ee.Z)(We)==="object"){var rn,Hn=We.align;"index"in We?rn=We.index:rn=Ct.findIndex(function(mi){return jt(mi)===We.key});var vn=We.offset,Cn=vn===void 0?0:vn;be({times:0,index:rn,offset:Cn,originAlign:Hn})}}}var An=ie.forwardRef(function(It,Ct){var xt=It.prefixCls,Ft=It.rtl,jt=It.scrollOffset,Mt=It.scrollRange,Ut=It.onStartMove,Fe=It.onStopMove,Se=It.onScroll,nn=It.horizontal,Le=It.spinSize,Pe=It.containerSize,be=It.style,We=It.thumbStyle,rn=It.showScrollBar,Hn=ie.useState(!1),vn=(0,ye.Z)(Hn,2),Cn=vn[0],mi=vn[1],Gn=ie.useState(null),yi=(0,ye.Z)(Gn,2),ni=yi[0],ki=yi[1],Ri=ie.useState(null),Qi=(0,ye.Z)(Ri,2),Ir=Qi[0],Xi=Qi[1],Rr=!Ft,wo=ie.useRef(),oo=ie.useRef(),uo=ie.useState(rn),po=(0,ye.Z)(uo,2),Do=po[0],Zo=po[1],Lo=ie.useRef(),Vo=function(){rn===!0||rn===!1||(clearTimeout(Lo.current),Zo(!0),Lo.current=setTimeout(function(){Zo(!1)},3e3))},Lt=Mt-Pe||0,yn=Pe-Le||0,Dn=ie.useMemo(function(){if(jt===0||Lt===0)return 0;var ln=jt/Lt;return ln*yn},[jt,Lt,yn]),Lr=function(Wi){Wi.stopPropagation(),Wi.preventDefault()},vr=ie.useRef({top:Dn,dragging:Cn,pageY:ni,startTop:Ir});vr.current={top:Dn,dragging:Cn,pageY:ni,startTop:Ir};var Vi=function(Wi){mi(!0),ki(gn(Wi,nn)),Xi(vr.current.top),Ut(),Wi.stopPropagation(),Wi.preventDefault()};ie.useEffect(function(){var ln=function(Nn){Nn.preventDefault()},Wi=wo.current,Gi=oo.current;return Wi.addEventListener("touchstart",ln,{passive:!1}),Gi.addEventListener("touchstart",Vi,{passive:!1}),function(){Wi.removeEventListener("touchstart",ln),Gi.removeEventListener("touchstart",Vi)}},[]);var Jr=ie.useRef();Jr.current=Lt;var mo=ie.useRef();mo.current=yn,ie.useEffect(function(){if(Cn){var ln,Wi=function(Nn){var bi=vr.current,wr=bi.dragging,Ko=bi.pageY,Si=bi.startTop;St.Z.cancel(ln);var qt=wo.current.getBoundingClientRect(),Ce=Pe/(nn?qt.width:qt.height);if(wr){var Jn=(gn(Nn,nn)-Ko)*Ce,Qn=Si;!Rr&&nn?Qn-=Jn:Qn+=Jn;var Ze=Jr.current,qn=mo.current,Rn=qn?Qn/qn:0,zn=Math.ceil(Rn*Ze);zn=Math.max(zn,0),zn=Math.min(zn,Ze),ln=(0,St.Z)(function(){Se(zn,nn)})}},Gi=function(){mi(!1),Fe()};return window.addEventListener("mousemove",Wi,{passive:!0}),window.addEventListener("touchmove",Wi,{passive:!0}),window.addEventListener("mouseup",Gi,{passive:!0}),window.addEventListener("touchend",Gi,{passive:!0}),function(){window.removeEventListener("mousemove",Wi),window.removeEventListener("touchmove",Wi),window.removeEventListener("mouseup",Gi),window.removeEventListener("touchend",Gi),St.Z.cancel(ln)}}},[Cn]),ie.useEffect(function(){return Vo(),function(){clearTimeout(Lo.current)}},[jt]),ie.useImperativeHandle(Ct,function(){return{delayHidden:Vo}});var Je="".concat(xt,"-scrollbar"),$e={position:"absolute",visibility:Do?null:"hidden"},Te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return nn?($e.height=8,$e.left=0,$e.right=0,$e.bottom=0,Te.height="100%",Te.width=Le,Rr?Te.left=Dn:Te.right=Dn):($e.width=8,$e.top=0,$e.bottom=0,Rr?$e.right=0:$e.left=0,Te.width="100%",Te.height=Le,Te.top=Dn),ie.createElement("div",{ref:wo,className:je()(Je,(0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(Je,"-horizontal"),nn),"".concat(Je,"-vertical"),!nn),"".concat(Je,"-visible"),Do)),style:(0,xe.Z)((0,xe.Z)({},$e),be),onMouseDown:Lr,onMouseMove:Vo},ie.createElement("div",{ref:oo,className:je()("".concat(Je,"-thumb"),(0,me.Z)({},"".concat(Je,"-thumb-moving"),Cn)),style:(0,xe.Z)((0,xe.Z)({},Te),We),onMouseDown:Vi}))}),Bn=An,Be=20;function dn(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xt=It/Ct*It;return isNaN(xt)&&(xt=0),xt=Math.max(xt,Be),Math.floor(xt)}var Qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],On=[],we={overflowY:"auto",overflowAnchor:"none"};function ue(It,Ct){var xt=It.prefixCls,Ft=xt===void 0?"rc-virtual-list":xt,jt=It.className,Mt=It.height,Ut=It.itemHeight,Fe=It.fullHeight,Se=Fe===void 0?!0:Fe,nn=It.style,Le=It.data,Pe=It.children,be=It.itemKey,We=It.virtual,rn=It.direction,Hn=It.scrollWidth,vn=It.component,Cn=vn===void 0?"div":vn,mi=It.onScroll,Gn=It.onVirtualScroll,yi=It.onVisibleChange,ni=It.innerProps,ki=It.extraRender,Ri=It.styles,Qi=It.showScrollBar,Ir=Qi===void 0?"optional":Qi,Xi=(0,Ht.Z)(It,Qe),Rr=ie.useCallback(function(un){return typeof be=="function"?be(un):un==null?void 0:un[be]},[be]),wo=Ke(Rr,null,null),oo=(0,ye.Z)(wo,4),uo=oo[0],po=oo[1],Do=oo[2],Zo=oo[3],Lo=!!(We!==!1&&Mt&&Ut),Vo=ie.useMemo(function(){return Object.values(Do.maps).reduce(function(un,Vn){return un+Vn},0)},[Do.id,Do.maps]),Lt=Lo&&Le&&(Math.max(Ut*Le.length,Vo)>Mt||!!Hn),yn=rn==="rtl",Dn=je()(Ft,(0,me.Z)({},"".concat(Ft,"-rtl"),yn),jt),Lr=Le||On,vr=(0,ie.useRef)(),Vi=(0,ie.useRef)(),Jr=(0,ie.useRef)(),mo=(0,ie.useState)(0),Je=(0,ye.Z)(mo,2),$e=Je[0],Te=Je[1],ln=(0,ie.useState)(0),Wi=(0,ye.Z)(ln,2),Gi=Wi[0],Kr=Wi[1],Nn=(0,ie.useState)(!1),bi=(0,ye.Z)(Nn,2),wr=bi[0],Ko=bi[1],Si=function(){Ko(!0)},qt=function(){Ko(!1)},Ce={getKey:Rr};function Jn(un){Te(function(Vn){var Xn;typeof un=="function"?Xn=un(Vn):Xn=un;var Mn=ur(Xn);return vr.current.scrollTop=Mn,Mn})}var Qn=(0,ie.useRef)({start:0,end:Lr.length}),Ze=(0,ie.useRef)(),qn=mt(Lr,Rr),Rn=(0,ye.Z)(qn,1),zn=Rn[0];Ze.current=zn;var Pi=ie.useMemo(function(){if(!Lo)return{scrollHeight:void 0,start:0,end:Lr.length-1,offset:void 0};if(!Lt){var un;return{scrollHeight:((un=Vi.current)===null||un===void 0?void 0:un.offsetHeight)||0,start:0,end:Lr.length-1,offset:void 0}}for(var Vn=0,Xn,Mn,Yn,In=Lr.length,At=0;At=$e&&Xn===void 0&&(Xn=At,Mn=Vn),pe>$e+Mt&&Yn===void 0&&(Yn=At),Vn=pe}return Xn===void 0&&(Xn=0,Mn=0,Yn=Math.ceil(Mt/Ut)),Yn===void 0&&(Yn=Lr.length-1),Yn=Math.min(Yn+1,Lr.length-1),{scrollHeight:Vn,start:Xn,end:Yn,offset:Mn}},[Lt,Lo,$e,Lr,Zo,Mt]),ti=Pi.scrollHeight,ii=Pi.start,Fi=Pi.end,yr=Pi.offset;Qn.current.start=ii,Qn.current.end=Fi,ie.useLayoutEffect(function(){var un=Do.getRecord();if(un.size===1){var Vn=Array.from(un.keys())[0],Xn=un.get(Vn),Mn=Lr[ii];if(Mn&&Xn===void 0){var Yn=Rr(Mn);if(Yn===Vn){var In=Do.get(Vn),At=In-Ut;Jn(function(ne){return ne+At})}}}Do.resetRecord()},[ti]);var ir=ie.useState({width:0,height:Mt}),Ln=(0,ye.Z)(ir,2),vi=Ln[0],mr=Ln[1],br=function(Vn){mr({width:Vn.offsetWidth,height:Vn.offsetHeight})},to=(0,ie.useRef)(),Ee=(0,ie.useRef)(),Mi=ie.useMemo(function(){return dn(vi.width,Hn)},[vi.width,Hn]),Ki=ie.useMemo(function(){return dn(vi.height,ti)},[vi.height,ti]),hi=ti-Mt,xr=(0,ie.useRef)(hi);xr.current=hi;function ur(un){var Vn=un;return Number.isNaN(xr.current)||(Vn=Math.min(Vn,xr.current)),Vn=Math.max(Vn,0),Vn}var Cr=$e<=0,Nr=$e>=hi,zr=Gi<=0,Qr=Gi>=Hn,an=Gt(Cr,Nr,zr,Qr),vo=function(){return{x:yn?-Gi:Gi,y:$e}},sn=(0,ie.useRef)(vo()),Zi=(0,Nt.zX)(function(un){if(Gn){var Vn=(0,xe.Z)((0,xe.Z)({},vo()),un);(sn.current.x!==Vn.x||sn.current.y!==Vn.y)&&(Gn(Vn),sn.current=Vn)}});function jr(un,Vn){var Xn=un;Vn?((0,Ge.flushSync)(function(){Kr(Xn)}),Zi()):Jn(Xn)}function Tr(un){var Vn=un.currentTarget.scrollTop;Vn!==$e&&Jn(Vn),mi==null||mi(un),Zi()}var Fo=function(Vn){var Xn=Vn,Mn=Hn?Hn-vi.width:0;return Xn=Math.max(Xn,0),Xn=Math.min(Xn,Mn),Xn},Gr=(0,Nt.zX)(function(un,Vn){Vn?((0,Ge.flushSync)(function(){Kr(function(Xn){var Mn=Xn+(yn?-un:un);return Fo(Mn)})}),Zi()):Jn(function(Xn){var Mn=Xn+un;return Mn})}),Sr=$t(Lo,Cr,Nr,zr,Qr,!!Hn,Gr),bo=(0,ye.Z)(Sr,2),Ne=bo[0],cn=bo[1];qe(Lo,vr,function(un,Vn,Xn,Mn){var Yn=Mn;return an(un,Vn,Xn)?!1:!Yn||!Yn._virtualHandled?(Yn&&(Yn._virtualHandled=!0),Ne({preventDefault:function(){},deltaX:un?Vn:0,deltaY:un?0:Vn}),!0):!1}),ge(Lt,vr,function(un){Jn(function(Vn){return Vn+un})}),(0,He.Z)(function(){function un(Xn){var Mn=Cr&&Xn.detail<0,Yn=Nr&&Xn.detail>0;Lo&&!Mn&&!Yn&&Xn.preventDefault()}var Vn=vr.current;return Vn.addEventListener("wheel",Ne,{passive:!1}),Vn.addEventListener("DOMMouseScroll",cn,{passive:!0}),Vn.addEventListener("MozMousePixelScroll",un,{passive:!1}),function(){Vn.removeEventListener("wheel",Ne),Vn.removeEventListener("DOMMouseScroll",cn),Vn.removeEventListener("MozMousePixelScroll",un)}},[Lo,Cr,Nr]),(0,He.Z)(function(){if(Hn){var un=Fo(Gi);Kr(un),Zi({x:un})}},[vi.width,Hn]);var Ae=function(){var Vn,Xn;(Vn=to.current)===null||Vn===void 0||Vn.delayHidden(),(Xn=Ee.current)===null||Xn===void 0||Xn.delayHidden()},Dt=Ve(vr,Lr,Do,Ut,Rr,function(){return po(!0)},Jn,Ae);ie.useImperativeHandle(Ct,function(){return{nativeElement:Jr.current,getScrollInfo:vo,scrollTo:function(Vn){function Xn(Mn){return Mn&&(0,ee.Z)(Mn)==="object"&&("left"in Mn||"top"in Mn)}Xn(Vn)?(Vn.left!==void 0&&Kr(Fo(Vn.left)),Dt(Vn.top)):Dt(Vn)}}}),(0,He.Z)(function(){if(yi){var un=Lr.slice(ii,Fi+1);yi(un,Lr)}},[ii,Fi,Lr]);var bn=Wt(Lr,Rr,Do,Ut),si=ki==null?void 0:ki({start:ii,end:Fi,virtual:Lt,offsetX:Gi,offsetY:yr,rtl:yn,getSize:bn}),Oi=ct(Lr,ii,Fi,Hn,Gi,uo,Pe,Ce),Ai=null;Mt&&(Ai=(0,xe.Z)((0,me.Z)({},Se?"height":"maxHeight",Mt),we),Lo&&(Ai.overflowY="hidden",Hn&&(Ai.overflowX="hidden"),wr&&(Ai.pointerEvents="none")));var gi={};return yn&&(gi.dir="rtl"),ie.createElement("div",(0,Tt.Z)({ref:Jr,style:(0,xe.Z)((0,xe.Z)({},nn),{},{position:"relative"}),className:Dn},gi,Xi),ie.createElement(ve.Z,{onResize:br},ie.createElement(Cn,{className:"".concat(Ft,"-holder"),style:Ai,ref:vr,onScroll:Tr,onMouseEnter:Ae},ie.createElement(nt,{prefixCls:Ft,height:ti,offsetX:Gi,offsetY:yr,scrollWidth:Hn,onInnerResize:po,ref:Vi,innerProps:ni,rtl:yn,extra:si},Oi))),Lt&&ti>Mt&&ie.createElement(Bn,{ref:to,prefixCls:Ft,scrollOffset:$e,scrollRange:ti,rtl:yn,onScroll:jr,onStartMove:Si,onStopMove:qt,spinSize:Ki,containerSize:vi.height,style:Ri==null?void 0:Ri.verticalScrollBar,thumbStyle:Ri==null?void 0:Ri.verticalScrollBarThumb,showScrollBar:Ir}),Lt&&Hn>vi.width&&ie.createElement(Bn,{ref:Ee,prefixCls:Ft,scrollOffset:Gi,scrollRange:Hn,rtl:yn,onScroll:jr,onStartMove:Si,onStopMove:qt,spinSize:Mi,containerSize:vi.width,horizontal:!0,style:Ri==null?void 0:Ri.horizontalScrollBar,thumbStyle:Ri==null?void 0:Ri.horizontalScrollBarThumb,showScrollBar:Ir}))}var Xe=ie.forwardRef(ue);Xe.displayName="List";var di=Xe,Li=di},25510:function(Wn){"use strict";Wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGdTIEALDuZe9H3oEBQICgQFAgK7BEKBGDZI4yOYQYFggJBgaBAUGAnUyAAy07mXvQ9KBAUCAoEBYICe4QCAVj2CKNjmEGBoEBQICgQFNjJFAjAspO5F30PCgQFggJBgaDAHqFAAJY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b1TRNXbfJAJrWdKeW6CViq+lDVpuEAWMAQV15xhZ177tn27e98x16byyF0fUBiNhaCvo3IQUksMXWqHfutb9huu32gPwHcaA6sm79l56UXX7a777orrLjGTxhnv/7VGbbFVlva6EVG2+tz2J3TFwvCh/iYESPGBBdReHzWXFtkLOf99OlsgNTzzzxvvzj3ZPvhKT+y+/5yv7340qthN82c2XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87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9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/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I2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Wn,ai,Ot){"use strict";Wn.exports=Ot.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Wn){"use strict";Wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNel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Eh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Wn,ai,Ot){"use strict";Ot.d(ai,{Z:function(){return je}});const Tt=ve=>typeof ve=="object"&&ve!=null&&ve.nodeType===1,ee=(ve,Nt)=>(!Nt||ve!=="hidden")&&ve!=="visible"&&ve!=="clip",xe=(ve,Nt)=>{if(ve.clientHeight{const Ge=(bt=>{if(!bt.ownerDocument||!bt.ownerDocument.defaultView)return null;try{return bt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(ie);return!!Ge&&(Ge.clientHeightbtNt||bt>ve&&nt=Nt&&et>=He?bt-ve-ie:nt>Nt&&etHe?nt-Nt+Ge:0,ye=ve=>{const Nt=ve.parentElement;return Nt==null?ve.getRootNode().host||null:Nt},Ht=(ve,Nt)=>{var He,ie,Ge,bt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:ct,boundary:lt,skipOverflowHiddenElements:gt}=Nt,mt=typeof lt=="function"?lt:Bn=>Bn!==lt;if(!Tt(ve))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,kt=[];let zt=ve;for(;Tt(zt)&&mt(zt);){if(zt=ye(zt),zt===St){kt.push(zt);break}zt!=null&&zt===document.body&&xe(zt)&&!xe(document.documentElement)||zt!=null&&xe(zt,gt)&&kt.push(zt)}const Gt=(ie=(He=window.visualViewport)==null?void 0:He.width)!=null?ie:innerWidth,$t=(bt=(Ge=window.visualViewport)==null?void 0:Ge.height)!=null?bt:innerHeight,{scrollX:Wt,scrollY:Jt}=window,{height:de,width:le,top:De,right:Re,bottom:Ke,left:kn}=ve.getBoundingClientRect(),{top:qe,right:on,bottom:gn,left:ge}=(Bn=>{const Be=window.getComputedStyle(Bn);return{top:parseFloat(Be.scrollMarginTop)||0,right:parseFloat(Be.scrollMarginRight)||0,bottom:parseFloat(Be.scrollMarginBottom)||0,left:parseFloat(Be.scrollMarginLeft)||0}})(ve);let Xt=et==="start"||et==="nearest"?De-qe:et==="end"?Ke+gn:De+de/2-qe+gn,Ve=ct==="center"?kn+le/2-ge+on:ct==="end"?Re+on:kn-ge;const An=[];for(let Bn=0;Bn=0&&kn>=0&&Ke<=$t&&Re<=Gt&&(Be===St&&!xe(Be)||De>=On&&Ke<=ue&&kn>=Xe&&Re<=we))return An;const di=getComputedStyle(Be),Li=parseInt(di.borderLeftWidth,10),It=parseInt(di.borderTopWidth,10),Ct=parseInt(di.borderRightWidth,10),xt=parseInt(di.borderBottomWidth,10);let Ft=0,jt=0;const Mt="offsetWidth"in Be?Be.offsetWidth-Be.clientWidth-Li-Ct:0,Ut="offsetHeight"in Be?Be.offsetHeight-Be.clientHeight-It-xt:0,Fe="offsetWidth"in Be?Be.offsetWidth===0?0:Qe/Be.offsetWidth:0,Se="offsetHeight"in Be?Be.offsetHeight===0?0:dn/Be.offsetHeight:0;if(St===Be)Ft=et==="start"?Xt:et==="end"?Xt-$t:et==="nearest"?me(Jt,Jt+$t,$t,It,xt,Jt+Xt,Jt+Xt+de,de):Xt-$t/2,jt=ct==="start"?Ve:ct==="center"?Ve-Gt/2:ct==="end"?Ve-Gt:me(Wt,Wt+Gt,Gt,Li,Ct,Wt+Ve,Wt+Ve+le,le),Ft=Math.max(0,Ft+Jt),jt=Math.max(0,jt+Wt);else{Ft=et==="start"?Xt-On-It:et==="end"?Xt-ue+xt+Ut:et==="nearest"?me(On,ue,dn,It,xt+Ut,Xt,Xt+de,de):Xt-(On+dn/2)+Ut/2,jt=ct==="start"?Ve-Xe-Li:ct==="center"?Ve-(Xe+Qe/2)+Mt/2:ct==="end"?Ve-we+Ct+Mt:me(Xe,we,Qe,Li,Ct+Mt,Ve,Ve+le,le);const{scrollLeft:nn,scrollTop:Le}=Be;Ft=Se===0?0:Math.max(0,Math.min(Le+Ft/Se,Be.scrollHeight-dn/Se+Ut)),jt=Fe===0?0:Math.max(0,Math.min(nn+jt/Fe,Be.scrollWidth-Qe/Fe+Mt)),Xt+=Le-Ft,Ve+=nn-jt}An.push({el:Be,top:Ft,left:jt})}return An},ae=ve=>ve===!1?{block:"end",inline:"nearest"}:(Nt=>Nt===Object(Nt)&&Object.keys(Nt).length!==0)(ve)?ve:{block:"start",inline:"nearest"};function je(ve,Nt){if(!ve.isConnected||!(Ge=>{let bt=Ge;for(;bt&&bt.parentNode;){if(bt.parentNode===document)return!0;bt=bt.parentNode instanceof ShadowRoot?bt.parentNode.host:bt.parentNode}return!1})(ve))return;const He=(Ge=>{const bt=window.getComputedStyle(Ge);return{top:parseFloat(bt.scrollMarginTop)||0,right:parseFloat(bt.scrollMarginRight)||0,bottom:parseFloat(bt.scrollMarginBottom)||0,left:parseFloat(bt.scrollMarginLeft)||0}})(ve);if((Ge=>typeof Ge=="object"&&typeof Ge.behavior=="function")(Nt))return Nt.behavior(Ht(ve,Nt));const ie=typeof Nt=="boolean"||Nt==null?void 0:Nt.behavior;for(const{el:Ge,top:bt,left:nt}of Ht(ve,ae(Nt))){const et=bt-He.top+He.bottom,ct=nt-He.left+He.right;Ge.scroll({top:et,left:ct,behavior:ie})}}}}]);