(self.webpackChunk=self.webpackChunk||[]).push([[3779],{37036:function(){"use strict"},95625:function(){"use strict"},88010:function(mn,gn){"use strict";gn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},43809:function(mn,gn){"use strict";gn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},38476:function(){"use strict"},74413:function(){"use strict";function mn(ft,z,tt,at){tt===void 0&&(tt=0),at===void 0&&(at=1/0),this._name=ft,this._defaultValue=z,this._minimum=tt,this._maximum=at}Object.defineProperty(mn.prototype,"name",{get:function(){return this._name},set:function(ft){if(typeof ft!="string"||ft==="")throw new Error("Shape name must be a valid string.");this._name=ft}}),Object.defineProperty(mn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ft){if(typeof ft!="number"||isNaN(ft))throw new Error("The default value must be a real number, not: "+ft);this._defaultValue=ft}}),Object.defineProperty(mn.prototype,"minimum",{get:function(){return this._minimum},set:function(ft){if(typeof ft!="number"||isNaN(ft))throw new Error("Minimum must be a real number, not: "+ft);this._minimum=ft}}),Object.defineProperty(mn.prototype,"maximum",{get:function(){return this._maximum},set:function(ft){if(typeof ft!="number"||isNaN(ft))throw new Error("Maximum must be a real number, not: "+ft);this._maximum=ft}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ft,z){var tt=go.Shape._FigureParameters[ft];return tt?tt[z]:null},go.Shape.setFigureParameter=function(ft,z,tt){if(!(tt instanceof mn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValuett.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var at=go.Shape._FigureParameters[ft];at||(at=[],go.Shape._FigureParameters[ft]=at),at[z]=tt};var gn=[];function he(ft,z){var tt=gn.pop();return tt===void 0?new go.Point(ft,z):(tt.x=ft,tt.y=z,tt)}function ae(){var ft=gn.pop();return ft===void 0?new go.Point:ft}function Re(ft){gn.push(ft)}function ot(ft,z,tt,at,it,lt,ut,dt,Pt){Pt||(Pt=new go.Point);var At=ft-tt,Dt=it-ut,Ft=NaN,jt=NaN;if(At===0)if(Dt===0)ft===tt&&(Ft=ft,jt=z);else{var Nt=(lt-dt)/Dt,Gt=lt-Nt*it;Ft=ft,jt=Nt*Ft+Gt}else if(Dt===0){var Ht=(z-at)/At,Yt=z-Ht*ft;Ft=it,jt=Ht*Ft+Yt}else{var Ht=(z-at)/At,Nt=(lt-dt)/Dt,Yt=z-Ht*ft,Gt=lt-Nt*it;Ft=(Gt-Yt)/(Ht-Nt),jt=Ht*Ft+Yt}return Pt.x=Ft,Pt.y=jt,Pt}function zt(ft,z,tt,at,it,lt,ut,dt,Pt,At,Dt,Ft,jt,Nt){var Gt=1-Pt,Ht=Pt,Yt=ft*Gt+tt*Ht,Ut=z*Gt+at*Ht,Vt=tt*Gt+it*Ht,oe=at*Gt+lt*Ht,se=it*Gt+ut*Ht,de=lt*Gt+dt*Ht,Se=Yt*Gt+Vt*Ht,Qt=Ut*Gt+oe*Ht,ne=Vt*Gt+se*Ht,ye=oe*Gt+de*Ht,we=Se*Gt+ne*Ht,be=Qt*Gt+ye*Ht;At.x=Yt,At.y=Ut,Dt.x=Se,Dt.y=Qt,Ft.x=we,Ft.y=be,jt.x=ne,jt.y=ye,Nt.x=se,Nt.y=de}var Bt=new go.Spot(.156,.156),vt=new go.Spot(.844,.844),gt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new mn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=5),at=Math.min(at,z/3),at=Math.min(at,tt/3);var it=at*gt,lt=new go.Geometry().add(new go.PathFigure(at,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-at,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,at,z-it,0,z,it)).add(new go.PathSegment(go.PathSegment.Line,z,tt-at)).add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z,tt-it,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,at,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-at,it,tt,0,tt-it)).add(new go.PathSegment(go.PathSegment.Line,0,at)).add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,it,it,0).close()));return it>1&&(lt.spot1=new go.Spot(0,0,it,it),lt.spot2=new go.Spot(1,1,-it,-it)),lt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=0,at.startY=tt/2,at.endX=z,at.endY=tt/2,at}),go.Shape.defineFigureGenerator("LineV",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=z/2,at.startY=0,at.endX=z/2,at.endY=tt,at}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,tt/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*z,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*z,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ft,z,tt){var at=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(at*z,(1-at)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,at*tt)).add(new go.PathSegment(go.PathSegment.Move,at*z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,(1-at)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,z,tt/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(ft,z,tt){var at=z/2,it=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,at,at,at,at).close()));return it.spot1=Bt,it.spot2=vt,it.defaultStretch=go.GraphObject.Uniform,it}),go.Shape.defineFigureGenerator("Line1",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=0,at.startY=0,at.endX=z,at.endY=tt,at}),go.Shape.defineFigureGenerator("Line2",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=z,at.startY=0,at.endX=0,at.endY=tt,at}),go.Shape.defineFigureGenerator("Curve1",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,tt,gt*z,0,z,(1-gt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,tt,0,gt*tt,(1-gt)*z,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,z,gt*tt,gt*z,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-gt)*z,0,0,(1-gt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new mn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)?at=.1:at<-1?at=-1:at>1&&(at=1);var it=Math.abs(at)*z;if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),itz&&(at=z);var it=Math.abs(at);if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),it.5&&(at=.5);var it=Math.abs(at)*z;if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),itz&&(at=z/2);var it=Math.abs(at);if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),itz&&(at=z/2);var it=Math.abs(at);if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())):lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),it0&&(ut.add(new go.PathSegment(go.PathSegment.Move,z/2+dt,z/2)),ut.add(new go.PathSegment(go.PathSegment.Arc,0,-360,it,it,dt,dt).close())),lt.spot1=Bt,lt.spot2=vt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Cloud",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*tt,-.09239631*z,.07836421*tt,.1406031*z,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*tt,.2450511*z,-.00697547*tt,.3776197*z,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*tt,.4539471*z,0,.6066018*z,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*tt,.6914277*z,-.01904177*tt,.8921095*z,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*tt,1.036446*z,.04105738*tt,1.020377*z,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*tt,1.04448*z,.360238*tt,.992256*z,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*tt,1.032337*z,.5771781*tt,1.018411*z,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*tt,1.028411*z,.9571472*tt,.8556702*z,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*tt,.7431877*z,1.009325*tt,.5624123*z,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*tt,.4820677*z,1.031761*tt,.3030112*z,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*tt,.2329994*z,1.01518*tt,.03213784*z,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*tt,-.02812061*z,.9032597*tt,-.01205169*z,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*tt,-.01812061*z,.6089503*tt,-.00606892*z,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*tt,-.01606892*z,.3892545*tt,-.01205169*z,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ft,z,tt){var at=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(at*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,z,(1-at)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,tt)).add(new go.PathSegment(go.PathSegment.Line,at*z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-at)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,at*tt).close())).setSpots(at/2,at/2,1-at/2,1-at/2)}),go.Shape.setFigureParameter("Pie",0,new mn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new mn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ft,z,tt){var at=ft?ft.parameter1:NaN,it=ft?ft.parameter2:NaN;isNaN(at)&&(at=0),isNaN(it)&&(it=315);var lt=at%360;lt<0&&(lt+=360);var ut=it%360,dt=Math.min(z,tt)/2;return new go.Geometry().add(new go.PathFigure(dt,dt).add(new go.PathSegment(go.PathSegment.Arc,lt,ut,dt,dt,dt,dt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ft,z,tt){var at=gt/Math.SQRT2*.5,it=Math.SQRT2/2,lt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,it*z,lt*tt,z,(1-at)*tt,(it+at)*z,(lt+at)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new mn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=30);var it=Math.min(at,z)/2,lt=z/2,ut=tt/2;return new go.Geometry().add(new go.PathFigure(lt-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,lt+it,0)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut-it).close()))}),go.Shape.setFigureParameter("ThinCross",0,new mn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=10);var it=Math.min(at,z)/2,lt=z/2,ut=tt/2;return new go.Geometry().add(new go.PathFigure(lt-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,lt+it,0)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut-it).close()))}),go.Shape.setFigureParameter("ThickX",0,new mn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ft,z,tt){var at=ft?ft.parameter1:NaN;if((isNaN(at)||at<0)&&(at=30),z===0||tt===0){var it=new go.Geometry(go.Geometry.Rectangle);return it.startX=0,it.startY=0,it.endX=z,it.endY=tt,it}else{var lt=z/2,ut=tt/2,dt=Math.atan2(tt,z),Pt=at-Math.min(Math.cos(dt)*at/2,lt),At=at-Math.min(Math.sin(dt)*at/2,ut),it=new go.Geometry,Dt=new go.PathFigure(Pt,0,!0);return it.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,lt,.2*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,z-Pt,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,z,At)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,z,tt-At)),Dt.add(new go.PathSegment(go.PathSegment.Line,z-Pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,lt,.8*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,Pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt-At)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),it}}),go.Shape.setFigureParameter("ThinX",0,new mn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=10);var it=new go.Geometry,lt=new go.PathFigure(.1*z,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),it}),go.Shape.setFigureParameter("SquareIBeam",0,new mn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.2);var it=new go.Geometry,lt=new go.PathFigure(0,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5+at/2)*z,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5+at/2)*z,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5-at/2)*z,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5-at/2)*z,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,at*tt).close()),it}),go.Shape.setFigureParameter("RoundedIBeam",0,new mn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.5);var it=new go.Geometry,lt=new go.PathFigure(0,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,tt,Math.abs(1-at)*z,.25*tt,Math.abs(1-at)*z,.75*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,at*z,.75*tt,at*z,.25*tt).close()),it}),go.Shape.defineFigureGenerator("HalfEllipse",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,gt*z,0,z,(.5-gt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,z,(.5+gt/2)*tt,gt*z,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,z,0,z,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*tt,.5*z,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*z,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*tt,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*tt,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,.5*tt,.9*z,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,.6*z,.2*tt,z,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*tt,z,.8*tt,.6*z,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,tt,.5*z,.75*tt,.55*z,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*z,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*tt,.45*z,.95*tt,.5*z,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*z,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*tt,0,.25*tt,.4*z,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.4*z,.6*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,tt,.5*z,.75*tt,.45*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*tt,.55*z,.95*tt,.5*z,.75*tt));var lt=.2,ut=.3,dt=0,Pt=lt*gt;return it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5+lt+dt)*tt,(.5-lt+ut)*z,(.5+Pt+dt)*tt,(.5-Pt+ut)*z,(.5+lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+ut)*z,(.5+dt)*tt,(.5+Pt+ut)*z,(.5+lt+dt)*tt,(.5+lt+ut)*z,(.5+Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5-lt+dt)*tt,(1-.5+lt+ut)*z,(.5-Pt+dt)*tt,(.5+Pt+ut)*z,(.5-lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*tt,(.5-Pt+ut)*z,(.5-lt+dt)*tt,(.5-lt+ut+.05)*z,(.5-Pt+dt-.02)*tt)),lt=.2,ut=0,dt=-.3,Pt=lt*gt,it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+ut)*z,(.5+dt)*tt,(.5+Pt+ut)*z,(.5+lt+dt)*tt,(.5+lt+ut)*z,(.5+Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5-lt+dt)*tt,(1-.5+lt+ut)*z,(.5-Pt+dt)*tt,(.5+Pt+ut)*z,(.5-lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+ut)*z,(.5+dt)*tt,(.5-Pt+ut)*z,(.5-lt+dt)*tt,(.5-lt+ut)*z,(.5-Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Pt+ut)*z,(.5+lt+dt)*tt,(.5-lt+ut)*z,(.5+Pt+dt)*tt,(.5-Pt+ut)*z,(.5+lt+dt)*tt)),lt=.2,ut=-.3,dt=0,Pt=lt*gt,it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5-lt+dt)*tt,(1-.5+lt+ut-.05)*z,(.5-Pt+dt-.02)*tt,(.5+Pt+ut)*z,(.5-lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+ut)*z,(.5+dt)*tt,(.5-Pt+ut)*z,(.5-lt+dt)*tt,(.5-lt+ut)*z,(.5-Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5+lt+dt)*tt,(.5-lt+ut)*z,(.5+Pt+dt)*tt,(.5-Pt+ut)*z,(.5+lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*tt,(.5+Pt+ut)*z,(.5+lt+dt)*tt,(.5+lt+ut)*z,(.5+Pt+dt)*tt).close()),at.setSpots(.06,.33,.93,.68),at}),go.Shape.defineFigureGenerator("YinYang",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.5,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),it.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var lt=.1,ut=.5,dt=.25;return it.add(new go.PathSegment(go.PathSegment.Move,(ut+lt)*z,dt*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ut,tt*dt,lt*z,lt*z).close()),it=new go.PathFigure(z*.5,0,!1),at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),dt=.75,it=new go.PathFigure((ut+lt)*z,dt*tt,!0),at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ut,tt*dt,lt*z,lt*z).close()),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Peace",function(ft,z,tt){var at=.8535533905932737,it=.5*z,lt=.5*tt;return new go.Geometry().add(new go.PathFigure(it,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,it,lt,it,lt)).add(new go.PathSegment(go.PathSegment.Line,it,tt)).add(new go.PathSegment(go.PathSegment.Move,it,lt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,at*tt)).add(new go.PathSegment(go.PathSegment.Move,it,lt)).add(new go.PathSegment(go.PathSegment.Line,at*z,at*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=.5,dt=.5,Pt=new go.PathFigure(ut*z,(dt-lt)*tt);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),lt=.4,it=gt*.4;var At=ae(),Dt=ae(),Ft=ae(),jt=ae();zt(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.42,At,Dt,Ft,jt,jt);var Nt=ae(),Gt=ae(),Ht=ae();zt(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.58,jt,jt,Ht,Nt,Gt);var Yt=ae(),Ut=ae(),Vt=ae();zt(ut,dt+lt,ut-it,dt+lt,ut-lt,dt+it,ut-lt,dt,.42,Yt,Ut,Vt,jt,jt);var oe=ae(),se=ae(),de=ae();return zt(ut,dt+lt,ut-it,dt+lt,ut-lt,dt+it,ut-lt,dt,.58,jt,jt,de,oe,se),Pt.add(new go.PathSegment(go.PathSegment.Move,de.x*z,de.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,oe.x*z,oe.y*tt,se.x*z,se.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft.x*z,Ft.y*tt,At.x*z,At.y*tt,Dt.x*z,Dt.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,de.x*z,de.y*tt).close()),Pt.add(new go.PathSegment(go.PathSegment.Move,Vt.x*z,Vt.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,Ht.x*z,Ht.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,Nt.x*z,Nt.y*tt,Gt.x*z,Gt.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Vt.x*z,Vt.y*tt,Yt.x*z,Yt.y*tt,Ut.x*z,Ut.y*tt).close()),Re(At),Re(Dt),Re(Ft),Re(jt),Re(Nt),Re(Gt),Re(Ht),Re(Yt),Re(Ut),Re(Vt),Re(oe),Re(se),Re(de),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Fragile",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*tt,z,.25*tt,.75*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new mn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=30),at>z&&(at=z);var it=(z-at)/2,lt=it+at;return new go.Geometry().add(new go.PathFigure(lt,.5*tt).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,it,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ft,z,tt){var at=new go.Geometry,it=gt*.4,lt=.4,ut=.5,dt=.5,Pt=ae(),At=ae(),Dt=ae(),Ft=ae(),jt=new go.PathFigure((ut-lt)*z,dt*tt,!1);at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),zt(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.44,Dt,Ft,At,Pt,Pt),jt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*z,At.y*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt));var Nt=he(At.x,At.y);zt(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.56,Pt,Pt,At,Dt,Ft);var Gt=he(At.x,At.y);jt.add(new go.PathSegment(go.PathSegment.Line,(Nt.x*.1+.95*.9)*z,Nt.y*.1*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*z,Nt.y*.1*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),jt.add(new go.PathSegment(go.PathSegment.Line,z,0)),jt.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,(Gt.x*.1+.9)*z,.15*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,(Gt.x*.1+.9)*z,(Gt.y*.1+.05*.9)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,Gt.x*z,Gt.y*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),lt=.35,it=gt*.35;var Ht=new go.PathFigure(ut*z,(dt-lt)*tt,!1);at.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt));var Yt=new go.PathFigure((ut-lt)*z,dt*tt,!1);return at.add(Yt),Re(Pt),Re(At),Re(Dt),Re(Ft),Re(Nt),Re(Gt),at.spot1=new go.Spot(.202,.257),at.spot2=new go.Spot(.792,.739),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("GenderFemale",function(ft,z,tt){var at=new go.Geometry,it=.375,lt=0,ut=-.125,dt=it*gt,Pt=new go.PathFigure((.525+lt)*z,(.5+it+ut)*tt,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+lt)*z,(.5+ut)*tt,(.5+dt+lt)*z,(.5+it+ut)*tt,(.5+it+lt)*z,(.5+dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+lt)*z,(.5-it+ut)*tt,(1-.5+it+lt)*z,(.5-dt+ut)*tt,(.5+dt+lt)*z,(.5-it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+lt)*z,(.5+ut)*tt,(.5-dt+lt)*z,(.5-it+ut)*tt,(.5-it+lt)*z,(.5-dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+lt)*z,(.5+it+ut)*tt,(.5-it+lt)*z,(.5+dt+ut)*tt,(.5-dt+lt)*z,(.5+it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.475*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.525*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*tt).close()),it=.325,lt=0,ut=-.125,dt=it*gt;var Pt=new go.PathFigure((1-.5+it+lt)*z,(.5+ut)*tt,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+lt)*z,(.5+it+ut)*tt,(.5+it+lt)*z,(.5+dt+ut)*tt,(.5+dt+lt)*z,(.5+it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+lt)*z,(.5+ut)*tt,(.5-dt+lt)*z,(.5+it+ut)*tt,(.5-it+lt)*z,(.5+dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+lt)*z,(.5-it+ut)*tt,(.5-it+lt)*z,(.5-dt+ut)*tt,(.5-dt+lt)*z,(.5-it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+lt)*z,(.5+ut)*tt,(.5+dt+lt)*z,(.5-it+ut)*tt,(1-.5+it+lt)*z,(.5-dt+ut)*tt));var Pt=new go.PathFigure((.525+lt)*z,(.5+it+ut)*tt,!1);return at.add(Pt),at.spot1=new go.Spot(.232,.136),at.spot2=new go.Spot(.682,.611),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("LogicImplies",function(ft,z,tt){var at=ft?ft.parameter1:NaN;return isNaN(at)&&(at=.2),new go.Geometry().add(new go.PathFigure((1-at)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ft,z,tt){var at=ft?ft.parameter1:NaN;return isNaN(at)&&(at=.2),new go.Geometry().add(new go.PathFigure((1-at)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,at*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,at*z,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ft,z,tt){var at=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*tt,.5*z,.5*tt)));return at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("LogicTruth",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,z,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ft,z,tt){var at=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,at*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,at*z,at*tt,at*z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,z,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ft,z,tt){var at=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,at*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,at*z,at*tt,at*z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new mn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new mn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=.3);var lt=(1-at)*z,ut=(.5-it/2)*tt,dt=(.5+it/2)*tt,Pt=new go.Geometry,At=new go.PathFigure(0,ut,!0);Pt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),At.add(new go.PathSegment(go.PathSegment.Line,lt,0)),At.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,dt)),At.add(new go.PathSegment(go.PathSegment.Line,0,dt).close()),Pt.spot1=new go.Spot(0,ut/tt);var Dt=ot(0,dt/tt,1,dt/tt,lt/z,1,1,.5,ae());return Pt.spot2=new go.Spot(Dt.x,Dt.y),Re(Dt),Pt}),go.Shape.setFigureParameter("Arrow2",0,new mn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new mn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=30),at>z&&(at=z);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=30),it=Math.min(it,tt/2);var lt=z-at,ut=(tt-it)/2,dt=ut+it,Pt=new go.Geometry,At=new go.PathFigure(0,ut,!0);Pt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),At.add(new go.PathSegment(go.PathSegment.Line,lt,0)),At.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,dt)),At.add(new go.PathSegment(go.PathSegment.Line,0,dt).close()),Pt.spot1=new go.Spot(0,ut/tt);var Dt=ot(0,dt/tt,1,dt/tt,lt/z,1,1,.5,ae());return Pt.spot2=new go.Spot(Dt.x,Dt.y),Re(Dt),Pt}),go.Shape.defineFigureGenerator("Chevron",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("DoubleArrow",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),at}),go.Shape.setFigureParameter("DoubleEndArrow",0,new mn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=(.5-at/2)*tt,lt=(.5+at/2)*tt,ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Pt=ot(0,.5,.3,0,0,it/tt,.1,it/tt,ae());return ut.spot1=new go.Spot(Pt.x,Pt.y),Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,Pt),ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new mn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new mn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=40);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=100);var lt=(tt-at)/2,ut=lt+at,dt=(tt-it)/2,Pt=dt+it;(at>tt||it>tt)&&(it>at?(at=at*tt/it,lt=(tt-at)/2,ut=lt+at,dt=0,Pt=tt):(lt=0,ut=tt,dt=0,Pt=tt));var At=new go.Geometry,Dt=new go.PathFigure(z,.5*tt,!0);At.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,dt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,dt).close());var Ft=ot(0,.5,.3,dt/tt,0,lt/tt,1,lt/tt,ae());return At.spot1=new go.Spot(Ft.x,Ft.y),Ft=ot(.7,Pt/tt,1,.5,0,ut/tt,1,ut/tt,Ft),At.spot2=new go.Spot(Ft.x,Ft.y),Re(Ft),At}),go.Shape.setFigureParameter("IBeamArrow",0,new mn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=(.5-at/2)*tt,lt=(.5+at/2)*tt,ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ut.spot1=new go.Spot(0,it/tt);var Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,ae());return ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("IBeamArrow2",0,new mn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new mn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=40);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=100);var lt=(tt-at)/2,ut=lt+at,dt=(tt-it)/2,Pt=dt+it;(at>tt||it>tt)&&(it>at?(at=at*tt/it,lt=(tt-at)/2,ut=lt+at,dt=0,Pt=tt):(lt=0,ut=tt,dt=0,Pt=tt));var At=new go.Geometry,Dt=new go.PathFigure(z,.5*tt,!0);At.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,dt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,dt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,dt).close()),At.spot1=new go.Spot(0,lt/tt);var Ft=ot(.7,Pt/tt,1,.5,0,ut/tt,1,ut/tt,ae());return At.spot2=new go.Spot(Ft.x,Ft.y),Re(Ft),At}),go.Shape.setFigureParameter("Pointer",0,new mn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.1);var it=new go.Geometry,lt=new go.PathFigure(z,.5*tt,!0);it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),it.spot1=new go.Spot(at,.35);var ut=ot(.2,.65,1,.65,0,1,1,.5,ae());return it.spot2=new go.Spot(ut.x,ut.y),Re(ut),it}),go.Shape.setFigureParameter("RoundedPointer",0,new mn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=new go.Geometry,lt=new go.PathFigure(z,.5*tt,!0);it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,at*z,.75*tt,at*z,.25*tt).close()),it.spot1=new go.Spot(at,.35);var ut=ot(0,.65,1,.65,0,1,1,.5,ae());return it.spot2=new go.Spot(ut.x,ut.y),Re(ut),it}),go.Shape.setFigureParameter("SplitEndArrow",0,new mn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.4);var it=(.5-at/2)*tt,lt=(.5+at/2)*tt,ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ut.spot1=new go.Spot(.2,.3);var Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,ae());return ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("SplitEndArrow2",0,new mn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=50);var it=(tt-at)/2,lt=it+at;at>tt&&(it=0,lt=tt);var ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ut.spot1=new go.Spot(.2,it/tt);var Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,ae());return ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("SquareArrow",0,new mn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.7);var it=new go.Geometry,lt=new go.PathFigure(z,.5*tt,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,0).close()),it.spot1=go.Spot.TopLeft,it.spot2=new go.Spot(at,1),it}),go.Shape.defineFigureGenerator("Cone1",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.1,ut=new go.PathFigure(0,.9*tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.9+lt)*tt,(.5+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-it)*z,tt,0,(.9+lt)*tt).close()),at.spot1=new go.Spot(.25,.5),at.spot2=new go.Spot(.75,.97),at}),go.Shape.defineFigureGenerator("Cone2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.9*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*tt,(1-.85/.9)*z,tt,.85/.9*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var lt=new go.PathFigure(0,.9*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*tt,(1-.85/.9)*z,.8*tt,.85/.9*z,.8*tt)),at.spot1=new go.Spot(.25,.5),at.spot2=new go.Spot(.75,.82),at}),go.Shape.defineFigureGenerator("Cube1",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var lt=new go.PathFigure(.5*z,tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),at.spot1=new go.Spot(0,.3),at.spot2=new go.Spot(.5,.85),at}),go.Shape.defineFigureGenerator("Cube2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.3*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var lt=new go.PathFigure(0,.3*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),at.spot1=new go.Spot(0,.3),at.spot2=new go.Spot(.7,1),at}),go.Shape.defineFigureGenerator("Cylinder1",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,tt/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(0,at,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,gt*at,(.5-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,1*z,at,(.5+lt)*z,0,1*z,gt*at)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-at)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*tt,1*z,tt-gt*at,(.5+lt)*z,1*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-at,(.5-lt)*z,1*tt,0,tt-gt*at)),ut.add(new go.PathSegment(go.PathSegment.Line,0,at));var dt=new go.PathFigure(z,at,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*at,1*z,2*at-gt*at,(.5+lt)*z,2*at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,at,(.5-lt)*z,2*at,0,2*at-gt*at)),it.spot1=new go.Spot(0,0,0,2*at),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,tt/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(0,tt-at,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,at)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,gt*at,(.5-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,at,(.5+lt)*z,0,z,gt*at)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-at)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,tt-gt*at,(.5+lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-at,(.5-lt)*z,tt,0,tt-gt*at));var dt=new go.PathFigure(0,tt-at,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt-2*at,0,tt-at-gt*at,(.5-lt)*z,tt-2*at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z,tt-at,(.5+lt)*z,tt-2*at,z,tt-at-gt*at)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,0,-2*at),it}),go.Shape.defineFigureGenerator("Cylinder3",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,z/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(at,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z-at,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,z-gt*at,0,z,(.5-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z,(.5+lt)*tt,z-gt*at,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,at,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,gt*at,tt,0,(.5+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,(.5-lt)*tt,gt*at,0));var dt=new go.PathFigure(at,0,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,2*at,.5*tt,at+gt*at,0,2*at,(.5-lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,at,tt,2*at,(.5+lt)*tt,at+gt*at,tt)),it.spot1=new go.Spot(0,0,2*at,0),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder4",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,z/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(z-at,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,z-gt*at,0,z,(.5-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z,(.5+lt)*tt,z-gt*at,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,at,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,gt*at,tt,0,(.5+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,(.5-lt)*tt,gt*at,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z-at,0));var dt=new go.PathFigure(z-at,0,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,z-2*at,.5*tt,z-at-gt*at,0,z-2*at,(.5-lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z-2*at,(.5+lt)*tt,z-at-gt*at,tt)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,-2*at,0),it}),go.Shape.defineFigureGenerator("Prism1",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.25*z,.25*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(.25*z,.25*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),at.spot1=new go.Spot(.408,.172),at.spot2=new go.Spot(.833,.662),at}),go.Shape.defineFigureGenerator("Prism2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.25*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(0,tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*tt)),at.spot1=new go.Spot(.25,.5),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("Pyramid1",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var lt=new go.PathFigure(.5*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),at.spot1=new go.Spot(.25,.367),at.spot2=new go.Spot(.75,.875),at}),go.Shape.defineFigureGenerator("Pyramid2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var lt=new go.PathFigure(.5*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),at.spot1=new go.Spot(.25,.367),at.spot2=new go.Spot(.75,.875),at}),go.Shape.defineFigureGenerator("Actor",function(ft,z,tt){var at=new go.Geometry,it=.2,lt=.1,ut=gt*it,dt=gt*lt,Pt=.5,At=.1,Dt=new go.PathFigure(Pt*z,(At+lt)*tt,!0);at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-it)*z,At*tt,(Pt-ut)*z,(At+lt)*tt,(Pt-it)*z,(At+dt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-lt)*tt,(Pt-it)*z,(At-dt)*tt,(Pt-ut)*z,(At-lt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+it)*z,At*tt,(Pt+ut)*z,(At-lt)*tt,(Pt+it)*z,(At-dt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+lt)*tt,(Pt+it)*z,(At+dt)*tt,(Pt+ut)*z,(At+lt)*tt));var Ft=.05,jt=gt*Ft;Pt=.05,At=.25;var Nt=new go.PathFigure(.5*z,.2*tt,!0);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*tt)),Pt=.95,At=.25,Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+Ft)*z,At*tt,(Pt+jt)*z,(At-Ft)*tt,(Pt+Ft)*z,(At-jt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,z,.6*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*tt)),Ft=.025,jt=gt*Ft,Pt=.825,At=.35,Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt+Ft)*z,(At-jt)*tt,(Pt+jt)*z,(At-Ft)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ft)*z,At*tt,(Pt-jt)*z,(At-Ft)*tt,(Pt-Ft)*z,(At-jt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.55*z,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*tt)),Ft=.05,jt=gt*Ft,Pt=.5,At=.7,Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt+Ft)*z,(At-jt)*tt,(Pt+jt)*z,(At-Ft)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ft)*z,At*tt,(Pt-jt)*z,(At-Ft)*tt,(Pt-Ft)*z,(At-jt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.45*z,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*tt)),Ft=.025,jt=gt*Ft,Pt=.175,At=.35,Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt+Ft)*z,(At-jt)*tt,(Pt+jt)*z,(At-Ft)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ft)*z,At*tt,(Pt-jt)*z,(At-Ft)*tt,(Pt-Ft)*z,(At-jt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Ft=.05,jt=gt*Ft,Pt=.05,At=.25,Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt-Ft)*z,(At-jt)*tt,(Pt-jt)*z,(At-Ft)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*tt)),at.spot1=new go.Spot(.2,.2),at.spot2=new go.Spot(.8,.65),at}),go.Shape.setFigureParameter("Card",0,new mn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.2);var it=new go.Geometry,lt=new go.PathFigure(z,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,0).close()),it.spot1=new go.Spot(0,at),it.spot2=go.Spot.BottomRight,it}),go.Shape.defineFigureGenerator("Collate",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt));var lt=new go.PathFigure(.5*z,.5*tt,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),at.spot1=new go.Spot(.25,0),at.spot2=new go.Spot(.75,.25),at}),go.Shape.defineFigureGenerator("CreateRequest",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,it*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,it*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,(1-it)*tt)),at}),go.Shape.defineFigureGenerator("Database",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.1,ut=new go.PathFigure(z,.1*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.9+lt)*tt,(.5+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-it)*z,tt,0,(.9+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-lt)*tt,(.5-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*tt,(.5+it)*z,0,z,(.1-lt)*tt));var dt=new go.PathFigure(z,.1*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*tt,z,(.1+lt)*tt,(.5+it)*z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-it)*z,.2*tt,0,(.1+lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*tt,z,(.2+lt)*tt,(.5+it)*z,.3*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-it)*z,.3*tt,0,(.2+lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,.3*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*tt,z,(.3+lt)*tt,(.5+it)*z,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-it)*z,.4*tt,0,(.3+lt)*tt)),at.spot1=new go.Spot(0,.4),at.spot2=new go.Spot(1,.9),at}),go.Shape.defineFigureGenerator("DataStorage",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,tt,z,0,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*tt,.25*z,.1*tt).close()),at.spot1=new go.Spot(.226,0),at.spot2=new go.Spot(.81,1),at}),go.Shape.defineFigureGenerator("DiskStorage",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.1,ut=new go.PathFigure(z,.1*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.9+lt)*tt,(.5+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-it)*z,tt,0,(.9+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-lt)*tt,(.5-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*tt,(.5+it)*z,0,z,(.1-lt)*tt));var dt=new go.PathFigure(z,.1*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*tt,z,(.1+lt)*tt,(.5+it)*z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-it)*z,.2*tt,0,(.1+lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*tt,z,(.2+lt)*tt,(.5+it)*z,.3*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-it)*z,.3*tt,0,(.2+lt)*tt)),at.spot1=new go.Spot(0,.3),at.spot2=new go.Spot(1,.9),at}),go.Shape.defineFigureGenerator("Display",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.25*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,tt,z,0,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),at.spot1=new go.Spot(.25,0),at.spot2=new go.Spot(.75,1),at}),go.Shape.defineFigureGenerator("DividedEvent",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)?it=.2:it<.15&&(it=.15);var lt=gt*.2,ut=new go.PathFigure(0,.2*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-lt)*tt,(.2-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*tt,(.8+lt)*z,0,z,(.2-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,tt,z,(.8+lt)*tt,(.8+lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-lt)*z,tt,0,(.8+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var dt=new go.PathFigure(0,it*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,it*tt)),at}),go.Shape.defineFigureGenerator("DividedProcess",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;(isNaN(it)||it<.1)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,it*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,it*tt)),at}),go.Shape.defineFigureGenerator("Document",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(0,.7*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*z,.4*tt,.5*z,tt).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(1,.6),at}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;(isNaN(it)||it<.2)&&(it=.2);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(it*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,it*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,z,it*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,(1-it)*tt)),at}),go.Shape.defineFigureGenerator("ExternalProcess",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var lt=new go.PathFigure(.1*z,.4*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*tt)),at.spot1=new go.Spot(.25,.25),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("File",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(.75*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),at.spot1=new go.Spot(0,.25),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("Interrupt",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt));var lt=new go.PathFigure(z,.5*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt));var ut=new go.PathFigure(z,.5*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.5,.75),at}),go.Shape.defineFigureGenerator("InternalStorage",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN,lt=ft?ft.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(lt)&&(lt=.1);var ut=new go.PathFigure(0,0,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(it*z,0,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,lt*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,z,lt*tt)),at}),go.Shape.defineFigureGenerator("Junction",function(ft,z,tt){var at=new go.Geometry,it=1/Math.SQRT2,lt=(1-1/Math.SQRT2)/2,ut=gt*.5,dt=.5,Pt=new go.PathFigure(z,dt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,dt*z,tt,z,(dt+ut)*tt,(dt+ut)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,dt*tt,(dt-ut)*z,tt,0,(dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,dt*z,0,0,(dt-ut)*tt,(dt-ut)*z,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,z,dt*tt,(dt+ut)*z,0,z,(dt-ut)*tt));var At=new go.PathFigure((lt+it)*z,(lt+it)*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt*z,lt*tt)),At.add(new go.PathSegment(go.PathSegment.Move,lt*z,(lt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Line,(lt+it)*z,lt*tt)),at}),go.Shape.defineFigureGenerator("LinedDocument",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(0,.7*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*z,.4*tt,.5*z,tt).close());var lt=new go.PathFigure(.1*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*tt)),at.spot1=new go.Spot(.1,0),at.spot2=new go.Spot(1,.6),at}),go.Shape.defineFigureGenerator("LoopLimit",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("MagneticTape",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=new go.PathFigure(.5*z,tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*tt,(lt-it)*z,tt,0,(lt+it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,0,0,(lt-it)*tt,(lt-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,lt*tt,(lt+it)*z,0,z,(lt-it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(lt+.1)*z,.9*tt,z,(lt+it)*tt,(lt+it)*z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),at.spot1=new go.Spot(.15,.15),at.spot2=new go.Spot(.85,.8),at}),go.Shape.defineFigureGenerator("ManualInput",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("MessageFromUser",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.7);var lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,it*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=go.Spot.TopLeft,at}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.25);var lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,it*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-it)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("MicroformRecording",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(1,.75),at}),go.Shape.defineFigureGenerator("MultiDocument",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*tt,.96*z,.47*tt,.93*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*tt,.86*z,.57*tt,.83*z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*z,.4*tt,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var lt=new go.PathFigure(.1*z,.2*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*tt)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.8,.77),at}),go.Shape.defineFigureGenerator("MultiProcess",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,.1*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*tt).close());var lt=new go.PathFigure(.2*z,.1*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*tt)),at.spot1=new go.Spot(0,.2),at.spot2=new go.Spot(.8,1),at}),go.Shape.defineFigureGenerator("OfflineStorage",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=1-it,ut=new go.PathFigure(0,0,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt).close());var dt=new go.PathFigure(.5*it*z,it*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*it)*z,it*tt)),at}),go.Shape.defineFigureGenerator("OffPageConnector",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(.75,1),at}),go.Shape.defineFigureGenerator("Or",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=new go.PathFigure(z,lt*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,tt,z,(lt+it)*tt,(lt+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*tt,(lt-it)*z,tt,0,(lt+it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,0,0,(lt-it)*tt,(lt-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,lt*tt,(lt+it)*z,0,z,(lt-it)*tt));var dt=new go.PathFigure(z,.5*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.5*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),at}),go.Shape.defineFigureGenerator("PaperTape",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(0,.7*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*tt,.5*z,.6*tt,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*z,.4*tt,.5*z,tt).close()),at.spot1=new go.Spot(0,.49),at.spot2=new go.Spot(1,.75),at}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN,lt=ft?ft.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(lt)&&(lt=.3);var ut=new go.PathFigure(0,0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN,lt=ft?ft.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(lt)&&(lt=.3);var ut=new go.PathFigure(0,0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("Procedure",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure((1-it)*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Move,it*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),at}),go.Shape.defineFigureGenerator("Process",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(it*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("Sort",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var lt=new go.PathFigure(0,.5*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),at.spot1=new go.Spot(.25,.25),at.spot2=new go.Spot(.75,.5),at}),go.Shape.defineFigureGenerator("Start",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.25);var lt=new go.PathFigure(it*z,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*tt,.25*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*tt,.25*z,.5*tt));var ut=new go.PathFigure(it*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*z,tt)),at.spot1=new go.Spot(it,0),at.spot2=new go.Spot(1-it,1),at}),go.Shape.defineFigureGenerator("Terminator",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.25*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*tt,.25*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*tt,.25*z,.5*tt)),at.spot1=new go.Spot(.23,0),at.spot2=new go.Spot(.77,1),at}),go.Shape.defineFigureGenerator("TransmittalTape",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-it)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,(1-it)*tt).close()),at.spot1=go.Spot.TopLeft,at}),go.Shape.defineFigureGenerator("AndGate",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,(.5+it)*z,0,z,(.5-it)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.5+it)*tt,(.5+it)*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(.55,1),at}),go.Shape.defineFigureGenerator("Buffer",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.5,.75),at}),go.Shape.defineFigureGenerator("Clock",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=new go.PathFigure(z,lt*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,tt,z,(lt+it)*tt,(lt+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*tt,(lt-it)*z,tt,0,(lt+it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,0,0,(lt-it)*tt,(lt-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,lt*tt,(lt+it)*z,0,z,(lt-it)*tt));var dt=new go.PathFigure(z,lt*tt,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,lt*tt));var Pt=new go.PathFigure(.8*z,.75*tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*tt)),at}),go.Shape.defineFigureGenerator("Ground",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,tt)),at}),go.Shape.defineFigureGenerator("Inverter",function(ft,z,tt){var at=new go.Geometry,it=gt*.1,lt=.1,ut=.9,dt=.5,Pt=new go.PathFigure(.8*z,.5*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*tt));var At=new go.PathFigure((ut+lt)*z,dt*tt,!0);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.4,.75),at}),go.Shape.defineFigureGenerator("NandGate",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.4,ut=gt*.1,dt=.1,Pt=.9,At=.5,Dt=new go.PathFigure(.8*z,.5*tt,!0);at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,tt,.8*z,(.5+lt)*tt,(.4+it)*z,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*tt,(.4+it)*z,0,.8*z,(.5-lt)*tt));var Ft=new go.PathFigure((Pt+dt)*z,At*tt,!0);return at.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+dt)*tt,(Pt+dt)*z,(At+ut)*tt,(Pt+ut)*z,(At+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z,At*tt,(Pt-ut)*z,(At+dt)*tt,(Pt-dt)*z,(At+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-dt)*tt,(Pt-dt)*z,(At-ut)*tt,(Pt-ut)*z,(At-dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z,At*tt,(Pt+ut)*z,(At-dt)*tt,(Pt+dt)*z,(At-ut)*tt)),at.spot1=new go.Spot(0,.05),at.spot2=new go.Spot(.55,.95),at}),go.Shape.defineFigureGenerator("NorGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=0,dt=.5,Pt=new go.PathFigure(.8*z,.5*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*tt,.25*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*tt,(ut+lt)*z,(dt-it)*tt,.7*z,(dt-lt)*tt)),it=.1,lt=gt*.1,ut=.9,dt=.5;var At=new go.PathFigure((ut-it)*z,dt*tt,!0);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),at.spot1=new go.Spot(.2,.25),at.spot2=new go.Spot(.6,.75),at}),go.Shape.defineFigureGenerator("OrGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=0,dt=.5,Pt=new go.PathFigure(0,0,!0);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,(ut+lt+lt)*z,(dt-it)*tt,.8*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*z,(dt+lt)*tt,(ut+lt+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*tt,.25*z,.25*tt).close()),at.spot1=new go.Spot(.2,.25),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("XnorGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=.2,dt=.5,Pt=new go.PathFigure(.1*z,0,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,tt,.35*z,.25*tt,.35*z,.75*tt));var At=new go.PathFigure(.8*z,.5*tt,!0);at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,tt,.7*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*tt,.45*z,.25*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*tt,(ut+lt)*z,(dt-it)*tt,.7*z,(dt-lt)*tt)),it=.1,lt=gt*.1,ut=.9,dt=.5;var Dt=new go.PathFigure((ut-it)*z,dt*tt,!0);return at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),at.spot1=new go.Spot(.4,.25),at.spot2=new go.Spot(.65,.75),at}),go.Shape.defineFigureGenerator("XorGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=.2,dt=.5,Pt=new go.PathFigure(.1*z,0,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,tt,.35*z,.25*tt,.35*z,.75*tt));var At=new go.PathFigure(.2*z,0,!0);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,(ut+lt)*z,(dt-it)*tt,.9*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,tt,.9*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*tt,.45*z,.25*tt).close()),at.spot1=new go.Spot(.4,.25),at.spot2=new go.Spot(.8,.75),at}),go.Shape.defineFigureGenerator("Capacitor",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("Resistor",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*tt)),at}),go.Shape.defineFigureGenerator("Inductor",function(ft,z,tt){var at=new go.Geometry,it=gt*.1,lt=.1,ut=.1,dt=.5,Pt=new go.PathFigure((ut-it*.5)*z,tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.3,Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.5,Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.7,Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.9,Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it*.5)*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),at}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=.5,dt=.5,Pt=new go.PathFigure((ut-lt)*z,dt*tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Move,(ut-lt+.1)*z,dt*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt-.1)*z,dt*tt,ut*z,(dt-lt)*tt,ut*z,(dt+lt)*tt)),at}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.75*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("Diode",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.5,.75),at}),go.Shape.defineFigureGenerator("Wifi",function(ft,z,tt){var at=new go.Geometry,it=z,lt=tt;z=z*.38,tt=tt*.6;var ut=gt*.8,dt=.8,Pt=0,At=.5,Dt=(it-z)/2,Ft=(lt-tt)/2,jt=new go.PathFigure(Pt*z+Dt,(At+dt)*tt+Ft,!0);at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z+Dt,At*tt+Ft,(Pt-ut)*z+Dt,(At+dt)*tt+Ft,(Pt-dt)*z+Dt,(At+ut)*tt+Ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt)*z+Dt,(At-ut)*tt+Ft,(Pt-ut)*z+Dt,(At-dt)*tt+Ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt+ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At-ut)*tt+Ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At+ut)*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft).close()),ut=gt*.4,dt=.4,Pt=.2,At=.5;var Nt=new go.PathFigure(Pt*z+Dt,(At+dt)*tt+Ft,!0);at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z+Dt,At*tt+Ft,(Pt-ut)*z+Dt,(At+dt)*tt+Ft,(Pt-dt)*z+Dt,(At+ut)*tt+Ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt)*z+Dt,(At-ut)*tt+Ft,(Pt-ut)*z+Dt,(At-dt)*tt+Ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt+ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At-ut)*tt+Ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At+ut)*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft).close()),ut=gt*.2,dt=.2,Pt=.5,At=.5;var Gt=new go.PathFigure((Pt-dt)*z+Dt,At*tt+Ft,!0);at.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt)*z+Dt,(At-ut)*tt+Ft,(Pt-ut)*z+Dt,(At-dt)*tt+Ft)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z+Dt,At*tt+Ft,(Pt+ut)*z+Dt,(At-dt)*tt+Ft,(Pt+dt)*z+Dt,(At-ut)*tt+Ft)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt)*z+Dt,(At+ut)*tt+Ft,(Pt+ut)*z+Dt,(At+dt)*tt+Ft)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z+Dt,At*tt+Ft,(Pt-ut)*z+Dt,(At+dt)*tt+Ft,(Pt-dt)*z+Dt,(At+ut)*tt+Ft)),ut=gt*.4,dt=.4,Pt=.8,At=.5;var Ht=new go.PathFigure(Pt*z+Dt,(At-dt)*tt+Ft,!0);at.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z+Dt,At*tt+Ft,(Pt+ut)*z+Dt,(At-dt)*tt+Ft,(Pt+dt)*z+Dt,(At-ut)*tt+Ft)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt)*z+Dt,(At+ut)*tt+Ft,(Pt+ut)*z+Dt,(At+dt)*tt+Ft)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt-ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At+ut)*tt+Ft)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At-ut)*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft).close()),ut=gt*.8,dt=.8,Pt=1,At=.5;var Yt=new go.PathFigure(Pt*z+Dt,(At-dt)*tt+Ft,!0);return at.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z+Dt,At*tt+Ft,(Pt+ut)*z+Dt,(At-dt)*tt+Ft,(Pt+dt)*z+Dt,(At-ut)*tt+Ft)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt)*z+Dt,(At+ut)*tt+Ft,(Pt+ut)*z+Dt,(At+dt)*tt+Ft)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt-ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At+ut)*tt+Ft)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At-ut)*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft).close()),at}),go.Shape.defineFigureGenerator("Email",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(0,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*tt)),at}),go.Shape.defineFigureGenerator("Ethernet",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.35*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var lt=new go.PathFigure(.1*z,tt,!0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,tt).close());var ut=new go.PathFigure(.6*z,tt,!0,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*z,tt).close());var dt=new go.PathFigure(0,.5*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*tt)),at}),go.Shape.defineFigureGenerator("Power",function(ft,z,tt){var at=new go.Geometry,it=gt*.4,lt=.4,ut=.5,dt=.5,Pt=ae(),At=ae(),Dt=ae(),Ft=ae();zt(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.5,Pt,Pt,At,Dt,Ft);var jt=he(At.x,At.y),Nt=new go.PathFigure(At.x*z,At.y*tt,!0);at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),zt(ut-lt,dt,ut-lt,dt-it,ut-it,dt-lt,ut,dt-lt,.5,Dt,Ft,At,Pt,Pt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*z,At.y*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt)),it=gt*.3,lt=.3,zt(ut-lt,dt,ut-lt,dt-it,ut-it,dt-lt,ut,dt-lt,.5,Dt,Ft,At,Pt,Pt),Nt.add(new go.PathSegment(go.PathSegment.Line,At.x*z,At.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,Ft.x*z,Ft.y*tt,Dt.x*z,Dt.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),zt(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.5,Pt,Pt,At,Dt,Ft),Nt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*z,At.y*tt,Ft.x*z,Ft.y*tt,Dt.x*z,Dt.y*tt).close());var Nt=new go.PathFigure(.45*z,0,!0);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Re(Pt),Re(At),Re(Dt),Re(Ft),Re(jt),at.spot1=new go.Spot(.25,.45),at.spot2=new go.Spot(.75,.8),at}),go.Shape.defineFigureGenerator("Fallout",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt/2,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,tt/2,z/2,tt/2));function lt(ut,dt,Pt){ut.add(new go.PathSegment(go.PathSegment.Move,(.3+dt)*z,(.8+Pt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+dt)*z,(.5+Pt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.1+dt)*z,(.5+Pt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.3+dt)*z,(.8+Pt)*tt).close())}return lt(it,0,0),lt(it,.4,0),lt(it,.2,-.3),at}),go.Shape.defineFigureGenerator("IrritationHazard",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.2*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),at.spot1=new go.Spot(.3,.3),at.spot2=new go.Spot(.7,.7),at}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.37*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.37*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.34*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),at}),go.Shape.defineFigureGenerator("FireHazard",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*tt,.45*z,.44*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*tt,.48*z,.17*tt,.54*z,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*tt,.59*z,.29*tt,.58*z,.28*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*tt,.8*z,.34*tt,.88*z,.43*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*tt,.87*z,.48*tt,.88*z,.43*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,tt,1.17*z,.76*tt,.82*z,.8*tt).close()),at.spot1=new go.Spot(.07,.445),at.spot2=new go.Spot(.884,.958),at}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=0,ut=0,dt=it*gt,Pt=.4*Math.SQRT2/2+.5,At=.5-.5*Math.SQRT2/2,Dt=1,Ft=.5,jt=.5,Nt=0,Gt=new go.PathFigure(Pt*z,(1-At)*tt,!1);return at.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,Ft*tt,Dt*z,.7*tt,Dt*z,Ft*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+lt)*z,(Nt+lt)*tt,(.5+it+lt)*z,(.5-dt+lt)*tt,(.5+dt+lt)*z,(.5-it+lt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+lt)*z,(.5+ut)*tt,(.5-dt+lt)*z,(.5-it+ut)*tt,(.5-it+lt)*z,(.5-dt+ut)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+lt)*z,.9*tt,(.5-it+lt)*z,(.5+dt+ut)*tt,(.5-dt+lt)*z,.9*tt)),Gt.add(new go.PathSegment(go.PathSegment.Move,(.25+lt)*z,.8*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,(.35+lt)*z,.9*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,(.2+lt)*z,.95*tt)),at}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it);var lt=new go.PathFigure(z,tt,!1);at.add(lt);var ut=new go.PathFigure(0,.5*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*tt,.2*z,.35*tt,.3*z,.35*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,.7*z,.65*tt,.8*z,.65*tt)),at}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt).close()),at}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.2*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var it=new go.PathFigure(0,.2*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),at}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.7*z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*tt,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,tt,.4*z,.5*tt,z,.5*tt).close());var lt=new go.PathFigure(.45*z,.73*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*tt)),at}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it);var lt=new go.PathFigure(.335*z,(1-.555)*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*tt,(1-.12)*z,.46*tt,(1-.02)*z,.54*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*tt,.02*z,.54*tt,.12*z,.46*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*tt));var ut=.5-.285,dt=.5,Pt=ut,At=Math.PI/4,Dt=4*(1-Math.cos(At))/(3*Math.sin(At)),Ft=Dt*.5,jt=ut,Nt=ut,Gt=Dt*jt,Ht=Dt*Nt;lt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-jt)*z,Pt*tt,(dt-(Gt+jt)/2)*z,(Pt+(Nt+Ht)/2)*tt,(dt-jt)*z,(Pt+Ht)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,dt*z,(Pt-Nt)*tt,(dt-jt)*z,(Pt-Ht)*tt,(dt-Gt)*z,(Pt-Nt)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+jt)*z,Pt*tt,(dt+Gt)*z,(Pt-Nt)*tt,(dt+jt)*z,(Pt-Ht)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*tt,(dt+jt)*z,(Pt+Ht)*tt,(dt+(Gt+jt)/2)*z,(Pt+(Nt+Ht)/2)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*tt));var Yt=new go.PathFigure(.2*z,tt,!1);at.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*tt));var Ut=new go.PathFigure(.8*z,tt,!1);return at.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*tt)),at}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,tt).close());var lt=new go.PathFigure(.2*z,.2*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*tt)),at}),go.Shape.defineFigureGenerator("BpmnEventError",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it);var lt=new go.PathFigure(z,tt,!1);at.add(lt);var ut=new go.PathFigure(.1*z,tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("Caution",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.05*z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*tt,0,tt,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*tt,.5*z,0,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,tt,z,tt,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.05*z,tt));var lt=.05;return it.add(new go.PathSegment(go.PathSegment.Move,(.5-lt)*z,.875*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*tt,lt*z,lt*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*tt,.575*z,.725*tt,.625*z,.375*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*tt,.375*z,.375*tt,.425*z,.725*tt)),at}),go.Shape.defineFigureGenerator("Recycle",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.45*z,.95*tt,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*tt,.17*z,.95*tt,.15*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*tt,0,.675*tt,0,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*tt));var lt=new go.PathFigure(.475*z,.2*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*tt,.35*z,0,.375*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*tt,.625*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*tt));var ut=new go.PathFigure(.675*z,.575*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*tt,z,.8*tt,z,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*tt)),at}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*.5,ut=new go.PathFigure(z,it*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*z,tt,z,(it+lt)*tt,(it+lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,it*tt,(it-lt)*z,tt,0,(it+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*z,0,0,(it-lt)*tt,(it-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,it*tt,(it+lt)*z,0,z,(it-lt)*tt));var dt=new go.PathFigure(it*z,0,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,it*z,.15*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,it*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,it*z,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.15*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.85*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,it*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,it*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*tt)),at}),go.Shape.defineFigureGenerator("Package",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.15*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(0,.15*tt,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*tt).close()),at.spot1=new go.Spot(0,.1),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Class",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(0,.2*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("Component",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt).close());var lt=new go.PathFigure(0,.2*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ut=new go.PathFigure(0,.6*tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),at}),go.Shape.defineFigureGenerator("Boat Shipment",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.15*z,.6*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*tt));var lt=new go.PathFigure(.15*z,.6*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*tt)),at}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt).close()),at}),go.Shape.defineFigureGenerator("Workcell",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("Supermarket",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.66*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,.66*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),at}),go.Shape.defineFigureGenerator("TruckShipment",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(z,.8*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt).close());var ut=.1,dt=gt*.1,Pt=.2,At=.9,Dt=new go.PathFigure((Pt-ut)*z,At*tt,!0);at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-ut)*tt,(Pt-ut)*z,(At-dt)*tt,(Pt-dt)*z,(At-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+ut)*z,At*tt,(Pt+dt)*z,(At-ut)*tt,(Pt+ut)*z,(At-dt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+ut)*tt,(Pt+ut)*z,(At+dt)*tt,(Pt+dt)*z,(At+ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-ut)*z,At*tt,(Pt-dt)*z,(At+ut)*tt,(Pt-ut)*z,(At+dt)*tt).close()),ut=.1,dt=gt*.1,Pt=.8,At=.9;var Ft=new go.PathFigure((Pt-ut)*z,At*tt,!0);return at.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-ut)*tt,(Pt-ut)*z,(At-dt)*tt,(Pt-dt)*z,(At-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+ut)*z,At*tt,(Pt+dt)*z,(At-ut)*tt,(Pt+ut)*z,(At-dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+ut)*tt,(Pt+ut)*z,(At+dt)*tt,(Pt+dt)*z,(At+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-ut)*z,At*tt,(Pt-dt)*z,(At+ut)*tt,(Pt-ut)*z,(At+dt)*tt).close()),at}),go.Shape.defineFigureGenerator("KanbanPost",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.2*z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),at}),go.Shape.defineFigureGenerator("Forklift",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0));var lt=new go.PathFigure(0,.5*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.5*z,.8*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*tt));var dt=new go.PathFigure(.5*z,.7*tt,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt));var Pt=.1,At=gt*.1,Dt=.1,Ft=.9,jt=new go.PathFigure((Dt-Pt)*z,Ft*tt,!0);at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft-Pt)*tt,(Dt-Pt)*z,(Ft-At)*tt,(Dt-At)*z,(Ft-Pt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*z,Ft*tt,(Dt+At)*z,(Ft-Pt)*tt,(Dt+Pt)*z,(Ft-At)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft+Pt)*tt,(Dt+Pt)*z,(Ft+At)*tt,(Dt+At)*z,(Ft+Pt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*z,Ft*tt,(Dt-At)*z,(Ft+Pt)*tt,(Dt-Pt)*z,(Ft+At)*tt)),Pt=.1,At=gt*.1,Dt=.4,Ft=.9;var Nt=new go.PathFigure((Dt-Pt)*z,Ft*tt,!0);return at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft-Pt)*tt,(Dt-Pt)*z,(Ft-At)*tt,(Dt-At)*z,(Ft-Pt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*z,Ft*tt,(Dt+At)*z,(Ft-Pt)*tt,(Dt+Pt)*z,(Ft-At)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft+Pt)*tt,(Dt+Pt)*z,(Ft+At)*tt,(Dt+At)*z,(Ft+Pt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*z,Ft*tt,(Dt-At)*z,(Ft+Pt)*tt,(Dt-Pt)*z,(Ft+At)*tt)),at}),go.Shape.defineFigureGenerator("RailShipment",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,.4*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*tt).close());var lt=new go.PathFigure(.45*z,.7*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*tt));var ut=new go.PathFigure(.55*z,.4*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*tt).close());var Dt=.05,Ft=gt*.05,jt=.175,Nt=.95,dt=new go.PathFigure((jt-Dt)*z,Nt*tt,!0);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt-Dt)*tt,(jt-Dt)*z,(Nt-Ft)*tt,(jt-Ft)*z,(Nt-Dt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+Dt)*z,Nt*tt,(jt+Ft)*z,(Nt-Dt)*tt,(jt+Dt)*z,(Nt-Ft)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt+Dt)*tt,(jt+Dt)*z,(Nt+Ft)*tt,(jt+Ft)*z,(Nt+Dt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-Dt)*z,Nt*tt,(jt-Ft)*z,(Nt+Dt)*tt,(jt-Dt)*z,(Nt+Ft)*tt));var Dt=.05,Ft=gt*.05,jt=.375,Nt=.95,Pt=new go.PathFigure((jt-Dt)*z,Nt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt-Dt)*tt,(jt-Dt)*z,(Nt-Ft)*tt,(jt-Ft)*z,(Nt-Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+Dt)*z,Nt*tt,(jt+Ft)*z,(Nt-Dt)*tt,(jt+Dt)*z,(Nt-Ft)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt+Dt)*tt,(jt+Dt)*z,(Nt+Ft)*tt,(jt+Ft)*z,(Nt+Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-Dt)*z,Nt*tt,(jt-Ft)*z,(Nt+Dt)*tt,(jt-Dt)*z,(Nt+Ft)*tt));var Dt=.05,Ft=gt*.05,jt=.625,Nt=.95,At=new go.PathFigure((jt-Dt)*z,Nt*tt,!0);at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt-Dt)*tt,(jt-Dt)*z,(Nt-Ft)*tt,(jt-Ft)*z,(Nt-Dt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt+Dt)*z,Nt*tt,(jt+Ft)*z,(Nt-Dt)*tt,(jt+Dt)*z,(Nt-Ft)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt+Dt)*tt,(jt+Dt)*z,(Nt+Ft)*tt,(jt+Ft)*z,(Nt+Dt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(jt-Dt)*z,Nt*tt,(jt-Ft)*z,(Nt+Dt)*tt,(jt-Dt)*z,(Nt+Ft)*tt));var Dt=.05,Ft=gt*.05,jt=.825,Nt=.95,Gt=new go.PathFigure((jt-Dt)*z,Nt*tt,!0);at.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt-Dt)*tt,(jt-Dt)*z,(Nt-Ft)*tt,(jt-Ft)*z,(Nt-Dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+Dt)*z,Nt*tt,(jt+Ft)*z,(Nt-Dt)*tt,(jt+Dt)*z,(Nt-Ft)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,jt*z,(Nt+Dt)*tt,(jt+Dt)*z,(Nt+Ft)*tt,(jt+Ft)*z,(Nt+Dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-Dt)*z,Nt*tt,(jt-Ft)*z,(Nt+Dt)*tt,(jt-Dt)*z,(Nt+Ft)*tt).close());var Ht=new go.PathFigure(0,tt,!1);return at.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,z,tt).close()),at}),go.Shape.defineFigureGenerator("Warehouse",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(0,.2*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt).close());var ut=new go.PathFigure(.15*z,tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*z,tt).close());var dt=.05,Pt=gt*.05,At=.35,Dt=.775,Ft=new go.PathFigure((At-dt)*z,Dt*tt,!0);return at.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,At*z,(Dt-dt)*tt,(At-dt)*z,(Dt-Pt)*tt,(At-Pt)*z,(Dt-dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(At+dt)*z,Dt*tt,(At+Pt)*z,(Dt-dt)*tt,(At+dt)*z,(Dt-Pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,At*z,(Dt+dt)*tt,(At+dt)*z,(Dt+Pt)*tt,(At+Pt)*z,(Dt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(At-dt)*z,Dt*tt,(At-Pt)*z,(Dt+dt)*tt,(At-dt)*z,(Dt+Pt)*tt).close()),at}),go.Shape.defineFigureGenerator("ControlCenter",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt).close()),at}),go.Shape.defineFigureGenerator("Bluetooth",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.75*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),at}),go.Shape.defineFigureGenerator("Bookmark",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*tt)),at}),go.Shape.defineFigureGenerator("Bookmark",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*tt)),at}),go.Shape.defineFigureGenerator("Globe",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,.75*z,0,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,.75*tt,.75*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*z,tt,0,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*tt,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,.15*z,.25*tt,.15*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*tt,.85*z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*tt,.35*z,.3*tt,.65*z,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*tt,.35*z,.7*tt,.65*z,.7*tt)),at}),go.Shape.defineFigureGenerator("Wave",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.25*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*tt,.1*z,0,.2*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*tt,.425*z,.5*tt,.575*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*tt,.8*z,0,.9*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*tt,.1*z,.5*tt,.2*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*tt,.425*z,tt,.575*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*tt,.8*z,.5*tt,.9*z,.5*tt)),at}),go.Shape.defineFigureGenerator("Operator",function(ft,z,tt){var at=new go.Geometry,it=.3,lt=gt*.3,ut=.5,dt=.7,Pt=new go.PathFigure((ut-it)*z,dt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt));var At=new go.PathFigure(0,.7*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*tt,0,0,z,0)),at}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*tt,.65*z,.3*tt,.65*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*tt,.35*z,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*z,.6*tt,.1*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*tt,.2*z,tt,.35*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,tt,.7*z,.6*tt,.9*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*tt,.8*z,tt,.65*z,.95*tt)),at}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,tt,0,tt,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*tt,.8*z,tt,.85*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),at}),go.Shape.defineFigureGenerator("Battery",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*tt));var lt=new go.PathFigure(0,.6*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.4*tt)),at}),go.Shape.defineFigureGenerator("Delete",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*.5,ut=.5,dt=.5,Pt=new go.PathFigure((ut-it)*z,dt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt));var At=new go.PathFigure(.15*z,.5*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*tt)),at}),go.Shape.defineFigureGenerator("Flag",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.1*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*tt,.15*z,0,.35*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*tt,.65*z,.2*tt,.85*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*tt,.85*z,.6*tt,.65*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*z,.4*tt,.15*z,.4*tt).close()),at}),go.Shape.defineFigureGenerator("Help",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*.5,ut=.5,dt=.5,Pt=new go.PathFigure((ut-it)*z,dt*tt,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt).close()),it=.05,lt=gt*.05,ut=.5,dt=.8;var At=new go.PathFigure((ut-it)*z,dt*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt).close()),At.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*tt)),At.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*tt,.75*z,.475*tt,.75*z,.225*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*tt,.4*z,.2*tt,.3*z,.25*tt)),at}),go.Shape.defineFigureGenerator("Location",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*tt,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*tt,.5*z,0,.025*z,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*tt,.1*z,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var lt=new go.PathFigure(.2*z,.5*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*tt,.25*z,0,.75*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*tt)),at}),go.Shape.defineFigureGenerator("Unlocked",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var lt=new go.PathFigure(.2*z,.5*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*tt,.25*z,0,.75*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*tt)),at}),go.Shape.defineFigureGenerator("Gear",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*tt,.79840625*z,.39915625*tt,.7834375*z,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*tt,.64228125*z,.2188125*tt,.603875*z,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*tt,.39759375*z,.20190625*tt,.36053125*z,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*tt,.21765625*z,.36059375*tt,.201875*z,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*tt,.20221875*z,.603875*tt,.21884375*z,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*tt,.36353125*z,.78340625*tt,.3991875*z,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*tt,.602375*z,.79809375*tt,.63946875*z,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*tt,.78234375*z,.63940625*tt,.798125*z,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*tt,.1*z,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*tt,0,.375*tt,.05*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*tt,.3*z,.225*tt,.4*z,.175*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*tt,.46*z,.05*tt,.525*z,.05*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*tt,.525*z,.275*tt,.475*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*tt,z,.4*tt,z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*tt,.675*z,.55*tt,.675*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*tt,.65*z,.7*tt,.65*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,tt,.61*z,.85*tt,.61*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*z,tt,0,tt).close()),at}),go.Shape.defineFigureGenerator("Map",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.2*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),it.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*tt)),at}),go.Shape.defineFigureGenerator("Eject",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.7)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var lt=new go.PathFigure(0,tt*.6,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),at}),go.Shape.defineFigureGenerator("Pencil",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*1,tt*1,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*z,tt*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*z,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.046*z,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,tt*.85)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.85).close());var lt=new go.PathFigure(.126*z,.85*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*tt).close());var ut=new go.PathFigure(.402*z,.85*tt,!1);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*tt).close());var dt=new go.PathFigure(.678*z,.85*tt,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*tt).close());var Pt=new go.PathFigure(.5*z,.1*tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*tt).close()),at}),go.Shape.defineFigureGenerator("Staircase",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt*1,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*.8)),it.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.8)),it.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.6)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.6)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.4)),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*.4)),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*.2)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.2)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.15)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.15)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),at}),go.Shape.defineFigureGenerator("5Bars",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt*1,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.184,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.184,tt*(1-.184)).close());var lt=new go.PathFigure(z*.204,tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.204,tt*(1-.184))),lt.add(new go.PathSegment(go.PathSegment.Line,z*.388,tt*(1-.184*2))),lt.add(new go.PathSegment(go.PathSegment.Line,z*.388,tt*1).close());var ut=new go.PathFigure(z*.408,tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.408,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,z*.592,tt*(1-.184*3))),ut.add(new go.PathSegment(go.PathSegment.Line,z*.592,tt*1).close());var dt=new go.PathFigure(z*.612,tt,!0);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*.612,tt*(1-.184*3))),dt.add(new go.PathSegment(go.PathSegment.Line,z*.796,tt*(1-.184*4))),dt.add(new go.PathSegment(go.PathSegment.Line,z*.796,tt*1).close());var Pt=new go.PathFigure(z*.816,tt,!0);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.816,tt*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-.184*5))),Pt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1).close()),at}),go.Shape.defineFigureGenerator("PC",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var lt=new go.PathFigure(z*.055,.07*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.07)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.055,tt*.1).close());var ut=new go.PathFigure(z*.055,.13*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.13)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.16)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.055,tt*.16).close());var dt=new go.PathFigure(z*.055,.18*tt,!0);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.18)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.21)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.055,tt*.21).close());var Pt=new go.PathFigure(z*1,0,!0);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.65)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.65).close()),at}),go.Shape.defineFigureGenerator("Plane",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.55*z,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*tt,0,.4*tt,.225*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*tt,.975*z,0,z,.08*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.55*z,tt).close()),at}),go.Shape.defineFigureGenerator("Key",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*1,tt*.5,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*tt).close()),it.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*tt,.075*z,.075*tt).close()),at}),go.Shape.defineFigureGenerator("FilmTape",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.08,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.08,tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1));var lt=new go.PathFigure(0,0,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*0)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1));var ut=new go.PathFigure(z*.11,tt*.1,!1);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),tt*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.11,tt*.8).close());var dt=new go.PathFigure(z*(.11+.24133333*1+.028*1),tt*.1,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),tt*.1)),dt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),tt*.8)),dt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),tt*.8).close());var Pt=new go.PathFigure(z*(.11+.24133333*2+.028*2),tt*.1,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),tt*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),tt*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),tt*.8).close()),at}),go.Shape.defineFigureGenerator("FloppyDisk",function(ft,z,tt){var at=new go.Geometry,it=8,lt=it*gt,ut=new go.PathFigure(it,0,!1);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.14)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-it,tt,z,tt-lt,z-lt,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,it,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-it,lt,tt,0,tt-lt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it,0,0,lt,lt,0).close());var dt=new go.PathFigure(z*.83,0,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*.83,tt*.3)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*.3)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*0).close());var Pt=new go.PathFigure(z*.83,tt*1,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.83,tt*.5)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*.5)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*1).close());var At=new go.PathFigure(z*.78,tt*.05,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.05)),At.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.25)),At.add(new go.PathSegment(go.PathSegment.Line,z*.78,tt*.25).close()),at}),go.Shape.defineFigureGenerator("SpeechBubble",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=15),at=Math.min(at,z/3),at=Math.min(at,tt/3);var it=at*gt,lt=tt*.8,ut=new go.Geometry,dt=new go.PathFigure(at,0,!0);return ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z-at,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z,at,z-it,0,z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,z,lt-at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z-at,lt,z,lt-it,z-it,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.7,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.55,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,at,lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt-at,it,lt,0,lt-it)),dt.add(new go.PathSegment(go.PathSegment.Line,0,at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,it,it,0).close()),it>1?(ut.spot1=new go.Spot(0,0,it,it),ut.spot2=new go.Spot(1,.8,-it,-it)):(ut.spot1=go.Spot.TopLeft,ut.spot2=new go.Spot(1,.8)),ut}),go.Shape.defineFigureGenerator("Repeat",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*.45,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*.9)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.9)),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*.45).close());var lt=new go.PathFigure(z*1,tt*.55,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*.55).close()),at}),go.Shape.defineFigureGenerator("Windows",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*.1,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.9)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*.9).close());var lt=new go.PathFigure(z*.1,tt*.2,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.1,tt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.22,tt*.285)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.1,tt*.32)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.1,tt*.37)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.275,tt*.32)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.275,tt*.25).close());var ut=new go.PathFigure(z*.28,tt*.37,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.41)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.28,tt*.41).close()),at}),go.Shape.defineFigureGenerator("Beaker",function(ft,z,tt){var at=new go.Geometry,it=15,lt=it*gt,ut=new go.PathFigure(z*.62,tt*.475,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-it,tt,z,tt-lt,z-lt,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,it,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-it,lt,tt,0,tt-lt)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.38,tt*.475)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.38,tt*.03)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.62,tt*.03).close()),lt>1?(at.spot1=new go.Spot(0,0,lt,lt),at.spot2=new go.Spot(1,1,-lt,-lt)):(at.spot1=go.Spot.TopLeft,at.spot2=go.Spot.BottomRight),at}),go.Shape.defineFigureGenerator("Download",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*1,!0);at.add(it);var lt=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.755,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.93,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.61,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.39,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.07,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*(1-lt)).close());var ut=new go.PathFigure(z*.4,tt*0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.26,tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.66)),ut.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*0).close()),at}),go.Shape.defineFigureGenerator("Bin",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*1,!0);at.add(it);var lt=.1/.3;return it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.755,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.93,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.61,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.39,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.07,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*(1-lt)).close()),at}),go.Shape.defineFigureGenerator("Upload",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*1,!0);at.add(it);var lt=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.755,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.93,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.61,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.39,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.07,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*(1-lt)).close());var ut=new go.PathFigure(z*.5,tt*0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.26,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.74,tt*.25).close()),at}),go.Shape.defineFigureGenerator("EmptyDrink",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.15,tt*0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.85,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*1).close()),at}),go.Shape.defineFigureGenerator("Drink",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.15,tt*0,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.85,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*1).close());var lt=new go.PathFigure(z*.235,tt*.28,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.765,tt*.28)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.655,tt*.97)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.345,tt*.97).close()),at}),go.Shape.defineFigureGenerator("4Arrows",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.5,tt*0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,tt*.25)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.25)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.5)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.65)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.65)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*.5)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.25)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.25).close()),at}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var mn={},gn="5.0",he={},ae=null,Re=!1,ot=!1,zt=null,Bt=!1,vt=null,gt=null,Et=0;Et4?parseFloat(fe):5};mn.setHTML5Codebase=function(fe,pe){gt=fe,ye(fe,pe)},mn.setJavaCodebase=mn.setJavaCodebaseVersion=mn.isCompiledInstalled=mn.setPreCompiledScriptPath=mn.setPreCompiledResourcePath=function(){},mn.setHTML5CodebaseVersion=function(fe,pe){var ce=parseFloat(fe);if(ce!==NaN&&ce<5){console.log("The GeoGebra HTML5 codebase version "+ce+" is deprecated. Using version latest instead.");return}vt=fe,ne(fe,pe)},mn.getHTML5CodebaseVersion=function(){return ft},mn.getParameters=function(){return he},mn.setFontsCSSURL=function(fe){ut=fe},mn.setGiacJSURL=function(fe){},mn.setJNLPFile=function(fe){St=fe},mn.setJNLPBaseDir=function(fe){},mn.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pe="auto",ce=he.id,Ce,ve=!1,Fe=0;Fe=5)return!0;var fe=mn.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},mn.startAnimation=function(){var fe=mn.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},mn.stopAnimation=function(){var fe=mn.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},mn.getAppletObject=function(){var fe=he.id!==void 0?he.id:"ggbApplet";return window[fe]},mn.resize=function(){};var Gt=function(fe,pe,ce){var Ce=document.createElement("param");Ce.setAttribute("name",pe),Ce.setAttribute("value",ce),fe.appendChild(Ce)},Ht=function(fe){return fe&&fe!=="false"},Yt=function(fe,pe,ce){Pt(ft)<=4.2&&(ce=!0);var Ce=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ft||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Ce=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ve=document.createElement("div");ve.classList.add("appletParameters","notranslate");var Fe=pe.width,ge=pe.height;if(pe.disableAutoScale=pe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pe.disableAutoScale,pe.width!==void 0)if(Pt(ft)<=4.4)Ht(pe.showToolBar)&&(pe.height-=7),Ht(pe.showAlgebraInput)&&(pe.height-=37),pe.width<605&&Ht(pe.showToolBar)&&(pe.width=605,Fe=605);else{var xe=100;(Ht(pe.showToolBar)||Ht(pe.showMenuBar))&&(pe.hasOwnProperty("customToolBar")&&(pe.customToolbar=pe.customToolBar),xe=Ht(pe.showMenuBar)?245:155),Fe=5?(pe.appletOnLoad=function(Le){var Be=fe.querySelector(".ggb_preview");Be&&Be.parentNode.removeChild(Be),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(wt),window.GGBT_wsf_view&&$(window).trigger("resize"),Kt(Le)},Lt||wt.appendChild(Xt)):ve.appendChild(Xt),wt.appendChild(ve),Lt||fe.appendChild(wt),setTimeout(function(){mn.resize()},1)}else{var re=document.createElement("div");re.className="applet_scaler",re.style.position="relative",re.style.display="block",re.appendChild(ve),fe.appendChild(re),pe.appletOnLoad=function(Le){mn.resize(),Kt(Le)}}function It(Le,Be){Be&&typeof Be.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Le,Be.appletOnLoad):renderGGBElement(Le),we("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Be)}function Rt(Le,Be){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Le,params:Be}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(tn){It(tn.article,tn.params)}),html5AppletsToProcess=null)},Pt(ft)<5&&(Le.className+=" geogebraweb")):It(Le,Be)}if(Ce){scriptLoadStarted=!0;for(var Wt=0;Wt0?(ee.remove(),wt.attr("id","fullscreencontent").show(),jQuery(Kt).append(wt),window.dispatchEvent(new Event("resize"))):Yt(ee,pe,!1),window.GGBT_wsf_view.launchFullScreen(Kt)}else xt=Ce,Yt(fe,pe,!1);if(!window.GGBT_wsf_view)for(ge=0;gefe/4*3&&(ee=fe/4*3),Kt=ee/5.8,xe.setAttribute("src",it),xe.setAttribute("width",ee),xe.setAttribute("height",Kt);var wt=(fe-ee)/2,Lt=(pe-Kt)/2;xe.style.left=wt+"px",xe.style.top=Lt+"px",ve.appendChild(xe)}}return ve.appendChild(ge),ve},Se=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},Qt=["web","webSimple","web3d","tablet","tablet3d","phone"],ne=function(fe,pe){if(ft=fe,pe){ye(ft,!0);return}var ce=!Re;if(ce){var Ce=Pt(ft);!isNaN(Ce)&&Ce<4.4&&(ce=!1)}var ve,Fe;window.location.protocol.substr(0,4)==="http"?ve=window.location.protocol:ve="http:";var ge=ft.indexOf("//");ge>0?Fe=ft:ge===0?Fe=ve+ft:Fe="https://www.geogebra.org/apps/5.2.814.0/";for(var xe in Qt)if(ft.slice(Qt[xe].length*-1)===Qt[xe]||ft.slice((Qt[xe].length+1)*-1)===Qt[xe]+"/"){ye(Fe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ce&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ht(he.showToolBar)&&!Ht(he.showMenuBar)&&!Ht(he.showAlgebraInput)&&!Ht(he.enableRightClick)&&(!he.appName||he.appName=="classic")?Fe+="webSimple/":Fe+="web3d/",ye(Fe,!1)},ye=function(fe,pe){if(fe.requirejs){Tt=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Tt=fe,pe===null&&(pe=fe.indexOf("http")===-1),mt=pe,z="web.nocache.js",tt=!1;var ce=Tt.split("/");ce.length>1&&(!pe&&ce[ce.length-2]==="webSimple"?(z="webSimple.nocache.js",tt=!0):Qt.indexOf(ce[ce.length-2])>=0&&(z=ce[ce.length-2]+".nocache.js")),ce=fe.split("/"),ft=ce[ce.length-3],ft.substr(0,4)==="test"?ft=ft.substr(4,1)+"."+ft.substr(5,1):(ft.substr(0,3)==="war"||ft.substr(0,4)==="beta")&&(ft="5.0");var Ce=parseFloat(ft);Ce!==NaN&&Ce<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ce+" is deprecated. Using version latest instead."),ne("5.0",pe))},we=function(fe,pe){window.console&&window.console.log&&(!pe||typeof pe.showLogging=="undefined"||pe.showLogging&&pe.showLogging!=="false")&&console.log(fe)};he.material_id!==void 0?Ft(be):be();function be(){var fe=gn;vt!==null?fe=vt:parseFloat(fe)<5&&(fe="5.0"),ne(fe,!1),gt!==null&&ye(gt,mt),Bt=!0}return mn},GGBAppletUtils=function(){"use strict";function mn(){return window.GGBT_wsf_edit!==void 0}function gn(Bt,vt){vt!=1?(Bt.style.transformOrigin="0% 0% 0px",Bt.style.webkitTransformOrigin="0% 0% 0px",Bt.style.transform="scale("+vt+","+vt+")",Bt.style.webkitTransform="scale("+vt+","+vt+")",Bt.style.maxWidth="initial",Bt.querySelector(".ggb_preview")!==null&&(Bt.querySelector(".ggb_preview").style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Bt.style.transform="none",Bt.style.webkitTransform="none")}function he(Bt,vt,gt,Et,Ct,St){var Tt=null;if(St!=null&&St!="")for(var mt=Bt.parentNode;mt!=null;)if((" "+mt.className+" ").indexOf(" "+St+" ")>-1){Tt=mt;break}else mt=mt.parentNode;var xt=0,ft=0,z=0,tt=0,at=0,it=0,lt=0;if(Tt)xt=Tt.offsetWidth,ft=Math.max(Et?Tt.offsetWidth:0,Tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xt=Math.min(window.innerWidth,document.documentElement.clientWidth),ft=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xt):(xt=window.innerWidth,ft=window.innerHeight,z=window.innerWidth),Bt){var ut=Bt.getBoundingClientRect();ut.left>0&&ut.left<=xt&&(Ct===void 0||!Ct)&&(document.dir==="rtl"?(at=xt-ut.width-ut.left,it=z<=480?10:30):(it=ut.left,at=z<=480?10:30),tt=it+at)}if(Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var dt=Bt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,lt=40)}}return Bt&&((gt===void 0||!gt)&&vt>0&&vt+tt1&&(St=!0)),vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(St=!0),!(Bt.hasOwnProperty("disableAutoScale")&&Bt.disableAutoScale))Ct=ae(Bt,vt,St,gt,Bt.scaleContainerClass);else return Et;return St&&(!Bt.hasOwnProperty("scale")||Et===1)?Ct:Math.min(Et,Ct)}function ot(Bt){var vt=Math.min(window.innerWidth,document.documentElement.clientWidth),gt=Math.min(window.innerHeight,document.documentElement.clientHeight),Et=Bt.getBoundingClientRect(),Ct=(vt-Et.width)/2,St=(gt-Et.height)/2;St<0&&(St=0),Bt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ct<40?Bt.style.left="40px":Bt.style.left=Ct+"px",Bt.style.top=St+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(St<40?Bt.style.top="40px":Bt.style.top=St+"px",Bt.style.left=Ct+"px")}function zt(Bt,vt){var gt=Bt.querySelector(".appletParameters");if(gt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!==gt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Bt)}if(gt.parentElement&&/fullscreen/.test(gt.parentElement.className))return;var Et=Re(vt,Bt);mn()&>.setAttribute("data-param-scale",Et);for(var Ct=null,St=0;St=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(mn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(mn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(mn){var gn=c[mn];return gn==null?null:gn},r=d,webModule.__errFn=e}function B(){function mn(Bt){var vt=Bt.lastIndexOf(rb);vt==-1&&(vt=Bt.length);var gt=Bt.indexOf(sb);gt==-1&&(gt=Bt.length);var Et=Bt.lastIndexOf(tb,Math.min(gt,vt));return Et>=O?Bt.substring(O,Et+P):W}function gn(Bt){if(!Bt.match(/^\w+:\/\//)){var vt=o.createElement(ub);vt.src=Bt+vb,Bt=mn(vt.src)}return Bt}function he(){var Bt=__gwt_getMetaProperty(wb);return Bt!=null?Bt:W}function ae(){for(var Bt=o.getElementsByTagName(_),vt=O;vtO?Bt[Bt.length-P].href:W}function ot(){var Bt=o.location;return Bt.href==Bt.protocol+zb+Bt.host+Bt.pathname+Bt.search+Bt.hash}var zt=he();return zt==W&&(zt=ae()),zt==W&&(zt=Re()),zt==W&&ot()&&(zt=mn(o.location.href)),zt=gn(zt),zt}function C(mn){return mn.match(/^\//)||mn.match(/^[a-zA-Z]+:\/\//)?mn:webModule.__moduleBase+mn}function D(){var mn=[],gn=O,he=[],ae=[];function Re(Bt){var vt=ae[Bt](),gt=he[Bt];if(vt in gt)return vt;var Et=[];for(var Ct in gt)Et[gt[Ct]]=Ct;throw r&&r(Bt,Et,vt),null}if(__gwt_isKnownPropertyValue=function(Bt,vt){return vt in he[Bt]},webModule.__getPropMap=function(){var Bt={};for(var vt in he)he.hasOwnProperty(vt)&&(Bt[vt]=Re(vt));return Bt},webModule.__computePropValue=Re,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ot;try{ot=Cb;var zt=ot.indexOf(Db);zt!=-1&&(gn=parseInt(ot.substring(zt+P),$),ot=ot.substring(O,zt))}catch(Bt){}return webModule.__softPermutationId=gn,C(ot+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(mn,gn,he){"use strict";he.d(gn,{Ax:function(){return zt},Ds:function(){return Bt},KI:function(){return gt},SI:function(){return ot},f1:function(){return Re}});var ae=he(3294);function Re(Et){let Ct=!0;if(Et.length>0){for(let St=0;Stnew Promise((z,tt)=>{var at=ut=>{try{lt(ft.next(ut))}catch(dt){tt(dt)}},it=ut=>{try{lt(ft.throw(ut))}catch(dt){tt(dt)}},lt=ut=>ut.done?z(ut.value):Promise.resolve(ut.value).then(at,it);lt((ft=ft.apply(mt,xt)).next())}),Tt=({data:mt,className:xt,fullWidth:ft,style:z={},onClose:tt,onOk:at,showFullTools:it,noAssociationId:lt})=>{const ut=(0,ae.useRef)(null),dt=(0,ae.useRef)(null),Pt=(0,ae.useRef)(null),At=(0,ae.useRef)(null),[Dt,Ft]=(0,ae.useState)(!1),[jt,Nt]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>(Pt.current||(Pt.current=document.createElement("style"),document.head.appendChild(Pt.current)),mt!=null&&mt.visible?(document.body.setAttribute("data-custom","y-hidden"),Pt.current.innerHTML=" html { overflow-y: hidden; }",mt!=null&&mt.src&&Gt()):(document.body.removeAttribute("data-custom"),Pt.current&&(document.head.removeChild(Pt.current),Pt.current=null)),()=>{document.body.removeAttribute("data-custom"),Pt.current&&(document.head.removeChild(Pt.current),Pt.current=null)}),[mt==null?void 0:mt.visible]);const Gt=()=>Ct(void 0,null,function*(){Ft(!0),Nt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Vt=yield(0,Et.ZJ)(mt==null?void 0:mt.src);ut.current.src="",ut.current.src=Vt,ut.current.onload=function(){Ut()},Ft(!1),Nt("")}),Ht=Vt=>Ct(void 0,null,function*(){Ft(!0),Nt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const oe=yield(0,gt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:mt.title,file:Vt.dataUrl}});oe!=null&&oe.id&&!lt?(yield(0,gt.ZP)(`/api/attachments/${mt.id}/add_subitem.json`,{method:"post",body:{subitem_id:oe==null?void 0:oe.id,settings:JSON.stringify(Vt.state)}})).status===0&&at():oe!=null&&oe.id&&at(oe),Ft(!1),Nt("")}),Yt=()=>{const Vt=document.querySelector('a[href="https://markerjs.com/"]');Vt&&Vt.parentNode&&(Vt.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(se=>{const de=document.querySelector(se.name);de&&de.setAttribute("title",se.title)})},Ut=()=>{dt.current=new vt.hP(ut.current),dt.current.targetRoot=At.current,dt.current.addEventListener("render",Ht),dt.current.addEventListener("beforeclose",tt),it&&(dt.current.availableMarkerTypes=dt.current.ALL_MARKER_TYPES,dt.current.uiStyleSettings.redoButtonVisible=!0,dt.current.uiStyleSettings.notesButtonVisible=!0,dt.current.uiStyleSettings.zoomButtonVisible=!0,dt.current.uiStyleSettings.zoomOutButtonVisible=!0,dt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=dt.current.uiStyleSettings,dt.current.show(),mt!=null&&mt.snapshotData&&dt.current.restoreState(mt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Yt()},300)};return ae.createElement(ae.Fragment,null,(mt==null?void 0:mt.visible)&&ae.createElement(Bt.Z,{spinning:Dt,tip:jt,style:{position:"absolute",width:"100vw"}},ae.createElement("div",{ref:At,className:zt()(Re.imageDimensions,xt,ft?Re.fullWidth:""),style:z},ae.createElement("img",{className:Re.img,ref:ut}))))}},68664:function(mn,gn,he){"use strict";he.d(gn,{N:function(){return tt}});var ae=he(59301),Re=he(82326),ot=he(62957),zt=he(37568),Bt=he(6767),vt=he(77019),gt=he(5269),Et=he(99064),Ct={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},St=he(92310),Tt=he.n(St),mt=he(87169),xt=he(59301),ft=(at,it,lt)=>new Promise((ut,dt)=>{var Pt=Ft=>{try{Dt(lt.next(Ft))}catch(jt){dt(jt)}},At=Ft=>{try{Dt(lt.throw(Ft))}catch(jt){dt(jt)}},Dt=Ft=>Ft.done?ut(Ft.value):Promise.resolve(Ft.value).then(Pt,At);Dt((lt=lt.apply(at,it)).next())});const{Option:z}=Re.default,tt=({subId:at,value:it,selectvalues:lt,disabled:ut,knowledgeOptions:dt=[],className:Pt,height:At,onChange:Dt=()=>{},onAddKnowledgeFinish:Ft=()=>{},zIndex:jt=1e3})=>{const Nt=(0,ae.useRef)(),[Gt,Ht]=(0,ae.useState)([]);it=it||[];const Yt=(Vt,oe)=>{Vt?(Ht([...oe]),Dt([...oe])):(Ht([]),Dt([]))};(0,ae.useEffect)(()=>{(lt==null?void 0:lt.length)>0?(Ht([...lt]),Dt([...lt])):(Ht([]),Dt([]))},[dt]),(0,ae.useEffect)(()=>{(it==null?void 0:it.length)>0&&Dt([...it])},[dt]);const Ut=Vt=>{Vt.preventDefault(),Nt.current="",ot.default.confirm({centered:!0,width:585,zIndex:jt,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:xt.createElement("div",{className:"font14"},xt.createElement("div",{className:Ct.public_tips},xt.createElement(mt.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),xt.createElement("div",{style:{display:"flex",alignItems:"center"}},xt.createElement("div",{style:{width:"95px"}},xt.createElement("span",{className:Ct.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),xt.createElement(zt.default,{className:Ct.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Nt.current,onChange:oe=>{Nt.current=oe.target.value}}))),onOk:()=>new Promise((oe,se)=>ft(void 0,null,function*(){if(!Nt.current)return Bt.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),se();if(Nt.current.length>20)return Bt.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),se();const de=yield(0,Et.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Nt.current,sub_discipline_id:at}});if((de==null?void 0:de.status)===0){Ft({id:de.tag_discipline_id,name:Nt.current,type:"personal"});let Se=lt||[];Se.push(de.tag_discipline_id),Dt([...Se]),Ht([...Se]),Dt([...Se])}return oe()}))})};return xt.createElement(vt.Z,{wrap:!1,align:"middle",className:Tt()(Ct.wrap,Pt)},xt.createElement(gt.Z,null,xt.createElement(Re.default,{mode:"multiple",disabled:!at||ut,className:Ct.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Yt,style:{width:At||490},showSearch:!0,allowClear:!0,value:Gt,filterOption:(Vt,oe)=>oe.label.indexOf(Vt.toLowerCase())>=0},dt==null?void 0:dt.map(Vt=>xt.createElement(z,{key:Vt.id,value:Vt.id,label:Vt.name},xt.createElement("div",{style:{display:"flex",alignItems:"center"}},xt.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Vt.name),(Vt==null?void 0:Vt.type)==="personal"&&xt.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),at&&xt.createElement(gt.Z,{className:`ml20 ${At&&Ct.add_style}`},xt.createElement("span",{className:Ct.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),xt.createElement("span",{className:Ct.linkBtn,onClick:Ut},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},41588:function(mn,gn,he){"use strict";var ae=he(59301),Re=he(77019),ot=he(5269),zt=he(20554),Bt=he(99571),vt=he(85149),gt=he(88010),Et=he(48136),Ct=he(59301);const St=(0,ae.forwardRef)(({callback:Tt,showSaveButton:mt,value:xt=""},ft)=>{const z=(0,ae.useRef)(),tt=[{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 "}]}]}],at=[{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}`}]}]}],it=dt=>{z.current.setValue(z.current.getValue()+" "+dt.value+" ")},lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ct.createElement(Re.Z,{className:gt.Z.lists,gutter:[10,10]},tt.map((dt,Pt)=>Ct.createElement(ot.Z,{flex:"110px",className:gt.Z.item},Ct.createElement("div",null,Ct.createElement(vt.Z,{value:`$$${dt.value}$$`}),dt.name),Ct.createElement("div",{className:gt.Z.children},dt.children.map((At,Dt)=>Ct.createElement("div",{key:Dt},Ct.createElement("h1",null,At.name),Ct.createElement(Re.Z,{gutter:[10,10]},At.data.map((Ft,jt)=>Ct.createElement(ot.Z,{key:jt,onClick:()=>it(Ft),className:gt.Z.diamond},Ct.createElement(vt.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ct.createElement(Re.Z,{className:gt.Z.lists,gutter:[10,10]},at.map((dt,Pt)=>Ct.createElement(ot.Z,{flex:"110px",className:gt.Z.item},Ct.createElement("div",null,Ct.createElement(vt.Z,{value:"`$$"+dt.value+"$$`"}),dt.name),Ct.createElement("div",{className:gt.Z.children},dt.children.map((At,Dt)=>Ct.createElement("div",{key:Dt},At.name&&Ct.createElement("h1",null,At.name),Ct.createElement(Re.Z,{gutter:[10,10]},At.data.map((Ft,jt)=>Ct.createElement(ot.Z,{key:jt,onClick:()=>it(Ft),className:gt.Z.diamond},Ct.createElement(vt.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))}],ut=()=>{var dt=document.createElement("div");dt.innerHTML=z.current.getValue();var Pt=dt.innerText;return Tt&&Tt(Pt),Pt};return(0,ae.useImperativeHandle)(ft,()=>({getData:ut})),Ct.createElement("div",{className:gt.Z.mathWrap},Ct.createElement(zt.default,{defaultActiveKey:"1",items:lt}),Ct.createElement("math-field",{locale:"zh_cn",className:gt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xt||""),mt&&Ct.createElement("div",{className:gt.Z.button},Ct.createElement(Bt.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gn.Z=St},8797:function(mn,gn,he){"use strict";var ae=he(59301),Re=he(93314),ot=he(99571),zt=Object.defineProperty,Bt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,St=(ft,z,tt)=>z in ft?zt(ft,z,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[z]=tt,Tt=(ft,z)=>{for(var tt in z||(z={}))Et.call(z,tt)&&St(ft,tt,z[tt]);if(gt)for(var tt of gt(z))Ct.call(z,tt)&&St(ft,tt,z[tt]);return ft},mt=(ft,z)=>Bt(ft,vt(z));const xt=({img:ft,buttonProps:z={},styles:tt={},customText:at,ButtonText:it,ButtonClick:lt,Buttonclass:ut,ButtonTwo:dt,imgStyles:Pt,loading:At=!1,className:Dt=""})=>ae.createElement("section",{className:`tc animated fadeIn ${Dt}`,style:Tt({color:"#999",margin:"100px auto",visibility:At?"hidden":"visible"},tt)},ae.createElement("img",{src:ft||Re,style:mt(Tt({},Pt),{pointerEvents:"none",userSelect:"none"})}),ae.createElement("p",{className:"mt20 font14"},at||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),it&&ae.createElement(ot.ZP,Tt({className:ut,onClick:lt},z),it),dt&&dt);gn.Z=xt},23210:function(mn,gn,he){"use strict";he.d(gn,{Z:function(){return ut}});var ae=he(59301),Re={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ot=he(99571),zt=he(70557),Bt=he(23954),vt=he(25399),gt=he(955),Et=he(94941),Ct=he(8797),St=he(3294),Tt=he(19381),mt=he(59301),xt=Object.defineProperty,ft=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(dt,Pt,At)=>Pt in dt?xt(dt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:At}):dt[Pt]=At,it=(dt,Pt)=>{for(var At in Pt||(Pt={}))z.call(Pt,At)&&at(dt,At,Pt[At]);if(ft)for(var At of ft(Pt))tt.call(Pt,At)&&at(dt,At,Pt[At]);return dt},lt=(dt,Pt,At)=>new Promise((Dt,Ft)=>{var jt=Ht=>{try{Gt(At.next(Ht))}catch(Yt){Ft(Yt)}},Nt=Ht=>{try{Gt(At.throw(Ht))}catch(Yt){Ft(Yt)}},Gt=Ht=>Ht.done?Dt(Ht.value):Promise.resolve(Ht.value).then(jt,Nt);Gt((At=At.apply(dt,Pt)).next())}),ut=({editOffice:dt="view",data:Pt,theme:At,type:Dt,filename:Ft,monacoEditor:jt,className:Nt,style:Gt,close:Ht,onClose:Yt,hasMask:Ut,disabledDownload:Vt,onImgDimensions:oe,showNodata:se,recordInfo:de})=>{const[Se,Qt]=(0,ae.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ne,ye]=(0,ae.useState)(""),[we,be]=(0,ae.useState)(),fe=window.ENV==="build"?"/react/build":"",pe=location.host.startsWith("localhost")?St.Z.PROXY_SERVER:St.Z.API_SERVER,Ce=10*(1024*1024),ve=(0,ae.useRef)();Pt!=null&&Pt.startsWith("/api")&&Dt!=="txt"&&(Pt=St.Z.API_SERVER+Pt);const Fe=Kt=>Kt.substring(Kt.lastIndexOf("/")+1).split(".").pop();Ft&&jt&&(jt.filename=Ft),(0,ae.useEffect)(()=>{var Kt,wt;const Lt=(wt=(Kt=document.cookie)==null?void 0:Kt.replace(/\s/g,""))==null?void 0:wt.split(";");Lt==null||Lt.map(Xt=>{let re=Xt.split("=");re[0]==="_educoder_session"&&ye(re[1])})},[]),(0,ae.useEffect)(()=>{Dt==="office"&&(Pt.indexOf("bigfilescdn.")>-1||Pt.indexOf("bigfiles1")>-1?be({url:Pt,fileType:Fe(Pt),model:Pt.indexOf("model=edit")?"edit":"view"}):ge())},[Dt,Pt]);const ge=()=>lt(void 0,null,function*(){console.log("data:",Pt);let Kt=Pt;Pt.startsWith("http")||(Kt=location.origin+Kt);let wt=new URL(Kt).pathname.split("/").pop();const Lt=yield(0,Et.gJ)({attachment_id:wt});Lt.url=pe+Lt.url,be(Lt)}),xe=()=>{if(Pt.startsWith("http")||Pt.startsWith("blob:")){ee();return}(0,gt.Sv)(Ft||"educoder",Pt,Ft)},ee=()=>{de&&(0,Tt.fc)({id:de==null?void 0:de.id,watch_type:1,course_id:de==null?void 0:de.course_id}),(0,gt.Nd)(Ft||"educoder",decodeURIComponent(Pt))};return mt.createElement("div",{style:it({},Gt||{}),className:`${Ut&&Re.bgBlack} ${Dt?Re.wrp:"hide"}`},Ht&&mt.createElement("div",{className:Re.close,ref:ve},!!oe&&mt.createElement(vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ve.current},mt.createElement("span",{onClick:()=>{Yt(),oe()}},mt.createElement("i",{className:"icon-yulanpizhu"}))),!Vt&&mt.createElement(vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ve.current},mt.createElement("span",{onClick:ee},mt.createElement("i",{className:"icon-quxiaozhiding"}))),mt.createElement(vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ve.current},mt.createElement("span",{className:"",onClick:Yt},mt.createElement("i",{className:"icon-guanbi1"})))),mt.createElement("div",{className:`${Re[Nt]} ${Nt} ${Re.monaco} ${Dt==="txt"?"show":"hide"}`},Dt==="txt"&&mt.createElement(mt.Fragment,null,mt.createElement(Bt.ZP,it({},jt)))),Dt==="audio"&&mt.createElement("audio",{src:`${(Pt==null?void 0:Pt.indexOf("http://"))>-1||(Pt==null?void 0:Pt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Pt}`,autoPlay:!0}),Dt==="video"&&mt.createElement(mt.Fragment,null,(Pt==null?void 0:Pt.indexOf("http"))>-1?mt.createElement("video",{controls:!0,src:`${Pt}`,autoPlay:!0}):mt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Pt}`,autoPlay:!0})),Dt==="office"&&we&&mt.createElement("iframe",{src:`${fe}/office.html?key=${we.key}&url=${btoa(we.url)}&callbackUrl=${pe+(we.callbackUrl||"")}&fileType=${we.fileType}&title=${we.title||""}&model=${dt}&officeServer=${St.Z.ONLYOFFICE}&disabledDownload=${!!Vt}`}),Dt==="html"&&mt.createElement("iframe",{src:Pt+"&disposition=inline"}),Dt==="pdf"&&mt.createElement("iframe",{src:`${fe}/js/pdfview/index.html?filename=${Ft||"educoder.pdf"}&url=${encodeURIComponent(Pt)}&disabledDownload=${!!Vt}`}),Dt==="image"&&mt.createElement("img",{src:`${(Pt==null?void 0:Pt.indexOf("http://"))>-1||(Pt==null?void 0:Pt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Pt}`}),(Dt==="other"||Dt==="download")&&mt.createElement(mt.Fragment,null,se?mt.createElement(Ct.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:mt.createElement(ot.ZP,{icon:mt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:xe,disabled:Vt},"\u4E0B\u8F7D")}):mt.createElement(ot.ZP,{type:"primary",size:"middle",onClick:xe,disabled:Vt},mt.createElement(zt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},41984:function(mn,gn,he){"use strict";he.d(gn,{h:function(){return z},x:function(){return tt}});var ae=he(12290),Re=he(43809),ot=he(85149),zt=he(59301),Bt=Object.defineProperty,vt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Tt=(at,it,lt)=>it in at?Bt(at,it,{enumerable:!0,configurable:!0,writable:!0,value:lt}):at[it]=lt,mt=(at,it)=>{for(var lt in it||(it={}))Ct.call(it,lt)&&Tt(at,lt,it[lt]);if(Et)for(var lt of Et(it))St.call(it,lt)&&Tt(at,lt,it[lt]);return at},xt=(at,it)=>vt(at,gt(it)),ft=(at,it)=>{var lt={};for(var ut in at)Ct.call(at,ut)&&it.indexOf(ut)<0&&(lt[ut]=at[ut]);if(at!=null&&Et)for(var ut of Et(at))it.indexOf(ut)<0&&St.call(at,ut)&&(lt[ut]=at[ut]);return lt};const z=at=>{var it=at,{value:lt,onChange:ut,scrollId:dt}=it,Pt=ft(it,["value","onChange","scrollId"]);return zt.createElement("div",{id:dt||""},zt.createElement(ae.Z,xt(mt({},Pt),{defaultValue:lt,onChange:(At,Dt)=>{Dt!=null&&Dt.length?ut(At,Dt):ut(At)}})))},tt=({value:at,onChange:it,placeholder:lt,height:ut=140,isEdit:dt,miniToolbar:Pt,watch:At=!0})=>dt?zt.createElement(ae.Z,{watch:At,isFocus:!0,height:ut||void 0,placeholder:lt,defaultValue:at,onChange:it,miniToolbar:Pt}):zt.createElement("div",{style:{cursor:"pointer"}},at?zt.createElement(ot.Z,{className:Re.Z.inputBorder,value:at}):zt.createElement("div",{className:`${Re.Z.inputBorder} ${Re.Z.placeholder} inputBorderError`},lt))},85149:function(mn,gn,he){"use strict";he.d(gn,{z:function(){return Dt},Z:function(){return Ft}});var ae=he(59301),Re=he(50304),ot=he(24768),zt=he(64018),Bt=he(79710),vt=he(3294),gt=he(955),Et=he(15342),Ct=he(1012),St=he(23210),Tt=he(59301),xt=({html:jt})=>{const Nt=(0,ae.useRef)(null),Gt=(0,ae.useRef)(null),Ht=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 36px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,ae.useEffect)(()=>{const Yt=Nt.current.attachShadow({mode:"open"});Gt.current=document.createElement("div"),Gt.current.className="markdown-body",Gt.current.innerHTML=jt,Yt.appendChild(Gt.current);const Ut=document.createElement("style");return Ut.textContent=Ht,Yt.appendChild(Ut),()=>{Yt.innerHTML=""}},[]),(0,ae.useEffect)(()=>{Gt.current&&(Gt.current.innerHTML=jt)},[jt]),Tt.createElement("div",{ref:Nt})},ft=Object.defineProperty,z=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,it=(jt,Nt,Gt)=>Nt in jt?ft(jt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):jt[Nt]=Gt,lt=(jt,Nt)=>{for(var Gt in Nt||(Nt={}))tt.call(Nt,Gt)&&it(jt,Gt,Nt[Gt]);if(z)for(var Gt of z(Nt))at.call(Nt,Gt)&&it(jt,Gt,Nt[Gt]);return jt};const ut="@\u2581\u2581@",dt="@\u2581@",Pt=/]*>/g;function At(jt){let Nt=document.createElement("div");return Nt.innerHTML=jt,Nt.childNodes.length===0?"":Nt.childNodes[0].nodeValue}const Dt=(jt,Nt)=>{jt=jt||"";const Gt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ht=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Yt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Nt?jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Gt,(Vt,oe,se,de,Se,Qt,ne)=>{const ye=oe||de||Qt,we=se||Se||ne||"?";return vt.Z.API_SERVER+"/api/attachments/"+ye+we+"&t="+(0,gt.Jn)(ye,Date.now())+(Vt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(jt=jt.replace(Ut,(Vt,oe,se,de,Se,Qt,ne)=>{const ye=oe||de||Qt,we=se||Se||ne||"?";return vt.Z.API_SERVER+"/attachments/download/"+ye+we+"&t="+(0,gt.Jn)(ye,Date.now())+(Vt.indexOf(")")>-1?")":"&")}).replace(Gt,(Vt,oe,se,de,Se,Qt,ne)=>{const ye=oe||de||Qt,we=se||Se||ne||"?";return vt.Z.API_SERVER+"/api/attachments/"+ye+we+"&t="+(0,gt.Jn)(ye,Date.now())+(Vt.indexOf(")")>-1?")":"&")}).replace(Ht,(Vt,oe,se,de,Se)=>{const Qt=oe||de,ne=se||Se||"";return'"'+vt.Z.API_SERVER+"/api/attachments/"+Qt+ne+Qt+ne+"&t="+(0,gt.Jn)(Qt,Date.now())}).replace(Yt,(Vt,oe,se,de,Se)=>{const Qt=oe||de,ne=se||Se||"";return"("+vt.Z.API_SERVER+"/files/uploads/"+Qt+ne+Qt+ne+"&t="+(0,gt.Jn)(Qt,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 Ft=({value:jt="",className:Nt,showTextOnly:Gt,showLines:Ht,style:Yt={},stylesPrev:Ut={},highlightKeywords:Vt,showProgramFill:oe,isProgramFill:se,disabledFill:de=!1,programFillValue:Se,onFillChange:Qt=we=>{},onFillBlur:ne=()=>{},onFillFocus:ye=()=>{}})=>{let we=String(jt);const[be,fe]=(0,ae.useState)(""),[pe,ce]=(0,ae.useState)("office"),[Ce,ve]=(0,ae.useState)([]),Fe=(0,ae.useRef)("a"+(0,Ct.Z)()),ge={},xe=(le,Ae,Le)=>{const Be=document.createElement(le===dt?"input":"textarea");Be.style.width="100%",Be.style.height=le===dt?"40px":"151px",Be.rows=5,Be.spellcheck=!1,Be.name="edu-program-fill",Be.placeholder="\u8BF7\u8F93\u5165",Be.dataset.id=Ae;const tn=Object.keys(ge).length;return ge[tn]=Be,`${Be.outerHTML}`};function ee(le){return le=le.replace(/!\[.*?\]\(.*?\)/g,""),le=le.replace(/\[.*?\]\(.*?\)/g,""),le=le.replace(new RegExp("","gs"),""),le=le.replace(//g,""),le=le.replace(//g,""),le=le.replace(new RegExp(".*?<\\/video>","gs"),""),le=le.replace(new RegExp(".*?<\\/audio>","gs"),""),le=le.replace(new RegExp(".*?<\\/style>","gs"),""),le=le.replace(new RegExp(".*?<\\/script>","gs"),""),le}const Kt=le=>le.replace(/([\s\S]+?)<\/style>/gim,function(Ae,Le){let Be=Le.replace(/(\n|\r)/g,"").split("}"),tn=[];return Be.map($e=>{$e!=""&&tn.push(`.${Fe.current} ${$e}`)}),``}),wt=(0,ae.useMemo)(()=>{try{const Be=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,tn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Qe=/\(\/attachments\/download\//g;we=we.replace(Qe,"("+vt.Z.API_SERVER+"/attachments/download/").replace(Be,"("+vt.Z.API_SERVER+"/api/attachments/").replace(tn,'"'+vt.Z.API_SERVER+"/api/attachments/").replace($e,'"'+vt.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `)}catch(Be){}if(oe){let Be=-1;return we=we.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(tn,$e,Qe){var Ze;return++Be,xe(tn,Be,(Ze=Se==null?void 0:Se[Be])==null?void 0:Ze.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Kt(we||"")}
`}let le=Kt(we);le=(0,ot.ZP)(le);const Ae=(0,ot.ez)();we.match(/\[TOC\]/)&&(le=le.replace("

[TOC]

",(0,ot.Qv)()),(0,ot.Iy)()),le=le.replace(/(__special_katext_id_\d+__)/g,(Be,tn)=>{const{type:$e,expression:Qe}=Ae[tn];return(0,Et.renderToString)(At(Qe)||"",{displayMode:$e==="block",throwOnError:!1,output:"html"})}),le=le.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ot.AL)();const Le=document.createElement("div");if(Le.innerHTML=le,Gt)return Le.innerText;if(Vt){const Be=Vt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return It(Le,Be),Le.innerHTML}return setTimeout(()=>te(),500),Le.innerHTML},[we,Vt]);(0,ae.useEffect)(()=>{Rt.current&&Rt.current.querySelectorAll(["input","textarea"]).forEach(Ae=>{Ae.oninput=Lt,Ae.onblur=Xt,Ae.onfocus=re})},[Ce]),(0,ae.useEffect)(()=>{var le,Ae,Le,Be,tn;if(Se!=null&&Se.length)try{const $e=Rt.current.querySelectorAll(".edu-program-fill-score"),Qe=Rt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ze,Ge]of Qe.entries())Ge.value=((le=Se==null?void 0:Se[Ze])==null?void 0:le.value)||"",((Ae=Se==null?void 0:Se[Ze])==null?void 0:Ae.type)==="warning"?Ge.className="program-fill-warning":((Le=Se==null?void 0:Se[Ze])==null?void 0:Le.type)==="success"?Ge.className="program-fill-success":Ge.className="";for(const[Ze,Ge]of $e.entries())Ge.innerHTML=(Be=Se==null?void 0:Se[Ze])!=null&&Be.score?`${(tn=Se==null?void 0:Se[Ze])==null?void 0:tn.score}\u5206`:"";ve(Se)}catch($e){console.log($e,"error")}},[Se]);const Lt=le=>{Ce[le.target.dataset.id]=Ce[le.target.dataset.id]||{},Ce[le.target.dataset.id].value=le.target.value,ve([...Ce]),Qt(Ce,le.target.dataset.id)},Xt=le=>{Ce[le.target.dataset.id]=Ce[le.target.dataset.id]||{},Ce[le.target.dataset.id].value=le.target.value,ve([...Ce]),ne(Ce,le.target.dataset.id)},re=le=>{Ce[le.target.dataset.id]=Ce[le.target.dataset.id]||{},Ce[le.target.dataset.id].value=le.target.value,ve([...Ce]),ye(Ce,le.target.dataset.id)};function It(le,Ae){return le.childNodes.forEach(Le=>{var Be;if(Le.childNodes.length>0)It(Le,Ae);else if(Le.nodeName!=="IMG")if(Le.innerHTML)Le.innerHTML=(Be=Le.innerHTML)==null?void 0:Be.replace(new RegExp(Ae,"gi"),'$&');else{const tn=document.createElement("span");tn.innerHTML=Le.textContent.replace(new RegExp(Ae,"gi"),'$&'),Le.replaceWith(tn)}})}const Rt=(0,ae.useRef)();ot.jb.WebkitLineClamp=Ht,Ht&&(Yt=lt(lt({},Yt),ot.jb));function Wt(le){let Ae=le.target;if(Ae.tagName.toUpperCase()==="A"){let Le=Ae.getAttribute("href");if(Le.indexOf("office")>-1)le.preventDefault(),fe(Le),ce("office");else if(Le.indexOf("application/pdf")>-1)le.preventDefault(),fe(Le),ce("pdf");else if(Le.indexOf("text/html")>-1)le.preventDefault(),fe(Le),ce("html");else if(Le.startsWith("#")){le.preventDefault();let Be=document.getElementById(Le.replace("#",""));Be&&Be.scrollIntoView(!0)}}}const te=()=>{var le;const Ae=(le=Rt.current)==null?void 0:le.querySelectorAll("video");Ae==null||Ae.forEach(Le=>{if(Le.oncontextmenu=()=>!1,Le.src.indexOf(".m3u8")>-1&&!Le.canPlayType("application/vnd.apple.mpegurl")){if(Bt.ZP.isSupported()){var Be=new Bt.ZP;Be.loadSource(Le.src),Be.attachMedia(Le)}}})};(0,ae.useEffect)(()=>{if(Rt.current&&wt&&wt.match(Pt)&&window.PR.prettyPrint(),Rt.current)return Rt.current.addEventListener("click",Wt),()=>{var le;(le=Rt.current)==null||le.removeEventListener("click",Wt),(0,ot.AL)(),(0,ot.Iy)()}},[wt,Rt.current,Wt]),(0,ae.useEffect)(()=>{var le;const Ae=Le=>{Le.preventDefault(),Le.clipboardData.setData("text",window.getSelection().toString())};return(le=Rt.current)==null||le.addEventListener("copy",Ae),()=>{var Le;(Le=Rt.current)==null||Le.removeEventListener("copy",Ae)}},[Rt.current]);const ue=le=>//i.test(le||"");return ae.createElement(ae.Fragment,null,Gt&&ae.createElement("div",{ref:Rt},wt),!Gt&&!ue(wt)&&ae.createElement("div",{ref:Rt,style:lt({},Yt),className:`${Nt||""} ${de?"disabled-fill":""} markdown-body ${Fe.current}`,dangerouslySetInnerHTML:{__html:wt}}),!Gt&&ue(wt)&&ae.createElement(xt,{html:wt}),ae.createElement(St.Z,{close:!0,data:be,type:be!=null&&be.length?pe:"",style:lt({},Ut),onClose:()=>fe("")}))}},81939:function(mn,gn,he){"use strict";he.d(gn,{cT:function(){return jt},pe:function(){return At}});var ae=he(59301),Re=he(14566),ot=he(6767),zt=he(99064),Bt=he(28209),vt=he.n(Bt),gt=he(1012),Et=he(89070),Ct=he(47257),St=he.n(Ct),Tt=Object.defineProperty,mt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(Gt,Ht,Yt)=>Ht in Gt?Tt(Gt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Gt[Ht]=Yt,it=(Gt,Ht)=>{for(var Yt in Ht||(Ht={}))z.call(Ht,Yt)&&at(Gt,Yt,Ht[Yt]);if(ft)for(var Yt of ft(Ht))tt.call(Ht,Yt)&&at(Gt,Yt,Ht[Yt]);return Gt},lt=(Gt,Ht)=>mt(Gt,xt(Ht)),ut=(Gt,Ht)=>{var Yt={};for(var Ut in Gt)z.call(Gt,Ut)&&Ht.indexOf(Ut)<0&&(Yt[Ut]=Gt[Ut]);if(Gt!=null&&ft)for(var Ut of ft(Gt))Ht.indexOf(Ut)<0&&tt.call(Gt,Ut)&&(Yt[Ut]=Gt[Ut]);return Yt},dt=(Gt,Ht,Yt)=>new Promise((Ut,Vt)=>{var oe=Se=>{try{de(Yt.next(Se))}catch(Qt){Vt(Qt)}},se=Se=>{try{de(Yt.throw(Se))}catch(Qt){Vt(Qt)}},de=Se=>Se.done?Ut(Se.value):Promise.resolve(Se.value).then(oe,se);de((Yt=Yt.apply(Gt,Ht)).next())});const{Dragger:Pt}=Re.default,At=Gt=>{const Ht="bf3c199c2470cb477d907b1e0917c17b",Yt="5183666c72eec9e4";var Ut=vt().enc.Utf8.parse(Ht);let Vt=vt().enc.Utf8.parse(Yt);var oe=vt().AES.decrypt(Gt,Ut,{iv:Vt,mode:vt().mode.CBC});return oe.toString(vt().enc.Utf8)};let Dt;const Ft=Gt=>dt(void 0,[Gt],function*({identifier:Ht,oldFilename:Yt,newFilename:Ut}){var Vt,oe,se,de,Se,Qt;const ne=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});ne.data=JSON.parse(At(ne.data));const ye=new OSS({endpoint:(Vt=ne==null?void 0:ne.data)==null?void 0:Vt.end_point,region:(oe=ne==null?void 0:ne.data)==null?void 0:oe.region,accessKeyId:(se=ne==null?void 0:ne.data)==null?void 0:se.access_key_id,accessKeySecret:(de=ne==null?void 0:ne.data)==null?void 0:de.access_key_secret,bucket:(Se=ne==null?void 0:ne.data)==null?void 0:Se.bucket,stsToken:(Qt=ne==null?void 0:ne.data)==null?void 0:Qt.security_token});return new Promise((we,be)=>{console.log(11111,`${Ht}/${Yt}`,`${Ht}/${Ut}`,ne.data),ye.copy(`/${Ht}/${Yt}`,`/${Ht}/${Ut}`).then(fe=>{console.log("\u62F7\u8D1D\u6210\u529F",fe)}).catch(fe=>{console.log(fe)})})}),jt=(Gt,Ht,Yt)=>dt(void 0,null,function*(){var Ut,Vt,oe,se,de,Se;Ht.file_name=Gt.name;const Qt=yield(0,zt.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",At(Qt.data)),Qt.data=JSON.parse(At(Qt.data));const ne=Gt.name.split(".");ne.pop();const ye=Ht.realFileName?ne.join(""):(0,gt.Z)(),we=new(St())({endpoint:(Ut=Qt==null?void 0:Qt.data)==null?void 0:Ut.end_point,region:(Vt=Qt==null?void 0:Qt.data)==null?void 0:Vt.region,accessKeyId:(oe=Qt==null?void 0:Qt.data)==null?void 0:oe.access_key_id,accessKeySecret:(se=Qt==null?void 0:Qt.data)==null?void 0:se.access_key_secret,bucket:(de=Qt==null?void 0:Qt.data)==null?void 0:de.bucket,stsToken:(Se=Qt==null?void 0:Qt.data)==null?void 0:Se.security_token});return new Promise((be,fe)=>{var pe;we.multipartUpload(`${ye}`,new Blob([Gt],{type:Gt.type}),lt(it({timeout:200*1e3,partSize:102400},Yt),{callback:{url:(pe=Qt==null?void 0:Qt.data)==null?void 0:pe.callback_url,host:Qt==null?void 0:Qt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,zt.rz)(Ht)}})).then(function(ce){var Ce;Gt.response=(Ce=ce.data)==null?void 0:Ce.data,be(ce==null?void 0:ce.data)}).catch(function(ce){fe(ce),console.log("err:",ce)})})}),Nt=Gt=>{var Ht=Gt,{user:Yt,cancelUpload:Ut}=Ht,Vt=ut(Ht,["user","cancelUpload"]);const[oe,se]=(0,ae.useState)([]);let[de,Se]=(0,ae.useState)();const Qt={onRemove:ye=>{se([...oe.filter(we=>we.name!==ye.name)]),Vt.onChange(oe.filter(we=>we.name!==ye.name))},disabled:Vt.disabled,multiple:!0,fileList:oe==null?void 0:oe.map(ye=>ye.file),customRequest:()=>{},beforeUpload:ye=>dt(void 0,null,function*(){let we=Vt.maxSize||1073741824;if(oe.filter(be=>be.name===ye.name).length){ot.ZP.info(`${ye.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(ye==null?void 0:ye.size)>we?(ot.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${we/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(oe.push({name:ye.name,file:ye}),se([...oe]),Vt.onChange(oe),!1)})},ne=(ye,we)=>dt(void 0,null,function*(){var be,fe,pe,ce,Ce,ve;we.file_name=ye.name;const Fe=ye.name,ge=yield(0,zt.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(ge.data=JSON.parse(At(ge.data)),(ge==null?void 0:ge.status)!==0){oe[oe.findIndex(Kt=>Kt.name===Fe)].status="error",oe[oe.findIndex(Kt=>Kt.name===Fe)].file.status="error",Vt.onChange(oe),ot.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}de=new(St())({endpoint:(be=ge==null?void 0:ge.data)==null?void 0:be.end_point,region:(fe=ge==null?void 0:ge.data)==null?void 0:fe.region,accessKeyId:(pe=ge==null?void 0:ge.data)==null?void 0:pe.access_key_id,accessKeySecret:(ce=ge==null?void 0:ge.data)==null?void 0:ce.access_key_secret,bucket:(Ce=ge==null?void 0:ge.data)==null?void 0:Ce.bucket,stsToken:(ve=ge==null?void 0:ge.data)==null?void 0:ve.security_token}),console.log(ye,"file"),Se(de);const xe=ye.name.split(".");xe.pop();const ee=Fe.indexOf(".")>-1?we.realFileName?xe.join("."):(0,gt.Z)():Fe;return new Promise((Kt,wt)=>{var Lt;try{de.multipartUpload(`${Vt.identifier}/${ee}${Fe.indexOf(".")>-1?"."+Fe.split(".").pop():""}`,new Blob([ye.file],{type:ye.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Xt,re,It)=>{try{console.log("\u8FDB\u5EA6",Xt,re,It);const Rt=oe.findIndex(Wt=>Wt.name===Fe);oe[Rt].file.percent=Xt*100,oe[Rt].tempCheckpoint=re,se([...oe])}catch(Rt){}},checkpoint:oe[oe.findIndex(Xt=>Xt.name===Fe)].tempCheckpoint,callback:{customValue:{id:Fe+""},url:(Lt=ge==null?void 0:ge.data)==null?void 0:Lt.callback_url,host:ge==null?void 0:ge.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,zt.rz)(we)}}).then(function(Xt){var re,It,Rt;const Wt=oe.findIndex(ue=>ue.name===Fe);let te="done";if(((re=Xt.data)==null?void 0:re.status)===0){ye.response=(It=Xt.data)==null?void 0:It.data;const ue=oe.findIndex(le=>le.name===Fe);oe[ue].status="done",oe[ue].file.status="done"}else ot.ZP.warning((Rt=Xt.data)==null?void 0:Rt.message),te="error";oe[Wt].status=te,oe[Wt].file.status=te,Vt.onChange(oe),Kt(Xt==null?void 0:Xt.data)}).catch(function(Xt){oe[oe.findIndex(re=>re.name===Fe)].status="error",oe[oe.findIndex(re=>re.name===Fe)].file.status="error",ot.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),se([...oe]),Vt.onChange(oe),wt(Xt),console.log("err:",Xt)})}catch(Xt){}})});return(0,ae.useEffect)(()=>{oe.every(ye=>ye==="done"||ye==="error")&&Vt.onComplete(oe)},[oe]),(0,ae.useEffect)(()=>{Ut&&(de==null||de.cancel())},[Ut]),(0,ae.useEffect)(()=>{Vt.uploading&&oe.map(ye=>dt(void 0,null,function*(){var we;if((!ye.status||ye.status==="error")&&!Ut){ye.status="uploading",ye.file.status="uploading";const be=yield ne(ye,{login:(we=Yt==null?void 0:Yt.userInfo)==null?void 0:we.login,container_type:Vt.container_type,container_id:Vt.container_id,description:Vt.description,realFileName:Vt.realFileName})}}))},[Vt.uploading]),ae.createElement(Pt,lt(it({},Qt),{height:Vt.height,className:Vt.className}),ae.createElement("p",{className:"ant-upload-hint"},Vt.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};gn.ZP=(0,Et.connect)(({loading:Gt,globalSetting:Ht,user:Yt})=>({globalSetting:Ht,loading:Gt.models.competitions,user:Yt}))(Nt)},97692:function(mn,gn,he){"use strict";he.d(gn,{h:function(){return dt}});var ae=he(59301),Re=he(82326),ot=he(28284),zt=he(99571),Bt=he(89780),vt=he.n(Bt),gt=he(37036),Et=he(95625),Ct=Object.defineProperty,St=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,z=(Pt,At,Dt)=>At in Pt?Ct(Pt,At,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Pt[At]=Dt,tt=(Pt,At)=>{for(var Dt in At||(At={}))xt.call(At,Dt)&&z(Pt,Dt,At[Dt]);if(mt)for(var Dt of mt(At))ft.call(At,Dt)&&z(Pt,Dt,At[Dt]);return Pt},at=(Pt,At)=>St(Pt,Tt(At));const it=Re.default.Option,lt={labelCol:{span:4},wrapperCol:{span:20}},ut={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"]};gn.Z=({callback:Pt,onCancel:At})=>{const[Dt,Ft]=(0,ae.useState)("python");function jt(Gt){Ft(ut[Gt][1])}function Nt(Gt){Pt(Gt)}return ae.createElement(ot.default,at(tt({},lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Nt,style:{width:500}}),ae.createElement(ot.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Re.default,{getPopupContainer:Gt=>Gt.parentNode,onChange:jt},Object.keys(ut).map(Gt=>ae.createElement(it,{key:Gt,value:Gt},ut[Gt][0])))),ae.createElement(ot.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(dt,{mode:Dt})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(zt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(zt.ZP,{type:"ghost",onClick:At},"\u53D6\u6D88")))};function dt({value:Pt,onChange:At,mode:Dt,options:Ft={}}){const jt=(0,ae.useRef)(),[Nt,Gt]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Nt){let Ht=function(Yt){const Ut=Yt.getValue();At&&At(Ut)};return Nt.on("change",Ht),()=>{Nt.off("change",Ht)}}},[Nt,At]),(0,ae.useEffect)(()=>{Nt&&Nt.setOption("mode",Dt)},[Nt,Dt]),(0,ae.useEffect)(()=>{Nt&&(Pt!==Nt.getValue()||Pt==="")&&setTimeout(()=>{Nt.setValue(Pt||"")},300)},[Nt,Pt]),(0,ae.useEffect)(()=>{if(jt.current&&!Nt){const Ht=vt().fromTextArea(jt.current,tt({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ft));Gt(Ht)}},[jt.current,Nt]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:jt}))}},12290:function(mn,gn,he){"use strict";he.d(gn,{Z:function(){return zn}});var ae=he(59301),Re=he(89780),ot=he.n(Re),zt=he(76374),Bt=he(37036),vt=he(6313),gt=he(25717),Et=he(99498),Ct=he(25419),St=he(67549),Tt=he(85149),mt=({value:Ye="",className:Ve,showTextOnly:He,showLines:Fn,style:On={}})=>{const Qn=(0,ae.useMemo)(()=>"",[Ye]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Qn}}))},xt=he(59301),ft=Object.defineProperty,z=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ut=(Ye,Ve,He)=>Ve in Ye?ft(Ye,Ve,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ye[Ve]=He,dt=(Ye,Ve)=>{for(var He in Ve||(Ve={}))it.call(Ve,He)&&ut(Ye,He,Ve[He]);if(at)for(var He of at(Ve))lt.call(Ve,He)&&ut(Ye,He,Ve[He]);return Ye},Pt=(Ye,Ve)=>z(Ye,tt(Ve));let At=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Dt({onActionCallback:Ye,title:Ve,icon:He,actionName:Fn,className:On="",children:Qn}){function yn(){Ye(Fn)}return xt.createElement("a",{title:Ve,className:On,onClick:yn},xt.createElement("i",{className:`${He}`}),Qn)}var Ft=({watch:Ye,showNullButton:Ve,showNullProgramButton:He,onActionCallback:Fn,fullScreen:On,insertTemp:Qn,hidetoolBar:yn,extraUse:Nn})=>{const en=[...At,{title:`${Ye?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ye?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xt.createElement("ul",{className:"markdown-toolbar-container"},!yn&&en.map((Xe,Dn)=>xt.createElement("li",{key:Dn},Xe.actionName?xt.createElement(Dt,Pt(dt({},Xe),{onActionCallback:Fn})):xt.createElement("span",{className:"v-line"}))),Ve?xt.createElement("li",null,xt.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Fn},xt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,He?xt.createElement(xt.Fragment,null,xt.createElement("li",null,xt.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Fn},xt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xt.createElement("li",null,xt.createElement(Dt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Fn},xt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Qn&&xt.createElement("li",null,xt.createElement(Dt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qn}`,onActionCallback:Fn},xt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&xt.createElement("li",null,Nn),xt.createElement("li",{className:"btn-full-screen"},xt.createElement(Dt,{icon:`${On?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:On?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Fn})))},jt=he(79346),Nt=he(28284),Gt=he(37568),Ht=he(99571),Yt=Object.defineProperty,Ut=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Se=(Ye,Ve,He)=>Ve in Ye?Yt(Ye,Ve,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ye[Ve]=He,Qt=(Ye,Ve)=>{for(var He in Ve||(Ve={}))se.call(Ve,He)&&Se(Ye,He,Ve[He]);if(oe)for(var He of oe(Ve))de.call(Ve,He)&&Se(Ye,He,Ve[He]);return Ye},ne=(Ye,Ve)=>Ut(Ye,Vt(Ve));const ye={labelCol:{span:4},wrapperCol:{span:20}};var we=({callback:Ye,onCancel:Ve})=>{function He(Fn){Ye(Fn)}return ae.createElement(Nt.default,ne(Qt({},ye),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:He,style:{width:500}}),ae.createElement(Nt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Gt.default,null)),ae.createElement(Nt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Gt.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ht.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ht.ZP,{type:"ghost",onClick:Ve},"\u53D6\u6D88")))},be=he(97692),fe=he(28451),pe=he(62957),ce=he(77019),Ce=he(73524),ve=he(59301),Fe=({callback:Ye,onCancel:Ve})=>{const He=document.createElement("canvas"),Fn=He.getContext("2d");He.width=1e3,He.height=800,Fn.fillStyle="#ffffff",Fn.fillRect(0,0,He.width,He.height);const On=He.toDataURL("image/png");return ve.createElement(pe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ve.createElement(ce.Z,{style:{height:"100vh"}},ve.createElement(Ce.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:On,visible:!0,title:String(Date.now())},onOk:Qn=>{Ye({src:Qn.url})},onClose:Ve})))},ge=he(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 Ye=this.diagram;return!(Ye===null||Ye.isReadOnly||Ye.isModelReadOnly||Ye.selection.count<2)},xe.prototype.alignLeft=function(){var Ye=this.diagram;Ye.startTransaction("aligning left");var Ve=1/0;Ye.selection.each(function(He){He instanceof go.Link||(Ve=Math.min(He.position.x,Ve))}),Ye.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ve,He.position.y))}),Ye.commitTransaction("aligning left")},xe.prototype.alignRight=function(){var Ye=this.diagram;Ye.startTransaction("aligning right");var Ve=-1/0;Ye.selection.each(function(He){if(!(He instanceof go.Link)){var Fn=He.actualBounds.x+He.actualBounds.width;Ve=Math.max(Fn,Ve)}}),Ye.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ve-He.actualBounds.width,He.position.y))}),Ye.commitTransaction("aligning right")},xe.prototype.alignTop=function(){var Ye=this.diagram;Ye.startTransaction("alignTop");var Ve=1/0;Ye.selection.each(function(He){He instanceof go.Link||(Ve=Math.min(He.position.y,Ve))}),Ye.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.position.x,Ve))}),Ye.commitTransaction("alignTop")},xe.prototype.alignBottom=function(){var Ye=this.diagram;Ye.startTransaction("aligning bottom");var Ve=-1/0;Ye.selection.each(function(He){if(!(He instanceof go.Link)){var Fn=He.actualBounds.y+He.actualBounds.height;Ve=Math.max(Fn,Ve)}}),Ye.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,Ve-He.actualBounds.height))}),Ye.commitTransaction("aligning bottom")},xe.prototype.alignCenterX=function(){var Ye=this.diagram,Ve=Ye.selection.first();if(Ve){Ye.startTransaction("aligning Center X");var He=Ve.actualBounds.x+Ve.actualBounds.width/2;Ye.selection.each(function(Fn){Fn instanceof go.Link||Fn.move(new go.Point(He-Fn.actualBounds.width/2,Fn.actualBounds.y))}),Ye.commitTransaction("aligning Center X")}},xe.prototype.alignCenterY=function(){var Ye=this.diagram,Ve=Ye.selection.first();if(Ve){Ye.startTransaction("aligning Center Y");var He=Ve.actualBounds.y+Ve.actualBounds.height/2;Ye.selection.each(function(Fn){Fn instanceof go.Link||Fn.move(new go.Point(Fn.actualBounds.x,He-Fn.actualBounds.height/2))}),Ye.commitTransaction("aligning Center Y")}},xe.prototype.alignColumn=function(Ye){var Ve=this.diagram;Ve.startTransaction("align Column"),Ye===void 0&&(Ye=0),Ye=parseFloat(Ye);var He=new Array;Ve.selection.each(function(Nn){Nn instanceof go.Link||He.push(Nn)});for(var Fn=0;Fn0){for(var Nn=Qn.elt(yn-1);Nn!==null&&Nn.isTreeExpanded&&!Nn.isTreeLeaf;){var en=this._sortTreeChildrenByY(Nn);Nn=en.last()}Nn!==null&&Ye.select(Nn)}else Ye.select(On)}}else if(He.key==="Down")if(Ve.isTreeExpanded&&!Ve.isTreeLeaf){var Fn=this._sortTreeChildrenByY(Ve).first();Fn!==null&&Ye.select(Fn)}else for(;Ve!==null;){var On=Ve.findTreeParentNode();if(On===null)break;var Qn=this._sortTreeChildrenByY(On),yn=Qn.indexOf(Ve);if(ynQn.y?1:On.xQn.x?1:0}),Ve},xe.prototype.copyToClipboard=function(Ye){go.CommandHandler.prototype.copyToClipboard.call(this,Ye),this._lastPasteOffset.set(this.pasteOffset)},xe.prototype.pasteFromClipboard=function(){var Ye=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ye,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ye},Object.defineProperty(xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ye){if(Ye!=="move"&&Ye!=="select"&&Ye!=="scroll"&&Ye!=="tree"&&Ye!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ye);this._arrowKeyBehavior=Ye}}),Object.defineProperty(xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ye){if(!(Ye instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ye);this._pasteOffset.set(Ye)}});var ee=xe,Kt=he(74413),wt=he(5269),Lt=he(99064),Xt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},re=he(24065),It=he(59301),Rt=(Ye,Ve,He)=>new Promise((Fn,On)=>{var Qn=en=>{try{Nn(He.next(en))}catch(Xe){On(Xe)}},yn=en=>{try{Nn(He.throw(en))}catch(Xe){On(Xe)}},Nn=en=>en.done?Fn(en.value):Promise.resolve(en.value).then(Qn,yn);Nn((He=He.apply(Ye,Ve)).next())});function Wt({onCancel:Ye,callback:Ve}){let He=(0,ae.useRef)(),Fn=(0,ae.useRef)(),On=(0,ae.useRef)(),Qn=(0,ae.useRef)(!1);const yn=(0,ae.useRef)(!1),[Nn,en]=(0,ae.useState)(0);function Xe(){const Oe=ge.bx.make,ln={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"};He.current=new ge.S0(Fn.current,{padding:20,grid:Oe(ge.s_,"Grid",Oe(ge.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Oe(ge.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Rn=>{var nr=Rn.diagram.commandHandler.addTopLevelParts(Rn.diagram.selection,!0);nr||Rn.diagram.currentTool.doCancel()},commandHandler:Oe(ee),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Rn=>{var nr=Rn.subject;nr.location=nr.location.copy().snapToGridPoint(Rn.diagram.grid.gridOrigin,Rn.diagram.grid.gridCellSize),setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Rn=>{var nr=Rn.subject;setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Rn=>{var nr=Rn.parameter.part;nr.invalidateConnectedLinks();var fr=Rn.subject;Rn.diagram.toolManager.linkingTool.isForwards?fr.toNode.invalidateConnectedLinks():fr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),He.current.nodeTemplate=Oe(ge.NB,"Auto",{locationSpot:ge.z6.Center,locationObjectName:"SHAPE",desiredSize:new ge.$u(120,60),minSize:new ge.$u(40,40),resizable:!0,resizeCellSize:new ge.$u(10,10),rotatable:!0},new ge.KX("location","loc",ge.E9.parse).makeTwoWay(ge.E9.stringify),new ge.KX("desiredSize","size",ge.$u.parse).makeTwoWay(ge.$u.stringify),Oe(ge.bn,{name:"SHAPE",fill:ln.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ge.z6.AllSides,toSpot:ge.z6.AllSides},new ge.KX("figure"),new ge.KX("fill"),new ge.KX("stroke","borderColor"),new ge.KX("strokeWidth","thickness"),new ge.KX("strokeDashArray","dash")),Oe(ge.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Oe(ge.al,{margin:1,textAlign:"center",overflow:ge.al.OverflowEllipsis,editable:!0},new ge.KX("text").makeTwoWay(),new ge.KX("stroke","color"))),He.current.nodeTemplate.toolTip=Oe("ToolTip",Oe(ge.s_,"Vertical",{maxSize:new ge.$u(200,NaN)},Oe(ge.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ge.KX("text")),Oe(ge.al,{font:"10pt sans-serif",textAlign:"center"},new ge.KX("text","details"))));function En(Rn,nr){var fr=(lr,Pr)=>{lr.handled=!0,lr.diagram.model.commit(Xr=>{var zr=Pr.part.adornedPart,Kr=new ge.E9().setRectSpot(zr.actualBounds,Rn);Kr.subtract(zr.location),Kr.scale(2,2),Kr.x+=Math.sign(Kr.x)*130,Kr.y+=Math.sign(Kr.y)*130,Kr.add(zr.location),Kr.snapToGridPoint(lr.diagram.grid.gridOrigin,lr.diagram.grid.gridCellSize);var Yr=Xr.copyNodeData(zr.data);Xr.setGroupKeyForNodeData(Yr,Xr.getGroupKeyForNodeData(zr.data)),Xr.addNodeData(Yr);var wn={from:zr.key,to:Xr.getKeyForNodeData(Yr)};Xr.addLinkData(wn);var ci=lr.diagram.findNodeForData(Yr);ci.location=Kr,lr.diagram.select(ci),setTimeout(()=>{lr.diagram.commandHandler.editTextBlock()},20)})};return Oe(ge.bn,{figure:nr,alignment:Rn,alignmentFocus:Rn.opposite(),width:Rn.equals(ge.z6.Top)||Rn.equals(ge.z6.Bottom)?25:18,height:Rn.equals(ge.z6.Top)||Rn.equals(ge.z6.Bottom)?18:25,fill:"orange",stroke:ln.white,strokeWidth:4,mouseEnter:(lr,Pr)=>Pr.fill="dodgerblue",mouseLeave:(lr,Pr)=>Pr.fill="orange",isActionable:!0,click:fr,contextClick:fr})}function Gn(Rn){return Oe(ge.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:(nr,fr)=>fr.fill="dodgerblue",mouseLeave:(nr,fr)=>fr.fill="orange",click:(nr,fr)=>{nr.diagram.commandHandler.showContextMenu(fr.part.adornedPart)}},Rn||{})}He.current.nodeTemplate.selectionAdornmentTemplate=Oe(ge.uz,"Spot",Oe(ge.Vm,{padding:10}),En(ge.z6.Top,"TriangleUp"),En(ge.z6.Left,"TriangleLeft"),En(ge.z6.Right,"TriangleRight"),En(ge.z6.Bottom,"TriangleDown"),Gn({alignment:new ge.z6(.75,0)}));function sn(Rn,nr){return(fr,lr)=>{fr.handled=!0,fr.diagram.model.commit(Pr=>{Pr.set(lr.part.adornedPart.data,Rn,nr)})}}function dn(Rn,nr){return nr||(nr="color"),Oe(ge.bn,{width:16,height:16,stroke:"lightgray",fill:Rn,margin:1,background:"transparent",mouseEnter:(fr,lr)=>lr.stroke="dodgerblue",mouseLeave:(fr,lr)=>lr.stroke="lightgray",click:sn(nr,Rn),contextClick:sn(nr,Rn)})}function An(){return[Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",dn(ln.white,"fill"),dn(ln.beige,"fill"),dn(ln.extralightblue,"fill"),dn(ln.extralightred,"fill"))),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",dn(ln.lightgray,"fill"),dn(ln.lightgreen,"fill"),dn(ln.lightblue,"fill"),dn(ln.lightred,"fill")))]}function er(){return[Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",dn(ln.black),dn(ln.green),dn(ln.blue),dn(ln.red))),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",dn(ln.white),dn(ln.magenta),dn(ln.purple),dn(ln.orange)))]}function ar(Rn,nr){return nr||(nr="thickness"),Oe(ge.bn,"LineH",{width:16,height:16,strokeWidth:Rn,margin:1,background:"transparent",mouseEnter:(fr,lr)=>lr.background="dodgerblue",mouseLeave:(fr,lr)=>lr.background="transparent",click:sn(nr,Rn),contextClick:sn(nr,Rn)})}function Xn(Rn,nr){return nr||(nr="dash"),Oe(ge.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Rn,margin:1,background:"transparent",mouseEnter:(fr,lr)=>lr.background="dodgerblue",mouseLeave:(fr,lr)=>lr.background="transparent",click:sn(nr,Rn),contextClick:sn(nr,Rn)})}function In(){return[Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",ar(1),ar(2),ar(3),ar(4))),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",Xn(null),Xn([2,4]),Xn([4,4])))]}function Wn(Rn,nr){return nr||(nr="figure"),Oe(ge.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Rn,margin:1,background:"transparent",mouseEnter:(fr,lr)=>lr.fill="dodgerblue",mouseLeave:(fr,lr)=>lr.fill="lightgray",click:sn(nr,Rn),contextClick:sn(nr,Rn)})}He.current.nodeTemplate.contextMenu=Oe("ContextMenu",Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",Wn("Rectangle"),Wn("RoundedRectangle"),Wn("Ellipse"),Wn("Diamond"))),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",Wn("Parallelogram2"),Wn("ManualOperation"),Wn("Procedure"),Wn("Cylinder1"))),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",Wn("Terminator"),Wn("CreateRequest"),Wn("Document"),Wn("TriangleDown"))),An(),er(),In()),He.current.groupTemplate=Oe(ge.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ge.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Rn,nr)=>{var fr=nr.addMembers(nr.diagram.selection,!0);fr||nr.diagram.currentTool.doCancel()},avoidable:!1},new ge.KX("location","loc",ge.E9.parse).makeTwoWay(ge.E9.stringify),Oe(ge.s_,"Auto",{name:"BODY"},Oe(ge.bn,{parameter1:10,fill:ln.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ge.z6.AllSides,toSpot:ge.z6.AllSides},new ge.KX("fill"),new ge.KX("stroke","color"),new ge.KX("strokeWidth","thickness"),new ge.KX("strokeDashArray","dash")),Oe(ge.Vm,{background:"transparent",margin:20})),Oe(ge.al,{alignment:ge.z6.Top,alignmentFocus:ge.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ge.KX("text"),new ge.KX("stroke","color"))),He.current.groupTemplate.selectionAdornmentTemplate=Oe(ge.uz,"Spot",Oe(ge.s_,"Auto",Oe(ge.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Oe(ge.Vm,{margin:1.5})),Gn({alignment:ge.z6.TopRight,alignmentFocus:ge.z6.BottomRight})),He.current.groupTemplate.contextMenu=Oe("ContextMenu",An(),er(),In()),He.current.linkTemplate=Oe(ge.rU,{layerName:"Foreground",routing:ge.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ge.KX("fromSpot","fromSpot",ge.z6.parse),new ge.KX("toSpot","toSpot",ge.z6.parse),new ge.KX("fromShortLength","dir",Rn=>Rn>=1?10:0),new ge.KX("toShortLength","dir",Rn=>Rn>=1?10:0),new ge.KX("points").makeTwoWay(),Oe(ge.bn,{strokeWidth:2},new ge.KX("stroke","color"),new ge.KX("strokeWidth","thickness"),new ge.KX("strokeDashArray","dash")),Oe(ge.bn,{segmentIndex:0,segmentOffset:new ge.E9(15,0),segmentOrientation:ge.rU.OrientAlong,alignmentFocus:ge.z6.Right,figure:"circle",width:10,strokeWidth:0},new ge.KX("fill","color"),new ge.KX("visible","dir",Rn=>Rn===1)),Oe(ge.bn,{segmentIndex:-1,segmentOffset:new ge.E9(-10,6),segmentOrientation:ge.rU.OrientPlus90,alignmentFocus:ge.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ge.KX("fill","color"),new ge.KX("visible","dir",Rn=>Rn>=1),new ge.KX("width","thickness",Rn=>7+3*Rn),new ge.KX("height","thickness",Rn=>7+3*Rn),new ge.KX("segmentOffset","thickness",Rn=>new ge.E9(-15,4+1.5*Rn))),Oe(ge.bn,{segmentIndex:0,segmentOffset:new ge.E9(15,-6),segmentOrientation:ge.rU.OrientMinus90,alignmentFocus:ge.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ge.KX("fill","color"),new ge.KX("visible","dir",Rn=>Rn===2),new ge.KX("width","thickness",Rn=>7+3*Rn),new ge.KX("height","thickness",Rn=>7+3*Rn),new ge.KX("segmentOffset","thickness",Rn=>new ge.E9(-15,4+1.5*Rn))),Oe(ge.al,{alignmentFocus:new ge.z6(0,1,-4,0),editable:!0},new ge.KX("text").makeTwoWay(),new ge.KX("stroke","color"))),He.current.linkTemplate.selectionAdornmentTemplate=Oe(ge.uz,Oe(ge.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:rr(2)},new ge.KX("pathPattern","thickness",rr)),Gn({alignmentFocus:new ge.z6(0,0,-6,-4)}));function rr(Rn){return Oe(ge.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Rn+4).toString()+" H3"})}function sr(Rn){var nr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Rn===0?nr="M0 0 M16 16 M0 8 L16 8":Rn===2&&(nr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Oe(ge.bn,{geometryString:nr,margin:2,background:"transparent",mouseEnter:(fr,lr)=>lr.background="dodgerblue",mouseLeave:(fr,lr)=>lr.background="transparent",click:sn("dir",Rn),contextClick:sn("dir",Rn)})}function mr(Rn){var nr=(fr,lr)=>{fr.handled=!0,fr.diagram.model.commit(Pr=>{var Xr=lr.part.adornedPart;Pr.set(Xr.data,Rn?"toSpot":"fromSpot",ge.z6.stringify(ge.z6.AllSides)),(Rn?Xr.toNode:Xr.fromNode).invalidateConnectedLinks()})};return Oe(ge.bn,{width:12,height:12,fill:"transparent",mouseEnter:(fr,lr)=>lr.background="dodgerblue",mouseLeave:(fr,lr)=>lr.background="transparent",click:nr,contextClick:nr})}function cn(Rn,nr){var fr=0,lr=ge.z6.RightSide;Rn.equals(ge.z6.Top)?(fr=270,lr=ge.z6.TopSide):Rn.equals(ge.z6.Left)?(fr=180,lr=ge.z6.LeftSide):Rn.equals(ge.z6.Bottom)&&(fr=90,lr=ge.z6.BottomSide),nr||(fr-=180);var Pr=(Xr,zr)=>{Xr.handled=!0,Xr.diagram.model.commit(Kr=>{var Yr=zr.part.adornedPart;Kr.set(Yr.data,nr?"toSpot":"fromSpot",ge.z6.stringify(lr)),(nr?Yr.toNode:Yr.fromNode).invalidateConnectedLinks()})};return Oe(ge.bn,{alignment:Rn,alignmentFocus:Rn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:fr,background:"transparent",mouseEnter:(Xr,zr)=>zr.background="dodgerblue",mouseLeave:(Xr,zr)=>zr.background="transparent",click:Pr,contextClick:Pr})}He.current.linkTemplate.contextMenu=Oe("ContextMenu",er(),In(),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",sr(0),sr(1),sr(2))),Oe("ContextMenuButton",Oe(ge.s_,"Horizontal",Oe(ge.s_,"Spot",mr(!1),cn(ge.z6.Top,!1),cn(ge.z6.Left,!1),cn(ge.z6.Right,!1),cn(ge.z6.Bottom,!1)),Oe(ge.s_,"Spot",{margin:new ge.Zt(0,0,0,2)},mr(!0),cn(ge.z6.Top,!0),cn(ge.z6.Left,!0),cn(ge.z6.Right,!0),cn(ge.z6.Bottom,!0)))));const Si=`{ "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 Rr=["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 pi(Rn){return console.log("shapeName:",Rn),Rr.indexOf(Rn)>=0}var an=new ge.YI(On.current,{maxSelectionCount:1,linkTemplate:Oe(ge.rU,{locationSpot:ge.z6.Center,selectionAdornmentTemplate:Oe(ge.uz,"Link",{locationSpot:ge.z6.Center},Oe(ge.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Oe(ge.bn,{toArrow:"Standard",stroke:null}))},{routing:ge.rU.AvoidsNodes,curve:ge.rU.JumpOver,corner:5,toShortLength:4},new ge.KX("points"),Oe(ge.bn,{isPanelMain:!0,strokeWidth:2}),Oe(ge.bn,{toArrow:"Standard",stroke:null})),model:new ge.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ge.bn.getFigureGenerators().toArray().map(Rn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Rn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return He.current.addDiagramListener("TextEdited",function(Rn){var nr;const fr=Rn.subject.part;var lr=(nr=document.activeElement)==null?void 0:nr.value;typeof lr=="string"&&lr.trim()===""&&He.current.model.commit(function(Pr){Pr.set(fr.data,"text","\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}),an.nodeTemplate=Oe(ge.NB,"Auto",{locationSpot:ge.z6.Center},new ge.KX("location","location",ge.E9.parse).makeTwoWay(ge.E9.stringify),Oe(ge.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 ge.KX("stroke").makeTwoWay(),new ge.KX("fill").makeTwoWay(),new ge.KX("figure")),Oe(ge.al,{margin:new ge.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ge.$u(16,16),maxSize:new ge.$u(10,NaN),textAlign:"center",editable:!0},new ge.KX("key").makeTwoWay())),setTimeout(()=>{He.current.grid=Oe(ge.s_,"Grid",Oe(ge.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Oe(ge.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),He.current.grid.visible=!0,He.current.grid.gridCellStroke="darkgray",He.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=He.current,He.current}const Dn=()=>Rt(this,null,function*(){var Oe,ln=He.current.makeImage();const En=yield(0,Lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ln.src,file_data:JSON.stringify({login:(Oe=(0,re.eY)())==null?void 0:Oe.login,data:JSON.parse(He.current.model.toJson())})}});Ve({src:En.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Xe()},500),en(Nn+1),()=>{He.current=null}),[]),It.createElement("div",{ref:yn,className:Qn.current?`${Xt.maxH60} body-overflow-initial`:"body-overflow-initial"},It.createElement(pe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Nn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:It.createElement(ce.Z,null,It.createElement(wt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),It.createElement(wt.Z,{onClick:()=>{var Oe,ln,En=He.current.selection.first();if(Qn.current=!Qn.current,document.activeElement&&En){let Gn=(ln=(Oe=document.activeElement)==null?void 0:Oe.value)==null?void 0:ln.trim();typeof Gn=="string"&&He.current.model.commit(function(sn){sn.set(En.data,"text",Gn||"\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}en(Nn+1)}},It.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ye},It.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Xt.flowChartWrp},It.createElement("div",{style:{display:"flex",height:"100%"}},It.createElement("div",{style:{width:"300px",height:"100%"}},It.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),It.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xt.myPaletteDiv,ref:On})),It.createElement("div",{style:{flex:1,position:"relative"}},It.createElement("div",{ref:Fn,style:{height:"80vh"}}))),It.createElement("div",{className:"tr"},It.createElement(Ht.ZP,{size:"large",onClick:Dn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var te=Wt,ue=he(47889),le=he(71051);const Ae=ue.ZP.Group,Le={margin:"0 8px"};var Be=({callback:Ye,onCancel:Ve})=>{function He(Fn){Ye(Fn)}return ae.createElement(Nt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:He},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Le},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Le},"\u884C\u6570"),ae.createElement(Nt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(le.Z,null)),ae.createElement("span",{style:Le},"\u5217\u6570"),ae.createElement(Nt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(le.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Le},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(Nt.default.Item,{name:"align"},ae.createElement(Ae,null,ae.createElement(ue.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ue.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ue.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ue.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ht.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ht.ZP,{type:"ghost",onClick:Ve},"\u53D6\u6D88")))},tn=he(71411),$e=he(80727),Qe=he.n($e),Ge=(0,ae.forwardRef)(({use3d:Ye,width:Ve,height:He,callback:Fn,showSaveButton:On},Qn)=>{const yn=(0,ae.useRef)(),Nn=(0,ae.useRef)(),[en,Xe]=(0,ae.useState)(!1),Dn=(0,ae.useRef)({id:yn,appName:"graphing",width:Ve||1e3,height:He||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Nn.current=new(Qe())(Dn.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const Oe=()=>{var ln=window.ggbApplet.getPNGBase64(1,!0,72);return Fn&&Fn(ln),ln};return(0,ae.useEffect)(()=>{Dn.current.appName=en?"3D":"graphing",Nn.current.inject("applet_container")},[en]),(0,ae.useEffect)(()=>{Xe(Ye)},[Ye]),(0,ae.useImperativeHandle)(Qn,()=>({getImgData:Oe})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:yn}),ae.createElement(ce.Z,{align:"middle"},ae.createElement(wt.Z,{flex:1},ae.createElement(tn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:ln=>Xe(ln)})),ae.createElement(wt.Z,null,ae.createElement(Ht.ZP,{size:"large",onClick:Oe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),We=he(41588),Ke=he(6767);const nn="link",hn="upload-image",un="add-flowchart",bn="draw-image",Un="add-flowchart",Vn="code-block",Yn="add-table",vr="------------",pr={default:vr,left:`:${vr}`,center:`:${vr}:`,right:`${vr}:`};var gr=he(58856);function Nr(){}let Lr=0;const dr=1e4,cr="\u2581",jr="@\u2581\u2581@",$t="@\u2581@",$n=` **\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`,Zn=["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 Dr(Ye){return/^\d+$/.test(Ye)?`${Ye}px`:Ye}const Ur=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ai={[Ur+"-B"]:"bold",[Ur+"-I"]:"italic"},qn={[nn]:"\u6DFB\u52A0\u94FE\u63A5",[Vn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[hn]:"\u6DFB\u52A0\u56FE\u7247",[bn]:"\u6DFB\u52A0\u753B\u56FE",[un]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var zn=({defaultValue:Ye="",onChange:Ve,width:He="100%",height:Fn=400,miniToolbar:On=!1,isFocus:Qn=!1,watch:yn,insertTemp:Nn,mode:en="markdown",id:Xe="markdown-editor-id",showResizeBar:Dn=!1,noStorage:Oe=!1,showNullButton:ln=!1,showNullProgramButton:En=!1,hidetoolBar:Gn=!1,fullScreen:sn=!1,onBlur:dn,onCMBeforeChange:An,onFullScreen:er,className:ar="",disablePaste:Xn=!1,disabled:In=!1,disabledFill:Wn=!1,placeholder:rr="",values:sr="",extraUse:mr})=>{const[cn,Si]=(0,ae.useState)(null),[Rr,pi]=(0,ae.useState)(Ye),[an,Rn]=(0,ae.useState)(yn),[nr,fr]=(0,ae.useState)(sn),[lr,Pr]=(0,ae.useState)(""),[Xr,zr]=(0,ae.useState)(0),[Kr,Yr]=(0,ae.useState)(Fn),[wn,ci]=(0,ae.useState)(!1),[Sn,Jr]=(0,ae.useState)(0),[ni,oi]=(0,ae.useState)(0),Ui=(0,ae.useRef)(),ji=(0,ae.useRef)(),si=(0,ae.useRef)(),gi=(0,ae.useRef)();(0,ae.useEffect)(()=>{const Or=window.scrollY||window.pageYOffset;pi(sr),cn==null||cn.setValue(sr),window.scrollTo(0,Or)},[sr]),(0,ae.useEffect)(()=>{er==null||er(nr)},[nr]),(0,ae.useEffect)(()=>{if(Ui.current){let Or=function(Mn,xr){var yi;if(Xn){xr.preventDefault();return}const Qi=xr.clipboardData;if(Qi){const Zi=Qi.types.toString(),Bi=Qi.items;if(Zi==="Files"||Qi.types.indexOf("Files")>-1){if(xr.preventDefault(),en=="stex")return;try{let no=Bi[1];((yi=Bi[0])==null?void 0:yi.kind)==="file"&&(no=Bi[0]);const Wi=no.getAsFile(),qo=Wi.name.split(".").pop();(0,fe.I)(Wi,Xo=>{var Ja,on,xo;Xo.id?((Ja=Wi==null?void 0:Wi.type)==null?void 0:Ja.indexOf("image"))>-1?Er.replaceSelection(``):((on=Wi==null?void 0:Wi.type)==null?void 0:on.indexOf("video"))>-1?Er.replaceSelection(``):((xo=Wi==null?void 0:Wi.type)==null?void 0:xo.indexOf("pdf"))>-1?Er.replaceSelection(`${Wi.name}`):Zn.includes(qo)?Er.replaceSelection(`${Wi.name}`):Er.replaceSelection(`[${Wi.name}](/api/attachments/${Xo.id}?type=${Xo.content_type})`):(Xo==null?void 0:Xo.status)===401&&(document.location.href="/user/login")})}catch(no){Ke.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Er=ot().fromTextArea(Ui.current,{mode:en,lineNumbers:!On,lineWrapping:!0,value:Ye,autoCloseTags:!0,autoCloseBrackets:!0});return Er.on("keyup",function(Mn,xr){xr.keyCode===8&&(Mn.getValue()==""?Er.setOption("placeholder",rr):Er.setOption("placeholder",null))}),Er.on("keydown",function(Mn,xr){if(xr.keyCode===8){var yi=Ci(Mn);yi&&xr.preventDefault()}}),Qn&&Er.focus(),Er.on("paste",Or),In&&Er.on("beforeChange",function(Mn,xr){(xr.origin==="paste"||xr.origin==="+input")&&xr.cancel()}),Si(Er),()=>{Er.off("paste",Or)}}},[]);const Oo=(0,ae.useCallback)(()=>{if(ji.current)try{}catch(Or){console.log(Or,"---- to set md editor body height")}},[Kr,ji,nr]);(0,ae.useEffect)(()=>{function Or(){let Er=new zt.Z(Mn=>{for(let xr of Mn)(xr.target.offsetHeight>0||xr.target.offsetWidth>0)&&(Oo(),cn.setSize("100%","100%"),cn.refresh())});return Er.observe(Ui.current.parentElement),Er}if(cn){const Er=Or();return()=>{var Mn,xr;(Mn=Ui.current)!=null&&Mn.parentElement&&Er.unobserve((xr=Ui.current)==null?void 0:xr.parentElement)}}},[cn,Oo]),(0,ae.useEffect)(()=>{if(cn){let Or=[];for(const[Er,Mn]of Object.entries(ai)){let xr={[Er]:()=>{or(Mn)}};Or.push(xr),cn.addKeyMap(xr)}return()=>{for(let Er of Or)cn.removeKeyMap(Er)}}},[cn]),(0,ae.useEffect)(()=>{sn!==nr&&fr(sn)},[sn]),(0,gr.Z)(()=>{if(!Oe&&Xr>0){let Or=new Date().getTime(),Er=window.sessionStorage.getItem(Xe);Or>=Xr+dr&&(!Er||Er!==Rr)&&(window.sessionStorage.setItem(Xe,Rr),ci(!0))}},dr),(0,ae.useEffect)(()=>{Rn(yn)},[cn,yn]),(0,ae.useEffect)(()=>{cn&&Qn&&cn.focus()},[cn,Qn]),(0,ae.useEffect)(()=>{if(an&&cn){let Or=function(Mn){let xr=Mn.target;if(gi.current){let yi=xr.scrollTop/xr.scrollHeight;gi.current.scrollTop=gi.current.scrollHeight*yi}};const Er=cn.getScrollerElement();return Er.addEventListener("scroll",Or),()=>{Er.removeEventListener("scroll",Or)}}},[cn,an]),(0,ae.useEffect)(()=>{if(cn&&An){let Or=function(Er,Mn){An(Er,Mn)};return cn.on("beforeChange",Or),()=>{cn.off("beforeChange",Or)}}},[cn,An]),(0,ae.useEffect)(()=>{if(cn&&dn){let Or=function(){dn(cn.getValue())};return cn.on("blur",Or),()=>{cn.off("blur",Or)}}},[cn,dn]);function Ci(Or,Er){var Mn=Or.getDoc(),xr=Mn.getCursor(),yi=Mn.getLine(xr.line),Qi=yi.charAt(xr.ch-1),Zi=yi.lastIndexOf("@\u2581@",xr.ch),Bi=yi.lastIndexOf("@\u2581\u2581@",xr.ch),no=Zi>Bi?Zi:Bi,Wi=Zi>Bi?3:4;if(jr.indexOf(Qi)===-1)return null;if(console.log("change1:",Er,Or,yi,xr,no,Zi,Bi,Qi),no>=0&&xr.ch-no<5){var qo=no+Wi;return Mn.replaceRange("",{line:xr.line,ch:no},{line:xr.line,ch:qo}),{line:xr.line,ch:qo}}return null}(0,ae.useEffect)(()=>{if(cn){let Or=function(Er,Mn){const xr=Er.getValue();pi(xr),zr(new Date().getTime()),Er.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ve&&(En?Ve(xr,br(xr)):Ve(xr))};return cn.on("change",Or),()=>{cn.off("change",Or)}}},[cn,Ve]),(0,ae.useEffect)(()=>{if(cn)if(Ye==null)cn.setValue(""),pi("");else{const Or=window.scrollY||window.pageYOffset;Ye!==cn.getValue()&&(cn.setValue(Ye),pi(Ye),cn.setCursor(In?1:cn.lineCount(),0),window.scrollTo(0,Or))}},[cn,Ye]);const or=(0,ae.useCallback)(Or=>{const Er=cn.getCursor(),Mn=cn.getSelection();let xr=Mn.split(` `);switch(Or){case"bold":return cn.replaceSelection("**"+Mn+"**"),Mn===""&&cn.setCursor(Er.line,Er.ch+2),cn.focus();case"italic":return cn.replaceSelection("*"+Mn+"*"),Mn===""&&cn.setCursor(Er.line,Er.ch+1),cn.focus();case"code":return cn.replaceSelection("`"+Mn+"`"),Mn===""&&cn.setCursor(Er.line,Er.ch+1),cn.focus();case"inline-latex":return Pr("inline-latex"),cn.focus();case"latex":return cn.replaceSelection("```latex\n"+Mn+"\n```"),cn.setCursor(Er.line+1,Mn.length+1),cn.focus();case"line-break":return cn.replaceSelection(`
`),cn.focus();case"list-ul":return Mn===""?cn.replaceSelection("- "+Mn):cn.replaceSelection(xr.map(yi=>yi===""?"":`- ${yi}`).join(` `)),cn.focus();case"list-ol":return Mn===""?cn.replaceSelection("1. "+Mn):cn.replaceSelection(xr.map((yi,Qi)=>yi===""?"":`${Qi+1}. ${yi}`).join(` `)),cn.focus();case"add-null-ch":return Mn===""&&cn.setCursor(Er.line,Er.ch),cn.replaceSelection(cr),cn.focus();case"add-signal":return Mn===""&&cn.setCursor(Er.line,Er.ch),cn.replaceSelection($t),cn.focus();case"add-multiple":return Mn===""&&cn.setCursor(Er.line,Er.ch),cn.replaceSelection(jr),cn.focus();case"inster-template-1":return Mn===""&&cn.setCursor(Er.line,Er.ch),cn.replaceSelection($n),cn.focus();case"eraser":return cn.setValue(""),cn.focus();case"trigger-watch":return Rn(!an),cn.focus();case"trigger-full-screen":return fr(!nr),cn.focus();case nn:Pr(nn);return;case Vn:Pr(Vn);return;case hn:Pr(hn);return;case bn:Pr(bn);return;case"maths-latex":Pr("maths-latex");return;case un:Pr(un);return;case Yn:Pr(Yn);return;default:throw new Error}},[cn,an,nr]),Me=(0,ae.useCallback)((Or,Er)=>{var Mn,xr,yi,Qi,Zi,Bi;switch(Pr(""),lr){case nn:const{title:Ja,link:on}=Or;return cn.replaceSelection(`[${Ja}](${on})`),cn.focus();case Vn:const{language:xo,content:Rl}=Or;return cn.replaceSelection(["```"+xo,Rl,"```"].join(` `)),cn.focus();case"maths-latex":for(var no=atob(Or),Wi=new Uint8Array(no.length),qo=0;qo{pa.id?cn.replaceSelection(`![,](/api/attachments/${pa.id}?type=${pa.content_type})`):(pa==null?void 0:pa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":cn.replaceSelection("`$$"+Or+"$$`");break;case hn:case bn:case Un:const{src:oa,alt:bl}=Or,Hi=Er,Mu=(yi=(xr=(Mn=Hi==null?void 0:Hi.name)==null?void 0:Mn.split("."))==null?void 0:xr.pop)==null?void 0:yi.call(xr);return((Qi=Hi==null?void 0:Hi.type)==null?void 0:Qi.indexOf("image"))>-1||!(Hi!=null&&Hi.type)?Hi!=null&&Hi.align||Hi!=null&&Hi.width?cn.replaceSelection(`

${bl||

`):cn.replaceSelection(`${bl||`):((Zi=Hi==null?void 0:Hi.type)==null?void 0:Zi.indexOf("video"))>-1?cn.replaceSelection(``):((Bi=Hi==null?void 0:Hi.type)==null?void 0:Bi.indexOf("pdf"))>-1?cn.replaceSelection(`${Hi.name}`):Zn.includes(Mu)?cn.replaceSelection(`${Hi.name}`):cn.replaceSelection(`[${Hi.name}](${oa})`),cn.focus();case Yn:const{row:_l,col:Xi,align:Ro}=Or;let Pl=` `;for(let pa=0;pa<_l;pa++){let Ys=[],us=[];for(let Ar=0;Ar{switch(lr){case nn:return ae.createElement(we,{callback:Me,onCancel:qr});case Vn:return ae.createElement(be.Z,{callback:Me,onCancel:qr});case hn:return ae.createElement(fe.Z,{callback:Me,onCancel:qr});case un:return ae.createElement(te,{callback:Me,onCancel:qr});case Yn:return ae.createElement(Be,{callback:Me,onCancel:qr});case"maths-latex":return ae.createElement(Ge,{showSaveButton:!0,callback:Me});case"inline-latex":return ae.createElement(We.Z,{showSaveButton:!0,callback:Me});default:return null}},[lr]);function qr(){Pr("")}(0,ae.useEffect)(()=>{if(si.current){let Or=function(Zi){yi=!0,Qi=Zi.pageY},Er=function(){yi=!1},Mn=function(Zi){if(yi){let Bi=Zi.pageY-Qi;Bi<0&&(Bi=0),Bi>300&&(Bi=300);let no=Fn+Bi+"px";Yr(no)}},xr=si.current,yi=!1,Qi=0;return xr.addEventListener("mousedown",Or),document.addEventListener("mousemove",Mn),document.addEventListener("mouseup",Er),()=>{xr.removeEventListener("mousedown",Or),document.removeEventListener("mousemove",Mn),document.removeEventListener("mouseup",Er)}}},[cn,si]),(0,ae.useEffect)(()=>{Yr(Fn)},[Fn]);const _r=Dr(He),di=Dr(Kr),Oi={width:_r,height:di},ur=(0,ae.useMemo)(()=>{if(Xr){let Or=new Date(Xr),Er=Or.getHours(),Mn=Or.getMinutes(),xr=Or.getSeconds();return Er=Er<10?"0"+Er:Er,Mn=Mn<10?"0"+Mn:Mn,xr=xr<10?"0"+xr:xr,`${Er}:${Mn}:${xr}`}return 0},[Xr]),br=Or=>{const Er=[];if(En){let Mn=-1;Or=Or.replace(/(@▁▁@|@▁@)/g,function(xr,yi,Qi){Er.push({multiLine:xr!==$t})})}return Er};function Zr(){window.sessionStorage.removeItem(Xe),ci(!1),zr(0)}function Br(){ci(!1),zr(0),cn.setValue(window.sessionStorage.getItem(Xe))}(0,ae.useEffect)(()=>{qn[lr]&&lr!==bn&&lr!==un&&setTimeout(()=>{const Or=document.getElementsByClassName("markdown-popup-form")[0],Er=window.innerWidth/2-Or.offsetWidth/2,Mn=window.innerHeight/2-Or.offsetHeight/2;Jr(Er),oi(Mn)},0)},[lr]);const ti=Or=>{Or.preventDefault();const Er=Or.clientX-Sn,Mn=Or.clientY-ni;document.body.onmousemove=xr=>{let yi=xr.clientX-Er,Qi=xr.clientY-Mn;const Zi=document.getElementsByClassName("markdown-popup-form")[0],Bi=window.innerWidth-Zi.offsetWidth,no=window.innerHeight-Zi.offsetHeight;yi=Math.max(0,Math.min(yi,Bi)),Qi=Math.max(0,Math.min(Qi,no)),eo(xr.clientX,xr.clientY,Er,Mn)&&(Jr(yi),oi(Qi))},document.body.onmouseup=function(){document.body.onmousemove=null}},eo=(Or,Er,Mn,xr)=>{const yi=document.body.clientHeight,Qi=document.body.clientWidth;return Or<20&&Mn>Or||Or>Qi-20&&MnEr||Er>yi-20&&xrNt in jt?Tt(jt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):jt[Nt]=Gt,it=(jt,Nt)=>{for(var Gt in Nt||(Nt={}))z.call(Nt,Gt)&&at(jt,Gt,Nt[Gt]);if(ft)for(var Gt of ft(Nt))tt.call(Nt,Gt)&&at(jt,Gt,Nt[Gt]);return jt},lt=(jt,Nt)=>mt(jt,xt(Nt));const{useForm:ut}=ae.default,dt={width:280,marginRight:10},Pt={labelCol:{span:5},wrapperCol:{span:19}};var At=({callback:jt,onCancel:Nt})=>{const[Gt]=ut();let Ht=(0,Ct.useRef)();function Yt(oe){Ht.current.width=Gt.getFieldValue("width"),Ht.current.align=Gt.getFieldValue("align"),jt(oe,Ht.current)}function Ut(oe,se){if(oe.status===-1){Re.ZP.error(oe.message);return}Gt.setFieldsValue({src:`/api/attachments/${oe.id}`,type:se.type})}function Vt(oe){let se=oe.target.files[0];Ht.current=se,Ft(se,Ut)}return St.createElement(ae.default,lt(it({form:Gt},Pt),{className:"upload-image-panel",onFinish:Yt,style:{width:470,overflow:"hidden"}}),St.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},St.createElement("div",{className:"flex-container"},St.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},St.createElement(ot.default,{style:dt})),St.createElement(Dt,{onFileChange:Vt}))),St.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},St.createElement(ot.default,{style:{width:264}})),St.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},St.createElement(zt.Z,null,St.createElement(ae.default.Item,{name:"width",style:{margin:0}},St.createElement(Bt.Z,{style:{width:264}})),St.createElement("span",{className:"ml8"},"%"))),St.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},St.createElement(vt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),St.createElement("aside",null,St.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},St.createElement(gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(gt.ZP,{type:"default",onClick:Nt},"\u53D6\u6D88"))))};function Dt({onFileChange:jt}){return St.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",St.createElement("input",{type:"file",onChange:jt}))}function Ft(jt,Nt){if(!jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Gt=new FormData;Gt.append("editormd-image-file",jt),Gt.append("file_param_name","editormd-image-file"),Gt.append("byxhr","true");var Ht=new window.XMLHttpRequest;Ht.withCredentials=!0,Ht.addEventListener("load",function(Yt){Nt(JSON.parse(Yt.target.responseText),jt)},!1),Ht.addEventListener("error",function(Yt){console.error(Yt)},!1),Ht.open("POST",`${Et.KI}/api/attachments.json`),Ht.send(Gt)}},79346:function(mn,gn,he){"use strict";he.d(gn,{Z:function(){return ot}});var ae=he(59301),Re=he(4676);class ot extends ae.Component{constructor(Bt){super(Bt);const vt=window.document;this.node=vt.createElement("div"),vt.body.appendChild(this.node)}render(){const{children:Bt}=this.props;return(0,Re.createPortal)(Bt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(mn,gn,he){"use strict";he.d(gn,{SV:function(){return Rt},ZP:function(){return It}});var ae=he(59301),Re=he(76374);const ot={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"]},zt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Bt={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},vt={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},gt={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 Et=he(53184),Ct=he.n(Et),St=Object.defineProperty,Tt=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,tt=(Wt,te,ue)=>te in Wt?St(Wt,te,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Wt[te]=ue,at=(Wt,te)=>{for(var ue in te||(te={}))ft.call(te,ue)&&tt(Wt,ue,te[ue]);if(xt)for(var ue of xt(te))z.call(te,ue)&&tt(Wt,ue,te[ue]);return Wt},it=(Wt,te)=>Tt(Wt,mt(te)),lt=(Wt,te,ue)=>new Promise((le,Ae)=>{var Le=$e=>{try{tn(ue.next($e))}catch(Qe){Ae(Qe)}},Be=$e=>{try{tn(ue.throw($e))}catch(Qe){Ae(Qe)}},tn=$e=>$e.done?le($e.value):Promise.resolve($e.value).then(Le,Be);tn((ue=ue.apply(Wt,te)).next())});const ut={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"]}},dt=(Wt,te)=>te.map(ue=>({label:ue,kind:Wt.languages.CompletionItemKind.Keyword,insertText:ue})),Pt=Wt=>Object.keys(ut.tables).map(te=>({label:te,kind:Wt.languages.CompletionItemKind.Variable,insertText:te})),At=(Wt,te)=>{const ue=ut.tables[Wt];return ue?ue.map(le=>({label:le,kind:te.languages.CompletionItemKind.Field,insertText:le})):[]};function Dt(Wt,te,ue,le,Ae){let Le=te.getWordUntilPosition(ue),Be={startLineNumber:ue.lineNumber,endLineNumber:ue.lineNumber,startColumn:Le.startColumn,endColumn:Le.endColumn},tn=le.map($e=>({label:$e,kind:Wt.languages.CompletionItemKind.Keyword,insertText:$e,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Be}));return Ae.map($e=>{tn.push(it(at({},$e),{range:Be}))}),tn}var Ft=Wt=>{ut.languages.map(Ae=>(Wt.languages.registerDocumentFormattingEditProvider(Ae,{provideDocumentFormattingEdits(Le,Be,tn){return lt(this,null,function*(){const $e=Ct()(Le.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:Le.getFullModelRange(),text:$e}]})}}),Ae));const te=Bt.quickKey.map(Ae=>({label:Ae.label,kind:Wt.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ue=vt.quickKey.map(Ae=>({label:Ae.label,kind:Wt.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),le=zt.quickKey.map(Ae=>({label:Ae.label,kind:Wt.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Wt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ae,Le){var Be=Ae.getWordUntilPosition(Le),tn={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},$e=Ae.getLineContent(Le.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[...Bt.keywords.map(Qe=>({label:Qe,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...Bt.quickKey.map(Qe=>({label:Qe.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:$e.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Wt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ae,Le){var Be=Ae.getWordUntilPosition(Le),tn={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn};return{suggestions:[...ot.keywords.map($e=>({label:$e,kind:Wt.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Wt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ae,Le){var Be=Ae.getWordUntilPosition(Le),tn={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},$e=Ae.getLineContent(Le.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[...zt.keywords.map(Qe=>({label:Qe,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...zt.quickKey.map(Qe=>({label:Qe.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:$e.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Wt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ae,Le){var Be=Ae.getWordUntilPosition(Le),tn={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},$e=Ae.getLineContent(Le.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[...gt.keywords.map(Qe=>({label:Qe,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...gt.quickKey.map(Qe=>({label:Qe.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:$e.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Wt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ae,Le){var Be=Ae.getWordUntilPosition(Le),tn={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},$e=Ae.getLineContent(Le.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[...vt.keywords.map(Qe=>({label:Qe,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...vt.quickKey.map(Qe=>({label:Qe.label,kind:Wt.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:$e.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:Wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}})};const jt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Nt=Object.defineProperty,Gt=(Wt,te,ue)=>te in Wt?Nt(Wt,te,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Wt[te]=ue,Ht=(Wt,te,ue)=>Gt(Wt,typeof te!="symbol"?te+"":te,ue);const Yt=class mx{constructor(te,ue,le){this.placeholder=te,this.editor=ue,this.monaco=le,ue.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.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)}};Ht(Yt,"ID","editor.widget.placeholderHint");var Vt=Yt,oe=he(96236),se=he(6767),de=he(25399),Se=he(89392),Qt=he(34604),ne=he(56102),ye=Object.defineProperty,we=Object.defineProperties,be=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,Ce=(Wt,te,ue)=>te in Wt?ye(Wt,te,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Wt[te]=ue,ve=(Wt,te)=>{for(var ue in te||(te={}))pe.call(te,ue)&&Ce(Wt,ue,te[ue]);if(fe)for(var ue of fe(te))ce.call(te,ue)&&Ce(Wt,ue,te[ue]);return Wt},Fe=(Wt,te)=>we(Wt,be(te)),ge=(Wt,te)=>{var ue={};for(var le in Wt)pe.call(Wt,le)&&te.indexOf(le)<0&&(ue[le]=Wt[le]);if(Wt!=null&&fe)for(var le of fe(Wt))te.indexOf(le)<0&&ce.call(Wt,le)&&(ue[le]=Wt[le]);return ue},xe=(Wt,te,ue)=>new Promise((le,Ae)=>{var Le=$e=>{try{tn(ue.next($e))}catch(Qe){Ae(Qe)}},Be=$e=>{try{tn(ue.throw($e))}catch(Qe){Ae(Qe)}},tn=$e=>$e.done?le($e.value):Promise.resolve($e.value).then(Le,Be);tn((ue=ue.apply(Wt,te)).next())});function ee(Wt){return/^\d+$/.test(Wt)?`${Wt}px`:Wt}function Kt(){}let wt=!1;const Lt={"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 Xt(Wt=[]){let te=Wt;if(Array.isArray(Wt)){for(let ue=0;ue{var te=Wt,{width:ue="100%",height:le="100%",value:Ae,language:Le="javascript",style:Be={},options:tn={},overrideServices:$e={},theme:Qe="vs-dark",onEditBlur:Ze,isCopy:Ge=!1,onSave:We,autoHeight:Ke=!1,forbidCopy:nn=!1,onChange:hn=Kt,editorDidMount:un=Kt,onFocus:bn=Kt,onBreakPoint:Un=Kt,breakPointValue:Vn=[],filename:Yn="educoder.txt",errorLine:vr,errorContent:pr="",highlightLine:gr,openBreakPoint:Nr=!1,placeholder:Lr="",showMiniMap:dr=!0}=te,cr=ge(te,["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 jr=(0,ae.useRef)(),$t=(0,ae.useRef)({}),$n=(0,ae.useRef)(),Zn=(0,ae.useRef)(),Dr=(0,ae.useRef)([]),Vr=(0,ae.useRef)(!1),Ur=(0,ae.useRef)(),ai=(0,ae.useRef)(),qn=(0,ae.useRef)(!1),[zn,Ye]=(0,ae.useState)(!1);function Ve(){let dn;return jr.current&&(dn=new Re.Z(An=>{for(let er of An)(er.target.offsetHeight>0||er.target.offsetWidth>0)&&$t.current.instance.layout()}),dn.observe(jr.current)),dn}function He(){se.ZP.warning({content:decodeURIComponent(jt),key:"monaco-editor-tip"})}const Fn=()=>{let dn=$t.current.instance;if(Ae!=null&&dn&&zn){const An=dn.getModel();An&&Ae!==An.getValue()&&(wt=!0,An.setValue(Ae),dn.layout(),wt=!1)}};(0,ae.useEffect)(()=>{const dn=Qt.Z.subscribe("formatDocument",An=>{var er;let ar=$t.current.instance;(er=ar==null?void 0:ar.getAction)==null||er.call(ar,"editor.action.formatDocument").run()});return window.updateMonacoValue=An=>{hn(An)},dn},[]),(0,ae.useEffect)(()=>{var dn;let An=$t.current.instance;Zn.current&&clearTimeout(Zn.current),Zn.current=setTimeout(()=>{Fn()},500),Ae&&(Ae!=null&&Ae.length)&&((dn=An==null?void 0:An.updateOptions)==null||dn.call(An,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ae.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ae,zn,$t.current]),(0,ae.useEffect)(()=>{if(vr&&$t.current&&$t.current.instance){let An=$t.current.instance;An.changeViewZones(function(er){var ar=document.createElement("div");ar.style.padding="10px 20px",ar.style.width="calc(100% - 20px)",ar.className="my-error-line-wrp",ar.innerHTML=pr,er.addZone({afterLineNumber:vr||11,heightInLines:3,domNode:ar})});var dn={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}};An.addOverlayWidget(dn),An.revealPositionInCenter({lineNumber:20,column:1})}},[vr,$t.current,zn]);const On=(dn="",An)=>{if(!dn||dn.trim()==="")return!0;const ar=$t.current.instance.getModel().getLineTokens(An);let Xn=!1;for(let In=0;In<2;In++)ar.getStandardTokenType(In)===1&&(Xn=!0);return Xn};(0,ae.useEffect)(()=>{var dn;const An=(dn=$t.current)==null?void 0:dn.instance;if(An&&zn&&nn){const er=An.onDidBlurEditorWidget(()=>{qn.current=!1}),ar=An.onDidFocusEditorText(()=>{qn.current=!0});return()=>{er.dispose(),ar.dispose()}}},[$t.current,zn,nn]),(0,ae.useEffect)(()=>{var dn;if((dn=$t.current)!=null&&dn.instance&&zn&&Nr){let An=$t.current.instance,er=An.getModel();if(!er)return;(()=>{var an;let Rn=[],nr=[];const fr=er.getAllDecorations();for(let Pr of fr)Pr.options.className==="highlighted-line"&&(Rn.push((an=Pr==null?void 0:Pr.range)==null?void 0:an.startLineNumber),nr.push(Pr==null?void 0:Pr.id));if(gr===Rn[0])return;er.deltaDecorations(nr,[]);const lr=er.getLineCount();gr&&gr<=lr&&(An.deltaDecorations([],[{range:new re.Range(gr,1,gr,er.getLineMaxColumn(gr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),An.revealLineInCenter(gr))})();const Xn=(an=!1)=>{var Rn;let nr=[],fr=[];const lr=er.getAllDecorations();for(let Pr of lr)Pr.options.linesDecorationsClassName==="breakpoints-select"&&(nr.push((Rn=Pr==null?void 0:Pr.range)==null?void 0:Rn.startLineNumber),fr.push(Pr==null?void 0:Pr.id));if(an)return{lines:nr,ids:fr};Un(nr)},In=an=>xe(void 0,null,function*(){let Rn={range:new re.Range(an,1,an,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield er.deltaDecorations([],[Rn]),Xn()}),Wn=an=>xe(void 0,null,function*(){let Rn=[];const nr=An.getLineDecorations(an);for(let fr of nr)fr.options.linesDecorationsClassName==="breakpoints-select"&&Rn.push(fr.id);yield er.deltaDecorations(Rn,[]),Xn()}),rr=an=>{let Rn=An.getLineDecorations(an);for(let nr of Rn)if(nr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Se.isEqual)(Vn,Xn(!0).lines)){er.deltaDecorations(Xn(!0).ids,[]);const an=Vn.map(Rn=>({range:new re.Range(Rn,1,Rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));er.deltaDecorations([],an)}const sr=An.onDidChangeModelContent(an=>{let Rn=An.getPosition();if(Rn){let nr=Rn.lineNumber;clearTimeout(ai.current),ai.current=setTimeout(()=>{On(er.getLineContent(nr),nr)?Wn(nr):rr(nr)?(Wn(nr),In(nr)):Xn()},100)}}),mr=An.onMouseDown(an=>{var Rn,nr,fr;if(an.target.detail&&((fr=(nr=(Rn=an.target)==null?void 0:Rn.element)==null?void 0:nr.className)!=null&&fr.includes("line-numbers"))){let lr=an.target.position.lineNumber;if(On(er.getLineContent(lr),lr))return;rr(lr)?Wn(lr):In(lr)}}),cn=an=>{let Rn={range:new re.Range(an,1,an,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Dr.current=An.deltaDecorations(Dr.current,[Rn])},Si=()=>{Dr.current=An.deltaDecorations(Dr.current,[])},Rr=An.onMouseMove(an=>{var Rn,nr,fr;if(Si(),an.target.detail&&((fr=(nr=(Rn=an.target)==null?void 0:Rn.element)==null?void 0:nr.className)!=null&&fr.includes("line-numbers"))){let lr=an.target.position.lineNumber;if(On(er.getLineContent(lr),lr))return;cn(lr)}}),pi=An.onMouseLeave(()=>{Si()});return()=>{sr.dispose(),mr.dispose(),Rr.dispose(),pi.dispose()}}},[$t.current,zn,Vn,gr,Nr,Le]),(0,ae.useEffect)(()=>{var dn;(dn=$t.current)!=null&&dn.instance&&Nr&&$t.current.instance.setPosition({lineNumber:0,column:0})},[gr]);function Qn(){let dn=$t.current.instance;if(dn){const An=dn.getSelection(),er=$t.current.pastePos||{},ar=new re.Range(er.startLineNumber||An.endLineNumber,er.startColumn||An.endColumn,er.endLineNumber||An.endLineNumber,er.endColumn||An.endColumn);setTimeout(()=>{dn.executeEdits("",[{range:ar,text:""}])},300)}}function yn(dn){(window.navigator.platform.match("Mac")?dn.metaKey:dn.ctrlKey)&&dn.keyCode==83&&(dn.preventDefault(),We())}const Nn=()=>{if(Ke&&$t.current.instance){const dn=$t.current.instance.getContentHeight();Gn(dn{if(!qn.current)return;const{keyCode:An,ctrlKey:er,metaKey:ar,target:Xn,type:In}=dn;return(In==="paste"||(An===67||An===86)&&(ar||er))&&Xn.nodeName==="TEXTAREA"&&(He(),dn.preventDefault()),!1};function Dn(dn,An){var er=window.URL||window.webkitURL||window,ar=new Blob([An]),Xn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Xn.href=er.createObjectURL(ar),Xn.download=dn,en(Xn)}(0,ae.useEffect)(()=>{Nn()},[Nn]),(0,ae.useEffect)(()=>{jr.current&&!zn&&Promise.all([he.e(8909),he.e(3267)]).then(he.bind(he,71448)).then(dn=>{try{re=dn,$t.current.instance=re.editor.create(jr.current,{value:Ae,language:Xt(Le),theme:Qe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:dr||!1}},$e);const An=$t.current.instance;let Xn=[...oe.BH._menuItems].find(sr=>sr[0]._debugName=="EditorContext")[1],In=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Wn=(sr,mr)=>{var cn,Si;let Rr=sr._first;do mr.includes((Si=(cn=Rr.element)==null?void 0:cn.command)==null?void 0:Si.id)&&sr._remove(Rr);while(Rr=Rr.next)};if(un(An,re),setTimeout(()=>{Nn(),$t.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Dn(Yn||"educoder.txt",An.getValue())}})},500),$t.current.subscription=An.onDidChangeModelContent(sr=>{Vr.current?clearTimeout(Ur.current):(Nn(),hn(An.getValue(),sr)),Ur.current=setTimeout(()=>{Vr.current=!1},500)}),window.Monaco||Ft(re,Xt(Le)),nn&&(Wn(Xn,In),jr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Xe),window.removeEventListener("paste",Xe),window.addEventListener("keydown",Xe),window.addEventListener("paste",Xe)),window.Monaco=re,Ze&&An.onDidBlurEditorWidget(()=>{Ze(An.getValue())}),bn&&An.onDidFocusEditorText(()=>{bn(An.getValue())}),nn)try{An.onDidPaste(sr=>{const mr=An.getSelection(),cn=$t.current.pastePos||{},Si=new re.Range(cn.startLineNumber||mr.endLineNumber,cn.startColumn||mr.endColumn,cn.endLineNumber||mr.endLineNumber,cn.endColumn||mr.endColumn);An.executeEdits("",[{range:sr.range,text:""}])})}catch(sr){}let rr=Ve();return Lr&&typeof Lr=="string"&&new Vt(Lr,An,re),Ye(!0),()=>{const sr=$t.current.instance;sr.dispose();const mr=sr.getModel();mr&&mr.dispose(),$t.current.subscription&&$t.current.subscription.dispose(),rr.unobserve(jr.current)}}catch(An){}})},[]),(0,ae.useEffect)(()=>{if($t.current.instance&&zn)return document.addEventListener("keydown",yn,!1),()=>{document.removeEventListener("keydown",yn)}},[We,zn]),(0,ae.useEffect)(()=>{let dn=$t.current.instance;if(dn&&zn){let An=Xt(Le);re.editor.setModelLanguage(dn.getModel(),An)}},[Le,zn]),(0,ae.useEffect)(()=>{$t.current.instance&&zn&&re.editor.setTheme(Qe)},[Qe,zn]),(0,ae.useEffect)(()=>{let dn=$t.current.instance;$n.current=tn,dn&&zn&&(dn.updateOptions(ve({},tn)),setTimeout(()=>{dn.getModel().updateOptions(ve({},tn))},200))},[JSON.stringify(tn),zn]),(0,ae.useEffect)(()=>{let dn=$t.current.instance;dn&&zn&&dn.layout()},[ue,le,zn]);const[Oe,ln]=(0,ae.useState)(ee(ue)),[En,Gn]=(0,ae.useState)(ee(le)),sn=Fe(ve({},Be),{width:Oe,height:En,position:"relative"});return ae.createElement("div",{className:"my-monaco-editor",ref:jr,style:sn},Ge&&ae.createElement(ne.CopyToClipboard,{text:Ae,onCopy:()=>se.ZP.success("\u590D\u5236\u6210\u529F")},ae.createElement(de.Z,{title:"\u590D\u5236\u4EE3\u7801"},ae.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ae.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Rt({width:Wt="100%",height:te="100%",original:ue,modified:le,language:Ae,options:Le={}}){const Be=(0,ae.useRef)(),[tn,$e]=(0,ae.useState)(null);function Qe(Ke){let nn;return Be.current&&(nn=new Re.Z(hn=>{for(let un of hn)(un.target.offsetHeight>0||un.target.offsetWidth>0)&&Ke.layout()}),nn.observe(Be.current)),nn}(0,ae.useEffect)(()=>(Be.current&&Promise.all([he.e(8909),he.e(9404)]).then(he.bind(he,2550)).then(Ke=>{re=Ke;const nn=re.editor.createDiffEditor(Be.current,Fe(ve({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},Le),{wordWrap:!0}));$e(nn);let hn=Qe(nn);return()=>{nn.dispose();const un=nn.getModel();un&&un.dispose(),hn.unobserve(Be.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ae.useEffect)(()=>{tn&&tn.setModel({original:re.editor.createModel(ue,Ae),modified:re.editor.createModel(le,Ae)})},[ue,le,Ae,tn]);const Ze=ee(Wt),Ge=ee(te),We={width:Ze,height:Ge};return ae.createElement("div",{className:"my-diff-editor",ref:Be,style:We})}},16869:function(mn,gn,he){"use strict";var ae=he(38476),Re=he(82326),ot=he(71411),zt=he(59301);const Bt=Re.default.Option;gn.Z=({isTheoretical:vt,onFontSizeChange:gt,cmFontSize:Et,cmCodeMode:Ct,autoFormat:St,onCodeModeChange:Tt,onTabToSpace:mt,onAutoFormat:xt,formatDocument:ft,className:z="",tabToSpace:tt,children:at,code_editor:it,challenge:lt})=>{const ut={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return zt.createElement("div",{className:`tpi-code-setting ${z}`},zt.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),zt.createElement("section",null,zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),zt.createElement(Re.default,{bordered:!1,size:"small",value:Ct,onChange:Tt},zt.createElement(Bt,{value:"vs"},"\u767D\u8272\u80CC\u666F"),zt.createElement(Bt,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!vt&&zt.createElement(zt.Fragment,null,zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),zt.createElement(Re.default,{bordered:!1,size:"small",value:Et,onChange:gt},zt.createElement(Bt,{value:12},"12px"),zt.createElement(Bt,{value:14},"14px"),zt.createElement(Bt,{value:16},"16px"),zt.createElement(Bt,{value:18},"18px"),zt.createElement(Bt,{value:20},"20px"),zt.createElement(Bt,{value:22},"22px"))),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"Tab\u8F6C\u6362"),zt.createElement(ot.Z,{checked:tt,onChange:mt})),zt.createElement("div",{className:"file-item",onClick:ft},zt.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!vt&&zt.createElement(zt.Fragment,null,zt.createElement("h3",null,"\u5FEB\u6377\u952E"),zt.createElement("section",null,zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),zt.createElement("span",null,"Ctrl + S")),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),zt.createElement("span",null,"F1 / Alt + F1")),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),zt.createElement("span",null,"Ctrl + ]/[")),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),zt.createElement("span",null,"Ctrl + Shift + \\")),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),zt.createElement("span",null,"Home")),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),zt.createElement("span",null,"End"))),at),!vt&&zt.createElement(zt.Fragment,null,zt.createElement("h3",null,"\u5FEB\u6377\u952E"),zt.createElement("section",null,zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),zt.createElement("span",null,ut[lt==null?void 0:lt.difficulty])),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),zt.createElement("span",null,it==null?void 0:it.name)),zt.createElement("div",{className:"file-item"},zt.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),zt.createElement("span",null,it!=null&&it.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},85057:function(mn,gn,he){"use strict";he.d(gn,{jL:function(){return Bt},w9:function(){return pe},QD:function(){return hn},cQ:function(){return ne},op:function(){return Qe},O5:function(){return ai},_b:function(){return vr},t7:function(){return it},Gi:function(){return xe},YG:function(){return Fe},qp:function(){return Tt},vr:function(){return Un},qE:function(){return We},Je:function(){return dt},wb:function(){return oe},cq:function(){return re},tp:function(){return ft}});var ae=he(59301),Re={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ot="data:image/png;base64,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",Bt=({dataSource:qn=[],img:zn,imgWidth:Ye=346,title:Ve,sunTitle:He,bannerExtraContent:Fn})=>ae.createElement("div",{className:Re.banner},ae.createElement("div",{className:Re.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,Ve),ae.createElement("span",null,He)),qn.length>0&&ae.createElement("div",{className:Re.btns},qn.map((On,Qn)=>ae.createElement("div",{key:Qn,onClick:On.click},On.name,On.sign?ae.createElement("img",{src:ot,width:39}):null))),Fn),zn&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:zn,width:Ye}))),vt={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},gt=he(92310),Et=he.n(gt),Ct=he(89392),Tt=({dataSource:qn=[],value:zn,onChange:Ye,onTitleChange:Ve,className:He,title:Fn,titleWidth:On=41,style:Qn={},fontColor:yn="#6A7283",showCount:Nn})=>{const[en,Xe]=(0,ae.useState)(0),[Dn,Oe]=(0,ae.useState)(!1),ln=(0,ae.useRef)(null),En=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var Gn;qn.length!==0&&(((Gn=ln==null?void 0:ln.current)==null?void 0:Gn.clientHeight)>97?Xe(1):Xe(0)),qn.length===0&&Xe(0),Oe(!1)},[qn]),ae.createElement("div",{className:Et()(vt.row,He),style:Qn},ae.createElement("div",{onClick:(0,Ct.throttle)(()=>Ve==null?void 0:Ve(),2e3),style:{width:On,marginTop:Dn?12:4},className:`${vt.title} ${Ve?"current":""}`},Fn),ae.createElement("div",{className:Dn?`${vt.tagsWrap} ${vt.tagsBorderWrap}`:vt.tagsWrap},ae.createElement("div",{className:vt.bar,ref:En,style:en>0?{height:en===1?97:"auto",overflow:en===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:vt.tag,ref:ln},qn==null?void 0:qn.map(Gn=>ae.createElement("span",{onClick:()=>Ye(Gn.id),key:Gn.id,style:{color:yn},className:zn===Gn.id?vt.active:""},ae.createElement("span",{title:Gn.name,className:vt.name},Gn.name),!!Nn&&ae.createElement("span",{className:vt.num},Gn.count))))),!!en&&ae.createElement(ae.Fragment,null,en===1?ae.createElement("div",{onClick:()=>{var Gn;Xe(2),((Gn=ln==null?void 0:ln.current)==null?void 0:Gn.clientHeight)>245?Oe(!0):Oe(!1)},className:vt.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{En.current.scrollTop=0,Xe(1),Oe(!1)},className:vt.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},mt={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ft=({dataSource:qn=[],value:zn,onChange:Ye,className:Ve,style:He={}})=>ae.createElement("div",{style:He,className:Et()(mt.tabs,Ve)},qn.map(Fn=>ae.createElement("span",{onClick:()=>Ye(Fn.id),className:zn===Fn.id?mt.active:"",key:Fn.id},Fn.name))),z={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},tt=he(37568),it=({dataSource:qn=[],value:zn="",onChange:Ye,onInputChange:Ve=()=>{},className:He,style:Fn={},placeholder:On,allowClear:Qn=!1})=>{var yn;const[Nn,en]=(0,ae.useState)(""),[Xe,Dn]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var En;let Gn=zn;(En=JSON.stringify(zn))!=null&&En.includes("{")&&(en(zn.id),Gn=zn.value||"");try{Dn(decodeURIComponent(Gn||""))}catch(sn){Dn(decodeURIComponent(Gn||""))}},[zn]);const Oe=()=>{Ye(encodeURIComponent(Xe),Nn||null)},ln=En=>{En!==Nn&&(en(En),Ye(encodeURIComponent(Xe),En))};return ae.createElement("div",{className:Et()(z.input,He),style:Fn},!!qn.length&&ae.createElement("div",{className:z.dropdown},ae.createElement("div",{className:z.text},(yn=qn.find(En=>En.id===Nn))==null?void 0:yn.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:z.b1}),ae.createElement("b",{className:z.b2})),ae.createElement("div",{className:z.menu},qn.map((En,Gn)=>ae.createElement("div",{key:Gn,onClick:()=>ln(En.id)},En.name)))),ae.createElement(tt.default,{onPressEnter:Oe,value:Xe,onChange:En=>{Dn(En.target.value),Ve(encodeURIComponent(En.target.value),Nn||null)},bordered:!1,placeholder:On}),ae.createElement("i",{onClick:Oe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},lt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},dt=({value:qn,onChange:zn,className:Ye,total:Ve,pageSize:He,style:Fn={}})=>{const On=qn<2,Qn=qn>=Math.ceil(Ve/He);return Ve<=He?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:Et()(lt.quickPager,Ye),style:Fn},ae.createElement("div",{onClick:()=>{On||zn(qn-1,"prev")},className:On?lt.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{Qn||zn(qn+1,"next")},className:Qn?lt.disabled:""},"\u4E0B\u4E00\u9875"))},Pt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},At=he(29787),Dt=he(25399),Ft=he(58018),jt=he(3294),Nt=he(955),Gt=he(96908),Ht=he(57177),Yt=he(81378),Ut=he(8797),oe=({className:qn,dataSource:zn=[],col:Ye=4,right:Ve,bottom:He=23,precision:Fn=0,wrapWidth:On=1200,trackEventItems:Qn,loading:yn})=>{const Nn=Math.floor((On-(Ye-1)*Ve)/Ye);return ae.createElement(At.Z,{spinning:yn},ae.createElement("div",{className:Et()(Pt.list,qn)},!!zn.length&&zn.map((en,Xe)=>{const{name:Dn,id:Oe,identifier:ln,power:En,cover_image_id:Gn,pic:sn}=en;return ae.createElement("div",{className:Pt.wrap,key:Oe,style:{width:Nn,marginRight:(1+Xe)%Ye===0?0:Ve+Fn,marginBottom:He}},ae.createElement("a",{target:"_blank",href:`/shixuns/${ln}/challenges`,className:Pt.li,onClick:dn=>{dn.preventDefault(),Qn&&(0,Nt.L9)([Qn]),En&&(0,Nt.xg)(`/shixuns/${ln}/challenges`)}},ae.createElement("div",{className:Pt.img},ae.createElement("img",{className:Pt.cover,src:`${sn}`}),en.is_jupyter&&ae.createElement("img",{className:Pt.sign,src:Gt}),en.is_jupyter_lab&&ae.createElement("img",{className:Pt.sign,src:Ht}),en.is_unity_3d&&ae.createElement("img",{className:Pt.sign,src:Yt})),ae.createElement("div",{className:Pt.name},ae.createElement(Dt.Z,{title:Dn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Pt.e},Dn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:Pt.tags},ae.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,en.challenges_count))),!!en.myshixuns_count&&ae.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,en.myshixuns_count))),ae.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,en.level))),ae.createElement("div",{className:Pt.rate},ae.createElement(Ft.Z,{allowHalf:!0,disabled:!0,defaultValue:en.score_info}),ae.createElement("span",null,"\xA0",en.score_info?`${en.score_info}\u5206`:"5\u5206")))),!En&&ae.createElement("div",{className:Pt.lockWrap},ae.createElement("img",{src:`${jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!zn.length&&ae.createElement(Ut.Z,null)))},se={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},de=he(24065),Se=he(59301),ne=({className:qn,dataSource:zn=[],col:Ye=4,right:Ve,bottom:He=23,precision:Fn=0,wrapWidth:On=1200,trackEventItems:Qn,loading:yn,onRemove:Nn=()=>{},isCurrent:en=!0,showAlias:Xe=!1})=>{const Dn=Math.floor((On-(Ye-1)*Ve)/Ye),Oe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Se.createElement(At.Z,{spinning:yn},Se.createElement("div",{className:Et()(se.list,qn)},!!(zn!=null&&zn.length)&&(zn==null?void 0:zn.map((ln,En)=>{var Gn;const{name:sn,id:dn,identifier:An,featured:er,school_name:ar,image_url:Xn,excellent:In,is_plan:Wn}=ln;return Se.createElement("div",{key:dn,className:se.wrap,style:{width:Dn,marginRight:(1+En)%Ye===0?0:Ve+Fn,marginBottom:He}},Se.createElement("a",{className:se.li,onClick:rr=>{rr.preventDefault(),rr.stopPropagation(),Qn&&(0,Nt.L9)([Qn]),(0,Nt.xg)(`/paths/${An}`)}},Se.createElement("div",{className:se.img},Se.createElement("img",{className:se.cover,src:`${Xn}`}),en&&(0,de.bg)()&&(ln==null?void 0:ln.studying)&&Se.createElement("div",{className:`${se.movebq} user-path-items`,onClick:rr=>{rr.stopPropagation(),Nn(ln)}},Se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Gn=ln==null?void 0:ln.subject_tags)==null?void 0:Gn.map((rr,sr)=>{var mr,cn;if(sr===0){const Rr=(mr=Oe.find(pi=>pi.name==rr))==null?void 0:mr.swimg;return Se.createElement("img",{className:se.sign,src:Rr,style:{left:"-4px"}})}const Si=(cn=Oe.find(Rr=>Rr.name==rr))==null?void 0:cn.ptimg;return Se.createElement("img",{className:se.sign,src:Si,style:{left:`${48+52*(sr-1)+2*sr}px`}})}),Se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ln==null?void 0:ln.excellent)&&Se.createElement("div",{className:se.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Se.createElement("div",{className:se.name},Se.createElement(Dt.Z,{title:Xe&&(ln!=null&&ln.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${sn}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ln==null?void 0:ln.excellent_alias_name}`)):sn},Se.createElement("span",{className:se.e},Xe&&(ln==null?void 0:ln.excellent_alias_name)||sn))),Se.createElement(Dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ar}`},Se.createElement("div",{className:se.unit},Se.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ar)),Se.createElement("div",{className:se.tags},Se.createElement("div",null,Se.createElement(Dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,ln.stages_count))),Se.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,ln.members_count)))))))})),!zn.length&&Se.createElement(Ut.Z,null)))},ye={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we="data:image/png;base64,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",be=he(59301),pe=({className:qn,dataSource:zn=[],col:Ye=4,right:Ve,bottom:He=23,precision:Fn=0,wrapWidth:On=1200,trackEventItems:Qn,loading:yn,handleVery:Nn=()=>!0})=>{const en=Math.floor((On-(Ye-1)*Ve)/Ye);return be.createElement(At.Z,{spinning:yn},be.createElement("div",{className:Et()(ye.list,qn)},!!zn.length&&zn.map((Xe,Dn)=>{const{subject_identifier:Oe,id:ln,identifier:En,power:Gn}=Xe,sn=Xe.is_public!=0&&Xe.is_public;return be.createElement("div",{className:ye.wrap,key:ln,style:{width:en,marginRight:(1+Dn)%Ye===0?0:Ve+Fn,marginBottom:He}},be.createElement("a",{className:ye.li,onClick:dn=>{dn.preventDefault(),Nn(Xe==null?void 0:Xe.first_category_url)&&(Qn&&(0,Nt.L9)([Qn]),(0,Nt.xg)(Xe.first_category_url))}},be.createElement("div",{className:ye.top},be.createElement(Dt.Z,{title:Xe.name},be.createElement("div",{className:ye.name},Xe.name)),be.createElement("img",{className:ye.img,src:jt.Z.IMG_SERVER+"/images/"+Xe.avatar_url}),be.createElement("div",{className:ye.text,title:Xe.creator},Xe.creator),Oe&&be.createElement("div",{className:ye.btns},be.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),be.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),sn&&be.createElement("div",{className:ye.sign},"\u516C\u5F00")),be.createElement("div",{className:ye.bottom},Xe.visits>0&&be.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-liulanyan"}),be.createElement("span",null,Xe.visits))),Xe.course_members_count>0&&be.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-chengyuan"}),Xe.course_members_count)),Xe.tasks_count>0&&be.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-zuoye"}),Xe.tasks_count)),Xe.is_end?be.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):be.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Xe.is_accessible&&be.createElement("div",{className:ye.lockWrap},be.createElement("img",{src:`${jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),be.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!zn.length&&be.createElement(Ut.Z,null)))},ce={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ce=he(89070),Fe=({dataSource:qn=[],value:zn,onChange:Ye,className:Ve,style:He={},tabBarExtraContent:Fn})=>ae.createElement("div",{className:Et()(ce.tabs,Ve),style:He},ae.createElement("div",{className:ce.tabsWrap},qn.map((On,Qn)=>!(On!=null&&On.hide)&&ae.createElement("aside",{className:ce.tab,onClick:()=>{Ye(On.id),On.link&&Ce.history.push(On.link)},key:Qn},ae.createElement("div",{className:zn===On.id?ce.active:""},On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&ae.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&ae.createElement(Dt.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",ae.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),ae.createElement("div",{className:ce.tabBar},Fn)),xe=({className:qn,style:zn={},children:Ye})=>ae.createElement("div",{className:Et()(qn),style:zn},Ye),ee={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Kt=he(75727),wt=he(93041);const Lt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var re=({sortValue:qn,dropValue:zn,className:Ye,onSort:Ve,onDrop:He,dataSource:Fn=Lt})=>{var On;return ae.createElement("div",{className:Et()(ee.orderWrap,Ye)},ae.createElement(Kt.Z,{dropdownRender:()=>ae.createElement(wt.default,null,Fn.map((Qn,yn)=>ae.createElement(wt.default.Item,{key:yn,onClick:()=>He(Qn.id)},Qn.name)))},ae.createElement("span",{className:ee.orderTextWrap},(On=Fn.find(Qn=>zn===Qn.id))==null?void 0:On.name)),ae.createElement("span",{className:ee.orderIconWrap},ae.createElement("span",{className:ee.orderAsc},ae.createElement("i",{className:qn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ee.cursorPointer} ${ee.active}`:`iconfont icon-sanjiaoxing-up font12 ${ee.cursorPointer}`,onClick:()=>Ve(qn==="asc"?"desc":"asc")})),ae.createElement("span",{className:ee.orderDesc},ae.createElement("i",{className:qn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ee.cursorPointer} ${ee.active}`:`iconfont icon-sanjiaoxing-down font12 ${ee.cursorPointer}`,onClick:()=>Ve(qn==="asc"?"desc":"asc")}))))},It={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Rt=he(99571),Wt=Object.defineProperty,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Ae=(qn,zn,Ye)=>zn in qn?Wt(qn,zn,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):qn[zn]=Ye,Le=(qn,zn)=>{for(var Ye in zn||(zn={}))ue.call(zn,Ye)&&Ae(qn,Ye,zn[Ye]);if(te)for(var Ye of te(zn))le.call(zn,Ye)&&Ae(qn,Ye,zn[Ye]);return qn},Be=(qn,zn)=>{var Ye={};for(var Ve in qn)ue.call(qn,Ve)&&zn.indexOf(Ve)<0&&(Ye[Ve]=qn[Ve]);if(qn!=null&&te)for(var Ve of te(qn))zn.indexOf(Ve)<0&&le.call(qn,Ve)&&(Ye[Ve]=qn[Ve]);return Ye},tn=(qn,zn,Ye)=>new Promise((Ve,He)=>{var Fn=yn=>{try{Qn(Ye.next(yn))}catch(Nn){He(Nn)}},On=yn=>{try{Qn(Ye.throw(yn))}catch(Nn){He(Nn)}},Qn=yn=>yn.done?Ve(yn.value):Promise.resolve(yn.value).then(Fn,On);Qn((Ye=Ye.apply(qn,zn)).next())}),Qe=qn=>{var zn=qn,{className:Ye,style:Ve,children:He,loading:Fn=!1,openLoading:On,onClick:Qn=()=>{},size:yn="middle",shape:Nn="round"}=zn,en=Be(zn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Xe,Dn]=(0,ae.useState)(!1);return ae.createElement(Rt.ZP,Le({onClick:(0,Ct.throttle)(Oe=>tn(void 0,null,function*(){On&&Dn(!0);try{yield Qn(Oe)}catch(ln){console.log("error",ln)}On&&Dn(!1)}),2e3,{leading:!0,trailing:!1}),className:Et()(It.btn,It[`${yn}-${Nn}`],Ye),style:Ve,size:yn,shape:Nn,loading:Xe||Fn},en),He)},Ze={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},We=({className:qn,style:zn,children:Ye=null,onClick:Ve,title:He})=>ae.createElement("div",{className:Et()(Ze.head,qn),style:zn},ae.createElement("span",{className:"primary-hover",onClick:Ve},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:He},He),ae.createElement("div",{className:Ze.node},Ye)),Ke={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},hn=({confirmShow:qn=!0,confirmTitle:zn,confirmClick:Ye,cancelShow:Ve=!0,cancelTitle:He,cancelClick:Fn,className:On,style:Qn,confirmLoading:yn=!1})=>ae.createElement("div",{className:Et()(Ke.btns,On),style:Qn},qn&&ae.createElement(Rt.ZP,{loading:yn,onClick:Ye,type:"primary",className:Ke.confirm},zn),Ve&&ae.createElement(Rt.ZP,{onClick:Fn,className:Ke.cancel},He)),un={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Un=({className:qn,style:zn={},LeftContent:Ye,children:Ve,RightContent:He})=>ae.createElement("div",{className:Et()(un.fixedBottom,qn),style:zn},ae.createElement("div",{className:un.wrap},ae.createElement("div",{className:un.left},Ye),ae.createElement("div",{className:un.center},Ve),ae.createElement("div",{className:un.right},He))),Vn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},vr=({className:qn,style:zn={},dataSource:Ye=[]})=>ae.createElement("div",{className:Et()(Vn.crumbs,qn),style:zn},Ye.map((Ve,He)=>HeCe.history.push(Ve.path)},Ve.name):ae.createElement("span",null,Ve.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:He,style:{color:"#5F6368"}},Ve.name))),pr=he(11938),gr=Object.defineProperty,Nr=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,$t=(qn,zn,Ye)=>zn in qn?gr(qn,zn,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):qn[zn]=Ye,$n=(qn,zn)=>{for(var Ye in zn||(zn={}))cr.call(zn,Ye)&&$t(qn,Ye,zn[Ye]);if(dr)for(var Ye of dr(zn))jr.call(zn,Ye)&&$t(qn,Ye,zn[Ye]);return qn},Zn=(qn,zn)=>Nr(qn,Lr(zn)),Dr=(qn,zn)=>{var Ye={};for(var Ve in qn)cr.call(qn,Ve)&&zn.indexOf(Ve)<0&&(Ye[Ve]=qn[Ve]);if(qn!=null&&dr)for(var Ve of dr(qn))zn.indexOf(Ve)<0&&jr.call(qn,Ve)&&(Ye[Ve]=qn[Ve]);return Ye};const{Countdown:Vr}=pr.default;var ai=qn=>{var zn=qn,{onChange:Ye}=zn,Ve=Dr(zn,["onChange"]);const[He,Fn]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof He=="number"&&He>=0&&Ye(He)},[He]);const On=Qn=>{const yn=Math.floor(Qn/1e3);Fn(yn)};return ae.createElement(Vr,Zn($n({},Ve),{onChange:On}))}},58856:function(mn,gn,he){"use strict";he.d(gn,{Z:function(){return Re}});var ae=he(59301);function Re(ot,zt){const Bt=(0,ae.useRef)();(0,ae.useEffect)(()=>{Bt.current=ot}),(0,ae.useEffect)(()=>{function vt(){Bt.current()}if(zt!==null){let gt=setInterval(vt,zt);return()=>clearInterval(gt)}},[zt])}},85816:function(mn,gn,he){"use strict";he.d(gn,{Z:function(){return Gt}});var ae=he(59301),Re=he(28284),ot=he(30641),zt=he(62957),Bt=he(6767),vt=he(62673),gt=he(23954),Et=he(16869),Ct=he(79346),St=he(16479),Tt={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",xt=he(89392),ft=he(85057),z=he(59301),tt=Object.defineProperty,at=Object.defineProperties,it=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Pt=(Yt,Ut,Vt)=>Ut in Yt?tt(Yt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Yt[Ut]=Vt,At=(Yt,Ut)=>{for(var Vt in Ut||(Ut={}))ut.call(Ut,Vt)&&Pt(Yt,Vt,Ut[Vt]);if(lt)for(var Vt of lt(Ut))dt.call(Ut,Vt)&&Pt(Yt,Vt,Ut[Vt]);return Yt},Dt=(Yt,Ut)=>at(Yt,it(Ut));const Ft={theme:(0,St.G)("cmCodeMode","vs-dark"),fontSize:(0,St.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,St.G)("cmTabToSpace",!0)};var jt=(Yt=>(Yt[Yt.set_font_size=0]="set_font_size",Yt[Yt.set_theme=1]="set_theme",Yt[Yt.on_tab_to_space=2]="on_tab_to_space",Yt[Yt.set_show_editor_setting=3]="set_show_editor_setting",Yt))(jt||{});function Nt(Yt,Ut){switch(Ut.type){case 3:return Dt(At({},Yt),{showEditorSetting:Ut.payload});case 1:return Dt(At({},Yt),{theme:Ut.payload});case 0:return Dt(At({},Yt),{fontSize:Ut.payload});case 2:return Dt(At({},Yt),{tabToSpace:Ut.payload});default:throw new Error}}var Gt=({isLoading:Yt,value:Ut=[],onChange:Vt,form:oe})=>{var se;const[de,Se]=(0,ae.useReducer)(Nt,Ft),{theme:Qt,fontSize:ne,showEditorSetting:ye,tabToSpace:we}=de,[be,fe]=(0,ae.useState)("C"),[pe,ce]=(0,ae.useState)(!1),[Ce,ve]=(0,ae.useState)([]),Fe=(0,ae.useRef)([]),ge=Re.default.useWatch(["hack","languages"],oe);(0,ae.useEffect)(()=>{Ut!=null&&Ut.length&&(Fe.current=(0,xt.cloneDeep)(Ut))},[Ut]),(0,ae.useEffect)(()=>{pe&&ve(ge)},[pe]),(0,ae.useEffect)(()=>{fe(ge==null?void 0:ge[0])},[ge]);const xe={onFontSizeChange:re=>{Se({type:0,payload:re}),(0,St.t)("cmFontSize",re)},tabToSpace:we,cmFontSize:ne,className:"oj",cmCodeMode:Qt,onTabToSpace:re=>{Se({type:2,payload:re}),(0,St.t)("cmTabToSpace",re)},onCodeModeChange:re=>{Se({type:1,payload:re}),(0,St.t)("cmCodeMode",re)}};function ee(){Se({type:3,payload:!1})}function Kt(){Se({type:3,payload:!0})}function wt(re){var It;const Rt=(It=Fe.current)==null?void 0:It.map(Wt=>(Wt.language===be&&(Wt.code=re),Wt));Fe.current=(0,xt.cloneDeep)(Rt),Vt(Rt)}const Lt={key:be,value:(se=Ut==null?void 0:Ut.find(re=>re.language===be))==null?void 0:se.code,language:be,onChange:wt,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:ne,insertSpaces:we}};console.log(888,Ut,ge);const Xt=Ut.filter(re=>ge==null?void 0:ge.includes(re.language));return z.createElement(ae.Fragment,null,z.createElement("div",{className:Tt["code-panel-container"]},z.createElement(Ht,{setVisible:ce,languageItems:Xt,onLanguage:re=>fe(re),language:be,onShowCodeSetting:Kt}),!Yt&&z.createElement(gt.ZP,At({},Lt))),z.createElement(Ct.Z,null,z.createElement(ot.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:ye,onClose:ee},z.createElement(Et.Z,At({},xe)))),z.createElement(zt.default,{centered:!0,open:pe,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!Ce.length){Bt.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}oe.setFieldValue(["hack","languages"],Ce),ce(!1)},onCancel:()=>ce(!1)},z.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},z.createElement(vt.default.Group,{value:Ce,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:re=>{ve(re)}}))))};function Ht({languageItems:Yt,language:Ut,onShowCodeSetting:Vt,onLanguage:oe,setVisible:se}){return z.createElement("div",{className:Tt["action-oj-bar"]},Yt==null?void 0:Yt.map(de=>z.createElement("aside",{className:Ut===(de==null?void 0:de.language)?Tt.active:"",onClick:()=>oe(de==null?void 0:de.language),key:de==null?void 0:de.language},z.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),z.createElement("span",null,de==null?void 0:de.language))),z.createElement("div",{className:Tt.tip},z.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),z.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),z.createElement(ft.op,{onClick:()=>se(!0),shape:"default"},z.createElement("img",{src:mt,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},80525:function(mn,gn,he){"use strict";he.d(gn,{GM:function(){return Et},MK:function(){return gt},PR:function(){return Re},ZS:function(){return St},d1:function(){return ot},fu:function(){return zt},j2:function(){return Ct},l_:function(){return Bt},uE:function(){return Tt},zQ:function(){return vt}});var ae=he(99064);function Re(){return(0,ae.U2)("problems/new.json")}function ot(xt="question"){return(0,ae.U2)("disciplines.json",{source:xt})}function zt(xt){return(0,ae.U2)(`problems/${xt}/edit.json`)}function Bt(xt,ft){return(0,ae.gz)(`problems/${xt}.json`,ft)}function vt(xt){return(0,ae.v_)("problems.json",xt)}function gt(xt,ft){return(0,ae.v_)(`exercises/${xt}/exercise_questions.json`,ft)}function Et(xt,ft){return(0,ae.gz)(`exercise_questions/${xt}.json`,ft)}function Ct(xt){return(0,ae.v_)(`problems/${xt}/publish.json`)}function St(xt){return(0,ae.v_)(`problems/${xt}/cancel_publish.json`)}function Tt(xt){return(0,ae.U2)(`problems/${xt}/start.json`)}function mt(xt,ft){return post("tag_disciplines.json",{name:ft,sub_discipline_id:xt})}},83685:function(mn,gn,he){"use strict";he.d(gn,{D0:function(){return gt},R8:function(){return zt},jw:function(){return vt},y3:function(){return Et}});var ae=he(82326),Re=he(59301);const{Option:ot}=ae.default;var zt=(Ct=>(Ct[Ct.language=0]="language",Ct[Ct.difficult=1]="difficult",Ct[Ct.category=2]="category",Ct[Ct.openOrNot=3]="openOrNot",Ct))(zt||{});const Bt={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function vt(Ct){return Bt[Ct].map(St=>Re.createElement(ot,{key:St.title,value:St.key}," ",St.title," "))}function gt(Ct,St){Ct.map(Tt=>{const{id:mt,name:xt,sub_disciplines:ft}=Tt;let z={value:mt,label:xt};St.push(z),ft&&ft.length>0&&(z.children=[],gt(ft,z.children))})}function Et(Ct,St){var Tt;let mt=[];for(let xt=0;xt0){mt[0]=ft.id;for(let z=0;zQt in Se?dt(Se,Qt,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Se[Qt]=ne,Gt=(Se,Qt)=>{for(var ne in Qt||(Qt={}))Ft.call(Qt,ne)&&Nt(Se,ne,Qt[ne]);if(Dt)for(var ne of Dt(Qt))jt.call(Qt,ne)&&Nt(Se,ne,Qt[ne]);return Se},Ht=(Se,Qt)=>Pt(Se,At(Qt)),Yt=(Se,Qt,ne)=>new Promise((ye,we)=>{var be=ce=>{try{pe(ne.next(ce))}catch(Ce){we(Ce)}},fe=ce=>{try{pe(ne.throw(ce))}catch(Ce){we(Ce)}},pe=ce=>ce.done?ye(ce.value):Promise.resolve(ce.value).then(be,fe);pe((ne=ne.apply(Se,Qt)).next())});const{Dragger:Ut}=Re.default,Vt=Se=>{const Qt=Ce=>Ce&&Ce.substring(0,Ce.lastIndexOf("."));for(var ne=[...Se],ye=0,we=[],be=0;be{if(Ce.forEach(ve=>{let Fe=ve.name.split(/\.(?=[^\.]+$)/);ve.name=`${Fe[0]}.${Fe[1].toLowerCase()}`}),Ce[0].name.includes(".in"))return Ce.length===2?Ce:[Ce[0],{}];if(Ce[0].name.includes(".out"))return Ce.length===2?Ce.reverse():[{},Ce[0]]})},oe=({onClose:Se,onOK:Qt,visible:ne,wrapClassName:ye,rootIdentifier:we,multiple:be=!1,defaultMultipleValue:fe=!0})=>{const[pe,ce]=(0,ae.useState)([]),[Ce,ve]=(0,ae.useState)({}),[Fe,ge]=(0,ae.useState)(!1),[xe,ee]=(0,ae.useState)(!0),Kt=(0,ae.useRef)([]),wt=(0,ae.useRef)(0),Lt=()=>{Se()};(0,ae.useEffect)(()=>{Xt()},[]),(0,ae.useEffect)(()=>{ne&&(Kt.current=[],wt.current=0,ce([]),ee(fe))},[ne]);const Xt=()=>Yt(void 0,null,function*(){try{const Ae=yield(0,tt.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Le=JSON.parse((0,z.pe)(Ae.data));ve(Le)}catch(Ae){}}),re=Ae=>Ae&&Ae.substring(0,Ae.lastIndexOf(".")),It=Ae=>{var Le,Be;const tn=re((Le=Ae[0])==null?void 0:Le.name)||re((Be=Ae[1])==null?void 0:Be.name),$e=pe.filter(Qe=>re(Qe.name)!==tn);Kt.current=[...$e],ce([...$e])},Rt=Ae=>{if(!xe){const Ze=new FormData;Ze.append("file",Ae.file),(0,tt.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Ze},!0).then(We=>{if(We.status===0){wt.current=wt.current+1;const Ke=Kt.current.map(nn=>{var hn;if(nn.name===Ae.name){const un=Gt({},nn);return(hn=Ae==null?void 0:Ae.name)!=null&&hn.includes(".in")?un.input=We==null?void 0:We.content:un.output=We==null?void 0:We.content,un}return nn});if(Kt.current=[...Ke],ce([...Ke]),wt.current>0&&wt.current===pe.length){ge(!1);let nn=Vt(Ke);nn=nn.filter(hn=>{var un,bn;return!!((un=hn[0])!=null&&un.name&&((bn=hn[1])!=null&&bn.name))}),nn=nn.map(hn=>Ht(Gt(Gt({},hn[0]),hn[1]),{is_file:!1})),Qt(nn),Se()}}else ge(!1),Se()});return}const Le=new(ft())({endpoint:Ce.end_point,region:Ce.region,accessKeyId:Ce.access_key_id,accessKeySecret:Ce.access_key_secret,bucket:Ce.bucket,stsToken:Ce.security_token}),Be=Ae.name,tn={container_type:"TestSet",file_name:Be},$e=(0,at.Z)();let Qe=`testsets/${we}/${$e}${Be.indexOf(".")>-1?"."+Be.split(".").pop():""}`;we===null&&(Qe=`testsets/${$e}${Be.indexOf(".")>-1?"."+Be.split(".").pop():""}`),Le.multipartUpload(Qe,new Blob([Ae.file],{type:Ae.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Be+""},url:Ce==null?void 0:Ce.callback_url,host:Ce==null?void 0:Ce.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,tt.rz)(tn)}}).then(function(Ze){if(Ze.data.status===0){wt.current=wt.current+1;const Ge=Kt.current.map(We=>{var Ke,nn,hn,un,bn,Un,Vn,Yn,vr,pr,gr,Nr,Lr,dr,cr,jr,$t;if(We.name===((nn=(Ke=Ze.data)==null?void 0:Ke.data)==null?void 0:nn.file_name)){const $n=Gt({},We);return(bn=(un=(hn=Ze.data)==null?void 0:hn.data)==null?void 0:un.file_name)!=null&&bn.includes(".in")?($n.in_object_key=(Vn=(Un=Ze.data)==null?void 0:Un.data)==null?void 0:Vn.object,$n.in_object_size=(vr=(Yn=Ze.data)==null?void 0:Yn.data)==null?void 0:vr.size,$n.input=(gr=(pr=Ze.data)==null?void 0:pr.data)==null?void 0:gr.file_name,$n.in_file=Ae):($n.out_object_key=(Lr=(Nr=Ze.data)==null?void 0:Nr.data)==null?void 0:Lr.object,$n.out_object_size=(cr=(dr=Ze.data)==null?void 0:dr.data)==null?void 0:cr.size,$n.output=($t=(jr=Ze.data)==null?void 0:jr.data)==null?void 0:$t.file_name,$n.out_file=Ae),$n}return We});if(Kt.current=[...Ge],ce([...Ge]),wt.current>0&&wt.current===pe.length){ge(!1);let We=Vt(Ge);We=We.filter(Ke=>{var nn,hn;return!!((nn=Ke[0])!=null&&nn.name&&((hn=Ke[1])!=null&&hn.name))}),We=We.map(Ke=>Ht(Gt(Gt({},Ke[0]),Ke[1]),{is_file:!0})),Qt(We),Se()}}})},Wt=Ae=>new Promise((Le,Be)=>{let tn=0,$e=[];for(let Qe=0;Qe{tn++,tn===Ae.length&&($e.length?(ot.ZP.warning(`${$e.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Be()):Le(Ae))}).catch(Ze=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Ze),tn++,$e.push(Ae[Qe].name),tn===Ae.length&&($e.length?(ot.ZP.warning(`${$e.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Be()):Le(Ae))})}),te=()=>Yt(void 0,null,function*(){if(pe.length===0){ot.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Wt(pe),ge(!0),Vt(pe).some(Le=>{var Be,tn;return!((Be=Le[0])!=null&&Be.name&&((tn=Le[1])!=null&&tn.name))})){zt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Yt(void 0,null,function*(){pe.map(Le=>Yt(void 0,null,function*(){Rt(Le)}))}),onCancel:()=>{ge(!1)}});return}pe.map(Le=>Yt(void 0,null,function*(){Rt(Le)}))}),ue={name:"file",fileList:pe,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:Ae=>{if(pe!=null&&pe.some(Be=>Be.name===Ae.name))return ot.ZP.info(`${Ae.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(Ae.size/1024/1024>100)return ot.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(Ae.name))return ot.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Le={name:Ae.name,uid:Ae.uid,file:Ae,percent:0};return pe.push(Le),Kt.current=[...pe],ce([...pe]),!1}},le=Vt(pe);return console.log(pe,le,"fileList"),ut.createElement(zt.default,{open:ne,wrapClassName:ye,onOk:te,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Fe},onCancel:Lt,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ut.createElement("div",{className:Tt.wrap},pe.length?ut.createElement("div",null,ut.createElement(Bt.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ut.createElement("div",{style:{visibility:be?"visible":"hidden"}},ut.createElement("span",{className:Tt.greyText},"\u7528\u4F8B\u7C7B\u578B"),ut.createElement(vt.ZP.Group,{className:`ml20 ${Tt.testCaseRadio}`,optionType:"button",value:xe,onChange:Ae=>ee(Ae.target.value)},ut.createElement(vt.ZP,{value:!1},"\u6587\u672C"),ut.createElement(vt.ZP,{value:!0},"\u6587\u4EF6"))),ut.createElement(Re.default,Gt({},ue),ut.createElement(gt.ZP,{type:"primary",className:Tt.btnS},ut.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ut.createElement(se,{data:le,onRemove:It})):ut.createElement("div",{className:`${Tt.noData} mb30`},ut.createElement(Re.default.Dragger,Ht(Gt({},ue),{className:Tt.dragger}),ut.createElement("img",{src:mt,alt:"",className:"mb20"}),ut.createElement("div",null,ut.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ut.createElement("span",{className:Tt.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ut.createElement("div",{className:Tt.text},ut.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ut.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ut.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ut.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ut.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ut.createElement("br",null))))},se=({data:Se=[],onRemove:Qt,width:ne="auto",showScore:ye=!1,disabled:we=!1,inputChange:be,onEvaluatingChange:fe,onSelectAll:pe,checkAll1:ce,checkAll2:Ce,checkAll3:ve,checkAll4:Fe,checkAll5:ge,showEvaluatingSetting:xe=!1,className:ee="",isProgramHomework:Kt=!1})=>{const wt={value:"",filename:"",dataUrl:""},[Lt,Xt]=(0,ae.useState)(Gt({},wt)),re=Wt=>{let te=document.createElement("a");document.body.appendChild(te);let ue=URL.createObjectURL(Wt.file);te.href=ue,te.download=Wt.name,te.click(),URL.revokeObjectURL(ue),document.body.removeChild(te)},It=(Wt,te)=>{(0,it.LR)(Wt,te)},Rt=(Wt,te)=>{zt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ut.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Qt(Wt,te)},onCancel:()=>{}})};return Se.length?ut.createElement("div",{className:ee,style:{width:ne}},ut.createElement("div",{className:`${Kt?Tt.headProgram:Tt.head}`},xe&&ut.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ut.createElement(Et.default,{checked:ce,onChange:Wt=>{pe(Wt.target.checked,"hidden")}}),ut.createElement(Ct.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ut.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ut.createElement("div",{style:{width:Kt?"25%":"15%"}},"\u7528\u4F8B"),ut.createElement("div",{style:{width:ye?Kt?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ut.createElement("div",{style:{width:ye?Kt?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),ye&&ut.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(Et.default,{checked:Fe,onChange:Wt=>{pe(Wt.target.checked,"input_visible")}}),ut.createElement(Ct.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(Et.default,{checked:Ce,onChange:Wt=>{pe(Wt.target.checked,"is_invisible")}}),ut.createElement(Ct.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(Et.default,{checked:ge,onChange:Wt=>{pe(Wt.target.checked,"actual_output_visible")}}),ut.createElement(Ct.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(Et.default,{checked:ve,onChange:Wt=>{pe(Wt.target.checked,"last_match_rule")}}),ut.createElement(Ct.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ut.createElement("div",{className:Tt.operation,style:Kt?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ut.createElement("div",{className:Tt.listWrapper,style:{boxShadow:Kt?"0px 2px 4px 0px #EAEEF4":"unset"}},Se.map((Wt,te)=>{var ue,le,Ae,Le;return ut.createElement("div",{key:te,className:Tt.list,style:Kt?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},xe&&ut.createElement("div",{style:{width:"15%"}},ut.createElement(Et.default,{checked:!!Wt.hidden,onChange:Be=>{fe(Be.target.checked,te,"hidden")}})),ut.createElement("div",{style:{width:Kt?"25%":"15%",paddingLeft:Kt?"5px":"0px",paddingRight:Kt?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",te+1),ut.createElement("div",{className:Tt.info,style:{width:ye?Kt?"20%":"15%":"25%"}},ut.createElement("span",{title:Wt.input||((ue=Wt[0])==null?void 0:ue.name),onClick:()=>Yt(void 0,null,function*(){let Be;Wt.input?Wt.input_file_url?Be=Wt.input_file_url:Be=Wt.in_file:Be=Wt[0];let tn;typeof Be=="string"?(tn=yield fetch(Be,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Xt({value:yield tn.text(),filename:"",dataUrl:Be})):(tn=yield(0,it.db)(Be.file),Xt({value:tn.text,filename:Be.name,dataUrl:tn.link}))})},Wt.input||((le=Wt[0])==null?void 0:le.name))),ut.createElement("div",{className:Tt.info,style:{width:ye?Kt?"20%":"15%":"25%"}},ut.createElement("span",{title:Wt.output||((Ae=Wt[1])==null?void 0:Ae.name),onClick:()=>Yt(void 0,null,function*(){let Be;Wt.input?Wt.output_file_url?Be=Wt.output_file_url:Be=Wt.out_file:Be=Wt[1];let tn;typeof Be=="string"?(tn=yield fetch(Be,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Xt({value:yield tn.text(),filename:"",dataUrl:Be})):(tn=yield(0,it.db)(Be.file),Xt({value:tn.text,filename:Be.name,dataUrl:tn.link}))})},Wt.output||((Le=Wt[1])==null?void 0:Le.name))),ye&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(St.default,{size:"large",addonAfter:Kt?"%":null,disabled:we,style:{width:"80%"},onChange:Be=>be(Be,te),value:Wt.score}),!Kt&&ut.createElement("span",null,"\xA0%")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(Et.default,{checked:Wt.input_visible||!1,onChange:Be=>{fe(Be.target.checked,te,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(Et.default,{checked:Wt.is_invisible||!1,onChange:Be=>{fe(Be.target.checked,te,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(Et.default,{checked:Wt.actual_output_visible||!1,onChange:Be=>{fe(Be.target.checked,te,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(Et.default,{checked:Wt.last_match_rule||!1,onChange:Be=>{fe(Be.target.checked,te,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ut.createElement("div",{onClick:()=>Rt(Wt,te),style:Kt?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ut.createElement("span",{className:Tt.del},"\u5220\u9664")))})),ut.createElement(lt.Z,{close:!0,data:Lt.dataUrl,filename:Lt.filename,type:Lt.dataUrl.length?"txt":"",onClose:()=>Xt(Gt({},wt)),monacoEditor:{value:Lt.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ut.createElement(ut.Fragment,null)};var de=oe},10977:function(mn,gn,he){"use strict";he.d(gn,{c:function(){return Re}});var ae=(ot=>(ot.FirstPage="firstPage",ot.PrevPage="prevPage",ot.NextPage="nextPage",ot))(ae||{}),Re=(ot=>(ot[ot.Single=0]="Single",ot[ot.Multiple=1]="Multiple",ot[ot.Judge=2]="Judge",ot[ot.Fill=3]="Fill",ot[ot.Subjective=4]="Subjective",ot[ot.Shixun=5]="Shixun",ot[ot.Program=6]="Program",ot[ot.Combine=7]="Combine",ot))(Re||{})},24768:function(mn,gn,he){"use strict";he.d(gn,{AL:function(){return dt},Iy:function(){return Tt},Qv:function(){return ft},ez:function(){return ut},jb:function(){return mt}});var ae=he(32834),Re=he.n(ae),ot=he(11690),zt=he.n(ot);let Bt=1;function vt(jt,Nt){const Gt=jt.match(/^(\s+)(?:```)/);if(Gt===null)return Nt;const Ht=Gt[1];return Nt.split(` `).map(Yt=>{const Ut=Yt.match(/^\s+/);if(Ut===null)return Yt;const[Vt]=Ut;return Vt.length>=Ht.length?Yt.slice(Ht.length):Yt}).join(` `)}let gt=[],Et=["