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.
NewEduCoderBuild/p__RestFul__Edit__index.3be...

151 lines
284 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[928],{99587:function(he,$e){"use strict";$e.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function he(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(he.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(he.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(he.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(he.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 he))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 E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var $e=[];function ue(ne,a){var y=$e.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function re(){var ne=$e.pop();return ne===void 0?new go.Point:ne}function Ge(ne){$e.push(ne)}function We(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var ae=ne-y,ge=b-z,oe=NaN,Pe=NaN;if(ae===0)if(ge===0)ne===y&&(oe=ne,Pe=a);else{var de=(x-ee)/ge,ve=x-de*b;oe=ne,Pe=de*oe+ve}else if(ge===0){var ye=(a-E)/ae,Xe=a-ye*ne;oe=b,Pe=ye*oe+Xe}else{var ye=(a-E)/ae,de=(x-ee)/ge,Xe=a-ye*ne,ve=x-de*b;oe=(ve-Xe)/(ye-de),Pe=ye*oe+Xe}return te.x=oe,te.y=Pe,te}function ke(ne,a,y,E,b,x,z,ee,te,ae,ge,oe,Pe,de){var ve=1-te,ye=te,Xe=ne*ve+y*ye,Qe=a*ve+E*ye,dt=y*ve+b*ye,et=E*ve+x*ye,qe=b*ve+z*ye,it=x*ve+ee*ye,Mt=Xe*ve+dt*ye,zt=Qe*ve+et*ye,kt=dt*ve+qe*ye,Nt=et*ve+it*ye,ft=Mt*ve+kt*ye,Ct=zt*ve+Nt*ye;ae.x=Xe,ae.y=Qe,ge.x=Mt,ge.y=zt,oe.x=ft,oe.y=Ct,Pe.x=kt,Pe.y=Nt,de.x=qe,de.y=it}var ce=new go.Spot(.156,.156),_e=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new he("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),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 E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),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 E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*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 E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=_e,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),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,le*a,0,a,(1-le)*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,le*y,(1-le)*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,le*y,le*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-le)*a,0,0,(1-le)*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 he("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new he("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new he("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new he("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new he("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}});var je=[];function Fe(){var ne=je.pop();return ne===void 0?[]:ne}function Ce(ne){ne.length=0,je.push(ne)}function Me(ne){for(var a=Fe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Re(ne){var a=Te(ne),y=Fe();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Ce(a),y}function Te(ne){for(var a=Me(ne),y=Fe(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],ae=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=We(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],Ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=Me(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=Me(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=Me(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=Me(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=Me(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=Me(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=Me(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Te(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Te(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Te(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Te(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Te(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Te(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ce(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new he("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new he("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,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,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new he("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,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())),x.spot1=ce,x.spot2=_e,x.defaultStretch=go.GraphObject.Uniform,x}),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 E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new he("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new he("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=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,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new he("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new he("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new he("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=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 x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),ae=E-Math.min(Math.sin(ee)*E/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,x,.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,x,.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 he("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new he("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new he("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*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,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*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 E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.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 x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.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 x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.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+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var ae=re(),ge=re(),oe=re(),Pe=re();ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,ae,ge,oe,Pe,Pe);var de=re(),ve=re(),ye=re();ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Pe,Pe,ye,de,ve);var Xe=re(),Qe=re(),dt=re();ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Xe,Qe,dt,Pe,Pe);var et=re(),qe=re(),it=re();return ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Pe,Pe,it,et,qe),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,et.x*a,et.y*y,qe.x*a,qe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ae.x*a,ae.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,it.x*a,it.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,dt.x*a,dt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,de.x*a,de.y*y,ve.x*a,ve.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,dt.x*a,dt.y*y,Xe.x*a,Xe.y*y,Qe.x*a,Qe.y*y).close()),Ge(ae),Ge(ge),Ge(oe),Ge(Pe),Ge(de),Ge(ve),Ge(ye),Ge(Xe),Ge(Qe),Ge(dt),Ge(et),Ge(qe),Ge(it),E.defaultStretch=go.GraphObject.Uniform,E}),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 he("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.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 E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=re(),ae=re(),ge=re(),oe=re(),Pe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,oe,ae,te,te),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,ge.x*a,ge.y*y,oe.x*a,oe.y*y));var de=ue(ae.x,ae.y);ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,ae,ge,oe);var ve=ue(ae.x,ae.y);Pe.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.95*.9)*a,de.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,de.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*a,(ve.y*.1+.05*.9)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,ve.x*a,ve.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,oe.x*a,oe.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var ye=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var Xe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Xe),Ge(te),Ge(ae),Ge(ge),Ge(oe),Ge(de),Ge(ve),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*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,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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 E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*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 E=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 E.defaultStretch=go.GraphObject.Uniform,E}),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 E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new he("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new he("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*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,x,z)),ae.add(new go.PathSegment(go.PathSegment.Line,x,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,x,y)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,x/a,1,1,.5,re());return te.spot2=new go.Spot(ge.x,ge.y),Ge(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new he("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new he("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,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,x,z)),ae.add(new go.PathSegment(go.PathSegment.Line,x,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,x,y)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,x/a,1,1,.5,re());return te.spot2=new go.Spot(ge.x,ge.y),Ge(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new he("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),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=We(0,.5,.3,0,0,b/y,.1,b/y,re());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Ge(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new he("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new he("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=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,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var oe=We(0,.5,.3,ee/y,0,x/y,1,x/y,re());return ae.spot1=new go.Spot(oe.x,oe.y),oe=We(.7,te/y,1,.5,0,z/y,1,z/y,oe),ae.spot2=new go.Spot(oe.x,oe.y),Ge(oe),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new he("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),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=We(.7,1,1,.5,0,x/y,1,x/y,re());return z.spot2=new go.Spot(te.x,te.y),Ge(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new he("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new he("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=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,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ae.spot1=new go.Spot(0,x/y);var oe=We(.7,te/y,1,.5,0,z/y,1,z/y,re());return ae.spot2=new go.Spot(oe.x,oe.y),Ge(oe),ae}),go.Shape.setFigureParameter("Pointer",0,new he("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.2,.65,1,.65,0,1,1,.5,re());return b.spot2=new go.Spot(z.x,z.y),Ge(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new he("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=We(0,.65,1,.65,0,1,1,.5,re());return b.spot2=new go.Spot(z.x,z.y),Ge(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new he("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),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=We(.7,1,1,.5,0,x/y,1,x/y,re());return z.spot2=new go.Spot(te.x,te.y),Ge(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new he("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),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=We(.7,1,1,.5,0,x/y,1,x/y,re());return z.spot2=new go.Spot(te.x,te.y),Ge(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new he("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.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 x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.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 x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.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 x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.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 x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.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 x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,ae=.1,ge=new go.PathFigure(te*a,(ae+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,ae*y,(te-z)*a,(ae+x)*y,(te-b)*a,(ae+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-x)*y,(te-b)*a,(ae-ee)*y,(te-z)*a,(ae-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,ae*y,(te+z)*a,(ae-x)*y,(te+b)*a,(ae-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+x)*y,(te+b)*a,(ae+ee)*y,(te+z)*a,(ae+x)*y));var oe=.05,Pe=le*oe;te=.05,ae=.25;var de=new go.PathFigure(.5*a,.2*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,ae=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,(te+oe)*a,ae*y,(te+Pe)*a,(ae-oe)*y,(te+oe)*a,(ae-Pe)*y)),de.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),de.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),de.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),oe=.025,Pe=le*oe,te=.825,ae=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te+oe)*a,(ae-Pe)*y,(te+Pe)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-oe)*a,ae*y,(te-Pe)*a,(ae-oe)*y,(te-oe)*a,(ae-Pe)*y)),de.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),de.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),de.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),oe=.05,Pe=le*oe,te=.5,ae=.7,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te+oe)*a,(ae-Pe)*y,(te+Pe)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-oe)*a,ae*y,(te-Pe)*a,(ae-oe)*y,(te-oe)*a,(ae-Pe)*y)),de.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),oe=.025,Pe=le*oe,te=.175,ae=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te+oe)*a,(ae-Pe)*y,(te+Pe)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-oe)*a,ae*y,(te-Pe)*a,(ae-oe)*y,(te-oe)*a,(ae-Pe)*y)),de.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),de.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),de.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),oe=.05,Pe=le*oe,te=.05,ae=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te-oe)*a,(ae-Pe)*y,(te-Pe)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new he("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.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 x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*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+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*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+x)*a,0,a,(.2-x)*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+x)*y,(.8+x)*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-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.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 x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);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());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.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((x+b)*a,(x+b)*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ae.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.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 x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+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)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.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 x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.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 x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.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 E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var 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,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.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 E.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)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.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+x)*a,ee*y,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,ae=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*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-x)*y));var oe=new go.PathFigure((te+ee)*a,ae*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y,(te+z)*a,(ae+ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,ae*y,(te-z)*a,(ae+ee)*y,(te-ee)*a,(ae+z)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y,(te-z)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,ae*y,(te+z)*a,(ae-ee)*y,(te+ee)*a,(ae-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.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);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.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 E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.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)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,ae=.5,ge=(b-a)/2,oe=(x-y)/2,Pe=new go.PathFigure(te*a+ge,(ae+ee)*y+oe,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,ae*y+oe,(te-z)*a+ge,(ae+ee)*y+oe,(te-ee)*a+ge,(ae+z)*y+oe)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+oe,(te-ee)*a+ge,(ae-z)*y+oe,(te-z)*a+ge,(ae-ee)*y+oe)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,ae*y+oe,te*a+ge,(ae-ee)*y+oe,(te-ee+z*.5)*a+ge,(ae-z)*y+oe)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+oe,(te-ee+z*.5)*a+ge,(ae+z)*y+oe,te*a+ge,(ae+ee)*y+oe).close()),z=le*.4,ee=.4,te=.2,ae=.5;var de=new go.PathFigure(te*a+ge,(ae+ee)*y+oe,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,ae*y+oe,(te-z)*a+ge,(ae+ee)*y+oe,(te-ee)*a+ge,(ae+z)*y+oe)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+oe,(te-ee)*a+ge,(ae-z)*y+oe,(te-z)*a+ge,(ae-ee)*y+oe)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,ae*y+oe,te*a+ge,(ae-ee)*y+oe,(te-ee+z*.5)*a+ge,(ae-z)*y+oe)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+oe,(te-ee+z*.5)*a+ge,(ae+z)*y+oe,te*a+ge,(ae+ee)*y+oe).close()),z=le*.2,ee=.2,te=.5,ae=.5;var ve=new go.PathFigure((te-ee)*a+ge,ae*y+oe,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+oe,(te-ee)*a+ge,(ae-z)*y+oe,(te-z)*a+ge,(ae-ee)*y+oe)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,ae*y+oe,(te+z)*a+ge,(ae-ee)*y+oe,(te+ee)*a+ge,(ae-z)*y+oe)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+oe,(te+ee)*a+ge,(ae+z)*y+oe,(te+z)*a+ge,(ae+ee)*y+oe)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,ae*y+oe,(te-z)*a+ge,(ae+ee)*y+oe,(te-ee)*a+ge,(ae+z)*y+oe)),z=le*.4,ee=.4,te=.8,ae=.5;var ye=new go.PathFigure(te*a+ge,(ae-ee)*y+oe,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,ae*y+oe,(te+z)*a+ge,(ae-ee)*y+oe,(te+ee)*a+ge,(ae-z)*y+oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+oe,(te+ee)*a+ge,(ae+z)*y+oe,(te+z)*a+ge,(ae+ee)*y+oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,ae*y+oe,te*a+ge,(ae+ee)*y+oe,(te+ee-z*.5)*a+ge,(ae+z)*y+oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+oe,(te+ee-z*.5)*a+ge,(ae-z)*y+oe,te*a+ge,(ae-ee)*y+oe).close()),z=le*.8,ee=.8,te=1,ae=.5;var Xe=new go.PathFigure(te*a+ge,(ae-ee)*y+oe,!0);return E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,ae*y+oe,(te+z)*a+ge,(ae-ee)*y+oe,(te+ee)*a+ge,(ae-z)*y+oe)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae+ee)*y+oe,(te+ee)*a+ge,(ae+z)*y+oe,(te+z)*a+ge,(ae+ee)*y+oe)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,ae*y+oe,te*a+ge,(ae+ee)*y+oe,(te+ee-z*.5)*a+ge,(ae+z)*y+oe)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(ae-ee)*y+oe,(te+ee-z*.5)*a+ge,(ae-z)*y+oe,te*a+ge,(ae-ee)*y+oe).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.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 x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=re(),ae=re(),ge=re(),oe=re();ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,ae,ge,oe);var Pe=ue(ae.x,ae.y),de=new go.PathFigure(ae.x*a,ae.y*y,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,oe.x*a,oe.y*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ke(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,oe,ae,te,te),de.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,ge.x*a,ge.y*y,oe.x*a,oe.y*y)),b=le*.3,x=.3,ke(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,oe,ae,te,te),de.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,ae,ge,oe),de.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y).close());var de=new go.PathFigure(.45*a,0,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Ge(te),Ge(ae),Ge(ge),Ge(oe),Ge(Pe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(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 x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.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()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.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()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,ge=1,oe=.5,Pe=.5,de=0,ve=new go.PathFigure(te*a,(1-ae)*y,!1);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,oe*y,ge*a,.7*y,ge*a,oe*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+x)*a,(de+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ve.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.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 x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.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)),oe=ge*.5,Pe=z,de=z,ve=ge*Pe,ye=ge*de;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Pe)*a,te*y,(ee-(ve+Pe)/2)*a,(te+(de+ye)/2)*y,(ee-Pe)*a,(te+ye)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-de)*y,(ee-Pe)*a,(te-ye)*y,(ee-ve)*a,(te-de)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Pe)*a,te*y,(ee+ve)*a,(te-de)*y,(ee+Pe)*a,(te-ye)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Pe)*a,(te+ye)*y,(ee+(ve+Pe)/2)*a,(te+(de+ye)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Xe=new go.PathFigure(.2*a,y,!1);E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Qe=new go.PathFigure(.8*a,y,!1);return E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.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 x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.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 x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*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)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.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 x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.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 x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.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 x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.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 x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,ae=.9,ge=new go.PathFigure((te-z)*a,ae*y,!0);E.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=le*.1,te=.8,ae=.9;var oe=new go.PathFigure((te-z)*a,ae*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),oe.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()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,ae=le*.1,ge=.1,oe=.9,Pe=new go.PathFigure((ge-te)*a,oe*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(oe-te)*y,(ge-te)*a,(oe-ae)*y,(ge-ae)*a,(oe-te)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,oe*y,(ge+ae)*a,(oe-te)*y,(ge+te)*a,(oe-ae)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(oe+te)*y,(ge+te)*a,(oe+ae)*y,(ge+ae)*a,(oe+te)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,oe*y,(ge-ae)*a,(oe+te)*y,(ge-te)*a,(oe+ae)*y)),te=.1,ae=le*.1,ge=.4,oe=.9;var de=new go.PathFigure((ge-te)*a,oe*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(oe-te)*y,(ge-te)*a,(oe-ae)*y,(ge-ae)*a,(oe-te)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,oe*y,(ge+ae)*a,(oe-te)*y,(ge+te)*a,(oe-ae)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(oe+te)*y,(ge+te)*a,(oe+ae)*y,(ge+ae)*a,(oe+te)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,oe*y,(ge-ae)*a,(oe+te)*y,(ge-te)*a,(oe+ae)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.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 x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.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,oe=le*.05,Pe=.175,de=.95,ee=new go.PathFigure((Pe-ge)*a,de*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de-ge)*y,(Pe-ge)*a,(de-oe)*y,(Pe-oe)*a,(de-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,de*y,(Pe+oe)*a,(de-ge)*y,(Pe+ge)*a,(de-oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de+ge)*y,(Pe+ge)*a,(de+oe)*y,(Pe+oe)*a,(de+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,de*y,(Pe-oe)*a,(de+ge)*y,(Pe-ge)*a,(de+oe)*y));var ge=.05,oe=le*.05,Pe=.375,de=.95,te=new go.PathFigure((Pe-ge)*a,de*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de-ge)*y,(Pe-ge)*a,(de-oe)*y,(Pe-oe)*a,(de-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,de*y,(Pe+oe)*a,(de-ge)*y,(Pe+ge)*a,(de-oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de+ge)*y,(Pe+ge)*a,(de+oe)*y,(Pe+oe)*a,(de+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,de*y,(Pe-oe)*a,(de+ge)*y,(Pe-ge)*a,(de+oe)*y));var ge=.05,oe=le*.05,Pe=.625,de=.95,ae=new go.PathFigure((Pe-ge)*a,de*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de-ge)*y,(Pe-ge)*a,(de-oe)*y,(Pe-oe)*a,(de-ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,de*y,(Pe+oe)*a,(de-ge)*y,(Pe+ge)*a,(de-oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de+ge)*y,(Pe+ge)*a,(de+oe)*y,(Pe+oe)*a,(de+ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,de*y,(Pe-oe)*a,(de+ge)*y,(Pe-ge)*a,(de+oe)*y));var ge=.05,oe=le*.05,Pe=.825,de=.95,ve=new go.PathFigure((Pe-ge)*a,de*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de-ge)*y,(Pe-ge)*a,(de-oe)*y,(Pe-oe)*a,(de-ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,de*y,(Pe+oe)*a,(de-ge)*y,(Pe+ge)*a,(de-oe)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(de+ge)*y,(Pe+ge)*a,(de+oe)*y,(Pe+oe)*a,(de+ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,de*y,(Pe-oe)*a,(de+ge)*y,(Pe-ge)*a,(de+oe)*y).close());var ye=new go.PathFigure(0,y,!1);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.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=le*.05,ae=.35,ge=.775,oe=new go.PathFigure((ae-ee)*a,ge*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge-ee)*y,(ae-ee)*a,(ge-te)*y,(ae-te)*a,(ge-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,ge*y,(ae+te)*a,(ge-ee)*y,(ae+ee)*a,(ge-te)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge+ee)*y,(ae+ee)*a,(ge+te)*y,(ae+te)*a,(ge+ee)*y)),oe.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()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var ae=new go.PathFigure(0,.7*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var ae=new go.PathFigure(.15*a,.5*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*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)),E}),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 E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),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 E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),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 E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.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 x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.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()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.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 x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.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 x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,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 E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.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 x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),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 E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.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 x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),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()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.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()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.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 x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var he={},$e="5.0",ue={},re=null,Ge=!1,We=!1,ke=null,ce=!1,_e=null,le=null,je=0;je<arguments.length;je++){var Fe=arguments[je];if(Fe!==null)switch(typeof Fe){case"number":$e=Fe.toFixed(1);break;case"string":Fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?$e=Fe:ke=Fe;break;case"object":typeof Fe.is3D!="undefined"?re=Fe:ue=Fe;break;case"boolean":Ge=Fe,We=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ue.material_id!==void 0&&!We&&(Ge=!0)),ke!==null&&ue.id===void 0&&(ue.id=ke);var Ce="",Me="",Re=!1,Te=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ue.height!==void 0&&(ue.height=Math.round(ue.height)),ue.width!==void 0&&(ue.width=Math.round(ue.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};he.setHTML5Codebase=function(fe,Le){le=fe,Nt(fe,Le)},he.setJavaCodebase=he.setJavaCodebaseVersion=he.isCompiledInstalled=he.setPreCompiledScriptPath=he.setPreCompiledResourcePath=function(){},he.setHTML5CodebaseVersion=function(fe,Le){var ze=parseFloat(fe);if(ze!==NaN&&ze<5){console.log("The GeoGebra HTML5 codebase version "+ze+" is deprecated. Using version latest instead.");return}_e=fe,kt(fe,Le)},he.getHTML5CodebaseVersion=function(){return ne},he.getParameters=function(){return ue},he.setFontsCSSURL=function(fe){z=fe},he.setGiacJSURL=function(fe){},he.setJNLPFile=function(fe){Ce=fe},he.setJNLPBaseDir=function(fe){},he.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Le="auto",ze=ue.id,Ye,be=!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)$/)?Le=ie:ze=arguments[Ze]):typeof ie=="boolean"?be=ie:ie instanceof HTMLElement&&(Ye=ie)}Ae();function Ae(){if(!ce){setTimeout(Ae,200);return}Le=Mt(Le);var nt=Ye||document.getElementById(ze);if(!nt){console.log("possibly bug on ajax loading? ");return}if(he.removeExistingApplet(nt,!1),ue.width===void 0&&nt.clientWidth&&(ue.width=nt.clientWidth),ue.height===void 0&&nt.clientHeight&&(ue.height=nt.clientHeight),!(ue.width&&ue.height)&&Le==="html5"&&(delete ue.width,delete ue.height),Te=Le,Le==="screenshot")Qe(nt,ue);else{var pt=!1;ue.hasOwnProperty("playButton")&&ue.playButton||ue.hasOwnProperty("clickToLoad")&&ue.clickToLoad?pt=!0:ue.hasOwnProperty("playButtonAutoDecide")&&ue.playButtonAutoDecide&&(pt=(!ae()||fe())&&ge()),pt?(Te="screenshot",et(nt,ue,be,Le)):Xe(nt,ue,be)}}};function ae(){try{return window.self!==window.top}catch(fe){return!0}}function ge(){return ue.hasOwnProperty("screenshotGenerator")&&ue.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}he.getViews=function(){return re},he.isJavaInstalled=function(){return!1};var oe=function(fe){var Le=function(Ze){var ie=JSON.parse(Ze),Ae=function(rt){return rt.type=="G"||rt.type=="E"},nt=ie.elements?ie.elements.filter(Ae)[0]:ie;if(!nt||!nt.url){ze();return}ue.fileName=nt.url,Pe(nt.settings||{}),re.is3D=!0;var pt="https://www.geogebra.org/images/";he.setPreviewImage(E||nt.previewUrl,pt+"GeoGebra_loading.png",pt+"applet_play.png"),fe()},ze=function(){ue.onError&&ue.onError(),ft("Error: Fetching material (id "+ue.material_id+") failed.",ue)},Ye=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",be="/materials/"+ue.material_id+"?scope=basic";de("https://"+Ye+"/api/proxy.php?path="+encodeURIComponent(be),Le,ze)};function Pe(fe){var Le=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ze){fe[ze]=!!fe[ze]}),Le.forEach(function(ze){ue[ze]===void 0&&fe[ze]!==void 0&&(ue[ze]=fe[ze])}),ue.showToolBarHelp===void 0&&(ue.showToolBarHelp=ue.showToolBar)}function de(fe,Le,ze){var Ye=new XMLHttpRequest;Ye.open("GET",fe),Ye.onload=function(){Le(Ye.responseText)},Ye.onerror=ze,Ye.send()}he.isHTML5Installed=function(){return!0},he.getLoadedAppletType=function(){return Te},he.setPreviewImage=function(fe,Le,ze){E=fe,b=Le,x=ze},he.removeExistingApplet=function(fe,Le){var ze;typeof fe=="string"&&(fe=document.getElementById(fe)),Te=null;var Ye=null;for(ze=0;ze<fe.childNodes.length;ze++){var be=fe.childNodes[ze],Ze=be.className;Ze==="applet_screenshot"?Le?(be.style.display="block",Te="screenshot"):be.style.display="none":Ze!=="applet_scaler prerender"&&(fe.removeChild(be),Ye=Ze&&Ze.indexOf("appletParameters")!=-1?be.id:null,ze--)}var ie=ue.id!==void 0?ue.id:Ye,Ae=window[ie];Ae&&typeof Ae.getBase64=="function"&&(Ae.remove(),window[ie]=null)},he.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=he.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},he.startAnimation=function(){var fe=he.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},he.stopAnimation=function(){var fe=he.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},he.getAppletObject=function(){var fe=ue.id!==void 0?ue.id:"ggbApplet";return window[fe]},he.resize=function(){};var ve=function(fe,Le,ze){var Ye=document.createElement("param");Ye.setAttribute("name",Le),Ye.setAttribute("value",ze),fe.appendChild(Ye)},ye=function(fe){return fe&&fe!=="false"},Xe=function(fe,Le,ze){te(ne)<=4.2&&(ze=!0);var Ye=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ye=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var be=document.createElement("div");be.classList.add("appletParameters","notranslate");var Ze=Le.width,ie=Le.height;if(Le.disableAutoScale=Le.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Le.disableAutoScale,Le.width!==void 0)if(te(ne)<=4.4)ye(Le.showToolBar)&&(Le.height-=7),ye(Le.showAlgebraInput)&&(Le.height-=37),Le.width<605&&ye(Le.showToolBar)&&(Le.width=605,Ze=605);else{var Ae=100;(ye(Le.showToolBar)||ye(Le.showMenuBar))&&(Le.hasOwnProperty("customToolBar")&&(Le.customToolbar=Le.customToolBar),Ae=ye(Le.showMenuBar)?245:155),Ze<Ae&&(Le.width=Ae,Ze=Ae)}be.style.border="none",be.style.display="inline-block";for(var nt in Le)Le.hasOwnProperty(nt)&&nt!=="appletOnLoad"&&be.setAttribute("data-param-"+nt,Le[nt]);z&&be.setAttribute("data-param-fontscssurl",z),he.resize=function(){GGBAppletUtils.responsiveResize(fe,Le)},window.addEventListener("resize",function(Bt){he.resize()});var pt=typeof Le.appletOnLoad=="function"?Le.appletOnLoad:function(){};if(!ze&&Le.width!==void 0){Le.hasOwnProperty("showSplash")||be.setAttribute("data-param-showSplash","false");var rt=fe.querySelector(".applet_scaler.prerender"),$t=rt!==null;if($t)var Zt=rt.querySelector(".ggb_preview");else{var Zt=it(Ze,ie,Le.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?(Le.appletOnLoad=function(Bt){var xt=fe.querySelector(".ggb_preview");xt&&xt.parentNode.removeChild(xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(rt),window.GGBT_wsf_view&&$(window).trigger("resize"),pt(Bt)},$t||rt.appendChild(Zt)):be.appendChild(Zt),rt.appendChild(be),$t||fe.appendChild(rt),setTimeout(function(){he.resize()},1)}else{var Pt=document.createElement("div");Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.appendChild(be),fe.appendChild(Pt),Le.appletOnLoad=function(Bt){he.resize(),pt(Bt)}}function hn(Bt,xt){xt&&typeof xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,xt.appletOnLoad):renderGGBElement(Bt),ft("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",xt)}function cn(Bt,xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:xt}),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,xt)}if(Ye){scriptLoadStarted=!0;for(var jt=0;jt<be.childNodes.length;jt++){var Xt=be.childNodes[jt].tagName;Xt==="TABLE"&&(be.removeChild(be.childNodes[jt]),jt--)}if(ggbHTML5LoadedScript!==null){var Vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Vt!=null&&Vt.parentNode.removeChild(Vt)}var qt=document.createElement("script"),Kt=function(){cn(be,Le)};qt.src=Me+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=qt.src,ft("GeoGebra HTML5 codebase loaded: '"+Me+"'.",Le),!le&&(!_e||_e=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Kt()):Me.requirejs?__webpack_require__.e(7963).then(function(){var Bt=[__webpack_require__(87963)];Kt.apply(null,Bt)}.bind(this)).catch(__webpack_require__.oe):(qt.onload=Kt,fe.appendChild(qt))}else cn(be,Le);Le.height=ie,Le.width=Ze},Qe=function(fe,Le,ze){var Ye=it(Le.width,Le.height,Le.borderColor,ze),be=document.createElement("div");be.style.position="relative",be.style.display="block",be.style.width=Le.width+"px",be.style.height=Le.height+"px",be.className="applet_screenshot applet_scaler"+(ze?" applet_screenshot_play":""),be.appendChild(Ye);var Ze=GGBAppletUtils.getScale(Le,fe,ze);ze?(fe.appendChild(qe()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(be,"66%"),fe.appendChild(be),Ze!==1&&!isNaN(Ze)&&(GGBAppletUtils.scaleElement(be,Ze),be.style.width=Le.width+"px",be.style.height=Le.height+"px",be.parentNode.style.width=Le.width*Ze+"px",be.parentNode.style.height=Le.height*Ze+"px"),he.resize=function(){dt(fe,Ye,be,ze)},window.addEventListener("resize",function(ie){he.resize()}),he.resize()};function dt(fe,Le,ze,Ye){if(fe.contains(Le)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var be=GGBAppletUtils.getScale(ue,fe,Ye);ze.parentNode!==null&&(!isNaN(be)&&be!==1?(GGBAppletUtils.scaleElement(ze,be),ze.parentNode.style.width=ue.width*be+"px",ze.parentNode.style.height=ue.height*be+"px"):(GGBAppletUtils.scaleElement(ze,1),ze.parentNode.style.width=ue.width+"px",ze.parentNode.style.height=ue.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()}}he.onExitFullscreen=function(fe,Le){Le.appendChild(fe)};var et=function(fe,Le,ze,Ye){Qe(fe,Le,!0);for(var be=function(){var Ae=[];for(ie=0;ie<fe.childNodes.length;ie++)Ae.push(fe.childNodes[ie]);if(window.GGBT_wsf_view){var nt=window.GGBT_wsf_view.renderFullScreen(fe,Le.id),pt=document.getElementById("fullscreencontainer"),rt=jQuery(fe).find(".fullscreencontent");rt.length>0?(nt.remove(),rt.attr("id","fullscreencontent").show(),jQuery(pt).append(rt),window.dispatchEvent(new Event("resize"))):Xe(nt,Le,!1),window.GGBT_wsf_view.launchFullScreen(pt)}else Te=Ye,Xe(fe,Le,!1);if(!window.GGBT_wsf_view)for(ie=0;ie<Ae.length;ie++)fe.removeChild(Ae[ie])},Ze=fe.getElementsByClassName("ggb_preview_play"),ie=0;ie<Ze.length;ie++)Ze[ie].addEventListener("click",be,!1),Ze[ie].addEventListener("ontouchstart",be,!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 Le='.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");}',ze=document.createElement("style");ze.styleSheet?ze.styleSheet.cssText=Le:ze.appendChild(document.createTextNode(Le)),document.getElementsByTagName("head")[0].appendChild(ze)}return fe},it=function(fe,Le,ze,Ye){var be=document.createElement("div");be.className="ggb_preview",be.style.position="absolute",be.style.zIndex="90",be.style.width=fe-2+"px",be.style.height=Le-2+"px",be.style.top="0px",be.style.left="0px",be.style.overflow="hidden",be.style.backgroundColor="white";var Ze="lightgrey";ze!==void 0&&(ze==="none"?Ze="transparent":Ze=ze),be.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",E!==null&&ie.setAttribute("src",E),ie.style.opacity=.7,b!==null){var Ae,nt,pt;if(!Ye){Ae=document.createElement("img"),Ae.style.position="absolute",Ae.style.zIndex="1001",Ae.style.opacity=1,ie.style.opacity=.3,nt=360,nt>fe/4*3&&(nt=fe/4*3),pt=nt/5.8,Ae.setAttribute("src",b),Ae.setAttribute("width",nt),Ae.setAttribute("height",pt);var rt=(fe-nt)/2,$t=(Le-pt)/2;Ae.style.left=rt+"px",Ae.style.top=$t+"px",be.appendChild(Ae)}}return be.appendChild(ie),be},Mt=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},zt=["web","webSimple","web3d","tablet","tablet3d","phone"],kt=function(fe,Le){if(ne=fe,Le){Nt(ne,!0);return}var ze=!Ge;if(ze){var Ye=te(ne);!isNaN(Ye)&&Ye<4.4&&(ze=!1)}var be,Ze;window.location.protocol.substr(0,4)==="http"?be=window.location.protocol:be="http:";var ie=ne.indexOf("//");ie>0?Ze=ne:ie===0?Ze=be+ne:Ze="https://www.geogebra.org/apps/5.2.814.0/";for(var Ae in zt)if(ne.slice(zt[Ae].length*-1)===zt[Ae]||ne.slice((zt[Ae].length+1)*-1)===zt[Ae]+"/"){Nt(Ze,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ze&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!ye(ue.showToolBar)&&!ye(ue.showMenuBar)&&!ye(ue.showAlgebraInput)&&!ye(ue.enableRightClick)&&(!ue.appName||ue.appName=="classic")?Ze+="webSimple/":Ze+="web3d/",Nt(Ze,!1)},Nt=function(fe,Le){if(fe.requirejs){Me=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Me=fe,Le===null&&(Le=fe.indexOf("http")===-1),Re=Le,a="web.nocache.js",y=!1;var ze=Me.split("/");ze.length>1&&(!Le&&ze[ze.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):zt.indexOf(ze[ze.length-2])>=0&&(a=ze[ze.length-2]+".nocache.js")),ze=fe.split("/"),ne=ze[ze.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."),kt("5.0",Le))},ft=function(fe,Le){window.console&&window.console.log&&(!Le||typeof Le.showLogging=="undefined"||Le.showLogging&&Le.showLogging!=="false")&&console.log(fe)};ue.material_id!==void 0?oe(Ct):Ct();function Ct(){var fe=$e;_e!==null?fe=_e:parseFloat(fe)<5&&(fe="5.0"),kt(fe,!1),le!==null&&Nt(le,Re),ce=!0}return he},GGBAppletUtils=function(){"use strict";function he(){return window.GGBT_wsf_edit!==void 0}function $e(ce,_e){_e!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+_e+","+_e+")",ce.style.webkitTransform="scale("+_e+","+_e+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function ue(ce,_e,le,je,Fe,Ce){var Me=null;if(Ce!=null&&Ce!="")for(var Re=ce.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Ce+" ")>-1){Me=Re;break}else Re=Re.parentNode;var Te=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(Me)Te=Me.offsetWidth,ne=Math.max(je?Me.offsetWidth:0,Me.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Te):(Te=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Te&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(E=Te-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((le===void 0||!le)&&_e>0&&_e+y<Te?Te=_e:Te-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ne-=x)),{width:Te,height:ne}}function re(ce,_e,le,je,Fe){if(ce.isScreenshoGenerator)return 1;var Ce=je!==void 0&&je,Me=ce.noScaleMargin!=null&&ce.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},Te=Re(ce.autoHeight),ne=ue(_e,ce.width,le,Te,Ce&&window.GGBT_wsf_view||Me,Fe),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=_e.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ce?1:ne.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Ge(ce,_e,le){var je=1,Fe,Ce=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ce=ce.allowUpscale),ce.hasOwnProperty("scale")&&(je=parseFloat(ce.scale),(isNaN(je)||je===null||je===0)&&(je=1),je>1&&(Ce=!0)),_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Fe=re(ce,_e,Ce,le,ce.scaleContainerClass);else return je;return Ce&&(!ce.hasOwnProperty("scale")||je===1)?Fe:Math.min(je,Fe)}function We(ce){var _e=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),je=ce.getBoundingClientRect(),Fe=(_e-je.width)/2,Ce=(le-je.height)/2;Ce<0&&(Ce=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?ce.style.left="40px":ce.style.left=Fe+"px",ce.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?ce.style.top="40px":ce.style.top=Ce+"px",ce.style.left=Fe+"px")}function ke(ce,_e){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var je=Ge(_e,ce);he()&&le.setAttribute("data-param-scale",je);for(var Fe=null,Ce=0;Ce<ce.childNodes.length;Ce++)if(ce.childNodes[Ce].className!==void 0&&ce.childNodes[Ce].className.match(/^applet_scaler/)){Fe=ce.childNodes[Ce];break}if(Fe!==null&&Fe.querySelector(".noscale")!==null)return;var Me=_e.id!==void 0?_e.id:"ggbApplet",Re=window[Me];(Re==null||!Re.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(je)&&je!==1?(Fe.parentNode.style.width=_e.width*je+"px",Fe.parentNode.style.height=_e.height*je+"px",$e(Fe,je)):($e(Fe,1),Fe.parentNode.style.width=_e.width+"px",Fe.parentNode.style.height=_e.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:he,positionCenter:We,getScale:Ge,scaleElement:$e}}();__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 he=n.location.search;return he.indexOf(J)!=-1||he.indexOf(K)!=-1}function q(he,$e){}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(he){var $e=s[L].bindings;s[L].bindings=function(){for(var ue=$e?$e():{},re=he[webModule.__softPermutationId],Ge=O;Ge<re.length;Ge++){var We=re[Ge];ue[We[O]]=We[P]}return ue}};var t;function u(){return v(),t}function v(){if(!t){var he=o.createElement(Q);if(he.id=L,he.style.cssText=R+S,he.tabIndex=-1,o.body.appendChild(he),t=he.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var $e=document.compatMode==U?V:W;t.write($e+X),t.close()}}}function w(he){function $e(re){function Ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=Ge();if(We){re();return}function ke(){if(!We){if(!Ge())return;We=!0,re(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var ce=setInterval(function(){ke()},$)}function ue(re){var Ge=u(),We=Ge.body,ke=Ge.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=re,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),We.appendChild(ke)}$e(function(){ue(he)})}webModule.__startLoadingFragment=function(he){return C(he)},webModule.__installRunAsyncCode=function(he){var $e=u(),ue=$e.body,re=$e.createElement(_);re.language=ab,re.text=he,ue.appendChild(re),ue.removeChild(re)};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(he){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(he){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(he){var $e=c[he];return $e==null?null:$e},r=d,webModule.__errFn=e}function B(){function he(ce){var _e=ce.lastIndexOf(rb);_e==-1&&(_e=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var je=ce.lastIndexOf(tb,Math.min(le,_e));return je>=O?ce.substring(O,je+P):W}function $e(ce){if(!ce.match(/^\w+:\/\//)){var _e=o.createElement(ub);_e.src=ce+vb,ce=he(_e.src)}return ce}function ue(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function re(){for(var ce=o.getElementsByTagName(_),_e=O;_e<ce.length;++_e)if(ce[_e].src.indexOf(xb)!=-1)return he(ce[_e].src);return W}function Ge(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function We(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var ke=ue();return ke==W&&(ke=re()),ke==W&&(ke=Ge()),ke==W&&We()&&(ke=he(o.location.href)),ke=$e(ke),ke}function C(he){return he.match(/^\//)||he.match(/^[a-zA-Z]+:\/\//)?he:webModule.__moduleBase+he}function D(){var he=[],$e=O,ue=[],re=[];function Ge(ce){var _e=re[ce](),le=ue[ce];if(_e in le)return _e;var je=[];for(var Fe in le)je[le[Fe]]=Fe;throw r&&r(ce,je,_e),null}if(__gwt_isKnownPropertyValue=function(ce,_e){return _e in ue[ce]},webModule.__getPropMap=function(){var ce={};for(var _e in ue)ue.hasOwnProperty(_e)&&(ce[_e]=Ge(_e));return ce},webModule.__computePropValue=Ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var ke=We.indexOf(Db);ke!=-1&&($e=parseInt(We.substring(ke+P),$),We=We.substring(O,ke))}catch(ce){}return webModule.__softPermutationId=$e,C(We+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})()},46699:function(he,$e,ue){"use strict";ue.d($e,{Ax:function(){return ke},Ds:function(){return ce},KI:function(){return le},SI:function(){return We},f1:function(){return Ge}});var re=ue(346);function Ge(je){let Fe=!0;if(je.length>0){for(let Ce=0;Ce<je.length;Ce++)if(je[Ce].compile_success==0||!je[Ce].compile_success){Fe=!1;break}}else Fe=!1;return Fe}function We(je,Fe=""){let Ce=[];for(let Me=0;Me<je.length;Me++){let Re=je[Me],Te=Fe?`${Fe}/${Re.name}`:`${Re.name}`;Ce.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:Te})}return Ce}function ke(je,Fe,Ce){for(let Me=0;Me<je.length;Me++){let Re=je[Me];if(Re.key===Fe){Re.children=Ce;break}Re.children&&ke(Re.children,Fe,Ce)}return je}function ce(je,Fe,Ce){let Me;return function(){let Re=this,Te=arguments,ne=function(){Me=null,Ce||je.apply(Re,Te)},a=Ce&&!Me;clearTimeout(Me),Me=setTimeout(ne,Fe),a&&je.apply(Re,Te)}}const _e=!0,le=re.Z.API_SERVER},9507:function(he,$e,ue){"use strict";ue.d($e,{Z:function(){return Me}});var re=ue(59301),Ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=ue(92310),ke=ue.n(We),ce=ue(71418),_e=ue(2859),le=ue(38986),je=ue(51257),Fe=(Re,Te,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Re,Te)).next())}),Me=({data:Re,className:Te,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,re.useRef)(null),ee=(0,re.useRef)(null),te=(0,re.useRef)(null),ae=(0,re.useRef)(null),[ge,oe]=(0,re.useState)(!1),[Pe,de]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.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=()=>Fe(void 0,null,function*(){oe(!0),de("\u6B63\u5728\u52A0\u8F7D\u4E2D");const et=yield(0,je.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=et,z.current.onload=function(){dt()},oe(!1),de("")}),ye=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},Xe=et=>Fe(void 0,null,function*(){oe(!0),de("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:et.dataUrl}});qe!=null&&qe.id&&!x?(yield(0,le.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(et.state)}})).status===0&&E():qe!=null&&qe.id&&E(qe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",oe(!1),de("")}),Qe=()=>{const et=document.querySelector('a[href="https://markerjs.com/"]');et&&et.parentNode&&(et.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(it=>{const Mt=document.querySelector(it.name);Mt&&Mt.setAttribute("title",it.title)})},dt=()=>{ee.current=new _e.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Xe),ee.current.addEventListener("beforeclose",ye),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),Qe()},300)};return re.createElement(re.Fragment,null,(Re==null?void 0:Re.visible)&&re.createElement(ce.Z,{spinning:ge,tip:Pe,style:{position:"absolute"}},re.createElement("div",{ref:ae,className:ke()(Ge.imageDimensions,Te,ne?Ge.fullWidth:""),style:a},re.createElement("img",{className:Ge.img,ref:z}))))}},76562:function(he,$e,ue){"use strict";var re=ue(59301),Ge=ue(95237),We=ue(43604),ke=ue(99313),ce=ue(3113),_e=ue(91842),le=ue(99587),je=ue(48136),Fe=ue(59301);const Ce=(0,re.forwardRef)(({callback:Me,showSaveButton:Re,value:Te=""},ne)=>{const a=(0,re.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 "}]}]}],E=[{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+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Fe.createElement(Ge.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Fe.createElement(We.Z,{flex:"110px",className:le.Z.item},Fe.createElement("div",null,Fe.createElement(_e.Z,{value:`$$${ee.value}$$`}),ee.name),Fe.createElement("div",{className:le.Z.children},ee.children.map((ae,ge)=>Fe.createElement("div",{key:ge},Fe.createElement("h1",null,ae.name),Fe.createElement(Ge.Z,{gutter:[10,10]},ae.data.map((oe,Pe)=>Fe.createElement(We.Z,{key:Pe,onClick:()=>b(oe),className:le.Z.diamond},Fe.createElement(_e.Z,{value:"`$$"+oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Fe.createElement(Ge.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Fe.createElement(We.Z,{flex:"110px",className:le.Z.item},Fe.createElement("div",null,Fe.createElement(_e.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Fe.createElement("div",{className:le.Z.children},ee.children.map((ae,ge)=>Fe.createElement("div",{key:ge},ae.name&&Fe.createElement("h1",null,ae.name),Fe.createElement(Ge.Z,{gutter:[10,10]},ae.data.map((oe,Pe)=>Fe.createElement(We.Z,{key:Pe,onClick:()=>b(oe),className:le.Z.diamond},Fe.createElement(_e.Z,{value:"`$$"+oe.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Me&&Me(te),te};return(0,re.useImperativeHandle)(ne,()=>({getData:z})),Fe.createElement("div",{className:le.Z.mathWrap},Fe.createElement(ke.default,{defaultActiveKey:"1",items:x}),Fe.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Te||""),Re&&Fe.createElement("div",{className:le.Z.button},Fe.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$e.Z=Ce},69720:function(he,$e,ue){"use strict";ue.d($e,{h:function(){return ee}});var re=ue(59301),Ge=ue(57809),We=ue(78241),ke=ue(3113),ce=ue(89780),_e=ue.n(ce),le=ue(8336),je=ue(12469),Fe=Object.defineProperty,Ce=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,ge)=>ae in te?Fe(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ae]=ge,y=(te,ae)=>{for(var ge in ae||(ae={}))Te.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},E=(te,ae)=>Ce(te,Me(ae));const b=Ge.default.Option,x={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"]};$e.Z=({callback:te,onCancel:ae})=>{const[ge,oe]=(0,re.useState)("python");function Pe(ve){oe(z[ve][1])}function de(ve){te(ve)}return re.createElement(We.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:de,style:{width:500}}),re.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(Ge.default,{getPopupContainer:ve=>ve.parentNode,onChange:Pe},Object.keys(z).map(ve=>re.createElement(b,{key:ve,value:ve},z[ve][0])))),re.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(ee,{mode:ge})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(ke.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:ge,options:oe={}}){const Pe=(0,re.useRef)(),[de,ve]=(0,re.useState)();return(0,re.useEffect)(()=>{if(de){let ye=function(Xe){const Qe=Xe.getValue();ae&&ae(Qe)};return de.on("change",ye),()=>{de.off("change",ye)}}},[de,ae]),(0,re.useEffect)(()=>{de&&de.setOption("mode",ge)},[de,ge]),(0,re.useEffect)(()=>{de&&(te!==de.getValue()||te==="")&&setTimeout(()=>{de.setValue(te||"")},300)},[de,te]),(0,re.useEffect)(()=>{if(Pe.current&&!de){const ye=_e().fromTextArea(Pe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},oe));ve(ye)}},[Pe.current,de]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Pe}))}},39793:function(he,$e,ue){"use strict";ue.d($e,{Z:function(){return ra}});var re=ue(59301),Ge=ue(89780),We=ue.n(Ge),ke=ue(76374),ce=ue(8336),_e=ue(6313),le=ue(25717),je=ue(99498),Fe=ue(25419),Ce=ue(67549),Me=ue(91842),Re=({value:me="",className:se,showTextOnly:Se,showLines:Ee,style:Ue={}})=>{const Ke=(0,re.useMemo)(()=>"",[me]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:Ke}}))},Te=ue(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(me,se,Se)=>se in me?ne(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Se}):me[se]=Se,ee=(me,se)=>{for(var Se in se||(se={}))b.call(se,Se)&&z(me,Se,se[Se]);if(E)for(var Se of E(se))x.call(se,Se)&&z(me,Se,se[Se]);return me},te=(me,se)=>a(me,y(se));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:me,title:se,icon:Se,actionName:Ee,className:Ue="",children:Ke}){function ot(){me(Ee)}return Te.createElement("a",{title:se,className:Ue,onClick:ot},Te.createElement("i",{className:`${Se}`}),Ke)}var oe=({watch:me,showNullButton:se,showNullProgramButton:Se,onActionCallback:Ee,fullScreen:Ue,insertTemp:Ke,hidetoolBar:ot,extraUse:Je})=>{const tt=[...ae,{title:`${me?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${me?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Te.createElement("ul",{className:"markdown-toolbar-container"},!ot&&tt.map((mt,At)=>Te.createElement("li",{key:At},mt.actionName?Te.createElement(ge,te(ee({},mt),{onActionCallback:Ee})):Te.createElement("span",{className:"v-line"}))),se?Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ee},Te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Te.createElement(Te.Fragment,null,Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ee},Te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ee},Te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ke&&Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ke}`,onActionCallback:Ee},Te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Je&&Te.createElement("li",null,Je),Te.createElement("li",{className:"btn-full-screen"},Te.createElement(ge,{icon:`${Ue?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ue?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ee})))},Pe=ue(91558),de=ue(78241),ve=ue(92832),ye=ue(3113),Xe=Object.defineProperty,Qe=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,Mt=(me,se,Se)=>se in me?Xe(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Se}):me[se]=Se,zt=(me,se)=>{for(var Se in se||(se={}))qe.call(se,Se)&&Mt(me,Se,se[Se]);if(et)for(var Se of et(se))it.call(se,Se)&&Mt(me,Se,se[Se]);return me},kt=(me,se)=>Qe(me,dt(se));const Nt={labelCol:{span:4},wrapperCol:{span:20}};var ft=({callback:me,onCancel:se})=>{function Se(Ee){me(Ee)}return re.createElement(de.default,kt(zt({},Nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),re.createElement(de.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(ve.default,null)),re.createElement(de.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(ve.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(ye.ZP,{type:"ghost",onClick:se},"\u53D6\u6D88")))},Ct=ue(69720),fe=ue(17077),Le=ue(43418),ze=ue(95237),Ye=ue(9507),be=ue(59301),Ze=({callback:me,onCancel:se})=>{const Se=document.createElement("canvas"),Ee=Se.getContext("2d");Se.width=1e3,Se.height=800,Ee.fillStyle="#ffffff",Ee.fillRect(0,0,Se.width,Se.height);const Ue=Se.toDataURL("image/png");return be.createElement(Le.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},be.createElement(ze.Z,{style:{height:"100vh"}},be.createElement(Ye.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ue,visible:!0,title:String(Date.now())},onOk:Ke=>{me({src:Ke.url})},onClose:se})))},ie=ue(12378);function Ae(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ae,go.CommandHandler),Ae.prototype.canAlignSelection=function(){var me=this.diagram;return!(me===null||me.isReadOnly||me.isModelReadOnly||me.selection.count<2)},Ae.prototype.alignLeft=function(){var me=this.diagram;me.startTransaction("aligning left");var se=1/0;me.selection.each(function(Se){Se instanceof go.Link||(se=Math.min(Se.position.x,se))}),me.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(se,Se.position.y))}),me.commitTransaction("aligning left")},Ae.prototype.alignRight=function(){var me=this.diagram;me.startTransaction("aligning right");var se=-1/0;me.selection.each(function(Se){if(!(Se instanceof go.Link)){var Ee=Se.actualBounds.x+Se.actualBounds.width;se=Math.max(Ee,se)}}),me.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(se-Se.actualBounds.width,Se.position.y))}),me.commitTransaction("aligning right")},Ae.prototype.alignTop=function(){var me=this.diagram;me.startTransaction("alignTop");var se=1/0;me.selection.each(function(Se){Se instanceof go.Link||(se=Math.min(Se.position.y,se))}),me.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,se))}),me.commitTransaction("alignTop")},Ae.prototype.alignBottom=function(){var me=this.diagram;me.startTransaction("aligning bottom");var se=-1/0;me.selection.each(function(Se){if(!(Se instanceof go.Link)){var Ee=Se.actualBounds.y+Se.actualBounds.height;se=Math.max(Ee,se)}}),me.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,se-Se.actualBounds.height))}),me.commitTransaction("aligning bottom")},Ae.prototype.alignCenterX=function(){var me=this.diagram,se=me.selection.first();if(se){me.startTransaction("aligning Center X");var Se=se.actualBounds.x+se.actualBounds.width/2;me.selection.each(function(Ee){Ee instanceof go.Link||Ee.move(new go.Point(Se-Ee.actualBounds.width/2,Ee.actualBounds.y))}),me.commitTransaction("aligning Center X")}},Ae.prototype.alignCenterY=function(){var me=this.diagram,se=me.selection.first();if(se){me.startTransaction("aligning Center Y");var Se=se.actualBounds.y+se.actualBounds.height/2;me.selection.each(function(Ee){Ee instanceof go.Link||Ee.move(new go.Point(Ee.actualBounds.x,Se-Ee.actualBounds.height/2))}),me.commitTransaction("aligning Center Y")}},Ae.prototype.alignColumn=function(me){var se=this.diagram;se.startTransaction("align Column"),me===void 0&&(me=0),me=parseFloat(me);var Se=new Array;se.selection.each(function(Je){Je instanceof go.Link||Se.push(Je)});for(var Ee=0;Ee<Se.length-1;Ee++){var Ue=Se[Ee],Ke=Ue.actualBounds.y+Ue.actualBounds.height+me,ot=Se[Ee+1];ot.move(new go.Point(Ue.actualBounds.x,Ke))}se.commitTransaction("align Column")},Ae.prototype.alignRow=function(me){me===void 0&&(me=0),me=parseFloat(me);var se=this.diagram;se.startTransaction("align Row");var Se=new Array;se.selection.each(function(Je){Je instanceof go.Link||Se.push(Je)});for(var Ee=0;Ee<Se.length-1;Ee++){var Ue=Se[Ee],Ke=Ue.actualBounds.x+Ue.actualBounds.width+me,ot=Se[Ee+1];ot.move(new go.Point(Ke,Ue.actualBounds.y))}se.commitTransaction("align Row")},Ae.prototype.canRotate=function(me){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<1)},Ae.prototype.rotate=function(me){me===void 0&&(me=90);var se=this.diagram;se.startTransaction("rotate "+me.toString());var se=this.diagram;se.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=me)}),se.commitTransaction("rotate "+me.toString())},Ae.prototype.pullToFront=function(){var me=this.diagram;me.startTransaction("pullToFront");var se=new go.Map;me.selection.each(function(Se){se.set(Se.layer,0)}),se.iteratorKeys.each(function(Se){var Ee=0;Se.parts.each(function(Ue){if(!Ue.isSelected){var Ke=Ue.zOrder;isNaN(Ke)?Ue.zOrder=0:Ee=Math.max(Ee,Ke)}}),se.set(Se,Ee)}),me.selection.each(function(Se){Ae._assignZOrder(Se,se.get(Se.layer)+1)}),me.commitTransaction("pullToFront")},Ae.prototype.pushToBack=function(){var me=this.diagram;me.startTransaction("pushToBack");var se=new go.Map;me.selection.each(function(Se){se.set(Se.layer,0)}),se.iteratorKeys.each(function(Se){var Ee=0;Se.parts.each(function(Ue){if(!Ue.isSelected){var Ke=Ue.zOrder;isNaN(Ke)?Ue.zOrder=0:Ee=Math.min(Ee,Ke)}}),se.set(Se,Ee)}),me.selection.each(function(Se){Ae._assignZOrder(Se,se.get(Se.layer)-1-Ae._findGroupDepth(Se))}),me.commitTransaction("pushToBack")},Ae._assignZOrder=function(me,se,Se){Se===void 0&&(Se=me),me.layer===Se.layer&&(me.zOrder=se),me instanceof go.Group&&me.memberParts.each(function(Ee){Ae._assignZOrder(Ee,se+1,Se)})},Ae._findGroupDepth=function(me){if(me instanceof go.Group){var se=0;return me.memberParts.each(function(Se){se=Math.max(se,Ae._findGroupDepth(Se))}),se+1}else return 0},Ae.prototype.doKeyDown=function(){var me=this.diagram;if(me!==null){var se=me.lastInput;if(se.key==="Up"||se.key==="Down"||se.key==="Left"||se.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)}},Ae.prototype._getAllParts=function(){var me=new Array;return this.diagram.nodes.each(function(se){me.push(se)}),this.diagram.parts.each(function(se){me.push(se)}),me},Ae.prototype._arrowKeyMove=function(){var me=this.diagram,se=me.lastInput,Se=0,Ee=0;if(se.control||se.meta)Se=1,Ee=1;else if(me.grid!==null){var Ue=me.grid.gridCellSize;Ee=Ue.width,Se=Ue.height}me.startTransaction("arrowKeyMove"),me.selection.each(function(Ke){se.key==="Up"?Ke.move(new go.Point(Ke.actualBounds.x,Ke.actualBounds.y-Se)):se.key==="Down"?Ke.move(new go.Point(Ke.actualBounds.x,Ke.actualBounds.y+Se)):se.key==="Left"?Ke.move(new go.Point(Ke.actualBounds.x-Ee,Ke.actualBounds.y)):se.key==="Right"&&Ke.move(new go.Point(Ke.actualBounds.x+Ee,Ke.actualBounds.y))}),me.commitTransaction("arrowKeyMove")},Ae.prototype._arrowKeySelect=function(){var me=this.diagram,se=me.lastInput,Se=null;se.key==="Up"?Se=this._findNearestPartTowards(270):se.key==="Down"?Se=this._findNearestPartTowards(90):se.key==="Left"?Se=this._findNearestPartTowards(180):se.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(se.shift?Se.isSelected=!0:se.control||se.meta?Se.isSelected=!Se.isSelected:me.select(Se))},Ae.prototype._findNearestPartTowards=function(me){var se=this.diagram.selection.first();if(se===null)return null;for(var Se=se.actualBounds.center,Ee=this._getAllParts(),Ue=1/0,Ke=se,ot=0;ot<Ee.length;ot++){var Je=Ee[ot];if(Je!==se&&Je.canSelect()){var tt=Je.actualBounds.center,mt=Se.directionPoint(tt),At=this._angleCloseness(mt,me);if(At<=45){var we=Se.distanceSquaredPoint(tt);we*=1+Math.sin(At*Math.PI/180),we<Ue&&(Ue=we,Ke=Je)}}}return Ke},Ae.prototype._angleCloseness=function(me,se){return Math.min(Math.abs(se-me),Math.min(Math.abs(se+360-me),Math.abs(se-360-me)))},Ae.prototype._arrowKeyTree=function(){var me=this.diagram,se=me.selection.first();if(se instanceof go.Node){var Se=me.lastInput;if(Se.key==="Right"){if(!se.isTreeLeaf)if(!se.isTreeExpanded)me.commandHandler.canExpandTree(se)&&me.commandHandler.expandTree(se);else{var Ee=this._sortTreeChildrenByY(se).first();Ee!==null&&me.select(Ee)}}else if(Se.key==="Left")if(!se.isTreeLeaf&&se.isTreeExpanded)me.commandHandler.canCollapseTree(se)&&me.commandHandler.collapseTree(se);else{var Ue=se.findTreeParentNode();Ue!==null&&me.select(Ue)}else if(Se.key==="Up"){var Ue=se.findTreeParentNode();if(Ue!==null){var Ke=this._sortTreeChildrenByY(Ue),ot=Ke.indexOf(se);if(ot>0){for(var Je=Ke.elt(ot-1);Je!==null&&Je.isTreeExpanded&&!Je.isTreeLeaf;){var tt=this._sortTreeChildrenByY(Je);Je=tt.last()}Je!==null&&me.select(Je)}else me.select(Ue)}}else if(Se.key==="Down")if(se.isTreeExpanded&&!se.isTreeLeaf){var Ee=this._sortTreeChildrenByY(se).first();Ee!==null&&me.select(Ee)}else for(;se!==null;){var Ue=se.findTreeParentNode();if(Ue===null)break;var Ke=this._sortTreeChildrenByY(Ue),ot=Ke.indexOf(se);if(ot<Ke.length-1){me.select(Ke.elt(ot+1));break}else se=Ue}var mt=me.selection.first();mt!==null&&me.scrollToRect(mt.actualBounds)}},Ae.prototype._sortTreeChildrenByY=function(me){var se=new go.List().addAll(me.findTreeChildrenNodes());return se.sort(function(Se,Ee){var Ue=Se.location,Ke=Ee.location;return Ue.y<Ke.y?-1:Ue.y>Ke.y?1:Ue.x<Ke.x?-1:Ue.x>Ke.x?1:0}),se},Ae.prototype.copyToClipboard=function(me){go.CommandHandler.prototype.copyToClipboard.call(this,me),this._lastPasteOffset.set(this.pasteOffset)},Ae.prototype.pasteFromClipboard=function(){var me=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(me,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),me},Object.defineProperty(Ae.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(me){if(me!=="move"&&me!=="select"&&me!=="scroll"&&me!=="tree"&&me!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+me);this._arrowKeyBehavior=me}}),Object.defineProperty(Ae.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(me){if(!(me instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+me);this._pasteOffset.set(me)}});var nt=Ae,pt=ue(63720),rt=ue(43604),$t=ue(38986),Zt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pt=ue(59301),hn=(me,se,Se)=>new Promise((Ee,Ue)=>{var Ke=tt=>{try{Je(Se.next(tt))}catch(mt){Ue(mt)}},ot=tt=>{try{Je(Se.throw(tt))}catch(mt){Ue(mt)}},Je=tt=>tt.done?Ee(tt.value):Promise.resolve(tt.value).then(Ke,ot);Je((Se=Se.apply(me,se)).next())});function cn({onCancel:me,callback:se}){let Se=(0,re.useRef)(),Ee=(0,re.useRef)(),Ue=(0,re.useRef)(),Ke=(0,re.useRef)(!1);const ot=(0,re.useRef)(!1),[Je,tt]=(0,re.useState)(0);function mt(){const we=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(Ee.current,{padding:20,grid:we(ie.s_,"Grid",we(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),we(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Be=>{var Ie=Be.diagram.commandHandler.addTopLevelParts(Be.diagram.selection,!0);Ie||Be.diagram.currentTool.doCancel()},commandHandler:we(nt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Be=>{var Ie=Be.subject;Ie.location=Ie.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 Ie=Be.subject;setTimeout(()=>{Be.diagram.commandHandler.editTextBlock()})},LinkRelinked:Be=>{var Ie=Be.parameter.part;Ie.invalidateConnectedLinks();var Ve=Be.subject;Be.diagram.toolManager.linkingTool.isForwards?Ve.toNode.invalidateConnectedLinks():Ve.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=we(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),we(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")),we(ie.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),we(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=we("ToolTip",we(ie.s_,"Vertical",{maxSize:new ie.$u(200,NaN)},we(ie.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ie.KX("text")),we(ie.al,{font:"10pt sans-serif",textAlign:"center"},new ie.KX("text","details"))));function _t(Be,Ie){var Ve=(He,ut)=>{He.handled=!0,He.diagram.model.commit(lt=>{var wt=ut.part.adornedPart,Gt=new ie.E9().setRectSpot(wt.actualBounds,Be);Gt.subtract(wt.location),Gt.scale(2,2),Gt.x+=Math.sign(Gt.x)*130,Gt.y+=Math.sign(Gt.y)*130,Gt.add(wt.location),Gt.snapToGridPoint(He.diagram.grid.gridOrigin,He.diagram.grid.gridCellSize);var Tt=lt.copyNodeData(wt.data);lt.setGroupKeyForNodeData(Tt,lt.getGroupKeyForNodeData(wt.data)),lt.addNodeData(Tt);var Dn={from:wt.key,to:lt.getKeyForNodeData(Tt)};lt.addLinkData(Dn);var on=He.diagram.findNodeForData(Tt);on.location=Gt,He.diagram.select(on),setTimeout(()=>{He.diagram.commandHandler.editTextBlock()},20)})};return we(ie.bn,{figure:Ie,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:(He,ut)=>ut.fill="dodgerblue",mouseLeave:(He,ut)=>ut.fill="orange",isActionable:!0,click:Ve,contextClick:Ve})}function Rt(Be){return we(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:(Ie,Ve)=>Ve.fill="dodgerblue",mouseLeave:(Ie,Ve)=>Ve.fill="orange",click:(Ie,Ve)=>{Ie.diagram.commandHandler.showContextMenu(Ve.part.adornedPart)}},Be||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=we(ie.uz,"Spot",we(ie.Vm,{padding:10}),_t(ie.z6.Top,"TriangleUp"),_t(ie.z6.Left,"TriangleLeft"),_t(ie.z6.Right,"TriangleRight"),_t(ie.z6.Bottom,"TriangleDown"),Rt({alignment:new ie.z6(.75,0)}));function vt(Be,Ie){return(Ve,He)=>{Ve.handled=!0,Ve.diagram.model.commit(ut=>{ut.set(He.part.adornedPart.data,Be,Ie)})}}function st(Be,Ie){return Ie||(Ie="color"),we(ie.bn,{width:16,height:16,stroke:"lightgray",fill:Be,margin:1,background:"transparent",mouseEnter:(Ve,He)=>He.stroke="dodgerblue",mouseLeave:(Ve,He)=>He.stroke="lightgray",click:vt(Ie,Be),contextClick:vt(Ie,Be)})}function en(){return[we("ContextMenuButton",we(ie.s_,"Horizontal",st(at.white,"fill"),st(at.beige,"fill"),st(at.extralightblue,"fill"),st(at.extralightred,"fill"))),we("ContextMenuButton",we(ie.s_,"Horizontal",st(at.lightgray,"fill"),st(at.lightgreen,"fill"),st(at.lightblue,"fill"),st(at.lightred,"fill")))]}function tn(){return[we("ContextMenuButton",we(ie.s_,"Horizontal",st(at.black),st(at.green),st(at.blue),st(at.red))),we("ContextMenuButton",we(ie.s_,"Horizontal",st(at.white),st(at.magenta),st(at.purple),st(at.orange)))]}function nn(Be,Ie){return Ie||(Ie="thickness"),we(ie.bn,"LineH",{width:16,height:16,strokeWidth:Be,margin:1,background:"transparent",mouseEnter:(Ve,He)=>He.background="dodgerblue",mouseLeave:(Ve,He)=>He.background="transparent",click:vt(Ie,Be),contextClick:vt(Ie,Be)})}function Pn(Be,Ie){return Ie||(Ie="dash"),we(ie.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Be,margin:1,background:"transparent",mouseEnter:(Ve,He)=>He.background="dodgerblue",mouseLeave:(Ve,He)=>He.background="transparent",click:vt(Ie,Be),contextClick:vt(Ie,Be)})}function an(){return[we("ContextMenuButton",we(ie.s_,"Horizontal",nn(1),nn(2),nn(3),nn(4))),we("ContextMenuButton",we(ie.s_,"Horizontal",Pn(null),Pn([2,4]),Pn([4,4])))]}function bt(Be,Ie){return Ie||(Ie="figure"),we(ie.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Be,margin:1,background:"transparent",mouseEnter:(Ve,He)=>He.fill="dodgerblue",mouseLeave:(Ve,He)=>He.fill="lightgray",click:vt(Ie,Be),contextClick:vt(Ie,Be)})}Se.current.nodeTemplate.contextMenu=we("ContextMenu",we("ContextMenuButton",we(ie.s_,"Horizontal",bt("Rectangle"),bt("RoundedRectangle"),bt("Ellipse"),bt("Diamond"))),we("ContextMenuButton",we(ie.s_,"Horizontal",bt("Parallelogram2"),bt("ManualOperation"),bt("Procedure"),bt("Cylinder1"))),we("ContextMenuButton",we(ie.s_,"Horizontal",bt("Terminator"),bt("CreateRequest"),bt("Document"),bt("TriangleDown"))),en(),tn(),an()),Se.current.groupTemplate=we(ie.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ie.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Be,Ie)=>{var Ve=Ie.addMembers(Ie.diagram.selection,!0);Ve||Ie.diagram.currentTool.doCancel()},avoidable:!1},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),we(ie.s_,"Auto",{name:"BODY"},we(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")),we(ie.Vm,{background:"transparent",margin:20})),we(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=we(ie.uz,"Spot",we(ie.s_,"Auto",we(ie.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),we(ie.Vm,{margin:1.5})),Rt({alignment:ie.z6.TopRight,alignmentFocus:ie.z6.BottomRight})),Se.current.groupTemplate.contextMenu=we("ContextMenu",en(),tn(),an()),Se.current.linkTemplate=we(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(),we(ie.bn,{strokeWidth:2},new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),we(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)),we(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))),we(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))),we(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=we(ie.uz,we(ie.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ln(2)},new ie.KX("pathPattern","thickness",ln)),Rt({alignmentFocus:new ie.z6(0,0,-6,-4)}));function ln(Be){return we(ie.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Be+4).toString()+" H3"})}function Jt(Be){var Ie="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Be===0?Ie="M0 0 M16 16 M0 8 L16 8":Be===2&&(Ie="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),we(ie.bn,{geometryString:Ie,margin:2,background:"transparent",mouseEnter:(Ve,He)=>He.background="dodgerblue",mouseLeave:(Ve,He)=>He.background="transparent",click:vt("dir",Be),contextClick:vt("dir",Be)})}function vn(Be){var Ie=(Ve,He)=>{Ve.handled=!0,Ve.diagram.model.commit(ut=>{var lt=He.part.adornedPart;ut.set(lt.data,Be?"toSpot":"fromSpot",ie.z6.stringify(ie.z6.AllSides)),(Be?lt.toNode:lt.fromNode).invalidateConnectedLinks()})};return we(ie.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ve,He)=>He.background="dodgerblue",mouseLeave:(Ve,He)=>He.background="transparent",click:Ie,contextClick:Ie})}function pe(Be,Ie){var Ve=0,He=ie.z6.RightSide;Be.equals(ie.z6.Top)?(Ve=270,He=ie.z6.TopSide):Be.equals(ie.z6.Left)?(Ve=180,He=ie.z6.LeftSide):Be.equals(ie.z6.Bottom)&&(Ve=90,He=ie.z6.BottomSide),Ie||(Ve-=180);var ut=(lt,wt)=>{lt.handled=!0,lt.diagram.model.commit(Gt=>{var Tt=wt.part.adornedPart;Gt.set(Tt.data,Ie?"toSpot":"fromSpot",ie.z6.stringify(He)),(Ie?Tt.toNode:Tt.fromNode).invalidateConnectedLinks()})};return we(ie.bn,{alignment:Be,alignmentFocus:Be.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ve,background:"transparent",mouseEnter:(lt,wt)=>wt.background="dodgerblue",mouseLeave:(lt,wt)=>wt.background="transparent",click:ut,contextClick:ut})}Se.current.linkTemplate.contextMenu=we("ContextMenu",tn(),an(),we("ContextMenuButton",we(ie.s_,"Horizontal",Jt(0),Jt(1),Jt(2))),we("ContextMenuButton",we(ie.s_,"Horizontal",we(ie.s_,"Spot",vn(!1),pe(ie.z6.Top,!1),pe(ie.z6.Left,!1),pe(ie.z6.Right,!1),pe(ie.z6.Bottom,!1)),we(ie.s_,"Spot",{margin:new ie.Zt(0,0,0,2)},vn(!0),pe(ie.z6.Top,!0),pe(ie.z6.Left,!0),pe(ie.z6.Right,!0),pe(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 It=new ie.YI(Ue.current,{maxSelectionCount:1,linkTemplate:we(ie.rU,{locationSpot:ie.z6.Center,selectionAdornmentTemplate:we(ie.uz,"Link",{locationSpot:ie.z6.Center},we(ie.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),we(ie.bn,{toArrow:"Standard",stroke:null}))},{routing:ie.rU.AvoidsNodes,curve:ie.rU.JumpOver,corner:5,toShortLength:4},new ie.KX("points"),we(ie.bn,{isPanelMain:!0,strokeWidth:2}),we(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 Ie;const Ve=Be.subject.part;var He=(Ie=document.activeElement)==null?void 0:Ie.value;typeof He=="string"&&He.trim()===""&&Se.current.model.commit(function(ut){ut.set(Ve.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),It.nodeTemplate=we(ie.NB,"Auto",{locationSpot:ie.z6.Center},new ie.KX("location","location",ie.E9.parse).makeTwoWay(ie.E9.stringify),we(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")),we(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=we(ie.s_,"Grid",we(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),we(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 At=()=>hn(this,null,function*(){var we=Se.current.makeImage();const at=yield(0,$t.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:we.src}});se({src:at.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{mt()},500),tt(Je+1),()=>{Se.current=null}),[]),Pt.createElement("div",{ref:ot,className:Ke.current?`${Zt.maxH60} body-overflow-initial`:"body-overflow-initial"},Pt.createElement(Le.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Je,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pt.createElement(ze.Z,null,Pt.createElement(rt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pt.createElement(rt.Z,{onClick:()=>{var we,at,_t=Se.current.selection.first();if(Ke.current=!Ke.current,document.activeElement&&_t){let Rt=(at=(we=document.activeElement)==null?void 0:we.value)==null?void 0:at.trim();typeof Rt=="string"&&Se.current.model.commit(function(vt){vt.set(_t.data,"text",Rt||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}tt(Je+1)}},Pt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:me},Pt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Zt.flowChartWrp},Pt.createElement("div",{style:{display:"flex",height:"100%"}},Pt.createElement("div",{style:{width:"300px",height:"100%"}},Pt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Zt.myPaletteDiv,ref:Ue})),Pt.createElement("div",{style:{flex:1,position:"relative"}},Pt.createElement("div",{ref:Ee,style:{height:"80vh"}}))),Pt.createElement("div",{className:"tr"},Pt.createElement(ye.ZP,{size:"large",onClick:At,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var jt=cn,Xt=ue(5112),Vt=ue(5871);const qt=Xt.ZP.Group,Kt={margin:"0 8px"};var Bt=({callback:me,onCancel:se})=>{function Se(Ee){me(Ee)}return re.createElement(de.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Kt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Kt},"\u884C\u6570"),re.createElement(de.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(Vt.Z,null)),re.createElement("span",{style:Kt},"\u5217\u6570"),re.createElement(de.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(Vt.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Kt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(de.default.Item,{name:"align"},re.createElement(qt,null,re.createElement(Xt.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(Xt.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(Xt.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(Xt.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(ye.ZP,{type:"ghost",onClick:se},"\u53D6\u6D88")))},xt=ue(78673),fn=ue(43001),Vn=ue.n(fn),Yn=(0,re.forwardRef)(({use3d:me,width:se,height:Se,callback:Ee,showSaveButton:Ue},Ke)=>{const ot=(0,re.useRef)(),Je=(0,re.useRef)(),[tt,mt]=(0,re.useState)(!1),At=(0,re.useRef)({id:ot,appName:"graphing",width:se||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,re.useEffect)(()=>{Je.current=new(Vn())(At.current,!0),window.onload=function(){Je.current.inject("applet_container")}},[]);const we=()=>{var at=window.ggbApplet.getPNGBase64(1,!0,72);return Ee&&Ee(at),at};return(0,re.useEffect)(()=>{At.current.appName=tt?"3D":"graphing",Je.current.inject("applet_container")},[tt]),(0,re.useEffect)(()=>{mt(me)},[me]),(0,re.useImperativeHandle)(Ke,()=>({getImgData:we})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ot}),re.createElement(ze.Z,{align:"middle"},re.createElement(rt.Z,{flex:1},re.createElement(xt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:tt,onChange:at=>mt(at)})),re.createElement(rt.Z,null,re.createElement(ye.ZP,{size:"large",onClick:we,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Jn=ue(76562),Qn=ue(1012),xn=ue(8591);const dn="link",mn="upload-image",Ot="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=ue(37808),na=(me,se,Se)=>new Promise((Ee,Ue)=>{var Ke=tt=>{try{Je(Se.next(tt))}catch(mt){Ue(mt)}},ot=tt=>{try{Je(Se.throw(tt))}catch(mt){Ue(mt)}},Je=tt=>tt.done?Ee(tt.value):Promise.resolve(tt.value).then(Ke,ot);Je((Se=Se.apply(me,se)).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 Mn(me){return/^\d+$/.test(me)?`${me}px`:me}const An=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",oa={[An+"-B"]:"bold",[An+"-I"]:"italic"},Gn={[dn]:"\u6DFB\u52A0\u94FE\u63A5",[un]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mn]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[Ot]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Sn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ra=({defaultValue:me="",onChange:se,width:Se="100%",height:Ee=400,miniToolbar:Ue=!1,isFocus:Ke=!1,watch:ot,insertTemp:Je,mode:tt="markdown",id:mt="markdown-editor-id",showResizeBar:At=!1,noStorage:we=!1,showNullButton:at=!1,showNullProgramButton:_t=!1,hidetoolBar:Rt=!1,fullScreen:vt=!1,onBlur:st,onCMBeforeChange:en,onFullScreen:tn,className:nn="",disablePaste:Pn=!1,disabled:an=!1,disabledFill:bt=!1,placeholder:ln="",values:Jt="",extraUse:vn})=>{const[pe,Tn]=(0,re.useState)(null),[gn,sn]=(0,re.useState)(me),[It,Be]=(0,re.useState)(ot),[Ie,Ve]=(0,re.useState)(vt),[He,ut]=(0,re.useState)(""),[lt,wt]=(0,re.useState)(0),[Gt,Tt]=(0,re.useState)(Ee),[Dn,on]=(0,re.useState)(!1),ia=(0,re.useRef)((0,Qn.Z)()),da=(0,re.useRef)(!1),kn=(0,re.useRef)(),[On,Rn]=(0,re.useState)(0),[In,Hn]=(0,re.useState)(0),Qt=(0,re.useRef)(),Ln=(0,re.useRef)(),yn=(0,re.useRef)(),wn=(0,re.useRef)(),ma=()=>na(void 0,null,function*(){var Oe;const xe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ia.current}});(Oe=xe==null?void 0:xe.attachments)!=null&&Oe.length&&(console.log("cm:",pe,Qt),xe.attachments.map(Ne=>{Ne.content_type.indexOf("image")>-1?pe.replaceSelection(`![,](/api/attachments/${Ne.id}?type=${Ne.content_type})`):Ne.content_type.indexOf("video")>-1?pe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ne.content_type.indexOf("pdf")>-1?pe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ne.id}?type=${Ne.content_type}&disposition=inline" target="_blank">${Ne.name}</a>`):pe.replaceSelection(`[${Ne.name}](${ENV.API_SERVER}/api/attachments/${Ne.id}?type=${Ne.content_type})`)}))});(0,re.useEffect)(()=>{const Oe=window.scrollY||window.pageYOffset;sn(Jt),pe==null||pe.setValue(Jt),window.scrollTo(0,Oe)},[Jt]),(0,re.useEffect)(()=>{tn==null||tn(Ie)},[Ie]),(0,re.useEffect)(()=>{if(Qt.current){let Oe=function(Ne,De){var gt;if(Pn){De.preventDefault();return}const St=De.clipboardData;if(St){const Ft=St.types.toString(),ht=St.items;if(Ft==="Files"||St.types.indexOf("Files")>-1){if(De.preventDefault(),tt=="stex")return;try{let Lt=ht[1];((gt=ht[0])==null?void 0:gt.kind)==="file"&&(Lt=ht[0]);const yt=Lt.getAsFile(),Wt=yt.name.split(".").pop();(0,fe.I)(yt,Et=>{var Fn,Bn,bn;Et.id?((Fn=yt==null?void 0:yt.type)==null?void 0:Fn.indexOf("image"))>-1?xe.replaceSelection(`<img width="100%" src="/api/attachments/${Et.id}?type=${Et.content_type})" alt="" />`):((Bn=yt==null?void 0:yt.type)==null?void 0:Bn.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="/api/attachments/${Et.id}"></video>`):((bn=yt==null?void 0:yt.type)==null?void 0:bn.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="/api/attachments/${Et.id}?type=${yt.type}&disposition=inline" target="_blank">${yt.name}</a>`):Cn.includes(Wt)?xe.replaceSelection(`<a href="/api/attachments/${Et.id}?type=office&disposition=inline" target="_blank">${yt.name}</a>`):xe.replaceSelection(`[${yt.name}](/api/attachments/${Et.id}?type=${Et.content_type})`):(Et==null?void 0:Et.status)===401&&(xn.ZP.warning((Et==null?void 0:Et.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Lt){xn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const xe=We().fromTextArea(Qt.current,{mode:tt,lineNumbers:!Ue,lineWrapping:!0,value:me,autoCloseTags:!_t,autoCloseBrackets:!0});return xe.on("keyup",function(Ne,De){De.keyCode===8&&(Ne.getValue()==""?xe.setOption("placeholder",ln):xe.setOption("placeholder",null))}),xe.on("keydown",function(Ne,De){if(De.keyCode===8){var gt=ua(Ne);gt&&De.preventDefault()}}),Ke&&xe.focus(),xe.on("paste",Oe),xe.on("dragleave",function(Ne,De){Ln.current.classList.remove("mouse-hover-md")}),an&&xe.on("beforeChange",function(Ne,De){(De.origin==="paste"||De.origin==="+input")&&De.cancel()}),Tn(xe),()=>{xe.off("paste",Oe)}}},[]);const Wn=(0,re.useCallback)(()=>{if(Ln.current)try{}catch(Oe){console.log(Oe,"---- to set md editor body height")}},[Gt,Ln,Ie]);(0,re.useEffect)(()=>{function Oe(){let xe=new ke.Z(Ne=>{for(let De of Ne)(De.target.offsetHeight>0||De.target.offsetWidth>0)&&(Wn(),pe.setSize("100%","100%"),pe.refresh())});return xe.observe(Qt.current.parentElement),xe}if(pe){const xe=Oe();return()=>{var Ne,De;(Ne=Qt.current)!=null&&Ne.parentElement&&xe.unobserve((De=Qt.current)==null?void 0:De.parentElement)}}},[pe,Wn]),(0,re.useEffect)(()=>{if(pe){let Oe=[];for(const[xe,Ne]of Object.entries(oa)){let De={[xe]:()=>{jn(Ne)}};Oe.push(De),pe.addKeyMap(De)}return kn.current=setInterval(()=>{da.current&&ma()},4e3),()=>{clearInterval(kn.current);for(let xe of Oe)pe.removeKeyMap(xe)}}},[pe]),(0,re.useEffect)(()=>{vt!==Ie&&Ve(vt)},[vt]),(0,ta.Z)(()=>{if(!we&&lt>0){let Oe=new Date().getTime(),xe=window.sessionStorage.getItem(mt);Oe>=lt+_n&&(!xe||xe!==gn)&&(window.sessionStorage.setItem(mt,gn),on(!0))}},_n),(0,re.useEffect)(()=>{Be(ot)},[pe,ot]),(0,re.useEffect)(()=>{pe&&Ke&&pe.focus()},[pe,Ke]),(0,re.useEffect)(()=>{if(It&&pe){let Oe=function(Ne){let De=Ne.target;if(wn.current){let gt=De.scrollTop/De.scrollHeight;wn.current.scrollTop=wn.current.scrollHeight*gt}};const xe=pe.getScrollerElement();return xe.addEventListener("scroll",Oe),()=>{xe.removeEventListener("scroll",Oe)}}},[pe,It]),(0,re.useEffect)(()=>{if(pe&&en){let Oe=function(xe,Ne){en(xe,Ne)};return pe.on("beforeChange",Oe),()=>{pe.off("beforeChange",Oe)}}},[pe,en]),(0,re.useEffect)(()=>{if(pe&&st){let Oe=function(){st(pe.getValue())};return pe.on("blur",Oe),()=>{pe.off("blur",Oe)}}},[pe,st]);function ua(Oe,xe){var Ne=Oe.getDoc(),De=Ne.getCursor(),gt=Ne.getLine(De.line),St=gt.charAt(De.ch-1),Ft=gt.lastIndexOf("@\u2581@",De.ch),ht=gt.lastIndexOf("@\u2581\u2581@",De.ch),Lt=Ft>ht?Ft:ht,yt=Ft>ht?3:4;if(zn.indexOf(St)===-1)return null;if(console.log("change1:",xe,Oe,gt,De,Lt,Ft,ht,St),Lt>=0&&De.ch-Lt<5){var Wt=Lt+yt;return Ne.replaceRange("",{line:De.line,ch:Lt},{line:De.line,ch:Wt}),{line:De.line,ch:Wt}}return null}(0,re.useEffect)(()=>{if(pe){let Oe=function(xe,Ne){const De=xe.getValue();sn(De),wt(new Date().getTime()),xe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),se&&(_t?se(De,ha(De)):se(De))};return pe.on("change",Oe),()=>{pe.off("change",Oe)}}},[pe,se]),(0,re.useEffect)(()=>{if(pe)if(me==null)pe.setValue(""),sn("");else{const Oe=window.scrollY||window.pageYOffset;me!==pe.getValue()&&(pe.setValue(me),sn(me),pe.setCursor(an?1:pe.lineCount(),0),window.scrollTo(0,Oe))}},[pe,me]);const jn=(0,re.useCallback)(Oe=>{const xe=pe.getCursor(),Ne=pe.getSelection();let De=Ne.split(`
`);switch(Oe){case"bold":return pe.replaceSelection("**"+Ne+"**"),Ne===""&&pe.setCursor(xe.line,xe.ch+2),pe.focus();case"italic":return pe.replaceSelection("*"+Ne+"*"),Ne===""&&pe.setCursor(xe.line,xe.ch+1),pe.focus();case"code":return pe.replaceSelection("`"+Ne+"`"),Ne===""&&pe.setCursor(xe.line,xe.ch+1),pe.focus();case"inline-latex":return ut("inline-latex"),pe.focus();case"latex":return pe.replaceSelection("```latex\n"+Ne+"\n```"),pe.setCursor(xe.line+1,Ne.length+1),pe.focus();case"line-break":return pe.replaceSelection(`<br/>
`),pe.focus();case"list-ul":return Ne===""?pe.replaceSelection("- "+Ne):pe.replaceSelection(De.map(gt=>gt===""?"":`- ${gt}`).join(`
`)),pe.focus();case"list-ol":return Ne===""?pe.replaceSelection("1. "+Ne):pe.replaceSelection(De.map((gt,St)=>gt===""?"":`${St+1}. ${gt}`).join(`
`)),pe.focus();case"add-null-ch":return Ne===""&&pe.setCursor(xe.line,xe.ch),pe.replaceSelection(aa),pe.focus();case"add-signal":return Ne===""&&pe.setCursor(xe.line,xe.ch),pe.replaceSelection(Nn),pe.focus();case"add-multiple":return Ne===""&&pe.setCursor(xe.line,xe.ch),pe.replaceSelection(zn),pe.focus();case"inster-template-1":return Ne===""&&pe.setCursor(xe.line,xe.ch),pe.replaceSelection(ga),pe.focus();case"eraser":return pe.setValue(""),pe.focus();case"trigger-watch":return Be(!It),pe.focus();case"trigger-full-screen":return Ve(!Ie),pe.focus();case dn:ut(dn);return;case un:ut(un);return;case mn:ut(mn);return;case Yt:ut(Yt);return;case"maths-latex":ut("maths-latex");return;case Ot:ut(Ot);return;case Sn:ut(Sn);return;default:throw new Error}},[pe,It,Ie]),Ht=(0,re.useCallback)((Oe,xe)=>{var Ne,De,gt,St,Ft,ht;switch(ut(""),He){case dn:const{title:Fn,link:Bn}=Oe;return pe.replaceSelection(`[${Fn}](${Bn})`),pe.focus();case un:const{language:bn,content:pa}=Oe;return pe.replaceSelection(["```"+bn,pa,"```"].join(`
`)),pe.focus();case"maths-latex":for(var Lt=atob(Oe),yt=new Uint8Array(Lt.length),Wt=0;Wt<Lt.length;Wt++)yt[Wt]=Lt.charCodeAt(Wt);var Et=new Blob([yt],{type:"image/png"});(0,fe.I)(Et,Dt=>{Dt.id?pe.replaceSelection(`![,](/api/attachments/${Dt.id}?type=${Dt.content_type})`):(Dt==null?void 0:Dt.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pe.replaceSelection("`$$"+Oe+"$$`");break;case mn:case Yt:case qn:const{src:rn,alt:Kn}=Oe,ct=xe,va=(gt=(De=(Ne=ct==null?void 0:ct.name)==null?void 0:Ne.split("."))==null?void 0:De.pop)==null?void 0:gt.call(De);return((St=ct==null?void 0:ct.type)==null?void 0:St.indexOf("image"))>-1||!(ct!=null&&ct.type)?ct.align||ct.width?pe.replaceSelection(`<p style="text-align:${ct.align||"initial"}"><img width="${ct.width?ct.width+"%":"initial"}" src="${rn}" alt="${Kn||""}" /></p>`):pe.replaceSelection(`<img width="100%" src="${rn}" alt="${Kn||""}" />`):((Ft=ct==null?void 0:ct.type)==null?void 0:Ft.indexOf("video"))>-1?pe.replaceSelection(`<video width="100%" controls src="${rn}"></video>`):((ht=ct==null?void 0:ct.type)==null?void 0:ht.indexOf("pdf"))>-1?pe.replaceSelection(`<a href="${rn}?type=${ct.type}&disposition=inline" target="_blank">${ct.name}</a>`):Cn.includes(va)?pe.replaceSelection(`<a href="${rn}?type=office&disposition=inline" target="_blank">${ct.name}</a>`):pe.replaceSelection(`[${ct.name}](${rn})`),pe.focus();case Sn:const{row:La,col:Un,align:ya}=Oe;let En=`
`;for(let Dt=0;Dt<La;Dt++){let $n=[],Zn=[];for(let Xn=0;Xn<Un;Xn++)Dt===1&&Zn.push(ea[ya]),$n.push(" ");Dt===1&&(En+=`| ${Zn.join(" | ")} |
`),En+=`| ${$n.join(Un===1?"":" | ")} |
`}return pe.replaceSelection(En+`
`),pe.focus();default:throw new Error}},[pe,He]),Sa=(0,re.useMemo)(()=>{switch(He){case dn:return re.createElement(ft,{callback:Ht,onCancel:Ut});case un:return re.createElement(Ct.Z,{callback:Ht,onCancel:Ut});case mn:return re.createElement(fe.Z,{callback:Ht,onCancel:Ut});case Ot:return re.createElement(jt,{callback:Ht,onCancel:Ut});case Sn:return re.createElement(Bt,{callback:Ht,onCancel:Ut});case"maths-latex":return re.createElement(Yn,{showSaveButton:!0,callback:Ht});case"inline-latex":return re.createElement(Jn.Z,{showSaveButton:!0,callback:Ht});default:return null}},[He]);function Ut(){ut("")}(0,re.useEffect)(()=>{if(yn.current){let Oe=function(Ft){gt=!0,St=Ft.pageY},xe=function(){gt=!1},Ne=function(Ft){if(gt){let ht=Ft.pageY-St;ht<0&&(ht=0),ht>300&&(ht=300);let Lt=Ee+ht+"px";Tt(Lt)}},De=yn.current,gt=!1,St=0;return De.addEventListener("mousedown",Oe),document.addEventListener("mousemove",Ne),document.addEventListener("mouseup",xe),()=>{De.removeEventListener("mousedown",Oe),document.removeEventListener("mousemove",Ne),document.removeEventListener("mouseup",xe)}}},[pe,yn]),(0,re.useEffect)(()=>{Tt(Ee)},[Ee]);const Pa=Mn(Se),la=Mn(Gt),sa={width:Pa,height:la},Ga=(0,re.useMemo)(()=>{if(lt){let Oe=new Date(lt),xe=Oe.getHours(),Ne=Oe.getMinutes(),De=Oe.getSeconds();return xe=xe<10?"0"+xe:xe,Ne=Ne<10?"0"+Ne:Ne,De=De<10?"0"+De:De,`${xe}:${Ne}:${De}`}return 0},[lt]),ha=Oe=>{const xe=[];if(_t){let Ne=-1;Oe=Oe.replace(/(@▁▁@|@▁@)/g,function(De,gt,St){xe.push({multiLine:De!==Nn})})}return xe};function Ea(){window.sessionStorage.removeItem(mt),on(!1),wt(0)}function xa(){on(!1),wt(0),pe.setValue(window.sessionStorage.getItem(mt))}(0,re.useEffect)(()=>{Gn[He]&&He!==Yt&&He!==Ot&&setTimeout(()=>{const Oe=document.getElementsByClassName("markdown-popup-form")[0],xe=window.innerWidth/2-Oe.offsetWidth/2,Ne=window.innerHeight/2-Oe.offsetHeight/2;Rn(xe),Hn(Ne)},0)},[He]);const ca=Oe=>{Oe.preventDefault();const xe=Oe.clientX-On,Ne=Oe.clientY-In;document.body.onmousemove=De=>{let gt=De.clientX-xe,St=De.clientY-Ne;const Ft=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth-Ft.offsetWidth,Lt=window.innerHeight-Ft.offsetHeight;gt=Math.max(0,Math.min(gt,ht)),St=Math.max(0,Math.min(St,Lt)),fa(De.clientX,De.clientY,xe,Ne)&&(Rn(gt),Hn(St))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(Oe,xe,Ne,De)=>{const gt=document.body.clientHeight,St=document.body.clientWidth;return Oe<20&&Ne>Oe||Oe>St-20&&Ne<Oe||xe<20&&De>xe||xe>gt-20&&De<xe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:Ln},re.createElement("div",{className:`markdown-editor-container ${nn} ${It?"on-preview":""} ${Ue?"mini":""} ${Ie?"full-screen":""}`,style:sa},re.createElement(oe,{insertTemp:Je,watch:It,fullScreen:Ie,showNullButton:at,showNullProgramButton:_t,onActionCallback:jn,hidetoolBar:Rt,extraUse:vn}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:Qt,placeholder:ln})),It?re.createElement("div",{ref:wn,className:"preview-container"},tt==="stex"&&re.createElement(Re,{value:gn}),tt!=="stex"&&re.createElement(Me.Z,{disabledFill:bt,showProgramFill:_t,value:gn})):null))),At?re.createElement("a",{ref:yn,className:"editor-resize"}):null,He===Yt&&re.createElement(Ze,{callback:Ht,onCancel:Ut}),He===Ot&&re.createElement(jt,{callback:Ht,onCancel:Ut}),re.createElement(Pe.Z,null,Gn[He]&&He!==Yt&&He!==Ot?re.createElement(Le.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:On,top:In},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:ca},Gn[He]),open:!0,onCancel:Ut,footer:null,destroyOnClose:!0,width:He===Ot?"1200px":null,height:He===Ot?"80vh":null,className:"markdown-popup-form"},Sa):null))}},17077:function(he,$e,ue){"use strict";ue.d($e,{Z:function(){return ge},I:function(){return Pe}});var re=ue(78241),Ge=ue(8591),We=ue(92832),ke=ue(81327),ce=ue(5871),_e=ue(5112),le=ue(3113),je=ue(46699),Fe=ue(59301),Ce=ue(48790),Me=ue(59301),Re=Object.defineProperty,Te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(de,ve,ye)=>ve in de?Re(de,ve,{enumerable:!0,configurable:!0,writable:!0,value:ye}):de[ve]=ye,x=(de,ve)=>{for(var ye in ve||(ve={}))y.call(ve,ye)&&b(de,ye,ve[ye]);if(a)for(var ye of a(ve))E.call(ve,ye)&&b(de,ye,ve[ye]);return de},z=(de,ve)=>Te(de,ne(ve));const{useForm:ee}=re.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:de,onCancel:ve})=>{const[ye]=ee();let Xe=(0,Fe.useRef)();function Qe(qe){Xe.current.width=ye.getFieldValue("width"),Xe.current.align=ye.getFieldValue("align"),de(qe,Xe.current)}function dt(qe,it){if(qe.status===-1){Ge.ZP.error(qe.message);return}ye.setFieldsValue({src:`/api/attachments/${qe.id}`,type:it.type})}function et(qe){let it=qe.target.files[0];Xe.current=it,Pe(it,dt)}return Me.createElement(re.default,z(x({form:ye},ae),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),Me.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Me.createElement(We.default,{style:te})),Me.createElement(oe,{onFileChange:et}))),Me.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(We.default,{style:{width:264}})),Me.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Me.createElement(ke.Z,null,Me.createElement(re.default.Item,{name:"width",style:{margin:0}},Me.createElement(ce.Z,{style:{width:264}})),Me.createElement("span",{className:"ml8"},"%"))),Me.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Me.createElement(_e.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"}]})),Me.createElement("aside",null,Me.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Me.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(le.ZP,{type:"default",onClick:ve},"\u53D6\u6D88"))))};function oe({onFileChange:de}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:de}))}function Pe(de,ve){if(!de)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ye=new FormData;ye.append("editormd-image-file",de),ye.append("file_param_name","editormd-image-file"),ye.append("byxhr","true");var Xe=new window.XMLHttpRequest;Xe.withCredentials=!0,Xe.addEventListener("load",function(Qe){ve(JSON.parse(Qe.target.responseText),de)},!1),Xe.addEventListener("error",function(Qe){console.error(Qe)},!1),Xe.open("POST",`${je.KI}/api/attachments.json`),Xe.send(ye)}},91558:function(he,$e,ue){"use strict";ue.d($e,{Z:function(){return We}});var re=ue(59301),Ge=ue(4676);class We extends re.Component{constructor(ce){super(ce);const _e=window.document;this.node=_e.createElement("div"),_e.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Ge.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},37808:function(he,$e,ue){"use strict";ue.d($e,{Z:function(){return Ge}});var re=ue(59301);function Ge(We,ke){const ce=(0,re.useRef)();(0,re.useEffect)(()=>{ce.current=We}),(0,re.useEffect)(()=>{function _e(){ce.current()}if(ke!==null){let le=setInterval(_e,ke);return()=>clearInterval(le)}},[ke])}},10729:function(he,$e,ue){"use strict";ue.r($e);var re=ue(59301),Ge=ue(25690),We=ue(38986),ke=ue(78241),ce=ue(8591),_e=ue(95237),le=ue(43604),je=ue(92832),Fe=ue(57809),Ce=ue(3113),Me=ue(48790),Re=ue(39793),Te=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(oe,Pe,de)=>Pe in oe?Te(oe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:de}):oe[Pe]=de,z=(oe,Pe)=>{for(var de in Pe||(Pe={}))E.call(Pe,de)&&x(oe,de,Pe[de]);if(y)for(var de of y(Pe))b.call(Pe,de)&&x(oe,de,Pe[de]);return oe},ee=(oe,Pe)=>ne(oe,a(Pe)),te=(oe,Pe)=>{var de={};for(var ve in oe)E.call(oe,ve)&&Pe.indexOf(ve)<0&&(de[ve]=oe[ve]);if(oe!=null&&y)for(var ve of y(oe))Pe.indexOf(ve)<0&&b.call(oe,ve)&&(de[ve]=oe[ve]);return de},ae=(oe,Pe,de)=>new Promise((ve,ye)=>{var Xe=et=>{try{dt(de.next(et))}catch(qe){ye(qe)}},Qe=et=>{try{dt(de.throw(et))}catch(qe){ye(qe)}},dt=et=>et.done?ve(et.value):Promise.resolve(et.value).then(Xe,Qe);dt((de=de.apply(oe,Pe)).next())});const ge=oe=>{var Pe=oe,{user:de,globalSetting:ve,loading:ye,dispatch:Xe,restful:Qe}=Pe,dt=te(Pe,["user","globalSetting","loading","dispatch","restful"]),et,qe,it;const[Mt,zt]=(0,re.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),[kt,Nt]=(0,re.useState)(!0),{params:ft}=dt.match,[Ct]=ke.default.useForm(),[fe,Le]=(0,re.useState)(`
##### \u7B80\u8981\u63CF\u8FF0
- \u7528\u6237\u6CE8\u518C\u63A5\u53E3
##### \u8BF7\u6C42URL
- \` http://xx.com/api/user/register \`
##### \u8BF7\u6C42\u65B9\u5F0F
- POST
##### \u53C2\u6570
|\u53C2\u6570\u540D|\u5FC5\u9009|\u7C7B\u578B|\u8BF4\u660E|
|:---- |:---|:----- |----- |
|username |\u662F |string |\u7528\u6237\u540D |
|password |\u662F |string | \u5BC6\u7801 |
|name |\u5426 |string | \u6635\u79F0 |
##### \u8FD4\u56DE\u793A\u4F8B
\`\`\`
{
"error_code": 0,
"data": {
"uid": "1",
"username": "12154545",
"name": "\u5434\u7CFB\u6302",
"groupid": 2 ,
"reg_time": "1436864169",
"last_login_time": "0",
}
}
\`\`\`
##### \u8FD4\u56DE\u53C2\u6570\u8BF4\u660E
|\u53C2\u6570\u540D|\u7C7B\u578B|\u8BF4\u660E|
|:----- |:-----|----- |
|groupid |int |\u7528\u6237\u7EC4id\uFF0C1\uFF1A\u8D85\u7EA7\u7BA1\u7406\u5458\uFF1B2\uFF1A\u666E\u901A\u7528\u6237 |
##### \u5907\u6CE8
- \u66F4\u591A\u8FD4\u56DE\u9519\u8BEF\u4EE3\u7801\u8BF7\u770B\u9996\u9875\u7684\u9519\u8BEF\u4EE3\u7801\u63CF\u8FF0
\u6B22\u8FCE\u4F7F\u7528\uFF01`);(0,re.useEffect)(()=>{Ct.resetFields()},[ft.id]);const ze=be=>ae(void 0,null,function*(){const Ze=yield Ct.getFieldsValue();let ie="/api/restfuls.json";ft.id!=0&&(ie=`/api/restfuls/${ft.id}.json`);const Ae=yield(0,We.ZP)(ie,{method:ft.id!=0?"put":"post",body:ee(z({file_type:0},Ze),{parent_id:Ze.parent_id||""})});Ae.status===0&&(ce.ZP.success("\u6DFB\u52A0\u6210\u529F"),dt.history.push(`/ch/rest/${Ae.data.id}`))}),Ye=()=>ae(void 0,null,function*(){if(yield Xe({type:"restful/getRestful"}),ft.id!=0){const be=yield Xe({type:"restful/getRestfulDetail",payload:z({},ft)});Ct.setFieldsValue({description:be==null?void 0:be.description,name:be==null?void 0:be.name}),(0,Me.ag)()||dt.history.replace("/403")}});return(0,re.useEffect)(()=>{var be,Ze,ie;(be=Qe.restful)!=null&&be.data&&Ct.setFieldsValue({parent_id:ft.categoryId*1}),(Ze=Qe.restfulDetail)!=null&&Ze.description&&ft.id!=0&&Le((ie=Qe.restfulDetail)==null?void 0:ie.description)},[Qe.restful,(et=Qe.restfulDetail)==null?void 0:et.description]),(0,re.useEffect)(()=>{Nt(!0),Ye()},[ft.id]),re.createElement("section",null,re.createElement("aside",{className:"edu-container mt30"},re.createElement(ke.default,{onFinish:ze,form:Ct,initialValues:{name:""}},re.createElement(_e.Z,{className:"mt30"},re.createElement(le.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),re.createElement(le.Z,{flex:"1"},re.createElement(ke.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},re.createElement(je.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26
`,maxLength:60})))),re.createElement(_e.Z,{className:""},re.createElement(le.Z,{flex:"80px",className:"font14"},"\u6240\u5C5E\u76EE\u5F55:"),re.createElement(le.Z,{flex:"1"},re.createElement(ke.default.Item,{name:"parent_id",rules:[{required:!0,message:"\u6240\u5C5E\u76EE\u5F55"}]},re.createElement(Fe.default,{showSearch:!0,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u76EE\u5F55",optionFilterProp:"children",filterOption:(be,Ze)=>Ze.children.toLowerCase().indexOf(be.toLowerCase())>=0},re.createElement(Fe.default.Option,{value:0,key:9999},"\u6839\u76EE\u5F55"),(it=(qe=Qe==null?void 0:Qe.restful)==null?void 0:qe.data)==null?void 0:it.map((be,Ze)=>re.createElement(Fe.default.Option,{value:be.id,key:Ze},be.title)))))),re.createElement(ke.default.Item,{name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},re.createElement(Re.Z,{defaultValue:fe,watch:!0,height:600})),re.createElement(_e.Z,{align:"middle",justify:"center"},re.createElement(le.Z,null,re.createElement(Ce.ZP,{style:{width:130},size:"middle",type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))),re.createElement("div",{className:"mt40"}))))};$e.default=(0,Ge.connect)(({user:oe,loading:Pe,globalSetting:de,restful:ve})=>({user:oe,globalSetting:de,restful:ve,loading:Pe.models.index}))(ge)}}]);