You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
286 KiB
101 lines
286 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[7857],{27431:function(ce,Ue){"use strict";Ue.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},87851:function(){"use strict";function ce(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(ce.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(ce.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(ce.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(ce.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof ce))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Ue=[];function de(ne,a){var y=Ue.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function oe(){var ne=Ue.pop();return ne===void 0?new go.Point:ne}function be(ne){Ue.push(ne)}function Oe(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var ae=ne-y,ge=b-z,re=NaN,se=NaN;if(ae===0)if(ge===0)ne===y&&(re=ne,se=a);else{var me=(E-ee)/ge,ve=E-me*b;re=ne,se=me*re+ve}else if(ge===0){var pe=(a-x)/ae,He=a-pe*ne;re=b,se=pe*re+He}else{var pe=(a-x)/ae,me=(E-ee)/ge,He=a-pe*ne,ve=E-me*b;re=(ve-He)/(pe-me),se=pe*re+He}return te.x=re,te.y=se,te}function De(ne,a,y,x,b,E,z,ee,te,ae,ge,re,se,me){var ve=1-te,pe=te,He=ne*ve+y*pe,ot=a*ve+x*pe,St=y*ve+b*pe,tt=x*ve+E*pe,qe=b*ve+z*pe,nt=E*ve+ee*pe,ht=He*ve+St*pe,vt=ot*ve+tt*pe,Nt=St*ve+qe*pe,Ct=tt*ve+nt*pe,Ot=ht*ve+Nt*pe,Kt=vt*ve+Ct*pe;ae.x=He,ae.y=ot,ge.x=ht,ge.y=vt,re.x=Ot,re.y=Kt,se.x=Nt,se.y=Ct,me.x=qe,me.y=nt}var he=new go.Spot(.156,.156),Ge=new go.Spot(.844,.844),Pe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ce("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*Pe,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=he,b.spot2=Ge,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,Pe*a,0,a,(1-Pe)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,Pe*y,(1-Pe)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,Pe*y,Pe*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-Pe)*a,0,0,(1-Pe)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ce("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ce("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new ce("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ce("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new ce("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var ke=[];function we(){var ne=ke.pop();return ne===void 0?[]:ne}function Ee(ne){ne.length=0,ke.push(ne)}function Ce(ne){for(var a=we(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Re(ne){var a=xe(ne),y=we();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ee(a),y}function xe(ne){for(var a=Ce(ne),y=we(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],ae=a[(x+z-1)%b],ge=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Oe(ee.x,ee.y,ae.x,ae.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ee(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=Ce(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=xe(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=xe(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=xe(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=xe(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=xe(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=xe(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Re(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Re(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Re(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Re(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Re(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Re(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ce("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ce("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new ce("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=he,E.spot2=Ge,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new ce("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ce("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=Pe/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ce("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ce("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ce("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),ae=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,ae)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-ae)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-ae)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ce("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ce("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ce("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,Pe*a,0,a,(.5-Pe/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Pe/2)*y,Pe*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*Pe;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*Pe,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*Pe,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=Pe*.4;var ae=oe(),ge=oe(),re=oe(),se=oe();De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ae,ge,re,se,se);var me=oe(),ve=oe(),pe=oe();De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,pe,me,ve);var He=oe(),ot=oe(),St=oe();De(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,He,ot,St,se,se);var tt=oe(),qe=oe(),nt=oe();return De(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,nt,tt,qe),te.add(new go.PathSegment(go.PathSegment.Move,nt.x*a,nt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,tt.x*a,tt.y*y,qe.x*a,qe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ae.x*a,ae.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,nt.x*a,nt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,St.x*a,St.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,pe.x*a,pe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,ve.x*a,ve.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,St.x*a,St.y*y,He.x*a,He.y*y,ot.x*a,ot.y*y).close()),be(ae),be(ge),be(re),be(se),be(me),be(ve),be(pe),be(He),be(ot),be(St),be(tt),be(qe),be(nt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ce("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=Pe*.4,E=.4,z=.5,ee=.5,te=oe(),ae=oe(),ge=oe(),re=oe(),se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ge,re,ae,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y));var me=de(ae.x,ae.y);De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ae,ge,re);var ve=de(ae.x,ae.y);se.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*a,(ve.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ve.x*a,ve.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=Pe*.35;var pe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var He=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(He),be(te),be(ae),be(ge),be(re),be(me),be(ve),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*Pe,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*Pe;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ce("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ce("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Oe(0,ee/y,1,ee/y,E/a,1,1,.5,oe());return te.spot2=new go.Spot(ge.x,ge.y),be(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new ce("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ce("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Oe(0,ee/y,1,ee/y,E/a,1,1,.5,oe());return te.spot2=new go.Spot(ge.x,ge.y),be(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ce("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Oe(0,.5,.3,0,0,b/y,.1,b/y,oe());return z.spot1=new go.Spot(te.x,te.y),te=Oe(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ce("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ce("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var ae=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);ae.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=Oe(0,.5,.3,ee/y,0,E/y,1,E/y,oe());return ae.spot1=new go.Spot(re.x,re.y),re=Oe(.7,te/y,1,.5,0,z/y,1,z/y,re),ae.spot2=new go.Spot(re.x,re.y),be(re),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new ce("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,oe());return z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ce("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ce("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var ae=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);ae.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ae.spot1=new go.Spot(0,E/y);var re=Oe(.7,te/y,1,.5,0,z/y,1,z/y,oe());return ae.spot2=new go.Spot(re.x,re.y),be(re),ae}),go.Shape.setFigureParameter("Pointer",0,new ce("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Oe(.2,.65,1,.65,0,1,1,.5,oe());return b.spot2=new go.Spot(z.x,z.y),be(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ce("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Oe(0,.65,1,.65,0,1,1,.5,oe());return b.spot2=new go.Spot(z.x,z.y),be(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ce("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,oe());return z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ce("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,oe());return z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ce("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=Pe*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=Pe*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Pe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,Pe*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-Pe*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-Pe*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-Pe*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-Pe*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=Pe*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Pe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,Pe*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-Pe*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-Pe*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-Pe*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-Pe*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=Pe*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Pe*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-Pe*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Pe*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,Pe*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+Pe*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+Pe*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=Pe*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Pe*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-Pe*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Pe*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,Pe*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-Pe*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-Pe*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=Pe*b,ee=Pe*E,te=.5,ae=.1,ge=new go.PathFigure(te*a,(ae+E)*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,ae*y,(te-z)*a,(ae+E)*y,(te-b)*a,(ae+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-E)*y,(te-b)*a,(ae-ee)*y,(te-z)*a,(ae-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,ae*y,(te+z)*a,(ae-E)*y,(te+b)*a,(ae-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+E)*y,(te+b)*a,(ae+ee)*y,(te+z)*a,(ae+E)*y));var re=.05,se=Pe*re;te=.05,ae=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,ae=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,ae*y,(te+se)*a,(ae-re)*y,(te+re)*a,(ae-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,se=Pe*re,te=.825,ae=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-se)*y,(te+se)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-se)*a,(ae-re)*y,(te-re)*a,(ae-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,se=Pe*re,te=.5,ae=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-se)*y,(te+se)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-se)*a,(ae-re)*y,(te-re)*a,(ae-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,se=Pe*re,te=.175,ae=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-se)*y,(te+se)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-se)*a,(ae-re)*y,(te-re)*a,(ae-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,se=Pe*re,te=.05,ae=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te-re)*a,(ae-se)*y,(te-se)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new ce("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=Pe*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=Pe*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=Pe*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=Pe*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var ae=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),ae.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=Pe*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ae=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=Pe*.4,z=Pe*.1,ee=.1,te=.9,ae=.5,ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var re=new go.PathFigure((te+ee)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y,(te+z)*a,(ae+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,ae*y,(te-z)*a,(ae+ee)*y,(te-ee)*a,(ae+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y,(te-z)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,ae*y,(te+z)*a,(ae-ee)*y,(te+ee)*a,(ae-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=Pe*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.8*a,.5*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=Pe*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.2*a,0,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=Pe*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=Pe*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=Pe*.8,ee=.8,te=0,ae=.5,ge=(b-a)/2,re=(E-y)/2,se=new go.PathFigure(te*a+ge,(ae+ee)*y+re,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,ae*y+re,(te-z)*a+ge,(ae+ee)*y+re,(te-ee)*a+ge,(ae+z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+re,(te-ee)*a+ge,(ae-z)*y+re,(te-z)*a+ge,(ae-ee)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,ae*y+re,te*a+ge,(ae-ee)*y+re,(te-ee+z*.5)*a+ge,(ae-z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+re,(te-ee+z*.5)*a+ge,(ae+z)*y+re,te*a+ge,(ae+ee)*y+re).close()),z=Pe*.4,ee=.4,te=.2,ae=.5;var me=new go.PathFigure(te*a+ge,(ae+ee)*y+re,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,ae*y+re,(te-z)*a+ge,(ae+ee)*y+re,(te-ee)*a+ge,(ae+z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+re,(te-ee)*a+ge,(ae-z)*y+re,(te-z)*a+ge,(ae-ee)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,ae*y+re,te*a+ge,(ae-ee)*y+re,(te-ee+z*.5)*a+ge,(ae-z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+re,(te-ee+z*.5)*a+ge,(ae+z)*y+re,te*a+ge,(ae+ee)*y+re).close()),z=Pe*.2,ee=.2,te=.5,ae=.5;var ve=new go.PathFigure((te-ee)*a+ge,ae*y+re,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+re,(te-ee)*a+ge,(ae-z)*y+re,(te-z)*a+ge,(ae-ee)*y+re)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,ae*y+re,(te+z)*a+ge,(ae-ee)*y+re,(te+ee)*a+ge,(ae-z)*y+re)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+re,(te+ee)*a+ge,(ae+z)*y+re,(te+z)*a+ge,(ae+ee)*y+re)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,ae*y+re,(te-z)*a+ge,(ae+ee)*y+re,(te-ee)*a+ge,(ae+z)*y+re)),z=Pe*.4,ee=.4,te=.8,ae=.5;var pe=new go.PathFigure(te*a+ge,(ae-ee)*y+re,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,ae*y+re,(te+z)*a+ge,(ae-ee)*y+re,(te+ee)*a+ge,(ae-z)*y+re)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+re,(te+ee)*a+ge,(ae+z)*y+re,(te+z)*a+ge,(ae+ee)*y+re)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,ae*y+re,te*a+ge,(ae+ee)*y+re,(te+ee-z*.5)*a+ge,(ae+z)*y+re)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+re,(te+ee-z*.5)*a+ge,(ae-z)*y+re,te*a+ge,(ae-ee)*y+re).close()),z=Pe*.8,ee=.8,te=1,ae=.5;var He=new go.PathFigure(te*a+ge,(ae-ee)*y+re,!0);return x.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,ae*y+re,(te+z)*a+ge,(ae-ee)*y+re,(te+ee)*a+ge,(ae-z)*y+re)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+re,(te+ee)*a+ge,(ae+z)*y+re,(te+z)*a+ge,(ae+ee)*y+re)),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,ae*y+re,te*a+ge,(ae+ee)*y+re,(te+ee-z*.5)*a+ge,(ae+z)*y+re)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+re,(te+ee-z*.5)*a+ge,(ae-z)*y+re,te*a+ge,(ae-ee)*y+re).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=Pe*.4,E=.4,z=.5,ee=.5,te=oe(),ae=oe(),ge=oe(),re=oe();De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,ge,re);var se=de(ae.x,ae.y),me=new go.PathFigure(ae.x*a,ae.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),De(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,re,ae,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),b=Pe*.3,E=.3,De(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,re,ae,te,te),me.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,ge,re),me.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),be(te),be(ae),be(ge),be(re),be(se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*Pe,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,ge=1,re=.5,se=.5,me=0,ve=new go.PathFigure(te*a,(1-ae)*y,!1);return x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),ve.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,ae=Math.PI/4,ge=4*(1-Math.cos(ae))/(3*Math.sin(ae)),re=ge*.5,se=z,me=z,ve=ge*se,pe=ge*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ve+se)/2)*a,(te+(me+pe)/2)*y,(ee-se)*a,(te+pe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-se)*a,(te-pe)*y,(ee-ve)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ve)*a,(te-me)*y,(ee+se)*a,(te-pe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+pe)*y,(ee+(ve+se)/2)*a,(te+(me+pe)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var He=new go.PathFigure(.2*a,y,!1);x.add(He),He.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ot=new go.PathFigure(.8*a,y,!1);return x.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=Pe*.1,te=.2,ae=.9,ge=new go.PathFigure((te-z)*a,ae*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+ee)*y).close()),z=.1,ee=Pe*.1,te=.8,ae=.9;var re=new go.PathFigure((te-z)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,ae=Pe*.1,ge=.1,re=.9,se=new go.PathFigure((ge-te)*a,re*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-ae)*y,(ge-ae)*a,(re-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+ae)*a,(re-te)*y,(ge+te)*a,(re-ae)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+ae)*y,(ge+ae)*a,(re+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,re*y,(ge-ae)*a,(re+te)*y,(ge-te)*a,(re+ae)*y)),te=.1,ae=Pe*.1,ge=.4,re=.9;var me=new go.PathFigure((ge-te)*a,re*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-ae)*y,(ge-ae)*a,(re-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+ae)*a,(re-te)*y,(ge+te)*a,(re-ae)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+ae)*y,(ge+ae)*a,(re+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,re*y,(ge-ae)*a,(re+te)*y,(ge-te)*a,(re+ae)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,re=Pe*.05,se=.175,me=.95,ee=new go.PathFigure((se-ge)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-re)*y,(se-re)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+re)*a,(me-ge)*y,(se+ge)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+re)*y,(se+re)*a,(me+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-re)*a,(me+ge)*y,(se-ge)*a,(me+re)*y));var ge=.05,re=Pe*.05,se=.375,me=.95,te=new go.PathFigure((se-ge)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-re)*y,(se-re)*a,(me-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+re)*a,(me-ge)*y,(se+ge)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+re)*y,(se+re)*a,(me+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-re)*a,(me+ge)*y,(se-ge)*a,(me+re)*y));var ge=.05,re=Pe*.05,se=.625,me=.95,ae=new go.PathFigure((se-ge)*a,me*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-re)*y,(se-re)*a,(me-ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+re)*a,(me-ge)*y,(se+ge)*a,(me-re)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+re)*y,(se+re)*a,(me+ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-re)*a,(me+ge)*y,(se-ge)*a,(me+re)*y));var ge=.05,re=Pe*.05,se=.825,me=.95,ve=new go.PathFigure((se-ge)*a,me*y,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-re)*y,(se-re)*a,(me-ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+re)*a,(me-ge)*y,(se+ge)*a,(me-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+re)*y,(se+re)*a,(me+ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-re)*a,(me+ge)*y,(se-ge)*a,(me+re)*y).close());var pe=new go.PathFigure(0,y,!1);return x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=Pe*.05,ae=.35,ge=.775,re=new go.PathFigure((ae-ee)*a,ge*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge-ee)*y,(ae-ee)*a,(ge-te)*y,(ae-te)*a,(ge-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,ge*y,(ae+te)*a,(ge-ee)*y,(ae+ee)*a,(ge-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge+ee)*y,(ae+ee)*a,(ge+te)*y,(ae+te)*a,(ge+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,ge*y,(ae-te)*a,(ge+ee)*y,(ae-ee)*a,(ge+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=Pe*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var ae=new go.PathFigure(0,.7*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var ae=new go.PathFigure(.15*a,.5*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=Pe*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*Pe,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ae=new go.PathFigure(a*.78,y*.05,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*Pe,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*Pe,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),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")},63089: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 ce={},Ue="5.0",de={},oe=null,be=!1,Oe=!1,De=null,he=!1,Ge=null,Pe=null,ke=0;ke<arguments.length;ke++){var we=arguments[ke];if(we!==null)switch(typeof we){case"number":Ue=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ue=we:De=we;break;case"object":typeof we.is3D!="undefined"?oe=we:de=we;break;case"boolean":be=we,Oe=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},de.material_id!==void 0&&!Oe&&(be=!0)),De!==null&&de.id===void 0&&(de.id=De);var Ee="",Ce="",Re=!1,xe=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};ce.setHTML5Codebase=function(fe,ye){Pe=fe,Ct(fe,ye)},ce.setJavaCodebase=ce.setJavaCodebaseVersion=ce.isCompiledInstalled=ce.setPreCompiledScriptPath=ce.setPreCompiledResourcePath=function(){},ce.setHTML5CodebaseVersion=function(fe,ye){var Ae=parseFloat(fe);if(Ae!==NaN&&Ae<5){console.log("The GeoGebra HTML5 codebase version "+Ae+" is deprecated. Using version latest instead.");return}Ge=fe,Nt(fe,ye)},ce.getHTML5CodebaseVersion=function(){return ne},ce.getParameters=function(){return de},ce.setFontsCSSURL=function(fe){z=fe},ce.setGiacJSURL=function(fe){},ce.setJNLPFile=function(fe){Ee=fe},ce.setJNLPBaseDir=function(fe){},ce.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ye="auto",Ae=de.id,Ye,Me=!1,Ze=0;Ze<arguments.length;Ze++){var ie=arguments[Ze];typeof ie=="string"?(ie=ie.toLowerCase(),ie.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ye=ie:Ae=arguments[Ze]):typeof ie=="boolean"?Me=ie:ie instanceof HTMLElement&&(Ye=ie)}_e();function _e(){if(!he){setTimeout(_e,200);return}ye=ht(ye);var Qe=Ye||document.getElementById(Ae);if(!Qe){console.log("possibly bug on ajax loading? ");return}if(ce.removeExistingApplet(Qe,!1),de.width===void 0&&Qe.clientWidth&&(de.width=Qe.clientWidth),de.height===void 0&&Qe.clientHeight&&(de.height=Qe.clientHeight),!(de.width&&de.height)&&ye==="html5"&&(delete de.width,delete de.height),xe=ye,ye==="screenshot")ot(Qe,de);else{var lt=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?lt=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(lt=(!ae()||fe())&&ge()),lt?(xe="screenshot",tt(Qe,de,Me,ye)):He(Qe,de,Me)}}};function ae(){try{return window.self!==window.top}catch(fe){return!0}}function ge(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ce.getViews=function(){return oe},ce.isJavaInstalled=function(){return!1};var re=function(fe){var ye=function(Ze){var ie=JSON.parse(Ze),_e=function(rt){return rt.type=="G"||rt.type=="E"},Qe=ie.elements?ie.elements.filter(_e)[0]:ie;if(!Qe||!Qe.url){Ae();return}de.fileName=Qe.url,se(Qe.settings||{}),oe.is3D=!0;var lt="https://www.geogebra.org/images/";ce.setPreviewImage(x||Qe.previewUrl,lt+"GeoGebra_loading.png",lt+"applet_play.png"),fe()},Ae=function(){de.onError&&de.onError(),Ot("Error: Fetching material (id "+de.material_id+") failed.",de)},Ye=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Me="/materials/"+de.material_id+"?scope=basic";me("https://"+Ye+"/api/proxy.php?path="+encodeURIComponent(Me),ye,Ae)};function se(fe){var ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ae){fe[Ae]=!!fe[Ae]}),ye.forEach(function(Ae){de[Ae]===void 0&&fe[Ae]!==void 0&&(de[Ae]=fe[Ae])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function me(fe,ye,Ae){var Ye=new XMLHttpRequest;Ye.open("GET",fe),Ye.onload=function(){ye(Ye.responseText)},Ye.onerror=Ae,Ye.send()}ce.isHTML5Installed=function(){return!0},ce.getLoadedAppletType=function(){return xe},ce.setPreviewImage=function(fe,ye,Ae){x=fe,b=ye,E=Ae},ce.removeExistingApplet=function(fe,ye){var Ae;typeof fe=="string"&&(fe=document.getElementById(fe)),xe=null;var Ye=null;for(Ae=0;Ae<fe.childNodes.length;Ae++){var Me=fe.childNodes[Ae],Ze=Me.className;Ze==="applet_screenshot"?ye?(Me.style.display="block",xe="screenshot"):Me.style.display="none":Ze!=="applet_scaler prerender"&&(fe.removeChild(Me),Ye=Ze&&Ze.indexOf("appletParameters")!=-1?Me.id:null,Ae--)}var ie=de.id!==void 0?de.id:Ye,_e=window[ie];_e&&typeof _e.getBase64=="function"&&(_e.remove(),window[ie]=null)},ce.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=ce.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},ce.startAnimation=function(){var fe=ce.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},ce.stopAnimation=function(){var fe=ce.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},ce.getAppletObject=function(){var fe=de.id!==void 0?de.id:"ggbApplet";return window[fe]},ce.resize=function(){};var ve=function(fe,ye,Ae){var Ye=document.createElement("param");Ye.setAttribute("name",ye),Ye.setAttribute("value",Ae),fe.appendChild(Ye)},pe=function(fe){return fe&&fe!=="false"},He=function(fe,ye,Ae){te(ne)<=4.2&&(Ae=!0);var Ye=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ye=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Me=document.createElement("div");Me.classList.add("appletParameters","notranslate");var Ze=ye.width,ie=ye.height;if(ye.disableAutoScale=ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ye.disableAutoScale,ye.width!==void 0)if(te(ne)<=4.4)pe(ye.showToolBar)&&(ye.height-=7),pe(ye.showAlgebraInput)&&(ye.height-=37),ye.width<605&&pe(ye.showToolBar)&&(ye.width=605,Ze=605);else{var _e=100;(pe(ye.showToolBar)||pe(ye.showMenuBar))&&(ye.hasOwnProperty("customToolBar")&&(ye.customToolbar=ye.customToolBar),_e=pe(ye.showMenuBar)?245:155),Ze<_e&&(ye.width=_e,Ze=_e)}Me.style.border="none",Me.style.display="inline-block";for(var Qe in ye)ye.hasOwnProperty(Qe)&&Qe!=="appletOnLoad"&&Me.setAttribute("data-param-"+Qe,ye[Qe]);z&&Me.setAttribute("data-param-fontscssurl",z),ce.resize=function(){GGBAppletUtils.responsiveResize(fe,ye)},window.addEventListener("resize",function(bt){ce.resize()});var lt=typeof ye.appletOnLoad=="function"?ye.appletOnLoad:function(){};if(!Ae&&ye.width!==void 0){ye.hasOwnProperty("showSplash")||Me.setAttribute("data-param-showSplash","false");var rt=fe.querySelector(".applet_scaler.prerender"),At=rt!==null;if(At)var Dt=rt.querySelector(".ggb_preview");else{var Dt=nt(Ze,ie,ye.borderColor,!1);rt=document.createElement("div"),rt.className="applet_scaler",rt.style.position="relative",rt.style.display="block",rt.style.width=Ze+"px",rt.style.height=ie+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(rt,"66%"),te(ne)>=5?(ye.appletOnLoad=function(bt){var _t=fe.querySelector(".ggb_preview");_t&&_t.parentNode.removeChild(_t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(rt),window.GGBT_wsf_view&&$(window).trigger("resize"),lt(bt)},At||rt.appendChild(Dt)):Me.appendChild(Dt),rt.appendChild(Me),At||fe.appendChild(rt),setTimeout(function(){ce.resize()},1)}else{var ut=document.createElement("div");ut.className="applet_scaler",ut.style.position="relative",ut.style.display="block",ut.appendChild(Me),fe.appendChild(ut),ye.appletOnLoad=function(bt){ce.resize(),lt(bt)}}function hn(bt,_t){_t&&typeof _t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(bt,_t.appletOnLoad):renderGGBElement(bt),Ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",_t)}function cn(bt,_t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:bt,params:_t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(fn){hn(fn.article,fn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(bt.className+=" geogebraweb")):hn(bt,_t)}if(Ye){scriptLoadStarted=!0;for(var $t=0;$t<Me.childNodes.length;$t++){var Zt=Me.childNodes[$t].tagName;Zt==="TABLE"&&(Me.removeChild(Me.childNodes[$t]),$t--)}if(ggbHTML5LoadedScript!==null){var Xt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Xt!=null&&Xt.parentNode.removeChild(Xt)}var qt=document.createElement("script"),Ut=function(){cn(Me,ye)};qt.src=Ce+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=qt.src,Ot("GeoGebra HTML5 codebase loaded: '"+Ce+"'.",ye),!Pe&&(!Ge||Ge=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ut()):Ce.requirejs?__webpack_require__.e(6954).then(function(){var bt=[__webpack_require__(76954)];Ut.apply(null,bt)}.bind(this)).catch(__webpack_require__.oe):(qt.onload=Ut,fe.appendChild(qt))}else cn(Me,ye);ye.height=ie,ye.width=Ze},ot=function(fe,ye,Ae){var Ye=nt(ye.width,ye.height,ye.borderColor,Ae),Me=document.createElement("div");Me.style.position="relative",Me.style.display="block",Me.style.width=ye.width+"px",Me.style.height=ye.height+"px",Me.className="applet_screenshot applet_scaler"+(Ae?" applet_screenshot_play":""),Me.appendChild(Ye);var Ze=GGBAppletUtils.getScale(ye,fe,Ae);Ae?(fe.appendChild(qe()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Me,"66%"),fe.appendChild(Me),Ze!==1&&!isNaN(Ze)&&(GGBAppletUtils.scaleElement(Me,Ze),Me.style.width=ye.width+"px",Me.style.height=ye.height+"px",Me.parentNode.style.width=ye.width*Ze+"px",Me.parentNode.style.height=ye.height*Ze+"px"),ce.resize=function(){St(fe,Ye,Me,Ae)},window.addEventListener("resize",function(ie){ce.resize()}),ce.resize()};function St(fe,ye,Ae,Ye){if(fe.contains(ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var Me=GGBAppletUtils.getScale(de,fe,Ye);Ae.parentNode!==null&&(!isNaN(Me)&&Me!==1?(GGBAppletUtils.scaleElement(Ae,Me),Ae.parentNode.style.width=de.width*Me+"px",Ae.parentNode.style.height=de.height*Me+"px"):(GGBAppletUtils.scaleElement(Ae,1),Ae.parentNode.style.width=de.width+"px",Ae.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ce.onExitFullscreen=function(fe,ye){ye.appendChild(fe)};var tt=function(fe,ye,Ae,Ye){ot(fe,ye,!0);for(var Me=function(){var _e=[];for(ie=0;ie<fe.childNodes.length;ie++)_e.push(fe.childNodes[ie]);if(window.GGBT_wsf_view){var Qe=window.GGBT_wsf_view.renderFullScreen(fe,ye.id),lt=document.getElementById("fullscreencontainer"),rt=jQuery(fe).find(".fullscreencontent");rt.length>0?(Qe.remove(),rt.attr("id","fullscreencontent").show(),jQuery(lt).append(rt),window.dispatchEvent(new Event("resize"))):He(Qe,ye,!1),window.GGBT_wsf_view.launchFullScreen(lt)}else xe=Ye,He(fe,ye,!1);if(!window.GGBT_wsf_view)for(ie=0;ie<_e.length;ie++)fe.removeChild(_e[ie])},Ze=fe.getElementsByClassName("ggb_preview_play"),ie=0;ie<Ze.length;ie++)Ze[ie].addEventListener("click",Me,!1),Ze[ie].addEventListener("ontouchstart",Me,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qe=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ye='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ae=document.createElement("style");Ae.styleSheet?Ae.styleSheet.cssText=ye:Ae.appendChild(document.createTextNode(ye)),document.getElementsByTagName("head")[0].appendChild(Ae)}return fe},nt=function(fe,ye,Ae,Ye){var Me=document.createElement("div");Me.className="ggb_preview",Me.style.position="absolute",Me.style.zIndex="90",Me.style.width=fe-2+"px",Me.style.height=ye-2+"px",Me.style.top="0px",Me.style.left="0px",Me.style.overflow="hidden",Me.style.backgroundColor="white";var Ze="lightgrey";Ae!==void 0&&(Ae==="none"?Ze="transparent":Ze=Ae),Me.style.border="1px solid "+Ze;var ie=document.createElement("img");if(ie.style.position="relative",ie.style.zIndex="1000",ie.style.top="-1px",ie.style.left="-1px",x!==null&&ie.setAttribute("src",x),ie.style.opacity=.7,b!==null){var _e,Qe,lt;if(!Ye){_e=document.createElement("img"),_e.style.position="absolute",_e.style.zIndex="1001",_e.style.opacity=1,ie.style.opacity=.3,Qe=360,Qe>fe/4*3&&(Qe=fe/4*3),lt=Qe/5.8,_e.setAttribute("src",b),_e.setAttribute("width",Qe),_e.setAttribute("height",lt);var rt=(fe-Qe)/2,At=(ye-lt)/2;_e.style.left=rt+"px",_e.style.top=At+"px",Me.appendChild(_e)}}return Me.appendChild(ie),Me},ht=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},vt=["web","webSimple","web3d","tablet","tablet3d","phone"],Nt=function(fe,ye){if(ne=fe,ye){Ct(ne,!0);return}var Ae=!be;if(Ae){var Ye=te(ne);!isNaN(Ye)&&Ye<4.4&&(Ae=!1)}var Me,Ze;window.location.protocol.substr(0,4)==="http"?Me=window.location.protocol:Me="http:";var ie=ne.indexOf("//");ie>0?Ze=ne:ie===0?Ze=Me+ne:Ze="https://www.geogebra.org/apps/5.2.814.0/";for(var _e in vt)if(ne.slice(vt[_e].length*-1)===vt[_e]||ne.slice((vt[_e].length+1)*-1)===vt[_e]+"/"){Ct(Ze,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ae&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!pe(de.showToolBar)&&!pe(de.showMenuBar)&&!pe(de.showAlgebraInput)&&!pe(de.enableRightClick)&&(!de.appName||de.appName=="classic")?Ze+="webSimple/":Ze+="web3d/",Ct(Ze,!1)},Ct=function(fe,ye){if(fe.requirejs){Ce=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Ce=fe,ye===null&&(ye=fe.indexOf("http")===-1),Re=ye,a="web.nocache.js",y=!1;var Ae=Ce.split("/");Ae.length>1&&(!ye&&Ae[Ae.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):vt.indexOf(Ae[Ae.length-2])>=0&&(a=Ae[Ae.length-2]+".nocache.js")),Ae=fe.split("/"),ne=Ae[Ae.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Ye=parseFloat(ne);Ye!==NaN&&Ye<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead."),Nt("5.0",ye))},Ot=function(fe,ye){window.console&&window.console.log&&(!ye||typeof ye.showLogging=="undefined"||ye.showLogging&&ye.showLogging!=="false")&&console.log(fe)};de.material_id!==void 0?re(Kt):Kt();function Kt(){var fe=Ue;Ge!==null?fe=Ge:parseFloat(fe)<5&&(fe="5.0"),Nt(fe,!1),Pe!==null&&Ct(Pe,Re),he=!0}return ce},GGBAppletUtils=function(){"use strict";function ce(){return window.GGBT_wsf_edit!==void 0}function Ue(he,Ge){Ge!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+Ge+","+Ge+")",he.style.webkitTransform="scale("+Ge+","+Ge+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function de(he,Ge,Pe,ke,we,Ee){var Ce=null;if(Ee!=null&&Ee!="")for(var Re=he.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Ee+" ")>-1){Ce=Re;break}else Re=Re.parentNode;var xe=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ce)xe=Ce.offsetWidth,ne=Math.max(ke?Ce.offsetWidth:0,Ce.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=xe):(xe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=xe&&(we===void 0||!we)&&(document.dir==="rtl"?(x=xe-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return he&&((Pe===void 0||!Pe)&&Ge>0&&Ge+y<xe?xe=Ge:xe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pe===void 0||!Pe)&&(ne-=E)),{width:xe,height:ne}}function oe(he,Ge,Pe,ke,we){if(he.isScreenshoGenerator)return 1;var Ee=ke!==void 0&&ke,Ce=he.noScaleMargin!=null&&he.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},xe=Re(he.autoHeight),ne=de(Ge,he.width,Pe,xe,Ee&&window.GGBT_wsf_view||Ce,we),a=parseInt(ne.width),y=he.width,x=he.height;if(y===void 0){var b=Ge.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ee?1:ne.height/x;return Pe!==void 0&&!Pe&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function be(he,Ge,Pe){var ke=1,we,Ee=!1;if(he.hasOwnProperty("allowUpscale")&&(Ee=he.allowUpscale),he.hasOwnProperty("scale")&&(ke=parseFloat(he.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(Ee=!0)),Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))we=oe(he,Ge,Ee,Pe,he.scaleContainerClass);else return ke;return Ee&&(!he.hasOwnProperty("scale")||ke===1)?we:Math.min(ke,we)}function Oe(he){var Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Pe=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=he.getBoundingClientRect(),we=(Ge-ke.width)/2,Ee=(Pe-ke.height)/2;Ee<0&&(Ee=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?he.style.left="40px":he.style.left=we+"px",he.style.top=Ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee<40?he.style.top="40px":he.style.top=Ee+"px",he.style.left=we+"px")}function De(he,Ge){var Pe=he.querySelector(".appletParameters");if(Pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ge.id!==Pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(Pe.parentElement&&/fullscreen/.test(Pe.parentElement.className))return;var ke=be(Ge,he);ce()&&Pe.setAttribute("data-param-scale",ke);for(var we=null,Ee=0;Ee<he.childNodes.length;Ee++)if(he.childNodes[Ee].className!==void 0&&he.childNodes[Ee].className.match(/^applet_scaler/)){we=he.childNodes[Ee];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var Ce=Ge.id!==void 0?Ge.id:"ggbApplet",Re=window[Ce];(Re==null||!Re.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(we.parentNode.style.width=Ge.width*ke+"px",we.parentNode.style.height=Ge.height*ke+"px",Ue(we,ke)):(Ue(we,1),we.parentNode.style.width=Ge.width+"px",we.parentNode.style.height=Ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Oe(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Pe).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:ce,positionCenter:Oe,getScale:be,scaleElement:Ue}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ce=n.location.search;return ce.indexOf(J)!=-1||ce.indexOf(K)!=-1}function q(ce,Ue){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ce){var Ue=s[L].bindings;s[L].bindings=function(){for(var de=Ue?Ue():{},oe=ce[webModule.__softPermutationId],be=O;be<oe.length;be++){var Oe=oe[be];de[Oe[O]]=Oe[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var ce=o.createElement(Q);if(ce.id=L,ce.style.cssText=R+S,ce.tabIndex=-1,o.body.appendChild(ce),t=ce.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ue=document.compatMode==U?V:W;t.write(Ue+X),t.close()}}}function w(ce){function Ue(oe){function be(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Oe=be();if(Oe){oe();return}function De(){if(!Oe){if(!be())return;Oe=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,De,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,De,!1);var he=setInterval(function(){De()},$)}function de(oe){var be=u(),Oe=be.body,De=be.createElement(_);De.language=ab,De.crossOrigin=W,De.src=oe,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Oe.appendChild(De)}Ue(function(){de(ce)})}webModule.__startLoadingFragment=function(ce){return C(ce)},webModule.__installRunAsyncCode=function(ce){var Ue=u(),de=Ue.body,oe=Ue.createElement(_);oe.language=ab,oe.text=ce,de.appendChild(oe),de.removeChild(oe)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ce){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ce){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ce){var Ue=c[ce];return Ue==null?null:Ue},r=d,webModule.__errFn=e}function B(){function ce(he){var Ge=he.lastIndexOf(rb);Ge==-1&&(Ge=he.length);var Pe=he.indexOf(sb);Pe==-1&&(Pe=he.length);var ke=he.lastIndexOf(tb,Math.min(Pe,Ge));return ke>=O?he.substring(O,ke+P):W}function Ue(he){if(!he.match(/^\w+:\/\//)){var Ge=o.createElement(ub);Ge.src=he+vb,he=ce(Ge.src)}return he}function de(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function oe(){for(var he=o.getElementsByTagName(_),Ge=O;Ge<he.length;++Ge)if(he[Ge].src.indexOf(xb)!=-1)return ce(he[Ge].src);return W}function be(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function Oe(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var De=de();return De==W&&(De=oe()),De==W&&(De=be()),De==W&&Oe()&&(De=ce(o.location.href)),De=Ue(De),De}function C(ce){return ce.match(/^\//)||ce.match(/^[a-zA-Z]+:\/\//)?ce:webModule.__moduleBase+ce}function D(){var ce=[],Ue=O,de=[],oe=[];function be(he){var Ge=oe[he](),Pe=de[he];if(Ge in Pe)return Ge;var ke=[];for(var we in Pe)ke[Pe[we]]=we;throw r&&r(he,ke,Ge),null}if(__gwt_isKnownPropertyValue=function(he,Ge){return Ge in de[he]},webModule.__getPropMap=function(){var he={};for(var Ge in de)de.hasOwnProperty(Ge)&&(he[Ge]=be(Ge));return he},webModule.__computePropValue=be,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Oe;try{Oe=Cb;var De=Oe.indexOf(Db);De!=-1&&(Ue=parseInt(Oe.substring(De+P),$),Oe=Oe.substring(O,De))}catch(he){}return webModule.__softPermutationId=Ue,C(Oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},88457:function(ce,Ue,de){"use strict";de.d(Ue,{Ax:function(){return De},Ds:function(){return he},KI:function(){return Pe},SI:function(){return Oe},f1:function(){return be}});var oe=de(78323);function be(ke){let we=!0;if(ke.length>0){for(let Ee=0;Ee<ke.length;Ee++)if(ke[Ee].compile_success==0||!ke[Ee].compile_success){we=!1;break}}else we=!1;return we}function Oe(ke,we=""){let Ee=[];for(let Ce=0;Ce<ke.length;Ce++){let Re=ke[Ce],xe=we?`${we}/${Re.name}`:`${Re.name}`;Ee.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:xe})}return Ee}function De(ke,we,Ee){for(let Ce=0;Ce<ke.length;Ce++){let Re=ke[Ce];if(Re.key===we){Re.children=Ee;break}Re.children&&De(Re.children,we,Ee)}return ke}function he(ke,we,Ee){let Ce;return function(){let Re=this,xe=arguments,ne=function(){Ce=null,Ee||ke.apply(Re,xe)},a=Ee&&!Ce;clearTimeout(Ce),Ce=setTimeout(ne,we),a&&ke.apply(Re,xe)}}const Ge=!0,Pe=oe.Z.API_SERVER},64179:function(ce,Ue,de){"use strict";de.d(Ue,{t:function(){return Re}});var oe=de(59301),be=de(3113),Oe={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},De=de(92310),he=de.n(De),Ge=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ee=(xe,ne,a)=>ne in xe?Ge(xe,ne,{enumerable:!0,configurable:!0,writable:!0,value:a}):xe[ne]=a,Ce=(xe,ne)=>{for(var a in ne||(ne={}))ke.call(ne,a)&&Ee(xe,a,ne[a]);if(Pe)for(var a of Pe(ne))we.call(ne,a)&&Ee(xe,a,ne[a]);return xe};const Re=({cancelText:xe="\u53D6\u6D88",okText:ne="\u786E\u5B9A",loading:a=!1,hasOkBtn:y=!0,hasCancelBtn:x=!0,okButtonProps:b={},onCancel:E=()=>{},onOk:z=()=>{},className:ee=""})=>oe.createElement("div",{className:he()(Oe.buttonFixed,ee)},oe.createElement("div",{className:Oe.buttonWrap},x&&oe.createElement(be.ZP,{size:"middle",className:`${Oe.button} mr20`,onClick:E},xe),y&&oe.createElement(be.ZP,Ce({size:"middle",type:"primary",className:`${Oe.button} mr20`,loading:a,onClick:z},b),ne)))},86197:function(ce,Ue,de){"use strict";de.d(Ue,{Z:function(){return Ce}});var oe=de(59301),be={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Oe=de(92310),De=de.n(Oe),he=de(71418),Ge=de(2859),Pe=de(57193),ke=de(63949),we=(Re,xe,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Re,xe)).next())}),Ce=({data:Re,className:xe,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,oe.useRef)(null),ee=(0,oe.useRef)(null),te=(0,oe.useRef)(null),ae=(0,oe.useRef)(null),[ge,re]=(0,oe.useState)(!1),[se,me]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&ve()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Re==null?void 0:Re.visible]);const ve=()=>we(void 0,null,function*(){re(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tt=yield(0,ke.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=tt,z.current.onload=function(){St()},re(!1),me("")}),pe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},He=tt=>we(void 0,null,function*(){re(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,Pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:tt.dataUrl}});qe!=null&&qe.id&&!E?(yield(0,Pe.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(tt.state)}})).status===0&&x():qe!=null&&qe.id&&x(qe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),me("")}),ot=()=>{const tt=document.querySelector('a[href="https://markerjs.com/"]');tt&&tt.parentNode&&(tt.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(nt=>{const ht=document.querySelector(nt.name);ht&&ht.setAttribute("title",nt.title)})},St=()=>{ee.current=new Ge.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",He),ee.current.addEventListener("beforeclose",pe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Re!=null&&Re.snapshotData&&ee.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ot()},300)};return oe.createElement(oe.Fragment,null,(Re==null?void 0:Re.visible)&&oe.createElement(he.Z,{spinning:ge,tip:se,style:{position:"absolute"}},oe.createElement("div",{ref:ae,className:De()(be.imageDimensions,xe,ne?be.fullWidth:""),style:a},oe.createElement("img",{className:be.img,ref:z}))))}},24638:function(ce,Ue,de){"use strict";var oe=de(59301),be=de(95237),Oe=de(43604),De=de(99313),he=de(3113),Ge=de(76818),Pe=de(27431),ke=de(48136),we=de(59301);const Ee=(0,oe.forwardRef)(({callback:Ce,showSaveButton:Re,value:xe=""},ne)=>{const a=(0,oe.useRef)(),y=[{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 "}]}]}],x=[{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}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(be.Z,{className:Pe.Z.lists,gutter:[10,10]},y.map((ee,te)=>we.createElement(Oe.Z,{flex:"110px",className:Pe.Z.item},we.createElement("div",null,we.createElement(Ge.Z,{value:`$$${ee.value}$$`}),ee.name),we.createElement("div",{className:Pe.Z.children},ee.children.map((ae,ge)=>we.createElement("div",{key:ge},we.createElement("h1",null,ae.name),we.createElement(be.Z,{gutter:[10,10]},ae.data.map((re,se)=>we.createElement(Oe.Z,{key:se,onClick:()=>b(re),className:Pe.Z.diamond},we.createElement(Ge.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(be.Z,{className:Pe.Z.lists,gutter:[10,10]},x.map((ee,te)=>we.createElement(Oe.Z,{flex:"110px",className:Pe.Z.item},we.createElement("div",null,we.createElement(Ge.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),we.createElement("div",{className:Pe.Z.children},ee.children.map((ae,ge)=>we.createElement("div",{key:ge},ae.name&&we.createElement("h1",null,ae.name),we.createElement(be.Z,{gutter:[10,10]},ae.data.map((re,se)=>we.createElement(Oe.Z,{key:se,onClick:()=>b(re),className:Pe.Z.diamond},we.createElement(Ge.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ce&&Ce(te),te};return(0,oe.useImperativeHandle)(ne,()=>({getData:z})),we.createElement("div",{className:Pe.Z.mathWrap},we.createElement(De.default,{defaultActiveKey:"1",items:E}),we.createElement("math-field",{locale:"zh_cn",className:Pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},xe||""),Re&&we.createElement("div",{className:Pe.Z.button},we.createElement(he.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ue.Z=Ee},63347:function(ce,Ue,de){"use strict";de.d(Ue,{h:function(){return ee}});var oe=de(59301),be=de(57809),Oe=de(78241),De=de(3113),he=de(89780),Ge=de.n(he),Pe=de(4887),ke=de(37068),we=Object.defineProperty,Ee=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,ge)=>ae in te?we(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ae]=ge,y=(te,ae)=>{for(var ge in ae||(ae={}))xe.call(ae,ge)&&a(te,ge,ae[ge]);if(Re)for(var ge of Re(ae))ne.call(ae,ge)&&a(te,ge,ae[ge]);return te},x=(te,ae)=>Ee(te,Ce(ae));const b=be.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={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"]};Ue.Z=({callback:te,onCancel:ae})=>{const[ge,re]=(0,oe.useState)("python");function se(ve){re(z[ve][1])}function me(ve){te(ve)}return oe.createElement(Oe.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),oe.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(be.default,{getPopupContainer:ve=>ve.parentNode,onChange:se},Object.keys(z).map(ve=>oe.createElement(b,{key:ve,value:ve},z[ve][0])))),oe.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(ee,{mode:ge})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(De.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:ge,options:re={}}){const se=(0,oe.useRef)(),[me,ve]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(me){let pe=function(He){const ot=He.getValue();ae&&ae(ot)};return me.on("change",pe),()=>{me.off("change",pe)}}},[me,ae]),(0,oe.useEffect)(()=>{me&&me.setOption("mode",ge)},[me,ge]),(0,oe.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,oe.useEffect)(()=>{if(se.current&&!me){const pe=Ge().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));ve(pe)}},[se.current,me]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:se}))}},88871:function(ce,Ue,de){"use strict";de.d(Ue,{Z:function(){return ra}});var oe=de(59301),be=de(89780),Oe=de.n(be),De=de(76374),he=de(4887),Ge=de(6313),Pe=de(25717),ke=de(99498),we=de(25419),Ee=de(67549),Ce=de(76818),Re=({value:ue="",className:le,showTextOnly:Se,showLines:ze,style:Ve={}})=>{const $e=(0,oe.useMemo)(()=>"",[ue]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:$e}}))},xe=de(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ue,le,Se)=>le in ue?ne(ue,le,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[le]=Se,ee=(ue,le)=>{for(var Se in le||(le={}))b.call(le,Se)&&z(ue,Se,le[Se]);if(x)for(var Se of x(le))E.call(le,Se)&&z(ue,Se,le[Se]);return ue},te=(ue,le)=>a(ue,y(le));let ae=[{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 ge({onActionCallback:ue,title:le,icon:Se,actionName:ze,className:Ve="",children:$e}){function it(){ue(ze)}return xe.createElement("a",{title:le,className:Ve,onClick:it},xe.createElement("i",{className:`${Se}`}),$e)}var re=({watch:ue,showNullButton:le,showNullProgramButton:Se,onActionCallback:ze,fullScreen:Ve,insertTemp:$e,hidetoolBar:it,extraUse:Je})=>{const et=[...ae,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!it&&et.map((dt,Mt)=>xe.createElement("li",{key:Mt},dt.actionName?xe.createElement(ge,te(ee({},dt),{onActionCallback:ze})):xe.createElement("span",{className:"v-line"}))),le?xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ze},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ze},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ze},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,$e&&xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${$e}`,onActionCallback:ze},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Je&&xe.createElement("li",null,Je),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(ge,{icon:`${Ve?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ve?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ze})))},se=de(81123),me=de(78241),ve=de(92832),pe=de(3113),He=Object.defineProperty,ot=Object.defineProperties,St=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(ue,le,Se)=>le in ue?He(ue,le,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[le]=Se,vt=(ue,le)=>{for(var Se in le||(le={}))qe.call(le,Se)&&ht(ue,Se,le[Se]);if(tt)for(var Se of tt(le))nt.call(le,Se)&&ht(ue,Se,le[Se]);return ue},Nt=(ue,le)=>ot(ue,St(le));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var Ot=({callback:ue,onCancel:le})=>{function Se(ze){ue(ze)}return oe.createElement(me.default,Nt(vt({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),oe.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(ve.default,null)),oe.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(ve.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(pe.ZP,{type:"ghost",onClick:le},"\u53D6\u6D88")))},Kt=de(63347),fe=de(90443),ye=de(43418),Ae=de(95237),Ye=de(86197),Me=de(59301),Ze=({callback:ue,onCancel:le})=>{const Se=document.createElement("canvas"),ze=Se.getContext("2d");Se.width=1e3,Se.height=800,ze.fillStyle="#ffffff",ze.fillRect(0,0,Se.width,Se.height);const Ve=Se.toDataURL("image/png");return Me.createElement(ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Me.createElement(Ae.Z,{style:{height:"100vh"}},Me.createElement(Ye.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ve,visible:!0,title:String(Date.now())},onOk:$e=>{ue({src:$e.url})},onClose:le})))},ie=de(12378);function _e(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(_e,go.CommandHandler),_e.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},_e.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var le=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(le=Math.min(Se.position.x,le))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(le,Se.position.y))}),ue.commitTransaction("aligning left")},_e.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var le=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var ze=Se.actualBounds.x+Se.actualBounds.width;le=Math.max(ze,le)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(le-Se.actualBounds.width,Se.position.y))}),ue.commitTransaction("aligning right")},_e.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var le=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(le=Math.min(Se.position.y,le))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,le))}),ue.commitTransaction("alignTop")},_e.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var le=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var ze=Se.actualBounds.y+Se.actualBounds.height;le=Math.max(ze,le)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,le-Se.actualBounds.height))}),ue.commitTransaction("aligning bottom")},_e.prototype.alignCenterX=function(){var ue=this.diagram,le=ue.selection.first();if(le){ue.startTransaction("aligning Center X");var Se=le.actualBounds.x+le.actualBounds.width/2;ue.selection.each(function(ze){ze instanceof go.Link||ze.move(new go.Point(Se-ze.actualBounds.width/2,ze.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},_e.prototype.alignCenterY=function(){var ue=this.diagram,le=ue.selection.first();if(le){ue.startTransaction("aligning Center Y");var Se=le.actualBounds.y+le.actualBounds.height/2;ue.selection.each(function(ze){ze instanceof go.Link||ze.move(new go.Point(ze.actualBounds.x,Se-ze.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},_e.prototype.alignColumn=function(ue){var le=this.diagram;le.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Se=new Array;le.selection.each(function(Je){Je instanceof go.Link||Se.push(Je)});for(var ze=0;ze<Se.length-1;ze++){var Ve=Se[ze],$e=Ve.actualBounds.y+Ve.actualBounds.height+ue,it=Se[ze+1];it.move(new go.Point(Ve.actualBounds.x,$e))}le.commitTransaction("align Column")},_e.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var le=this.diagram;le.startTransaction("align Row");var Se=new Array;le.selection.each(function(Je){Je instanceof go.Link||Se.push(Je)});for(var ze=0;ze<Se.length-1;ze++){var Ve=Se[ze],$e=Ve.actualBounds.x+Ve.actualBounds.width+ue,it=Se[ze+1];it.move(new go.Point($e,Ve.actualBounds.y))}le.commitTransaction("align Row")},_e.prototype.canRotate=function(ue){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<1)},_e.prototype.rotate=function(ue){ue===void 0&&(ue=90);var le=this.diagram;le.startTransaction("rotate "+ue.toString());var le=this.diagram;le.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ue)}),le.commitTransaction("rotate "+ue.toString())},_e.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var le=new go.Map;ue.selection.each(function(Se){le.set(Se.layer,0)}),le.iteratorKeys.each(function(Se){var ze=0;Se.parts.each(function(Ve){if(!Ve.isSelected){var $e=Ve.zOrder;isNaN($e)?Ve.zOrder=0:ze=Math.max(ze,$e)}}),le.set(Se,ze)}),ue.selection.each(function(Se){_e._assignZOrder(Se,le.get(Se.layer)+1)}),ue.commitTransaction("pullToFront")},_e.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var le=new go.Map;ue.selection.each(function(Se){le.set(Se.layer,0)}),le.iteratorKeys.each(function(Se){var ze=0;Se.parts.each(function(Ve){if(!Ve.isSelected){var $e=Ve.zOrder;isNaN($e)?Ve.zOrder=0:ze=Math.min(ze,$e)}}),le.set(Se,ze)}),ue.selection.each(function(Se){_e._assignZOrder(Se,le.get(Se.layer)-1-_e._findGroupDepth(Se))}),ue.commitTransaction("pushToBack")},_e._assignZOrder=function(ue,le,Se){Se===void 0&&(Se=ue),ue.layer===Se.layer&&(ue.zOrder=le),ue instanceof go.Group&&ue.memberParts.each(function(ze){_e._assignZOrder(ze,le+1,Se)})},_e._findGroupDepth=function(ue){if(ue instanceof go.Group){var le=0;return ue.memberParts.each(function(Se){le=Math.max(le,_e._findGroupDepth(Se))}),le+1}else return 0},_e.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var le=ue.lastInput;if(le.key==="Up"||le.key==="Down"||le.key==="Left"||le.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},_e.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(le){ue.push(le)}),this.diagram.parts.each(function(le){ue.push(le)}),ue},_e.prototype._arrowKeyMove=function(){var ue=this.diagram,le=ue.lastInput,Se=0,ze=0;if(le.control||le.meta)Se=1,ze=1;else if(ue.grid!==null){var Ve=ue.grid.gridCellSize;ze=Ve.width,Se=Ve.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function($e){le.key==="Up"?$e.move(new go.Point($e.actualBounds.x,$e.actualBounds.y-Se)):le.key==="Down"?$e.move(new go.Point($e.actualBounds.x,$e.actualBounds.y+Se)):le.key==="Left"?$e.move(new go.Point($e.actualBounds.x-ze,$e.actualBounds.y)):le.key==="Right"&&$e.move(new go.Point($e.actualBounds.x+ze,$e.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},_e.prototype._arrowKeySelect=function(){var ue=this.diagram,le=ue.lastInput,Se=null;le.key==="Up"?Se=this._findNearestPartTowards(270):le.key==="Down"?Se=this._findNearestPartTowards(90):le.key==="Left"?Se=this._findNearestPartTowards(180):le.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(le.shift?Se.isSelected=!0:le.control||le.meta?Se.isSelected=!Se.isSelected:ue.select(Se))},_e.prototype._findNearestPartTowards=function(ue){var le=this.diagram.selection.first();if(le===null)return null;for(var Se=le.actualBounds.center,ze=this._getAllParts(),Ve=1/0,$e=le,it=0;it<ze.length;it++){var Je=ze[it];if(Je!==le&&Je.canSelect()){var et=Je.actualBounds.center,dt=Se.directionPoint(et),Mt=this._angleCloseness(dt,ue);if(Mt<=45){var Fe=Se.distanceSquaredPoint(et);Fe*=1+Math.sin(Mt*Math.PI/180),Fe<Ve&&(Ve=Fe,$e=Je)}}}return $e},_e.prototype._angleCloseness=function(ue,le){return Math.min(Math.abs(le-ue),Math.min(Math.abs(le+360-ue),Math.abs(le-360-ue)))},_e.prototype._arrowKeyTree=function(){var ue=this.diagram,le=ue.selection.first();if(le instanceof go.Node){var Se=ue.lastInput;if(Se.key==="Right"){if(!le.isTreeLeaf)if(!le.isTreeExpanded)ue.commandHandler.canExpandTree(le)&&ue.commandHandler.expandTree(le);else{var ze=this._sortTreeChildrenByY(le).first();ze!==null&&ue.select(ze)}}else if(Se.key==="Left")if(!le.isTreeLeaf&&le.isTreeExpanded)ue.commandHandler.canCollapseTree(le)&&ue.commandHandler.collapseTree(le);else{var Ve=le.findTreeParentNode();Ve!==null&&ue.select(Ve)}else if(Se.key==="Up"){var Ve=le.findTreeParentNode();if(Ve!==null){var $e=this._sortTreeChildrenByY(Ve),it=$e.indexOf(le);if(it>0){for(var Je=$e.elt(it-1);Je!==null&&Je.isTreeExpanded&&!Je.isTreeLeaf;){var et=this._sortTreeChildrenByY(Je);Je=et.last()}Je!==null&&ue.select(Je)}else ue.select(Ve)}}else if(Se.key==="Down")if(le.isTreeExpanded&&!le.isTreeLeaf){var ze=this._sortTreeChildrenByY(le).first();ze!==null&&ue.select(ze)}else for(;le!==null;){var Ve=le.findTreeParentNode();if(Ve===null)break;var $e=this._sortTreeChildrenByY(Ve),it=$e.indexOf(le);if(it<$e.length-1){ue.select($e.elt(it+1));break}else le=Ve}var dt=ue.selection.first();dt!==null&&ue.scrollToRect(dt.actualBounds)}},_e.prototype._sortTreeChildrenByY=function(ue){var le=new go.List().addAll(ue.findTreeChildrenNodes());return le.sort(function(Se,ze){var Ve=Se.location,$e=ze.location;return Ve.y<$e.y?-1:Ve.y>$e.y?1:Ve.x<$e.x?-1:Ve.x>$e.x?1:0}),le},_e.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},_e.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(_e.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(_e.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var Qe=_e,lt=de(87851),rt=de(43604),At=de(57193),Dt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ut=de(59301),hn=(ue,le,Se)=>new Promise((ze,Ve)=>{var $e=et=>{try{Je(Se.next(et))}catch(dt){Ve(dt)}},it=et=>{try{Je(Se.throw(et))}catch(dt){Ve(dt)}},Je=et=>et.done?ze(et.value):Promise.resolve(et.value).then($e,it);Je((Se=Se.apply(ue,le)).next())});function cn({onCancel:ue,callback:le}){let Se=(0,oe.useRef)(),ze=(0,oe.useRef)(),Ve=(0,oe.useRef)(),$e=(0,oe.useRef)(!1);const it=(0,oe.useRef)(!1),[Je,et]=(0,oe.useState)(0);function dt(){const Fe=ie.bx.make,at={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"};Se.current=new ie.S0(ze.current,{padding:20,grid:Fe(ie.s_,"Grid",Fe(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fe(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Be=>{var je=Be.diagram.commandHandler.addTopLevelParts(Be.diagram.selection,!0);je||Be.diagram.currentTool.doCancel()},commandHandler:Fe(Qe),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Be=>{var je=Be.subject;je.location=je.location.copy().snapToGridPoint(Be.diagram.grid.gridOrigin,Be.diagram.grid.gridCellSize),setTimeout(()=>{Be.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Be=>{var je=Be.subject;setTimeout(()=>{Be.diagram.commandHandler.editTextBlock()})},LinkRelinked:Be=>{var je=Be.parameter.part;je.invalidateConnectedLinks();var Xe=Be.subject;Be.diagram.toolManager.linkingTool.isForwards?Xe.toNode.invalidateConnectedLinks():Xe.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Fe(ie.NB,"Auto",{locationSpot:ie.z6.Center,locationObjectName:"SHAPE",desiredSize:new ie.$u(120,60),minSize:new ie.$u(40,40),resizable:!0,resizeCellSize:new ie.$u(10,10),rotatable:!0},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),new ie.KX("desiredSize","size",ie.$u.parse).makeTwoWay(ie.$u.stringify),Fe(ie.bn,{name:"SHAPE",fill:at.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ie.z6.AllSides,toSpot:ie.z6.AllSides},new ie.KX("figure"),new ie.KX("fill"),new ie.KX("stroke","borderColor"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),Fe(ie.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Fe(ie.al,{margin:1,textAlign:"center",overflow:ie.al.OverflowEllipsis,editable:!0},new ie.KX("text").makeTwoWay(),new ie.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Fe("ToolTip",Fe(ie.s_,"Vertical",{maxSize:new ie.$u(200,NaN)},Fe(ie.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ie.KX("text")),Fe(ie.al,{font:"10pt sans-serif",textAlign:"center"},new ie.KX("text","details"))));function zt(Be,je){var Xe=(Ke,mt)=>{Ke.handled=!0,Ke.diagram.model.commit(st=>{var Ft=mt.part.adornedPart,xt=new ie.E9().setRectSpot(Ft.actualBounds,Be);xt.subtract(Ft.location),xt.scale(2,2),xt.x+=Math.sign(xt.x)*130,xt.y+=Math.sign(xt.y)*130,xt.add(Ft.location),xt.snapToGridPoint(Ke.diagram.grid.gridOrigin,Ke.diagram.grid.gridCellSize);var Tt=st.copyNodeData(Ft.data);st.setGroupKeyForNodeData(Tt,st.getGroupKeyForNodeData(Ft.data)),st.addNodeData(Tt);var Dn={from:Ft.key,to:st.getKeyForNodeData(Tt)};st.addLinkData(Dn);var on=Ke.diagram.findNodeForData(Tt);on.location=xt,Ke.diagram.select(on),setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()},20)})};return Fe(ie.bn,{figure:je,alignment:Be,alignmentFocus:Be.opposite(),width:Be.equals(ie.z6.Top)||Be.equals(ie.z6.Bottom)?25:18,height:Be.equals(ie.z6.Top)||Be.equals(ie.z6.Bottom)?18:25,fill:"orange",stroke:at.white,strokeWidth:4,mouseEnter:(Ke,mt)=>mt.fill="dodgerblue",mouseLeave:(Ke,mt)=>mt.fill="orange",isActionable:!0,click:Xe,contextClick:Xe})}function It(Be){return Fe(ie.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:(je,Xe)=>Xe.fill="dodgerblue",mouseLeave:(je,Xe)=>Xe.fill="orange",click:(je,Xe)=>{je.diagram.commandHandler.showContextMenu(Xe.part.adornedPart)}},Be||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Fe(ie.uz,"Spot",Fe(ie.Vm,{padding:10}),zt(ie.z6.Top,"TriangleUp"),zt(ie.z6.Left,"TriangleLeft"),zt(ie.z6.Right,"TriangleRight"),zt(ie.z6.Bottom,"TriangleDown"),It({alignment:new ie.z6(.75,0)}));function Lt(Be,je){return(Xe,Ke)=>{Xe.handled=!0,Xe.diagram.model.commit(mt=>{mt.set(Ke.part.adornedPart.data,Be,je)})}}function ct(Be,je){return je||(je="color"),Fe(ie.bn,{width:16,height:16,stroke:"lightgray",fill:Be,margin:1,background:"transparent",mouseEnter:(Xe,Ke)=>Ke.stroke="dodgerblue",mouseLeave:(Xe,Ke)=>Ke.stroke="lightgray",click:Lt(je,Be),contextClick:Lt(je,Be)})}function en(){return[Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",ct(at.white,"fill"),ct(at.beige,"fill"),ct(at.extralightblue,"fill"),ct(at.extralightred,"fill"))),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",ct(at.lightgray,"fill"),ct(at.lightgreen,"fill"),ct(at.lightblue,"fill"),ct(at.lightred,"fill")))]}function tn(){return[Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",ct(at.black),ct(at.green),ct(at.blue),ct(at.red))),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",ct(at.white),ct(at.magenta),ct(at.purple),ct(at.orange)))]}function nn(Be,je){return je||(je="thickness"),Fe(ie.bn,"LineH",{width:16,height:16,strokeWidth:Be,margin:1,background:"transparent",mouseEnter:(Xe,Ke)=>Ke.background="dodgerblue",mouseLeave:(Xe,Ke)=>Ke.background="transparent",click:Lt(je,Be),contextClick:Lt(je,Be)})}function Pn(Be,je){return je||(je="dash"),Fe(ie.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Be,margin:1,background:"transparent",mouseEnter:(Xe,Ke)=>Ke.background="dodgerblue",mouseLeave:(Xe,Ke)=>Ke.background="transparent",click:Lt(je,Be),contextClick:Lt(je,Be)})}function an(){return[Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",nn(1),nn(2),nn(3),nn(4))),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",Pn(null),Pn([2,4]),Pn([4,4])))]}function Gt(Be,je){return je||(je="figure"),Fe(ie.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Be,margin:1,background:"transparent",mouseEnter:(Xe,Ke)=>Ke.fill="dodgerblue",mouseLeave:(Xe,Ke)=>Ke.fill="lightgray",click:Lt(je,Be),contextClick:Lt(je,Be)})}Se.current.nodeTemplate.contextMenu=Fe("ContextMenu",Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",Gt("Rectangle"),Gt("RoundedRectangle"),Gt("Ellipse"),Gt("Diamond"))),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",Gt("Parallelogram2"),Gt("ManualOperation"),Gt("Procedure"),Gt("Cylinder1"))),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",Gt("Terminator"),Gt("CreateRequest"),Gt("Document"),Gt("TriangleDown"))),en(),tn(),an()),Se.current.groupTemplate=Fe(ie.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ie.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Be,je)=>{var Xe=je.addMembers(je.diagram.selection,!0);Xe||je.diagram.currentTool.doCancel()},avoidable:!1},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),Fe(ie.s_,"Auto",{name:"BODY"},Fe(ie.bn,{parameter1:10,fill:at.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ie.z6.AllSides,toSpot:ie.z6.AllSides},new ie.KX("fill"),new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),Fe(ie.Vm,{background:"transparent",margin:20})),Fe(ie.al,{alignment:ie.z6.Top,alignmentFocus:ie.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ie.KX("text"),new ie.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=Fe(ie.uz,"Spot",Fe(ie.s_,"Auto",Fe(ie.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Fe(ie.Vm,{margin:1.5})),It({alignment:ie.z6.TopRight,alignmentFocus:ie.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Fe("ContextMenu",en(),tn(),an()),Se.current.linkTemplate=Fe(ie.rU,{layerName:"Foreground",routing:ie.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ie.KX("fromSpot","fromSpot",ie.z6.parse),new ie.KX("toSpot","toSpot",ie.z6.parse),new ie.KX("fromShortLength","dir",Be=>Be>=1?10:0),new ie.KX("toShortLength","dir",Be=>Be>=1?10:0),new ie.KX("points").makeTwoWay(),Fe(ie.bn,{strokeWidth:2},new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),Fe(ie.bn,{segmentIndex:0,segmentOffset:new ie.E9(15,0),segmentOrientation:ie.rU.OrientAlong,alignmentFocus:ie.z6.Right,figure:"circle",width:10,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",Be=>Be===1)),Fe(ie.bn,{segmentIndex:-1,segmentOffset:new ie.E9(-10,6),segmentOrientation:ie.rU.OrientPlus90,alignmentFocus:ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",Be=>Be>=1),new ie.KX("width","thickness",Be=>7+3*Be),new ie.KX("height","thickness",Be=>7+3*Be),new ie.KX("segmentOffset","thickness",Be=>new ie.E9(-15,4+1.5*Be))),Fe(ie.bn,{segmentIndex:0,segmentOffset:new ie.E9(15,-6),segmentOrientation:ie.rU.OrientMinus90,alignmentFocus:ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",Be=>Be===2),new ie.KX("width","thickness",Be=>7+3*Be),new ie.KX("height","thickness",Be=>7+3*Be),new ie.KX("segmentOffset","thickness",Be=>new ie.E9(-15,4+1.5*Be))),Fe(ie.al,{alignmentFocus:new ie.z6(0,1,-4,0),editable:!0},new ie.KX("text").makeTwoWay(),new ie.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Fe(ie.uz,Fe(ie.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ln(2)},new ie.KX("pathPattern","thickness",ln)),It({alignmentFocus:new ie.z6(0,0,-6,-4)}));function ln(Be){return Fe(ie.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Be+4).toString()+" H3"})}function Qt(Be){var je="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Be===0?je="M0 0 M16 16 M0 8 L16 8":Be===2&&(je="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Fe(ie.bn,{geometryString:je,margin:2,background:"transparent",mouseEnter:(Xe,Ke)=>Ke.background="dodgerblue",mouseLeave:(Xe,Ke)=>Ke.background="transparent",click:Lt("dir",Be),contextClick:Lt("dir",Be)})}function vn(Be){var je=(Xe,Ke)=>{Xe.handled=!0,Xe.diagram.model.commit(mt=>{var st=Ke.part.adornedPart;mt.set(st.data,Be?"toSpot":"fromSpot",ie.z6.stringify(ie.z6.AllSides)),(Be?st.toNode:st.fromNode).invalidateConnectedLinks()})};return Fe(ie.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Xe,Ke)=>Ke.background="dodgerblue",mouseLeave:(Xe,Ke)=>Ke.background="transparent",click:je,contextClick:je})}function Le(Be,je){var Xe=0,Ke=ie.z6.RightSide;Be.equals(ie.z6.Top)?(Xe=270,Ke=ie.z6.TopSide):Be.equals(ie.z6.Left)?(Xe=180,Ke=ie.z6.LeftSide):Be.equals(ie.z6.Bottom)&&(Xe=90,Ke=ie.z6.BottomSide),je||(Xe-=180);var mt=(st,Ft)=>{st.handled=!0,st.diagram.model.commit(xt=>{var Tt=Ft.part.adornedPart;xt.set(Tt.data,je?"toSpot":"fromSpot",ie.z6.stringify(Ke)),(je?Tt.toNode:Tt.fromNode).invalidateConnectedLinks()})};return Fe(ie.bn,{alignment:Be,alignmentFocus:Be.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Xe,background:"transparent",mouseEnter:(st,Ft)=>Ft.background="dodgerblue",mouseLeave:(st,Ft)=>Ft.background="transparent",click:mt,contextClick:mt})}Se.current.linkTemplate.contextMenu=Fe("ContextMenu",tn(),an(),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",Qt(0),Qt(1),Qt(2))),Fe("ContextMenuButton",Fe(ie.s_,"Horizontal",Fe(ie.s_,"Spot",vn(!1),Le(ie.z6.Top,!1),Le(ie.z6.Left,!1),Le(ie.z6.Right,!1),Le(ie.z6.Bottom,!1)),Fe(ie.s_,"Spot",{margin:new ie.Zt(0,0,0,2)},vn(!0),Le(ie.z6.Top,!0),Le(ie.z6.Left,!0),Le(ie.z6.Right,!0),Le(ie.z6.Bottom,!0)))));const Tn=`{ "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 gn=["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 sn(Be){return console.log("shapeName:",Be),gn.indexOf(Be)>=0}var Ht=new ie.YI(Ve.current,{maxSelectionCount:1,linkTemplate:Fe(ie.rU,{locationSpot:ie.z6.Center,selectionAdornmentTemplate:Fe(ie.uz,"Link",{locationSpot:ie.z6.Center},Fe(ie.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Fe(ie.bn,{toArrow:"Standard",stroke:null}))},{routing:ie.rU.AvoidsNodes,curve:ie.rU.JumpOver,corner:5,toShortLength:4},new ie.KX("points"),Fe(ie.bn,{isPanelMain:!0,strokeWidth:2}),Fe(ie.bn,{toArrow:"Standard",stroke:null})),model:new ie.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ie.bn.getFigureGenerators().toArray().map(Be=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Be.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Be){var je;const Xe=Be.subject.part;var Ke=(je=document.activeElement)==null?void 0:je.value;typeof Ke=="string"&&Ke.trim()===""&&Se.current.model.commit(function(mt){mt.set(Xe.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Ht.nodeTemplate=Fe(ie.NB,"Auto",{locationSpot:ie.z6.Center},new ie.KX("location","location",ie.E9.parse).makeTwoWay(ie.E9.stringify),Fe(ie.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 ie.KX("stroke").makeTwoWay(),new ie.KX("fill").makeTwoWay(),new ie.KX("figure")),Fe(ie.al,{margin:new ie.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ie.$u(16,16),maxSize:new ie.$u(10,NaN),textAlign:"center",editable:!0},new ie.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=Fe(ie.s_,"Grid",Fe(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fe(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const Mt=()=>hn(this,null,function*(){var Fe=Se.current.makeImage();const at=yield(0,At.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Fe.src}});le({src:at.url})});return(0,oe.useEffect)(()=>(setTimeout(()=>{dt()},500),et(Je+1),()=>{Se.current=null}),[]),ut.createElement("div",{ref:it,className:$e.current?`${Dt.maxH60} body-overflow-initial`:"body-overflow-initial"},ut.createElement(ye.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Je,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ut.createElement(Ae.Z,null,ut.createElement(rt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ut.createElement(rt.Z,{onClick:()=>{var Fe,at,zt=Se.current.selection.first();if($e.current=!$e.current,document.activeElement&&zt){let It=(at=(Fe=document.activeElement)==null?void 0:Fe.value)==null?void 0:at.trim();typeof It=="string"&&Se.current.model.commit(function(Lt){Lt.set(zt.data,"text",It||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}et(Je+1)}},ut.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},ut.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Dt.flowChartWrp},ut.createElement("div",{style:{display:"flex",height:"100%"}},ut.createElement("div",{style:{width:"300px",height:"100%"}},ut.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ut.createElement("div",{style:{height:"calc(100% - 50px)"},className:Dt.myPaletteDiv,ref:Ve})),ut.createElement("div",{style:{flex:1,position:"relative"}},ut.createElement("div",{ref:ze,style:{height:"80vh"}}))),ut.createElement("div",{className:"tr"},ut.createElement(pe.ZP,{size:"large",onClick:Mt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $t=cn,Zt=de(5112),Xt=de(5871);const qt=Zt.ZP.Group,Ut={margin:"0 8px"};var bt=({callback:ue,onCancel:le})=>{function Se(ze){ue(ze)}return oe.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:Ut},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:Ut},"\u884C\u6570"),oe.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Xt.Z,null)),oe.createElement("span",{style:Ut},"\u5217\u6570"),oe.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Xt.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:Ut},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(me.default.Item,{name:"align"},oe.createElement(qt,null,oe.createElement(Zt.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(Zt.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(Zt.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(Zt.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(pe.ZP,{type:"ghost",onClick:le},"\u53D6\u6D88")))},_t=de(78673),fn=de(63089),Xn=de.n(fn),Yn=(0,oe.forwardRef)(({use3d:ue,width:le,height:Se,callback:ze,showSaveButton:Ve},$e)=>{const it=(0,oe.useRef)(),Je=(0,oe.useRef)(),[et,dt]=(0,oe.useState)(!1),Mt=(0,oe.useRef)({id:it,appName:"graphing",width:le||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{Je.current=new(Xn())(Mt.current,!0),window.onload=function(){Je.current.inject("applet_container")}},[]);const Fe=()=>{var at=window.ggbApplet.getPNGBase64(1,!0,72);return ze&&ze(at),at};return(0,oe.useEffect)(()=>{Mt.current.appName=et?"3D":"graphing",Je.current.inject("applet_container")},[et]),(0,oe.useEffect)(()=>{dt(ue)},[ue]),(0,oe.useImperativeHandle)($e,()=>({getImgData:Fe})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:it}),oe.createElement(Ae.Z,{align:"middle"},oe.createElement(rt.Z,{flex:1},oe.createElement(_t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:et,onChange:at=>dt(at)})),oe.createElement(rt.Z,null,oe.createElement(pe.ZP,{size:"large",onClick:Fe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qn=de(24638),Jn=de(1012),En=de(8591);const dn="link",mn="upload-image",Rt="add-flowchart",Yt="draw-image",qn="add-flowchart",un="code-block",Sn="add-table",pn="------------",ea={default:pn,left:`:${pn}`,center:`:${pn}:`,right:`${pn}:`};var ta=de(66991),na=(ue,le,Se)=>new Promise((ze,Ve)=>{var $e=et=>{try{Je(Se.next(et))}catch(dt){Ve(dt)}},it=et=>{try{Je(Se.throw(et))}catch(dt){Ve(dt)}},Je=et=>et.done?ze(et.value):Promise.resolve(et.value).then($e,it);Je((Se=Se.apply(ue,le)).next())});function Fa(){}let Ba=0;const _n=1e4,aa="\u2581",zn="@\u2581\u2581@",Nn="@\u2581@",ga=`
|
|
**\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`,Cn=["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 An(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const Mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",oa={[Mn+"-B"]:"bold",[Mn+"-I"]:"italic"},Gn={[dn]:"\u6DFB\u52A0\u94FE\u63A5",[un]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mn]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[Rt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Sn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ra=({defaultValue:ue="",onChange:le,width:Se="100%",height:ze=400,miniToolbar:Ve=!1,isFocus:$e=!1,watch:it,insertTemp:Je,mode:et="markdown",id:dt="markdown-editor-id",showResizeBar:Mt=!1,noStorage:Fe=!1,showNullButton:at=!1,showNullProgramButton:zt=!1,hidetoolBar:It=!1,fullScreen:Lt=!1,onBlur:ct,onCMBeforeChange:en,onFullScreen:tn,className:nn="",disablePaste:Pn=!1,disabled:an=!1,disabledFill:Gt=!1,placeholder:ln="",values:Qt="",extraUse:vn})=>{const[Le,Tn]=(0,oe.useState)(null),[gn,sn]=(0,oe.useState)(ue),[Ht,Be]=(0,oe.useState)(it),[je,Xe]=(0,oe.useState)(Lt),[Ke,mt]=(0,oe.useState)(""),[st,Ft]=(0,oe.useState)(0),[xt,Tt]=(0,oe.useState)(ze),[Dn,on]=(0,oe.useState)(!1),ia=(0,oe.useRef)((0,Jn.Z)()),da=(0,oe.useRef)(!1),kn=(0,oe.useRef)(),[On,Rn]=(0,oe.useState)(0),[In,Hn]=(0,oe.useState)(0),Jt=(0,oe.useRef)(),Ln=(0,oe.useRef)(),yn=(0,oe.useRef)(),wn=(0,oe.useRef)(),ma=()=>na(void 0,null,function*(){var We;const Ne=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ia.current}});(We=Ne==null?void 0:Ne.attachments)!=null&&We.length&&(console.log("cm:",Le,Jt),Ne.attachments.map(Te=>{Te.content_type.indexOf("image")>-1?Le.replaceSelection(``):Te.content_type.indexOf("video")>-1?Le.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Te.content_type.indexOf("pdf")>-1?Le.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Te.id}?type=${Te.content_type}&disposition=inline" target="_blank">${Te.name}</a>`):Le.replaceSelection(`[${Te.name}](${ENV.API_SERVER}/api/attachments/${Te.id}?type=${Te.content_type})`)}))});(0,oe.useEffect)(()=>{const We=window.scrollY||window.pageYOffset;sn(Qt),Le==null||Le.setValue(Qt),window.scrollTo(0,We)},[Qt]),(0,oe.useEffect)(()=>{tn==null||tn(je)},[je]),(0,oe.useEffect)(()=>{if(Jt.current){let We=function(Te,Ie){var gt;if(Pn){Ie.preventDefault();return}const Pt=Ie.clipboardData;if(Pt){const Bt=Pt.types.toString(),ft=Pt.items;if(Bt==="Files"||Pt.types.indexOf("Files")>-1){if(Ie.preventDefault(),et=="stex")return;try{let yt=ft[1];((gt=ft[0])==null?void 0:gt.kind)==="file"&&(yt=ft[0]);const wt=yt.getAsFile(),jt=wt.name.split(".").pop();(0,fe.I)(wt,Et=>{var Fn,Bn,bn;Et.id?((Fn=wt==null?void 0:wt.type)==null?void 0:Fn.indexOf("image"))>-1?Ne.replaceSelection(`<img width="100%" src="/api/attachments/${Et.id}?type=${Et.content_type})" alt="" />`):((Bn=wt==null?void 0:wt.type)==null?void 0:Bn.indexOf("video"))>-1?Ne.replaceSelection(`<video width="100%" controls src="/api/attachments/${Et.id}"></video>`):((bn=wt==null?void 0:wt.type)==null?void 0:bn.indexOf("pdf"))>-1?Ne.replaceSelection(`<a href="/api/attachments/${Et.id}?type=${wt.type}&disposition=inline" target="_blank">${wt.name}</a>`):Cn.includes(jt)?Ne.replaceSelection(`<a href="/api/attachments/${Et.id}?type=office&disposition=inline" target="_blank">${wt.name}</a>`):Ne.replaceSelection(`[${wt.name}](/api/attachments/${Et.id}?type=${Et.content_type})`):(Et==null?void 0:Et.status)===401&&(En.ZP.warning((Et==null?void 0:Et.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(yt){En.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ne=Oe().fromTextArea(Jt.current,{mode:et,lineNumbers:!Ve,lineWrapping:!0,value:ue,autoCloseTags:!zt,autoCloseBrackets:!0});return Ne.on("keyup",function(Te,Ie){Ie.keyCode===8&&(Te.getValue()==""?Ne.setOption("placeholder",ln):Ne.setOption("placeholder",null))}),Ne.on("keydown",function(Te,Ie){if(Ie.keyCode===8){var gt=ua(Te);gt&&Ie.preventDefault()}}),$e&&Ne.focus(),Ne.on("paste",We),Ne.on("dragleave",function(Te,Ie){Ln.current.classList.remove("mouse-hover-md")}),an&&Ne.on("beforeChange",function(Te,Ie){(Ie.origin==="paste"||Ie.origin==="+input")&&Ie.cancel()}),Tn(Ne),()=>{Ne.off("paste",We)}}},[]);const Wn=(0,oe.useCallback)(()=>{if(Ln.current)try{}catch(We){console.log(We,"---- to set md editor body height")}},[xt,Ln,je]);(0,oe.useEffect)(()=>{function We(){let Ne=new De.Z(Te=>{for(let Ie of Te)(Ie.target.offsetHeight>0||Ie.target.offsetWidth>0)&&(Wn(),Le.setSize("100%","100%"),Le.refresh())});return Ne.observe(Jt.current.parentElement),Ne}if(Le){const Ne=We();return()=>{var Te,Ie;(Te=Jt.current)!=null&&Te.parentElement&&Ne.unobserve((Ie=Jt.current)==null?void 0:Ie.parentElement)}}},[Le,Wn]),(0,oe.useEffect)(()=>{if(Le){let We=[];for(const[Ne,Te]of Object.entries(oa)){let Ie={[Ne]:()=>{jn(Te)}};We.push(Ie),Le.addKeyMap(Ie)}return kn.current=setInterval(()=>{da.current&&ma()},4e3),()=>{clearInterval(kn.current);for(let Ne of We)Le.removeKeyMap(Ne)}}},[Le]),(0,oe.useEffect)(()=>{Lt!==je&&Xe(Lt)},[Lt]),(0,ta.Z)(()=>{if(!Fe&&st>0){let We=new Date().getTime(),Ne=window.sessionStorage.getItem(dt);We>=st+_n&&(!Ne||Ne!==gn)&&(window.sessionStorage.setItem(dt,gn),on(!0))}},_n),(0,oe.useEffect)(()=>{Be(it)},[Le,it]),(0,oe.useEffect)(()=>{Le&&$e&&Le.focus()},[Le,$e]),(0,oe.useEffect)(()=>{if(Ht&&Le){let We=function(Te){let Ie=Te.target;if(wn.current){let gt=Ie.scrollTop/Ie.scrollHeight;wn.current.scrollTop=wn.current.scrollHeight*gt}};const Ne=Le.getScrollerElement();return Ne.addEventListener("scroll",We),()=>{Ne.removeEventListener("scroll",We)}}},[Le,Ht]),(0,oe.useEffect)(()=>{if(Le&&en){let We=function(Ne,Te){en(Ne,Te)};return Le.on("beforeChange",We),()=>{Le.off("beforeChange",We)}}},[Le,en]),(0,oe.useEffect)(()=>{if(Le&&ct){let We=function(){ct(Le.getValue())};return Le.on("blur",We),()=>{Le.off("blur",We)}}},[Le,ct]);function ua(We,Ne){var Te=We.getDoc(),Ie=Te.getCursor(),gt=Te.getLine(Ie.line),Pt=gt.charAt(Ie.ch-1),Bt=gt.lastIndexOf("@\u2581@",Ie.ch),ft=gt.lastIndexOf("@\u2581\u2581@",Ie.ch),yt=Bt>ft?Bt:ft,wt=Bt>ft?3:4;if(zn.indexOf(Pt)===-1)return null;if(console.log("change1:",Ne,We,gt,Ie,yt,Bt,ft,Pt),yt>=0&&Ie.ch-yt<5){var jt=yt+wt;return Te.replaceRange("",{line:Ie.line,ch:yt},{line:Ie.line,ch:jt}),{line:Ie.line,ch:jt}}return null}(0,oe.useEffect)(()=>{if(Le){let We=function(Ne,Te){const Ie=Ne.getValue();sn(Ie),Ft(new Date().getTime()),Ne.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),le&&(zt?le(Ie,ha(Ie)):le(Ie))};return Le.on("change",We),()=>{Le.off("change",We)}}},[Le,le]),(0,oe.useEffect)(()=>{if(Le)if(ue==null)Le.setValue(""),sn("");else{const We=window.scrollY||window.pageYOffset;ue!==Le.getValue()&&(Le.setValue(ue),sn(ue),Le.setCursor(an?1:Le.lineCount(),0),window.scrollTo(0,We))}},[Le,ue]);const jn=(0,oe.useCallback)(We=>{const Ne=Le.getCursor(),Te=Le.getSelection();let Ie=Te.split(`
|
|
`);switch(We){case"bold":return Le.replaceSelection("**"+Te+"**"),Te===""&&Le.setCursor(Ne.line,Ne.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+Te+"*"),Te===""&&Le.setCursor(Ne.line,Ne.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+Te+"`"),Te===""&&Le.setCursor(Ne.line,Ne.ch+1),Le.focus();case"inline-latex":return mt("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+Te+"\n```"),Le.setCursor(Ne.line+1,Te.length+1),Le.focus();case"line-break":return Le.replaceSelection(`<br/>
|
|
`),Le.focus();case"list-ul":return Te===""?Le.replaceSelection("- "+Te):Le.replaceSelection(Ie.map(gt=>gt===""?"":`- ${gt}`).join(`
|
|
`)),Le.focus();case"list-ol":return Te===""?Le.replaceSelection("1. "+Te):Le.replaceSelection(Ie.map((gt,Pt)=>gt===""?"":`${Pt+1}. ${gt}`).join(`
|
|
`)),Le.focus();case"add-null-ch":return Te===""&&Le.setCursor(Ne.line,Ne.ch),Le.replaceSelection(aa),Le.focus();case"add-signal":return Te===""&&Le.setCursor(Ne.line,Ne.ch),Le.replaceSelection(Nn),Le.focus();case"add-multiple":return Te===""&&Le.setCursor(Ne.line,Ne.ch),Le.replaceSelection(zn),Le.focus();case"inster-template-1":return Te===""&&Le.setCursor(Ne.line,Ne.ch),Le.replaceSelection(ga),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return Be(!Ht),Le.focus();case"trigger-full-screen":return Xe(!je),Le.focus();case dn:mt(dn);return;case un:mt(un);return;case mn:mt(mn);return;case Yt:mt(Yt);return;case"maths-latex":mt("maths-latex");return;case Rt:mt(Rt);return;case Sn:mt(Sn);return;default:throw new Error}},[Le,Ht,je]),Wt=(0,oe.useCallback)((We,Ne)=>{var Te,Ie,gt,Pt,Bt,ft;switch(mt(""),Ke){case dn:const{title:Fn,link:Bn}=We;return Le.replaceSelection(`[${Fn}](${Bn})`),Le.focus();case un:const{language:bn,content:pa}=We;return Le.replaceSelection(["```"+bn,pa,"```"].join(`
|
|
`)),Le.focus();case"maths-latex":for(var yt=atob(We),wt=new Uint8Array(yt.length),jt=0;jt<yt.length;jt++)wt[jt]=yt.charCodeAt(jt);var Et=new Blob([wt],{type:"image/png"});(0,fe.I)(Et,kt=>{kt.id?Le.replaceSelection(``):(kt==null?void 0:kt.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Le.replaceSelection("`$$"+We+"$$`");break;case mn:case Yt:case qn:const{src:rn,alt:Kn}=We,pt=Ne,va=(gt=(Ie=(Te=pt==null?void 0:pt.name)==null?void 0:Te.split("."))==null?void 0:Ie.pop)==null?void 0:gt.call(Ie);return((Pt=pt==null?void 0:pt.type)==null?void 0:Pt.indexOf("image"))>-1||!(pt!=null&&pt.type)?pt.align||pt.width?Le.replaceSelection(`<p style="text-align:${pt.align||"initial"}"><img width="${pt.width?pt.width+"%":"initial"}" src="${rn}" alt="${Kn||""}" /></p>`):Le.replaceSelection(`<img width="100%" src="${rn}" alt="${Kn||""}" />`):((Bt=pt==null?void 0:pt.type)==null?void 0:Bt.indexOf("video"))>-1?Le.replaceSelection(`<video width="100%" controls src="${rn}"></video>`):((ft=pt==null?void 0:pt.type)==null?void 0:ft.indexOf("pdf"))>-1?Le.replaceSelection(`<a href="${rn}?type=${pt.type}&disposition=inline" target="_blank">${pt.name}</a>`):Cn.includes(va)?Le.replaceSelection(`<a href="${rn}?type=office&disposition=inline" target="_blank">${pt.name}</a>`):Le.replaceSelection(`[${pt.name}](${rn})`),Le.focus();case Sn:const{row:La,col:$n,align:ya}=We;let xn=`
|
|
`;for(let kt=0;kt<La;kt++){let Un=[],Vn=[];for(let Zn=0;Zn<$n;Zn++)kt===1&&Vn.push(ea[ya]),Un.push(" ");kt===1&&(xn+=`| ${Vn.join(" | ")} |
|
|
`),xn+=`| ${Un.join($n===1?"":" | ")} |
|
|
`}return Le.replaceSelection(xn+`
|
|
`),Le.focus();default:throw new Error}},[Le,Ke]),Sa=(0,oe.useMemo)(()=>{switch(Ke){case dn:return oe.createElement(Ot,{callback:Wt,onCancel:Vt});case un:return oe.createElement(Kt.Z,{callback:Wt,onCancel:Vt});case mn:return oe.createElement(fe.Z,{callback:Wt,onCancel:Vt});case Rt:return oe.createElement($t,{callback:Wt,onCancel:Vt});case Sn:return oe.createElement(bt,{callback:Wt,onCancel:Vt});case"maths-latex":return oe.createElement(Yn,{showSaveButton:!0,callback:Wt});case"inline-latex":return oe.createElement(Qn.Z,{showSaveButton:!0,callback:Wt});default:return null}},[Ke]);function Vt(){mt("")}(0,oe.useEffect)(()=>{if(yn.current){let We=function(Bt){gt=!0,Pt=Bt.pageY},Ne=function(){gt=!1},Te=function(Bt){if(gt){let ft=Bt.pageY-Pt;ft<0&&(ft=0),ft>300&&(ft=300);let yt=ze+ft+"px";Tt(yt)}},Ie=yn.current,gt=!1,Pt=0;return Ie.addEventListener("mousedown",We),document.addEventListener("mousemove",Te),document.addEventListener("mouseup",Ne),()=>{Ie.removeEventListener("mousedown",We),document.removeEventListener("mousemove",Te),document.removeEventListener("mouseup",Ne)}}},[Le,yn]),(0,oe.useEffect)(()=>{Tt(ze)},[ze]);const Pa=An(Se),la=An(xt),sa={width:Pa,height:la},Ga=(0,oe.useMemo)(()=>{if(st){let We=new Date(st),Ne=We.getHours(),Te=We.getMinutes(),Ie=We.getSeconds();return Ne=Ne<10?"0"+Ne:Ne,Te=Te<10?"0"+Te:Te,Ie=Ie<10?"0"+Ie:Ie,`${Ne}:${Te}:${Ie}`}return 0},[st]),ha=We=>{const Ne=[];if(zt){let Te=-1;We=We.replace(/(@▁▁@|@▁@)/g,function(Ie,gt,Pt){Ne.push({multiLine:Ie!==Nn})})}return Ne};function xa(){window.sessionStorage.removeItem(dt),on(!1),Ft(0)}function Ea(){on(!1),Ft(0),Le.setValue(window.sessionStorage.getItem(dt))}(0,oe.useEffect)(()=>{Gn[Ke]&&Ke!==Yt&&Ke!==Rt&&setTimeout(()=>{const We=document.getElementsByClassName("markdown-popup-form")[0],Ne=window.innerWidth/2-We.offsetWidth/2,Te=window.innerHeight/2-We.offsetHeight/2;Rn(Ne),Hn(Te)},0)},[Ke]);const ca=We=>{We.preventDefault();const Ne=We.clientX-On,Te=We.clientY-In;document.body.onmousemove=Ie=>{let gt=Ie.clientX-Ne,Pt=Ie.clientY-Te;const Bt=document.getElementsByClassName("markdown-popup-form")[0],ft=window.innerWidth-Bt.offsetWidth,yt=window.innerHeight-Bt.offsetHeight;gt=Math.max(0,Math.min(gt,ft)),Pt=Math.max(0,Math.min(Pt,yt)),fa(Ie.clientX,Ie.clientY,Ne,Te)&&(Rn(gt),Hn(Pt))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(We,Ne,Te,Ie)=>{const gt=document.body.clientHeight,Pt=document.body.clientWidth;return We<20&&Te>We||We>Pt-20&&Te<We||Ne<20&&Ie>Ne||Ne>gt-20&&Ie<Ne?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:Ln},oe.createElement("div",{className:`markdown-editor-container ${nn} ${Ht?"on-preview":""} ${Ve?"mini":""} ${je?"full-screen":""}`,style:sa},oe.createElement(re,{insertTemp:Je,watch:Ht,fullScreen:je,showNullButton:at,showNullProgramButton:zt,onActionCallback:jn,hidetoolBar:It,extraUse:vn}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:Jt,placeholder:ln})),Ht?oe.createElement("div",{ref:wn,className:"preview-container"},et==="stex"&&oe.createElement(Re,{value:gn}),et!=="stex"&&oe.createElement(Ce.Z,{disabledFill:Gt,showProgramFill:zt,value:gn})):null))),Mt?oe.createElement("a",{ref:yn,className:"editor-resize"}):null,Ke===Yt&&oe.createElement(Ze,{callback:Wt,onCancel:Vt}),Ke===Rt&&oe.createElement($t,{callback:Wt,onCancel:Vt}),oe.createElement(se.Z,null,Gn[Ke]&&Ke!==Yt&&Ke!==Rt?oe.createElement(ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:On,top:In},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:ca},Gn[Ke]),open:!0,onCancel:Vt,footer:null,destroyOnClose:!0,width:Ke===Rt?"1200px":null,height:Ke===Rt?"80vh":null,className:"markdown-popup-form"},Sa):null))}},90443:function(ce,Ue,de){"use strict";de.d(Ue,{Z:function(){return ge},I:function(){return se}});var oe=de(78241),be=de(8591),Oe=de(92832),De=de(81327),he=de(5871),Ge=de(5112),Pe=de(3113),ke=de(88457),we=de(59301),Ee=de(81779),Ce=de(59301),Re=Object.defineProperty,xe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,ve,pe)=>ve in me?Re(me,ve,{enumerable:!0,configurable:!0,writable:!0,value:pe}):me[ve]=pe,E=(me,ve)=>{for(var pe in ve||(ve={}))y.call(ve,pe)&&b(me,pe,ve[pe]);if(a)for(var pe of a(ve))x.call(ve,pe)&&b(me,pe,ve[pe]);return me},z=(me,ve)=>xe(me,ne(ve));const{useForm:ee}=oe.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:me,onCancel:ve})=>{const[pe]=ee();let He=(0,we.useRef)();function ot(qe){He.current.width=pe.getFieldValue("width"),He.current.align=pe.getFieldValue("align"),me(qe,He.current)}function St(qe,nt){if(qe.status===-1){be.ZP.error(qe.message);return}pe.setFieldsValue({src:`/api/attachments/${qe.id}`,type:nt.type})}function tt(qe){let nt=qe.target.files[0];He.current=nt,se(nt,St)}return Ce.createElement(oe.default,z(E({form:pe},ae),{className:"upload-image-panel",onFinish:ot,style:{width:470,overflow:"hidden"}}),Ce.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ce.createElement("div",{className:"flex-container"},Ce.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ce.createElement(Oe.default,{style:te})),Ce.createElement(re,{onFileChange:tt}))),Ce.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ce.createElement(Oe.default,{style:{width:264}})),Ce.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ce.createElement(De.Z,null,Ce.createElement(oe.default.Item,{name:"width",style:{margin:0}},Ce.createElement(he.Z,{style:{width:264}})),Ce.createElement("span",{className:"ml8"},"%"))),Ce.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ce.createElement(Ge.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"}]})),Ce.createElement("aside",null,Ce.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ce.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ce.createElement(Pe.ZP,{type:"default",onClick:ve},"\u53D6\u6D88"))))};function re({onFileChange:me}){return Ce.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ce.createElement("input",{type:"file",onChange:me}))}function se(me,ve){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ee.bg)())throw be.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let pe=new FormData;pe.append("editormd-image-file",me),pe.append("file_param_name","editormd-image-file"),pe.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(ot){ve(JSON.parse(ot.target.responseText),me)},!1),He.addEventListener("error",function(ot){console.error(ot)},!1),He.open("POST",`${ke.KI}/api/attachments.json`),He.send(pe)}},81123:function(ce,Ue,de){"use strict";de.d(Ue,{Z:function(){return Oe}});var oe=de(59301),be=de(4676);class Oe extends oe.Component{constructor(he){super(he);const Ge=window.document;this.node=Ge.createElement("div"),Ge.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,be.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},66991:function(ce,Ue,de){"use strict";de.d(Ue,{Z:function(){return be}});var oe=de(59301);function be(Oe,De){const he=(0,oe.useRef)();(0,oe.useEffect)(()=>{he.current=Oe}),(0,oe.useEffect)(()=>{function Ge(){he.current()}if(De!==null){let Pe=setInterval(Ge,De);return()=>clearInterval(Pe)}},[De])}},65293:function(ce,Ue,de){"use strict";de.r(Ue),de.d(Ue,{default:function(){return me}});var oe=de(59301),be=de(95392),Oe=de(99313),De=de(78241),he=de(43418),Ge=de(92832),Pe=de(88871),ke=de(86342),we={flex_box_center:"flex_box_center___Tn66_",flex_space_between:"flex_space_between___P50q5",flex_box_vertical_center:"flex_box_vertical_center___pL1pq",flex_box_center_end:"flex_box_center_end___dvJxR",flex_box_column:"flex_box_column___rEutz",bg:"bg___QHZnQ",formWrap:"formWrap___izBdR"},Ee=de(81779),Ce=de(63090),Re=de(64179),xe=de(81941),ne=de(59301),a=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ve,pe,He)=>pe in ve?a(ve,pe,{enumerable:!0,configurable:!0,writable:!0,value:He}):ve[pe]=He,te=(ve,pe)=>{for(var He in pe||(pe={}))E.call(pe,He)&&ee(ve,He,pe[He]);if(b)for(var He of b(pe))z.call(pe,He)&&ee(ve,He,pe[He]);return ve},ae=(ve,pe)=>y(ve,x(pe)),ge=(ve,pe,He)=>new Promise((ot,St)=>{var tt=ht=>{try{nt(He.next(ht))}catch(vt){St(vt)}},qe=ht=>{try{nt(He.throw(ht))}catch(vt){St(vt)}},nt=ht=>ht.done?ot(ht.value):Promise.resolve(ht.value).then(tt,qe);nt((He=He.apply(ve,pe)).next())});const{TabPane:re}=Oe.default,se=({shixunsDetail:ve,dispatch:pe,practiceSetting:He})=>{var ot,St;const tt=(0,be.useParams)(),[qe]=De.default.useForm(),[nt,ht]=(0,oe.useState)({}),{challengesNew:vt}=ve,Nt=(0,oe.useRef)(null),{selectQuestionParams:Ct,id:Ot,newQuestion:Kt}=He,[fe,ye]=(0,oe.useState)(!0);(0,oe.useEffect)(()=>{ye(!0),pe({type:"shixunsDetail/getChallengesNew",payload:te({},tt)}),ye(!1)},[tt]);const Ae=(_e,Qe=!1,lt=1)=>ge(void 0,null,function*(){var rt;const At=te({},nt),Dt=!(!_e.unity_3d_routes||_e.unity_3d_routes=="");At.identifier=tt.id,At.st=1;const ut=yield(0,ke.al)(ae(te({},At),{unity_3d_routes:Dt?_e.unity_3d_routes:null,unity_3d:Dt,sync_origin_shixun:Qe}));ut.status===1&&((rt=ve==null?void 0:ve.detail)!=null&&rt.copy_for_exercise&&(0,Ce.m)(pe,ve,tt.id,lt),be.history.replace(`/shixuns/${tt.id}/edit/${ut.challenge_id}/editquestion?tab=2`),setTimeout(()=>{pe({type:"practiceSetting/setParams",payload:{newQuestion:null}}),pe({type:"practiceSetting/setUpdateIndex"})},200))}),Ye=()=>{ie()},Me=_e=>{clearTimeout(Nt.current),Nt.current=setTimeout(()=>{"subject"in _e&&Kt&&pe({type:"practiceSetting/setParams",payload:{newQuestion:{st:1,name:_e==null?void 0:_e.subject}}});const{subject:Qe,task_pass:lt}=qe.getFieldsValue();Qe!==""||lt!==(0,Ce.S)(vt.task_pass_default)?pe({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):pe({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Ze=_e=>{ht(te({},qe.getFieldsValue())),Me(_e)},ie=()=>{var _e;const Qe=()=>{be.history.push(`/shixuns/${Ot}/challenges`),pe({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(_e=He==null?void 0:He.sideBar)!=null&&_e.confirmLeave?he.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Qe()}}):Qe()};return ne.createElement("section",{className:we.bg},ne.createElement(Oe.default,{activeKey:"1"},ne.createElement(re,{tab:"\u672C\u5173\u4EFB\u52A1",key:"1"},ne.createElement(De.default,{form:qe,className:we.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:Ze,onFinish:Ae},ne.createElement("div",{className:we.fieldWrap},ne.createElement(De.default.Item,{initialValue:"",name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},ne.createElement(Ge.default,{bordered:!1,maxLength:60,suffix:`${((ot=nt.subject)==null?void 0:ot.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:we.mdWrap},ne.createElement(De.default.Item,{name:"task_pass",label:"\u8FC7\u5173\u4EFB\u52A1:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u6700\u5927\u9650\u523635000\u4E2A\u5B57\u7B26"}]},ne.createElement(Pe.Z,{watch:!0,defaultValue:vt.task_pass_default}))),(0,Ee.ag)()&&ne.createElement("div",{className:we.fieldWrap},ne.createElement(De.default.Item,{initialValue:"",name:"unity_3d_routes",label:"\u5D4C\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0:"},ne.createElement(Ge.default,{bordered:!1,maxLength:60,suffix:`${((St=nt.unity_3d_routes)==null?void 0:St.length)||0}/60`,placeholder:"\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0\u5730\u5740"}))),ne.createElement(De.default.Item,{noStyle:!0},ne.createElement(Re.t,{okButtonProps:{htmlType:"submit"},className:"customFixedButton",onCancel:Ye}))))),ne.createElement(xe.Z,{loading:fe}))};var me=(0,be.connect)(({shixunsDetail:ve,practiceSetting:pe})=>({shixunsDetail:ve,practiceSetting:pe}))(se)},81941:function(ce,Ue,de){"use strict";de.d(Ue,{Z:function(){return he}});var oe=de(59301),be=de(71418),Oe={loading:"loading___lueiN"},he=({loading:Ge})=>Ge?oe.createElement("div",{className:Oe.loading},oe.createElement(be.Z,null)):oe.createElement(oe.Fragment,null)},63090:function(ce,Ue,de){"use strict";de.d(Ue,{S:function(){return Ge},m:function(){return Pe}});var oe=de(63949),be=de(8591),Oe=de(43418),De=de(59301),he=(ke,we,Ee)=>new Promise((Ce,Re)=>{var xe=y=>{try{a(Ee.next(y))}catch(x){Re(x)}},ne=y=>{try{a(Ee.throw(y))}catch(x){Re(x)}},a=y=>y.done?Ce(y.value):Promise.resolve(y.value).then(xe,ne);a((Ee=Ee.apply(ke,we)).next())});const Ge=ke=>{let we=document.createElement("textarea");return we.value=ke,we.value},Pe=(ke,we,Ee,Ce,Re)=>he(void 0,null,function*(){var xe,ne;const a=yield ke({type:"shixunsDetail/saveCopyForExercise",payload:{id:Ee,save_type:Ce}});Ce===1?((a==null?void 0:a.status)==0&&be.ZP.success("\u4FDD\u5B58\u6210\u529F"),(xe=a==null?void 0:a.data)!=null&&xe.exists_same_shixun_name?ke({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(ne=a==null?void 0:a.data)==null?void 0:ne.shixun_name}}):ke({type:"classroomList/setActionTabs",payload:{}})):(ke({type:"classroomList/setActionTabs",payload:{}}),(a==null?void 0:a.status)===0&&Oe.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:De.createElement("div",null,De.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var y,x;(0,oe.xg)(`/shixuns/${(x=(y=we==null?void 0:we.detail)==null?void 0:y.fork_from)==null?void 0:x.fork_identifier}/challenges`)}}))})}}]);
|