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.
151 lines
284 KiB
151 lines
284 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[928],{93938:function(he,Ue){"use strict";Ue.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404: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 Ue=[];function Pe(ne,a){var y=Ue.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function re(){var ne=Ue.pop();return ne===void 0?new go.Point:ne}function be(ne){Ue.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,me=NaN;if(ae===0)if(ge===0)ne===y&&(oe=ne,me=a);else{var de=(x-ee)/ge,we=x-de*b;oe=ne,me=de*oe+we}else if(ge===0){var _e=(a-E)/ae,Ve=a-_e*ne;oe=b,me=_e*oe+Ve}else{var _e=(a-E)/ae,de=(x-ee)/ge,Ve=a-_e*ne,we=x-de*b;oe=(we-Ve)/(_e-de),me=_e*oe+Ve}return te.x=oe,te.y=me,te}function De(ne,a,y,E,b,x,z,ee,te,ae,ge,oe,me,de){var we=1-te,_e=te,Ve=ne*we+y*_e,Qe=a*we+E*_e,ot=y*we+b*_e,et=E*we+x*_e,rt=b*we+z*_e,St=x*we+ee*_e,Mt=Ve*we+ot*_e,zt=Qe*we+et*_e,kt=ot*we+rt*_e,Nt=et*we+St*_e,ct=Mt*we+kt*_e,Ct=zt*we+Nt*_e;ae.x=Ve,ae.y=Qe,ge.x=Mt,ge.y=zt,oe.x=ct,oe.y=Ct,me.x=kt,me.y=Nt,de.x=rt,de.y=St}var ce=new go.Spot(.156,.156),xe=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=xe,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 Ne=[];function ye(){var ne=Ne.pop();return ne===void 0?[]:ne}function Me(ne){ne.length=0,Ne.push(ne)}function Ze(ne){for(var a=ye(),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 Oe(ne){var a=Te(ne),y=ye();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 Me(a),y}function Te(ne){for(var a=Ze(ne),y=ye(),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],Me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=Ze(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()),Me(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=Ze(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()),Me(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=Ze(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()),Me(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=Ze(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()),Me(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=Ze(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()),Me(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=Ze(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()),Me(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=Ze(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()),Me(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()),Me(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()),Me(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()),Me(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()),Me(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()),Me(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()),Me(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=Oe(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(),Me(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=Oe(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(),Me(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=Oe(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(),Me(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=Oe(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(),Me(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=Oe(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(),Me(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=Oe(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(),Me(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=xe,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(),me=re();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,ae,ge,oe,me,me);var de=re(),we=re(),_e=re();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,_e,de,we);var Ve=re(),Qe=re(),ot=re();De(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Ve,Qe,ot,me,me);var et=re(),rt=re(),St=re();return De(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,St,et,rt),te.add(new go.PathSegment(go.PathSegment.Move,St.x*a,St.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,et.x*a,et.y*y,rt.x*a,rt.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,St.x*a,St.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,ot.x*a,ot.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,_e.x*a,_e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,de.x*a,de.y*y,we.x*a,we.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,ot.x*a,ot.y*y,Ve.x*a,Ve.y*y,Qe.x*a,Qe.y*y).close()),be(ae),be(ge),be(oe),be(me),be(de),be(we),be(_e),be(Ve),be(Qe),be(ot),be(et),be(rt),be(St),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(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.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(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,oe,ae,te,te),me.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=Pe(ae.x,ae.y);De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,ae,ge,oe);var we=Pe(ae.x,ae.y);me.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.95*.9)*a,de.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,de.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.9)*a,(we.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,we.x*a,we.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.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 _e=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(_e),_e.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.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),_e.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.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 Ve=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Ve),be(te),be(ae),be(ge),be(oe),be(de),be(we),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),be(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),be(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),be(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),be(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),be(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),be(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),be(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),be(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),be(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),be(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,me=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+me)*a,(ae-oe)*y,(te+oe)*a,(ae-me)*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,me=le*oe,te=.825,ae=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te+oe)*a,(ae-me)*y,(te+me)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-oe)*a,ae*y,(te-me)*a,(ae-oe)*y,(te-oe)*a,(ae-me)*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,me=le*oe,te=.5,ae=.7,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te+oe)*a,(ae-me)*y,(te+me)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-oe)*a,ae*y,(te-me)*a,(ae-oe)*y,(te-oe)*a,(ae-me)*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,me=le*oe,te=.175,ae=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te+oe)*a,(ae-me)*y,(te+me)*a,(ae-oe)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-oe)*a,ae*y,(te-me)*a,(ae-oe)*y,(te-oe)*a,(ae-me)*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,me=le*oe,te=.05,ae=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-oe)*y,(te-oe)*a,(ae-me)*y,(te-me)*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,me=new go.PathFigure(te*a+ge,(ae+ee)*y+oe,!0);E.add(me),me.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)),me.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)),me.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)),me.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 we=new go.PathFigure((te-ee)*a+ge,ae*y+oe,!0);E.add(we),we.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)),we.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)),we.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)),we.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 _e=new go.PathFigure(te*a+ge,(ae-ee)*y+oe,!0);E.add(_e),_e.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)),_e.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)),_e.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)),_e.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 Ve=new go.PathFigure(te*a+ge,(ae-ee)*y+oe,!0);return E.add(Ve),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-z*.5)*a+ge,ae*y+oe,te*a+ge,(ae+ee)*y+oe,(te+ee-z*.5)*a+ge,(ae+z)*y+oe)),Ve.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();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,ae,ge,oe);var me=Pe(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)),De(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,De(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)),De(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()),be(te),be(ae),be(ge),be(oe),be(me),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,me=.5,de=0,we=new go.PathFigure(te*a,(1-ae)*y,!1);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,oe*y,ge*a,.7*y,ge*a,oe*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(de+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),we.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)),we.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)),we.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),we.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),we.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,me=z,de=z,we=ge*me,_e=ge*de;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(we+me)/2)*a,(te+(de+_e)/2)*y,(ee-me)*a,(te+_e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-de)*y,(ee-me)*a,(te-_e)*y,(ee-we)*a,(te-de)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+we)*a,(te-de)*y,(ee+me)*a,(te-_e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+_e)*y,(ee+(we+me)/2)*a,(te+(de+_e)/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 Ve=new go.PathFigure(.2*a,y,!1);E.add(Ve),Ve.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,me=new go.PathFigure((ge-te)*a,oe*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(oe-te)*y,(ge-te)*a,(oe-ae)*y,(ge-ae)*a,(oe-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,oe*y,(ge+ae)*a,(oe-te)*y,(ge+te)*a,(oe-ae)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(oe+te)*y,(ge+te)*a,(oe+ae)*y,(ge+ae)*a,(oe+te)*y)),me.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,me=.175,de=.95,ee=new go.PathFigure((me-ge)*a,de*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de-ge)*y,(me-ge)*a,(de-oe)*y,(me-oe)*a,(de-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,de*y,(me+oe)*a,(de-ge)*y,(me+ge)*a,(de-oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de+ge)*y,(me+ge)*a,(de+oe)*y,(me+oe)*a,(de+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,de*y,(me-oe)*a,(de+ge)*y,(me-ge)*a,(de+oe)*y));var ge=.05,oe=le*.05,me=.375,de=.95,te=new go.PathFigure((me-ge)*a,de*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de-ge)*y,(me-ge)*a,(de-oe)*y,(me-oe)*a,(de-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,de*y,(me+oe)*a,(de-ge)*y,(me+ge)*a,(de-oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de+ge)*y,(me+ge)*a,(de+oe)*y,(me+oe)*a,(de+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,de*y,(me-oe)*a,(de+ge)*y,(me-ge)*a,(de+oe)*y));var ge=.05,oe=le*.05,me=.625,de=.95,ae=new go.PathFigure((me-ge)*a,de*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de-ge)*y,(me-ge)*a,(de-oe)*y,(me-oe)*a,(de-ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,de*y,(me+oe)*a,(de-ge)*y,(me+ge)*a,(de-oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de+ge)*y,(me+ge)*a,(de+oe)*y,(me+oe)*a,(de+ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,de*y,(me-oe)*a,(de+ge)*y,(me-ge)*a,(de+oe)*y));var ge=.05,oe=le*.05,me=.825,de=.95,we=new go.PathFigure((me-ge)*a,de*y,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de-ge)*y,(me-ge)*a,(de-oe)*y,(me-oe)*a,(de-ge)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,de*y,(me+oe)*a,(de-ge)*y,(me+ge)*a,(de-oe)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(de+ge)*y,(me+ge)*a,(de+oe)*y,(me+oe)*a,(de+ge)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,de*y,(me-oe)*a,(de+ge)*y,(me-ge)*a,(de+oe)*y).close());var _e=new go.PathFigure(0,y,!1);return E.add(_e),_e.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")},98598: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={},Ue="5.0",Pe={},re=null,be=!1,We=!1,De=null,ce=!1,xe=null,le=null,Ne=0;Ne<arguments.length;Ne++){var ye=arguments[Ne];if(ye!==null)switch(typeof ye){case"number":Ue=ye.toFixed(1);break;case"string":ye.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ue=ye:De=ye;break;case"object":typeof ye.is3D!="undefined"?re=ye:Pe=ye;break;case"boolean":be=ye,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},Pe.material_id!==void 0&&!We&&(be=!0)),De!==null&&Pe.id===void 0&&(Pe.id=De);var Me="",Ze="",Oe=!1,Te=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;Pe.height!==void 0&&(Pe.height=Math.round(Pe.height)),Pe.width!==void 0&&(Pe.width=Math.round(Pe.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};he.setHTML5Codebase=function(fe,ve){le=fe,Nt(fe,ve)},he.setJavaCodebase=he.setJavaCodebaseVersion=he.isCompiledInstalled=he.setPreCompiledScriptPath=he.setPreCompiledResourcePath=function(){},he.setHTML5CodebaseVersion=function(fe,ve){var ze=parseFloat(fe);if(ze!==NaN&&ze<5){console.log("The GeoGebra HTML5 codebase version "+ze+" is deprecated. Using version latest instead.");return}xe=fe,kt(fe,ve)},he.getHTML5CodebaseVersion=function(){return ne},he.getParameters=function(){return Pe},he.setFontsCSSURL=function(fe){z=fe},he.setGiacJSURL=function(fe){},he.setJNLPFile=function(fe){Me=fe},he.setJNLPBaseDir=function(fe){},he.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ve="auto",ze=Pe.id,Ye,Be=!1,$e=0;$e<arguments.length;$e++){var ie=arguments[$e];typeof ie=="string"?(ie=ie.toLowerCase(),ie.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ve=ie:ze=arguments[$e]):typeof ie=="boolean"?Be=ie:ie instanceof HTMLElement&&(Ye=ie)}Ae();function Ae(){if(!ce){setTimeout(Ae,200);return}ve=Mt(ve);var tt=Ye||document.getElementById(ze);if(!tt){console.log("possibly bug on ajax loading? ");return}if(he.removeExistingApplet(tt,!1),Pe.width===void 0&&tt.clientWidth&&(Pe.width=tt.clientWidth),Pe.height===void 0&&tt.clientHeight&&(Pe.height=tt.clientHeight),!(Pe.width&&Pe.height)&&ve==="html5"&&(delete Pe.width,delete Pe.height),Te=ve,ve==="screenshot")Qe(tt,Pe);else{var ft=!1;Pe.hasOwnProperty("playButton")&&Pe.playButton||Pe.hasOwnProperty("clickToLoad")&&Pe.clickToLoad?ft=!0:Pe.hasOwnProperty("playButtonAutoDecide")&&Pe.playButtonAutoDecide&&(ft=(!ae()||fe())&&ge()),ft?(Te="screenshot",et(tt,Pe,Be,ve)):Ve(tt,Pe,Be)}}};function ae(){try{return window.self!==window.top}catch(fe){return!0}}function ge(){return Pe.hasOwnProperty("screenshotGenerator")&&Pe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}he.getViews=function(){return re},he.isJavaInstalled=function(){return!1};var oe=function(fe){var ve=function($e){var ie=JSON.parse($e),Ae=function(it){return it.type=="G"||it.type=="E"},tt=ie.elements?ie.elements.filter(Ae)[0]:ie;if(!tt||!tt.url){ze();return}Pe.fileName=tt.url,me(tt.settings||{}),re.is3D=!0;var ft="https://www.geogebra.org/images/";he.setPreviewImage(E||tt.previewUrl,ft+"GeoGebra_loading.png",ft+"applet_play.png"),fe()},ze=function(){Pe.onError&&Pe.onError(),ct("Error: Fetching material (id "+Pe.material_id+") failed.",Pe)},Ye=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Be="/materials/"+Pe.material_id+"?scope=basic";de("https://"+Ye+"/api/proxy.php?path="+encodeURIComponent(Be),ve,ze)};function me(fe){var ve=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ze){fe[ze]=!!fe[ze]}),ve.forEach(function(ze){Pe[ze]===void 0&&fe[ze]!==void 0&&(Pe[ze]=fe[ze])}),Pe.showToolBarHelp===void 0&&(Pe.showToolBarHelp=Pe.showToolBar)}function de(fe,ve,ze){var Ye=new XMLHttpRequest;Ye.open("GET",fe),Ye.onload=function(){ve(Ye.responseText)},Ye.onerror=ze,Ye.send()}he.isHTML5Installed=function(){return!0},he.getLoadedAppletType=function(){return Te},he.setPreviewImage=function(fe,ve,ze){E=fe,b=ve,x=ze},he.removeExistingApplet=function(fe,ve){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],$e=Be.className;$e==="applet_screenshot"?ve?(Be.style.display="block",Te="screenshot"):Be.style.display="none":$e!=="applet_scaler prerender"&&(fe.removeChild(Be),Ye=$e&&$e.indexOf("appletParameters")!=-1?Be.id:null,ze--)}var ie=Pe.id!==void 0?Pe.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=Pe.id!==void 0?Pe.id:"ggbApplet";return window[fe]},he.resize=function(){};var we=function(fe,ve,ze){var Ye=document.createElement("param");Ye.setAttribute("name",ve),Ye.setAttribute("value",ze),fe.appendChild(Ye)},_e=function(fe){return fe&&fe!=="false"},Ve=function(fe,ve,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 $e=ve.width,ie=ve.height;if(ve.disableAutoScale=ve.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ve.disableAutoScale,ve.width!==void 0)if(te(ne)<=4.4)_e(ve.showToolBar)&&(ve.height-=7),_e(ve.showAlgebraInput)&&(ve.height-=37),ve.width<605&&_e(ve.showToolBar)&&(ve.width=605,$e=605);else{var Ae=100;(_e(ve.showToolBar)||_e(ve.showMenuBar))&&(ve.hasOwnProperty("customToolBar")&&(ve.customToolbar=ve.customToolBar),Ae=_e(ve.showMenuBar)?245:155),$e<Ae&&(ve.width=Ae,$e=Ae)}Be.style.border="none",Be.style.display="inline-block";for(var tt in ve)ve.hasOwnProperty(tt)&&tt!=="appletOnLoad"&&Be.setAttribute("data-param-"+tt,ve[tt]);z&&Be.setAttribute("data-param-fontscssurl",z),he.resize=function(){GGBAppletUtils.responsiveResize(fe,ve)},window.addEventListener("resize",function(Ft){he.resize()});var ft=typeof ve.appletOnLoad=="function"?ve.appletOnLoad:function(){};if(!ze&&ve.width!==void 0){ve.hasOwnProperty("showSplash")||Be.setAttribute("data-param-showSplash","false");var it=fe.querySelector(".applet_scaler.prerender"),$t=it!==null;if($t)var Zt=it.querySelector(".ggb_preview");else{var Zt=St($e,ie,ve.borderColor,!1);it=document.createElement("div"),it.className="applet_scaler",it.style.position="relative",it.style.display="block",it.style.width=$e+"px",it.style.height=ie+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(it,"66%"),te(ne)>=5?(ve.appletOnLoad=function(Ft){var xt=fe.querySelector(".ggb_preview");xt&&xt.parentNode.removeChild(xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(it),window.GGBT_wsf_view&&$(window).trigger("resize"),ft(Ft)},$t||it.appendChild(Zt)):Be.appendChild(Zt),it.appendChild(Be),$t||fe.appendChild(it),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),ve.appletOnLoad=function(Ft){he.resize(),ft(Ft)}}function hn(Ft,xt){xt&&typeof xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ft,xt.appletOnLoad):renderGGBElement(Ft),ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",xt)}function cn(Ft,xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ft,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&&(Ft.className+=" geogebraweb")):hn(Ft,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,ve)};qt.src=Ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=qt.src,ct("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",ve),!le&&(!xe||xe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Kt()):Ze.requirejs?__webpack_require__.e(7374).then(function(){var Ft=[__webpack_require__(97374)];Kt.apply(null,Ft)}.bind(this)).catch(__webpack_require__.oe):(qt.onload=Kt,fe.appendChild(qt))}else cn(Be,ve);ve.height=ie,ve.width=$e},Qe=function(fe,ve,ze){var Ye=St(ve.width,ve.height,ve.borderColor,ze),Be=document.createElement("div");Be.style.position="relative",Be.style.display="block",Be.style.width=ve.width+"px",Be.style.height=ve.height+"px",Be.className="applet_screenshot applet_scaler"+(ze?" applet_screenshot_play":""),Be.appendChild(Ye);var $e=GGBAppletUtils.getScale(ve,fe,ze);ze?(fe.appendChild(rt()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Be,"66%"),fe.appendChild(Be),$e!==1&&!isNaN($e)&&(GGBAppletUtils.scaleElement(Be,$e),Be.style.width=ve.width+"px",Be.style.height=ve.height+"px",Be.parentNode.style.width=ve.width*$e+"px",Be.parentNode.style.height=ve.height*$e+"px"),he.resize=function(){ot(fe,Ye,Be,ze)},window.addEventListener("resize",function(ie){he.resize()}),he.resize()};function ot(fe,ve,ze,Ye){if(fe.contains(ve)){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(Pe,fe,Ye);ze.parentNode!==null&&(!isNaN(Be)&&Be!==1?(GGBAppletUtils.scaleElement(ze,Be),ze.parentNode.style.width=Pe.width*Be+"px",ze.parentNode.style.height=Pe.height*Be+"px"):(GGBAppletUtils.scaleElement(ze,1),ze.parentNode.style.width=Pe.width+"px",ze.parentNode.style.height=Pe.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,ve){ve.appendChild(fe)};var et=function(fe,ve,ze,Ye){Qe(fe,ve,!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 tt=window.GGBT_wsf_view.renderFullScreen(fe,ve.id),ft=document.getElementById("fullscreencontainer"),it=jQuery(fe).find(".fullscreencontent");it.length>0?(tt.remove(),it.attr("id","fullscreencontent").show(),jQuery(ft).append(it),window.dispatchEvent(new Event("resize"))):Ve(tt,ve,!1),window.GGBT_wsf_view.launchFullScreen(ft)}else Te=Ye,Ve(fe,ve,!1);if(!window.GGBT_wsf_view)for(ie=0;ie<Ae.length;ie++)fe.removeChild(Ae[ie])},$e=fe.getElementsByClassName("ggb_preview_play"),ie=0;ie<$e.length;ie++)$e[ie].addEventListener("click",Be,!1),$e[ie].addEventListener("ontouchstart",Be,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},rt=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ve='.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=ve:ze.appendChild(document.createTextNode(ve)),document.getElementsByTagName("head")[0].appendChild(ze)}return fe},St=function(fe,ve,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=ve-2+"px",Be.style.top="0px",Be.style.left="0px",Be.style.overflow="hidden",Be.style.backgroundColor="white";var $e="lightgrey";ze!==void 0&&(ze==="none"?$e="transparent":$e=ze),Be.style.border="1px solid "+$e;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,tt,ft;if(!Ye){Ae=document.createElement("img"),Ae.style.position="absolute",Ae.style.zIndex="1001",Ae.style.opacity=1,ie.style.opacity=.3,tt=360,tt>fe/4*3&&(tt=fe/4*3),ft=tt/5.8,Ae.setAttribute("src",b),Ae.setAttribute("width",tt),Ae.setAttribute("height",ft);var it=(fe-tt)/2,$t=(ve-ft)/2;Ae.style.left=it+"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,ve){if(ne=fe,ve){Nt(ne,!0);return}var ze=!be;if(ze){var Ye=te(ne);!isNaN(Ye)&&Ye<4.4&&(ze=!1)}var Be,$e;window.location.protocol.substr(0,4)==="http"?Be=window.location.protocol:Be="http:";var ie=ne.indexOf("//");ie>0?$e=ne:ie===0?$e=Be+ne:$e="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($e,!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&&!_e(Pe.showToolBar)&&!_e(Pe.showMenuBar)&&!_e(Pe.showAlgebraInput)&&!_e(Pe.enableRightClick)&&(!Pe.appName||Pe.appName=="classic")?$e+="webSimple/":$e+="web3d/",Nt($e,!1)},Nt=function(fe,ve){if(fe.requirejs){Ze=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Ze=fe,ve===null&&(ve=fe.indexOf("http")===-1),Oe=ve,a="web.nocache.js",y=!1;var ze=Ze.split("/");ze.length>1&&(!ve&&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",ve))},ct=function(fe,ve){window.console&&window.console.log&&(!ve||typeof ve.showLogging=="undefined"||ve.showLogging&&ve.showLogging!=="false")&&console.log(fe)};Pe.material_id!==void 0?oe(Ct):Ct();function Ct(){var fe=Ue;xe!==null?fe=xe:parseFloat(fe)<5&&(fe="5.0"),kt(fe,!1),le!==null&&Nt(le,Oe),ce=!0}return he},GGBAppletUtils=function(){"use strict";function he(){return window.GGBT_wsf_edit!==void 0}function Ue(ce,xe){xe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+xe+","+xe+")",ce.style.webkitTransform="scale("+xe+","+xe+")",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 Pe(ce,xe,le,Ne,ye,Me){var Ze=null;if(Me!=null&&Me!="")for(var Oe=ce.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+Me+" ")>-1){Ze=Oe;break}else Oe=Oe.parentNode;var Te=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(Ze)Te=Ze.offsetWidth,ne=Math.max(Ne?Ze.offsetWidth:0,Ze.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&&(ye===void 0||!ye)&&(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)&&xe>0&&xe+y<Te?Te=xe: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,xe,le,Ne,ye){if(ce.isScreenshoGenerator)return 1;var Me=Ne!==void 0&&Ne,Ze=ce.noScaleMargin!=null&&ce.noScaleMargin,Oe=function(ee){return ee&&ee!=="false"},Te=Oe(ce.autoHeight),ne=Pe(xe,ce.width,le,Te,Me&&window.GGBT_wsf_view||Ze,ye),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=xe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Me?1:ne.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function be(ce,xe,le){var Ne=1,ye,Me=!1;if(ce.hasOwnProperty("allowUpscale")&&(Me=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ne=parseFloat(ce.scale),(isNaN(Ne)||Ne===null||Ne===0)&&(Ne=1),Ne>1&&(Me=!0)),xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))ye=re(ce,xe,Me,le,ce.scaleContainerClass);else return Ne;return Me&&(!ce.hasOwnProperty("scale")||Ne===1)?ye:Math.min(Ne,ye)}function We(ce){var xe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=ce.getBoundingClientRect(),ye=(xe-Ne.width)/2,Me=(le-Ne.height)/2;Me<0&&(Me=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ye<40?ce.style.left="40px":ce.style.left=ye+"px",ce.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?ce.style.top="40px":ce.style.top=Me+"px",ce.style.left=ye+"px")}function De(ce,xe){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Ne=be(xe,ce);he()&&le.setAttribute("data-param-scale",Ne);for(var ye=null,Me=0;Me<ce.childNodes.length;Me++)if(ce.childNodes[Me].className!==void 0&&ce.childNodes[Me].className.match(/^applet_scaler/)){ye=ce.childNodes[Me];break}if(ye!==null&&ye.querySelector(".noscale")!==null)return;var Ze=xe.id!==void 0?xe.id:"ggbApplet",Oe=window[Ze];(Oe==null||!Oe.recalculateEnvironments)&&ye!==null&&!ye.className.match(/fullscreen/)&&(ye.parentNode.style.transform="",!isNaN(Ne)&&Ne!==1?(ye.parentNode.style.width=xe.width*Ne+"px",ye.parentNode.style.height=xe.height*Ne+"px",Ue(ye,Ne)):(Ue(ye,1),ye.parentNode.style.width=xe.width+"px",ye.parentNode.style.height=xe.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:De,isFlexibleWorksheetEditor:he,positionCenter:We,getScale:be,scaleElement:Ue}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var he=n.location.search;return he.indexOf(J)!=-1||he.indexOf(K)!=-1}function q(he,Ue){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(he){var Ue=s[L].bindings;s[L].bindings=function(){for(var Pe=Ue?Ue():{},re=he[webModule.__softPermutationId],be=O;be<re.length;be++){var We=re[be];Pe[We[O]]=We[P]}return Pe}};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 Ue=document.compatMode==U?V:W;t.write(Ue+X),t.close()}}}function w(he){function Ue(re){function be(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=be();if(We){re();return}function De(){if(!We){if(!be())return;We=!0,re(),o.removeEventListener&&o.removeEventListener(Z,De,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,De,!1);var ce=setInterval(function(){De()},$)}function Pe(re){var be=u(),We=be.body,De=be.createElement(_);De.language=ab,De.crossOrigin=W,De.src=re,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),We.appendChild(De)}Ue(function(){Pe(he)})}webModule.__startLoadingFragment=function(he){return C(he)},webModule.__installRunAsyncCode=function(he){var Ue=u(),Pe=Ue.body,re=Ue.createElement(_);re.language=ab,re.text=he,Pe.appendChild(re),Pe.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 Ue=c[he];return Ue==null?null:Ue},r=d,webModule.__errFn=e}function B(){function he(ce){var xe=ce.lastIndexOf(rb);xe==-1&&(xe=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var Ne=ce.lastIndexOf(tb,Math.min(le,xe));return Ne>=O?ce.substring(O,Ne+P):W}function Ue(ce){if(!ce.match(/^\w+:\/\//)){var xe=o.createElement(ub);xe.src=ce+vb,ce=he(xe.src)}return ce}function Pe(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function re(){for(var ce=o.getElementsByTagName(_),xe=O;xe<ce.length;++xe)if(ce[xe].src.indexOf(xb)!=-1)return he(ce[xe].src);return W}function be(){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 De=Pe();return De==W&&(De=re()),De==W&&(De=be()),De==W&&We()&&(De=he(o.location.href)),De=Ue(De),De}function C(he){return he.match(/^\//)||he.match(/^[a-zA-Z]+:\/\//)?he:webModule.__moduleBase+he}function D(){var he=[],Ue=O,Pe=[],re=[];function be(ce){var xe=re[ce](),le=Pe[ce];if(xe in le)return xe;var Ne=[];for(var ye in le)Ne[le[ye]]=ye;throw r&&r(ce,Ne,xe),null}if(__gwt_isKnownPropertyValue=function(ce,xe){return xe in Pe[ce]},webModule.__getPropMap=function(){var ce={};for(var xe in Pe)Pe.hasOwnProperty(xe)&&(ce[xe]=be(xe));return ce},webModule.__computePropValue=be,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var De=We.indexOf(Db);De!=-1&&(Ue=parseInt(We.substring(De+P),$),We=We.substring(O,De))}catch(ce){}return webModule.__softPermutationId=Ue,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})()},58788:function(he,Ue,Pe){"use strict";Pe.d(Ue,{Ax:function(){return De},Ds:function(){return ce},KI:function(){return le},SI:function(){return We},f1:function(){return be}});var re=Pe(10148);function be(Ne){let ye=!0;if(Ne.length>0){for(let Me=0;Me<Ne.length;Me++)if(Ne[Me].compile_success==0||!Ne[Me].compile_success){ye=!1;break}}else ye=!1;return ye}function We(Ne,ye=""){let Me=[];for(let Ze=0;Ze<Ne.length;Ze++){let Oe=Ne[Ze],Te=ye?`${ye}/${Oe.name}`:`${Oe.name}`;Me.push({title:Oe.name,type:Oe.type,isLeaf:Oe.type!=="tree",key:Te})}return Me}function De(Ne,ye,Me){for(let Ze=0;Ze<Ne.length;Ze++){let Oe=Ne[Ze];if(Oe.key===ye){Oe.children=Me;break}Oe.children&&De(Oe.children,ye,Me)}return Ne}function ce(Ne,ye,Me){let Ze;return function(){let Oe=this,Te=arguments,ne=function(){Ze=null,Me||Ne.apply(Oe,Te)},a=Me&&!Ze;clearTimeout(Ze),Ze=setTimeout(ne,ye),a&&Ne.apply(Oe,Te)}}const xe=!0,le=re.Z.API_SERVER},12963:function(he,Ue,Pe){"use strict";Pe.d(Ue,{Z:function(){return Ze}});var re=Pe(59301),be={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=Pe(92310),De=Pe.n(We),ce=Pe(71418),xe=Pe(2859),le=Pe(70635),Ne=Pe(58130),ye=(Oe,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(Oe,Te)).next())}),Ze=({data:Oe,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),[me,de]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&we()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Oe==null?void 0:Oe.visible]);const we=()=>ye(void 0,null,function*(){oe(!0),de("\u6B63\u5728\u52A0\u8F7D\u4E2D");const et=yield(0,Ne.ZJ)(Oe==null?void 0:Oe.src);z.current.src="",z.current.src=et,z.current.onload=function(){ot()},oe(!1),de("")}),_e=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},Ve=et=>ye(void 0,null,function*(){oe(!0),de("\u6B63\u5728\u4FDD\u5B58\u4E2D");const rt=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:et.dataUrl}});rt!=null&&rt.id&&!x?(yield(0,le.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:rt==null?void 0:rt.id,settings:JSON.stringify(et.state)}})).status===0&&E():rt!=null&&rt.id&&E(rt),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(St=>{const Mt=document.querySelector(St.name);Mt&&Mt.setAttribute("title",St.title)})},ot=()=>{ee.current=new xe.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Ve),ee.current.addEventListener("beforeclose",_e),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(),Oe!=null&&Oe.snapshotData&&ee.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qe()},300)};return re.createElement(re.Fragment,null,(Oe==null?void 0:Oe.visible)&&re.createElement(ce.Z,{spinning:ge,tip:me,style:{position:"absolute"}},re.createElement("div",{ref:ae,className:De()(be.imageDimensions,Te,ne?be.fullWidth:""),style:a},re.createElement("img",{className:be.img,ref:z}))))}},75890:function(he,Ue,Pe){"use strict";var re=Pe(59301),be=Pe(95237),We=Pe(43604),De=Pe(99313),ce=Pe(3113),xe=Pe(25711),le=Pe(93938),Ne=Pe(48136),ye=Pe(59301);const Me=(0,re.forwardRef)(({callback:Ze,showSaveButton:Oe,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:ye.createElement(be.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>ye.createElement(We.Z,{flex:"110px",className:le.Z.item},ye.createElement("div",null,ye.createElement(xe.Z,{value:`$$${ee.value}$$`}),ee.name),ye.createElement("div",{className:le.Z.children},ee.children.map((ae,ge)=>ye.createElement("div",{key:ge},ye.createElement("h1",null,ae.name),ye.createElement(be.Z,{gutter:[10,10]},ae.data.map((oe,me)=>ye.createElement(We.Z,{key:me,onClick:()=>b(oe),className:le.Z.diamond},ye.createElement(xe.Z,{value:"`$$"+oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ye.createElement(be.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>ye.createElement(We.Z,{flex:"110px",className:le.Z.item},ye.createElement("div",null,ye.createElement(xe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ye.createElement("div",{className:le.Z.children},ee.children.map((ae,ge)=>ye.createElement("div",{key:ge},ae.name&&ye.createElement("h1",null,ae.name),ye.createElement(be.Z,{gutter:[10,10]},ae.data.map((oe,me)=>ye.createElement(We.Z,{key:me,onClick:()=>b(oe),className:le.Z.diamond},ye.createElement(xe.Z,{value:"`$$"+oe.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ze&&Ze(te),te};return(0,re.useImperativeHandle)(ne,()=>({getData:z})),ye.createElement("div",{className:le.Z.mathWrap},ye.createElement(De.default,{defaultActiveKey:"1",items:x}),ye.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||""),Oe&&ye.createElement("div",{className:le.Z.button},ye.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ue.Z=Me},1568:function(he,Ue,Pe){"use strict";Pe.d(Ue,{h:function(){return ee}});var re=Pe(59301),be=Pe(57809),We=Pe(78241),De=Pe(3113),ce=Pe(89780),xe=Pe.n(ce),le=Pe(79906),Ne=Pe(44383),ye=Object.defineProperty,Me=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,ge)=>ae in te?ye(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(Oe)for(var ge of Oe(ae))ne.call(ae,ge)&&a(te,ge,ae[ge]);return te},E=(te,ae)=>Me(te,Ze(ae));const b=be.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"]};Ue.Z=({callback:te,onCancel:ae})=>{const[ge,oe]=(0,re.useState)("python");function me(we){oe(z[we][1])}function de(we){te(we)}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(be.default,{getPopupContainer:we=>we.parentNode,onChange:me},Object.keys(z).map(we=>re.createElement(b,{key:we,value:we},z[we][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(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(De.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:ge,options:oe={}}){const me=(0,re.useRef)(),[de,we]=(0,re.useState)();return(0,re.useEffect)(()=>{if(de){let _e=function(Ve){const Qe=Ve.getValue();ae&&ae(Qe)};return de.on("change",_e),()=>{de.off("change",_e)}}},[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(me.current&&!de){const _e=xe().fromTextArea(me.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},oe));we(_e)}},[me.current,de]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:me}))}},23469:function(he,Ue,Pe){"use strict";Pe.d(Ue,{Z:function(){return ra}});var re=Pe(59301),be=Pe(89780),We=Pe.n(be),De=Pe(76374),ce=Pe(79906),xe=Pe(6313),le=Pe(25717),Ne=Pe(99498),ye=Pe(25419),Me=Pe(67549),Ze=Pe(25711),Oe=({value:ue="",className:se,showTextOnly:Se,showLines:Ge,style:Ke={}})=>{const je=(0,re.useMemo)(()=>"",[ue]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:je}}))},Te=Pe(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,se,Se)=>se in ue?ne(ue,se,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[se]=Se,ee=(ue,se)=>{for(var Se in se||(se={}))b.call(se,Se)&&z(ue,Se,se[Se]);if(E)for(var Se of E(se))x.call(se,Se)&&z(ue,Se,se[Se]);return ue},te=(ue,se)=>a(ue,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:ue,title:se,icon:Se,actionName:Ge,className:Ke="",children:je}){function gt(){ue(Ge)}return Te.createElement("a",{title:se,className:Ke,onClick:gt},Te.createElement("i",{className:`${Se}`}),je)}var oe=({watch:ue,showNullButton:se,showNullProgramButton:Se,onActionCallback:Ge,fullScreen:Ke,insertTemp:je,hidetoolBar:gt,extraUse:Je})=>{const qe=[...ae,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Te.createElement("ul",{className:"markdown-toolbar-container"},!gt&&qe.map((dt,At)=>Te.createElement("li",{key:At},dt.actionName?Te.createElement(ge,te(ee({},dt),{onActionCallback:Ge})):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:Ge},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:Ge},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:Ge},Te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,je&&Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${je}`,onActionCallback:Ge},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:`${Ke?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ke?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ge})))},me=Pe(50474),de=Pe(78241),we=Pe(92832),_e=Pe(3113),Ve=Object.defineProperty,Qe=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Mt=(ue,se,Se)=>se in ue?Ve(ue,se,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[se]=Se,zt=(ue,se)=>{for(var Se in se||(se={}))rt.call(se,Se)&&Mt(ue,Se,se[Se]);if(et)for(var Se of et(se))St.call(se,Se)&&Mt(ue,Se,se[Se]);return ue},kt=(ue,se)=>Qe(ue,ot(se));const Nt={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:ue,onCancel:se})=>{function Se(Ge){ue(Ge)}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(we.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(we.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(_e.ZP,{type:"ghost",onClick:se},"\u53D6\u6D88")))},Ct=Pe(1568),fe=Pe(56701),ve=Pe(43418),ze=Pe(95237),Ye=Pe(12963),Be=Pe(59301),$e=({callback:ue,onCancel:se})=>{const Se=document.createElement("canvas"),Ge=Se.getContext("2d");Se.width=1e3,Se.height=800,Ge.fillStyle="#ffffff",Ge.fillRect(0,0,Se.width,Se.height);const Ke=Se.toDataURL("image/png");return Be.createElement(ve.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:Ke,visible:!0,title:String(Date.now())},onOk:je=>{ue({src:je.url})},onClose:se})))},ie=Pe(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 ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},Ae.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var se=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(se=Math.min(Se.position.x,se))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(se,Se.position.y))}),ue.commitTransaction("aligning left")},Ae.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var se=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var Ge=Se.actualBounds.x+Se.actualBounds.width;se=Math.max(Ge,se)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(se-Se.actualBounds.width,Se.position.y))}),ue.commitTransaction("aligning right")},Ae.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var se=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(se=Math.min(Se.position.y,se))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,se))}),ue.commitTransaction("alignTop")},Ae.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var se=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var Ge=Se.actualBounds.y+Se.actualBounds.height;se=Math.max(Ge,se)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,se-Se.actualBounds.height))}),ue.commitTransaction("aligning bottom")},Ae.prototype.alignCenterX=function(){var ue=this.diagram,se=ue.selection.first();if(se){ue.startTransaction("aligning Center X");var Se=se.actualBounds.x+se.actualBounds.width/2;ue.selection.each(function(Ge){Ge instanceof go.Link||Ge.move(new go.Point(Se-Ge.actualBounds.width/2,Ge.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},Ae.prototype.alignCenterY=function(){var ue=this.diagram,se=ue.selection.first();if(se){ue.startTransaction("aligning Center Y");var Se=se.actualBounds.y+se.actualBounds.height/2;ue.selection.each(function(Ge){Ge instanceof go.Link||Ge.move(new go.Point(Ge.actualBounds.x,Se-Ge.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},Ae.prototype.alignColumn=function(ue){var se=this.diagram;se.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Se=new Array;se.selection.each(function(Je){Je instanceof go.Link||Se.push(Je)});for(var Ge=0;Ge<Se.length-1;Ge++){var Ke=Se[Ge],je=Ke.actualBounds.y+Ke.actualBounds.height+ue,gt=Se[Ge+1];gt.move(new go.Point(Ke.actualBounds.x,je))}se.commitTransaction("align Column")},Ae.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);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 Ge=0;Ge<Se.length-1;Ge++){var Ke=Se[Ge],je=Ke.actualBounds.x+Ke.actualBounds.width+ue,gt=Se[Ge+1];gt.move(new go.Point(je,Ke.actualBounds.y))}se.commitTransaction("align Row")},Ae.prototype.canRotate=function(ue){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<1)},Ae.prototype.rotate=function(ue){ue===void 0&&(ue=90);var se=this.diagram;se.startTransaction("rotate "+ue.toString());var se=this.diagram;se.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ue)}),se.commitTransaction("rotate "+ue.toString())},Ae.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var se=new go.Map;ue.selection.each(function(Se){se.set(Se.layer,0)}),se.iteratorKeys.each(function(Se){var Ge=0;Se.parts.each(function(Ke){if(!Ke.isSelected){var je=Ke.zOrder;isNaN(je)?Ke.zOrder=0:Ge=Math.max(Ge,je)}}),se.set(Se,Ge)}),ue.selection.each(function(Se){Ae._assignZOrder(Se,se.get(Se.layer)+1)}),ue.commitTransaction("pullToFront")},Ae.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var se=new go.Map;ue.selection.each(function(Se){se.set(Se.layer,0)}),se.iteratorKeys.each(function(Se){var Ge=0;Se.parts.each(function(Ke){if(!Ke.isSelected){var je=Ke.zOrder;isNaN(je)?Ke.zOrder=0:Ge=Math.min(Ge,je)}}),se.set(Se,Ge)}),ue.selection.each(function(Se){Ae._assignZOrder(Se,se.get(Se.layer)-1-Ae._findGroupDepth(Se))}),ue.commitTransaction("pushToBack")},Ae._assignZOrder=function(ue,se,Se){Se===void 0&&(Se=ue),ue.layer===Se.layer&&(ue.zOrder=se),ue instanceof go.Group&&ue.memberParts.each(function(Ge){Ae._assignZOrder(Ge,se+1,Se)})},Ae._findGroupDepth=function(ue){if(ue instanceof go.Group){var se=0;return ue.memberParts.each(function(Se){se=Math.max(se,Ae._findGroupDepth(Se))}),se+1}else return 0},Ae.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var se=ue.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 ue=new Array;return this.diagram.nodes.each(function(se){ue.push(se)}),this.diagram.parts.each(function(se){ue.push(se)}),ue},Ae.prototype._arrowKeyMove=function(){var ue=this.diagram,se=ue.lastInput,Se=0,Ge=0;if(se.control||se.meta)Se=1,Ge=1;else if(ue.grid!==null){var Ke=ue.grid.gridCellSize;Ge=Ke.width,Se=Ke.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(je){se.key==="Up"?je.move(new go.Point(je.actualBounds.x,je.actualBounds.y-Se)):se.key==="Down"?je.move(new go.Point(je.actualBounds.x,je.actualBounds.y+Se)):se.key==="Left"?je.move(new go.Point(je.actualBounds.x-Ge,je.actualBounds.y)):se.key==="Right"&&je.move(new go.Point(je.actualBounds.x+Ge,je.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},Ae.prototype._arrowKeySelect=function(){var ue=this.diagram,se=ue.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:ue.select(Se))},Ae.prototype._findNearestPartTowards=function(ue){var se=this.diagram.selection.first();if(se===null)return null;for(var Se=se.actualBounds.center,Ge=this._getAllParts(),Ke=1/0,je=se,gt=0;gt<Ge.length;gt++){var Je=Ge[gt];if(Je!==se&&Je.canSelect()){var qe=Je.actualBounds.center,dt=Se.directionPoint(qe),At=this._angleCloseness(dt,ue);if(At<=45){var Le=Se.distanceSquaredPoint(qe);Le*=1+Math.sin(At*Math.PI/180),Le<Ke&&(Ke=Le,je=Je)}}}return je},Ae.prototype._angleCloseness=function(ue,se){return Math.min(Math.abs(se-ue),Math.min(Math.abs(se+360-ue),Math.abs(se-360-ue)))},Ae.prototype._arrowKeyTree=function(){var ue=this.diagram,se=ue.selection.first();if(se instanceof go.Node){var Se=ue.lastInput;if(Se.key==="Right"){if(!se.isTreeLeaf)if(!se.isTreeExpanded)ue.commandHandler.canExpandTree(se)&&ue.commandHandler.expandTree(se);else{var Ge=this._sortTreeChildrenByY(se).first();Ge!==null&&ue.select(Ge)}}else if(Se.key==="Left")if(!se.isTreeLeaf&&se.isTreeExpanded)ue.commandHandler.canCollapseTree(se)&&ue.commandHandler.collapseTree(se);else{var Ke=se.findTreeParentNode();Ke!==null&&ue.select(Ke)}else if(Se.key==="Up"){var Ke=se.findTreeParentNode();if(Ke!==null){var je=this._sortTreeChildrenByY(Ke),gt=je.indexOf(se);if(gt>0){for(var Je=je.elt(gt-1);Je!==null&&Je.isTreeExpanded&&!Je.isTreeLeaf;){var qe=this._sortTreeChildrenByY(Je);Je=qe.last()}Je!==null&&ue.select(Je)}else ue.select(Ke)}}else if(Se.key==="Down")if(se.isTreeExpanded&&!se.isTreeLeaf){var Ge=this._sortTreeChildrenByY(se).first();Ge!==null&&ue.select(Ge)}else for(;se!==null;){var Ke=se.findTreeParentNode();if(Ke===null)break;var je=this._sortTreeChildrenByY(Ke),gt=je.indexOf(se);if(gt<je.length-1){ue.select(je.elt(gt+1));break}else se=Ke}var dt=ue.selection.first();dt!==null&&ue.scrollToRect(dt.actualBounds)}},Ae.prototype._sortTreeChildrenByY=function(ue){var se=new go.List().addAll(ue.findTreeChildrenNodes());return se.sort(function(Se,Ge){var Ke=Se.location,je=Ge.location;return Ke.y<je.y?-1:Ke.y>je.y?1:Ke.x<je.x?-1:Ke.x>je.x?1:0}),se},Ae.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},Ae.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(Ae.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(Ae.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var tt=Ae,ft=Pe(37404),it=Pe(43604),$t=Pe(70635),Zt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pt=Pe(59301),hn=(ue,se,Se)=>new Promise((Ge,Ke)=>{var je=qe=>{try{Je(Se.next(qe))}catch(dt){Ke(dt)}},gt=qe=>{try{Je(Se.throw(qe))}catch(dt){Ke(dt)}},Je=qe=>qe.done?Ge(qe.value):Promise.resolve(qe.value).then(je,gt);Je((Se=Se.apply(ue,se)).next())});function cn({onCancel:ue,callback:se}){let Se=(0,re.useRef)(),Ge=(0,re.useRef)(),Ke=(0,re.useRef)(),je=(0,re.useRef)(!1);const gt=(0,re.useRef)(!1),[Je,qe]=(0,re.useState)(0);function dt(){const Le=ie.bx.make,nt={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(Ge.current,{padding:20,grid:Le(ie.s_,"Grid",Le(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Le(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Fe=>{var Ie=Fe.diagram.commandHandler.addTopLevelParts(Fe.diagram.selection,!0);Ie||Fe.diagram.currentTool.doCancel()},commandHandler:Le(tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Fe=>{var Ie=Fe.subject;Ie.location=Ie.location.copy().snapToGridPoint(Fe.diagram.grid.gridOrigin,Fe.diagram.grid.gridCellSize),setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Fe=>{var Ie=Fe.subject;setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Fe=>{var Ie=Fe.parameter.part;Ie.invalidateConnectedLinks();var Xe=Fe.subject;Fe.diagram.toolManager.linkingTool.isForwards?Xe.toNode.invalidateConnectedLinks():Xe.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Le(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),Le(ie.bn,{name:"SHAPE",fill:nt.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")),Le(ie.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Le(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=Le("ToolTip",Le(ie.s_,"Vertical",{maxSize:new ie.$u(200,NaN)},Le(ie.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ie.KX("text")),Le(ie.al,{font:"10pt sans-serif",textAlign:"center"},new ie.KX("text","details"))));function _t(Fe,Ie){var Xe=(He,mt)=>{He.handled=!0,He.diagram.model.commit(lt=>{var yt=mt.part.adornedPart,bt=new ie.E9().setRectSpot(yt.actualBounds,Fe);bt.subtract(yt.location),bt.scale(2,2),bt.x+=Math.sign(bt.x)*130,bt.y+=Math.sign(bt.y)*130,bt.add(yt.location),bt.snapToGridPoint(He.diagram.grid.gridOrigin,He.diagram.grid.gridCellSize);var Tt=lt.copyNodeData(yt.data);lt.setGroupKeyForNodeData(Tt,lt.getGroupKeyForNodeData(yt.data)),lt.addNodeData(Tt);var kn={from:yt.key,to:lt.getKeyForNodeData(Tt)};lt.addLinkData(kn);var on=He.diagram.findNodeForData(Tt);on.location=bt,He.diagram.select(on),setTimeout(()=>{He.diagram.commandHandler.editTextBlock()},20)})};return Le(ie.bn,{figure:Ie,alignment:Fe,alignmentFocus:Fe.opposite(),width:Fe.equals(ie.z6.Top)||Fe.equals(ie.z6.Bottom)?25:18,height:Fe.equals(ie.z6.Top)||Fe.equals(ie.z6.Bottom)?18:25,fill:"orange",stroke:nt.white,strokeWidth:4,mouseEnter:(He,mt)=>mt.fill="dodgerblue",mouseLeave:(He,mt)=>mt.fill="orange",isActionable:!0,click:Xe,contextClick:Xe})}function Rt(Fe){return Le(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,Xe)=>Xe.fill="dodgerblue",mouseLeave:(Ie,Xe)=>Xe.fill="orange",click:(Ie,Xe)=>{Ie.diagram.commandHandler.showContextMenu(Xe.part.adornedPart)}},Fe||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Le(ie.uz,"Spot",Le(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 pt(Fe,Ie){return(Xe,He)=>{Xe.handled=!0,Xe.diagram.model.commit(mt=>{mt.set(He.part.adornedPart.data,Fe,Ie)})}}function st(Fe,Ie){return Ie||(Ie="color"),Le(ie.bn,{width:16,height:16,stroke:"lightgray",fill:Fe,margin:1,background:"transparent",mouseEnter:(Xe,He)=>He.stroke="dodgerblue",mouseLeave:(Xe,He)=>He.stroke="lightgray",click:pt(Ie,Fe),contextClick:pt(Ie,Fe)})}function en(){return[Le("ContextMenuButton",Le(ie.s_,"Horizontal",st(nt.white,"fill"),st(nt.beige,"fill"),st(nt.extralightblue,"fill"),st(nt.extralightred,"fill"))),Le("ContextMenuButton",Le(ie.s_,"Horizontal",st(nt.lightgray,"fill"),st(nt.lightgreen,"fill"),st(nt.lightblue,"fill"),st(nt.lightred,"fill")))]}function tn(){return[Le("ContextMenuButton",Le(ie.s_,"Horizontal",st(nt.black),st(nt.green),st(nt.blue),st(nt.red))),Le("ContextMenuButton",Le(ie.s_,"Horizontal",st(nt.white),st(nt.magenta),st(nt.purple),st(nt.orange)))]}function nn(Fe,Ie){return Ie||(Ie="thickness"),Le(ie.bn,"LineH",{width:16,height:16,strokeWidth:Fe,margin:1,background:"transparent",mouseEnter:(Xe,He)=>He.background="dodgerblue",mouseLeave:(Xe,He)=>He.background="transparent",click:pt(Ie,Fe),contextClick:pt(Ie,Fe)})}function Pn(Fe,Ie){return Ie||(Ie="dash"),Le(ie.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Fe,margin:1,background:"transparent",mouseEnter:(Xe,He)=>He.background="dodgerblue",mouseLeave:(Xe,He)=>He.background="transparent",click:pt(Ie,Fe),contextClick:pt(Ie,Fe)})}function an(){return[Le("ContextMenuButton",Le(ie.s_,"Horizontal",nn(1),nn(2),nn(3),nn(4))),Le("ContextMenuButton",Le(ie.s_,"Horizontal",Pn(null),Pn([2,4]),Pn([4,4])))]}function Bt(Fe,Ie){return Ie||(Ie="figure"),Le(ie.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Fe,margin:1,background:"transparent",mouseEnter:(Xe,He)=>He.fill="dodgerblue",mouseLeave:(Xe,He)=>He.fill="lightgray",click:pt(Ie,Fe),contextClick:pt(Ie,Fe)})}Se.current.nodeTemplate.contextMenu=Le("ContextMenu",Le("ContextMenuButton",Le(ie.s_,"Horizontal",Bt("Rectangle"),Bt("RoundedRectangle"),Bt("Ellipse"),Bt("Diamond"))),Le("ContextMenuButton",Le(ie.s_,"Horizontal",Bt("Parallelogram2"),Bt("ManualOperation"),Bt("Procedure"),Bt("Cylinder1"))),Le("ContextMenuButton",Le(ie.s_,"Horizontal",Bt("Terminator"),Bt("CreateRequest"),Bt("Document"),Bt("TriangleDown"))),en(),tn(),an()),Se.current.groupTemplate=Le(ie.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ie.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Fe,Ie)=>{var Xe=Ie.addMembers(Ie.diagram.selection,!0);Xe||Ie.diagram.currentTool.doCancel()},avoidable:!1},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),Le(ie.s_,"Auto",{name:"BODY"},Le(ie.bn,{parameter1:10,fill:nt.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")),Le(ie.Vm,{background:"transparent",margin:20})),Le(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=Le(ie.uz,"Spot",Le(ie.s_,"Auto",Le(ie.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Le(ie.Vm,{margin:1.5})),Rt({alignment:ie.z6.TopRight,alignmentFocus:ie.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Le("ContextMenu",en(),tn(),an()),Se.current.linkTemplate=Le(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",Fe=>Fe>=1?10:0),new ie.KX("toShortLength","dir",Fe=>Fe>=1?10:0),new ie.KX("points").makeTwoWay(),Le(ie.bn,{strokeWidth:2},new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),Le(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",Fe=>Fe===1)),Le(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",Fe=>Fe>=1),new ie.KX("width","thickness",Fe=>7+3*Fe),new ie.KX("height","thickness",Fe=>7+3*Fe),new ie.KX("segmentOffset","thickness",Fe=>new ie.E9(-15,4+1.5*Fe))),Le(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",Fe=>Fe===2),new ie.KX("width","thickness",Fe=>7+3*Fe),new ie.KX("height","thickness",Fe=>7+3*Fe),new ie.KX("segmentOffset","thickness",Fe=>new ie.E9(-15,4+1.5*Fe))),Le(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=Le(ie.uz,Le(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(Fe){return Le(ie.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Fe+4).toString()+" H3"})}function Jt(Fe){var Ie="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Fe===0?Ie="M0 0 M16 16 M0 8 L16 8":Fe===2&&(Ie="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Le(ie.bn,{geometryString:Ie,margin:2,background:"transparent",mouseEnter:(Xe,He)=>He.background="dodgerblue",mouseLeave:(Xe,He)=>He.background="transparent",click:pt("dir",Fe),contextClick:pt("dir",Fe)})}function vn(Fe){var Ie=(Xe,He)=>{Xe.handled=!0,Xe.diagram.model.commit(mt=>{var lt=He.part.adornedPart;mt.set(lt.data,Fe?"toSpot":"fromSpot",ie.z6.stringify(ie.z6.AllSides)),(Fe?lt.toNode:lt.fromNode).invalidateConnectedLinks()})};return Le(ie.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Xe,He)=>He.background="dodgerblue",mouseLeave:(Xe,He)=>He.background="transparent",click:Ie,contextClick:Ie})}function pe(Fe,Ie){var Xe=0,He=ie.z6.RightSide;Fe.equals(ie.z6.Top)?(Xe=270,He=ie.z6.TopSide):Fe.equals(ie.z6.Left)?(Xe=180,He=ie.z6.LeftSide):Fe.equals(ie.z6.Bottom)&&(Xe=90,He=ie.z6.BottomSide),Ie||(Xe-=180);var mt=(lt,yt)=>{lt.handled=!0,lt.diagram.model.commit(bt=>{var Tt=yt.part.adornedPart;bt.set(Tt.data,Ie?"toSpot":"fromSpot",ie.z6.stringify(He)),(Ie?Tt.toNode:Tt.fromNode).invalidateConnectedLinks()})};return Le(ie.bn,{alignment:Fe,alignmentFocus:Fe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Xe,background:"transparent",mouseEnter:(lt,yt)=>yt.background="dodgerblue",mouseLeave:(lt,yt)=>yt.background="transparent",click:mt,contextClick:mt})}Se.current.linkTemplate.contextMenu=Le("ContextMenu",tn(),an(),Le("ContextMenuButton",Le(ie.s_,"Horizontal",Jt(0),Jt(1),Jt(2))),Le("ContextMenuButton",Le(ie.s_,"Horizontal",Le(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)),Le(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 Dn=`{ "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(Fe){return console.log("shapeName:",Fe),gn.indexOf(Fe)>=0}var It=new ie.YI(Ke.current,{maxSelectionCount:1,linkTemplate:Le(ie.rU,{locationSpot:ie.z6.Center,selectionAdornmentTemplate:Le(ie.uz,"Link",{locationSpot:ie.z6.Center},Le(ie.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Le(ie.bn,{toArrow:"Standard",stroke:null}))},{routing:ie.rU.AvoidsNodes,curve:ie.rU.JumpOver,corner:5,toShortLength:4},new ie.KX("points"),Le(ie.bn,{isPanelMain:!0,strokeWidth:2}),Le(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(Fe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Fe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Fe){var Ie;const Xe=Fe.subject.part;var He=(Ie=document.activeElement)==null?void 0:Ie.value;typeof He=="string"&&He.trim()===""&&Se.current.model.commit(function(mt){mt.set(Xe.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),It.nodeTemplate=Le(ie.NB,"Auto",{locationSpot:ie.z6.Center},new ie.KX("location","location",ie.E9.parse).makeTwoWay(ie.E9.stringify),Le(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")),Le(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=Le(ie.s_,"Grid",Le(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Le(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 Le=Se.current.makeImage();const nt=yield(0,$t.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Le.src}});se({src:nt.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{dt()},500),qe(Je+1),()=>{Se.current=null}),[]),Pt.createElement("div",{ref:gt,className:je.current?`${Zt.maxH60} body-overflow-initial`:"body-overflow-initial"},Pt.createElement(ve.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(it.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pt.createElement(it.Z,{onClick:()=>{var Le,nt,_t=Se.current.selection.first();if(je.current=!je.current,document.activeElement&&_t){let Rt=(nt=(Le=document.activeElement)==null?void 0:Le.value)==null?void 0:nt.trim();typeof Rt=="string"&&Se.current.model.commit(function(pt){pt.set(_t.data,"text",Rt||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}qe(Je+1)}},Pt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},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:Ke})),Pt.createElement("div",{style:{flex:1,position:"relative"}},Pt.createElement("div",{ref:Ge,style:{height:"80vh"}}))),Pt.createElement("div",{className:"tr"},Pt.createElement(_e.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=Pe(5112),Vt=Pe(5871);const qt=Xt.ZP.Group,Kt={margin:"0 8px"};var Ft=({callback:ue,onCancel:se})=>{function Se(Ge){ue(Ge)}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(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(_e.ZP,{type:"ghost",onClick:se},"\u53D6\u6D88")))},xt=Pe(78673),fn=Pe(98598),Vn=Pe.n(fn),Yn=(0,re.forwardRef)(({use3d:ue,width:se,height:Se,callback:Ge,showSaveButton:Ke},je)=>{const gt=(0,re.useRef)(),Je=(0,re.useRef)(),[qe,dt]=(0,re.useState)(!1),At=(0,re.useRef)({id:gt,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 Le=()=>{var nt=window.ggbApplet.getPNGBase64(1,!0,72);return Ge&&Ge(nt),nt};return(0,re.useEffect)(()=>{At.current.appName=qe?"3D":"graphing",Je.current.inject("applet_container")},[qe]),(0,re.useEffect)(()=>{dt(ue)},[ue]),(0,re.useImperativeHandle)(je,()=>({getImgData:Le})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gt}),re.createElement(ze.Z,{align:"middle"},re.createElement(it.Z,{flex:1},re.createElement(xt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:qe,onChange:nt=>dt(nt)})),re.createElement(it.Z,null,re.createElement(_e.ZP,{size:"large",onClick:Le,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Jn=Pe(75890),Qn=Pe(1012),_n=Pe(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=Pe(91300),na=(ue,se,Se)=>new Promise((Ge,Ke)=>{var je=qe=>{try{Je(Se.next(qe))}catch(dt){Ke(dt)}},gt=qe=>{try{Je(Se.throw(qe))}catch(dt){Ke(dt)}},Je=qe=>qe.done?Ge(qe.value):Promise.resolve(qe.value).then(je,gt);Je((Se=Se.apply(ue,se)).next())});function Fa(){}let Ba=0;const zn=1e4,aa="\u2581",Nn="@\u2581\u2581@",Cn="@\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`,Mn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function An(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const Tn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",oa={[Tn+"-B"]:"bold",[Tn+"-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:ue="",onChange:se,width:Se="100%",height:Ge=400,miniToolbar:Ke=!1,isFocus:je=!1,watch:gt,insertTemp:Je,mode:qe="markdown",id:dt="markdown-editor-id",showResizeBar:At=!1,noStorage:Le=!1,showNullButton:nt=!1,showNullProgramButton:_t=!1,hidetoolBar:Rt=!1,fullScreen:pt=!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,Dn]=(0,re.useState)(null),[gn,sn]=(0,re.useState)(ue),[It,Fe]=(0,re.useState)(gt),[Ie,Xe]=(0,re.useState)(pt),[He,mt]=(0,re.useState)(""),[lt,yt]=(0,re.useState)(0),[bt,Tt]=(0,re.useState)(Ge),[kn,on]=(0,re.useState)(!1),ia=(0,re.useRef)((0,Qn.Z)()),da=(0,re.useRef)(!1),On=(0,re.useRef)(),[Rn,In]=(0,re.useState)(0),[Hn,Wn]=(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 Re;const Ee=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ia.current}});(Re=Ee==null?void 0:Ee.attachments)!=null&&Re.length&&(console.log("cm:",pe,Qt),Ee.attachments.map(Ce=>{Ce.content_type.indexOf("image")>-1?pe.replaceSelection(``):Ce.content_type.indexOf("video")>-1?pe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ce.content_type.indexOf("pdf")>-1?pe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ce.id}?type=${Ce.content_type}&disposition=inline" target="_blank">${Ce.name}</a>`):pe.replaceSelection(`[${Ce.name}](${ENV.API_SERVER}/api/attachments/${Ce.id}?type=${Ce.content_type})`)}))});(0,re.useEffect)(()=>{const Re=window.scrollY||window.pageYOffset;sn(Jt),pe==null||pe.setValue(Jt),window.scrollTo(0,Re)},[Jt]),(0,re.useEffect)(()=>{tn==null||tn(Ie)},[Ie]),(0,re.useEffect)(()=>{if(Qt.current){let Re=function(Ce,ke){var at;if(Pn){ke.preventDefault();return}const ut=ke.clipboardData;if(ut){const wt=ut.types.toString(),ht=ut.items;if(wt==="Files"||ut.types.indexOf("Files")>-1){if(ke.preventDefault(),qe=="stex")return;try{let vt=ht[1];((at=ht[0])==null?void 0:at.kind)==="file"&&(vt=ht[0]);const Lt=vt.getAsFile(),Wt=Lt.name.split(".").pop();(0,fe.I)(Lt,Gt=>{var Fn,Bn,bn;Gt.id?((Fn=Lt==null?void 0:Lt.type)==null?void 0:Fn.indexOf("image"))>-1?Ee.replaceSelection(``):((Bn=Lt==null?void 0:Lt.type)==null?void 0:Bn.indexOf("video"))>-1?Ee.replaceSelection(`<video width="100%" controls src="/api/attachments/${Gt.id}"></video>`):((bn=Lt==null?void 0:Lt.type)==null?void 0:bn.indexOf("pdf"))>-1?Ee.replaceSelection(`<a href="/api/attachments/${Gt.id}?type=${Lt.type}&disposition=inline" target="_blank">${Lt.name}</a>`):Mn.includes(Wt)?Ee.replaceSelection(`<a href="/api/attachments/${Gt.id}?type=office&disposition=inline" target="_blank">${Lt.name}</a>`):Ee.replaceSelection(`[${Lt.name}](/api/attachments/${Gt.id}?type=${Gt.content_type})`):(Gt==null?void 0:Gt.status)===401&&(_n.ZP.warning((Gt==null?void 0:Gt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(vt){_n.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ee=We().fromTextArea(Qt.current,{mode:qe,lineNumbers:!Ke,lineWrapping:!0,value:ue,autoCloseTags:!_t,autoCloseBrackets:!0});return Ee.on("keyup",function(Ce,ke){ke.keyCode===8&&(Ce.getValue()==""?Ee.setOption("placeholder",ln):Ee.setOption("placeholder",null))}),Ee.on("keydown",function(Ce,ke){if(ke.keyCode===8){var at=ua(Ce);at&&ke.preventDefault()}}),je&&Ee.focus(),Ee.on("paste",Re),Ee.on("dragleave",function(Ce,ke){Ln.current.classList.remove("mouse-hover-md")}),an&&Ee.on("beforeChange",function(Ce,ke){(ke.origin==="paste"||ke.origin==="+input")&&ke.cancel()}),Dn(Ee),()=>{Ee.off("paste",Re)}}},[]);const jn=(0,re.useCallback)(()=>{if(Ln.current)try{}catch(Re){console.log(Re,"---- to set md editor body height")}},[bt,Ln,Ie]);(0,re.useEffect)(()=>{function Re(){let Ee=new De.Z(Ce=>{for(let ke of Ce)(ke.target.offsetHeight>0||ke.target.offsetWidth>0)&&(jn(),pe.setSize("100%","100%"),pe.refresh())});return Ee.observe(Qt.current.parentElement),Ee}if(pe){const Ee=Re();return()=>{var Ce,ke;(Ce=Qt.current)!=null&&Ce.parentElement&&Ee.unobserve((ke=Qt.current)==null?void 0:ke.parentElement)}}},[pe,jn]),(0,re.useEffect)(()=>{if(pe){let Re=[];for(const[Ee,Ce]of Object.entries(oa)){let ke={[Ee]:()=>{Kn(Ce)}};Re.push(ke),pe.addKeyMap(ke)}return On.current=setInterval(()=>{da.current&&ma()},4e3),()=>{clearInterval(On.current);for(let Ee of Re)pe.removeKeyMap(Ee)}}},[pe]),(0,re.useEffect)(()=>{pt!==Ie&&Xe(pt)},[pt]),(0,ta.Z)(()=>{if(!Le&<>0){let Re=new Date().getTime(),Ee=window.sessionStorage.getItem(dt);Re>=lt+zn&&(!Ee||Ee!==gn)&&(window.sessionStorage.setItem(dt,gn),on(!0))}},zn),(0,re.useEffect)(()=>{Fe(gt)},[pe,gt]),(0,re.useEffect)(()=>{pe&&je&&pe.focus()},[pe,je]),(0,re.useEffect)(()=>{if(It&&pe){let Re=function(Ce){let ke=Ce.target;if(wn.current){let at=ke.scrollTop/ke.scrollHeight;wn.current.scrollTop=wn.current.scrollHeight*at}};const Ee=pe.getScrollerElement();return Ee.addEventListener("scroll",Re),()=>{Ee.removeEventListener("scroll",Re)}}},[pe,It]),(0,re.useEffect)(()=>{if(pe&&en){let Re=function(Ee,Ce){en(Ee,Ce)};return pe.on("beforeChange",Re),()=>{pe.off("beforeChange",Re)}}},[pe,en]),(0,re.useEffect)(()=>{if(pe&&st){let Re=function(){st(pe.getValue())};return pe.on("blur",Re),()=>{pe.off("blur",Re)}}},[pe,st]);function ua(Re,Ee){var Ce=Re.getDoc(),ke=Ce.getCursor(),at=Ce.getLine(ke.line),ut=at.charAt(ke.ch-1),wt=at.lastIndexOf("@\u2581@",ke.ch),ht=at.lastIndexOf("@\u2581\u2581@",ke.ch),vt=wt>ht?wt:ht,Lt=wt>ht?3:4;if(Nn.indexOf(ut)===-1)return null;if(console.log("change1:",Ee,Re,at,ke,vt,wt,ht,ut),vt>=0&&ke.ch-vt<5){var Wt=vt+Lt;return Ce.replaceRange("",{line:ke.line,ch:vt},{line:ke.line,ch:Wt}),{line:ke.line,ch:Wt}}return null}(0,re.useEffect)(()=>{if(pe){let Re=function(Ee,Ce){const ke=Ee.getValue();sn(ke),yt(new Date().getTime()),Ee.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),se&&(_t?se(ke,ha(ke)):se(ke))};return pe.on("change",Re),()=>{pe.off("change",Re)}}},[pe,se]),(0,re.useEffect)(()=>{if(pe)if(ue==null)pe.setValue(""),sn("");else{const Re=window.scrollY||window.pageYOffset;ue!==pe.getValue()&&(pe.setValue(ue),sn(ue),pe.setCursor(an?1:pe.lineCount(),0),window.scrollTo(0,Re))}},[pe,ue]);const Kn=(0,re.useCallback)(Re=>{const Ee=pe.getCursor(),Ce=pe.getSelection();let ke=Ce.split(`
|
|
`);switch(Re){case"bold":return pe.replaceSelection("**"+Ce+"**"),Ce===""&&pe.setCursor(Ee.line,Ee.ch+2),pe.focus();case"italic":return pe.replaceSelection("*"+Ce+"*"),Ce===""&&pe.setCursor(Ee.line,Ee.ch+1),pe.focus();case"code":return pe.replaceSelection("`"+Ce+"`"),Ce===""&&pe.setCursor(Ee.line,Ee.ch+1),pe.focus();case"inline-latex":return mt("inline-latex"),pe.focus();case"latex":return pe.replaceSelection("```latex\n"+Ce+"\n```"),pe.setCursor(Ee.line+1,Ce.length+1),pe.focus();case"line-break":return pe.replaceSelection(`<br/>
|
|
`),pe.focus();case"list-ul":return Ce===""?pe.replaceSelection("- "+Ce):pe.replaceSelection(ke.map(at=>at===""?"":`- ${at}`).join(`
|
|
`)),pe.focus();case"list-ol":return Ce===""?pe.replaceSelection("1. "+Ce):pe.replaceSelection(ke.map((at,ut)=>at===""?"":`${ut+1}. ${at}`).join(`
|
|
`)),pe.focus();case"add-null-ch":return Ce===""&&pe.setCursor(Ee.line,Ee.ch),pe.replaceSelection(aa),pe.focus();case"add-signal":return Ce===""&&pe.setCursor(Ee.line,Ee.ch),pe.replaceSelection(Cn),pe.focus();case"add-multiple":return Ce===""&&pe.setCursor(Ee.line,Ee.ch),pe.replaceSelection(Nn),pe.focus();case"inster-template-1":return Ce===""&&pe.setCursor(Ee.line,Ee.ch),pe.replaceSelection(ga),pe.focus();case"eraser":return pe.setValue(""),pe.focus();case"trigger-watch":return Fe(!It),pe.focus();case"trigger-full-screen":return Xe(!Ie),pe.focus();case dn:mt(dn);return;case un:mt(un);return;case mn:mt(mn);return;case Yt:mt(Yt);return;case"maths-latex":mt("maths-latex");return;case Ot:mt(Ot);return;case Sn:mt(Sn);return;default:throw new Error}},[pe,It,Ie]),Ht=(0,re.useCallback)((Re,Ee)=>{var Ce,ke,at,ut,wt,ht;switch(mt(""),He){case dn:const{title:Fn,link:Bn}=Re;return pe.replaceSelection(`[${Fn}](${Bn})`),pe.focus();case un:const{language:bn,content:pa}=Re;return pe.replaceSelection(["```"+bn,pa,"```"].join(`
|
|
`)),pe.focus();case"maths-latex":for(var vt=atob(Re),Lt=new Uint8Array(vt.length),Wt=0;Wt<vt.length;Wt++)Lt[Wt]=vt.charCodeAt(Wt);var Gt=new Blob([Lt],{type:"image/png"});(0,fe.I)(Gt,Dt=>{Dt.id?pe.replaceSelection(``):(Dt==null?void 0:Dt.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pe.replaceSelection("`$$"+Re+"$$`");break;case mn:case Yt:case qn:const{src:rn,alt:En}=Re,Et=Ee,va=(at=(ke=(Ce=Et==null?void 0:Et.name)==null?void 0:Ce.split("."))==null?void 0:ke.pop)==null?void 0:at.call(ke);return((ut=Et==null?void 0:Et.type)==null?void 0:ut.indexOf("image"))>-1||!(Et!=null&&Et.type)?En?pe.replaceSelection(``):pe.replaceSelection(``):((wt=Et==null?void 0:Et.type)==null?void 0:wt.indexOf("video"))>-1?pe.replaceSelection(`<video width="100%" controls src="${rn}"></video>`):((ht=Et==null?void 0:Et.type)==null?void 0:ht.indexOf("pdf"))>-1?pe.replaceSelection(`<a href="${rn}?type=${Et.type}&disposition=inline" target="_blank">${Et.name}</a>`):Mn.includes(va)?pe.replaceSelection(`<a href="${rn}?type=office&disposition=inline" target="_blank">${Et.name}</a>`):pe.replaceSelection(`[${Et.name}](${rn})`),pe.focus();case Sn:const{row:La,col:Un,align:ya}=Re;let xn=`
|
|
`;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&&(xn+=`| ${Zn.join(" | ")} |
|
|
`),xn+=`| ${$n.join(Un===1?"":" | ")} |
|
|
`}return pe.replaceSelection(xn+`
|
|
`),pe.focus();default:throw new Error}},[pe,He]),Sa=(0,re.useMemo)(()=>{switch(He){case dn:return re.createElement(ct,{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(Ft,{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(){mt("")}(0,re.useEffect)(()=>{if(yn.current){let Re=function(wt){at=!0,ut=wt.pageY},Ee=function(){at=!1},Ce=function(wt){if(at){let ht=wt.pageY-ut;ht<0&&(ht=0),ht>300&&(ht=300);let vt=Ge+ht+"px";Tt(vt)}},ke=yn.current,at=!1,ut=0;return ke.addEventListener("mousedown",Re),document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Ee),()=>{ke.removeEventListener("mousedown",Re),document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Ee)}}},[pe,yn]),(0,re.useEffect)(()=>{Tt(Ge)},[Ge]);const Pa=An(Se),la=An(bt),sa={width:Pa,height:la},Ga=(0,re.useMemo)(()=>{if(lt){let Re=new Date(lt),Ee=Re.getHours(),Ce=Re.getMinutes(),ke=Re.getSeconds();return Ee=Ee<10?"0"+Ee:Ee,Ce=Ce<10?"0"+Ce:Ce,ke=ke<10?"0"+ke:ke,`${Ee}:${Ce}:${ke}`}return 0},[lt]),ha=Re=>{const Ee=[];if(_t){let Ce=-1;Re=Re.replace(/(@▁▁@|@▁@)/g,function(ke,at,ut){Ee.push({multiLine:ke!==Cn})})}return Ee};function Ea(){window.sessionStorage.removeItem(dt),on(!1),yt(0)}function xa(){on(!1),yt(0),pe.setValue(window.sessionStorage.getItem(dt))}(0,re.useEffect)(()=>{Gn[He]&&He!==Yt&&He!==Ot&&setTimeout(()=>{const Re=document.getElementsByClassName("markdown-popup-form")[0],Ee=window.innerWidth/2-Re.offsetWidth/2,Ce=window.innerHeight/2-Re.offsetHeight/2;In(Ee),Wn(Ce)},0)},[He]);const ca=Re=>{Re.preventDefault();const Ee=Re.clientX-Rn,Ce=Re.clientY-Hn;document.body.onmousemove=ke=>{let at=ke.clientX-Ee,ut=ke.clientY-Ce;const wt=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth-wt.offsetWidth,vt=window.innerHeight-wt.offsetHeight;at=Math.max(0,Math.min(at,ht)),ut=Math.max(0,Math.min(ut,vt)),fa(ke.clientX,ke.clientY,Ee,Ce)&&(In(at),Wn(ut))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(Re,Ee,Ce,ke)=>{const at=document.body.clientHeight,ut=document.body.clientWidth;return Re<20&&Ce>Re||Re>ut-20&&Ce<Re||Ee<20&&ke>Ee||Ee>at-20&&ke<Ee?(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":""} ${Ke?"mini":""} ${Ie?"full-screen":""}`,style:sa},re.createElement(oe,{insertTemp:Je,watch:It,fullScreen:Ie,showNullButton:nt,showNullProgramButton:_t,onActionCallback:Kn,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"},qe==="stex"&&re.createElement(Oe,{value:gn}),qe!=="stex"&&re.createElement(Ze.Z,{disabledFill:Bt,showProgramFill:_t,value:gn})):null))),At?re.createElement("a",{ref:yn,className:"editor-resize"}):null,He===Yt&&re.createElement($e,{callback:Ht,onCancel:Ut}),He===Ot&&re.createElement(jt,{callback:Ht,onCancel:Ut}),re.createElement(me.Z,null,Gn[He]&&He!==Yt&&He!==Ot?re.createElement(ve.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Rn,top:Hn},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))}},56701:function(he,Ue,Pe){"use strict";Pe.d(Ue,{Z:function(){return ee},I:function(){return ae}});var re=Pe(78241),be=Pe(8591),We=Pe(92832),De=Pe(3113),ce=Pe(58788),xe=Pe(59301),le=Pe(2119),Ne=Pe(59301),ye=Object.defineProperty,Me=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ge,oe,me)=>oe in ge?ye(ge,oe,{enumerable:!0,configurable:!0,writable:!0,value:me}):ge[oe]=me,y=(ge,oe)=>{for(var me in oe||(oe={}))Te.call(oe,me)&&a(ge,me,oe[me]);if(Oe)for(var me of Oe(oe))ne.call(oe,me)&&a(ge,me,oe[me]);return ge},E=(ge,oe)=>Me(ge,Ze(oe));const{useForm:b}=re.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ge,onCancel:oe})=>{const[me]=b();let de=(0,xe.useRef)();function we(Qe){ge(Qe,de.current)}function _e(Qe,ot){if(Qe.status===-1){be.ZP.error(Qe.message);return}me.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:ot.type})}function Ve(Qe){let ot=Qe.target.files[0];de.current=ot,ae(ot,_e)}return Ne.createElement(re.default,E(y({form:me},z),{className:"upload-image-panel",onFinish:we,style:{width:470,overflow:"hidden"}}),Ne.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ne.createElement("div",{className:"flex-container"},Ne.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ne.createElement(We.default,{style:x})),Ne.createElement(te,{onFileChange:Ve}))),Ne.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ne.createElement(We.default,{style:{width:264}})),Ne.createElement(re.default.Item,{style:{textAlign:"right"}},Ne.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ne.createElement(De.ZP,{type:"default",onClick:oe},"\u53D6\u6D88")))};function te({onFileChange:ge}){return Ne.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ne.createElement("input",{type:"file",onChange:ge}))}function ae(ge,oe){if(!ge)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,le.bg)())throw be.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let me=new FormData;me.append("editormd-image-file",ge),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var de=new window.XMLHttpRequest;de.withCredentials=!0,de.addEventListener("load",function(we){oe(JSON.parse(we.target.responseText),ge)},!1),de.addEventListener("error",function(we){console.error(we)},!1),de.open("POST",`${ce.KI}/api/attachments.json`),de.send(me)}},50474:function(he,Ue,Pe){"use strict";Pe.d(Ue,{Z:function(){return We}});var re=Pe(59301),be=Pe(4676);class We extends re.Component{constructor(ce){super(ce);const xe=window.document;this.node=xe.createElement("div"),xe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,be.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(he,Ue,Pe){"use strict";Pe.d(Ue,{Z:function(){return be}});var re=Pe(59301);function be(We,De){const ce=(0,re.useRef)();(0,re.useEffect)(()=>{ce.current=We}),(0,re.useEffect)(()=>{function xe(){ce.current()}if(De!==null){let le=setInterval(xe,De);return()=>clearInterval(le)}},[De])}},81152:function(he,Ue,Pe){"use strict";Pe.r(Ue);var re=Pe(59301),be=Pe(42203),We=Pe(70635),De=Pe(78241),ce=Pe(8591),xe=Pe(95237),le=Pe(43604),Ne=Pe(92832),ye=Pe(57809),Me=Pe(3113),Ze=Pe(2119),Oe=Pe(23469),Te=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(oe,me,de)=>me in oe?Te(oe,me,{enumerable:!0,configurable:!0,writable:!0,value:de}):oe[me]=de,z=(oe,me)=>{for(var de in me||(me={}))E.call(me,de)&&x(oe,de,me[de]);if(y)for(var de of y(me))b.call(me,de)&&x(oe,de,me[de]);return oe},ee=(oe,me)=>ne(oe,a(me)),te=(oe,me)=>{var de={};for(var we in oe)E.call(oe,we)&&me.indexOf(we)<0&&(de[we]=oe[we]);if(oe!=null&&y)for(var we of y(oe))me.indexOf(we)<0&&b.call(oe,we)&&(de[we]=oe[we]);return de},ae=(oe,me,de)=>new Promise((we,_e)=>{var Ve=et=>{try{ot(de.next(et))}catch(rt){_e(rt)}},Qe=et=>{try{ot(de.throw(et))}catch(rt){_e(rt)}},ot=et=>et.done?we(et.value):Promise.resolve(et.value).then(Ve,Qe);ot((de=de.apply(oe,me)).next())});const ge=oe=>{var me=oe,{user:de,globalSetting:we,loading:_e,dispatch:Ve,restful:Qe}=me,ot=te(me,["user","globalSetting","loading","dispatch","restful"]),et,rt,St;const[Mt,zt]=(0,re.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),[kt,Nt]=(0,re.useState)(!0),{params:ct}=ot.match,[Ct]=De.default.useForm(),[fe,ve]=(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()},[ct.id]);const ze=Be=>ae(void 0,null,function*(){const $e=yield Ct.getFieldsValue();let ie="/api/restfuls.json";ct.id!=0&&(ie=`/api/restfuls/${ct.id}.json`);const Ae=yield(0,We.ZP)(ie,{method:ct.id!=0?"put":"post",body:ee(z({file_type:0},$e),{parent_id:$e.parent_id||""})});Ae.status===0&&(ce.ZP.success("\u6DFB\u52A0\u6210\u529F"),ot.history.push(`/ch/rest/${Ae.data.id}`))}),Ye=()=>ae(void 0,null,function*(){if(yield Ve({type:"restful/getRestful"}),ct.id!=0){const Be=yield Ve({type:"restful/getRestfulDetail",payload:z({},ct)});Ct.setFieldsValue({description:Be==null?void 0:Be.description,name:Be==null?void 0:Be.name}),(0,Ze.ag)()||ot.history.replace("/403")}});return(0,re.useEffect)(()=>{var Be,$e,ie;(Be=Qe.restful)!=null&&Be.data&&Ct.setFieldsValue({parent_id:ct.categoryId*1}),($e=Qe.restfulDetail)!=null&&$e.description&&ct.id!=0&&ve((ie=Qe.restfulDetail)==null?void 0:ie.description)},[Qe.restful,(et=Qe.restfulDetail)==null?void 0:et.description]),(0,re.useEffect)(()=>{Nt(!0),Ye()},[ct.id]),re.createElement("section",null,re.createElement("aside",{className:"edu-container mt30"},re.createElement(De.default,{onFinish:ze,form:Ct,initialValues:{name:""}},re.createElement(xe.Z,{className:"mt30"},re.createElement(le.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),re.createElement(le.Z,{flex:"1"},re.createElement(De.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},re.createElement(Ne.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26
|
|
`,maxLength:60})))),re.createElement(xe.Z,{className:""},re.createElement(le.Z,{flex:"80px",className:"font14"},"\u6240\u5C5E\u76EE\u5F55:"),re.createElement(le.Z,{flex:"1"},re.createElement(De.default.Item,{name:"parent_id",rules:[{required:!0,message:"\u6240\u5C5E\u76EE\u5F55"}]},re.createElement(ye.default,{showSearch:!0,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u76EE\u5F55",optionFilterProp:"children",filterOption:(Be,$e)=>$e.children.toLowerCase().indexOf(Be.toLowerCase())>=0},re.createElement(ye.default.Option,{value:0,key:9999},"\u6839\u76EE\u5F55"),(St=(rt=Qe==null?void 0:Qe.restful)==null?void 0:rt.data)==null?void 0:St.map((Be,$e)=>re.createElement(ye.default.Option,{value:Be.id,key:$e},Be.title)))))),re.createElement(De.default.Item,{name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},re.createElement(Oe.Z,{defaultValue:fe,watch:!0,height:600})),re.createElement(xe.Z,{align:"middle",justify:"center"},re.createElement(le.Z,null,re.createElement(Me.ZP,{style:{width:130},size:"middle",type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))),re.createElement("div",{className:"mt40"}))))};Ue.default=(0,be.connect)(({user:oe,loading:me,globalSetting:de,restful:we})=>({user:oe,globalSetting:de,restful:we,loading:me.models.index}))(ge)}}]);
|