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.
113 lines
321 KiB
113 lines
321 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8398],{33853:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return Ie}});var re=ie(67711),he=ie(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_e=Oe,fe=ie(7657),Ce=function(xe,ze){return he.createElement(fe.Z,(0,re.Z)({},xe,{ref:ze,icon:_e}))},ue=he.forwardRef(Ce),Ie=ue},38819:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return Ie}});var re=ie(67711),he=ie(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_e=Oe,fe=ie(7657),Ce=function(xe,ze){return he.createElement(fe.Z,(0,re.Z)({},xe,{ref:ze,icon:_e}))},ue=he.forwardRef(Ce),Ie=ue},21697:function(ve,Ze){"use strict";Ze.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function ve(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(ve.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(ve.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(ve.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(ve.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 ve))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Ze=[];function ie(ne,a){var y=Ze.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function re(){var ne=Ze.pop();return ne===void 0?new go.Point:ne}function he(ne){Ze.push(ne)}function Oe(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var ae=ne-y,oe=b-z,ge=NaN,le=NaN;if(ae===0)if(oe===0)ne===y&&(ge=ne,le=a);else{var me=(E-ee)/oe,ye=E-me*b;ge=ne,le=me*ge+ye}else if(oe===0){var we=(a-x)/ae,Ke=a-we*ne;ge=b,le=we*ge+Ke}else{var we=(a-x)/ae,me=(E-ee)/oe,Ke=a-we*ne,ye=E-me*b;ge=(ye-Ke)/(we-me),le=we*ge+Ke}return te.x=ge,te.y=le,te}function _e(ne,a,y,x,b,E,z,ee,te,ae,oe,ge,le,me){var ye=1-te,we=te,Ke=ne*ye+y*we,gt=a*ye+x*we,at=y*ye+b*we,st=x*ye+E*we,St=b*ye+z*we,ht=E*ye+ee*we,_t=Ke*ye+at*we,wt=gt*ye+st*we,Et=at*ye+St*we,Ct=st*ye+ht*we,It=_t*ye+Et*we,Jt=wt*ye+Ct*we;ae.x=Ke,ae.y=gt,oe.x=_t,oe.y=wt,ge.x=It,ge.y=Jt,le.x=Et,le.y=Ct,me.x=St,me.y=ht}var fe=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ve("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=fe,b.spot2=Ce,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*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 ve("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ve("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new ve("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ve("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new ve("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ie=[];function Be(){var ne=Ie.pop();return ne===void 0?[]:ne}function xe(ne){ne.length=0,Ie.push(ne)}function ze(ne){for(var a=Be(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Re(ne){var a=Ae(ne),y=Be();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return xe(a),y}function Ae(ne){for(var a=ze(ne),y=Be(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],ae=a[(x+z-1)%b],oe=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Oe(ee.x,ee.y,ae.x,ae.y,te.x,te.y,oe.x,oe.y,new go.Point)}return y[y.length]=y[0],xe(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=ze(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=ze(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=ze(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=ze(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=ze(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=ze(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=ze(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ae(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ae(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ae(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ae(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ae(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ae(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),xe(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Re(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),xe(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Re(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),xe(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Re(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),xe(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Re(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),xe(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Re(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),xe(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Re(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),xe(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ve("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ve("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new ve("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=fe,E.spot2=Ce,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new ve("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ve("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=ue/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ve("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ve("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ve("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),ae=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,oe=new go.PathFigure(te,0,!0);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,a,y-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),oe.add(new go.PathSegment(go.PathSegment.Line,te,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ve("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ve("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ve("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=ue*.4;var ae=re(),oe=re(),ge=re(),le=re();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ae,oe,ge,le,le);var me=re(),ye=re(),we=re();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,le,le,we,me,ye);var Ke=re(),gt=re(),at=re();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Ke,gt,at,le,le);var st=re(),St=re(),ht=re();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,le,le,ht,st,St),te.add(new go.PathSegment(go.PathSegment.Move,ht.x*a,ht.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,st.x*a,st.y*y,St.x*a,St.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,ae.x*a,ae.y*y,oe.x*a,oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ht.x*a,ht.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,at.x*a,at.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,we.x*a,we.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,ye.x*a,ye.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,at.x*a,at.y*y,Ke.x*a,Ke.y*y,gt.x*a,gt.y*y).close()),he(ae),he(oe),he(ge),he(le),he(me),he(ye),he(we),he(Ke),he(gt),he(at),he(st),he(St),he(ht),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ve("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ge=re(),le=new go.PathFigure((z-E)*a,ee*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,oe,ge,ae,te,te),le.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));var me=ie(ae.x,ae.y);_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ae,oe,ge);var ye=ie(ae.x,ae.y);le.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,(ye.y*.1+.05*.9)*y)),le.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=ue*.35;var we=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var Ke=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Ke),he(te),he(ae),he(oe),he(ge),he(me),he(ye),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ue,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*ue;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ve("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ve("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var oe=Oe(0,ee/y,1,ee/y,E/a,1,1,.5,re());return te.spot2=new go.Spot(oe.x,oe.y),he(oe),te}),go.Shape.setFigureParameter("Arrow2",0,new ve("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ve("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var oe=Oe(0,ee/y,1,ee/y,E/a,1,1,.5,re());return te.spot2=new go.Spot(oe.x,oe.y),he(oe),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ve("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Oe(0,.5,.3,0,0,b/y,.1,b/y,re());return z.spot1=new go.Spot(te.x,te.y),te=Oe(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ve("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ve("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var ae=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Oe(0,.5,.3,ee/y,0,E/y,1,E/y,re());return ae.spot1=new go.Spot(ge.x,ge.y),ge=Oe(.7,te/y,1,.5,0,z/y,1,z/y,ge),ae.spot2=new go.Spot(ge.x,ge.y),he(ge),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new ve("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,re());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ve("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ve("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var ae=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ae.spot1=new go.Spot(0,E/y);var ge=Oe(.7,te/y,1,.5,0,z/y,1,z/y,re());return ae.spot2=new go.Spot(ge.x,ge.y),he(ge),ae}),go.Shape.setFigureParameter("Pointer",0,new ve("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Oe(.2,.65,1,.65,0,1,1,.5,re());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ve("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Oe(0,.65,1,.65,0,1,1,.5,re());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ve("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,re());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ve("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,re());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ve("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-ue*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-ue*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-ue*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-ue*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=ue*b,ee=ue*E,te=.5,ae=.1,oe=new go.PathFigure(te*a,(ae+E)*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,ae*y,(te-z)*a,(ae+E)*y,(te-b)*a,(ae+ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-E)*y,(te-b)*a,(ae-ee)*y,(te-z)*a,(ae-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,ae*y,(te+z)*a,(ae-E)*y,(te+b)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+E)*y,(te+b)*a,(ae+ee)*y,(te+z)*a,(ae+E)*y));var ge=.05,le=ue*ge;te=.05,ae=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,ae=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,ae*y,(te+le)*a,(ae-ge)*y,(te+ge)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,le=ue*ge,te=.825,ae=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ge)*y,(te+ge)*a,(ae-le)*y,(te+le)*a,(ae-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,ae*y,(te-le)*a,(ae-ge)*y,(te-ge)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,le=ue*ge,te=.5,ae=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ge)*y,(te+ge)*a,(ae-le)*y,(te+le)*a,(ae-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,ae*y,(te-le)*a,(ae-ge)*y,(te-ge)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,le=ue*ge,te=.175,ae=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ge)*y,(te+ge)*a,(ae-le)*y,(te+le)*a,(ae-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,ae*y,(te-le)*a,(ae-ge)*y,(te-ge)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,le=ue*ge,te=.05,ae=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ge)*y,(te-ge)*a,(ae-le)*y,(te-le)*a,(ae-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new ve("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ue*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var ae=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),ae.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ae=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,ae=.5,oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ge=new go.PathFigure((te+ee)*a,ae*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y,(te+z)*a,(ae+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,ae*y,(te-z)*a,(ae+ee)*y,(te-ee)*a,(ae+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y,(te-z)*a,(ae-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,ae*y,(te+z)*a,(ae-ee)*y,(te+ee)*a,(ae-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.8*a,.5*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.2*a,0,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,te=0,ae=.5,oe=(b-a)/2,ge=(E-y)/2,le=new go.PathFigure(te*a+oe,(ae+ee)*y+ge,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+ge,(te-z)*a+oe,(ae+ee)*y+ge,(te-ee)*a+oe,(ae+z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+ge,(te-ee)*a+oe,(ae-z)*y+ge,(te-z)*a+oe,(ae-ee)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*y+ge,te*a+oe,(ae-ee)*y+ge,(te-ee+z*.5)*a+oe,(ae-z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+ge,(te-ee+z*.5)*a+oe,(ae+z)*y+ge,te*a+oe,(ae+ee)*y+ge).close()),z=ue*.4,ee=.4,te=.2,ae=.5;var me=new go.PathFigure(te*a+oe,(ae+ee)*y+ge,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+ge,(te-z)*a+oe,(ae+ee)*y+ge,(te-ee)*a+oe,(ae+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+ge,(te-ee)*a+oe,(ae-z)*y+ge,(te-z)*a+oe,(ae-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*y+ge,te*a+oe,(ae-ee)*y+ge,(te-ee+z*.5)*a+oe,(ae-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+ge,(te-ee+z*.5)*a+oe,(ae+z)*y+ge,te*a+oe,(ae+ee)*y+ge).close()),z=ue*.2,ee=.2,te=.5,ae=.5;var ye=new go.PathFigure((te-ee)*a+oe,ae*y+ge,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+ge,(te-ee)*a+oe,(ae-z)*y+ge,(te-z)*a+oe,(ae-ee)*y+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+ge,(te+z)*a+oe,(ae-ee)*y+ge,(te+ee)*a+oe,(ae-z)*y+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+ge,(te+ee)*a+oe,(ae+z)*y+ge,(te+z)*a+oe,(ae+ee)*y+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+ge,(te-z)*a+oe,(ae+ee)*y+ge,(te-ee)*a+oe,(ae+z)*y+ge)),z=ue*.4,ee=.4,te=.8,ae=.5;var we=new go.PathFigure(te*a+oe,(ae-ee)*y+ge,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+ge,(te+z)*a+oe,(ae-ee)*y+ge,(te+ee)*a+oe,(ae-z)*y+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+ge,(te+ee)*a+oe,(ae+z)*y+ge,(te+z)*a+oe,(ae+ee)*y+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*y+ge,te*a+oe,(ae+ee)*y+ge,(te+ee-z*.5)*a+oe,(ae+z)*y+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+ge,(te+ee-z*.5)*a+oe,(ae-z)*y+ge,te*a+oe,(ae-ee)*y+ge).close()),z=ue*.8,ee=.8,te=1,ae=.5;var Ke=new go.PathFigure(te*a+oe,(ae-ee)*y+ge,!0);return x.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+ge,(te+z)*a+oe,(ae-ee)*y+ge,(te+ee)*a+oe,(ae-z)*y+ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+ge,(te+ee)*a+oe,(ae+z)*y+ge,(te+z)*a+oe,(ae+ee)*y+ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*y+ge,te*a+oe,(ae+ee)*y+ge,(te+ee-z*.5)*a+oe,(ae+z)*y+ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+ge,(te+ee-z*.5)*a+oe,(ae-z)*y+ge,te*a+oe,(ae-ee)*y+ge).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ge=re();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,oe,ge);var le=ie(ae.x,ae.y),me=new go.PathFigure(ae.x*a,ae.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,oe,ge,ae,te,te),me.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)),b=ue*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,oe,ge,ae,te,te),me.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ge.x*a,ge.y*y,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,oe,ge),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).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(ae),he(oe),he(ge),he(le),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ue,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,oe=1,ge=.5,le=.5,me=0,ye=new go.PathFigure(te*a,(1-ae)*y,!1);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,ge*y,oe*a,.7*y,oe*a,ge*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(le+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,ae=Math.PI/4,oe=4*(1-Math.cos(ae))/(3*Math.sin(ae)),ge=oe*.5,le=z,me=z,ye=oe*le,we=oe*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-le)*a,te*y,(ee-(ye+le)/2)*a,(te+(me+we)/2)*y,(ee-le)*a,(te+we)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-le)*a,(te-we)*y,(ee-ye)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+le)*a,te*y,(ee+ye)*a,(te-me)*y,(ee+le)*a,(te-we)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+le)*a,(te+we)*y,(ee+(ye+le)/2)*a,(te+(me+we)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Ke=new go.PathFigure(.2*a,y,!1);x.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var gt=new go.PathFigure(.8*a,y,!1);return x.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,te=.2,ae=.9,oe=new go.PathFigure((te-z)*a,ae*y,!0);x.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()),z=.1,ee=ue*.1,te=.8,ae=.9;var ge=new go.PathFigure((te-z)*a,ae*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,ae=ue*.1,oe=.1,ge=.9,le=new go.PathFigure((oe-te)*a,ge*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-te)*y,(oe-te)*a,(ge-ae)*y,(oe-ae)*a,(ge-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,ge*y,(oe+ae)*a,(ge-te)*y,(oe+te)*a,(ge-ae)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+te)*y,(oe+te)*a,(ge+ae)*y,(oe+ae)*a,(ge+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,ge*y,(oe-ae)*a,(ge+te)*y,(oe-te)*a,(ge+ae)*y)),te=.1,ae=ue*.1,oe=.4,ge=.9;var me=new go.PathFigure((oe-te)*a,ge*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-te)*y,(oe-te)*a,(ge-ae)*y,(oe-ae)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,ge*y,(oe+ae)*a,(ge-te)*y,(oe+te)*a,(ge-ae)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+te)*y,(oe+te)*a,(ge+ae)*y,(oe+ae)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,ge*y,(oe-ae)*a,(ge+te)*y,(oe-te)*a,(ge+ae)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var oe=.05,ge=ue*.05,le=.175,me=.95,ee=new go.PathFigure((le-oe)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-ge)*y,(le-ge)*a,(me-oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+ge)*a,(me-oe)*y,(le+oe)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+ge)*y,(le+ge)*a,(me+oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-ge)*a,(me+oe)*y,(le-oe)*a,(me+ge)*y));var oe=.05,ge=ue*.05,le=.375,me=.95,te=new go.PathFigure((le-oe)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-ge)*y,(le-ge)*a,(me-oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+ge)*a,(me-oe)*y,(le+oe)*a,(me-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+ge)*y,(le+ge)*a,(me+oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-ge)*a,(me+oe)*y,(le-oe)*a,(me+ge)*y));var oe=.05,ge=ue*.05,le=.625,me=.95,ae=new go.PathFigure((le-oe)*a,me*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-ge)*y,(le-ge)*a,(me-oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+ge)*a,(me-oe)*y,(le+oe)*a,(me-ge)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+ge)*y,(le+ge)*a,(me+oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-ge)*a,(me+oe)*y,(le-oe)*a,(me+ge)*y));var oe=.05,ge=ue*.05,le=.825,me=.95,ye=new go.PathFigure((le-oe)*a,me*y,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-ge)*y,(le-ge)*a,(me-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+ge)*a,(me-oe)*y,(le+oe)*a,(me-ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+ge)*y,(le+ge)*a,(me+oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-ge)*a,(me+oe)*y,(le-oe)*a,(me+ge)*y).close());var we=new go.PathFigure(0,y,!1);return x.add(we),we.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=ue*.05,ae=.35,oe=.775,ge=new go.PathFigure((ae-ee)*a,oe*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ee)*y,(ae-ee)*a,(oe-te)*y,(ae-te)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,oe*y,(ae+te)*a,(oe-ee)*y,(ae+ee)*a,(oe-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+ee)*y,(ae+ee)*a,(oe+te)*y,(ae+te)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,oe*y,(ae-te)*a,(oe+ee)*y,(ae-ee)*a,(oe+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=ue*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var ae=new go.PathFigure(0,.7*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var ae=new go.PathFigure(.15*a,.5*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=ue*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*ue,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ae=new go.PathFigure(a*.78,y*.05,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},11081: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 ve={},Ze="5.0",ie={},re=null,he=!1,Oe=!1,_e=null,fe=!1,Ce=null,ue=null,Ie=0;Ie<arguments.length;Ie++){var Be=arguments[Ie];if(Be!==null)switch(typeof Be){case"number":Ze=Be.toFixed(1);break;case"string":Be.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ze=Be:_e=Be;break;case"object":typeof Be.is3D!="undefined"?re=Be:ie=Be;break;case"boolean":he=Be,Oe=!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},ie.material_id!==void 0&&!Oe&&(he=!0)),_e!==null&&ie.id===void 0&&(ie.id=_e);var xe="",ze="",Re=!1,Ae=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var te=function(Le){return parseFloat(Le)>4?parseFloat(Le):5};ve.setHTML5Codebase=function(Le,be){ue=Le,Ct(Le,be)},ve.setJavaCodebase=ve.setJavaCodebaseVersion=ve.isCompiledInstalled=ve.setPreCompiledScriptPath=ve.setPreCompiledResourcePath=function(){},ve.setHTML5CodebaseVersion=function(Le,be){var De=parseFloat(Le);if(De!==NaN&&De<5){console.log("The GeoGebra HTML5 codebase version "+De+" is deprecated. Using version latest instead.");return}Ce=Le,Et(Le,be)},ve.getHTML5CodebaseVersion=function(){return ne},ve.getParameters=function(){return ie},ve.setFontsCSSURL=function(Le){z=Le},ve.setGiacJSURL=function(Le){},ve.setJNLPFile=function(Le){xe=Le},ve.setJNLPBaseDir=function(Le){},ve.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var be="auto",De=ie.id,ot,He=!1,nt=0;nt<arguments.length;nt++){var de=arguments[nt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?be=de:De=arguments[nt]):typeof de=="boolean"?He=de:de instanceof HTMLElement&&(ot=de)}We();function We(){if(!fe){setTimeout(We,200);return}be=_t(be);var Pt=ot||document.getElementById(De);if(!Pt){console.log("possibly bug on ajax loading? ");return}if(ve.removeExistingApplet(Pt,!1),ie.width===void 0&&Pt.clientWidth&&(ie.width=Pt.clientWidth),ie.height===void 0&&Pt.clientHeight&&(ie.height=Pt.clientHeight),!(ie.width&&ie.height)&&be==="html5"&&(delete ie.width,delete ie.height),Ae=be,be==="screenshot")gt(Pt,ie);else{var bt=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?bt=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(bt=(!ae()||Le())&&oe()),bt?(Ae="screenshot",st(Pt,ie,He,be)):Ke(Pt,ie,He)}}};function ae(){try{return window.self!==window.top}catch(Le){return!0}}function oe(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ve.getViews=function(){return re},ve.isJavaInstalled=function(){return!1};var ge=function(Le){var be=function(nt){var de=JSON.parse(nt),We=function(ft){return ft.type=="G"||ft.type=="E"},Pt=de.elements?de.elements.filter(We)[0]:de;if(!Pt||!Pt.url){De();return}ie.fileName=Pt.url,le(Pt.settings||{}),re.is3D=!0;var bt="https://www.geogebra.org/images/";ve.setPreviewImage(x||Pt.previewUrl,bt+"GeoGebra_loading.png",bt+"applet_play.png"),Le()},De=function(){ie.onError&&ie.onError(),It("Error: Fetching material (id "+ie.material_id+") failed.",ie)},ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",He="/materials/"+ie.material_id+"?scope=basic";me("https://"+ot+"/api/proxy.php?path="+encodeURIComponent(He),be,De)};function le(Le){var be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(De){Le[De]=!!Le[De]}),be.forEach(function(De){ie[De]===void 0&&Le[De]!==void 0&&(ie[De]=Le[De])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function me(Le,be,De){var ot=new XMLHttpRequest;ot.open("GET",Le),ot.onload=function(){be(ot.responseText)},ot.onerror=De,ot.send()}ve.isHTML5Installed=function(){return!0},ve.getLoadedAppletType=function(){return Ae},ve.setPreviewImage=function(Le,be,De){x=Le,b=be,E=De},ve.removeExistingApplet=function(Le,be){var De;typeof Le=="string"&&(Le=document.getElementById(Le)),Ae=null;var ot=null;for(De=0;De<Le.childNodes.length;De++){var He=Le.childNodes[De],nt=He.className;nt==="applet_screenshot"?be?(He.style.display="block",Ae="screenshot"):He.style.display="none":nt!=="applet_scaler prerender"&&(Le.removeChild(He),ot=nt&&nt.indexOf("appletParameters")!=-1?He.id:null,De--)}var de=ie.id!==void 0?ie.id:ot,We=window[de];We&&typeof We.getBase64=="function"&&(We.remove(),window[de]=null)},ve.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=ve.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},ve.startAnimation=function(){var Le=ve.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},ve.stopAnimation=function(){var Le=ve.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},ve.getAppletObject=function(){var Le=ie.id!==void 0?ie.id:"ggbApplet";return window[Le]},ve.resize=function(){};var ye=function(Le,be,De){var ot=document.createElement("param");ot.setAttribute("name",be),ot.setAttribute("value",De),Le.appendChild(ot)},we=function(Le){return Le&&Le!=="false"},Ke=function(Le,be,De){te(ne)<=4.2&&(De=!0);var ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var He=document.createElement("div");He.classList.add("appletParameters","notranslate");var nt=be.width,de=be.height;if(be.disableAutoScale=be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():be.disableAutoScale,be.width!==void 0)if(te(ne)<=4.4)we(be.showToolBar)&&(be.height-=7),we(be.showAlgebraInput)&&(be.height-=37),be.width<605&&we(be.showToolBar)&&(be.width=605,nt=605);else{var We=100;(we(be.showToolBar)||we(be.showMenuBar))&&(be.hasOwnProperty("customToolBar")&&(be.customToolbar=be.customToolBar),We=we(be.showMenuBar)?245:155),nt<We&&(be.width=We,nt=We)}He.style.border="none",He.style.display="inline-block";for(var Pt in be)be.hasOwnProperty(Pt)&&Pt!=="appletOnLoad"&&He.setAttribute("data-param-"+Pt,be[Pt]);z&&He.setAttribute("data-param-fontscssurl",z),ve.resize=function(){GGBAppletUtils.responsiveResize(Le,be)},window.addEventListener("resize",function(ut){ve.resize()});var bt=typeof be.appletOnLoad=="function"?be.appletOnLoad:function(){};if(!De&&be.width!==void 0){be.hasOwnProperty("showSplash")||He.setAttribute("data-param-showSplash","false");var ft=Le.querySelector(".applet_scaler.prerender"),Fe=ft!==null;if(Fe)var pe=ft.querySelector(".ggb_preview");else{var pe=ht(nt,de,be.borderColor,!1);ft=document.createElement("div"),ft.className="applet_scaler",ft.style.position="relative",ft.style.display="block",ft.style.width=nt+"px",ft.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ft,"66%"),te(ne)>=5?(be.appletOnLoad=function(ut){var mt=Le.querySelector(".ggb_preview");mt&&mt.parentNode.removeChild(mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ft),window.GGBT_wsf_view&&$(window).trigger("resize"),bt(ut)},Fe||ft.appendChild(pe)):He.appendChild(pe),ft.appendChild(He),Fe||Le.appendChild(ft),setTimeout(function(){ve.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(He),Le.appendChild(Pe),be.appletOnLoad=function(ut){ve.resize(),bt(ut)}}function Ge(ut,mt){mt&&typeof mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ut,mt.appletOnLoad):renderGGBElement(ut),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mt)}function Me(ut,mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ut,params:mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gt){Ge(Gt.article,Gt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ut.className+=" geogebraweb")):Ge(ut,mt)}if(ot){scriptLoadStarted=!0;for(var Xe=0;Xe<He.childNodes.length;Xe++){var et=He.childNodes[Xe].tagName;et==="TABLE"&&(He.removeChild(He.childNodes[Xe]),Xe--)}if(ggbHTML5LoadedScript!==null){var tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tt!=null&&tt.parentNode.removeChild(tt)}var it=document.createElement("script"),dt=function(){Me(He,be)};it.src=ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=it.src,It("GeoGebra HTML5 codebase loaded: '"+ze+"'.",be),!ue&&(!Ce||Ce=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dt()):ze.requirejs?__webpack_require__.e(981).then(function(){var ut=[__webpack_require__(60981)];dt.apply(null,ut)}.bind(this)).catch(__webpack_require__.oe):(it.onload=dt,Le.appendChild(it))}else Me(He,be);be.height=de,be.width=nt},gt=function(Le,be,De){var ot=ht(be.width,be.height,be.borderColor,De),He=document.createElement("div");He.style.position="relative",He.style.display="block",He.style.width=be.width+"px",He.style.height=be.height+"px",He.className="applet_screenshot applet_scaler"+(De?" applet_screenshot_play":""),He.appendChild(ot);var nt=GGBAppletUtils.getScale(be,Le,De);De?(Le.appendChild(St()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(He,"66%"),Le.appendChild(He),nt!==1&&!isNaN(nt)&&(GGBAppletUtils.scaleElement(He,nt),He.style.width=be.width+"px",He.style.height=be.height+"px",He.parentNode.style.width=be.width*nt+"px",He.parentNode.style.height=be.height*nt+"px"),ve.resize=function(){at(Le,ot,He,De)},window.addEventListener("resize",function(de){ve.resize()}),ve.resize()};function at(Le,be,De,ot){if(Le.contains(be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var He=GGBAppletUtils.getScale(ie,Le,ot);De.parentNode!==null&&(!isNaN(He)&&He!==1?(GGBAppletUtils.scaleElement(De,He),De.parentNode.style.width=ie.width*He+"px",De.parentNode.style.height=ie.height*He+"px"):(GGBAppletUtils.scaleElement(De,1),De.parentNode.style.width=ie.width+"px",De.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Le),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ve.onExitFullscreen=function(Le,be){be.appendChild(Le)};var st=function(Le,be,De,ot){gt(Le,be,!0);for(var He=function(){var We=[];for(de=0;de<Le.childNodes.length;de++)We.push(Le.childNodes[de]);if(window.GGBT_wsf_view){var Pt=window.GGBT_wsf_view.renderFullScreen(Le,be.id),bt=document.getElementById("fullscreencontainer"),ft=jQuery(Le).find(".fullscreencontent");ft.length>0?(Pt.remove(),ft.attr("id","fullscreencontent").show(),jQuery(bt).append(ft),window.dispatchEvent(new Event("resize"))):Ke(Pt,be,!1),window.GGBT_wsf_view.launchFullScreen(bt)}else Ae=ot,Ke(Le,be,!1);if(!window.GGBT_wsf_view)for(de=0;de<We.length;de++)Le.removeChild(We[de])},nt=Le.getElementsByClassName("ggb_preview_play"),de=0;de<nt.length;de++)nt[de].addEventListener("click",He,!1),nt[de].addEventListener("ontouchstart",He,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},St=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var be='.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");}',De=document.createElement("style");De.styleSheet?De.styleSheet.cssText=be:De.appendChild(document.createTextNode(be)),document.getElementsByTagName("head")[0].appendChild(De)}return Le},ht=function(Le,be,De,ot){var He=document.createElement("div");He.className="ggb_preview",He.style.position="absolute",He.style.zIndex="90",He.style.width=Le-2+"px",He.style.height=be-2+"px",He.style.top="0px",He.style.left="0px",He.style.overflow="hidden",He.style.backgroundColor="white";var nt="lightgrey";De!==void 0&&(De==="none"?nt="transparent":nt=De),He.style.border="1px solid "+nt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var We,Pt,bt;if(!ot){We=document.createElement("img"),We.style.position="absolute",We.style.zIndex="1001",We.style.opacity=1,de.style.opacity=.3,Pt=360,Pt>Le/4*3&&(Pt=Le/4*3),bt=Pt/5.8,We.setAttribute("src",b),We.setAttribute("width",Pt),We.setAttribute("height",bt);var ft=(Le-Pt)/2,Fe=(be-bt)/2;We.style.left=ft+"px",We.style.top=Fe+"px",He.appendChild(We)}}return He.appendChild(de),He},_t=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},wt=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(Le,be){if(ne=Le,be){Ct(ne,!0);return}var De=!he;if(De){var ot=te(ne);!isNaN(ot)&&ot<4.4&&(De=!1)}var He,nt;window.location.protocol.substr(0,4)==="http"?He=window.location.protocol:He="http:";var de=ne.indexOf("//");de>0?nt=ne:de===0?nt=He+ne:nt="https://www.geogebra.org/apps/5.2.814.0/";for(var We in wt)if(ne.slice(wt[We].length*-1)===wt[We]||ne.slice((wt[We].length+1)*-1)===wt[We]+"/"){Ct(nt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&De&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!we(ie.showToolBar)&&!we(ie.showMenuBar)&&!we(ie.showAlgebraInput)&&!we(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?nt+="webSimple/":nt+="web3d/",Ct(nt,!1)},Ct=function(Le,be){if(Le.requirejs){ze=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),ze=Le,be===null&&(be=Le.indexOf("http")===-1),Re=be,a="web.nocache.js",y=!1;var De=ze.split("/");De.length>1&&(!be&&De[De.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):wt.indexOf(De[De.length-2])>=0&&(a=De[De.length-2]+".nocache.js")),De=Le.split("/"),ne=De[De.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 ot=parseFloat(ne);ot!==NaN&&ot<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead."),Et("5.0",be))},It=function(Le,be){window.console&&window.console.log&&(!be||typeof be.showLogging=="undefined"||be.showLogging&&be.showLogging!=="false")&&console.log(Le)};ie.material_id!==void 0?ge(Jt):Jt();function Jt(){var Le=Ze;Ce!==null?Le=Ce:parseFloat(Le)<5&&(Le="5.0"),Et(Le,!1),ue!==null&&Ct(ue,Re),fe=!0}return ve},GGBAppletUtils=function(){"use strict";function ve(){return window.GGBT_wsf_edit!==void 0}function Ze(fe,Ce){Ce!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Ce+","+Ce+")",fe.style.webkitTransform="scale("+Ce+","+Ce+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function ie(fe,Ce,ue,Ie,Be,xe){var ze=null;if(xe!=null&&xe!="")for(var Re=fe.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+xe+" ")>-1){ze=Re;break}else Re=Re.parentNode;var Ae=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(ze)Ae=ze.offsetWidth,ne=Math.max(Ie?ze.offsetWidth:0,ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ae):(Ae=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=Ae&&(Be===void 0||!Be)&&(document.dir==="rtl"?(x=Ae-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return fe&&((ue===void 0||!ue)&&Ce>0&&Ce+y<Ae?Ae=Ce:Ae-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Ae,height:ne}}function re(fe,Ce,ue,Ie,Be){if(fe.isScreenshoGenerator)return 1;var xe=Ie!==void 0&&Ie,ze=fe.noScaleMargin!=null&&fe.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},Ae=Re(fe.autoHeight),ne=ie(Ce,fe.width,ue,Ae,xe&&window.GGBT_wsf_view||ze,Be),a=parseInt(ne.width),y=fe.width,x=fe.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=xe?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(fe,Ce,ue){var Ie=1,Be,xe=!1;if(fe.hasOwnProperty("allowUpscale")&&(xe=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Ie=parseFloat(fe.scale),(isNaN(Ie)||Ie===null||Ie===0)&&(Ie=1),Ie>1&&(xe=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xe=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Be=re(fe,Ce,xe,ue,fe.scaleContainerClass);else return Ie;return xe&&(!fe.hasOwnProperty("scale")||Ie===1)?Be:Math.min(Ie,Be)}function Oe(fe){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=fe.getBoundingClientRect(),Be=(Ce-Ie.width)/2,xe=(ue-Ie.height)/2;xe<0&&(xe=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be<40?fe.style.left="40px":fe.style.left=Be+"px",fe.style.top=xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe<40?fe.style.top="40px":fe.style.top=xe+"px",fe.style.left=Be+"px")}function _e(fe,Ce){var ue=fe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ie=he(Ce,fe);ve()&&ue.setAttribute("data-param-scale",Ie);for(var Be=null,xe=0;xe<fe.childNodes.length;xe++)if(fe.childNodes[xe].className!==void 0&&fe.childNodes[xe].className.match(/^applet_scaler/)){Be=fe.childNodes[xe];break}if(Be!==null&&Be.querySelector(".noscale")!==null)return;var ze=Ce.id!==void 0?Ce.id:"ggbApplet",Re=window[ze];(Re==null||!Re.recalculateEnvironments)&&Be!==null&&!Be.className.match(/fullscreen/)&&(Be.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(Be.parentNode.style.width=Ce.width*Ie+"px",Be.parentNode.style.height=Ce.height*Ie+"px",Ze(Be,Ie)):(Ze(Be,1),Be.parentNode.style.width=Ce.width+"px",Be.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Oe(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:ve,positionCenter:Oe,getScale:he,scaleElement:Ze}}();__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 ve=n.location.search;return ve.indexOf(J)!=-1||ve.indexOf(K)!=-1}function q(ve,Ze){}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(ve){var Ze=s[L].bindings;s[L].bindings=function(){for(var ie=Ze?Ze():{},re=ve[webModule.__softPermutationId],he=O;he<re.length;he++){var Oe=re[he];ie[Oe[O]]=Oe[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var ve=o.createElement(Q);if(ve.id=L,ve.style.cssText=R+S,ve.tabIndex=-1,o.body.appendChild(ve),t=ve.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ze=document.compatMode==U?V:W;t.write(Ze+X),t.close()}}}function w(ve){function Ze(re){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Oe=he();if(Oe){re();return}function _e(){if(!Oe){if(!he())return;Oe=!0,re(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var fe=setInterval(function(){_e()},$)}function ie(re){var he=u(),Oe=he.body,_e=he.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=re,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),Oe.appendChild(_e)}Ze(function(){ie(ve)})}webModule.__startLoadingFragment=function(ve){return C(ve)},webModule.__installRunAsyncCode=function(ve){var Ze=u(),ie=Ze.body,re=Ze.createElement(_);re.language=ab,re.text=ve,ie.appendChild(re),ie.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(ve){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ve){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ve){var Ze=c[ve];return Ze==null?null:Ze},r=d,webModule.__errFn=e}function B(){function ve(fe){var Ce=fe.lastIndexOf(rb);Ce==-1&&(Ce=fe.length);var ue=fe.indexOf(sb);ue==-1&&(ue=fe.length);var Ie=fe.lastIndexOf(tb,Math.min(ue,Ce));return Ie>=O?fe.substring(O,Ie+P):W}function Ze(fe){if(!fe.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=fe+vb,fe=ve(Ce.src)}return fe}function ie(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function re(){for(var fe=o.getElementsByTagName(_),Ce=O;Ce<fe.length;++Ce)if(fe[Ce].src.indexOf(xb)!=-1)return ve(fe[Ce].src);return W}function he(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Oe(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var _e=ie();return _e==W&&(_e=re()),_e==W&&(_e=he()),_e==W&&Oe()&&(_e=ve(o.location.href)),_e=Ze(_e),_e}function C(ve){return ve.match(/^\//)||ve.match(/^[a-zA-Z]+:\/\//)?ve:webModule.__moduleBase+ve}function D(){var ve=[],Ze=O,ie=[],re=[];function he(fe){var Ce=re[fe](),ue=ie[fe];if(Ce in ue)return Ce;var Ie=[];for(var Be in ue)Ie[ue[Be]]=Be;throw r&&r(fe,Ie,Ce),null}if(__gwt_isKnownPropertyValue=function(fe,Ce){return Ce in ie[fe]},webModule.__getPropMap=function(){var fe={};for(var Ce in ie)ie.hasOwnProperty(Ce)&&(fe[Ce]=he(Ce));return fe},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Oe;try{Oe=Cb;var _e=Oe.indexOf(Db);_e!=-1&&(Ze=parseInt(Oe.substring(_e+P),$),Oe=Oe.substring(O,_e))}catch(fe){}return webModule.__softPermutationId=Ze,C(Oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(ve,Ze,ie){"use strict";ie.d(Ze,{Ax:function(){return _e},Ds:function(){return fe},KI:function(){return ue},SI:function(){return Oe},f1:function(){return he}});var re=ie(90524);function he(Ie){let Be=!0;if(Ie.length>0){for(let xe=0;xe<Ie.length;xe++)if(Ie[xe].compile_success==0||!Ie[xe].compile_success){Be=!1;break}}else Be=!1;return Be}function Oe(Ie,Be=""){let xe=[];for(let ze=0;ze<Ie.length;ze++){let Re=Ie[ze],Ae=Be?`${Be}/${Re.name}`:`${Re.name}`;xe.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:Ae})}return xe}function _e(Ie,Be,xe){for(let ze=0;ze<Ie.length;ze++){let Re=Ie[ze];if(Re.key===Be){Re.children=xe;break}Re.children&&_e(Re.children,Be,xe)}return Ie}function fe(Ie,Be,xe){let ze;return function(){let Re=this,Ae=arguments,ne=function(){ze=null,xe||Ie.apply(Re,Ae)},a=xe&&!ze;clearTimeout(ze),ze=setTimeout(ne,Be),a&&Ie.apply(Re,Ae)}}const Ce=!0,ue=re.Z.API_SERVER},64885:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return ne}});var re=ie(3113),he=ie(59301),Oe=Object.defineProperty,_e=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Be=(a,y,x)=>y in a?Oe(a,y,{enumerable:!0,configurable:!0,writable:!0,value:x}):a[y]=x,xe=(a,y)=>{for(var x in y||(y={}))ue.call(y,x)&&Be(a,x,y[x]);if(Ce)for(var x of Ce(y))Ie.call(y,x)&&Be(a,x,y[x]);return a},ze=(a,y)=>_e(a,fe(y)),Re=(a,y)=>{var x={};for(var b in a)ue.call(a,b)&&y.indexOf(b)<0&&(x[b]=a[b]);if(a!=null&&Ce)for(var b of Ce(a))y.indexOf(b)<0&&Ie.call(a,b)&&(x[b]=a[b]);return x},Ae=(a,y,x)=>new Promise((b,E)=>{var z=ae=>{try{te(x.next(ae))}catch(oe){E(oe)}},ee=ae=>{try{te(x.throw(ae))}catch(oe){E(oe)}},te=ae=>ae.done?b(ae.value):Promise.resolve(ae.value).then(z,ee);te((x=x.apply(a,y)).next())});const ne=a=>{var y=a,{children:x}=y,b=Re(y,["children"]);const[E,z]=(0,he.useState)(!1);return he.createElement(re.ZP,ze(xe({},b),{loading:E,onClick:ee=>Ae(void 0,null,function*(){try{z(!0),yield b.onClick(ee),z(!1)}catch(te){console.error(te),z(!1)}})}),x)}},6077:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return ze}});var re=ie(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Oe=ie(92310),_e=ie.n(Oe),fe=ie(71418),Ce=ie(2859),ue=ie(82093),Ie=ie(49661),Be=(Re,Ae,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Re,Ae)).next())}),ze=({data:Re,className:Ae,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,re.useRef)(null),ee=(0,re.useRef)(null),te=(0,re.useRef)(null),ae=(0,re.useRef)(null),[oe,ge]=(0,re.useState)(!1),[le,me]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&ye()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Re==null?void 0:Re.visible]);const ye=()=>Be(void 0,null,function*(){ge(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const st=yield(0,Ie.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=st,z.current.onload=function(){at()},ge(!1),me("")}),we=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},Ke=st=>Be(void 0,null,function*(){ge(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const St=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:st.dataUrl}});St!=null&&St.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:St==null?void 0:St.id,settings:JSON.stringify(st.state)}})).status===0&&x():St!=null&&St.id&&x(St),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),me("")}),gt=()=>{const st=document.querySelector('a[href="https://markerjs.com/"]');st&&st.parentNode&&(st.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(ht=>{const _t=document.querySelector(ht.name);_t&&_t.setAttribute("title",ht.title)})},at=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Ke),ee.current.addEventListener("beforeclose",we),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Re!=null&&Re.snapshotData&&ee.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),gt()},300)};return re.createElement(re.Fragment,null,(Re==null?void 0:Re.visible)&&re.createElement(fe.Z,{spinning:oe,tip:le,style:{position:"absolute"}},re.createElement("div",{ref:ae,className:_e()(he.imageDimensions,Ae,ne?he.fullWidth:""),style:a},re.createElement("img",{className:he.img,ref:z}))))}},88615:function(ve,Ze,ie){"use strict";var re=ie(59301),he=ie(95237),Oe=ie(43604),_e=ie(99313),fe=ie(3113),Ce=ie(7664),ue=ie(21697),Ie=ie(48136),Be=ie(59301);const xe=(0,re.forwardRef)(({callback:ze,showSaveButton:Re,value:Ae=""},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 "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Be.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Be.createElement(Oe.Z,{flex:"110px",className:ue.Z.item},Be.createElement("div",null,Be.createElement(Ce.Z,{value:`$$${ee.value}$$`}),ee.name),Be.createElement("div",{className:ue.Z.children},ee.children.map((ae,oe)=>Be.createElement("div",{key:oe},Be.createElement("h1",null,ae.name),Be.createElement(he.Z,{gutter:[10,10]},ae.data.map((ge,le)=>Be.createElement(Oe.Z,{key:le,onClick:()=>b(ge),className:ue.Z.diamond},Be.createElement(Ce.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Be.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Be.createElement(Oe.Z,{flex:"110px",className:ue.Z.item},Be.createElement("div",null,Be.createElement(Ce.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Be.createElement("div",{className:ue.Z.children},ee.children.map((ae,oe)=>Be.createElement("div",{key:oe},ae.name&&Be.createElement("h1",null,ae.name),Be.createElement(he.Z,{gutter:[10,10]},ae.data.map((ge,le)=>Be.createElement(Oe.Z,{key:le,onClick:()=>b(ge),className:ue.Z.diamond},Be.createElement(Ce.Z,{value:"`$$"+ge.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})),Be.createElement("div",{className:ue.Z.mathWrap},Be.createElement(_e.default,{defaultActiveKey:"1",items:E}),Be.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ae||""),Re&&Be.createElement("div",{className:ue.Z.button},Be.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ze.Z=xe},90970:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return Be}});var re=ie(59301),he=ie(76560),Oe=ie(44e3),_e=ie(20834),fe=ie(34055),Ce={myMenu:"myMenu___BgVun",layoutSider:"layoutSider___rUtSB"};const ue={background:"linear-gradient( 180deg, #FFFFFF -20%, #BCD7FF 100%)"},Ie=({globalSetting:xe,mainDom:ze,dispatch:Re})=>{var Ae;const[ne,a]=(0,re.useState)([]),[y,x]=(0,re.useState)([]),b=(0,re.useMemo)(()=>{var z,ee,te;const ae=ge=>!(ge!=null&&ge.hidden)&&!((0,fe.JA)()&&(ge==null?void 0:ge.link)==="/paperlibrary"),oe=((ee=(z=xe==null?void 0:xe.setting)==null?void 0:z.navbar)==null?void 0:ee.filter(ae))||[];for(const ge of oe)ge.subitem=((te=ge==null?void 0:ge.subitem)==null?void 0:te.filter(ae))||[];return oe},[(Ae=xe==null?void 0:xe.setting)==null?void 0:Ae.navbar]),E=(z,ee)=>{let te="",ae=[];for(const oe of z)if(oe.link===ee&&(te=oe.link),oe.subitem&&oe.subitem.length>0){for(const ge of oe.subitem)if(ge.link===ee&&(te=ge.link,ae=[oe.link]),ge.subitem){const le=E(ge.subitem,ee);le.selectedKey&&(te=le.selectedKey,ae=[oe.link,...le.openKeys])}}return{selectedKey:te,openKeys:ae}};return(0,re.useEffect)(()=>{const z=location.pathname,{selectedKey:ee,openKeys:te}=E(b,z);a(ee?[ee]:[]),te.length>0?x(te):x([])},[b]),(0,re.useEffect)(()=>{Re({type:"globalSetting/headerFooterToggle",payload:!0})},[]),re.createElement(Oe.default,{style:ue},xe.showHeader&&xe.showHeaderFooter&&re.createElement(Oe.default.Sider,{className:`flex flex-col ${Ce.layoutSider}`,width:212,style:ue},re.createElement(_e.default,{className:`w-full ${Ce.myMenu}`,mode:"inline",selectedKeys:ne,openKeys:y,onOpenChange:z=>x(z),onSelect:({key:z})=>{z&&z.includes("/")&&he.history.push(z)},items:b.map(z=>{var ee;return{key:z.link,label:z.name,children:((ee=z.subitem)==null?void 0:ee.length)>0?z.subitem.map(te=>{var ae;return{key:te.link,label:te.name,children:((ae=te.subitem)==null?void 0:ae.length)>0?te.subitem.map(oe=>({key:oe.link,label:oe.name})):void 0}}):void 0}})})),re.createElement(Oe.default.Content,{style:{backgroundColor:"#EEF5FE"}},ze))};var Be=(0,he.connect)(({globalSetting:xe,user:ze})=>({globalSetting:xe,user:ze}))(Ie)},44905:function(ve,Ze,ie){"use strict";ie.d(Ze,{h:function(){return ee}});var re=ie(59301),he=ie(57809),Oe=ie(78241),_e=ie(3113),fe=ie(89780),Ce=ie.n(fe),ue=ie(66543),Ie=ie(59598),Be=Object.defineProperty,xe=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,oe)=>ae in te?Be(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:oe}):te[ae]=oe,y=(te,ae)=>{for(var oe in ae||(ae={}))Ae.call(ae,oe)&&a(te,oe,ae[oe]);if(Re)for(var oe of Re(ae))ne.call(ae,oe)&&a(te,oe,ae[oe]);return te},x=(te,ae)=>xe(te,ze(ae));const b=he.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ze.Z=({callback:te,onCancel:ae})=>{const[oe,ge]=(0,re.useState)("python");function le(ye){ge(z[ye][1])}function me(ye){te(ye)}return re.createElement(Oe.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),re.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(he.default,{getPopupContainer:ye=>ye.parentNode,onChange:le},Object.keys(z).map(ye=>re.createElement(b,{key:ye,value:ye},z[ye][0])))),re.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(ee,{mode:oe})),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:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:oe,options:ge={}}){const le=(0,re.useRef)(),[me,ye]=(0,re.useState)();return(0,re.useEffect)(()=>{if(me){let we=function(Ke){const gt=Ke.getValue();ae&&ae(gt)};return me.on("change",we),()=>{me.off("change",we)}}},[me,ae]),(0,re.useEffect)(()=>{me&&me.setOption("mode",oe)},[me,oe]),(0,re.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,re.useEffect)(()=>{if(le.current&&!me){const we=Ce().fromTextArea(le.current,y({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));ye(we)}},[le.current,me]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:le}))}},89389:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return la}});var re=ie(59301),he=ie(89780),Oe=ie.n(he),_e=ie(76374),fe=ie(66543),Ce=ie(6313),ue=ie(25717),Ie=ie(99498),Be=ie(25419),xe=ie(67549),ze=ie(7664),Re=({value:se="",className:ce,showTextOnly:Se,showLines:ke,style:qe={}})=>{const Qe=(0,re.useMemo)(()=>"",[se]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:Qe}}))},Ae=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(se,ce,Se)=>ce in se?ne(se,ce,{enumerable:!0,configurable:!0,writable:!0,value:Se}):se[ce]=Se,ee=(se,ce)=>{for(var Se in ce||(ce={}))b.call(ce,Se)&&z(se,Se,ce[Se]);if(x)for(var Se of x(ce))E.call(ce,Se)&&z(se,Se,ce[Se]);return se},te=(se,ce)=>a(se,y(ce));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 oe({onActionCallback:se,title:ce,icon:Se,actionName:ke,className:qe="",children:Qe}){function Lt(){se(ke)}return Ae.createElement("a",{title:ce,className:qe,onClick:Lt},Ae.createElement("i",{className:`${Se}`}),Qe)}var ge=({watch:se,showNullButton:ce,showNullProgramButton:Se,onActionCallback:ke,fullScreen:qe,insertTemp:Qe,hidetoolBar:Lt,extraUse:lt})=>{const ct=[...ae,{title:`${se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ae.createElement("ul",{className:"markdown-toolbar-container"},!Lt&&ct.map((Ft,rn)=>Ae.createElement("li",{key:rn},Ft.actionName?Ae.createElement(oe,te(ee({},Ft),{onActionCallback:ke})):Ae.createElement("span",{className:"v-line"}))),ce?Ae.createElement("li",null,Ae.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},Ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Ae.createElement(Ae.Fragment,null,Ae.createElement("li",null,Ae.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},Ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ae.createElement("li",null,Ae.createElement(oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},Ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Qe&&Ae.createElement("li",null,Ae.createElement(oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qe}`,onActionCallback:ke},Ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),lt&&Ae.createElement("li",null,lt),Ae.createElement("li",{className:"btn-full-screen"},Ae.createElement(oe,{icon:`${qe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},le=ie(75790),me=ie(78241),ye=ie(92832),we=ie(3113),Ke=Object.defineProperty,gt=Object.defineProperties,at=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,_t=(se,ce,Se)=>ce in se?Ke(se,ce,{enumerable:!0,configurable:!0,writable:!0,value:Se}):se[ce]=Se,wt=(se,ce)=>{for(var Se in ce||(ce={}))St.call(ce,Se)&&_t(se,Se,ce[Se]);if(st)for(var Se of st(ce))ht.call(ce,Se)&&_t(se,Se,ce[Se]);return se},Et=(se,ce)=>gt(se,at(ce));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var It=({callback:se,onCancel:ce})=>{function Se(ke){se(ke)}return re.createElement(me.default,Et(wt({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),re.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(ye.default,null)),re.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(ye.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(we.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))},Jt=ie(44905),Le=ie(45596),be=ie(43418),De=ie(95237),ot=ie(6077),He=ie(59301),nt=({callback:se,onCancel:ce})=>{const Se=document.createElement("canvas"),ke=Se.getContext("2d");Se.width=1e3,Se.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,Se.width,Se.height);const qe=Se.toDataURL("image/png");return He.createElement(be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},He.createElement(De.Z,{style:{height:"100vh"}},He.createElement(ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qe,visible:!0,title:String(Date.now())},onOk:Qe=>{se({src:Qe.url})},onClose:ce})))},de=ie(12378);function We(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(We,go.CommandHandler),We.prototype.canAlignSelection=function(){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<2)},We.prototype.alignLeft=function(){var se=this.diagram;se.startTransaction("aligning left");var ce=1/0;se.selection.each(function(Se){Se instanceof go.Link||(ce=Math.min(Se.position.x,ce))}),se.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ce,Se.position.y))}),se.commitTransaction("aligning left")},We.prototype.alignRight=function(){var se=this.diagram;se.startTransaction("aligning right");var ce=-1/0;se.selection.each(function(Se){if(!(Se instanceof go.Link)){var ke=Se.actualBounds.x+Se.actualBounds.width;ce=Math.max(ke,ce)}}),se.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ce-Se.actualBounds.width,Se.position.y))}),se.commitTransaction("aligning right")},We.prototype.alignTop=function(){var se=this.diagram;se.startTransaction("alignTop");var ce=1/0;se.selection.each(function(Se){Se instanceof go.Link||(ce=Math.min(Se.position.y,ce))}),se.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ce))}),se.commitTransaction("alignTop")},We.prototype.alignBottom=function(){var se=this.diagram;se.startTransaction("aligning bottom");var ce=-1/0;se.selection.each(function(Se){if(!(Se instanceof go.Link)){var ke=Se.actualBounds.y+Se.actualBounds.height;ce=Math.max(ke,ce)}}),se.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ce-Se.actualBounds.height))}),se.commitTransaction("aligning bottom")},We.prototype.alignCenterX=function(){var se=this.diagram,ce=se.selection.first();if(ce){se.startTransaction("aligning Center X");var Se=ce.actualBounds.x+ce.actualBounds.width/2;se.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(Se-ke.actualBounds.width/2,ke.actualBounds.y))}),se.commitTransaction("aligning Center X")}},We.prototype.alignCenterY=function(){var se=this.diagram,ce=se.selection.first();if(ce){se.startTransaction("aligning Center Y");var Se=ce.actualBounds.y+ce.actualBounds.height/2;se.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,Se-ke.actualBounds.height/2))}),se.commitTransaction("aligning Center Y")}},We.prototype.alignColumn=function(se){var ce=this.diagram;ce.startTransaction("align Column"),se===void 0&&(se=0),se=parseFloat(se);var Se=new Array;ce.selection.each(function(lt){lt instanceof go.Link||Se.push(lt)});for(var ke=0;ke<Se.length-1;ke++){var qe=Se[ke],Qe=qe.actualBounds.y+qe.actualBounds.height+se,Lt=Se[ke+1];Lt.move(new go.Point(qe.actualBounds.x,Qe))}ce.commitTransaction("align Column")},We.prototype.alignRow=function(se){se===void 0&&(se=0),se=parseFloat(se);var ce=this.diagram;ce.startTransaction("align Row");var Se=new Array;ce.selection.each(function(lt){lt instanceof go.Link||Se.push(lt)});for(var ke=0;ke<Se.length-1;ke++){var qe=Se[ke],Qe=qe.actualBounds.x+qe.actualBounds.width+se,Lt=Se[ke+1];Lt.move(new go.Point(Qe,qe.actualBounds.y))}ce.commitTransaction("align Row")},We.prototype.canRotate=function(se){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<1)},We.prototype.rotate=function(se){se===void 0&&(se=90);var ce=this.diagram;ce.startTransaction("rotate "+se.toString());var ce=this.diagram;ce.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=se)}),ce.commitTransaction("rotate "+se.toString())},We.prototype.pullToFront=function(){var se=this.diagram;se.startTransaction("pullToFront");var ce=new go.Map;se.selection.each(function(Se){ce.set(Se.layer,0)}),ce.iteratorKeys.each(function(Se){var ke=0;Se.parts.each(function(qe){if(!qe.isSelected){var Qe=qe.zOrder;isNaN(Qe)?qe.zOrder=0:ke=Math.max(ke,Qe)}}),ce.set(Se,ke)}),se.selection.each(function(Se){We._assignZOrder(Se,ce.get(Se.layer)+1)}),se.commitTransaction("pullToFront")},We.prototype.pushToBack=function(){var se=this.diagram;se.startTransaction("pushToBack");var ce=new go.Map;se.selection.each(function(Se){ce.set(Se.layer,0)}),ce.iteratorKeys.each(function(Se){var ke=0;Se.parts.each(function(qe){if(!qe.isSelected){var Qe=qe.zOrder;isNaN(Qe)?qe.zOrder=0:ke=Math.min(ke,Qe)}}),ce.set(Se,ke)}),se.selection.each(function(Se){We._assignZOrder(Se,ce.get(Se.layer)-1-We._findGroupDepth(Se))}),se.commitTransaction("pushToBack")},We._assignZOrder=function(se,ce,Se){Se===void 0&&(Se=se),se.layer===Se.layer&&(se.zOrder=ce),se instanceof go.Group&&se.memberParts.each(function(ke){We._assignZOrder(ke,ce+1,Se)})},We._findGroupDepth=function(se){if(se instanceof go.Group){var ce=0;return se.memberParts.each(function(Se){ce=Math.max(ce,We._findGroupDepth(Se))}),ce+1}else return 0},We.prototype.doKeyDown=function(){var se=this.diagram;if(se!==null){var ce=se.lastInput;if(ce.key==="Up"||ce.key==="Down"||ce.key==="Left"||ce.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)}},We.prototype._getAllParts=function(){var se=new Array;return this.diagram.nodes.each(function(ce){se.push(ce)}),this.diagram.parts.each(function(ce){se.push(ce)}),se},We.prototype._arrowKeyMove=function(){var se=this.diagram,ce=se.lastInput,Se=0,ke=0;if(ce.control||ce.meta)Se=1,ke=1;else if(se.grid!==null){var qe=se.grid.gridCellSize;ke=qe.width,Se=qe.height}se.startTransaction("arrowKeyMove"),se.selection.each(function(Qe){ce.key==="Up"?Qe.move(new go.Point(Qe.actualBounds.x,Qe.actualBounds.y-Se)):ce.key==="Down"?Qe.move(new go.Point(Qe.actualBounds.x,Qe.actualBounds.y+Se)):ce.key==="Left"?Qe.move(new go.Point(Qe.actualBounds.x-ke,Qe.actualBounds.y)):ce.key==="Right"&&Qe.move(new go.Point(Qe.actualBounds.x+ke,Qe.actualBounds.y))}),se.commitTransaction("arrowKeyMove")},We.prototype._arrowKeySelect=function(){var se=this.diagram,ce=se.lastInput,Se=null;ce.key==="Up"?Se=this._findNearestPartTowards(270):ce.key==="Down"?Se=this._findNearestPartTowards(90):ce.key==="Left"?Se=this._findNearestPartTowards(180):ce.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ce.shift?Se.isSelected=!0:ce.control||ce.meta?Se.isSelected=!Se.isSelected:se.select(Se))},We.prototype._findNearestPartTowards=function(se){var ce=this.diagram.selection.first();if(ce===null)return null;for(var Se=ce.actualBounds.center,ke=this._getAllParts(),qe=1/0,Qe=ce,Lt=0;Lt<ke.length;Lt++){var lt=ke[Lt];if(lt!==ce&<.canSelect()){var ct=lt.actualBounds.center,Ft=Se.directionPoint(ct),rn=this._angleCloseness(Ft,se);if(rn<=45){var Ne=Se.distanceSquaredPoint(ct);Ne*=1+Math.sin(rn*Math.PI/180),Ne<qe&&(qe=Ne,Qe=lt)}}}return Qe},We.prototype._angleCloseness=function(se,ce){return Math.min(Math.abs(ce-se),Math.min(Math.abs(ce+360-se),Math.abs(ce-360-se)))},We.prototype._arrowKeyTree=function(){var se=this.diagram,ce=se.selection.first();if(ce instanceof go.Node){var Se=se.lastInput;if(Se.key==="Right"){if(!ce.isTreeLeaf)if(!ce.isTreeExpanded)se.commandHandler.canExpandTree(ce)&&se.commandHandler.expandTree(ce);else{var ke=this._sortTreeChildrenByY(ce).first();ke!==null&&se.select(ke)}}else if(Se.key==="Left")if(!ce.isTreeLeaf&&ce.isTreeExpanded)se.commandHandler.canCollapseTree(ce)&&se.commandHandler.collapseTree(ce);else{var qe=ce.findTreeParentNode();qe!==null&&se.select(qe)}else if(Se.key==="Up"){var qe=ce.findTreeParentNode();if(qe!==null){var Qe=this._sortTreeChildrenByY(qe),Lt=Qe.indexOf(ce);if(Lt>0){for(var lt=Qe.elt(Lt-1);lt!==null&<.isTreeExpanded&&!lt.isTreeLeaf;){var ct=this._sortTreeChildrenByY(lt);lt=ct.last()}lt!==null&&se.select(lt)}else se.select(qe)}}else if(Se.key==="Down")if(ce.isTreeExpanded&&!ce.isTreeLeaf){var ke=this._sortTreeChildrenByY(ce).first();ke!==null&&se.select(ke)}else for(;ce!==null;){var qe=ce.findTreeParentNode();if(qe===null)break;var Qe=this._sortTreeChildrenByY(qe),Lt=Qe.indexOf(ce);if(Lt<Qe.length-1){se.select(Qe.elt(Lt+1));break}else ce=qe}var Ft=se.selection.first();Ft!==null&&se.scrollToRect(Ft.actualBounds)}},We.prototype._sortTreeChildrenByY=function(se){var ce=new go.List().addAll(se.findTreeChildrenNodes());return ce.sort(function(Se,ke){var qe=Se.location,Qe=ke.location;return qe.y<Qe.y?-1:qe.y>Qe.y?1:qe.x<Qe.x?-1:qe.x>Qe.x?1:0}),ce},We.prototype.copyToClipboard=function(se){go.CommandHandler.prototype.copyToClipboard.call(this,se),this._lastPasteOffset.set(this.pasteOffset)},We.prototype.pasteFromClipboard=function(){var se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),se},Object.defineProperty(We.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(se){if(se!=="move"&&se!=="select"&&se!=="scroll"&&se!=="tree"&&se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+se);this._arrowKeyBehavior=se}}),Object.defineProperty(We.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(se){if(!(se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+se);this._pasteOffset.set(se)}});var Pt=We,bt=ie(20397),ft=ie(43604),Fe=ie(82093),pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=ie(59301),Ge=(se,ce,Se)=>new Promise((ke,qe)=>{var Qe=ct=>{try{lt(Se.next(ct))}catch(Ft){qe(Ft)}},Lt=ct=>{try{lt(Se.throw(ct))}catch(Ft){qe(Ft)}},lt=ct=>ct.done?ke(ct.value):Promise.resolve(ct.value).then(Qe,Lt);lt((Se=Se.apply(se,ce)).next())});function Me({onCancel:se,callback:ce}){let Se=(0,re.useRef)(),ke=(0,re.useRef)(),qe=(0,re.useRef)(),Qe=(0,re.useRef)(!1);const Lt=(0,re.useRef)(!1),[lt,ct]=(0,re.useState)(0);function Ft(){const Ne=de.bx.make,pt={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 de.S0(ke.current,{padding:20,grid:Ne(de.s_,"Grid",Ne(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ne(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Te=>{var Ye=Te.diagram.commandHandler.addTopLevelParts(Te.diagram.selection,!0);Ye||Te.diagram.currentTool.doCancel()},commandHandler:Ne(Pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Te=>{var Ye=Te.subject;Ye.location=Ye.location.copy().snapToGridPoint(Te.diagram.grid.gridOrigin,Te.diagram.grid.gridCellSize),setTimeout(()=>{Te.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Te=>{var Ye=Te.subject;setTimeout(()=>{Te.diagram.commandHandler.editTextBlock()})},LinkRelinked:Te=>{var Ye=Te.parameter.part;Ye.invalidateConnectedLinks();var rt=Te.subject;Te.diagram.toolManager.linkingTool.isForwards?rt.toNode.invalidateConnectedLinks():rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Ne(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Ne(de.bn,{name:"SHAPE",fill:pt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ne(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ne(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Ne("ToolTip",Ne(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ne(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ne(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function an(Te,Ye){var rt=(Je,Bt)=>{Je.handled=!0,Je.diagram.model.commit(Ot=>{var Vt=Bt.part.adornedPart,qt=new de.E9().setRectSpot(Vt.actualBounds,Te);qt.subtract(Vt.location),qt.scale(2,2),qt.x+=Math.sign(qt.x)*130,qt.y+=Math.sign(qt.y)*130,qt.add(Vt.location),qt.snapToGridPoint(Je.diagram.grid.gridOrigin,Je.diagram.grid.gridCellSize);var dn=Ot.copyNodeData(Vt.data);Ot.setGroupKeyForNodeData(dn,Ot.getGroupKeyForNodeData(Vt.data)),Ot.addNodeData(dn);var Yn={from:Vt.key,to:Ot.getKeyForNodeData(dn)};Ot.addLinkData(Yn);var Gn=Je.diagram.findNodeForData(dn);Gn.location=qt,Je.diagram.select(Gn),setTimeout(()=>{Je.diagram.commandHandler.editTextBlock()},20)})};return Ne(de.bn,{figure:Ye,alignment:Te,alignmentFocus:Te.opposite(),width:Te.equals(de.z6.Top)||Te.equals(de.z6.Bottom)?25:18,height:Te.equals(de.z6.Top)||Te.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:pt.white,strokeWidth:4,mouseEnter:(Je,Bt)=>Bt.fill="dodgerblue",mouseLeave:(Je,Bt)=>Bt.fill="orange",isActionable:!0,click:rt,contextClick:rt})}function sn(Te){return Ne(de.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:(Ye,rt)=>rt.fill="dodgerblue",mouseLeave:(Ye,rt)=>rt.fill="orange",click:(Ye,rt)=>{Ye.diagram.commandHandler.showContextMenu(rt.part.adornedPart)}},Te||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Ne(de.uz,"Spot",Ne(de.Vm,{padding:10}),an(de.z6.Top,"TriangleUp"),an(de.z6.Left,"TriangleLeft"),an(de.z6.Right,"TriangleRight"),an(de.z6.Bottom,"TriangleDown"),sn({alignment:new de.z6(.75,0)}));function Zt(Te,Ye){return(rt,Je)=>{rt.handled=!0,rt.diagram.model.commit(Bt=>{Bt.set(Je.part.adornedPart.data,Te,Ye)})}}function Dt(Te,Ye){return Ye||(Ye="color"),Ne(de.bn,{width:16,height:16,stroke:"lightgray",fill:Te,margin:1,background:"transparent",mouseEnter:(rt,Je)=>Je.stroke="dodgerblue",mouseLeave:(rt,Je)=>Je.stroke="lightgray",click:Zt(Ye,Te),contextClick:Zt(Ye,Te)})}function bn(){return[Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Dt(pt.white,"fill"),Dt(pt.beige,"fill"),Dt(pt.extralightblue,"fill"),Dt(pt.extralightred,"fill"))),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Dt(pt.lightgray,"fill"),Dt(pt.lightgreen,"fill"),Dt(pt.lightblue,"fill"),Dt(pt.lightred,"fill")))]}function Fn(){return[Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Dt(pt.black),Dt(pt.green),Dt(pt.blue),Dt(pt.red))),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Dt(pt.white),Dt(pt.magenta),Dt(pt.purple),Dt(pt.orange)))]}function Bn(Te,Ye){return Ye||(Ye="thickness"),Ne(de.bn,"LineH",{width:16,height:16,strokeWidth:Te,margin:1,background:"transparent",mouseEnter:(rt,Je)=>Je.background="dodgerblue",mouseLeave:(rt,Je)=>Je.background="transparent",click:Zt(Ye,Te),contextClick:Zt(Ye,Te)})}function Mn(Te,Ye){return Ye||(Ye="dash"),Ne(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Te,margin:1,background:"transparent",mouseEnter:(rt,Je)=>Je.background="dodgerblue",mouseLeave:(rt,Je)=>Je.background="transparent",click:Zt(Ye,Te),contextClick:Zt(Ye,Te)})}function xn(){return[Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Bn(1),Bn(2),Bn(3),Bn(4))),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Mn(null),Mn([2,4]),Mn([4,4])))]}function Qt(Te,Ye){return Ye||(Ye="figure"),Ne(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Te,margin:1,background:"transparent",mouseEnter:(rt,Je)=>Je.fill="dodgerblue",mouseLeave:(rt,Je)=>Je.fill="lightgray",click:Zt(Ye,Te),contextClick:Zt(Ye,Te)})}Se.current.nodeTemplate.contextMenu=Ne("ContextMenu",Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Qt("Rectangle"),Qt("RoundedRectangle"),Qt("Ellipse"),Qt("Diamond"))),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Qt("Parallelogram2"),Qt("ManualOperation"),Qt("Procedure"),Qt("Cylinder1"))),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Qt("Terminator"),Qt("CreateRequest"),Qt("Document"),Qt("TriangleDown"))),bn(),Fn(),xn()),Se.current.groupTemplate=Ne(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Te,Ye)=>{var rt=Ye.addMembers(Ye.diagram.selection,!0);rt||Ye.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ne(de.s_,"Auto",{name:"BODY"},Ne(de.bn,{parameter1:10,fill:pt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ne(de.Vm,{background:"transparent",margin:20})),Ne(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=Ne(de.uz,"Spot",Ne(de.s_,"Auto",Ne(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ne(de.Vm,{margin:1.5})),sn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Ne("ContextMenu",bn(),Fn(),xn()),Se.current.linkTemplate=Ne(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Te=>Te>=1?10:0),new de.KX("toShortLength","dir",Te=>Te>=1?10:0),new de.KX("points").makeTwoWay(),Ne(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ne(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Te=>Te===1)),Ne(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Te=>Te>=1),new de.KX("width","thickness",Te=>7+3*Te),new de.KX("height","thickness",Te=>7+3*Te),new de.KX("segmentOffset","thickness",Te=>new de.E9(-15,4+1.5*Te))),Ne(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Te=>Te===2),new de.KX("width","thickness",Te=>7+3*Te),new de.KX("height","thickness",Te=>7+3*Te),new de.KX("segmentOffset","thickness",Te=>new de.E9(-15,4+1.5*Te))),Ne(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Ne(de.uz,Ne(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Tn(2)},new de.KX("pathPattern","thickness",Tn)),sn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Tn(Te){return Ne(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Te+4).toString()+" H3"})}function Ln(Te){var Ye="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Te===0?Ye="M0 0 M16 16 M0 8 L16 8":Te===2&&(Ye="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ne(de.bn,{geometryString:Ye,margin:2,background:"transparent",mouseEnter:(rt,Je)=>Je.background="dodgerblue",mouseLeave:(rt,Je)=>Je.background="transparent",click:Zt("dir",Te),contextClick:Zt("dir",Te)})}function kn(Te){var Ye=(rt,Je)=>{rt.handled=!0,rt.diagram.model.commit(Bt=>{var Ot=Je.part.adornedPart;Bt.set(Ot.data,Te?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Te?Ot.toNode:Ot.fromNode).invalidateConnectedLinks()})};return Ne(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(rt,Je)=>Je.background="dodgerblue",mouseLeave:(rt,Je)=>Je.background="transparent",click:Ye,contextClick:Ye})}function Ee(Te,Ye){var rt=0,Je=de.z6.RightSide;Te.equals(de.z6.Top)?(rt=270,Je=de.z6.TopSide):Te.equals(de.z6.Left)?(rt=180,Je=de.z6.LeftSide):Te.equals(de.z6.Bottom)&&(rt=90,Je=de.z6.BottomSide),Ye||(rt-=180);var Bt=(Ot,Vt)=>{Ot.handled=!0,Ot.diagram.model.commit(qt=>{var dn=Vt.part.adornedPart;qt.set(dn.data,Ye?"toSpot":"fromSpot",de.z6.stringify(Je)),(Ye?dn.toNode:dn.fromNode).invalidateConnectedLinks()})};return Ne(de.bn,{alignment:Te,alignmentFocus:Te.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:rt,background:"transparent",mouseEnter:(Ot,Vt)=>Vt.background="dodgerblue",mouseLeave:(Ot,Vt)=>Vt.background="transparent",click:Bt,contextClick:Bt})}Se.current.linkTemplate.contextMenu=Ne("ContextMenu",Fn(),xn(),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Ln(0),Ln(1),Ln(2))),Ne("ContextMenuButton",Ne(de.s_,"Horizontal",Ne(de.s_,"Spot",kn(!1),Ee(de.z6.Top,!1),Ee(de.z6.Left,!1),Ee(de.z6.Right,!1),Ee(de.z6.Bottom,!1)),Ne(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},kn(!0),Ee(de.z6.Top,!0),Ee(de.z6.Left,!0),Ee(de.z6.Right,!0),Ee(de.z6.Bottom,!0)))));const Vn=`{ "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 En=["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 On(Te){return console.log("shapeName:",Te),En.indexOf(Te)>=0}var Sn=new de.YI(qe.current,{maxSelectionCount:1,linkTemplate:Ne(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ne(de.uz,"Link",{locationSpot:de.z6.Center},Ne(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ne(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ne(de.bn,{isPanelMain:!0,strokeWidth:2}),Ne(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Te=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Te.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Te){var Ye;const rt=Te.subject.part;var Je=(Ye=document.activeElement)==null?void 0:Ye.value;typeof Je=="string"&&Je.trim()===""&&Se.current.model.commit(function(Bt){Bt.set(rt.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Sn.nodeTemplate=Ne(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ne(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Ne(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=Ne(de.s_,"Grid",Ne(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ne(de.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 rn=()=>Ge(this,null,function*(){var Ne=Se.current.makeImage();const pt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ne.src}});ce({src:pt.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{Ft()},500),ct(lt+1),()=>{Se.current=null}),[]),Pe.createElement("div",{ref:Lt,className:Qe.current?`${pe.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!lt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(De.Z,null,Pe.createElement(ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(ft.Z,{onClick:()=>{var Ne,pt,an=Se.current.selection.first();if(Qe.current=!Qe.current,document.activeElement&&an){let sn=(pt=(Ne=document.activeElement)==null?void 0:Ne.value)==null?void 0:pt.trim();typeof sn=="string"&&Se.current.model.commit(function(Zt){Zt.set(an.data,"text",sn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}ct(lt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:se},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:pe.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:pe.myPaletteDiv,ref:qe})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:ke,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(we.ZP,{size:"large",onClick:rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Xe=Me,et=ie(5112),tt=ie(5871);const it=et.ZP.Group,dt={margin:"0 8px"};var ut=({callback:se,onCancel:ce})=>{function Se(ke){se(ke)}return re.createElement(me.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:dt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:dt},"\u884C\u6570"),re.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(tt.Z,null)),re.createElement("span",{style:dt},"\u5217\u6570"),re.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(tt.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(me.default.Item,{name:"align"},re.createElement(it,null,re.createElement(et.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(et.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(et.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(et.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(we.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))},mt=ie(49770),Gt=ie(11081),At=ie.n(Gt),yt=(0,re.forwardRef)(({use3d:se,width:ce,height:Se,callback:ke,showSaveButton:qe},Qe)=>{const Lt=(0,re.useRef)(),lt=(0,re.useRef)(),[ct,Ft]=(0,re.useState)(!1),rn=(0,re.useRef)({id:Lt,appName:"graphing",width:ce||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)(()=>{lt.current=new(At())(rn.current,!0),window.onload=function(){lt.current.inject("applet_container")}},[]);const Ne=()=>{var pt=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(pt),pt};return(0,re.useEffect)(()=>{rn.current.appName=ct?"3D":"graphing",lt.current.inject("applet_container")},[ct]),(0,re.useEffect)(()=>{Ft(se)},[se]),(0,re.useImperativeHandle)(Qe,()=>({getImgData:Ne})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Lt}),re.createElement(De.Z,{align:"middle"},re.createElement(ft.Z,{flex:1},re.createElement(mt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ct,onChange:pt=>Ft(pt)})),re.createElement(ft.Z,null,re.createElement(we.ZP,{size:"large",onClick:Ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Tt=ie(88615),zt=ie(1012),Ut=ie(8591);const Ht="link",tn="upload-image",jt="add-flowchart",Rt="draw-image",nn="add-flowchart",xt="code-block",Wt="add-table",on="------------",un={default:on,left:`:${on}`,center:`:${on}:`,right:`${on}:`};var zn=ie(17904),vn=(se,ce,Se)=>new Promise((ke,qe)=>{var Qe=ct=>{try{lt(Se.next(ct))}catch(Ft){qe(Ft)}},Lt=ct=>{try{lt(Se.throw(ct))}catch(Ft){qe(Ft)}},lt=ct=>ct.done?ke(ct.value):Promise.resolve(ct.value).then(Qe,Lt);lt((Se=Se.apply(se,ce)).next())});function wn(){}let An=0;const hn=1e4,Nn="\u2581",gn="@\u2581\u2581@",Dn="@\u2581@",Zn=`
|
|
**\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`,_n=["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 fn(se){return/^\d+$/.test(se)?`${se}px`:se}const mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ma={[mn+"-B"]:"bold",[mn+"-I"]:"italic"},Kn={[Ht]:"\u6DFB\u52A0\u94FE\u63A5",[xt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tn]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var la=({defaultValue:se="",onChange:ce,width:Se="100%",height:ke=400,miniToolbar:qe=!1,isFocus:Qe=!1,watch:Lt,insertTemp:lt,mode:ct="markdown",id:Ft="markdown-editor-id",showResizeBar:rn=!1,noStorage:Ne=!1,showNullButton:pt=!1,showNullProgramButton:an=!1,hidetoolBar:sn=!1,fullScreen:Zt=!1,onBlur:Dt,onCMBeforeChange:bn,onFullScreen:Fn,className:Bn="",disablePaste:Mn=!1,disabled:xn=!1,disabledFill:Qt=!1,placeholder:Tn="",values:Ln="",extraUse:kn})=>{const[Ee,Vn]=(0,re.useState)(null),[En,On]=(0,re.useState)(se),[Sn,Te]=(0,re.useState)(Lt),[Ye,rt]=(0,re.useState)(Zt),[Je,Bt]=(0,re.useState)(""),[Ot,Vt]=(0,re.useState)(0),[qt,dn]=(0,re.useState)(ke),[Yn,Gn]=(0,re.useState)(!1),ua=(0,re.useRef)((0,zt.Z)()),sa=(0,re.useRef)(!1),Jn=(0,re.useRef)(),[Qn,qn]=(0,re.useState)(0),[ea,ta]=(0,re.useState)(0),yn=(0,re.useRef)(),$n=(0,re.useRef)(),In=(0,re.useRef)(),Rn=(0,re.useRef)(),Sa=()=>vn(void 0,null,function*(){var Ve;const $e=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ua.current}});(Ve=$e==null?void 0:$e.attachments)!=null&&Ve.length&&(console.log("cm:",Ee,yn),$e.attachments.map(je=>{je.content_type.indexOf("image")>-1?Ee.replaceSelection(``):je.content_type.indexOf("video")>-1?Ee.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):je.content_type.indexOf("pdf")>-1?Ee.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${je.id}?type=${je.content_type}&disposition=inline" target="_blank">${je.name}</a>`):Ee.replaceSelection(`[${je.name}](${ENV.API_SERVER}/api/attachments/${je.id}?type=${je.content_type})`)}))});(0,re.useEffect)(()=>{const Ve=window.scrollY||window.pageYOffset;On(Ln),Ee==null||Ee.setValue(Ln),window.scrollTo(0,Ve)},[Ln]),(0,re.useEffect)(()=>{Fn==null||Fn(Ye)},[Ye]),(0,re.useEffect)(()=>{if(yn.current){let Ve=function(je,Ue){var vt;if(Mn){Ue.preventDefault();return}const Nt=Ue.clipboardData;if(Nt){const Yt=Nt.types.toString(),kt=Nt.items;if(Yt==="Files"||Nt.types.indexOf("Files")>-1){if(Ue.preventDefault(),ct=="stex")return;try{let Kt=kt[1];((vt=kt[0])==null?void 0:vt.kind)==="file"&&(Kt=kt[0]);const Xt=Kt.getAsFile(),cn=Xt.name.split(".").pop();(0,Le.I)(Xt,en=>{var Hn,jn,Wn;en.id?((Hn=Xt==null?void 0:Xt.type)==null?void 0:Hn.indexOf("image"))>-1?$e.replaceSelection(`<img width="100%" src="/api/attachments/${en.id}?type=${en.content_type})" alt="" />`):((jn=Xt==null?void 0:Xt.type)==null?void 0:jn.indexOf("video"))>-1?$e.replaceSelection(`<video width="100%" controls src="/api/attachments/${en.id}"></video>`):((Wn=Xt==null?void 0:Xt.type)==null?void 0:Wn.indexOf("pdf"))>-1?$e.replaceSelection(`<a href="/api/attachments/${en.id}?type=${Xt.type}&disposition=inline" target="_blank">${Xt.name}</a>`):_n.includes(cn)?$e.replaceSelection(`<a href="/api/attachments/${en.id}?type=office&disposition=inline" target="_blank">${Xt.name}</a>`):$e.replaceSelection(`[${Xt.name}](/api/attachments/${en.id}?type=${en.content_type})`):(en==null?void 0:en.status)===401&&(Ut.ZP.warning((en==null?void 0:en.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Kt){Ut.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $e=Oe().fromTextArea(yn.current,{mode:ct,lineNumbers:!qe,lineWrapping:!0,value:se,autoCloseTags:!an,autoCloseBrackets:!0});return $e.on("keyup",function(je,Ue){Ue.keyCode===8&&(je.getValue()==""?$e.setOption("placeholder",Tn):$e.setOption("placeholder",null))}),$e.on("keydown",function(je,Ue){if(Ue.keyCode===8){var vt=Pa(je);vt&&Ue.preventDefault()}}),Qe&&$e.focus(),$e.on("paste",Ve),$e.on("dragleave",function(je,Ue){$n.current.classList.remove("mouse-hover-md")}),xn&&$e.on("beforeChange",function(je,Ue){(Ue.origin==="paste"||Ue.origin==="+input")&&Ue.cancel()}),Vn($e),()=>{$e.off("paste",Ve)}}},[]);const na=(0,re.useCallback)(()=>{if($n.current)try{}catch(Ve){console.log(Ve,"---- to set md editor body height")}},[qt,$n,Ye]);(0,re.useEffect)(()=>{function Ve(){let $e=new _e.Z(je=>{for(let Ue of je)(Ue.target.offsetHeight>0||Ue.target.offsetWidth>0)&&(na(),Ee.setSize("100%","100%"),Ee.refresh())});return $e.observe(yn.current.parentElement),$e}if(Ee){const $e=Ve();return()=>{var je,Ue;(je=yn.current)!=null&&je.parentElement&&$e.unobserve((Ue=yn.current)==null?void 0:Ue.parentElement)}}},[Ee,na]),(0,re.useEffect)(()=>{if(Ee){let Ve=[];for(const[$e,je]of Object.entries(ma)){let Ue={[$e]:()=>{aa(je)}};Ve.push(Ue),Ee.addKeyMap(Ue)}return Jn.current=setInterval(()=>{sa.current&&Sa()},4e3),()=>{clearInterval(Jn.current);for(let $e of Ve)Ee.removeKeyMap($e)}}},[Ee]),(0,re.useEffect)(()=>{Zt!==Ye&&rt(Zt)},[Zt]),(0,zn.Z)(()=>{if(!Ne&&Ot>0){let Ve=new Date().getTime(),$e=window.sessionStorage.getItem(Ft);Ve>=Ot+hn&&(!$e||$e!==En)&&(window.sessionStorage.setItem(Ft,En),Gn(!0))}},hn),(0,re.useEffect)(()=>{Te(Lt)},[Ee,Lt]),(0,re.useEffect)(()=>{Ee&&Qe&&Ee.focus()},[Ee,Qe]),(0,re.useEffect)(()=>{if(Sn&&Ee){let Ve=function(je){let Ue=je.target;if(Rn.current){let vt=Ue.scrollTop/Ue.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*vt}};const $e=Ee.getScrollerElement();return $e.addEventListener("scroll",Ve),()=>{$e.removeEventListener("scroll",Ve)}}},[Ee,Sn]),(0,re.useEffect)(()=>{if(Ee&&bn){let Ve=function($e,je){bn($e,je)};return Ee.on("beforeChange",Ve),()=>{Ee.off("beforeChange",Ve)}}},[Ee,bn]),(0,re.useEffect)(()=>{if(Ee&&Dt){let Ve=function(){Dt(Ee.getValue())};return Ee.on("blur",Ve),()=>{Ee.off("blur",Ve)}}},[Ee,Dt]);function Pa(Ve,$e){var je=Ve.getDoc(),Ue=je.getCursor(),vt=je.getLine(Ue.line),Nt=vt.charAt(Ue.ch-1),Yt=vt.lastIndexOf("@\u2581@",Ue.ch),kt=vt.lastIndexOf("@\u2581\u2581@",Ue.ch),Kt=Yt>kt?Yt:kt,Xt=Yt>kt?3:4;if(gn.indexOf(Nt)===-1)return null;if(console.log("change1:",$e,Ve,vt,Ue,Kt,Yt,kt,Nt),Kt>=0&&Ue.ch-Kt<5){var cn=Kt+Xt;return je.replaceRange("",{line:Ue.line,ch:Kt},{line:Ue.line,ch:cn}),{line:Ue.line,ch:cn}}return null}(0,re.useEffect)(()=>{if(Ee){let Ve=function($e,je){const Ue=$e.getValue();On(Ue),Vt(new Date().getTime()),$e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ce&&(an?ce(Ue,va(Ue)):ce(Ue))};return Ee.on("change",Ve),()=>{Ee.off("change",Ve)}}},[Ee,ce]),(0,re.useEffect)(()=>{if(Ee)if(se==null)Ee.setValue(""),On("");else{const Ve=window.scrollY||window.pageYOffset;se!==Ee.getValue()&&(Ee.setValue(se),On(se),Ee.setCursor(xn?1:Ee.lineCount(),0),window.scrollTo(0,Ve))}},[Ee,se]);const aa=(0,re.useCallback)(Ve=>{const $e=Ee.getCursor(),je=Ee.getSelection();let Ue=je.split(`
|
|
`);switch(Ve){case"bold":return Ee.replaceSelection("**"+je+"**"),je===""&&Ee.setCursor($e.line,$e.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+je+"*"),je===""&&Ee.setCursor($e.line,$e.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+je+"`"),je===""&&Ee.setCursor($e.line,$e.ch+1),Ee.focus();case"inline-latex":return Bt("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+je+"\n```"),Ee.setCursor($e.line+1,je.length+1),Ee.focus();case"line-break":return Ee.replaceSelection(`<br/>
|
|
`),Ee.focus();case"list-ul":return je===""?Ee.replaceSelection("- "+je):Ee.replaceSelection(Ue.map(vt=>vt===""?"":`- ${vt}`).join(`
|
|
`)),Ee.focus();case"list-ol":return je===""?Ee.replaceSelection("1. "+je):Ee.replaceSelection(Ue.map((vt,Nt)=>vt===""?"":`${Nt+1}. ${vt}`).join(`
|
|
`)),Ee.focus();case"add-null-ch":return je===""&&Ee.setCursor($e.line,$e.ch),Ee.replaceSelection(Nn),Ee.focus();case"add-signal":return je===""&&Ee.setCursor($e.line,$e.ch),Ee.replaceSelection(Dn),Ee.focus();case"add-multiple":return je===""&&Ee.setCursor($e.line,$e.ch),Ee.replaceSelection(gn),Ee.focus();case"inster-template-1":return je===""&&Ee.setCursor($e.line,$e.ch),Ee.replaceSelection(Zn),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Te(!Sn),Ee.focus();case"trigger-full-screen":return rt(!Ye),Ee.focus();case Ht:Bt(Ht);return;case xt:Bt(xt);return;case tn:Bt(tn);return;case Rt:Bt(Rt);return;case"maths-latex":Bt("maths-latex");return;case jt:Bt(jt);return;case Wt:Bt(Wt);return;default:throw new Error}},[Ee,Sn,Ye]),Pn=(0,re.useCallback)((Ve,$e)=>{var je,Ue,vt,Nt,Yt,kt;switch(Bt(""),Je){case Ht:const{title:Hn,link:jn}=Ve;return Ee.replaceSelection(`[${Hn}](${jn})`),Ee.focus();case xt:const{language:Wn,content:wa}=Ve;return Ee.replaceSelection(["```"+Wn,wa,"```"].join(`
|
|
`)),Ee.focus();case"maths-latex":for(var Kt=atob(Ve),Xt=new Uint8Array(Kt.length),cn=0;cn<Kt.length;cn++)Xt[cn]=Kt.charCodeAt(cn);var en=new Blob([Xt],{type:"image/png"});(0,Le.I)(en,ln=>{ln.id?Ee.replaceSelection(``):(ln==null?void 0:ln.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ee.replaceSelection("`$$"+Ve+"$$`");break;case tn:case Rt:case nn:const{src:Cn,alt:oa}=Ve,$t=$e,ba=(vt=(Ue=(je=$t==null?void 0:$t.name)==null?void 0:je.split("."))==null?void 0:Ue.pop)==null?void 0:vt.call(Ue);return((Nt=$t==null?void 0:$t.type)==null?void 0:Nt.indexOf("image"))>-1||!($t!=null&&$t.type)?$t.align||$t.width?Ee.replaceSelection(`<p style="text-align:${$t.align||"initial"}"><img width="${$t.width?$t.width+"%":"initial"}" src="${Cn}" alt="${oa||""}" /></p>`):Ee.replaceSelection(`<img width="100%" src="${Cn}" alt="${oa||""}" />`):((Yt=$t==null?void 0:$t.type)==null?void 0:Yt.indexOf("video"))>-1?Ee.replaceSelection(`<video width="100%" controls src="${Cn}"></video>`):((kt=$t==null?void 0:$t.type)==null?void 0:kt.indexOf("pdf"))>-1?Ee.replaceSelection(`<a href="${Cn}?type=${$t.type}&disposition=inline" target="_blank">${$t.name}</a>`):_n.includes(ba)?Ee.replaceSelection(`<a href="${Cn}?type=office&disposition=inline" target="_blank">${$t.name}</a>`):Ee.replaceSelection(`[${$t.name}](${Cn})`),Ee.focus();case Wt:const{row:Fa,col:ga,align:Ba}=Ve;let Xn=`
|
|
`;for(let ln=0;ln<Fa;ln++){let ra=[],ia=[];for(let da=0;da<ga;da++)ln===1&&ia.push(un[Ba]),ra.push(" ");ln===1&&(Xn+=`| ${ia.join(" | ")} |
|
|
`),Xn+=`| ${ra.join(ga===1?"":" | ")} |
|
|
`}return Ee.replaceSelection(Xn+`
|
|
`),Ee.focus();default:throw new Error}},[Ee,Je]),ca=(0,re.useMemo)(()=>{switch(Je){case Ht:return re.createElement(It,{callback:Pn,onCancel:pn});case xt:return re.createElement(Jt.Z,{callback:Pn,onCancel:pn});case tn:return re.createElement(Le.Z,{callback:Pn,onCancel:pn});case jt:return re.createElement(Xe,{callback:Pn,onCancel:pn});case Wt:return re.createElement(ut,{callback:Pn,onCancel:pn});case"maths-latex":return re.createElement(yt,{showSaveButton:!0,callback:Pn});case"inline-latex":return re.createElement(Tt.Z,{showSaveButton:!0,callback:Pn});default:return null}},[Je]);function pn(){Bt("")}(0,re.useEffect)(()=>{if(In.current){let Ve=function(Yt){vt=!0,Nt=Yt.pageY},$e=function(){vt=!1},je=function(Yt){if(vt){let kt=Yt.pageY-Nt;kt<0&&(kt=0),kt>300&&(kt=300);let Kt=ke+kt+"px";dn(Kt)}},Ue=In.current,vt=!1,Nt=0;return Ue.addEventListener("mousedown",Ve),document.addEventListener("mousemove",je),document.addEventListener("mouseup",$e),()=>{Ue.removeEventListener("mousedown",Ve),document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",$e)}}},[Ee,In]),(0,re.useEffect)(()=>{dn(ke)},[ke]);const ha=fn(Se),fa=fn(qt),pa={width:ha,height:fa},xa=(0,re.useMemo)(()=>{if(Ot){let Ve=new Date(Ot),$e=Ve.getHours(),je=Ve.getMinutes(),Ue=Ve.getSeconds();return $e=$e<10?"0"+$e:$e,je=je<10?"0"+je:je,Ue=Ue<10?"0"+Ue:Ue,`${$e}:${je}:${Ue}`}return 0},[Ot]),va=Ve=>{const $e=[];if(an){let je=-1;Ve=Ve.replace(/(@▁▁@|@▁@)/g,function(Ue,vt,Nt){$e.push({multiLine:Ue!==Dn})})}return $e};function Ea(){window.sessionStorage.removeItem(Ft),Gn(!1),Vt(0)}function Ga(){Gn(!1),Vt(0),Ee.setValue(window.sessionStorage.getItem(Ft))}(0,re.useEffect)(()=>{Kn[Je]&&Je!==Rt&&Je!==jt&&setTimeout(()=>{const Ve=document.getElementsByClassName("markdown-popup-form")[0],$e=window.innerWidth/2-Ve.offsetWidth/2,je=window.innerHeight/2-Ve.offsetHeight/2;qn($e),ta(je)},0)},[Je]);const La=Ve=>{Ve.preventDefault();const $e=Ve.clientX-Qn,je=Ve.clientY-ea;document.body.onmousemove=Ue=>{let vt=Ue.clientX-$e,Nt=Ue.clientY-je;const Yt=document.getElementsByClassName("markdown-popup-form")[0],kt=window.innerWidth-Yt.offsetWidth,Kt=window.innerHeight-Yt.offsetHeight;vt=Math.max(0,Math.min(vt,kt)),Nt=Math.max(0,Math.min(Nt,Kt)),ya(Ue.clientX,Ue.clientY,$e,je)&&(qn(vt),ta(Nt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ya=(Ve,$e,je,Ue)=>{const vt=document.body.clientHeight,Nt=document.body.clientWidth;return Ve<20&&je>Ve||Ve>Nt-20&&je<Ve||$e<20&&Ue>$e||$e>vt-20&&Ue<$e?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:$n},re.createElement("div",{className:`markdown-editor-container ${Bn} ${Sn?"on-preview":""} ${qe?"mini":""} ${Ye?"full-screen":""}`,style:pa},re.createElement(ge,{insertTemp:lt,watch:Sn,fullScreen:Ye,showNullButton:pt,showNullProgramButton:an,onActionCallback:aa,hidetoolBar:sn,extraUse:kn}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:yn,placeholder:Tn})),Sn?re.createElement("div",{ref:Rn,className:"preview-container"},ct==="stex"&&re.createElement(Re,{value:En}),ct!=="stex"&&re.createElement(ze.Z,{disabledFill:Qt,showProgramFill:an,value:En})):null))),rn?re.createElement("a",{ref:In,className:"editor-resize"}):null,Je===Rt&&re.createElement(nt,{callback:Pn,onCancel:pn}),Je===jt&&re.createElement(Xe,{callback:Pn,onCancel:pn}),re.createElement(le.Z,null,Kn[Je]&&Je!==Rt&&Je!==jt?re.createElement(be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Qn,top:ea},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:La},Kn[Je]),open:!0,onCancel:pn,footer:null,destroyOnClose:!0,width:Je===jt?"1200px":null,height:Je===jt?"80vh":null,className:"markdown-popup-form"},ca):null))}},45596:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return oe},I:function(){return le}});var re=ie(78241),he=ie(8591),Oe=ie(92832),_e=ie(81327),fe=ie(5871),Ce=ie(5112),ue=ie(3113),Ie=ie(67303),Be=ie(59301),xe=ie(34055),ze=ie(59301),Re=Object.defineProperty,Ae=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,ye,we)=>ye in me?Re(me,ye,{enumerable:!0,configurable:!0,writable:!0,value:we}):me[ye]=we,E=(me,ye)=>{for(var we in ye||(ye={}))y.call(ye,we)&&b(me,we,ye[we]);if(a)for(var we of a(ye))x.call(ye,we)&&b(me,we,ye[we]);return me},z=(me,ye)=>Ae(me,ne(ye));const{useForm:ee}=re.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var oe=({callback:me,onCancel:ye})=>{const[we]=ee();let Ke=(0,Be.useRef)();function gt(St){Ke.current.width=we.getFieldValue("width"),Ke.current.align=we.getFieldValue("align"),me(St,Ke.current)}function at(St,ht){if(St.status===-1){he.ZP.error(St.message);return}we.setFieldsValue({src:`/api/attachments/${St.id}`,type:ht.type})}function st(St){let ht=St.target.files[0];Ke.current=ht,le(ht,at)}return ze.createElement(re.default,z(E({form:we},ae),{className:"upload-image-panel",onFinish:gt,style:{width:470,overflow:"hidden"}}),ze.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ze.createElement("div",{className:"flex-container"},ze.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ze.createElement(Oe.default,{style:te})),ze.createElement(ge,{onFileChange:st}))),ze.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ze.createElement(Oe.default,{style:{width:264}})),ze.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ze.createElement(_e.Z,null,ze.createElement(re.default.Item,{name:"width",style:{margin:0}},ze.createElement(fe.Z,{style:{width:264}})),ze.createElement("span",{className:"ml8"},"%"))),ze.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ze.createElement(Ce.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ze.createElement("aside",null,ze.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ze.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ze.createElement(ue.ZP,{type:"default",onClick:ye},"\u53D6\u6D88"))))};function ge({onFileChange:me}){return ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ze.createElement("input",{type:"file",onChange:me}))}function le(me,ye){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,xe.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let we=new FormData;we.append("editormd-image-file",me),we.append("file_param_name","editormd-image-file"),we.append("byxhr","true");var Ke=new window.XMLHttpRequest;Ke.withCredentials=!0,Ke.addEventListener("load",function(gt){ye(JSON.parse(gt.target.responseText),me)},!1),Ke.addEventListener("error",function(gt){console.error(gt)},!1),Ke.open("POST",`${Ie.KI}/api/attachments.json`),Ke.send(we)}},75790:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return Oe}});var re=ie(59301),he=ie(4676);class Oe extends re.Component{constructor(fe){super(fe);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,he.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(ve,Ze,ie){"use strict";ie.d(Ze,{Z:function(){return he}});var re=ie(59301);function he(Oe,_e){const fe=(0,re.useRef)();(0,re.useEffect)(()=>{fe.current=Oe}),(0,re.useEffect)(()=>{function Ce(){fe.current()}if(_e!==null){let ue=setInterval(Ce,_e);return()=>clearInterval(ue)}},[_e])}},91842:function(ve,Ze,ie){"use strict";ie.r(Ze),ie.d(Ze,{default:function(){return z}});var re=ie(59301),he=ie(76560),Oe=ie(67135),_e=ie(78241),fe=ie(8591),Ce=ie(92832),ue=ie(3113),Ie=ie(89389),Be=ie(64885),xe=ie(90970),ze={formSty:"formSty___L_Pob",bottomFix:"bottomFix___M0Rjv"},Re=Object.defineProperty,Ae=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(ee,te,ae)=>te in ee?Re(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ee[te]=ae,x=(ee,te)=>{for(var ae in te||(te={}))ne.call(te,ae)&&y(ee,ae,te[ae]);if(Ae)for(var ae of Ae(te))a.call(te,ae)&&y(ee,ae,te[ae]);return ee},b=(ee,te,ae)=>new Promise((oe,ge)=>{var le=we=>{try{ye(ae.next(we))}catch(Ke){ge(Ke)}},me=we=>{try{ye(ae.throw(we))}catch(Ke){ge(Ke)}},ye=we=>we.done?oe(we.value):Promise.resolve(we.value).then(le,me);ye((ae=ae.apply(ee,te)).next())}),z=({})=>{const[ee]=(0,he.useSearchParams)(),[te]=_e.default.useForm(),[ae,oe]=(0,re.useState)({id:ee.get("id"),name:"",path:"",content:"",status:""}),ge=()=>b(void 0,null,function*(){var me,ye,we,Ke,gt;const at=yield(0,Oe.Mc)({id:ee.get("id")});(at==null?void 0:at.status)===0&&(ae.name=(me=at==null?void 0:at.data)==null?void 0:me.name,ae.path=(ye=at==null?void 0:at.data)==null?void 0:ye.path,ae.content=(we=at==null?void 0:at.data)==null?void 0:we.content,ae.id=(Ke=at==null?void 0:at.data)==null?void 0:Ke.id,ae.status=(gt=at==null?void 0:at.data)==null?void 0:gt.status,oe(x({},ae)),te.setFieldsValue(x({},ae)))});(0,re.useEffect)(()=>{ee.get("id")&&ge()},[]);const le=me=>b(void 0,null,function*(){const{name:ye,path:we,content:Ke}=me||{},gt={name:ye,path:we,content:Ke};if(ee.get("id")){const at=yield(0,Oe.Zz)({id:ee.get("id"),interface_manage:x({},gt)});(at==null?void 0:at.status)===0&&fe.ZP.success("\u7F16\u8F91\u6210\u529F\uFF01")}else{const at=yield(0,Oe.IG)({id:ee.get("id"),interface_manage:x({},gt)});(at==null?void 0:at.status)===0&&(fe.ZP.success("\u6DFB\u52A0\u6210\u529F\uFF01"),he.history.push("/shixuns/interface"))}he.history.push("/shixuns/interface")});return re.createElement(xe.Z,{mainDom:re.createElement("div",{className:"py-20px-rem px-24px-rem text-14px-rem w-full flex flex-col"},re.createElement("div",null,re.createElement("span",{onClick:()=>{he.history.back()},style:{color:"#666",cursor:"pointer"}},re.createElement("i",{className:"iconfont icon-fanhui2 font12",style:{color:"icon-fanhui2"}}),re.createElement("span",null,"\u8FD4\u56DE")),re.createElement("span",{className:"ml20",style:{color:"#000"}},ee.get("id")?"\u7F16\u8F91\u63A5\u53E3":"\u65B0\u589E\u63A5\u53E3")),re.createElement("div",{className:`${ze.formSty} bg-white mt-14px-rem p-30px-rem flex-1`},re.createElement(_e.default,{className:"w-full",colon:!1,form:te,onFinish:le},re.createElement(_e.default.Item,{label:"\u63A5\u53E3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u53E3\u540D\u79F0"}]},re.createElement(Ce.default,{placeholder:"\u8BF7\u8F93\u5165\u63A5\u53E3\u540D\u79F0",size:"large"})),re.createElement(_e.default.Item,{label:"\u63A5\u53E3\u8DEF\u5F84",name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u53E3\u8DEF\u5F84"}]},re.createElement(Ce.default,{placeholder:"\u8BF7\u8F93\u5165\u63A5\u53E3\u8DEF\u5F84",size:"large"})),re.createElement(_e.default.Item,{label:re.createElement("span",{style:{marginLeft:"38rem"}},"\u8BF4\u660E"),name:"content"},re.createElement(Ie.Z,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u5236\u4E3A50000\u4E2A\u5B57",watch:!0,defaultValue:ae==null?void 0:ae.content})))),re.createElement("div",{className:`${ze.bottomFix} flex-1 sticky bg-white flex item-center gap-20px-rem py-12px-rem px-30px-rem`},re.createElement(ue.ZP,{onClick:()=>{he.history.push("/shixuns/interface")}},"\u8FD4\u56DE"),re.createElement(ue.ZP,{className:"ml-auto",onClick:()=>{he.history.push("/shixuns/interface")}},"\u53D6\u6D88"),re.createElement(Be.Z,{onClick:()=>b(void 0,null,function*(){yield te.submit()}),type:"primary"},"\u4FDD\u5B58")))})}},45818:function(ve,Ze,ie){"use strict";ie.d(Ze,{D:function(){return z},Z:function(){return ae}});var re=ie(67711),he=ie(59301),Oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},_e=Oe,fe=ie(7657),Ce=function(ge,le){return he.createElement(fe.Z,(0,re.Z)({},ge,{ref:le,icon:_e}))},ue=he.forwardRef(Ce),Ie=ue,Be=ie(33853),xe=ie(38819),ze=ie(92310),Re=ie.n(ze),Ae=ie(2738),a=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),y=ie(36355),x=ie(84966),b=function(oe,ge){var le={};for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&ge.indexOf(me)<0&&(le[me]=oe[me]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,me=Object.getOwnPropertySymbols(oe);ye<me.length;ye++)ge.indexOf(me[ye])<0&&Object.prototype.propertyIsEnumerable.call(oe,me[ye])&&(le[me[ye]]=oe[me[ye]]);return le};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.createContext({}),ee=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var ae=he.forwardRef((oe,ge)=>{const{prefixCls:le,className:me,trigger:ye,children:we,defaultCollapsed:Ke=!1,theme:gt="dark",style:at={},collapsible:st=!1,reverseArrow:St=!1,width:ht=200,collapsedWidth:_t=80,zeroWidthTriggerStyle:wt,breakpoint:Et,onCollapse:Ct,onBreakpoint:It}=oe,Jt=b(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Le}=(0,he.useContext)(x.Gs),[be,De]=(0,he.useState)("collapsed"in oe?oe.collapsed:Ke),[ot,He]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in oe&&De(oe.collapsed)},[oe.collapsed]);const nt=(Fe,pe)=>{"collapsed"in oe||De(Fe),Ct==null||Ct(Fe,pe)},de=(0,he.useRef)();de.current=Fe=>{He(Fe.matches),It==null||It(Fe.matches),be!==Fe.matches&&nt(Fe.matches,"responsive")},(0,he.useEffect)(()=>{function Fe(Pe){return de.current(Pe)}let pe;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&Et&&Et in E){pe=Pe(`(max-width: ${E[Et]})`);try{pe.addEventListener("change",Fe)}catch(Ge){pe.addListener(Fe)}Fe(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",Fe)}catch(Pe){pe==null||pe.removeListener(Fe)}}},[Et]),(0,he.useEffect)(()=>{const Fe=ee("ant-sider-");return Le.addSider(Fe),()=>Le.removeSider(Fe)},[]);const We=()=>{nt(!be,"clickTrigger")},{getPrefixCls:Pt}=(0,he.useContext)(y.E_),bt=()=>{const Fe=Pt("layout-sider",le),pe=(0,Ae.Z)(Jt,["collapsed"]),Pe=be?_t:ht,Ge=a(Pe)?`${Pe}px`:String(Pe),Me=parseFloat(String(_t||0))===0?he.createElement("span",{onClick:We,className:Re()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${St?"right":"left"}`),style:wt},ye||he.createElement(Ie,null)):null,tt={expanded:St?he.createElement(xe.Z,null):he.createElement(Be.Z,null),collapsed:St?he.createElement(Be.Z,null):he.createElement(xe.Z,null)}[be?"collapsed":"expanded"],it=ye!==null?Me||he.createElement("div",{className:`${Fe}-trigger`,onClick:We,style:{width:Ge}},ye||tt):null,dt=Object.assign(Object.assign({},at),{flex:`0 0 ${Ge}`,maxWidth:Ge,minWidth:Ge,width:Ge}),ut=Re()(Fe,`${Fe}-${gt}`,{[`${Fe}-collapsed`]:!!be,[`${Fe}-has-trigger`]:st&&ye!==null&&!Me,[`${Fe}-below`]:!!ot,[`${Fe}-zero-width`]:parseFloat(Ge)===0},me);return he.createElement("aside",Object.assign({className:ut},pe,{style:dt,ref:ge}),he.createElement("div",{className:`${Fe}-children`},we),st||ot&&Me?it:null)},ft=he.useMemo(()=>({siderCollapsed:be}),[be]);return he.createElement(z.Provider,{value:ft},bt())})},44e3:function(ve,Ze,ie){"use strict";var re=ie(84966),he=ie(45818);const Oe=re.ZP;Oe.Header=re.h4,Oe.Footer=re.$_,Oe.Content=re.VY,Oe.Sider=he.Z,Ze.default=Oe},84966:function(ve,Ze,ie){"use strict";ie.d(Ze,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ae},ZP:function(){return ee}});var re=ie(15142),he=ie(92310),Oe=ie.n(he),_e=ie(2738),fe=ie(59301),Ce=ie(36355),ue=ie(83116),Be=te=>{const{componentCls:ae,bodyBg:oe,lightSiderBg:ge,lightTriggerBg:le,lightTriggerColor:me}=te;return{[`${ae}-sider-light`]:{background:ge,[`${ae}-sider-trigger`]:{color:me,background:le},[`${ae}-sider-zero-width-trigger`]:{color:me,background:le,border:`1px solid ${oe}`,borderInlineStart:0}}}};const xe=te=>{const{antCls:ae,componentCls:oe,colorText:ge,triggerColor:le,footerBg:me,triggerBg:ye,headerHeight:we,headerPadding:Ke,headerColor:gt,footerPadding:at,triggerHeight:st,zeroTriggerHeight:St,zeroTriggerWidth:ht,motionDurationMid:_t,motionDurationSlow:wt,fontSize:Et,borderRadius:Ct,bodyBg:It,headerBg:Jt,siderBg:Le}=te;return{[oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:It,"&, *":{boxSizing:"border-box"},[`&${oe}-has-sider`]:{flexDirection:"row",[`> ${oe}, > ${oe}-content`]:{width:0}},[`${oe}-header, &${oe}-footer`]:{flex:"0 0 auto"},[`${oe}-sider`]:{position:"relative",minWidth:0,background:Le,transition:`all ${_t}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:st},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:st,color:le,lineHeight:`${st}px`,textAlign:"center",background:ye,cursor:"pointer",transition:`all ${_t}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:we,insetInlineEnd:-ht,zIndex:1,width:ht,height:St,color:le,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${wt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${wt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ht,borderStartStartRadius:Ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ct}}}}},Be(te)),{"&-rtl":{direction:"rtl"}}),[`${oe}-header`]:{height:we,padding:Ke,color:gt,lineHeight:`${we}px`,background:Jt,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:at,color:ge,fontSize:Et,background:me},[`${oe}-content`]:{flex:"auto",minHeight:0}}};var ze=(0,ue.Z)("Layout",te=>[xe(te)],te=>{const{colorBgLayout:ae,controlHeight:oe,controlHeightLG:ge,colorText:le,controlHeightSM:me,marginXXS:ye,colorTextLightSolid:we,colorBgContainer:Ke}=te,gt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${gt}px`,headerColor:le,footerPadding:`${me}px ${gt}px`,footerBg:ae,siderBg:"#001529",triggerHeight:ge+ye*2,triggerBg:"#002140",triggerColor:we,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=function(te,ae){var oe={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&ae.indexOf(ge)<0&&(oe[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ge=Object.getOwnPropertySymbols(te);le<ge.length;le++)ae.indexOf(ge[le])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[le])&&(oe[ge[le]]=te[ge[le]]);return oe};const Ae=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:ae,tagName:oe,displayName:ge}=te;return le=>fe.forwardRef((ye,we)=>fe.createElement(le,Object.assign({ref:we,suffixCls:ae,tagName:oe},ye)))}const a=fe.forwardRef((te,ae)=>{const{prefixCls:oe,suffixCls:ge,className:le,tagName:me}=te,ye=Re(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:we}=fe.useContext(Ce.E_),Ke=we("layout",oe),[gt,at]=ze(Ke),st=ge?`${Ke}-${ge}`:Ke;return gt(fe.createElement(me,Object.assign({className:Oe()(oe||st,le,at),ref:ae},ye)))}),y=fe.forwardRef((te,ae)=>{const{direction:oe}=fe.useContext(Ce.E_),[ge,le]=fe.useState([]),{prefixCls:me,className:ye,rootClassName:we,children:Ke,hasSider:gt,tagName:at,style:st}=te,St=Re(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ht=(0,_e.Z)(St,["suffixCls"]),{getPrefixCls:_t,layout:wt}=fe.useContext(Ce.E_),Et=_t("layout",me),[Ct,It]=ze(Et),Jt=Oe()(Et,{[`${Et}-has-sider`]:typeof gt=="boolean"?gt:ge.length>0,[`${Et}-rtl`]:oe==="rtl"},wt==null?void 0:wt.className,ye,we,It),Le=fe.useMemo(()=>({siderHook:{addSider:be=>{le(De=>[].concat((0,re.Z)(De),[be]))},removeSider:be=>{le(De=>De.filter(ot=>ot!==be))}}}),[]);return Ct(fe.createElement(Ae.Provider,{value:Le},fe.createElement(at,Object.assign({ref:ae,className:Jt,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),st)},ht),Ke)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(ve,Ze,ie){"use strict";ie.d(Ze,{J:function(){return Ce}});var re=ie(59301),he=ie(33234),Oe=ie(70425),_e=function(ue,Ie){var Be={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&Ie.indexOf(xe)<0&&(Be[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,xe=Object.getOwnPropertySymbols(ue);ze<xe.length;ze++)Ie.indexOf(xe[ze])<0&&Object.prototype.propertyIsEnumerable.call(ue,xe[ze])&&(Be[xe[ze]]=ue[xe[ze]]);return Be};const fe=re.createContext(null),Ce=re.forwardRef((ue,Ie)=>{const{children:Be}=ue,xe=_e(ue,["children"]),ze=re.useContext(fe),Re=re.useMemo(()=>Object.assign(Object.assign({},ze),xe),[ze,xe.prefixCls,xe.mode,xe.selectable]);return re.createElement(fe.Provider,{value:Re},re.createElement(he.BR,null,(0,Oe.supportNodeRef)(Be)?re.cloneElement(Be,{ref:Ie}):Be))});Ze.Z=fe},20834:function(ve,Ze,ie){"use strict";ie.d(Ze,{default:function(){return ft}});var re=ie(15285),he=ie(59301),Oe=ie(45818),_e=ie(92310),fe=ie.n(_e),Ce=ie(36355),ue=function(Fe,pe){var Pe={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&pe.indexOf(Ge)<0&&(Pe[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ge=Object.getOwnPropertySymbols(Fe);Me<Ge.length;Me++)pe.indexOf(Ge[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[Me])&&(Pe[Ge[Me]]=Fe[Ge[Me]]);return Pe},Be=Fe=>{const{prefixCls:pe,className:Pe,dashed:Ge}=Fe,Me=ue(Fe,["prefixCls","className","dashed"]),{getPrefixCls:Xe}=he.useContext(Ce.E_),et=Xe("menu",pe),tt=fe()({[`${et}-item-divider-dashed`]:!!Ge},Pe);return he.createElement(re.iz,Object.assign({className:tt},Me))},xe=ie(11592),ze=ie(2738),Re=ie(6848),Ae=ie(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Fe=>{var pe;const{className:Pe,children:Ge,icon:Me,title:Xe,danger:et}=Fe,{prefixCls:tt,firstLevel:it,direction:dt,disableMenuItemTitleTooltip:ut,inlineCollapsed:mt}=he.useContext(a),Gt=Ut=>{const Ht=he.createElement("span",{className:`${tt}-title-content`},Ge);return(!Me||(0,Ae.l$)(Ge)&&Ge.type==="span")&&Ge&&Ut&&it&&typeof Ge=="string"?he.createElement("div",{className:`${tt}-inline-collapsed-noicon`},Ge.charAt(0)):Ht},{siderCollapsed:At}=he.useContext(Oe.D);let Mt=Xe;typeof Xe=="undefined"?Mt=it?Ge:"":Xe===!1&&(Mt="");const yt={title:Mt};!At&&!mt&&(yt.title=null,yt.open=!1);const Tt=(0,xe.Z)(Ge).length;let zt=he.createElement(re.ck,Object.assign({},(0,ze.Z)(Fe,["title","icon","danger"]),{className:fe()({[`${tt}-item-danger`]:et,[`${tt}-item-only-child`]:(Me?Tt+1:Tt)===1},Pe),title:typeof Xe=="string"?Xe:void 0}),(0,Ae.Tm)(Me,{className:fe()((0,Ae.l$)(Me)?(pe=Me.props)===null||pe===void 0?void 0:pe.className:"",`${tt}-item-icon`)}),Gt(mt));return ut||(zt=he.createElement(Re.Z,Object.assign({},yt,{placement:dt==="rtl"?"left":"right",overlayClassName:`${tt}-inline-collapsed-tooltip`}),zt)),zt},E=Fe=>{var pe;const{popupClassName:Pe,icon:Ge,title:Me,theme:Xe}=Fe,et=he.useContext(a),{prefixCls:tt,inlineCollapsed:it,theme:dt}=et,ut=(0,re.Xl)();let mt;if(!Ge)mt=it&&!ut.length&&Me&&typeof Me=="string"?he.createElement("div",{className:`${tt}-inline-collapsed-noicon`},Me.charAt(0)):he.createElement("span",{className:`${tt}-title-content`},Me);else{const At=(0,Ae.l$)(Me)&&Me.type==="span";mt=he.createElement(he.Fragment,null,(0,Ae.Tm)(Ge,{className:fe()((0,Ae.l$)(Ge)?(pe=Ge.props)===null||pe===void 0?void 0:pe.className:"",`${tt}-item-icon`)}),At?Me:he.createElement("span",{className:`${tt}-title-content`},Me))}const Gt=he.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]);return he.createElement(a.Provider,{value:Gt},he.createElement(re.Wd,Object.assign({},(0,ze.Z)(Fe,["icon"]),{title:mt,popupClassName:fe()(tt,Pe,`${tt}-${Xe||dt}`)})))},z=ie(18785),ee=ie(70425),te=ie(62892),ae=ie(40875),oe=function(Fe,pe){var Pe={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&pe.indexOf(Ge)<0&&(Pe[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ge=Object.getOwnPropertySymbols(Fe);Me<Ge.length;Me++)pe.indexOf(Ge[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[Me])&&(Pe[Ge[Me]]=Fe[Ge[Me]]);return Pe};function ge(Fe){return(Fe||[]).map((pe,Pe)=>{if(pe&&typeof pe=="object"){const Ge=pe,{label:Me,children:Xe,key:et,type:tt}=Ge,it=oe(Ge,["label","children","key","type"]),dt=et!=null?et:`tmp-${Pe}`;return Xe||tt==="group"?tt==="group"?he.createElement(re.BW,Object.assign({key:dt},it,{title:Me}),ge(Xe)):he.createElement(E,Object.assign({key:dt},it,{title:Me}),ge(Xe)):tt==="divider"?he.createElement(Be,Object.assign({key:dt},it)):he.createElement(x,Object.assign({key:dt},it),Me)}return null}).filter(pe=>pe)}function le(Fe){return he.useMemo(()=>Fe&&ge(Fe),[Fe])}var me=ie(64993),ye=ie(17313),we=ie(8378),Ke=ie(13826),gt=ie(29878),at=ie(83116),st=ie(37613),ht=Fe=>{const{componentCls:pe,motionDurationSlow:Pe,horizontalLineHeight:Ge,colorSplit:Me,lineWidth:Xe,lineType:et,itemPaddingInline:tt}=Fe;return{[`${pe}-horizontal`]:{lineHeight:Ge,border:0,borderBottom:`${Xe}px ${et} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:tt},[`> ${pe}-item:hover,
|
|
> ${pe}-item-active,
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},wt=Fe=>{let{componentCls:pe,menuArrowOffset:Pe}=Fe;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const Et=Fe=>Object.assign({},(0,ye.oN)(Fe));var It=(Fe,pe)=>{const{componentCls:Pe,itemColor:Ge,itemSelectedColor:Me,groupTitleColor:Xe,itemBg:et,subMenuItemBg:tt,itemSelectedBg:it,activeBarHeight:dt,activeBarWidth:ut,activeBarBorderWidth:mt,motionDurationSlow:Gt,motionEaseInOut:At,motionEaseOut:Mt,itemPaddingInline:yt,motionDurationMid:Tt,itemHoverColor:zt,lineType:Ut,colorSplit:Ht,itemDisabledColor:tn,dangerItemColor:jt,dangerItemHoverColor:Rt,dangerItemSelectedColor:nn,dangerItemActiveBg:xt,dangerItemSelectedBg:Wt,itemHoverBg:on,itemActiveBg:un,menuSubMenuBg:zn,horizontalItemSelectedColor:vn,horizontalItemSelectedBg:wn,horizontalItemBorderRadius:An,horizontalItemHoverBg:hn,popupBg:Nn}=Fe;return{[`${Pe}-${pe}, ${Pe}-${pe} > ${Pe}`]:{color:Ge,background:et,[`&${Pe}-root:focus-visible`]:Object.assign({},Et(Fe)),[`${Pe}-item-group-title`]:{color:Xe},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Me}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${tn} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:zt}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:un}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:un}}},[`${Pe}-item-danger`]:{color:jt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:xt}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Me,[`&${Pe}-item-danger`]:{color:nn},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:it,[`&${Pe}-item-danger`]:{backgroundColor:Wt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},Et(Fe))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:zn},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:Nn},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:mt,marginTop:-mt,marginBottom:0,borderRadius:An,"&::after":{position:"absolute",insetInline:yt,bottom:0,borderBottom:`${dt}px solid transparent`,transition:`border-color ${Gt} ${At}`,content:'""'},"&:hover, &-active, &-open":{background:hn,"&::after":{borderBottomWidth:dt,borderBottomColor:vn}},"&-selected":{color:vn,backgroundColor:wn,"&:hover":{backgroundColor:wn},"&::after":{borderBottomWidth:dt,borderBottomColor:vn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${mt}px ${Ut} ${Ht}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:tt},[`${Pe}-item, ${Pe}-submenu-title`]:mt&&ut?{width:`calc(100% + ${mt}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ut}px solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Tt} ${Mt}`,`opacity ${Tt} ${Mt}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:nn}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Tt} ${At}`,`opacity ${Tt} ${At}`].join(",")}}}}}};const Jt=Fe=>{const{componentCls:pe,itemHeight:Pe,itemMarginInline:Ge,padding:Me,menuArrowSize:Xe,marginXS:et,itemMarginBlock:tt}=Fe,it=Me+Xe+et;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Me,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ge,marginBlock:tt,width:`calc(100% - ${Ge*2}px)`},[`> ${pe}-item,
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
${pe}-submenu-title`]:{paddingInlineEnd:it}}};var be=Fe=>{const{componentCls:pe,iconCls:Pe,itemHeight:Ge,colorTextLightSolid:Me,dropdownWidth:Xe,controlHeightLG:et,motionDurationMid:tt,motionEaseOut:it,paddingXL:dt,itemMarginInline:ut,fontSizeLG:mt,motionDurationSlow:Gt,paddingXS:At,boxShadowSecondary:Mt,collapsedWidth:yt,collapsedIconSize:Tt}=Fe,zt={height:Ge,lineHeight:`${Ge}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},Jt(Fe))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},Jt(Fe)),{boxShadow:Mt})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Xe,maxHeight:`calc(100vh - ${et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gt}`,`background ${Gt}`,`padding ${tt} ${it}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:zt,[`& ${pe}-item-group-title`]:{paddingInlineStart:dt}},[`${pe}-item`]:zt}},{[`${pe}-inline-collapsed`]:{width:yt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:mt,textAlign:"center"}}},[`> ${pe}-item,
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${mt/2}px - ${ut}px)`,textOverflow:"clip",[`
|
|
${pe}-submenu-arrow,
|
|
${pe}-submenu-expand-icon
|
|
`]:{opacity:0},[`${pe}-item-icon, ${Pe}`]:{margin:0,fontSize:Tt,lineHeight:`${Ge}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Me}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},ye.vS),{paddingInline:At})}}]};const De=Fe=>{const{componentCls:pe,motionDurationSlow:Pe,motionDurationMid:Ge,motionEaseInOut:Me,motionEaseOut:Xe,iconCls:et,iconSize:tt,iconMarginInlineEnd:it}=Fe;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Me}`].join(","),[`${pe}-item-icon, ${et}`]:{minWidth:tt,fontSize:tt,transition:[`font-size ${Ge} ${Xe}`,`margin ${Pe} ${Me}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:it,opacity:1,transition:[`opacity ${Pe} ${Me}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,ye.Ro)()),[`&${pe}-item-only-child`]:{[`> ${et}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ot=Fe=>{const{componentCls:pe,motionDurationSlow:Pe,motionEaseInOut:Ge,borderRadius:Me,menuArrowSize:Xe,menuArrowOffset:et}=Fe;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:Xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Ge}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Xe*.6,height:Xe*.15,backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${Pe} ${Ge}`,`transform ${Pe} ${Ge}`,`top ${Pe} ${Ge}`,`color ${Pe} ${Ge}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${et})`},"&::after":{transform:`rotate(-45deg) translateY(${et})`}}}}},He=Fe=>{const{antCls:pe,componentCls:Pe,fontSize:Ge,motionDurationSlow:Me,motionDurationMid:Xe,motionEaseInOut:et,paddingXS:tt,padding:it,colorSplit:dt,lineWidth:ut,zIndexPopup:mt,borderRadiusLG:Gt,subMenuItemBorderRadius:At,menuArrowSize:Mt,menuArrowOffset:yt,lineType:Tt,menuPanelMaskInset:zt,groupTitleLineHeight:Ut,groupTitleFontSize:Ht}=Fe;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,ye.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(Fe)),(0,ye.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ge,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Me} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:Fe.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${tt}px ${it}px`,fontSize:Ht,lineHeight:Ut,transition:`all ${Me}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Me} ${et}`,`background ${Me} ${et}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Me} ${et}`,`background ${Me} ${et}`,`padding ${Xe} ${et}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Me} ${et}`,`padding ${Me} ${et}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Me}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:dt,borderStyle:Tt,borderWidth:0,borderTopWidth:ut,marginBlock:ut,padding:0,"&-dashed":{borderStyle:"dashed"}}}),De(Fe)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Ge*2}px ${it}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:mt,borderRadius:Gt,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${zt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:zt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Fe.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gt},De(Fe)),ot(Fe)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:At},[`${Pe}-submenu-title::after`]:{transition:`transform ${Me} ${et}`}})}}),ot(Fe)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
|
|
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${yt})`},"&::after":{transform:`rotate(45deg) translateX(-${yt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${Mt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${yt})`},"&::before":{transform:`rotate(45deg) translateX(${yt})`}}})},{[`${pe}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var nt=(Fe,pe)=>(0,at.Z)("Menu",Ge=>{if(pe===!1)return[];const{colorBgElevated:Me,colorPrimary:Xe,colorTextLightSolid:et,controlHeightLG:tt,fontSize:it,darkItemColor:dt,darkDangerItemColor:ut,darkItemBg:mt,darkSubMenuItemBg:Gt,darkItemSelectedColor:At,darkItemSelectedBg:Mt,darkDangerItemSelectedBg:yt,darkItemHoverBg:Tt,darkGroupTitleColor:zt,darkItemHoverColor:Ut,darkItemDisabledColor:Ht,darkDangerItemHoverColor:tn,darkDangerItemSelectedColor:jt,darkDangerItemActiveBg:Rt}=Ge,nn=it/7*5,xt=(0,st.TS)(Ge,{menuArrowSize:nn,menuHorizontalHeight:tt*1.15,menuArrowOffset:`${nn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Me}),Wt=(0,st.TS)(xt,{itemColor:dt,itemHoverColor:Ut,groupTitleColor:zt,itemSelectedColor:At,itemBg:mt,popupBg:mt,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:Mt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tt,itemDisabledColor:Ht,dangerItemColor:ut,dangerItemHoverColor:tn,dangerItemSelectedColor:jt,dangerItemActiveBg:Rt,dangerItemSelectedBg:yt,menuSubMenuBg:Gt,horizontalItemSelectedColor:et,horizontalItemSelectedBg:Xe});return[He(xt),ht(xt),be(xt),It(xt,"light"),It(Wt,"dark"),wt(xt),(0,we.Z)(xt),(0,Ke.oN)(xt,"slide-up"),(0,Ke.oN)(xt,"slide-down"),(0,gt._y)(xt,"zoom-big")]},Ge=>{const{colorPrimary:Me,colorError:Xe,colorTextDisabled:et,colorErrorBg:tt,colorText:it,colorTextDescription:dt,colorBgContainer:ut,colorFillAlter:mt,colorFillContent:Gt,lineWidth:At,lineWidthBold:Mt,controlItemBgActive:yt,colorBgTextHover:Tt,controlHeightLG:zt,lineHeight:Ut,colorBgElevated:Ht,marginXXS:tn,padding:jt,fontSize:Rt,controlHeightSM:nn,fontSizeLG:xt,colorTextLightSolid:Wt,colorErrorHover:on}=Ge,un=new me.C(Wt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ge.zIndexPopupBase+50,radiusItem:Ge.borderRadiusLG,itemBorderRadius:Ge.borderRadiusLG,radiusSubMenuItem:Ge.borderRadiusSM,subMenuItemBorderRadius:Ge.borderRadiusSM,colorItemText:it,itemColor:it,colorItemTextHover:it,itemHoverColor:it,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:dt,groupTitleColor:dt,colorItemTextSelected:Me,itemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:ut,itemBg:ut,colorItemBgHover:Tt,itemHoverBg:Tt,colorItemBgActive:Gt,itemActiveBg:yt,colorSubItemBg:mt,subMenuItemBg:mt,colorItemBgSelected:yt,itemSelectedBg:yt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Mt,activeBarHeight:Mt,colorActiveBarBorderSize:At,activeBarBorderWidth:At,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:Xe,dangerItemColor:Xe,colorDangerItemTextHover:Xe,dangerItemHoverColor:Xe,colorDangerItemTextSelected:Xe,dangerItemSelectedColor:Xe,colorDangerItemBgActive:tt,dangerItemActiveBg:tt,colorDangerItemBgSelected:tt,dangerItemSelectedBg:tt,itemMarginInline:Ge.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:zt,groupTitleLineHeight:Ut,collapsedWidth:zt*2,popupBg:Ht,itemMarginBlock:tn,itemPaddingInline:jt,horizontalLineHeight:`${zt*1.15}px`,iconSize:Rt,iconMarginInlineEnd:nn-Rt,collapsedIconSize:xt,groupTitleFontSize:Rt,darkItemDisabledColor:new me.C(Wt).setAlpha(.25).toRgbString(),darkItemColor:un,darkDangerItemColor:Xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wt,darkItemSelectedBg:Me,darkDangerItemSelectedBg:Xe,darkItemHoverBg:"transparent",darkGroupTitleColor:un,darkItemHoverColor:Wt,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Wt,darkDangerItemActiveBg:Xe}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Fe),de=function(Fe,pe){var Pe={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&pe.indexOf(Ge)<0&&(Pe[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ge=Object.getOwnPropertySymbols(Fe);Me<Ge.length;Me++)pe.indexOf(Ge[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[Me])&&(Pe[Ge[Me]]=Fe[Ge[Me]]);return Pe},Pt=(0,he.forwardRef)((Fe,pe)=>{var Pe,Ge;const Me=he.useContext(ae.Z),Xe=Me||{},{getPrefixCls:et,getPopupContainer:tt,direction:it,menu:dt}=he.useContext(Ce.E_),ut=et(),{prefixCls:mt,className:Gt,style:At,theme:Mt="light",expandIcon:yt,_internalDisableMenuItemTitleTooltip:Tt,inlineCollapsed:zt,siderCollapsed:Ut,items:Ht,children:tn,rootClassName:jt,mode:Rt,selectable:nn,onClick:xt,overflowedIndicatorPopupClassName:Wt}=Fe,on=de(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),un=(0,ze.Z)(on,["collapsedWidth"]),zn=le(Ht)||tn;(Pe=Xe.validator)===null||Pe===void 0||Pe.call(Xe,{mode:Rt});const vn=(0,ee.useEvent)(function(){var mn;xt==null||xt.apply(void 0,arguments),(mn=Xe.onClick)===null||mn===void 0||mn.call(Xe)}),wn=Xe.mode||Rt,An=nn!=null?nn:Xe.selectable,hn=he.useMemo(()=>Ut!==void 0?Ut:zt,[zt,Ut]),Nn={horizontal:{motionName:`${ut}-slide-up`},inline:(0,te.Z)(ut),other:{motionName:`${ut}-zoom-big`}},gn=et("menu",mt||Xe.prefixCls),[Dn,Zn]=nt(gn,!Me),_n=fe()(`${gn}-${Mt}`,dt==null?void 0:dt.className,Gt);let fn;if(typeof yt=="function")fn=yt;else if(yt===null||yt===!1)fn=null;else if(Xe.expandIcon===null||Xe.expandIcon===!1)fn=null;else{const mn=yt!=null?yt:Xe.expandIcon;fn=(0,Ae.Tm)(mn,{className:fe()(`${gn}-submenu-expand-icon`,(0,Ae.l$)(mn)?(Ge=mn.props)===null||Ge===void 0?void 0:Ge.className:"")})}const Un=he.useMemo(()=>({prefixCls:gn,inlineCollapsed:hn||!1,direction:it,firstLevel:!0,theme:Mt,mode:wn,disableMenuItemTitleTooltip:Tt}),[gn,hn,it,Tt,Mt]);return Dn(he.createElement(ae.Z.Provider,{value:null},he.createElement(a.Provider,{value:Un},he.createElement(re.ZP,Object.assign({getPopupContainer:tt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(gn,`${gn}-${Mt}`,Wt),mode:wn,selectable:An,onClick:vn},un,{inlineCollapsed:hn,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),At),className:_n,prefixCls:gn,direction:it,defaultMotions:Nn,expandIcon:fn,ref:pe,rootClassName:fe()(jt,Zn)}),zn))))});const bt=(0,he.forwardRef)((Fe,pe)=>{const Pe=(0,he.useRef)(null),Ge=he.useContext(Oe.D);return(0,he.useImperativeHandle)(pe,()=>({menu:Pe.current,focus:Me=>{var Xe;(Xe=Pe.current)===null||Xe===void 0||Xe.focus(Me)}})),he.createElement(Pt,Object.assign({ref:Pe},Fe,Ge))});bt.Item=x,bt.SubMenu=E,bt.Divider=Be,bt.ItemGroup=re.BW;var ft=bt}}]);
|