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.
130 lines
333 KiB
130 lines
333 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1450],{33853:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return Ke}});var re=ie(54476),he=ie(59301),He={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"},Re=He,ue=ie(7657),Me=function(Ne,Oe){return he.createElement(ue.Z,(0,re.Z)({},Ne,{ref:Oe,icon:Re}))},se=he.forwardRef(Me),Ke=se},38819:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return Ke}});var re=ie(54476),he=ie(59301),He={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"},Re=He,ue=ie(7657),Me=function(Ne,Oe){return he.createElement(ue.Z,(0,re.Z)({},Ne,{ref:Oe,icon:Re}))},se=he.forwardRef(Me),Ke=se},40862:function(ye,Je){"use strict";Je.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},60803:function(){"use strict";function ye(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(ye.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(ye.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(ye.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(ye.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 ye))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 Je=[];function ie(ne,a){var y=Je.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function re(){var ne=Je.pop();return ne===void 0?new go.Point:ne}function he(ne){Je.push(ne)}function He(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,be=E-me*b;ge=ne,le=me*ge+be}else if(oe===0){var Be=(a-x)/ae,Qe=a-Be*ne;ge=b,le=Be*ge+Qe}else{var Be=(a-x)/ae,me=(E-ee)/oe,Qe=a-Be*ne,be=E-me*b;ge=(be-Qe)/(Be-me),le=Be*ge+Qe}return te.x=ge,te.y=le,te}function Re(ne,a,y,x,b,E,z,ee,te,ae,oe,ge,le,me){var be=1-te,Be=te,Qe=ne*be+y*Be,st=a*be+x*Be,bt=y*be+b*Be,pe=x*be+E*Be,Ie=b*be+z*Be,We=E*be+ee*Be,De=Qe*be+bt*Be,Ve=st*be+pe*Be,ft=bt*be+Ie*Be,Lt=pe*be+We*Be,pt=De*be+ft*Be,Ct=Ve*be+Lt*Be;ae.x=Qe,ae.y=st,oe.x=De,oe.y=Ve,ge.x=pt,ge.y=Ct,le.x=ft,le.y=Lt,me.x=Ie,me.y=We}var ue=new go.Spot(.156,.156),Me=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ye("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*se,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=ue,b.spot2=Me,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,se*a,0,a,(1-se)*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,se*y,(1-se)*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,se*y,se*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-se)*a,0,0,(1-se)*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 ye("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 ye("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 ye("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 ye("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 ye("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ke=[];function Ee(){var ne=Ke.pop();return ne===void 0?[]:ne}function Ne(ne){ne.length=0,Ke.push(ne)}function Oe(ne){for(var a=Ee(),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 Ce(ne){var a=xe(ne),y=Ee();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 Ne(a),y}function xe(ne){for(var a=Oe(ne),y=Ee(),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]=He(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],Ne(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Oe(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()),Ne(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=Oe(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()),Ne(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=Oe(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()),Ne(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=Oe(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()),Ne(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=Oe(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()),Ne(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=Oe(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()),Ne(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=Oe(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()),Ne(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=xe(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ne(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=xe(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ne(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=xe(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ne(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=xe(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ne(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=xe(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ne(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=xe(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ne(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=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),Ne(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=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),Ne(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=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),Ne(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=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),Ne(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=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),Ne(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=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),Ne(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ye("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ye("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 ye("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=ue,E.spot2=Me,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 ye("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ye("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=se/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 ye("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 ye("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 ye("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 ye("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 ye("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 ye("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,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*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*se;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*se,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*se,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=se*.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=se*.4;var ae=re(),oe=re(),ge=re(),le=re();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ae,oe,ge,le,le);var me=re(),be=re(),Be=re();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,le,le,Be,me,be);var Qe=re(),st=re(),bt=re();Re(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Qe,st,bt,le,le);var pe=re(),Ie=re(),We=re();return Re(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,le,le,We,pe,Ie),te.add(new go.PathSegment(go.PathSegment.Move,We.x*a,We.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,pe.x*a,pe.y*y,Ie.x*a,Ie.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,We.x*a,We.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,bt.x*a,bt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,be.x*a,be.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,bt.x*a,bt.y*y,Qe.x*a,Qe.y*y,st.x*a,st.y*y).close()),he(ae),he(oe),he(ge),he(le),he(me),he(be),he(Be),he(Qe),he(st),he(bt),he(pe),he(Ie),he(We),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 ye("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=se*.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)),Re(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);Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ae,oe,ge);var be=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,(be.x*.1+.9)*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,(be.y*.1+.05*.9)*y)),le.add(new go.PathSegment(go.PathSegment.Line,be.x*a,be.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=se*.35;var Be=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Be.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 Qe=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Qe),he(te),he(ae),he(oe),he(ge),he(me),he(be),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*se,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*se;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 ye("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ye("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=He(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 ye("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ye("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=He(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 ye("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=He(0,.5,.3,0,0,b/y,.1,b/y,re());return z.spot1=new go.Spot(te.x,te.y),te=He(.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 ye("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ye("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=He(0,.5,.3,ee/y,0,E/y,1,E/y,re());return ae.spot1=new go.Spot(ge.x,ge.y),ge=He(.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 ye("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=He(.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 ye("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ye("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=He(.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 ye("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=He(.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 ye("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=He(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 ye("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=He(.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 ye("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=He(.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 ye("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=se*.5,E=se*.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=se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,se*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-se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-se*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-se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-se*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=se*.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,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,se*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-se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-se*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-se*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-se*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=se*.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-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*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+se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+se*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=se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*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-se*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-se*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=se*b,ee=se*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=se*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=se*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=se*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=se*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=se*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 ye("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=se*.5,E=se*.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=se*.5,E=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.5,E=se*.4,z=se*.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=se*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=se*.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=se*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=se*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=se*.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=se*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=se*.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=se*.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=se*.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=se*.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=se*.2,ee=.2,te=.5,ae=.5;var be=new go.PathFigure((te-ee)*a+oe,ae*y+ge,!0);x.add(be),be.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)),be.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)),be.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)),be.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=se*.4,ee=.4,te=.8,ae=.5;var Be=new go.PathFigure(te*a+oe,(ae-ee)*y+ge,!0);x.add(Be),Be.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)),Be.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)),Be.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)),Be.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=se*.8,ee=.8,te=1,ae=.5;var Qe=new go.PathFigure(te*a+oe,(ae-ee)*y+ge,!0);return x.add(Qe),Qe.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)),Qe.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)),Qe.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)),Qe.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=se*.4,E=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ge=re();Re(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)),Re(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=se*.3,E=.3,Re(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)),Re(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*se,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,oe=1,ge=.5,le=.5,me=0,be=new go.PathFigure(te*a,(1-ae)*y,!1);return x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,ge*y,oe*a,.7*y,oe*a,ge*y)),be.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)),be.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)),be.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)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),be.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,be=oe*le,Be=oe*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-le)*a,te*y,(ee-(be+le)/2)*a,(te+(me+Be)/2)*y,(ee-le)*a,(te+Be)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-le)*a,(te-Be)*y,(ee-be)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+le)*a,te*y,(ee+be)*a,(te-me)*y,(ee+le)*a,(te-Be)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+le)*a,(te+Be)*y,(ee+(be+le)/2)*a,(te+(me+Be)/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 Qe=new go.PathFigure(.2*a,y,!1);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var st=new go.PathFigure(.8*a,y,!1);return x.add(st),st.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.05,le=.825,me=.95,be=new go.PathFigure((le-oe)*a,me*y,!0);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-ge)*y,(le-ge)*a,(me-oe)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+ge)*a,(me-oe)*y,(le+oe)*a,(me-ge)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+ge)*y,(le+ge)*a,(me+oe)*y)),be.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 Be=new go.PathFigure(0,y,!1);return x.add(Be),Be.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=se*.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=se*.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=se*.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=se*.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=se*.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*se,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*se,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*se,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")},75544: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 ye={},Je="5.0",ie={},re=null,he=!1,He=!1,Re=null,ue=!1,Me=null,se=null,Ke=0;Ke<arguments.length;Ke++){var Ee=arguments[Ke];if(Ee!==null)switch(typeof Ee){case"number":Je=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?Je=Ee:Re=Ee;break;case"object":typeof Ee.is3D!="undefined"?re=Ee:ie=Ee;break;case"boolean":he=Ee,He=!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&&!He&&(he=!0)),Re!==null&&ie.id===void 0&&(ie.id=Re);var Ne="",Oe="",Ce=!1,xe=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};ye.setHTML5Codebase=function(Le,we){se=Le,Lt(Le,we)},ye.setJavaCodebase=ye.setJavaCodebaseVersion=ye.isCompiledInstalled=ye.setPreCompiledScriptPath=ye.setPreCompiledResourcePath=function(){},ye.setHTML5CodebaseVersion=function(Le,we){var Te=parseFloat(Le);if(Te!==NaN&&Te<5){console.log("The GeoGebra HTML5 codebase version "+Te+" is deprecated. Using version latest instead.");return}Me=Le,ft(Le,we)},ye.getHTML5CodebaseVersion=function(){return ne},ye.getParameters=function(){return ie},ye.setFontsCSSURL=function(Le){z=Le},ye.setGiacJSURL=function(Le){},ye.setJNLPFile=function(Le){Ne=Le},ye.setJNLPBaseDir=function(Le){},ye.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var we="auto",Te=ie.id,dt,ke=!1,gt=0;gt<arguments.length;gt++){var de=arguments[gt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?we=de:Te=arguments[gt]):typeof de=="boolean"?ke=de:de instanceof HTMLElement&&(dt=de)}je();function je(){if(!ue){setTimeout(je,200);return}we=De(we);var ut=dt||document.getElementById(Te);if(!ut){console.log("possibly bug on ajax loading? ");return}if(ye.removeExistingApplet(ut,!1),ie.width===void 0&&ut.clientWidth&&(ie.width=ut.clientWidth),ie.height===void 0&&ut.clientHeight&&(ie.height=ut.clientHeight),!(ie.width&&ie.height)&&we==="html5"&&(delete ie.width,delete ie.height),xe=we,we==="screenshot")st(ut,ie);else{var wt=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?wt=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(wt=(!ae()||Le())&&oe()),wt?(xe="screenshot",pe(ut,ie,ke,we)):Qe(ut,ie,ke)}}};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}ye.getViews=function(){return re},ye.isJavaInstalled=function(){return!1};var ge=function(Le){var we=function(gt){var de=JSON.parse(gt),je=function(ct){return ct.type=="G"||ct.type=="E"},ut=de.elements?de.elements.filter(je)[0]:de;if(!ut||!ut.url){Te();return}ie.fileName=ut.url,le(ut.settings||{}),re.is3D=!0;var wt="https://www.geogebra.org/images/";ye.setPreviewImage(x||ut.previewUrl,wt+"GeoGebra_loading.png",wt+"applet_play.png"),Le()},Te=function(){ie.onError&&ie.onError(),pt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},dt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ke="/materials/"+ie.material_id+"?scope=basic";me("https://"+dt+"/api/proxy.php?path="+encodeURIComponent(ke),we,Te)};function le(Le){var we=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Te){Le[Te]=!!Le[Te]}),we.forEach(function(Te){ie[Te]===void 0&&Le[Te]!==void 0&&(ie[Te]=Le[Te])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function me(Le,we,Te){var dt=new XMLHttpRequest;dt.open("GET",Le),dt.onload=function(){we(dt.responseText)},dt.onerror=Te,dt.send()}ye.isHTML5Installed=function(){return!0},ye.getLoadedAppletType=function(){return xe},ye.setPreviewImage=function(Le,we,Te){x=Le,b=we,E=Te},ye.removeExistingApplet=function(Le,we){var Te;typeof Le=="string"&&(Le=document.getElementById(Le)),xe=null;var dt=null;for(Te=0;Te<Le.childNodes.length;Te++){var ke=Le.childNodes[Te],gt=ke.className;gt==="applet_screenshot"?we?(ke.style.display="block",xe="screenshot"):ke.style.display="none":gt!=="applet_scaler prerender"&&(Le.removeChild(ke),dt=gt&>.indexOf("appletParameters")!=-1?ke.id:null,Te--)}var de=ie.id!==void 0?ie.id:dt,je=window[de];je&&typeof je.getBase64=="function"&&(je.remove(),window[de]=null)},ye.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=ye.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},ye.startAnimation=function(){var Le=ye.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},ye.stopAnimation=function(){var Le=ye.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},ye.getAppletObject=function(){var Le=ie.id!==void 0?ie.id:"ggbApplet";return window[Le]},ye.resize=function(){};var be=function(Le,we,Te){var dt=document.createElement("param");dt.setAttribute("name",we),dt.setAttribute("value",Te),Le.appendChild(dt)},Be=function(Le){return Le&&Le!=="false"},Qe=function(Le,we,Te){te(ne)<=4.2&&(Te=!0);var dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ke=document.createElement("div");ke.classList.add("appletParameters","notranslate");var gt=we.width,de=we.height;if(we.disableAutoScale=we.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():we.disableAutoScale,we.width!==void 0)if(te(ne)<=4.4)Be(we.showToolBar)&&(we.height-=7),Be(we.showAlgebraInput)&&(we.height-=37),we.width<605&&Be(we.showToolBar)&&(we.width=605,gt=605);else{var je=100;(Be(we.showToolBar)||Be(we.showMenuBar))&&(we.hasOwnProperty("customToolBar")&&(we.customToolbar=we.customToolBar),je=Be(we.showMenuBar)?245:155),gt<je&&(we.width=je,gt=je)}ke.style.border="none",ke.style.display="inline-block";for(var ut in we)we.hasOwnProperty(ut)&&ut!=="appletOnLoad"&&ke.setAttribute("data-param-"+ut,we[ut]);z&&ke.setAttribute("data-param-fontscssurl",z),ye.resize=function(){GGBAppletUtils.responsiveResize(Le,we)},window.addEventListener("resize",function(at){ye.resize()});var wt=typeof we.appletOnLoad=="function"?we.appletOnLoad:function(){};if(!Te&&we.width!==void 0){we.hasOwnProperty("showSplash")||ke.setAttribute("data-param-showSplash","false");var ct=Le.querySelector(".applet_scaler.prerender"),Fe=ct!==null;if(Fe)var ve=ct.querySelector(".ggb_preview");else{var ve=We(gt,de,we.borderColor,!1);ct=document.createElement("div"),ct.className="applet_scaler",ct.style.position="relative",ct.style.display="block",ct.style.width=gt+"px",ct.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ct,"66%"),te(ne)>=5?(we.appletOnLoad=function(at){var St=Le.querySelector(".ggb_preview");St&&St.parentNode.removeChild(St),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ct),window.GGBT_wsf_view&&$(window).trigger("resize"),wt(at)},Fe||ct.appendChild(ve)):ke.appendChild(ve),ct.appendChild(ke),Fe||Le.appendChild(ct),setTimeout(function(){ye.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(ke),Le.appendChild(Se),we.appletOnLoad=function(at){ye.resize(),wt(at)}}function Ge(at,St){St&&typeof St.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(at,St.appletOnLoad):renderGGBElement(at),pt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",St)}function $e(at,St){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:at,params:St}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gt){Ge(Gt.article,Gt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(at.className+=" geogebraweb")):Ge(at,St)}if(dt){scriptLoadStarted=!0;for(var Ue=0;Ue<ke.childNodes.length;Ue++){var rt=ke.childNodes[Ue].tagName;rt==="TABLE"&&(ke.removeChild(ke.childNodes[Ue]),Ue--)}if(ggbHTML5LoadedScript!==null){var mt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');mt!=null&&mt.parentNode.removeChild(mt)}var lt=document.createElement("script"),Pt=function(){$e(ke,we)};lt.src=Oe+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=lt.src,pt("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",we),!se&&(!Me||Me=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Pt()):Oe.requirejs?__webpack_require__.e(7989).then(function(){var at=[__webpack_require__(87989)];Pt.apply(null,at)}.bind(this)).catch(__webpack_require__.oe):(lt.onload=Pt,Le.appendChild(lt))}else $e(ke,we);we.height=de,we.width=gt},st=function(Le,we,Te){var dt=We(we.width,we.height,we.borderColor,Te),ke=document.createElement("div");ke.style.position="relative",ke.style.display="block",ke.style.width=we.width+"px",ke.style.height=we.height+"px",ke.className="applet_screenshot applet_scaler"+(Te?" applet_screenshot_play":""),ke.appendChild(dt);var gt=GGBAppletUtils.getScale(we,Le,Te);Te?(Le.appendChild(Ie()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ke,"66%"),Le.appendChild(ke),gt!==1&&!isNaN(gt)&&(GGBAppletUtils.scaleElement(ke,gt),ke.style.width=we.width+"px",ke.style.height=we.height+"px",ke.parentNode.style.width=we.width*gt+"px",ke.parentNode.style.height=we.height*gt+"px"),ye.resize=function(){bt(Le,dt,ke,Te)},window.addEventListener("resize",function(de){ye.resize()}),ye.resize()};function bt(Le,we,Te,dt){if(Le.contains(we)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var ke=GGBAppletUtils.getScale(ie,Le,dt);Te.parentNode!==null&&(!isNaN(ke)&&ke!==1?(GGBAppletUtils.scaleElement(Te,ke),Te.parentNode.style.width=ie.width*ke+"px",Te.parentNode.style.height=ie.height*ke+"px"):(GGBAppletUtils.scaleElement(Te,1),Te.parentNode.style.width=ie.width+"px",Te.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()}}ye.onExitFullscreen=function(Le,we){we.appendChild(Le)};var pe=function(Le,we,Te,dt){st(Le,we,!0);for(var ke=function(){var je=[];for(de=0;de<Le.childNodes.length;de++)je.push(Le.childNodes[de]);if(window.GGBT_wsf_view){var ut=window.GGBT_wsf_view.renderFullScreen(Le,we.id),wt=document.getElementById("fullscreencontainer"),ct=jQuery(Le).find(".fullscreencontent");ct.length>0?(ut.remove(),ct.attr("id","fullscreencontent").show(),jQuery(wt).append(ct),window.dispatchEvent(new Event("resize"))):Qe(ut,we,!1),window.GGBT_wsf_view.launchFullScreen(wt)}else xe=dt,Qe(Le,we,!1);if(!window.GGBT_wsf_view)for(de=0;de<je.length;de++)Le.removeChild(je[de])},gt=Le.getElementsByClassName("ggb_preview_play"),de=0;de<gt.length;de++)gt[de].addEventListener("click",ke,!1),gt[de].addEventListener("ontouchstart",ke,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ie=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var we='.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");}',Te=document.createElement("style");Te.styleSheet?Te.styleSheet.cssText=we:Te.appendChild(document.createTextNode(we)),document.getElementsByTagName("head")[0].appendChild(Te)}return Le},We=function(Le,we,Te,dt){var ke=document.createElement("div");ke.className="ggb_preview",ke.style.position="absolute",ke.style.zIndex="90",ke.style.width=Le-2+"px",ke.style.height=we-2+"px",ke.style.top="0px",ke.style.left="0px",ke.style.overflow="hidden",ke.style.backgroundColor="white";var gt="lightgrey";Te!==void 0&&(Te==="none"?gt="transparent":gt=Te),ke.style.border="1px solid "+gt;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 je,ut,wt;if(!dt){je=document.createElement("img"),je.style.position="absolute",je.style.zIndex="1001",je.style.opacity=1,de.style.opacity=.3,ut=360,ut>Le/4*3&&(ut=Le/4*3),wt=ut/5.8,je.setAttribute("src",b),je.setAttribute("width",ut),je.setAttribute("height",wt);var ct=(Le-ut)/2,Fe=(we-wt)/2;je.style.left=ct+"px",je.style.top=Fe+"px",ke.appendChild(je)}}return ke.appendChild(de),ke},De=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},Ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ft=function(Le,we){if(ne=Le,we){Lt(ne,!0);return}var Te=!he;if(Te){var dt=te(ne);!isNaN(dt)&&dt<4.4&&(Te=!1)}var ke,gt;window.location.protocol.substr(0,4)==="http"?ke=window.location.protocol:ke="http:";var de=ne.indexOf("//");de>0?gt=ne:de===0?gt=ke+ne:gt="https://www.geogebra.org/apps/5.2.814.0/";for(var je in Ve)if(ne.slice(Ve[je].length*-1)===Ve[je]||ne.slice((Ve[je].length+1)*-1)===Ve[je]+"/"){Lt(gt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Te&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!Be(ie.showToolBar)&&!Be(ie.showMenuBar)&&!Be(ie.showAlgebraInput)&&!Be(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?gt+="webSimple/":gt+="web3d/",Lt(gt,!1)},Lt=function(Le,we){if(Le.requirejs){Oe=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),Oe=Le,we===null&&(we=Le.indexOf("http")===-1),Ce=we,a="web.nocache.js",y=!1;var Te=Oe.split("/");Te.length>1&&(!we&&Te[Te.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ve.indexOf(Te[Te.length-2])>=0&&(a=Te[Te.length-2]+".nocache.js")),Te=Le.split("/"),ne=Te[Te.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 dt=parseFloat(ne);dt!==NaN&&dt<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+dt+" is deprecated. Using version latest instead."),ft("5.0",we))},pt=function(Le,we){window.console&&window.console.log&&(!we||typeof we.showLogging=="undefined"||we.showLogging&&we.showLogging!=="false")&&console.log(Le)};ie.material_id!==void 0?ge(Ct):Ct();function Ct(){var Le=Je;Me!==null?Le=Me:parseFloat(Le)<5&&(Le="5.0"),ft(Le,!1),se!==null&&Lt(se,Ce),ue=!0}return ye},GGBAppletUtils=function(){"use strict";function ye(){return window.GGBT_wsf_edit!==void 0}function Je(ue,Me){Me!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Me+","+Me+")",ue.style.webkitTransform="scale("+Me+","+Me+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function ie(ue,Me,se,Ke,Ee,Ne){var Oe=null;if(Ne!=null&&Ne!="")for(var Ce=ue.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+Ne+" ")>-1){Oe=Ce;break}else Ce=Ce.parentNode;var xe=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Oe)xe=Oe.offsetWidth,ne=Math.max(Ke?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=xe):(xe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=xe&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(x=xe-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ue&&((se===void 0||!se)&&Me>0&&Me+y<xe?xe=Me:xe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ne-=E)),{width:xe,height:ne}}function re(ue,Me,se,Ke,Ee){if(ue.isScreenshoGenerator)return 1;var Ne=Ke!==void 0&&Ke,Oe=ue.noScaleMargin!=null&&ue.noScaleMargin,Ce=function(ee){return ee&&ee!=="false"},xe=Ce(ue.autoHeight),ne=ie(Me,ue.width,se,xe,Ne&&window.GGBT_wsf_view||Oe,Ee),a=parseInt(ne.width),y=ue.width,x=ue.height;if(y===void 0){var b=Me.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ne?1:ne.height/x;return se!==void 0&&!se&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(ue,Me,se){var Ke=1,Ee,Ne=!1;if(ue.hasOwnProperty("allowUpscale")&&(Ne=ue.allowUpscale),ue.hasOwnProperty("scale")&&(Ke=parseFloat(ue.scale),(isNaN(Ke)||Ke===null||Ke===0)&&(Ke=1),Ke>1&&(Ne=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))Ee=re(ue,Me,Ne,se,ue.scaleContainerClass);else return Ke;return Ne&&(!ue.hasOwnProperty("scale")||Ke===1)?Ee:Math.min(Ke,Ee)}function He(ue){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=ue.getBoundingClientRect(),Ee=(Me-Ke.width)/2,Ne=(se-Ke.height)/2;Ne<0&&(Ne=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?ue.style.left="40px":ue.style.left=Ee+"px",ue.style.top=Ne+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne<40?ue.style.top="40px":ue.style.top=Ne+"px",ue.style.left=Ee+"px")}function Re(ue,Me){var se=ue.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Ke=he(Me,ue);ye()&&se.setAttribute("data-param-scale",Ke);for(var Ee=null,Ne=0;Ne<ue.childNodes.length;Ne++)if(ue.childNodes[Ne].className!==void 0&&ue.childNodes[Ne].className.match(/^applet_scaler/)){Ee=ue.childNodes[Ne];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var Oe=Me.id!==void 0?Me.id:"ggbApplet",Ce=window[Oe];(Ce==null||!Ce.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(Ke)&&Ke!==1?(Ee.parentNode.style.width=Me.width*Ke+"px",Ee.parentNode.style.height=Me.height*Ke+"px",Je(Ee,Ke)):(Je(Ee,1),Ee.parentNode.style.width=Me.width+"px",Ee.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&He(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:ye,positionCenter:He,getScale:he,scaleElement:Je}}();__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 ye=n.location.search;return ye.indexOf(J)!=-1||ye.indexOf(K)!=-1}function q(ye,Je){}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(ye){var Je=s[L].bindings;s[L].bindings=function(){for(var ie=Je?Je():{},re=ye[webModule.__softPermutationId],he=O;he<re.length;he++){var He=re[he];ie[He[O]]=He[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var ye=o.createElement(Q);if(ye.id=L,ye.style.cssText=R+S,ye.tabIndex=-1,o.body.appendChild(ye),t=ye.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Je=document.compatMode==U?V:W;t.write(Je+X),t.close()}}}function w(ye){function Je(re){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var He=he();if(He){re();return}function Re(){if(!He){if(!he())return;He=!0,re(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var ue=setInterval(function(){Re()},$)}function ie(re){var he=u(),He=he.body,Re=he.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=re,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),He.appendChild(Re)}Je(function(){ie(ye)})}webModule.__startLoadingFragment=function(ye){return C(ye)},webModule.__installRunAsyncCode=function(ye){var Je=u(),ie=Je.body,re=Je.createElement(_);re.language=ab,re.text=ye,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(ye){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ye){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ye){var Je=c[ye];return Je==null?null:Je},r=d,webModule.__errFn=e}function B(){function ye(ue){var Me=ue.lastIndexOf(rb);Me==-1&&(Me=ue.length);var se=ue.indexOf(sb);se==-1&&(se=ue.length);var Ke=ue.lastIndexOf(tb,Math.min(se,Me));return Ke>=O?ue.substring(O,Ke+P):W}function Je(ue){if(!ue.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=ue+vb,ue=ye(Me.src)}return ue}function ie(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function re(){for(var ue=o.getElementsByTagName(_),Me=O;Me<ue.length;++Me)if(ue[Me].src.indexOf(xb)!=-1)return ye(ue[Me].src);return W}function he(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function He(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var Re=ie();return Re==W&&(Re=re()),Re==W&&(Re=he()),Re==W&&He()&&(Re=ye(o.location.href)),Re=Je(Re),Re}function C(ye){return ye.match(/^\//)||ye.match(/^[a-zA-Z]+:\/\//)?ye:webModule.__moduleBase+ye}function D(){var ye=[],Je=O,ie=[],re=[];function he(ue){var Me=re[ue](),se=ie[ue];if(Me in se)return Me;var Ke=[];for(var Ee in se)Ke[se[Ee]]=Ee;throw r&&r(ue,Ke,Me),null}if(__gwt_isKnownPropertyValue=function(ue,Me){return Me in ie[ue]},webModule.__getPropMap=function(){var ue={};for(var Me in ie)ie.hasOwnProperty(Me)&&(ue[Me]=he(Me));return ue},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var He;try{He=Cb;var Re=He.indexOf(Db);Re!=-1&&(Je=parseInt(He.substring(Re+P),$),He=He.substring(O,Re))}catch(ue){}return webModule.__softPermutationId=Je,C(He+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})()},52882:function(ye,Je,ie){"use strict";ie.d(Je,{Ax:function(){return Re},Ds:function(){return ue},KI:function(){return se},SI:function(){return He},f1:function(){return he}});var re=ie(26869);function he(Ke){let Ee=!0;if(Ke.length>0){for(let Ne=0;Ne<Ke.length;Ne++)if(Ke[Ne].compile_success==0||!Ke[Ne].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function He(Ke,Ee=""){let Ne=[];for(let Oe=0;Oe<Ke.length;Oe++){let Ce=Ke[Oe],xe=Ee?`${Ee}/${Ce.name}`:`${Ce.name}`;Ne.push({title:Ce.name,type:Ce.type,isLeaf:Ce.type!=="tree",key:xe})}return Ne}function Re(Ke,Ee,Ne){for(let Oe=0;Oe<Ke.length;Oe++){let Ce=Ke[Oe];if(Ce.key===Ee){Ce.children=Ne;break}Ce.children&&Re(Ce.children,Ee,Ne)}return Ke}function ue(Ke,Ee,Ne){let Oe;return function(){let Ce=this,xe=arguments,ne=function(){Oe=null,Ne||Ke.apply(Ce,xe)},a=Ne&&!Oe;clearTimeout(Oe),Oe=setTimeout(ne,Ee),a&&Ke.apply(Ce,xe)}}const Me=!0,se=re.Z.API_SERVER},3353:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return Oe}});var re=ie(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},He=ie(92310),Re=ie.n(He),ue=ie(71418),Me=ie(2859),se=ie(97013),Ke=ie(31735),Ee=(Ce,xe,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ce,xe)).next())}),Oe=({data:Ce,className:xe,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)),Ce!=null&&Ce.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ce!=null&&Ce.src&&be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ce==null?void 0:Ce.visible]);const be=()=>Ee(void 0,null,function*(){ge(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Ke.ZJ)(Ce==null?void 0:Ce.src);z.current.src="",z.current.src=pe,z.current.onload=function(){bt()},ge(!1),me("")}),Be=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},Qe=pe=>Ee(void 0,null,function*(){ge(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ie=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ce.title,file:pe.dataUrl}});Ie!=null&&Ie.id&&!E?(yield(0,se.ZP)(`/api/attachments/${Ce.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ie==null?void 0:Ie.id,settings:JSON.stringify(pe.state)}})).status===0&&x():Ie!=null&&Ie.id&&x(Ie),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),me("")}),st=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.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(We=>{const De=document.querySelector(We.name);De&&De.setAttribute("title",We.title)})},bt=()=>{ee.current=new Me.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Qe),ee.current.addEventListener("beforeclose",Be),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(),Ce!=null&&Ce.snapshotData&&ee.current.restoreState(Ce.snapshotData),setTimeout(()=>{window.scrollTo(0,0),st()},300)};return re.createElement(re.Fragment,null,(Ce==null?void 0:Ce.visible)&&re.createElement(ue.Z,{spinning:oe,tip:le,style:{position:"absolute"}},re.createElement("div",{ref:ae,className:Re()(he.imageDimensions,xe,ne?he.fullWidth:""),style:a},re.createElement("img",{className:he.img,ref:z}))))}},50047:function(ye,Je,ie){"use strict";var re=ie(59301),he=ie(95237),He=ie(43604),Re=ie(99313),ue=ie(3113),Me=ie(95318),se=ie(40862),Ke=ie(48136),Ee=ie(59301);const Ne=(0,re.forwardRef)(({callback:Oe,showSaveButton:Ce,value:xe=""},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:Ee.createElement(he.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ee.createElement(He.Z,{flex:"110px",className:se.Z.item},Ee.createElement("div",null,Ee.createElement(Me.Z,{value:`$$${ee.value}$$`}),ee.name),Ee.createElement("div",{className:se.Z.children},ee.children.map((ae,oe)=>Ee.createElement("div",{key:oe},Ee.createElement("h1",null,ae.name),Ee.createElement(he.Z,{gutter:[10,10]},ae.data.map((ge,le)=>Ee.createElement(He.Z,{key:le,onClick:()=>b(ge),className:se.Z.diamond},Ee.createElement(Me.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(he.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ee.createElement(He.Z,{flex:"110px",className:se.Z.item},Ee.createElement("div",null,Ee.createElement(Me.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ee.createElement("div",{className:se.Z.children},ee.children.map((ae,oe)=>Ee.createElement("div",{key:oe},ae.name&&Ee.createElement("h1",null,ae.name),Ee.createElement(he.Z,{gutter:[10,10]},ae.data.map((ge,le)=>Ee.createElement(He.Z,{key:le,onClick:()=>b(ge),className:se.Z.diamond},Ee.createElement(Me.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Oe&&Oe(te),te};return(0,re.useImperativeHandle)(ne,()=>({getData:z})),Ee.createElement("div",{className:se.Z.mathWrap},Ee.createElement(Re.default,{defaultActiveKey:"1",items:E}),Ee.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},xe||""),Ce&&Ee.createElement("div",{className:se.Z.button},Ee.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Je.Z=Ne},92928:function(ye,Je,ie){"use strict";ie.d(Je,{h:function(){return ee}});var re=ie(59301),he=ie(57809),He=ie(78241),Re=ie(3113),ue=ie(89780),Me=ie.n(ue),se=ie(2018),Ke=ie(66551),Ee=Object.defineProperty,Ne=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,oe)=>ae in te?Ee(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:oe}):te[ae]=oe,y=(te,ae)=>{for(var oe in ae||(ae={}))xe.call(ae,oe)&&a(te,oe,ae[oe]);if(Ce)for(var oe of Ce(ae))ne.call(ae,oe)&&a(te,oe,ae[oe]);return te},x=(te,ae)=>Ne(te,Oe(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"]};Je.Z=({callback:te,onCancel:ae})=>{const[oe,ge]=(0,re.useState)("python");function le(be){ge(z[be][1])}function me(be){te(be)}return re.createElement(He.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),re.createElement(He.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(he.default,{getPopupContainer:be=>be.parentNode,onChange:le},Object.keys(z).map(be=>re.createElement(b,{key:be,value:be},z[be][0])))),re.createElement(He.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(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Re.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:oe,options:ge={}}){const le=(0,re.useRef)(),[me,be]=(0,re.useState)();return(0,re.useEffect)(()=>{if(me){let Be=function(Qe){const st=Qe.getValue();ae&&ae(st)};return me.on("change",Be),()=>{me.off("change",Be)}}},[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 Be=Me().fromTextArea(le.current,y({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));be(Be)}},[le.current,me]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:le}))}},86401:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return la}});var re=ie(59301),he=ie(89780),He=ie.n(he),Re=ie(76374),ue=ie(2018),Me=ie(6313),se=ie(25717),Ke=ie(99498),Ee=ie(25419),Ne=ie(67549),Oe=ie(95318),Ce=({value:ce="",className:fe,showTextOnly:Pe,showLines:Ze,style:it={}})=>{const ot=(0,re.useMemo)(()=>"",[ce]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:ot}}))},xe=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ce,fe,Pe)=>fe in ce?ne(ce,fe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[fe]=Pe,ee=(ce,fe)=>{for(var Pe in fe||(fe={}))b.call(fe,Pe)&&z(ce,Pe,fe[Pe]);if(x)for(var Pe of x(fe))E.call(fe,Pe)&&z(ce,Pe,fe[Pe]);return ce},te=(ce,fe)=>a(ce,y(fe));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:ce,title:fe,icon:Pe,actionName:Ze,className:it="",children:ot}){function Et(){ce(Ze)}return xe.createElement("a",{title:fe,className:it,onClick:Et},xe.createElement("i",{className:`${Pe}`}),ot)}var ge=({watch:ce,showNullButton:fe,showNullProgramButton:Pe,onActionCallback:Ze,fullScreen:it,insertTemp:ot,hidetoolBar:Et,extraUse:vt})=>{const yt=[...ae,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!Et&&yt.map((Ot,rn)=>xe.createElement("li",{key:rn},Ot.actionName?xe.createElement(oe,te(ee({},Ot),{onActionCallback:Ze})):xe.createElement("span",{className:"v-line"}))),fe?xe.createElement("li",null,xe.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ze},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ze},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ze},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ot&&xe.createElement("li",null,xe.createElement(oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ot}`,onActionCallback:Ze},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),vt&&xe.createElement("li",null,vt),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(oe,{icon:`${it?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:it?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ze})))},le=ie(35990),me=ie(78241),be=ie(92832),Be=ie(3113),Qe=Object.defineProperty,st=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,De=(ce,fe,Pe)=>fe in ce?Qe(ce,fe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[fe]=Pe,Ve=(ce,fe)=>{for(var Pe in fe||(fe={}))Ie.call(fe,Pe)&&De(ce,Pe,fe[Pe]);if(pe)for(var Pe of pe(fe))We.call(fe,Pe)&&De(ce,Pe,fe[Pe]);return ce},ft=(ce,fe)=>st(ce,bt(fe));const Lt={labelCol:{span:4},wrapperCol:{span:20}};var pt=({callback:ce,onCancel:fe})=>{function Pe(Ze){ce(Ze)}return re.createElement(me.default,ft(Ve({},Lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,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(be.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(be.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Be.ZP,{type:"ghost",onClick:fe},"\u53D6\u6D88")))},Ct=ie(92928),Le=ie(82441),we=ie(43418),Te=ie(95237),dt=ie(3353),ke=ie(59301),gt=({callback:ce,onCancel:fe})=>{const Pe=document.createElement("canvas"),Ze=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ze.fillStyle="#ffffff",Ze.fillRect(0,0,Pe.width,Pe.height);const it=Pe.toDataURL("image/png");return ke.createElement(we.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ke.createElement(Te.Z,{style:{height:"100vh"}},ke.createElement(dt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:it,visible:!0,title:String(Date.now())},onOk:ot=>{ce({src:ot.url})},onClose:fe})))},de=ie(12378);function je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(je,go.CommandHandler),je.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},je.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var fe=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(fe=Math.min(Pe.position.x,fe))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(fe,Pe.position.y))}),ce.commitTransaction("aligning left")},je.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var fe=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ze=Pe.actualBounds.x+Pe.actualBounds.width;fe=Math.max(Ze,fe)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(fe-Pe.actualBounds.width,Pe.position.y))}),ce.commitTransaction("aligning right")},je.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var fe=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(fe=Math.min(Pe.position.y,fe))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,fe))}),ce.commitTransaction("alignTop")},je.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var fe=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ze=Pe.actualBounds.y+Pe.actualBounds.height;fe=Math.max(Ze,fe)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,fe-Pe.actualBounds.height))}),ce.commitTransaction("aligning bottom")},je.prototype.alignCenterX=function(){var ce=this.diagram,fe=ce.selection.first();if(fe){ce.startTransaction("aligning Center X");var Pe=fe.actualBounds.x+fe.actualBounds.width/2;ce.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(Pe-Ze.actualBounds.width/2,Ze.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},je.prototype.alignCenterY=function(){var ce=this.diagram,fe=ce.selection.first();if(fe){ce.startTransaction("aligning Center Y");var Pe=fe.actualBounds.y+fe.actualBounds.height/2;ce.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(Ze.actualBounds.x,Pe-Ze.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},je.prototype.alignColumn=function(ce){var fe=this.diagram;fe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=new Array;fe.selection.each(function(vt){vt instanceof go.Link||Pe.push(vt)});for(var Ze=0;Ze<Pe.length-1;Ze++){var it=Pe[Ze],ot=it.actualBounds.y+it.actualBounds.height+ce,Et=Pe[Ze+1];Et.move(new go.Point(it.actualBounds.x,ot))}fe.commitTransaction("align Column")},je.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var fe=this.diagram;fe.startTransaction("align Row");var Pe=new Array;fe.selection.each(function(vt){vt instanceof go.Link||Pe.push(vt)});for(var Ze=0;Ze<Pe.length-1;Ze++){var it=Pe[Ze],ot=it.actualBounds.x+it.actualBounds.width+ce,Et=Pe[Ze+1];Et.move(new go.Point(ot,it.actualBounds.y))}fe.commitTransaction("align Row")},je.prototype.canRotate=function(ce){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<1)},je.prototype.rotate=function(ce){ce===void 0&&(ce=90);var fe=this.diagram;fe.startTransaction("rotate "+ce.toString());var fe=this.diagram;fe.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ce)}),fe.commitTransaction("rotate "+ce.toString())},je.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var fe=new go.Map;ce.selection.each(function(Pe){fe.set(Pe.layer,0)}),fe.iteratorKeys.each(function(Pe){var Ze=0;Pe.parts.each(function(it){if(!it.isSelected){var ot=it.zOrder;isNaN(ot)?it.zOrder=0:Ze=Math.max(Ze,ot)}}),fe.set(Pe,Ze)}),ce.selection.each(function(Pe){je._assignZOrder(Pe,fe.get(Pe.layer)+1)}),ce.commitTransaction("pullToFront")},je.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var fe=new go.Map;ce.selection.each(function(Pe){fe.set(Pe.layer,0)}),fe.iteratorKeys.each(function(Pe){var Ze=0;Pe.parts.each(function(it){if(!it.isSelected){var ot=it.zOrder;isNaN(ot)?it.zOrder=0:Ze=Math.min(Ze,ot)}}),fe.set(Pe,Ze)}),ce.selection.each(function(Pe){je._assignZOrder(Pe,fe.get(Pe.layer)-1-je._findGroupDepth(Pe))}),ce.commitTransaction("pushToBack")},je._assignZOrder=function(ce,fe,Pe){Pe===void 0&&(Pe=ce),ce.layer===Pe.layer&&(ce.zOrder=fe),ce instanceof go.Group&&ce.memberParts.each(function(Ze){je._assignZOrder(Ze,fe+1,Pe)})},je._findGroupDepth=function(ce){if(ce instanceof go.Group){var fe=0;return ce.memberParts.each(function(Pe){fe=Math.max(fe,je._findGroupDepth(Pe))}),fe+1}else return 0},je.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var fe=ce.lastInput;if(fe.key==="Up"||fe.key==="Down"||fe.key==="Left"||fe.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},je.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(fe){ce.push(fe)}),this.diagram.parts.each(function(fe){ce.push(fe)}),ce},je.prototype._arrowKeyMove=function(){var ce=this.diagram,fe=ce.lastInput,Pe=0,Ze=0;if(fe.control||fe.meta)Pe=1,Ze=1;else if(ce.grid!==null){var it=ce.grid.gridCellSize;Ze=it.width,Pe=it.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(ot){fe.key==="Up"?ot.move(new go.Point(ot.actualBounds.x,ot.actualBounds.y-Pe)):fe.key==="Down"?ot.move(new go.Point(ot.actualBounds.x,ot.actualBounds.y+Pe)):fe.key==="Left"?ot.move(new go.Point(ot.actualBounds.x-Ze,ot.actualBounds.y)):fe.key==="Right"&&ot.move(new go.Point(ot.actualBounds.x+Ze,ot.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},je.prototype._arrowKeySelect=function(){var ce=this.diagram,fe=ce.lastInput,Pe=null;fe.key==="Up"?Pe=this._findNearestPartTowards(270):fe.key==="Down"?Pe=this._findNearestPartTowards(90):fe.key==="Left"?Pe=this._findNearestPartTowards(180):fe.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(fe.shift?Pe.isSelected=!0:fe.control||fe.meta?Pe.isSelected=!Pe.isSelected:ce.select(Pe))},je.prototype._findNearestPartTowards=function(ce){var fe=this.diagram.selection.first();if(fe===null)return null;for(var Pe=fe.actualBounds.center,Ze=this._getAllParts(),it=1/0,ot=fe,Et=0;Et<Ze.length;Et++){var vt=Ze[Et];if(vt!==fe&&vt.canSelect()){var yt=vt.actualBounds.center,Ot=Pe.directionPoint(yt),rn=this._angleCloseness(Ot,ce);if(rn<=45){var _e=Pe.distanceSquaredPoint(yt);_e*=1+Math.sin(rn*Math.PI/180),_e<it&&(it=_e,ot=vt)}}}return ot},je.prototype._angleCloseness=function(ce,fe){return Math.min(Math.abs(fe-ce),Math.min(Math.abs(fe+360-ce),Math.abs(fe-360-ce)))},je.prototype._arrowKeyTree=function(){var ce=this.diagram,fe=ce.selection.first();if(fe instanceof go.Node){var Pe=ce.lastInput;if(Pe.key==="Right"){if(!fe.isTreeLeaf)if(!fe.isTreeExpanded)ce.commandHandler.canExpandTree(fe)&&ce.commandHandler.expandTree(fe);else{var Ze=this._sortTreeChildrenByY(fe).first();Ze!==null&&ce.select(Ze)}}else if(Pe.key==="Left")if(!fe.isTreeLeaf&&fe.isTreeExpanded)ce.commandHandler.canCollapseTree(fe)&&ce.commandHandler.collapseTree(fe);else{var it=fe.findTreeParentNode();it!==null&&ce.select(it)}else if(Pe.key==="Up"){var it=fe.findTreeParentNode();if(it!==null){var ot=this._sortTreeChildrenByY(it),Et=ot.indexOf(fe);if(Et>0){for(var vt=ot.elt(Et-1);vt!==null&&vt.isTreeExpanded&&!vt.isTreeLeaf;){var yt=this._sortTreeChildrenByY(vt);vt=yt.last()}vt!==null&&ce.select(vt)}else ce.select(it)}}else if(Pe.key==="Down")if(fe.isTreeExpanded&&!fe.isTreeLeaf){var Ze=this._sortTreeChildrenByY(fe).first();Ze!==null&&ce.select(Ze)}else for(;fe!==null;){var it=fe.findTreeParentNode();if(it===null)break;var ot=this._sortTreeChildrenByY(it),Et=ot.indexOf(fe);if(Et<ot.length-1){ce.select(ot.elt(Et+1));break}else fe=it}var Ot=ce.selection.first();Ot!==null&&ce.scrollToRect(Ot.actualBounds)}},je.prototype._sortTreeChildrenByY=function(ce){var fe=new go.List().addAll(ce.findTreeChildrenNodes());return fe.sort(function(Pe,Ze){var it=Pe.location,ot=Ze.location;return it.y<ot.y?-1:it.y>ot.y?1:it.x<ot.x?-1:it.x>ot.x?1:0}),fe},je.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},je.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var ut=je,wt=ie(60803),ct=ie(43604),Fe=ie(97013),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=ie(59301),Ge=(ce,fe,Pe)=>new Promise((Ze,it)=>{var ot=yt=>{try{vt(Pe.next(yt))}catch(Ot){it(Ot)}},Et=yt=>{try{vt(Pe.throw(yt))}catch(Ot){it(Ot)}},vt=yt=>yt.done?Ze(yt.value):Promise.resolve(yt.value).then(ot,Et);vt((Pe=Pe.apply(ce,fe)).next())});function $e({onCancel:ce,callback:fe}){let Pe=(0,re.useRef)(),Ze=(0,re.useRef)(),it=(0,re.useRef)(),ot=(0,re.useRef)(!1);const Et=(0,re.useRef)(!1),[vt,yt]=(0,re.useState)(0);function Ot(){const _e=de.bx.make,Bt={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"};Pe.current=new de.S0(Ze.current,{padding:20,grid:_e(de.s_,"Grid",_e(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),_e(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ae=>{var tt=Ae.diagram.commandHandler.addTopLevelParts(Ae.diagram.selection,!0);tt||Ae.diagram.currentTool.doCancel()},commandHandler:_e(ut),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ae=>{var tt=Ae.subject;tt.location=tt.location.copy().snapToGridPoint(Ae.diagram.grid.gridOrigin,Ae.diagram.grid.gridCellSize),setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ae=>{var tt=Ae.subject;setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ae=>{var tt=Ae.parameter.part;tt.invalidateConnectedLinks();var ht=Ae.subject;Ae.diagram.toolManager.linkingTool.isForwards?ht.toNode.invalidateConnectedLinks():ht.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=_e(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),_e(de.bn,{name:"SHAPE",fill:Bt.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")),_e(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),_e(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=_e("ToolTip",_e(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},_e(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),_e(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function an(Ae,tt){var ht=(nt,$t)=>{nt.handled=!0,nt.diagram.model.commit(It=>{var Jt=$t.part.adornedPart,en=new de.E9().setRectSpot(Jt.actualBounds,Ae);en.subtract(Jt.location),en.scale(2,2),en.x+=Math.sign(en.x)*130,en.y+=Math.sign(en.y)*130,en.add(Jt.location),en.snapToGridPoint(nt.diagram.grid.gridOrigin,nt.diagram.grid.gridCellSize);var dn=It.copyNodeData(Jt.data);It.setGroupKeyForNodeData(dn,It.getGroupKeyForNodeData(Jt.data)),It.addNodeData(dn);var Yn={from:Jt.key,to:It.getKeyForNodeData(dn)};It.addLinkData(Yn);var Cn=nt.diagram.findNodeForData(dn);Cn.location=en,nt.diagram.select(Cn),setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()},20)})};return _e(de.bn,{figure:tt,alignment:Ae,alignmentFocus:Ae.opposite(),width:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?25:18,height:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Bt.white,strokeWidth:4,mouseEnter:(nt,$t)=>$t.fill="dodgerblue",mouseLeave:(nt,$t)=>$t.fill="orange",isActionable:!0,click:ht,contextClick:ht})}function un(Ae){return _e(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:(tt,ht)=>ht.fill="dodgerblue",mouseLeave:(tt,ht)=>ht.fill="orange",click:(tt,ht)=>{tt.diagram.commandHandler.showContextMenu(ht.part.adornedPart)}},Ae||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=_e(de.uz,"Spot",_e(de.Vm,{padding:10}),an(de.z6.Top,"TriangleUp"),an(de.z6.Left,"TriangleLeft"),an(de.z6.Right,"TriangleRight"),an(de.z6.Bottom,"TriangleDown"),un({alignment:new de.z6(.75,0)}));function Ut(Ae,tt){return(ht,nt)=>{ht.handled=!0,ht.diagram.model.commit($t=>{$t.set(nt.part.adornedPart.data,Ae,tt)})}}function kt(Ae,tt){return tt||(tt="color"),_e(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ae,margin:1,background:"transparent",mouseEnter:(ht,nt)=>nt.stroke="dodgerblue",mouseLeave:(ht,nt)=>nt.stroke="lightgray",click:Ut(tt,Ae),contextClick:Ut(tt,Ae)})}function wn(){return[_e("ContextMenuButton",_e(de.s_,"Horizontal",kt(Bt.white,"fill"),kt(Bt.beige,"fill"),kt(Bt.extralightblue,"fill"),kt(Bt.extralightred,"fill"))),_e("ContextMenuButton",_e(de.s_,"Horizontal",kt(Bt.lightgray,"fill"),kt(Bt.lightgreen,"fill"),kt(Bt.lightblue,"fill"),kt(Bt.lightred,"fill")))]}function Bn(){return[_e("ContextMenuButton",_e(de.s_,"Horizontal",kt(Bt.black),kt(Bt.green),kt(Bt.blue),kt(Bt.red))),_e("ContextMenuButton",_e(de.s_,"Horizontal",kt(Bt.white),kt(Bt.magenta),kt(Bt.purple),kt(Bt.orange)))]}function Fn(Ae,tt){return tt||(tt="thickness"),_e(de.bn,"LineH",{width:16,height:16,strokeWidth:Ae,margin:1,background:"transparent",mouseEnter:(ht,nt)=>nt.background="dodgerblue",mouseLeave:(ht,nt)=>nt.background="transparent",click:Ut(tt,Ae),contextClick:Ut(tt,Ae)})}function On(Ae,tt){return tt||(tt="dash"),_e(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ae,margin:1,background:"transparent",mouseEnter:(ht,nt)=>nt.background="dodgerblue",mouseLeave:(ht,nt)=>nt.background="transparent",click:Ut(tt,Ae),contextClick:Ut(tt,Ae)})}function xn(){return[_e("ContextMenuButton",_e(de.s_,"Horizontal",Fn(1),Fn(2),Fn(3),Fn(4))),_e("ContextMenuButton",_e(de.s_,"Horizontal",On(null),On([2,4]),On([4,4])))]}function qt(Ae,tt){return tt||(tt="figure"),_e(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ae,margin:1,background:"transparent",mouseEnter:(ht,nt)=>nt.fill="dodgerblue",mouseLeave:(ht,nt)=>nt.fill="lightgray",click:Ut(tt,Ae),contextClick:Ut(tt,Ae)})}Pe.current.nodeTemplate.contextMenu=_e("ContextMenu",_e("ContextMenuButton",_e(de.s_,"Horizontal",qt("Rectangle"),qt("RoundedRectangle"),qt("Ellipse"),qt("Diamond"))),_e("ContextMenuButton",_e(de.s_,"Horizontal",qt("Parallelogram2"),qt("ManualOperation"),qt("Procedure"),qt("Cylinder1"))),_e("ContextMenuButton",_e(de.s_,"Horizontal",qt("Terminator"),qt("CreateRequest"),qt("Document"),qt("TriangleDown"))),wn(),Bn(),xn()),Pe.current.groupTemplate=_e(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ae,tt)=>{var ht=tt.addMembers(tt.diagram.selection,!0);ht||tt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),_e(de.s_,"Auto",{name:"BODY"},_e(de.bn,{parameter1:10,fill:Bt.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")),_e(de.Vm,{background:"transparent",margin:20})),_e(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"))),Pe.current.groupTemplate.selectionAdornmentTemplate=_e(de.uz,"Spot",_e(de.s_,"Auto",_e(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),_e(de.Vm,{margin:1.5})),un({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=_e("ContextMenu",wn(),Bn(),xn()),Pe.current.linkTemplate=_e(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",Ae=>Ae>=1?10:0),new de.KX("toShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("points").makeTwoWay(),_e(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),_e(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",Ae=>Ae===1)),_e(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",Ae=>Ae>=1),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),_e(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",Ae=>Ae===2),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),_e(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=_e(de.uz,_e(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:$n(2)},new de.KX("pathPattern","thickness",$n)),un({alignmentFocus:new de.z6(0,0,-6,-4)}));function $n(Ae){return _e(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ae+4).toString()+" H3"})}function Ln(Ae){var tt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ae===0?tt="M0 0 M16 16 M0 8 L16 8":Ae===2&&(tt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),_e(de.bn,{geometryString:tt,margin:2,background:"transparent",mouseEnter:(ht,nt)=>nt.background="dodgerblue",mouseLeave:(ht,nt)=>nt.background="transparent",click:Ut("dir",Ae),contextClick:Ut("dir",Ae)})}function In(Ae){var tt=(ht,nt)=>{ht.handled=!0,ht.diagram.model.commit($t=>{var It=nt.part.adornedPart;$t.set(It.data,Ae?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ae?It.toNode:It.fromNode).invalidateConnectedLinks()})};return _e(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ht,nt)=>nt.background="dodgerblue",mouseLeave:(ht,nt)=>nt.background="transparent",click:tt,contextClick:tt})}function ze(Ae,tt){var ht=0,nt=de.z6.RightSide;Ae.equals(de.z6.Top)?(ht=270,nt=de.z6.TopSide):Ae.equals(de.z6.Left)?(ht=180,nt=de.z6.LeftSide):Ae.equals(de.z6.Bottom)&&(ht=90,nt=de.z6.BottomSide),tt||(ht-=180);var $t=(It,Jt)=>{It.handled=!0,It.diagram.model.commit(en=>{var dn=Jt.part.adornedPart;en.set(dn.data,tt?"toSpot":"fromSpot",de.z6.stringify(nt)),(tt?dn.toNode:dn.fromNode).invalidateConnectedLinks()})};return _e(de.bn,{alignment:Ae,alignmentFocus:Ae.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ht,background:"transparent",mouseEnter:(It,Jt)=>Jt.background="dodgerblue",mouseLeave:(It,Jt)=>Jt.background="transparent",click:$t,contextClick:$t})}Pe.current.linkTemplate.contextMenu=_e("ContextMenu",Bn(),xn(),_e("ContextMenuButton",_e(de.s_,"Horizontal",Ln(0),Ln(1),Ln(2))),_e("ContextMenuButton",_e(de.s_,"Horizontal",_e(de.s_,"Spot",In(!1),ze(de.z6.Top,!1),ze(de.z6.Left,!1),ze(de.z6.Right,!1),ze(de.z6.Bottom,!1)),_e(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},In(!0),ze(de.z6.Top,!0),ze(de.z6.Left,!0),ze(de.z6.Right,!0),ze(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 Mn(Ae){return console.log("shapeName:",Ae),En.indexOf(Ae)>=0}var Sn=new de.YI(it.current,{maxSelectionCount:1,linkTemplate:_e(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:_e(de.uz,"Link",{locationSpot:de.z6.Center},_e(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),_e(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),_e(de.bn,{isPanelMain:!0,strokeWidth:2}),_e(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(Ae=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ae.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ae){var tt;const ht=Ae.subject.part;var nt=(tt=document.activeElement)==null?void 0:tt.value;typeof nt=="string"&&nt.trim()===""&&Pe.current.model.commit(function($t){$t.set(ht.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Sn.nodeTemplate=_e(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),_e(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")),_e(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(()=>{Pe.current.grid=_e(de.s_,"Grid",_e(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),_e(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const rn=()=>Ge(this,null,function*(){var _e=Pe.current.makeImage();const Bt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:_e.src}});fe({src:Bt.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{Ot()},500),yt(vt+1),()=>{Pe.current=null}),[]),Se.createElement("div",{ref:Et,className:ot.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(we.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(Te.Z,null,Se.createElement(ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(ct.Z,{onClick:()=>{var _e,Bt,an=Pe.current.selection.first();if(ot.current=!ot.current,document.activeElement&&an){let un=(Bt=(_e=document.activeElement)==null?void 0:_e.value)==null?void 0:Bt.trim();typeof un=="string"&&Pe.current.model.commit(function(Ut){Ut.set(an.data,"text",un||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}yt(vt+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:ve.myPaletteDiv,ref:it})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:Ze,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(Be.ZP,{size:"large",onClick:rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ue=$e,rt=ie(5112),mt=ie(5871);const lt=rt.ZP.Group,Pt={margin:"0 8px"};var at=({callback:ce,onCancel:fe})=>{function Pe(Ze){ce(Ze)}return re.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Pt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Pt},"\u884C\u6570"),re.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(mt.Z,null)),re.createElement("span",{style:Pt},"\u5217\u6570"),re.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(mt.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(me.default.Item,{name:"align"},re.createElement(lt,null,re.createElement(rt.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(rt.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(rt.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(rt.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Be.ZP,{type:"ghost",onClick:fe},"\u53D6\u6D88")))},St=ie(78673),Gt=ie(75544),_t=ie.n(Gt),xt=(0,re.forwardRef)(({use3d:ce,width:fe,height:Pe,callback:Ze,showSaveButton:it},ot)=>{const Et=(0,re.useRef)(),vt=(0,re.useRef)(),[yt,Ot]=(0,re.useState)(!1),rn=(0,re.useRef)({id:Et,appName:"graphing",width:fe||1e3,height:Pe||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)(()=>{vt.current=new(_t())(rn.current,!0),window.onload=function(){vt.current.inject("applet_container")}},[]);const _e=()=>{var Bt=window.ggbApplet.getPNGBase64(1,!0,72);return Ze&&Ze(Bt),Bt};return(0,re.useEffect)(()=>{rn.current.appName=yt?"3D":"graphing",vt.current.inject("applet_container")},[yt]),(0,re.useEffect)(()=>{Ot(ce)},[ce]),(0,re.useImperativeHandle)(ot,()=>({getImgData:_e})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Et}),re.createElement(Te.Z,{align:"middle"},re.createElement(ct.Z,{flex:1},re.createElement(St.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yt,onChange:Bt=>Ot(Bt)})),re.createElement(ct.Z,null,re.createElement(Be.ZP,{size:"large",onClick:_e,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),zt=ie(50047),Nt=ie(1012),Dt=ie(8591);const Rt="link",Zt="upload-image",Xt="add-flowchart",Wt="draw-image",nn="add-flowchart",Mt="code-block",Kt="add-table",on="------------",sn={default:on,left:`:${on}`,center:`:${on}:`,right:`${on}:`};var zn=ie(61904),vn=(ce,fe,Pe)=>new Promise((Ze,it)=>{var ot=yt=>{try{vt(Pe.next(yt))}catch(Ot){it(Ot)}},Et=yt=>{try{vt(Pe.throw(yt))}catch(Ot){it(Ot)}},vt=yt=>yt.done?Ze(yt.value):Promise.resolve(yt.value).then(ot,Et);vt((Pe=Pe.apply(ce,fe)).next())});function bn(){}let Tn=0;const hn=1e4,Nn="\u2581",gn="@\u2581\u2581@",_n="@\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`,An=["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(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ma={[mn+"-B"]:"bold",[mn+"-I"]:"italic"},Xn={[Rt]:"\u6DFB\u52A0\u94FE\u63A5",[Mt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Zt]:"\u6DFB\u52A0\u56FE\u7247",[Wt]:"\u6DFB\u52A0\u753B\u56FE",[Xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var la=({defaultValue:ce="",onChange:fe,width:Pe="100%",height:Ze=400,miniToolbar:it=!1,isFocus:ot=!1,watch:Et,insertTemp:vt,mode:yt="markdown",id:Ot="markdown-editor-id",showResizeBar:rn=!1,noStorage:_e=!1,showNullButton:Bt=!1,showNullProgramButton:an=!1,hidetoolBar:un=!1,fullScreen:Ut=!1,onBlur:kt,onCMBeforeChange:wn,onFullScreen:Bn,className:Fn="",disablePaste:On=!1,disabled:xn=!1,disabledFill:qt=!1,placeholder:$n="",values:Ln="",extraUse:In})=>{const[ze,Vn]=(0,re.useState)(null),[En,Mn]=(0,re.useState)(ce),[Sn,Ae]=(0,re.useState)(Et),[tt,ht]=(0,re.useState)(Ut),[nt,$t]=(0,re.useState)(""),[It,Jt]=(0,re.useState)(0),[en,dn]=(0,re.useState)(Ze),[Yn,Cn]=(0,re.useState)(!1),sa=(0,re.useRef)((0,Nt.Z)()),ua=(0,re.useRef)(!1),Jn=(0,re.useRef)(),[Qn,qn]=(0,re.useState)(0),[ea,ta]=(0,re.useState)(0),yn=(0,re.useRef)(),Dn=(0,re.useRef)(),kn=(0,re.useRef)(),Rn=(0,re.useRef)(),Sa=()=>vn(void 0,null,function*(){var et;const Xe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:sa.current}});(et=Xe==null?void 0:Xe.attachments)!=null&&et.length&&(console.log("cm:",ze,yn),Xe.attachments.map(Ye=>{Ye.content_type.indexOf("image")>-1?ze.replaceSelection(``):Ye.content_type.indexOf("video")>-1?ze.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ye.content_type.indexOf("pdf")>-1?ze.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ye.id}?type=${Ye.content_type}&disposition=inline" target="_blank">${Ye.name}</a>`):ze.replaceSelection(`[${Ye.name}](${ENV.API_SERVER}/api/attachments/${Ye.id}?type=${Ye.content_type})`)}))});(0,re.useEffect)(()=>{const et=window.scrollY||window.pageYOffset;Mn(Ln),ze==null||ze.setValue(Ln),window.scrollTo(0,et)},[Ln]),(0,re.useEffect)(()=>{Bn==null||Bn(tt)},[tt]),(0,re.useEffect)(()=>{if(yn.current){let et=function(Ye,qe){var Ft;if(On){qe.preventDefault();return}const At=qe.clipboardData;if(At){const Qt=At.types.toString(),Ht=At.items;if(Qt==="Files"||At.types.indexOf("Files")>-1){if(qe.preventDefault(),yt=="stex")return;try{let Vt=Ht[1];((Ft=Ht[0])==null?void 0:Ft.kind)==="file"&&(Vt=Ht[0]);const Yt=Vt.getAsFile(),Pn=Yt.name.split(".").pop();(0,Le.I)(Yt,tn=>{var Hn,jn,Wn;tn.id?((Hn=Yt==null?void 0:Yt.type)==null?void 0:Hn.indexOf("image"))>-1?Xe.replaceSelection(`<img width="100%" src="/api/attachments/${tn.id}?type=${tn.content_type})" alt="" />`):((jn=Yt==null?void 0:Yt.type)==null?void 0:jn.indexOf("video"))>-1?Xe.replaceSelection(`<video width="100%" controls src="/api/attachments/${tn.id}"></video>`):((Wn=Yt==null?void 0:Yt.type)==null?void 0:Wn.indexOf("pdf"))>-1?Xe.replaceSelection(`<a href="/api/attachments/${tn.id}?type=${Yt.type}&disposition=inline" target="_blank">${Yt.name}</a>`):An.includes(Pn)?Xe.replaceSelection(`<a href="/api/attachments/${tn.id}?type=office&disposition=inline" target="_blank">${Yt.name}</a>`):Xe.replaceSelection(`[${Yt.name}](/api/attachments/${tn.id}?type=${tn.content_type})`):(tn==null?void 0:tn.status)===401&&(Dt.ZP.warning((tn==null?void 0:tn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Vt){Dt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xe=He().fromTextArea(yn.current,{mode:yt,lineNumbers:!it,lineWrapping:!0,value:ce,autoCloseTags:!an,autoCloseBrackets:!0});return Xe.on("keyup",function(Ye,qe){qe.keyCode===8&&(Ye.getValue()==""?Xe.setOption("placeholder",$n):Xe.setOption("placeholder",null))}),Xe.on("keydown",function(Ye,qe){if(qe.keyCode===8){var Ft=ca(Ye);Ft&&qe.preventDefault()}}),ot&&Xe.focus(),Xe.on("paste",et),Xe.on("dragleave",function(Ye,qe){Dn.current.classList.remove("mouse-hover-md")}),xn&&Xe.on("beforeChange",function(Ye,qe){(qe.origin==="paste"||qe.origin==="+input")&&qe.cancel()}),Vn(Xe),()=>{Xe.off("paste",et)}}},[]);const na=(0,re.useCallback)(()=>{if(Dn.current)try{}catch(et){console.log(et,"---- to set md editor body height")}},[en,Dn,tt]);(0,re.useEffect)(()=>{function et(){let Xe=new Re.Z(Ye=>{for(let qe of Ye)(qe.target.offsetHeight>0||qe.target.offsetWidth>0)&&(na(),ze.setSize("100%","100%"),ze.refresh())});return Xe.observe(yn.current.parentElement),Xe}if(ze){const Xe=et();return()=>{var Ye,qe;(Ye=yn.current)!=null&&Ye.parentElement&&Xe.unobserve((qe=yn.current)==null?void 0:qe.parentElement)}}},[ze,na]),(0,re.useEffect)(()=>{if(ze){let et=[];for(const[Xe,Ye]of Object.entries(ma)){let qe={[Xe]:()=>{aa(Ye)}};et.push(qe),ze.addKeyMap(qe)}return Jn.current=setInterval(()=>{ua.current&&Sa()},4e3),()=>{clearInterval(Jn.current);for(let Xe of et)ze.removeKeyMap(Xe)}}},[ze]),(0,re.useEffect)(()=>{Ut!==tt&&ht(Ut)},[Ut]),(0,zn.Z)(()=>{if(!_e&&It>0){let et=new Date().getTime(),Xe=window.sessionStorage.getItem(Ot);et>=It+hn&&(!Xe||Xe!==En)&&(window.sessionStorage.setItem(Ot,En),Cn(!0))}},hn),(0,re.useEffect)(()=>{Ae(Et)},[ze,Et]),(0,re.useEffect)(()=>{ze&&ot&&ze.focus()},[ze,ot]),(0,re.useEffect)(()=>{if(Sn&&ze){let et=function(Ye){let qe=Ye.target;if(Rn.current){let Ft=qe.scrollTop/qe.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*Ft}};const Xe=ze.getScrollerElement();return Xe.addEventListener("scroll",et),()=>{Xe.removeEventListener("scroll",et)}}},[ze,Sn]),(0,re.useEffect)(()=>{if(ze&&wn){let et=function(Xe,Ye){wn(Xe,Ye)};return ze.on("beforeChange",et),()=>{ze.off("beforeChange",et)}}},[ze,wn]),(0,re.useEffect)(()=>{if(ze&&kt){let et=function(){kt(ze.getValue())};return ze.on("blur",et),()=>{ze.off("blur",et)}}},[ze,kt]);function ca(et,Xe){var Ye=et.getDoc(),qe=Ye.getCursor(),Ft=Ye.getLine(qe.line),At=Ft.charAt(qe.ch-1),Qt=Ft.lastIndexOf("@\u2581@",qe.ch),Ht=Ft.lastIndexOf("@\u2581\u2581@",qe.ch),Vt=Qt>Ht?Qt:Ht,Yt=Qt>Ht?3:4;if(gn.indexOf(At)===-1)return null;if(console.log("change1:",Xe,et,Ft,qe,Vt,Qt,Ht,At),Vt>=0&&qe.ch-Vt<5){var Pn=Vt+Yt;return Ye.replaceRange("",{line:qe.line,ch:Vt},{line:qe.line,ch:Pn}),{line:qe.line,ch:Pn}}return null}(0,re.useEffect)(()=>{if(ze){let et=function(Xe,Ye){const qe=Xe.getValue();Mn(qe),Jt(new Date().getTime()),Xe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),fe&&(an?fe(qe,va(qe)):fe(qe))};return ze.on("change",et),()=>{ze.off("change",et)}}},[ze,fe]),(0,re.useEffect)(()=>{if(ze)if(ce==null)ze.setValue(""),Mn("");else{const et=window.scrollY||window.pageYOffset;ce!==ze.getValue()&&(ze.setValue(ce),Mn(ce),ze.setCursor(xn?1:ze.lineCount(),0),window.scrollTo(0,et))}},[ze,ce]);const aa=(0,re.useCallback)(et=>{const Xe=ze.getCursor(),Ye=ze.getSelection();let qe=Ye.split(`
|
|
`);switch(et){case"bold":return ze.replaceSelection("**"+Ye+"**"),Ye===""&&ze.setCursor(Xe.line,Xe.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+Ye+"*"),Ye===""&&ze.setCursor(Xe.line,Xe.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+Ye+"`"),Ye===""&&ze.setCursor(Xe.line,Xe.ch+1),ze.focus();case"inline-latex":return $t("inline-latex"),ze.focus();case"latex":return ze.replaceSelection("```latex\n"+Ye+"\n```"),ze.setCursor(Xe.line+1,Ye.length+1),ze.focus();case"line-break":return ze.replaceSelection(`<br/>
|
|
`),ze.focus();case"list-ul":return Ye===""?ze.replaceSelection("- "+Ye):ze.replaceSelection(qe.map(Ft=>Ft===""?"":`- ${Ft}`).join(`
|
|
`)),ze.focus();case"list-ol":return Ye===""?ze.replaceSelection("1. "+Ye):ze.replaceSelection(qe.map((Ft,At)=>Ft===""?"":`${At+1}. ${Ft}`).join(`
|
|
`)),ze.focus();case"add-null-ch":return Ye===""&&ze.setCursor(Xe.line,Xe.ch),ze.replaceSelection(Nn),ze.focus();case"add-signal":return Ye===""&&ze.setCursor(Xe.line,Xe.ch),ze.replaceSelection(_n),ze.focus();case"add-multiple":return Ye===""&&ze.setCursor(Xe.line,Xe.ch),ze.replaceSelection(gn),ze.focus();case"inster-template-1":return Ye===""&&ze.setCursor(Xe.line,Xe.ch),ze.replaceSelection(Zn),ze.focus();case"eraser":return ze.setValue(""),ze.focus();case"trigger-watch":return Ae(!Sn),ze.focus();case"trigger-full-screen":return ht(!tt),ze.focus();case Rt:$t(Rt);return;case Mt:$t(Mt);return;case Zt:$t(Zt);return;case Wt:$t(Wt);return;case"maths-latex":$t("maths-latex");return;case Xt:$t(Xt);return;case Kt:$t(Kt);return;default:throw new Error}},[ze,Sn,tt]),cn=(0,re.useCallback)((et,Xe)=>{var Ye,qe,Ft,At,Qt,Ht;switch($t(""),nt){case Rt:const{title:Hn,link:jn}=et;return ze.replaceSelection(`[${Hn}](${jn})`),ze.focus();case Mt:const{language:Wn,content:ba}=et;return ze.replaceSelection(["```"+Wn,ba,"```"].join(`
|
|
`)),ze.focus();case"maths-latex":for(var Vt=atob(et),Yt=new Uint8Array(Vt.length),Pn=0;Pn<Vt.length;Pn++)Yt[Pn]=Vt.charCodeAt(Pn);var tn=new Blob([Yt],{type:"image/png"});(0,Le.I)(tn,ln=>{ln.id?ze.replaceSelection(``):(ln==null?void 0:ln.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ze.replaceSelection("`$$"+et+"$$`");break;case Zt:case Wt:case nn:const{src:Gn,alt:oa}=et,jt=Xe,wa=(Ft=(qe=(Ye=jt==null?void 0:jt.name)==null?void 0:Ye.split("."))==null?void 0:qe.pop)==null?void 0:Ft.call(qe);return((At=jt==null?void 0:jt.type)==null?void 0:At.indexOf("image"))>-1||!(jt!=null&&jt.type)?jt.align||jt.width?ze.replaceSelection(`<p style="text-align:${jt.align||"initial"}"><img width="${jt.width?jt.width+"%":"initial"}" src="${Gn}" alt="${oa||""}" /></p>`):ze.replaceSelection(`<img width="100%" src="${Gn}" alt="${oa||""}" />`):((Qt=jt==null?void 0:jt.type)==null?void 0:Qt.indexOf("video"))>-1?ze.replaceSelection(`<video width="100%" controls src="${Gn}"></video>`):((Ht=jt==null?void 0:jt.type)==null?void 0:Ht.indexOf("pdf"))>-1?ze.replaceSelection(`<a href="${Gn}?type=${jt.type}&disposition=inline" target="_blank">${jt.name}</a>`):An.includes(wa)?ze.replaceSelection(`<a href="${Gn}?type=office&disposition=inline" target="_blank">${jt.name}</a>`):ze.replaceSelection(`[${jt.name}](${Gn})`),ze.focus();case Kt:const{row:Ba,col:ga,align:Fa}=et;let Kn=`
|
|
`;for(let ln=0;ln<Ba;ln++){let ra=[],ia=[];for(let da=0;da<ga;da++)ln===1&&ia.push(sn[Fa]),ra.push(" ");ln===1&&(Kn+=`| ${ia.join(" | ")} |
|
|
`),Kn+=`| ${ra.join(ga===1?"":" | ")} |
|
|
`}return ze.replaceSelection(Kn+`
|
|
`),ze.focus();default:throw new Error}},[ze,nt]),Pa=(0,re.useMemo)(()=>{switch(nt){case Rt:return re.createElement(pt,{callback:cn,onCancel:pn});case Mt:return re.createElement(Ct.Z,{callback:cn,onCancel:pn});case Zt:return re.createElement(Le.Z,{callback:cn,onCancel:pn});case Xt:return re.createElement(Ue,{callback:cn,onCancel:pn});case Kt:return re.createElement(at,{callback:cn,onCancel:pn});case"maths-latex":return re.createElement(xt,{showSaveButton:!0,callback:cn});case"inline-latex":return re.createElement(zt.Z,{showSaveButton:!0,callback:cn});default:return null}},[nt]);function pn(){$t("")}(0,re.useEffect)(()=>{if(kn.current){let et=function(Qt){Ft=!0,At=Qt.pageY},Xe=function(){Ft=!1},Ye=function(Qt){if(Ft){let Ht=Qt.pageY-At;Ht<0&&(Ht=0),Ht>300&&(Ht=300);let Vt=Ze+Ht+"px";dn(Vt)}},qe=kn.current,Ft=!1,At=0;return qe.addEventListener("mousedown",et),document.addEventListener("mousemove",Ye),document.addEventListener("mouseup",Xe),()=>{qe.removeEventListener("mousedown",et),document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",Xe)}}},[ze,kn]),(0,re.useEffect)(()=>{dn(Ze)},[Ze]);const ha=fn(Pe),fa=fn(en),pa={width:ha,height:fa},xa=(0,re.useMemo)(()=>{if(It){let et=new Date(It),Xe=et.getHours(),Ye=et.getMinutes(),qe=et.getSeconds();return Xe=Xe<10?"0"+Xe:Xe,Ye=Ye<10?"0"+Ye:Ye,qe=qe<10?"0"+qe:qe,`${Xe}:${Ye}:${qe}`}return 0},[It]),va=et=>{const Xe=[];if(an){let Ye=-1;et=et.replace(/(@▁▁@|@▁@)/g,function(qe,Ft,At){Xe.push({multiLine:qe!==_n})})}return Xe};function Ea(){window.sessionStorage.removeItem(Ot),Cn(!1),Jt(0)}function Ca(){Cn(!1),Jt(0),ze.setValue(window.sessionStorage.getItem(Ot))}(0,re.useEffect)(()=>{Xn[nt]&&nt!==Wt&&nt!==Xt&&setTimeout(()=>{const et=document.getElementsByClassName("markdown-popup-form")[0],Xe=window.innerWidth/2-et.offsetWidth/2,Ye=window.innerHeight/2-et.offsetHeight/2;qn(Xe),ta(Ye)},0)},[nt]);const La=et=>{et.preventDefault();const Xe=et.clientX-Qn,Ye=et.clientY-ea;document.body.onmousemove=qe=>{let Ft=qe.clientX-Xe,At=qe.clientY-Ye;const Qt=document.getElementsByClassName("markdown-popup-form")[0],Ht=window.innerWidth-Qt.offsetWidth,Vt=window.innerHeight-Qt.offsetHeight;Ft=Math.max(0,Math.min(Ft,Ht)),At=Math.max(0,Math.min(At,Vt)),ya(qe.clientX,qe.clientY,Xe,Ye)&&(qn(Ft),ta(At))},document.body.onmouseup=function(){document.body.onmousemove=null}},ya=(et,Xe,Ye,qe)=>{const Ft=document.body.clientHeight,At=document.body.clientWidth;return et<20&&Ye>et||et>At-20&&Ye<et||Xe<20&&qe>Xe||Xe>Ft-20&&qe<Xe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:Dn},re.createElement("div",{className:`markdown-editor-container ${Fn} ${Sn?"on-preview":""} ${it?"mini":""} ${tt?"full-screen":""}`,style:pa},re.createElement(ge,{insertTemp:vt,watch:Sn,fullScreen:tt,showNullButton:Bt,showNullProgramButton:an,onActionCallback:aa,hidetoolBar:un,extraUse:In}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:yn,placeholder:$n})),Sn?re.createElement("div",{ref:Rn,className:"preview-container"},yt==="stex"&&re.createElement(Ce,{value:En}),yt!=="stex"&&re.createElement(Oe.Z,{disabledFill:qt,showProgramFill:an,value:En})):null))),rn?re.createElement("a",{ref:kn,className:"editor-resize"}):null,nt===Wt&&re.createElement(gt,{callback:cn,onCancel:pn}),nt===Xt&&re.createElement(Ue,{callback:cn,onCancel:pn}),re.createElement(le.Z,null,Xn[nt]&&nt!==Wt&&nt!==Xt?re.createElement(we.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Qn,top:ea},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:La},Xn[nt]),open:!0,onCancel:pn,footer:null,destroyOnClose:!0,width:nt===Xt?"1200px":null,height:nt===Xt?"80vh":null,className:"markdown-popup-form"},Pa):null))}},82441:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return oe},I:function(){return le}});var re=ie(78241),he=ie(8591),He=ie(92832),Re=ie(81327),ue=ie(5871),Me=ie(5112),se=ie(3113),Ke=ie(52882),Ee=ie(59301),Ne=ie(11968),Oe=ie(59301),Ce=Object.defineProperty,xe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,be,Be)=>be in me?Ce(me,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):me[be]=Be,E=(me,be)=>{for(var Be in be||(be={}))y.call(be,Be)&&b(me,Be,be[Be]);if(a)for(var Be of a(be))x.call(be,Be)&&b(me,Be,be[Be]);return me},z=(me,be)=>xe(me,ne(be));const{useForm:ee}=re.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var oe=({callback:me,onCancel:be})=>{const[Be]=ee();let Qe=(0,Ee.useRef)();function st(Ie){Qe.current.width=Be.getFieldValue("width"),Qe.current.align=Be.getFieldValue("align"),me(Ie,Qe.current)}function bt(Ie,We){if(Ie.status===-1){he.ZP.error(Ie.message);return}Be.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:We.type})}function pe(Ie){let We=Ie.target.files[0];Qe.current=We,le(We,bt)}return Oe.createElement(re.default,z(E({form:Be},ae),{className:"upload-image-panel",onFinish:st,style:{width:470,overflow:"hidden"}}),Oe.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Oe.createElement("div",{className:"flex-container"},Oe.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Oe.createElement(He.default,{style:te})),Oe.createElement(ge,{onFileChange:pe}))),Oe.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Oe.createElement(He.default,{style:{width:264}})),Oe.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Oe.createElement(Re.Z,null,Oe.createElement(re.default.Item,{name:"width",style:{margin:0}},Oe.createElement(ue.Z,{style:{width:264}})),Oe.createElement("span",{className:"ml8"},"%"))),Oe.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Oe.createElement(Me.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"}]})),Oe.createElement("aside",null,Oe.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Oe.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(se.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function ge({onFileChange:me}){return Oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Oe.createElement("input",{type:"file",onChange:me}))}function le(me,be){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ne.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Be=new FormData;Be.append("editormd-image-file",me),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var Qe=new window.XMLHttpRequest;Qe.withCredentials=!0,Qe.addEventListener("load",function(st){be(JSON.parse(st.target.responseText),me)},!1),Qe.addEventListener("error",function(st){console.error(st)},!1),Qe.open("POST",`${Ke.KI}/api/attachments.json`),Qe.send(Be)}},35990:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return He}});var re=ie(59301),he=ie(4676);class He extends re.Component{constructor(ue){super(ue);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,he.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},61904:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return he}});var re=ie(59301);function he(He,Re){const ue=(0,re.useRef)();(0,re.useEffect)(()=>{ue.current=He}),(0,re.useEffect)(()=>{function Me(){ue.current()}if(Re!==null){let se=setInterval(Me,Re);return()=>clearInterval(se)}},[Re])}},67742:function(ye,Je,ie){"use strict";ie.r(Je),ie.d(Je,{default:function(){return b}});var re=ie(59301),he=ie(58106),He=ie(33853),Re=ie(78241),ue=ie(66104),Me=ie(3113),se=ie(86401),Ke=ie(9726),Ee={flex_box_center:"flex_box_center___SGCnt",flex_space_between:"flex_space_between___FXB9h",flex_box_vertical_center:"flex_box_vertical_center___jslui",flex_box_center_end:"flex_box_center_end___WNIgf",flex_box_column:"flex_box_column___zpYXy",bg:"bg___rSw_d",flexRow:"flexRow___XoLur",flexJustifyCenter:"flexJustifyCenter___pSF0k",flexAlignEnd:"flexAlignEnd___UJpWO",flexAlignCenter:"flexAlignCenter___UtTr5",flexColumn:"flexColumn___cCOhR",formWrap:"formWrap___TnbqC",titleWrap:"titleWrap___KlxcJ",fieldWrap:"fieldWrap___gG_z7",mdWrap:"mdWrap___lxZQe",backgroundFa:"backgroundFa___LV7Gu",button:"button___xLTIU",searchMember:"searchMember___yMVKY"},Ne=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ne=(E,z,ee)=>z in E?Ne(E,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):E[z]=ee,a=(E,z)=>{for(var ee in z||(z={}))Ce.call(z,ee)&&ne(E,ee,z[ee]);if(Oe)for(var ee of Oe(z))xe.call(z,ee)&&ne(E,ee,z[ee]);return E},y=(E,z,ee)=>new Promise((te,ae)=>{var oe=me=>{try{le(ee.next(me))}catch(be){ae(be)}},ge=me=>{try{le(ee.throw(me))}catch(be){ae(be)}},le=me=>me.done?te(me.value):Promise.resolve(me.value).then(oe,ge);le((ee=ee.apply(E,z)).next())});const x=({shixunHomeworks:E,newCourse:z,globalSetting:ee,loading:te,dispatch:ae,match:oe})=>{const ge=(0,he.useParams)(),[le]=Re.default.useForm(),[me,be]=(0,re.useState)({}),[Be,Qe]=(0,re.useState)({});(0,re.useEffect)(()=>{st()},[]);const st=()=>y(void 0,null,function*(){const pe=yield(0,Ke.wS)({homeworkId:ge.homeworkId});Qe(a({},pe)),pe.description&&le.setFieldsValue({description:pe.description})}),bt=pe=>y(void 0,null,function*(){(yield(0,Ke.pb)({homeworkId:ge.homeworkId,description:le.getFieldValue("description")})).status===0&&he.history.push(`/classrooms/${ge.coursesId}/shixun_homework/${ge.categoryId}/detail`)});return re.createElement("section",{className:Ee.bg},Be.course_name&&re.createElement("section",{className:"animated fadeIn"},re.createElement("aside",{className:"mt10"},Be.category&&re.createElement(ue.Z,{separator:">"},re.createElement(ue.Z.Item,null,re.createElement(he.Link,{to:`/classrooms/${Be.course_id}/shixun_homework`},Be.course_name)),re.createElement(ue.Z.Item,null,re.createElement(he.Link,{to:`/classrooms/${Be.course_id}/shixun_homework`},Be.category.category_name)),re.createElement(ue.Z.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5")))),re.createElement("aside",{className:"font24 bold mt20 mb20"},re.createElement(He.Z,{className:"current mr10 font16",onClick:()=>he.history.push(`/classrooms/${ge.coursesId}/shixun_homework/${ge.categoryId}/detail`)}),Be!=null&&Be.description?"\u4FEE\u6539\u603B\u7ED3":"\u63D0\u4EA4\u603B\u7ED3"),re.createElement(Re.default,{form:le,className:Ee.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{be(a({},le.getFieldsValue()))},onFinish:bt},re.createElement("div",{className:Ee.mdWrap},re.createElement(Re.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u603B\u7ED3\u5185\u5BB9"},{max:5e3,message:"\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},re.createElement(se.Z,{id:"commit-summary-id",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u603B\u7ED3\u5185\u5BB9,\u6700\u591A5000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:Be.description}))),re.createElement("div",{className:Ee.backgroundFa},re.createElement("div",{className:"pt40 mb30"},re.createElement(Re.default.Item,null,re.createElement(Me.ZP,{size:"middle",type:"primary",className:`${Ee.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),re.createElement(Me.ZP,{size:"middle",type:"primary",ghost:!0,className:Ee.button,onClick:()=>he.history.push(`/classrooms/${ge.coursesId}/shixun_homework/${ge.categoryId}/detail`)},"\u53D6\u6D88"))))))};var b=(0,he.connect)(({shixunHomeworks:E,newCourse:z,loading:ee,globalSetting:te})=>({shixunHomeworks:E,newCourse:z,globalSetting:te,loading:ee.effects}))(x)},66104:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return bt}});var re=ie(92310),he=ie.n(re),He=ie(11592),Re=ie(26112),ue=ie(59301),Me=ie(92343),se=ie(36355),Ke=ie(84105),Ee=ie(91857);const Ne=pe=>{let{children:Ie}=pe;const{getPrefixCls:We}=ue.useContext(se.E_),De=We("breadcrumb");return ue.createElement("li",{className:`${De}-separator`,"aria-hidden":"true"},Ie===""?Ie:Ie||"/")};Ne.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=Ne,Ce=function(pe,Ie){var We={};for(var De in pe)Object.prototype.hasOwnProperty.call(pe,De)&&Ie.indexOf(De)<0&&(We[De]=pe[De]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,De=Object.getOwnPropertySymbols(pe);Ve<De.length;Ve++)Ie.indexOf(De[Ve])<0&&Object.prototype.propertyIsEnumerable.call(pe,De[Ve])&&(We[De[Ve]]=pe[De[Ve]]);return We};function xe(pe,Ie){if(pe.title===void 0||pe.title===null)return null;const We=Object.keys(Ie).join("|");return typeof pe.title=="object"?pe.title:String(pe.title).replace(new RegExp(`:(${We})`,"g"),(De,Ve)=>Ie[Ve]||De)}function ne(pe,Ie,We,De){if(We==null)return null;const{className:Ve,onClick:ft}=Ie,Lt=Ce(Ie,["className","onClick"]),pt=Object.assign(Object.assign({},(0,Re.Z)(Lt,{data:!0,aria:!0})),{onClick:ft});return De!==void 0?ue.createElement("a",Object.assign({},pt,{className:he()(`${pe}-link`,Ve),href:De}),We):ue.createElement("span",Object.assign({},pt,{className:he()(`${pe}-link`,Ve)}),We)}function a(pe,Ie){return(De,Ve,ft,Lt,pt)=>{if(Ie)return Ie(De,Ve,ft,Lt);const Ct=xe(De,Ve);return ne(pe,De,Ct,pt)}}var y=function(pe,Ie){var We={};for(var De in pe)Object.prototype.hasOwnProperty.call(pe,De)&&Ie.indexOf(De)<0&&(We[De]=pe[De]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,De=Object.getOwnPropertySymbols(pe);Ve<De.length;Ve++)Ie.indexOf(De[Ve])<0&&Object.prototype.propertyIsEnumerable.call(pe,De[Ve])&&(We[De[Ve]]=pe[De[Ve]]);return We};const x=pe=>{const{prefixCls:Ie,separator:We="/",children:De,menu:Ve,overlay:ft,dropdownProps:Lt,href:pt}=pe,Le=(we=>{if(Ve||ft){const Te=Object.assign({},Lt);if(Ve){const dt=Ve||{},{items:ke}=dt,gt=y(dt,["items"]);Te.menu=Object.assign(Object.assign({},gt),{items:ke==null?void 0:ke.map((de,je)=>{var{key:ut,title:wt,label:ct,path:Fe}=de,ve=y(de,["key","title","label","path"]);let Se=ct!=null?ct:wt;return Fe&&(Se=ue.createElement("a",{href:`${pt}${Fe}`},Se)),Object.assign(Object.assign({},ve),{key:ut!=null?ut:je,label:Se})})})}else ft&&(Te.overlay=ft);return ue.createElement(Ee.Z,Object.assign({placement:"bottom"},Te),ue.createElement("span",{className:`${Ie}-overlay-link`},we,ue.createElement(Ke.Z,null)))}return we})(De);return Le!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,Le),We&&ue.createElement(Oe,null,We)):null},b=pe=>{const{prefixCls:Ie,children:We,href:De}=pe,Ve=y(pe,["prefixCls","children","href"]),{getPrefixCls:ft}=ue.useContext(se.E_),Lt=ft("breadcrumb",Ie);return ue.createElement(x,Object.assign({},Ve,{prefixCls:Lt}),ne(Lt,Ve,We,De))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ie(17313),ee=ie(83116),te=ie(37613);const ae=pe=>{const{componentCls:Ie,iconCls:We}=pe;return{[Ie]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{color:pe.itemColor,fontSize:pe.fontSize,[We]:{fontSize:pe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:pe.linkColor,transition:`color ${pe.motionDurationMid}`,padding:`0 ${pe.paddingXXS}px`,borderRadius:pe.borderRadiusSM,height:pe.lineHeight*pe.fontSize,display:"inline-block",marginInline:-pe.marginXXS,"&:hover":{color:pe.linkHoverColor,backgroundColor:pe.colorBgTextHover}},(0,z.Qy)(pe)),"li:last-child":{color:pe.lastItemColor},[`${Ie}-separator`]:{marginInline:pe.separatorMargin,color:pe.separatorColor},[`${Ie}-link`]:{[`
|
|
> ${We} + span,
|
|
> ${We} + a
|
|
`]:{marginInlineStart:pe.marginXXS}},[`${Ie}-overlay-link`]:{borderRadius:pe.borderRadiusSM,height:pe.lineHeight*pe.fontSize,display:"inline-block",padding:`0 ${pe.paddingXXS}px`,marginInline:-pe.marginXXS,[`> ${We}`]:{marginInlineStart:pe.marginXXS,fontSize:pe.fontSizeIcon},"&:hover":{color:pe.linkHoverColor,backgroundColor:pe.colorBgTextHover,a:{color:pe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${pe.componentCls}-rtl`]:{direction:"rtl"}})}};var oe=(0,ee.Z)("Breadcrumb",pe=>{const Ie=(0,te.TS)(pe,{});return[ae(Ie)]},pe=>({itemColor:pe.colorTextDescription,lastItemColor:pe.colorText,iconFontSize:pe.fontSize,linkColor:pe.colorTextDescription,linkHoverColor:pe.colorText,separatorColor:pe.colorTextDescription,separatorMargin:pe.marginXS})),ge=function(pe,Ie){var We={};for(var De in pe)Object.prototype.hasOwnProperty.call(pe,De)&&Ie.indexOf(De)<0&&(We[De]=pe[De]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,De=Object.getOwnPropertySymbols(pe);Ve<De.length;Ve++)Ie.indexOf(De[Ve])<0&&Object.prototype.propertyIsEnumerable.call(pe,De[Ve])&&(We[De[Ve]]=pe[De[Ve]]);return We};function le(pe){const{breadcrumbName:Ie,children:We}=pe,De=ge(pe,["breadcrumbName","children"]),Ve=Object.assign({title:Ie},De);return We&&(Ve.menu={items:We.map(ft=>{var{breadcrumbName:Lt}=ft,pt=ge(ft,["breadcrumbName"]);return Object.assign(Object.assign({},pt),{title:Lt})})}),Ve}function me(pe,Ie){return(0,ue.useMemo)(()=>pe||(Ie?Ie.map(le):null),[pe,Ie])}var be=function(pe,Ie){var We={};for(var De in pe)Object.prototype.hasOwnProperty.call(pe,De)&&Ie.indexOf(De)<0&&(We[De]=pe[De]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,De=Object.getOwnPropertySymbols(pe);Ve<De.length;Ve++)Ie.indexOf(De[Ve])<0&&Object.prototype.propertyIsEnumerable.call(pe,De[Ve])&&(We[De[Ve]]=pe[De[Ve]]);return We};const Be=(pe,Ie)=>{if(Ie===void 0)return Ie;let We=(Ie||"").replace(/^\//,"");return Object.keys(pe).forEach(De=>{We=We.replace(`:${De}`,pe[De])}),We},Qe=pe=>{const{prefixCls:Ie,separator:We="/",style:De,className:Ve,rootClassName:ft,routes:Lt,items:pt,children:Ct,itemRender:Le,params:we={}}=pe,Te=be(pe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:dt,direction:ke,breadcrumb:gt}=ue.useContext(se.E_);let de;const je=dt("breadcrumb",Ie),[ut,wt]=oe(je),ct=me(pt,Lt),Fe=a(je,Le);if(ct&&ct.length>0){const Ge=[],$e=pt||Lt;de=ct.map((Ue,rt)=>{const{path:mt,key:lt,type:Pt,menu:at,overlay:St,onClick:Gt,className:_t,separator:Tt,dropdownProps:xt}=Ue,zt=Be(we,mt);zt!==void 0&&Ge.push(zt);const Nt=lt!=null?lt:rt;if(Pt==="separator")return ue.createElement(Oe,{key:Nt},Tt);const Dt={},Rt=rt===ct.length-1;at?Dt.menu=at:St&&(Dt.overlay=St);let{href:Zt}=Ue;return Ge.length&&zt!==void 0&&(Zt=`#/${Ge.join("/")}`),ue.createElement(x,Object.assign({key:Nt},Dt,(0,Re.Z)(Ue,{data:!0,aria:!0}),{className:_t,dropdownProps:xt,href:Zt,separator:Rt?"":We,onClick:Gt,prefixCls:je}),Fe(Ue,we,$e,Ge,Zt))})}else if(Ct){const Ge=(0,He.Z)(Ct).length;de=(0,He.Z)(Ct).map(($e,Ue)=>{if(!$e)return $e;const rt=Ue===Ge-1;return(0,Me.Tm)($e,{separator:rt?"":We,key:Ue})})}const ve=he()(je,gt==null?void 0:gt.className,{[`${je}-rtl`]:ke==="rtl"},Ve,ft,wt),Se=Object.assign(Object.assign({},gt==null?void 0:gt.style),De);return ut(ue.createElement("nav",Object.assign({className:ve,style:Se},Te),ue.createElement("ol",null,de)))};Qe.Item=E,Qe.Separator=Oe;var st=Qe,bt=st},91857:function(ye,Je,ie){"use strict";var re=ie(59301),he=ie(38819),He=ie(92310),Re=ie.n(He),ue=ie(31561),Me=ie(70425),se=ie(18929),Ke=ie(2738),Ee=ie(79676),Ne=ie(53487),Oe=ie(92343),Ce=ie(36355),xe=ie(20834),ne=ie(40875),a=ie(88088),y=ie(47211);const x=null,b=te=>{const{menu:ae,arrow:oe,prefixCls:ge,children:le,trigger:me,disabled:be,dropdownRender:Be,getPopupContainer:Qe,overlayClassName:st,rootClassName:bt,open:pe,onOpenChange:Ie,visible:We,onVisibleChange:De,mouseEnterDelay:Ve=.15,mouseLeaveDelay:ft=.1,autoAdjustOverflow:Lt=!0,placement:pt="",overlay:Ct,transitionName:Le}=te,{getPopupContainer:we,getPrefixCls:Te,direction:dt}=re.useContext(Ce.E_),ke=re.useMemo(()=>{const at=Te();return Le!==void 0?Le:pt.includes("top")?`${at}-slide-down`:`${at}-slide-up`},[Te,pt,Le]),gt=re.useMemo(()=>pt?pt.includes("Center")?pt.slice(0,pt.indexOf("Center")):pt:dt==="rtl"?"bottomRight":"bottomLeft",[pt,dt]),de=Te("dropdown",ge),[je,ut]=(0,y.Z)(de),[,wt]=(0,a.Z)(),ct=re.Children.only(le),Fe=(0,Oe.Tm)(ct,{className:Re()(`${de}-trigger`,{[`${de}-rtl`]:dt==="rtl"},ct.props.className),disabled:be}),ve=be?[]:me;let Se;ve&&ve.includes("contextMenu")&&(Se=!0);const[Ge,$e]=(0,se.Z)(!1,{value:pe!=null?pe:We}),Ue=(0,Me.useEvent)(at=>{Ie==null||Ie(at),De==null||De(at),$e(at)}),rt=Re()(st,bt,ut,{[`${de}-rtl`]:dt==="rtl"}),mt=(0,Ee.Z)({arrowPointAtCenter:typeof oe=="object"&&oe.pointAtCenter,autoAdjustOverflow:Lt,offset:wt.marginXXS,arrowWidth:oe?wt.sizePopupArrow:0,borderRadius:wt.borderRadius}),lt=re.useCallback(()=>{$e(!1)},[]),Pt=()=>{let at;return ae!=null&&ae.items?at=re.createElement(xe.default,Object.assign({},ae)):typeof Ct=="function"?at=Ct():at=Ct,Be&&(at=Be(at)),at=re.Children.only(typeof at=="string"?re.createElement("span",null,at):at),re.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:re.createElement("span",{className:`${de}-menu-submenu-arrow`},re.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:lt,validator:St=>{let{mode:Gt}=St}},at)};return je(re.createElement(ue.Z,Object.assign({alignPoint:Se},(0,Ke.Z)(te,["rootClassName"]),{mouseEnterDelay:Ve,mouseLeaveDelay:ft,visible:Ge,builtinPlacements:mt,arrow:!!oe,overlayClassName:rt,prefixCls:de,getPopupContainer:Qe||we,transitionName:ke,trigger:ve,overlay:Pt,placement:gt,onVisibleChange:Ue}),Fe))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ne.Z)(b,"dropdown",te=>te,E),ee=te=>re.createElement(z,Object.assign({},te),re.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,Je.Z=b},47211:function(ye,Je,ie){"use strict";ie.d(Je,{Z:function(){return Oe}});var re=ie(17313),he=ie(13826),He=ie(92899),Re=ie(29878),ue=ie(19447),Me=ie(83116),se=ie(37613),Ee=Ce=>{const{componentCls:xe,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ce,x=`${ne}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ne=Ce=>{const{componentCls:xe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ae,colorTextDisabled:oe,fontSizeIcon:ge,controlPaddingHorizontal:le,colorBgElevated:me}=Ce;return[{[xe]:Object.assign(Object.assign({},(0,re.Wf)(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ge}},[`${xe}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ge},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${xe}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:he.ly}})},(0,ue.ZP)(Ce,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary},(0,re.Qy)(Ce)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${le}px`,color:Ce.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ce.marginXS,fontSize:Ce.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${le}px`,color:Ce.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ce.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ce.controlItemBgHover}},(0,re.Qy)(Ce)),{"&-selected":{color:Ce.colorPrimary,backgroundColor:Ce.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ce.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ce.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ce.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ce.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ce.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:le+Ce.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:me,cursor:"not-allowed"}},[`${ne}-submenu-selected ${xe}-menu-submenu-title`]:{color:Ce.colorPrimary}})}},[(0,he.oN)(Ce,"slide-up"),(0,he.oN)(Ce,"slide-down"),(0,He.Fm)(Ce,"move-up"),(0,He.Fm)(Ce,"move-down"),(0,Re._y)(Ce,"zoom-big")]]};var Oe=(0,Me.Z)("Dropdown",(Ce,xe)=>{let{rootPrefixCls:ne}=xe;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ce,ae=(x-b*E)/2,{dropdownArrowOffset:oe}=(0,ue.fS)({contentRadius:te}),ge=(0,se.TS)(Ce,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:oe,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:z});return[Ne(ge),Ee(ge)]},Ce=>({zIndexPopup:Ce.zIndexPopupBase+50}))},45818:function(ye,Je,ie){"use strict";ie.d(Je,{D:function(){return z},Z:function(){return ae}});var re=ie(54476),he=ie(59301),He={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"},Re=He,ue=ie(7657),Me=function(ge,le){return he.createElement(ue.Z,(0,re.Z)({},ge,{ref:le,icon:Re}))},se=he.forwardRef(Me),Ke=se,Ee=ie(33853),Ne=ie(38819),Oe=ie(92310),Ce=ie.n(Oe),xe=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 be=0,me=Object.getOwnPropertySymbols(oe);be<me.length;be++)ge.indexOf(me[be])<0&&Object.prototype.propertyIsEnumerable.call(oe,me[be])&&(le[me[be]]=oe[me[be]]);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:be,children:Be,defaultCollapsed:Qe=!1,theme:st="dark",style:bt={},collapsible:pe=!1,reverseArrow:Ie=!1,width:We=200,collapsedWidth:De=80,zeroWidthTriggerStyle:Ve,breakpoint:ft,onCollapse:Lt,onBreakpoint:pt}=oe,Ct=b(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Le}=(0,he.useContext)(x.Gs),[we,Te]=(0,he.useState)("collapsed"in oe?oe.collapsed:Qe),[dt,ke]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in oe&&Te(oe.collapsed)},[oe.collapsed]);const gt=(Fe,ve)=>{"collapsed"in oe||Te(Fe),Lt==null||Lt(Fe,ve)},de=(0,he.useRef)();de.current=Fe=>{ke(Fe.matches),pt==null||pt(Fe.matches),we!==Fe.matches&>(Fe.matches,"responsive")},(0,he.useEffect)(()=>{function Fe(Se){return de.current(Se)}let ve;if(typeof window!="undefined"){const{matchMedia:Se}=window;if(Se&&ft&&ft in E){ve=Se(`(max-width: ${E[ft]})`);try{ve.addEventListener("change",Fe)}catch(Ge){ve.addListener(Fe)}Fe(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",Fe)}catch(Se){ve==null||ve.removeListener(Fe)}}},[ft]),(0,he.useEffect)(()=>{const Fe=ee("ant-sider-");return Le.addSider(Fe),()=>Le.removeSider(Fe)},[]);const je=()=>{gt(!we,"clickTrigger")},{getPrefixCls:ut}=(0,he.useContext)(y.E_),wt=()=>{const Fe=ut("layout-sider",le),ve=(0,xe.Z)(Ct,["collapsed"]),Se=we?De:We,Ge=a(Se)?`${Se}px`:String(Se),$e=parseFloat(String(De||0))===0?he.createElement("span",{onClick:je,className:Ce()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${Ie?"right":"left"}`),style:Ve},be||he.createElement(Ke,null)):null,mt={expanded:Ie?he.createElement(Ne.Z,null):he.createElement(Ee.Z,null),collapsed:Ie?he.createElement(Ee.Z,null):he.createElement(Ne.Z,null)}[we?"collapsed":"expanded"],lt=be!==null?$e||he.createElement("div",{className:`${Fe}-trigger`,onClick:je,style:{width:Ge}},be||mt):null,Pt=Object.assign(Object.assign({},bt),{flex:`0 0 ${Ge}`,maxWidth:Ge,minWidth:Ge,width:Ge}),at=Ce()(Fe,`${Fe}-${st}`,{[`${Fe}-collapsed`]:!!we,[`${Fe}-has-trigger`]:pe&&be!==null&&!$e,[`${Fe}-below`]:!!dt,[`${Fe}-zero-width`]:parseFloat(Ge)===0},me);return he.createElement("aside",Object.assign({className:at},ve,{style:Pt,ref:ge}),he.createElement("div",{className:`${Fe}-children`},Be),pe||dt&&$e?lt:null)},ct=he.useMemo(()=>({siderCollapsed:we}),[we]);return he.createElement(z.Provider,{value:ct},wt())})},84966:function(ye,Je,ie){"use strict";ie.d(Je,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return xe},ZP:function(){return ee}});var re=ie(94480),he=ie(92310),He=ie.n(he),Re=ie(2738),ue=ie(59301),Me=ie(36355),se=ie(83116),Ee=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 Ne=te=>{const{antCls:ae,componentCls:oe,colorText:ge,triggerColor:le,footerBg:me,triggerBg:be,headerHeight:Be,headerPadding:Qe,headerColor:st,footerPadding:bt,triggerHeight:pe,zeroTriggerHeight:Ie,zeroTriggerWidth:We,motionDurationMid:De,motionDurationSlow:Ve,fontSize:ft,borderRadius:Lt,bodyBg:pt,headerBg:Ct,siderBg:Le}=te;return{[oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:pt,"&, *":{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 ${De}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:pe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:pe,color:le,lineHeight:`${pe}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${De}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-We,zIndex:1,width:We,height:Ie,color:le,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderStartStartRadius:0,borderStartEndRadius:Lt,borderEndEndRadius:Lt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:Lt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Lt}}}}},Ee(te)),{"&-rtl":{direction:"rtl"}}),[`${oe}-header`]:{height:Be,padding:Qe,color:st,lineHeight:`${Be}px`,background:Ct,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:bt,color:ge,fontSize:ft,background:me},[`${oe}-content`]:{flex:"auto",minHeight:0}}};var Oe=(0,se.Z)("Layout",te=>[Ne(te)],te=>{const{colorBgLayout:ae,controlHeight:oe,controlHeightLG:ge,colorText:le,controlHeightSM:me,marginXXS:be,colorTextLightSolid:Be,colorBgContainer:Qe}=te,st=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${st}px`,headerColor:le,footerPadding:`${me}px ${st}px`,footerBg:ae,siderBg:"#001529",triggerHeight:ge+be*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ce=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 xe=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:ae,tagName:oe,displayName:ge}=te;return le=>ue.forwardRef((be,Be)=>ue.createElement(le,Object.assign({ref:Be,suffixCls:ae,tagName:oe},be)))}const a=ue.forwardRef((te,ae)=>{const{prefixCls:oe,suffixCls:ge,className:le,tagName:me}=te,be=Ce(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=ue.useContext(Me.E_),Qe=Be("layout",oe),[st,bt]=Oe(Qe),pe=ge?`${Qe}-${ge}`:Qe;return st(ue.createElement(me,Object.assign({className:He()(oe||pe,le,bt),ref:ae},be)))}),y=ue.forwardRef((te,ae)=>{const{direction:oe}=ue.useContext(Me.E_),[ge,le]=ue.useState([]),{prefixCls:me,className:be,rootClassName:Be,children:Qe,hasSider:st,tagName:bt,style:pe}=te,Ie=Ce(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,Re.Z)(Ie,["suffixCls"]),{getPrefixCls:De,layout:Ve}=ue.useContext(Me.E_),ft=De("layout",me),[Lt,pt]=Oe(ft),Ct=He()(ft,{[`${ft}-has-sider`]:typeof st=="boolean"?st:ge.length>0,[`${ft}-rtl`]:oe==="rtl"},Ve==null?void 0:Ve.className,be,Be,pt),Le=ue.useMemo(()=>({siderHook:{addSider:we=>{le(Te=>[].concat((0,re.Z)(Te),[we]))},removeSider:we=>{le(Te=>Te.filter(dt=>dt!==we))}}}),[]);return Lt(ue.createElement(xe.Provider,{value:Le},ue.createElement(bt,Object.assign({ref:ae,className:Ct,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),pe)},We),Qe)))}),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(ye,Je,ie){"use strict";ie.d(Je,{J:function(){return Me}});var re=ie(59301),he=ie(33234),He=ie(70425),Re=function(se,Ke){var Ee={};for(var Ne in se)Object.prototype.hasOwnProperty.call(se,Ne)&&Ke.indexOf(Ne)<0&&(Ee[Ne]=se[Ne]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ne=Object.getOwnPropertySymbols(se);Oe<Ne.length;Oe++)Ke.indexOf(Ne[Oe])<0&&Object.prototype.propertyIsEnumerable.call(se,Ne[Oe])&&(Ee[Ne[Oe]]=se[Ne[Oe]]);return Ee};const ue=re.createContext(null),Me=re.forwardRef((se,Ke)=>{const{children:Ee}=se,Ne=Re(se,["children"]),Oe=re.useContext(ue),Ce=re.useMemo(()=>Object.assign(Object.assign({},Oe),Ne),[Oe,Ne.prefixCls,Ne.mode,Ne.selectable]);return re.createElement(ue.Provider,{value:Ce},re.createElement(he.BR,null,(0,He.supportNodeRef)(Ee)?re.cloneElement(Ee,{ref:Ke}):Ee))});Je.Z=ue},20834:function(ye,Je,ie){"use strict";ie.d(Je,{default:function(){return ct}});var re=ie(15285),he=ie(59301),He=ie(45818),Re=ie(92310),ue=ie.n(Re),Me=ie(36355),se=function(Fe,ve){var Se={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&ve.indexOf(Ge)<0&&(Se[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ge=Object.getOwnPropertySymbols(Fe);$e<Ge.length;$e++)ve.indexOf(Ge[$e])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[$e])&&(Se[Ge[$e]]=Fe[Ge[$e]]);return Se},Ee=Fe=>{const{prefixCls:ve,className:Se,dashed:Ge}=Fe,$e=se(Fe,["prefixCls","className","dashed"]),{getPrefixCls:Ue}=he.useContext(Me.E_),rt=Ue("menu",ve),mt=ue()({[`${rt}-item-divider-dashed`]:!!Ge},Se);return he.createElement(re.iz,Object.assign({className:mt},$e))},Ne=ie(11592),Oe=ie(2738),Ce=ie(6848),xe=ie(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Fe=>{var ve;const{className:Se,children:Ge,icon:$e,title:Ue,danger:rt}=Fe,{prefixCls:mt,firstLevel:lt,direction:Pt,disableMenuItemTitleTooltip:at,inlineCollapsed:St}=he.useContext(a),Gt=Dt=>{const Rt=he.createElement("span",{className:`${mt}-title-content`},Ge);return(!$e||(0,xe.l$)(Ge)&&Ge.type==="span")&&Ge&&Dt&<&&typeof Ge=="string"?he.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Ge.charAt(0)):Rt},{siderCollapsed:_t}=he.useContext(He.D);let Tt=Ue;typeof Ue=="undefined"?Tt=lt?Ge:"":Ue===!1&&(Tt="");const xt={title:Tt};!_t&&!St&&(xt.title=null,xt.open=!1);const zt=(0,Ne.Z)(Ge).length;let Nt=he.createElement(re.ck,Object.assign({},(0,Oe.Z)(Fe,["title","icon","danger"]),{className:ue()({[`${mt}-item-danger`]:rt,[`${mt}-item-only-child`]:($e?zt+1:zt)===1},Se),title:typeof Ue=="string"?Ue:void 0}),(0,xe.Tm)($e,{className:ue()((0,xe.l$)($e)?(ve=$e.props)===null||ve===void 0?void 0:ve.className:"",`${mt}-item-icon`)}),Gt(St));return at||(Nt=he.createElement(Ce.Z,Object.assign({},xt,{placement:Pt==="rtl"?"left":"right",overlayClassName:`${mt}-inline-collapsed-tooltip`}),Nt)),Nt},E=Fe=>{var ve;const{popupClassName:Se,icon:Ge,title:$e,theme:Ue}=Fe,rt=he.useContext(a),{prefixCls:mt,inlineCollapsed:lt,theme:Pt}=rt,at=(0,re.Xl)();let St;if(!Ge)St=lt&&!at.length&&$e&&typeof $e=="string"?he.createElement("div",{className:`${mt}-inline-collapsed-noicon`},$e.charAt(0)):he.createElement("span",{className:`${mt}-title-content`},$e);else{const _t=(0,xe.l$)($e)&&$e.type==="span";St=he.createElement(he.Fragment,null,(0,xe.Tm)(Ge,{className:ue()((0,xe.l$)(Ge)?(ve=Ge.props)===null||ve===void 0?void 0:ve.className:"",`${mt}-item-icon`)}),_t?$e:he.createElement("span",{className:`${mt}-title-content`},$e))}const Gt=he.useMemo(()=>Object.assign(Object.assign({},rt),{firstLevel:!1}),[rt]);return he.createElement(a.Provider,{value:Gt},he.createElement(re.Wd,Object.assign({},(0,Oe.Z)(Fe,["icon"]),{title:St,popupClassName:ue()(mt,Se,`${mt}-${Ue||Pt}`)})))},z=ie(18785),ee=ie(70425),te=ie(62892),ae=ie(40875),oe=function(Fe,ve){var Se={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&ve.indexOf(Ge)<0&&(Se[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ge=Object.getOwnPropertySymbols(Fe);$e<Ge.length;$e++)ve.indexOf(Ge[$e])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[$e])&&(Se[Ge[$e]]=Fe[Ge[$e]]);return Se};function ge(Fe){return(Fe||[]).map((ve,Se)=>{if(ve&&typeof ve=="object"){const Ge=ve,{label:$e,children:Ue,key:rt,type:mt}=Ge,lt=oe(Ge,["label","children","key","type"]),Pt=rt!=null?rt:`tmp-${Se}`;return Ue||mt==="group"?mt==="group"?he.createElement(re.BW,Object.assign({key:Pt},lt,{title:$e}),ge(Ue)):he.createElement(E,Object.assign({key:Pt},lt,{title:$e}),ge(Ue)):mt==="divider"?he.createElement(Ee,Object.assign({key:Pt},lt)):he.createElement(x,Object.assign({key:Pt},lt),$e)}return null}).filter(ve=>ve)}function le(Fe){return he.useMemo(()=>Fe&&ge(Fe),[Fe])}var me=ie(64993),be=ie(17313),Be=ie(8378),Qe=ie(13826),st=ie(29878),bt=ie(83116),pe=ie(37613),We=Fe=>{const{componentCls:ve,motionDurationSlow:Se,horizontalLineHeight:Ge,colorSplit:$e,lineWidth:Ue,lineType:rt,itemPaddingInline:mt}=Fe;return{[`${ve}-horizontal`]:{lineHeight:Ge,border:0,borderBottom:`${Ue}px ${rt} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:mt},[`> ${ve}-item:hover,
|
|
> ${ve}-item-active,
|
|
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},Ve=Fe=>{let{componentCls:ve,menuArrowOffset:Se}=Fe;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
|
|
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const ft=Fe=>Object.assign({},(0,be.oN)(Fe));var pt=(Fe,ve)=>{const{componentCls:Se,itemColor:Ge,itemSelectedColor:$e,groupTitleColor:Ue,itemBg:rt,subMenuItemBg:mt,itemSelectedBg:lt,activeBarHeight:Pt,activeBarWidth:at,activeBarBorderWidth:St,motionDurationSlow:Gt,motionEaseInOut:_t,motionEaseOut:Tt,itemPaddingInline:xt,motionDurationMid:zt,itemHoverColor:Nt,lineType:Dt,colorSplit:Rt,itemDisabledColor:Zt,dangerItemColor:Xt,dangerItemHoverColor:Wt,dangerItemSelectedColor:nn,dangerItemActiveBg:Mt,dangerItemSelectedBg:Kt,itemHoverBg:on,itemActiveBg:sn,menuSubMenuBg:zn,horizontalItemSelectedColor:vn,horizontalItemSelectedBg:bn,horizontalItemBorderRadius:Tn,horizontalItemHoverBg:hn,popupBg:Nn}=Fe;return{[`${Se}-${ve}, ${Se}-${ve} > ${Se}`]:{color:Ge,background:rt,[`&${Se}-root:focus-visible`]:Object.assign({},ft(Fe)),[`${Se}-item-group-title`]:{color:Ue},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:$e}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${Zt} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:Nt}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:sn}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:sn}}},[`${Se}-item-danger`]:{color:Xt,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Wt}},[`&${Se}-item:active`]:{background:Mt}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:$e,[`&${Se}-item-danger`]:{color:nn},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:lt,[`&${Se}-item-danger`]:{backgroundColor:Kt}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},ft(Fe))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:zn},[`&${Se}-popup > ${Se}`]:{backgroundColor:Nn},[`&${Se}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:St,marginTop:-St,marginBottom:0,borderRadius:Tn,"&::after":{position:"absolute",insetInline:xt,bottom:0,borderBottom:`${Pt}px solid transparent`,transition:`border-color ${Gt} ${_t}`,content:'""'},"&:hover, &-active, &-open":{background:hn,"&::after":{borderBottomWidth:Pt,borderBottomColor:vn}},"&-selected":{color:vn,backgroundColor:bn,"&:hover":{backgroundColor:bn},"&::after":{borderBottomWidth:Pt,borderBottomColor:vn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${St}px ${Dt} ${Rt}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:mt},[`${Se}-item, ${Se}-submenu-title`]:St&&at?{width:`calc(100% + ${St}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${at}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${zt} ${Tt}`,`opacity ${zt} ${Tt}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:nn}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${zt} ${_t}`,`opacity ${zt} ${_t}`].join(",")}}}}}};const Ct=Fe=>{const{componentCls:ve,itemHeight:Se,itemMarginInline:Ge,padding:$e,menuArrowSize:Ue,marginXS:rt,itemMarginBlock:mt}=Fe,lt=$e+Ue+rt;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ge,marginBlock:mt,width:`calc(100% - ${Ge*2}px)`},[`> ${ve}-item,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${ve}-item-group-list ${ve}-submenu-title,
|
|
${ve}-submenu-title`]:{paddingInlineEnd:lt}}};var we=Fe=>{const{componentCls:ve,iconCls:Se,itemHeight:Ge,colorTextLightSolid:$e,dropdownWidth:Ue,controlHeightLG:rt,motionDurationMid:mt,motionEaseOut:lt,paddingXL:Pt,itemMarginInline:at,fontSizeLG:St,motionDurationSlow:Gt,paddingXS:_t,boxShadowSecondary:Tt,collapsedWidth:xt,collapsedIconSize:zt}=Fe,Nt={height:Ge,lineHeight:`${Ge}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ct(Fe))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ct(Fe)),{boxShadow:Tt})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Ue,maxHeight:`calc(100vh - ${rt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gt}`,`background ${Gt}`,`padding ${mt} ${lt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Nt,[`& ${ve}-item-group-title`]:{paddingInlineStart:Pt}},[`${ve}-item`]:Nt}},{[`${ve}-inline-collapsed`]:{width:xt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${St/2}px - ${at}px)`,textOverflow:"clip",[`
|
|
${ve}-submenu-arrow,
|
|
${ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ve}-item-icon, ${Se}`]:{margin:0,fontSize:zt,lineHeight:`${Ge}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:$e}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:_t})}}]};const Te=Fe=>{const{componentCls:ve,motionDurationSlow:Se,motionDurationMid:Ge,motionEaseInOut:$e,motionEaseOut:Ue,iconCls:rt,iconSize:mt,iconMarginInlineEnd:lt}=Fe;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${$e}`].join(","),[`${ve}-item-icon, ${rt}`]:{minWidth:mt,fontSize:mt,transition:[`font-size ${Ge} ${Ue}`,`margin ${Se} ${$e}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:lt,opacity:1,transition:[`opacity ${Se} ${$e}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${ve}-item-only-child`]:{[`> ${rt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},dt=Fe=>{const{componentCls:ve,motionDurationSlow:Se,motionEaseInOut:Ge,borderRadius:$e,menuArrowSize:Ue,menuArrowOffset:rt}=Fe;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:Ue,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${Ge}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ue*.6,height:Ue*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${Se} ${Ge}`,`transform ${Se} ${Ge}`,`top ${Se} ${Ge}`,`color ${Se} ${Ge}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${rt})`},"&::after":{transform:`rotate(-45deg) translateY(${rt})`}}}}},ke=Fe=>{const{antCls:ve,componentCls:Se,fontSize:Ge,motionDurationSlow:$e,motionDurationMid:Ue,motionEaseInOut:rt,paddingXS:mt,padding:lt,colorSplit:Pt,lineWidth:at,zIndexPopup:St,borderRadiusLG:Gt,subMenuItemBorderRadius:_t,menuArrowSize:Tt,menuArrowOffset:xt,lineType:zt,menuPanelMaskInset:Nt,groupTitleLineHeight:Dt,groupTitleFontSize:Rt}=Fe;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(Fe)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ge,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:Fe.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${mt}px ${lt}px`,fontSize:Rt,lineHeight:Dt,transition:`all ${$e}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${$e} ${rt}`,`background ${$e} ${rt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${$e} ${rt}`,`background ${$e} ${rt}`,`padding ${Ue} ${rt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${$e} ${rt}`,`padding ${$e} ${rt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${$e}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Pt,borderStyle:zt,borderWidth:0,borderTopWidth:at,marginBlock:at,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Te(Fe)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${Ge*2}px ${lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:St,borderRadius:Gt,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Nt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Nt},"\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},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gt},Te(Fe)),dt(Fe)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:_t},[`${Se}-submenu-title::after`]:{transition:`transform ${$e} ${rt}`}})}}),dt(Fe)),{[`&-inline-collapsed ${Se}-submenu-arrow,
|
|
&-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xt})`},"&::after":{transform:`rotate(45deg) translateX(-${xt})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${Tt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${xt})`},"&::before":{transform:`rotate(45deg) translateX(${xt})`}}})},{[`${ve}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var gt=(Fe,ve)=>(0,bt.Z)("Menu",Ge=>{if(ve===!1)return[];const{colorBgElevated:$e,colorPrimary:Ue,colorTextLightSolid:rt,controlHeightLG:mt,fontSize:lt,darkItemColor:Pt,darkDangerItemColor:at,darkItemBg:St,darkSubMenuItemBg:Gt,darkItemSelectedColor:_t,darkItemSelectedBg:Tt,darkDangerItemSelectedBg:xt,darkItemHoverBg:zt,darkGroupTitleColor:Nt,darkItemHoverColor:Dt,darkItemDisabledColor:Rt,darkDangerItemHoverColor:Zt,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:Wt}=Ge,nn=lt/7*5,Mt=(0,pe.TS)(Ge,{menuArrowSize:nn,menuHorizontalHeight:mt*1.15,menuArrowOffset:`${nn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),Kt=(0,pe.TS)(Mt,{itemColor:Pt,itemHoverColor:Dt,groupTitleColor:Nt,itemSelectedColor:_t,itemBg:St,popupBg:St,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:Tt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:zt,itemDisabledColor:Rt,dangerItemColor:at,dangerItemHoverColor:Zt,dangerItemSelectedColor:Xt,dangerItemActiveBg:Wt,dangerItemSelectedBg:xt,menuSubMenuBg:Gt,horizontalItemSelectedColor:rt,horizontalItemSelectedBg:Ue});return[ke(Mt),We(Mt),we(Mt),pt(Mt,"light"),pt(Kt,"dark"),Ve(Mt),(0,Be.Z)(Mt),(0,Qe.oN)(Mt,"slide-up"),(0,Qe.oN)(Mt,"slide-down"),(0,st._y)(Mt,"zoom-big")]},Ge=>{const{colorPrimary:$e,colorError:Ue,colorTextDisabled:rt,colorErrorBg:mt,colorText:lt,colorTextDescription:Pt,colorBgContainer:at,colorFillAlter:St,colorFillContent:Gt,lineWidth:_t,lineWidthBold:Tt,controlItemBgActive:xt,colorBgTextHover:zt,controlHeightLG:Nt,lineHeight:Dt,colorBgElevated:Rt,marginXXS:Zt,padding:Xt,fontSize:Wt,controlHeightSM:nn,fontSizeLG:Mt,colorTextLightSolid:Kt,colorErrorHover:on}=Ge,sn=new me.C(Kt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ge.zIndexPopupBase+50,radiusItem:Ge.borderRadiusLG,itemBorderRadius:Ge.borderRadiusLG,radiusSubMenuItem:Ge.borderRadiusSM,subMenuItemBorderRadius:Ge.borderRadiusSM,colorItemText:lt,itemColor:lt,colorItemTextHover:lt,itemHoverColor:lt,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:Pt,groupTitleColor:Pt,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:at,itemBg:at,colorItemBgHover:zt,itemHoverBg:zt,colorItemBgActive:Gt,itemActiveBg:xt,colorSubItemBg:St,subMenuItemBg:St,colorItemBgSelected:xt,itemSelectedBg:xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Tt,activeBarHeight:Tt,colorActiveBarBorderSize:_t,activeBarBorderWidth:_t,colorItemTextDisabled:rt,itemDisabledColor:rt,colorDangerItemText:Ue,dangerItemColor:Ue,colorDangerItemTextHover:Ue,dangerItemHoverColor:Ue,colorDangerItemTextSelected:Ue,dangerItemSelectedColor:Ue,colorDangerItemBgActive:mt,dangerItemActiveBg:mt,colorDangerItemBgSelected:mt,dangerItemSelectedBg:mt,itemMarginInline:Ge.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:Dt,collapsedWidth:Nt*2,popupBg:Rt,itemMarginBlock:Zt,itemPaddingInline:Xt,horizontalLineHeight:`${Nt*1.15}px`,iconSize:Wt,iconMarginInlineEnd:nn-Wt,collapsedIconSize:Mt,groupTitleFontSize:Wt,darkItemDisabledColor:new me.C(Kt).setAlpha(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:Ue,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:$e,darkDangerItemSelectedBg:Ue,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Kt,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Ue}},{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,ve){var Se={};for(var Ge in Fe)Object.prototype.hasOwnProperty.call(Fe,Ge)&&ve.indexOf(Ge)<0&&(Se[Ge]=Fe[Ge]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ge=Object.getOwnPropertySymbols(Fe);$e<Ge.length;$e++)ve.indexOf(Ge[$e])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ge[$e])&&(Se[Ge[$e]]=Fe[Ge[$e]]);return Se},ut=(0,he.forwardRef)((Fe,ve)=>{var Se,Ge;const $e=he.useContext(ae.Z),Ue=$e||{},{getPrefixCls:rt,getPopupContainer:mt,direction:lt,menu:Pt}=he.useContext(Me.E_),at=rt(),{prefixCls:St,className:Gt,style:_t,theme:Tt="light",expandIcon:xt,_internalDisableMenuItemTitleTooltip:zt,inlineCollapsed:Nt,siderCollapsed:Dt,items:Rt,children:Zt,rootClassName:Xt,mode:Wt,selectable:nn,onClick:Mt,overflowedIndicatorPopupClassName:Kt}=Fe,on=de(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),sn=(0,Oe.Z)(on,["collapsedWidth"]),zn=le(Rt)||Zt;(Se=Ue.validator)===null||Se===void 0||Se.call(Ue,{mode:Wt});const vn=(0,ee.useEvent)(function(){var mn;Mt==null||Mt.apply(void 0,arguments),(mn=Ue.onClick)===null||mn===void 0||mn.call(Ue)}),bn=Ue.mode||Wt,Tn=nn!=null?nn:Ue.selectable,hn=he.useMemo(()=>Dt!==void 0?Dt:Nt,[Nt,Dt]),Nn={horizontal:{motionName:`${at}-slide-up`},inline:(0,te.Z)(at),other:{motionName:`${at}-zoom-big`}},gn=rt("menu",St||Ue.prefixCls),[_n,Zn]=gt(gn,!$e),An=ue()(`${gn}-${Tt}`,Pt==null?void 0:Pt.className,Gt);let fn;if(typeof xt=="function")fn=xt;else if(xt===null||xt===!1)fn=null;else if(Ue.expandIcon===null||Ue.expandIcon===!1)fn=null;else{const mn=xt!=null?xt:Ue.expandIcon;fn=(0,xe.Tm)(mn,{className:ue()(`${gn}-submenu-expand-icon`,(0,xe.l$)(mn)?(Ge=mn.props)===null||Ge===void 0?void 0:Ge.className:"")})}const Un=he.useMemo(()=>({prefixCls:gn,inlineCollapsed:hn||!1,direction:lt,firstLevel:!0,theme:Tt,mode:bn,disableMenuItemTitleTooltip:zt}),[gn,hn,lt,zt,Tt]);return _n(he.createElement(ae.Z.Provider,{value:null},he.createElement(a.Provider,{value:Un},he.createElement(re.ZP,Object.assign({getPopupContainer:mt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(gn,`${gn}-${Tt}`,Kt),mode:bn,selectable:Tn,onClick:vn},sn,{inlineCollapsed:hn,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),_t),className:An,prefixCls:gn,direction:lt,defaultMotions:Nn,expandIcon:fn,ref:ve,rootClassName:ue()(Xt,Zn)}),zn))))});const wt=(0,he.forwardRef)((Fe,ve)=>{const Se=(0,he.useRef)(null),Ge=he.useContext(He.D);return(0,he.useImperativeHandle)(ve,()=>({menu:Se.current,focus:$e=>{var Ue;(Ue=Se.current)===null||Ue===void 0||Ue.focus($e)}})),he.createElement(ut,Object.assign({ref:Se},Fe,Ge))});wt.Item=x,wt.SubMenu=E,wt.Divider=Ee,wt.ItemGroup=re.BW;var ct=wt}}]);
|