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.
122 lines
342 KiB
122 lines
342 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4496],{71736:function(Ge,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ge(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(Ge.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(Ge.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(Ge.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(Ge.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 Ge))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 dt=[];function de(ne,a){var y=dt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=dt.pop();return ne===void 0?new go.Point:ne}function Ie(ne){dt.push(ne)}function Je(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,re=NaN,ue=NaN;if(oe===0)if(ge===0)ne===y&&(re=ne,ue=a);else{var me=(E-ee)/ge,xe=E-me*b;re=ne,ue=me*re+xe}else if(ge===0){var ze=(a-x)/oe,gt=a-ze*ne;re=b,ue=ze*re+gt}else{var ze=(a-x)/oe,me=(E-ee)/ge,gt=a-ze*ne,xe=E-me*b;re=(xe-gt)/(ze-me),ue=ze*re+gt}return te.x=re,te.y=ue,te}function ot(ne,a,y,x,b,E,z,ee,te,oe,ge,re,ue,me){var xe=1-te,ze=te,gt=ne*xe+y*ze,ut=a*xe+x*ze,Bt=y*xe+b*ze,ct=x*xe+E*ze,rt=b*xe+z*ze,lt=E*xe+ee*ze,En=gt*xe+Bt*ze,yn=ut*xe+ct*ze,Wn=Bt*xe+rt*ze,Tn=ct*xe+lt*ze,On=En*xe+Wn*ze,wn=yn*xe+Tn*ze;oe.x=gt,oe.y=ut,ge.x=En,ge.y=yn,re.x=On,re.y=wn,ue.x=Wn,ue.y=Tn,me.x=rt,me.y=lt}var be=new go.Spot(.156,.156),_e=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("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*fe,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=be,b.spot2=_e,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,fe*a,0,a,(1-fe)*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,fe*y,(1-fe)*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,fe*y,fe*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-fe)*a,0,0,(1-fe)*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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 tt=[];function Ae(){var ne=tt.pop();return ne===void 0?[]:ne}function We(ne){ne.length=0,tt.push(ne)}function Ue(ne){for(var a=Ae(),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 je(ne){var a=Qe(ne),y=Ae();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 We(a),y}function Qe(ne){for(var a=Ue(ne),y=Ae(),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],oe=a[(x+z-1)%b],ge=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],We(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Ue(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()),We(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=Ue(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()),We(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=Ue(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()),We(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=Ue(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()),We(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=Ue(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()),We(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=Ue(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()),We(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=Ue(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()),We(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=Qe(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()),We(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=Qe(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()),We(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=Qe(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()),We(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=Qe(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()),We(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=Qe(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()),We(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=Qe(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()),We(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=je(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(),We(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=je(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(),We(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=je(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(),We(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=je(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(),We(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=je(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(),We(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=je(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(),We(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("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 Ge("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=be,E.spot2=_e,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 Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("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=fe/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 Ge("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 Ge("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 Ge("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),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("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 Ge("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 Ge("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,fe*a,0,a,(.5-fe/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+fe/2)*y,fe*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*fe;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*fe,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*fe,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=fe*.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=fe*.4;var oe=ae(),ge=ae(),re=ae(),ue=ae();ot(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,re,ue,ue);var me=ae(),xe=ae(),ze=ae();ot(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ue,ue,ze,me,xe);var gt=ae(),ut=ae(),Bt=ae();ot(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,gt,ut,Bt,ue,ue);var ct=ae(),rt=ae(),lt=ae();return ot(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ue,ue,lt,ct,rt),te.add(new go.PathSegment(go.PathSegment.Move,lt.x*a,lt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ct.x*a,ct.y*y,rt.x*a,rt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,lt.x*a,lt.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,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,xe.x*a,xe.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,gt.x*a,gt.y*y,ut.x*a,ut.y*y).close()),Ie(oe),Ie(ge),Ie(re),Ie(ue),Ie(me),Ie(xe),Ie(ze),Ie(gt),Ie(ut),Ie(Bt),Ie(ct),Ie(rt),Ie(lt),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 Ge("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=fe*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae(),ue=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ot(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ge,re,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y));var me=de(oe.x,oe.y);ot(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ge,re);var xe=de(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.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=fe*.35;var ze=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ze.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 gt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(gt),Ie(te),Ie(oe),Ie(ge),Ie(re),Ie(me),Ie(xe),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*fe,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*fe;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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("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,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Ie(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("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,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Ie(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("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=Je(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Je(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Ie(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("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 oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=Je(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(re.x,re.y),re=Je(.7,te/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),Ie(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("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=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Ie(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("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 oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var re=Je(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(re.x,re.y),Ie(re),oe}),go.Shape.setFigureParameter("Pointer",0,new Ge("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=Je(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Ie(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("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=Je(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Ie(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("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=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Ie(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("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=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Ie(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("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=fe*.5,E=fe*.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=fe*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,fe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,fe*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-fe*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-fe*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-fe*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-fe*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=fe*.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,fe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,fe*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-fe*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-fe*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-fe*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-fe*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=fe*.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-fe*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-fe*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,fe*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,fe*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+fe*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+fe*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=fe*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-fe*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-fe*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,fe*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,fe*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-fe*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-fe*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=fe*b,ee=fe*E,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var re=.05,ue=fe*re;te=.05,oe=.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,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,oe*y,(te+ue)*a,(oe-re)*y,(te+re)*a,(oe-ue)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,ue=fe*re,te=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-ue)*y,(te+ue)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-ue)*a,(oe-re)*y,(te-re)*a,(oe-ue)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,ue=fe*re,te=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-ue)*y,(te+ue)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-ue)*a,(oe-re)*y,(te-re)*a,(oe-ue)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,ue=fe*re,te=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-ue)*y,(te+ue)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-ue)*a,(oe-re)*y,(te-re)*a,(oe-ue)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,ue=fe*re,te=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te-re)*a,(oe-ue)*y,(te-ue)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Ge("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=fe*.5,E=fe*.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=fe*.5,E=fe*.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=fe*.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=fe*.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 oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.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=fe*.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=fe*.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=fe*.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=fe*.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=fe*.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 oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.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=fe*.5,E=fe*.4,z=fe*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var re=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-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=fe*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=fe*.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(.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=fe*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=fe*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 oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.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=fe*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=fe*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 oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.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=fe*.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=fe*.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=fe*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,re=(E-y)/2,ue=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te-ee)*a+ge,(oe-z)*y+re,(te-z)*a+ge,(oe-ee)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+re,te*a+ge,(oe-ee)*y+re,(te-ee+z*.5)*a+ge,(oe-z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te-ee+z*.5)*a+ge,(oe+z)*y+re,te*a+ge,(oe+ee)*y+re).close()),z=fe*.4,ee=.4,te=.2,oe=.5;var me=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te-ee)*a+ge,(oe-z)*y+re,(te-z)*a+ge,(oe-ee)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+re,te*a+ge,(oe-ee)*y+re,(te-ee+z*.5)*a+ge,(oe-z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te-ee+z*.5)*a+ge,(oe+z)*y+re,te*a+ge,(oe+ee)*y+re).close()),z=fe*.2,ee=.2,te=.5,oe=.5;var xe=new go.PathFigure((te-ee)*a+ge,oe*y+re,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te-ee)*a+ge,(oe-z)*y+re,(te-z)*a+ge,(oe-ee)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+re,(te+z)*a+ge,(oe-ee)*y+re,(te+ee)*a+ge,(oe-z)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te+ee)*a+ge,(oe+z)*y+re,(te+z)*a+ge,(oe+ee)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),z=fe*.4,ee=.4,te=.8,oe=.5;var ze=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);x.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+re,(te+z)*a+ge,(oe-ee)*y+re,(te+ee)*a+ge,(oe-z)*y+re)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te+ee)*a+ge,(oe+z)*y+re,(te+z)*a+ge,(oe+ee)*y+re)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+re,te*a+ge,(oe+ee)*y+re,(te+ee-z*.5)*a+ge,(oe+z)*y+re)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te+ee-z*.5)*a+ge,(oe-z)*y+re,te*a+ge,(oe-ee)*y+re).close()),z=fe*.8,ee=.8,te=1,oe=.5;var gt=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);return x.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+re,(te+z)*a+ge,(oe-ee)*y+re,(te+ee)*a+ge,(oe-z)*y+re)),gt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te+ee)*a+ge,(oe+z)*y+re,(te+z)*a+ge,(oe+ee)*y+re)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+re,te*a+ge,(oe+ee)*y+re,(te+ee-z*.5)*a+ge,(oe+z)*y+re)),gt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te+ee-z*.5)*a+ge,(oe-z)*y+re,te*a+ge,(oe-ee)*y+re).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=fe*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae();ot(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,re);var ue=de(oe.x,oe.y),me=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ot(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,re,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),b=fe*.3,E=.3,ot(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,re,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ot(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,re),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Ie(te),Ie(oe),Ie(ge),Ie(re),Ie(ue),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*fe,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,ue=.5,me=0,xe=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),xe.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)),xe.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)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),xe.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,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ge*.5,ue=z,me=z,xe=ge*ue,ze=ge*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(xe+ue)/2)*a,(te+(me+ze)/2)*y,(ee-ue)*a,(te+ze)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-ue)*a,(te-ze)*y,(ee-xe)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+xe)*a,(te-me)*y,(ee+ue)*a,(te-ze)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+ze)*y,(ee+(xe+ue)/2)*a,(te+(me+ze)/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 gt=new go.PathFigure(.2*a,y,!1);x.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ut=new go.PathFigure(.8*a,y,!1);return x.add(ut),ut.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=fe*.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=fe*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=fe*.1,te=.8,oe=.9;var re=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+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,oe=fe*.1,ge=.1,re=.9,ue=new go.PathFigure((ge-te)*a,re*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-oe)*y,(ge-oe)*a,(re-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+oe)*a,(re-te)*y,(ge+te)*a,(re-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+oe)*y,(ge+oe)*a,(re+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,re*y,(ge-oe)*a,(re+te)*y,(ge-te)*a,(re+oe)*y)),te=.1,oe=fe*.1,ge=.4,re=.9;var me=new go.PathFigure((ge-te)*a,re*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-oe)*y,(ge-oe)*a,(re-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+oe)*a,(re-te)*y,(ge+te)*a,(re-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+oe)*y,(ge+oe)*a,(re+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,re*y,(ge-oe)*a,(re+te)*y,(ge-te)*a,(re+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,re=fe*.05,ue=.175,me=.95,ee=new go.PathFigure((ue-ge)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me-ge)*y,(ue-ge)*a,(me-re)*y,(ue-re)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,me*y,(ue+re)*a,(me-ge)*y,(ue+ge)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me+ge)*y,(ue+ge)*a,(me+re)*y,(ue+re)*a,(me+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,me*y,(ue-re)*a,(me+ge)*y,(ue-ge)*a,(me+re)*y));var ge=.05,re=fe*.05,ue=.375,me=.95,te=new go.PathFigure((ue-ge)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me-ge)*y,(ue-ge)*a,(me-re)*y,(ue-re)*a,(me-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,me*y,(ue+re)*a,(me-ge)*y,(ue+ge)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me+ge)*y,(ue+ge)*a,(me+re)*y,(ue+re)*a,(me+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,me*y,(ue-re)*a,(me+ge)*y,(ue-ge)*a,(me+re)*y));var ge=.05,re=fe*.05,ue=.625,me=.95,oe=new go.PathFigure((ue-ge)*a,me*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me-ge)*y,(ue-ge)*a,(me-re)*y,(ue-re)*a,(me-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,me*y,(ue+re)*a,(me-ge)*y,(ue+ge)*a,(me-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me+ge)*y,(ue+ge)*a,(me+re)*y,(ue+re)*a,(me+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,me*y,(ue-re)*a,(me+ge)*y,(ue-ge)*a,(me+re)*y));var ge=.05,re=fe*.05,ue=.825,me=.95,xe=new go.PathFigure((ue-ge)*a,me*y,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me-ge)*y,(ue-ge)*a,(me-re)*y,(ue-re)*a,(me-ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,me*y,(ue+re)*a,(me-ge)*y,(ue+ge)*a,(me-re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(me+ge)*y,(ue+ge)*a,(me+re)*y,(ue+re)*a,(me+ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,me*y,(ue-re)*a,(me+ge)*y,(ue-ge)*a,(me+re)*y).close());var ze=new go.PathFigure(0,y,!1);return x.add(ze),ze.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=fe*.05,oe=.35,ge=.775,re=new go.PathFigure((oe-ee)*a,ge*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=fe*.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 oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.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=fe*.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 oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.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=fe*.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=fe*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);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).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.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*fe,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 oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.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*fe,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*fe,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")},61016: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 Ge={},dt="5.0",de={},ae=null,Ie=!1,Je=!1,ot=null,be=!1,_e=null,fe=null,tt=0;tt<arguments.length;tt++){var Ae=arguments[tt];if(Ae!==null)switch(typeof Ae){case"number":dt=Ae.toFixed(1);break;case"string":Ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Ae:ot=Ae;break;case"object":typeof Ae.is3D!="undefined"?ae=Ae:de=Ae;break;case"boolean":Ie=Ae,Je=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},de.material_id!==void 0&&!Je&&(Ie=!0)),ot!==null&&de.id===void 0&&(de.id=ot);var We="",Ue="",je=!1,Qe=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var te=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};Ge.setHTML5Codebase=function(Ee,Ne){fe=Ee,Tn(Ee,Ne)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(Ee,Ne){var Re=parseFloat(Ee);if(Re!==NaN&&Re<5){console.log("The GeoGebra HTML5 codebase version "+Re+" is deprecated. Using version latest instead.");return}_e=Ee,Wn(Ee,Ne)},Ge.getHTML5CodebaseVersion=function(){return ne},Ge.getParameters=function(){return de},Ge.setFontsCSSURL=function(Ee){z=Ee},Ge.setGiacJSURL=function(Ee){},Ge.setJNLPFile=function(Ee){We=Ee},Ge.setJNLPBaseDir=function(Ee){},Ge.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ne="auto",Re=de.id,ft,$e=!1,St=0;St<arguments.length;St++){var ie=arguments[St];typeof ie=="string"?(ie=ie.toLowerCase(),ie.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ne=ie:Re=arguments[St]):typeof ie=="boolean"?$e=ie:ie instanceof HTMLElement&&(ft=ie)}qe();function qe(){if(!be){setTimeout(qe,200);return}Ne=En(Ne);var wt=ft||document.getElementById(Re);if(!wt){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(wt,!1),de.width===void 0&&wt.clientWidth&&(de.width=wt.clientWidth),de.height===void 0&&wt.clientHeight&&(de.height=wt.clientHeight),!(de.width&&de.height)&&Ne==="html5"&&(delete de.width,delete de.height),Qe=Ne,Ne==="screenshot")ut(wt,de);else{var ln=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?ln=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(ln=(!oe()||Ee())&&ge()),ln?(Qe="screenshot",ct(wt,de,$e,Ne)):gt(wt,de,$e)}}};function oe(){try{return window.self!==window.top}catch(Ee){return!0}}function ge(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ae},Ge.isJavaInstalled=function(){return!1};var re=function(Ee){var Ne=function(St){var ie=JSON.parse(St),qe=function(It){return It.type=="G"||It.type=="E"},wt=ie.elements?ie.elements.filter(qe)[0]:ie;if(!wt||!wt.url){Re();return}de.fileName=wt.url,ue(wt.settings||{}),ae.is3D=!0;var ln="https://www.geogebra.org/images/";Ge.setPreviewImage(x||wt.previewUrl,ln+"GeoGebra_loading.png",ln+"applet_play.png"),Ee()},Re=function(){de.onError&&de.onError(),On("Error: Fetching material (id "+de.material_id+") failed.",de)},ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$e="/materials/"+de.material_id+"?scope=basic";me("https://"+ft+"/api/proxy.php?path="+encodeURIComponent($e),Ne,Re)};function ue(Ee){var Ne=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Re){Ee[Re]=!!Ee[Re]}),Ne.forEach(function(Re){de[Re]===void 0&&Ee[Re]!==void 0&&(de[Re]=Ee[Re])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function me(Ee,Ne,Re){var ft=new XMLHttpRequest;ft.open("GET",Ee),ft.onload=function(){Ne(ft.responseText)},ft.onerror=Re,ft.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Qe},Ge.setPreviewImage=function(Ee,Ne,Re){x=Ee,b=Ne,E=Re},Ge.removeExistingApplet=function(Ee,Ne){var Re;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),Qe=null;var ft=null;for(Re=0;Re<Ee.childNodes.length;Re++){var $e=Ee.childNodes[Re],St=$e.className;St==="applet_screenshot"?Ne?($e.style.display="block",Qe="screenshot"):$e.style.display="none":St!=="applet_scaler prerender"&&(Ee.removeChild($e),ft=St&&St.indexOf("appletParameters")!=-1?$e.id:null,Re--)}var ie=de.id!==void 0?de.id:ft,qe=window[ie];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[ie]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=Ge.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var Ee=Ge.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},Ge.stopAnimation=function(){var Ee=Ge.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var Ee=de.id!==void 0?de.id:"ggbApplet";return window[Ee]},Ge.resize=function(){};var xe=function(Ee,Ne,Re){var ft=document.createElement("param");ft.setAttribute("name",Ne),ft.setAttribute("value",Re),Ee.appendChild(ft)},ze=function(Ee){return Ee&&Ee!=="false"},gt=function(Ee,Ne,Re){te(ne)<=4.2&&(Re=!0);var ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $e=document.createElement("div");$e.classList.add("appletParameters","notranslate");var St=Ne.width,ie=Ne.height;if(Ne.disableAutoScale=Ne.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ne.disableAutoScale,Ne.width!==void 0)if(te(ne)<=4.4)ze(Ne.showToolBar)&&(Ne.height-=7),ze(Ne.showAlgebraInput)&&(Ne.height-=37),Ne.width<605&&ze(Ne.showToolBar)&&(Ne.width=605,St=605);else{var qe=100;(ze(Ne.showToolBar)||ze(Ne.showMenuBar))&&(Ne.hasOwnProperty("customToolBar")&&(Ne.customToolbar=Ne.customToolBar),qe=ze(Ne.showMenuBar)?245:155),St<qe&&(Ne.width=qe,St=qe)}$e.style.border="none",$e.style.display="inline-block";for(var wt in Ne)Ne.hasOwnProperty(wt)&&wt!=="appletOnLoad"&&$e.setAttribute("data-param-"+wt,Ne[wt]);z&&$e.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(Ee,Ne)},window.addEventListener("resize",function(un){Ge.resize()});var ln=typeof Ne.appletOnLoad=="function"?Ne.appletOnLoad:function(){};if(!Re&&Ne.width!==void 0){Ne.hasOwnProperty("showSplash")||$e.setAttribute("data-param-showSplash","false");var It=Ee.querySelector(".applet_scaler.prerender"),zn=It!==null;if(zn)var Gn=It.querySelector(".ggb_preview");else{var Gn=lt(St,ie,Ne.borderColor,!1);It=document.createElement("div"),It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.style.width=St+"px",It.style.height=ie+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(It,"66%"),te(ne)>=5?(Ne.appletOnLoad=function(un){var Ct=Ee.querySelector(".ggb_preview");Ct&&Ct.parentNode.removeChild(Ct),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(It),window.GGBT_wsf_view&&$(window).trigger("resize"),ln(un)},zn||It.appendChild(Gn)):$e.appendChild(Gn),It.appendChild($e),zn||Ee.appendChild(It),setTimeout(function(){Ge.resize()},1)}else{var Ot=document.createElement("div");Ot.className="applet_scaler",Ot.style.position="relative",Ot.style.display="block",Ot.appendChild($e),Ee.appendChild(Ot),Ne.appletOnLoad=function(un){Ge.resize(),ln(un)}}function In(un,Ct){Ct&&typeof Ct.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(un,Ct.appletOnLoad):renderGGBElement(un),On("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ct)}function ra(un,Ct){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:un,params:Ct}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Xn){In(Xn.article,Xn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(un.className+=" geogebraweb")):In(un,Ct)}if(ft){scriptLoadStarted=!0;for(var jn=0;jn<$e.childNodes.length;jn++){var Qn=$e.childNodes[jn].tagName;Qn==="TABLE"&&($e.removeChild($e.childNodes[jn]),jn--)}if(ggbHTML5LoadedScript!==null){var Un=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Un!=null&&Un.parentNode.removeChild(Un)}var qt=document.createElement("script"),mn=function(){ra($e,Ne)};qt.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=qt.src,On("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Ne),!fe&&(!_e||_e=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),mn()):Ue.requirejs?__webpack_require__.e(12).then(function(){var un=[__webpack_require__(12)];mn.apply(null,un)}.bind(this)).catch(__webpack_require__.oe):(qt.onload=mn,Ee.appendChild(qt))}else ra($e,Ne);Ne.height=ie,Ne.width=St},ut=function(Ee,Ne,Re){var ft=lt(Ne.width,Ne.height,Ne.borderColor,Re),$e=document.createElement("div");$e.style.position="relative",$e.style.display="block",$e.style.width=Ne.width+"px",$e.style.height=Ne.height+"px",$e.className="applet_screenshot applet_scaler"+(Re?" applet_screenshot_play":""),$e.appendChild(ft);var St=GGBAppletUtils.getScale(Ne,Ee,Re);Re?(Ee.appendChild(rt()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($e,"66%"),Ee.appendChild($e),St!==1&&!isNaN(St)&&(GGBAppletUtils.scaleElement($e,St),$e.style.width=Ne.width+"px",$e.style.height=Ne.height+"px",$e.parentNode.style.width=Ne.width*St+"px",$e.parentNode.style.height=Ne.height*St+"px"),Ge.resize=function(){Bt(Ee,ft,$e,Re)},window.addEventListener("resize",function(ie){Ge.resize()}),Ge.resize()};function Bt(Ee,Ne,Re,ft){if(Ee.contains(Ne)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var $e=GGBAppletUtils.getScale(de,Ee,ft);Re.parentNode!==null&&(!isNaN($e)&&$e!==1?(GGBAppletUtils.scaleElement(Re,$e),Re.parentNode.style.width=de.width*$e+"px",Re.parentNode.style.height=de.height*$e+"px"):(GGBAppletUtils.scaleElement(Re,1),Re.parentNode.style.width=de.width+"px",Re.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(Ee,Ne){Ne.appendChild(Ee)};var ct=function(Ee,Ne,Re,ft){ut(Ee,Ne,!0);for(var $e=function(){var qe=[];for(ie=0;ie<Ee.childNodes.length;ie++)qe.push(Ee.childNodes[ie]);if(window.GGBT_wsf_view){var wt=window.GGBT_wsf_view.renderFullScreen(Ee,Ne.id),ln=document.getElementById("fullscreencontainer"),It=jQuery(Ee).find(".fullscreencontent");It.length>0?(wt.remove(),It.attr("id","fullscreencontent").show(),jQuery(ln).append(It),window.dispatchEvent(new Event("resize"))):gt(wt,Ne,!1),window.GGBT_wsf_view.launchFullScreen(ln)}else Qe=ft,gt(Ee,Ne,!1);if(!window.GGBT_wsf_view)for(ie=0;ie<qe.length;ie++)Ee.removeChild(qe[ie])},St=Ee.getElementsByClassName("ggb_preview_play"),ie=0;ie<St.length;ie++)St[ie].addEventListener("click",$e,!1),St[ie].addEventListener("ontouchstart",$e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},rt=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ne='.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");}',Re=document.createElement("style");Re.styleSheet?Re.styleSheet.cssText=Ne:Re.appendChild(document.createTextNode(Ne)),document.getElementsByTagName("head")[0].appendChild(Re)}return Ee},lt=function(Ee,Ne,Re,ft){var $e=document.createElement("div");$e.className="ggb_preview",$e.style.position="absolute",$e.style.zIndex="90",$e.style.width=Ee-2+"px",$e.style.height=Ne-2+"px",$e.style.top="0px",$e.style.left="0px",$e.style.overflow="hidden",$e.style.backgroundColor="white";var St="lightgrey";Re!==void 0&&(Re==="none"?St="transparent":St=Re),$e.style.border="1px solid "+St;var ie=document.createElement("img");if(ie.style.position="relative",ie.style.zIndex="1000",ie.style.top="-1px",ie.style.left="-1px",x!==null&&ie.setAttribute("src",x),ie.style.opacity=.7,b!==null){var qe,wt,ln;if(!ft){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,ie.style.opacity=.3,wt=360,wt>Ee/4*3&&(wt=Ee/4*3),ln=wt/5.8,qe.setAttribute("src",b),qe.setAttribute("width",wt),qe.setAttribute("height",ln);var It=(Ee-wt)/2,zn=(Ne-ln)/2;qe.style.left=It+"px",qe.style.top=zn+"px",$e.appendChild(qe)}}return $e.appendChild(ie),$e},En=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},yn=["web","webSimple","web3d","tablet","tablet3d","phone"],Wn=function(Ee,Ne){if(ne=Ee,Ne){Tn(ne,!0);return}var Re=!Ie;if(Re){var ft=te(ne);!isNaN(ft)&&ft<4.4&&(Re=!1)}var $e,St;window.location.protocol.substr(0,4)==="http"?$e=window.location.protocol:$e="http:";var ie=ne.indexOf("//");ie>0?St=ne:ie===0?St=$e+ne:St="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in yn)if(ne.slice(yn[qe].length*-1)===yn[qe]||ne.slice((yn[qe].length+1)*-1)===yn[qe]+"/"){Tn(St,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Re&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!ze(de.showToolBar)&&!ze(de.showMenuBar)&&!ze(de.showAlgebraInput)&&!ze(de.enableRightClick)&&(!de.appName||de.appName=="classic")?St+="webSimple/":St+="web3d/",Tn(St,!1)},Tn=function(Ee,Ne){if(Ee.requirejs){Ue=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Ue=Ee,Ne===null&&(Ne=Ee.indexOf("http")===-1),je=Ne,a="web.nocache.js",y=!1;var Re=Ue.split("/");Re.length>1&&(!Ne&&Re[Re.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):yn.indexOf(Re[Re.length-2])>=0&&(a=Re[Re.length-2]+".nocache.js")),Re=Ee.split("/"),ne=Re[Re.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 ft=parseFloat(ne);ft!==NaN&&ft<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ft+" is deprecated. Using version latest instead."),Wn("5.0",Ne))},On=function(Ee,Ne){window.console&&window.console.log&&(!Ne||typeof Ne.showLogging=="undefined"||Ne.showLogging&&Ne.showLogging!=="false")&&console.log(Ee)};de.material_id!==void 0?re(wn):wn();function wn(){var Ee=dt;_e!==null?Ee=_e:parseFloat(Ee)<5&&(Ee="5.0"),Wn(Ee,!1),fe!==null&&Tn(fe,je),be=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function dt(be,_e){_e!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+_e+","+_e+")",be.style.webkitTransform="scale("+_e+","+_e+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function de(be,_e,fe,tt,Ae,We){var Ue=null;if(We!=null&&We!="")for(var je=be.parentNode;je!=null;)if((" "+je.className+" ").indexOf(" "+We+" ")>-1){Ue=je;break}else je=je.parentNode;var Qe=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ue)Qe=Ue.offsetWidth,ne=Math.max(tt?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Qe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Qe):(Qe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),be){var z=be.getBoundingClientRect();z.left>0&&z.left<=Qe&&(Ae===void 0||!Ae)&&(document.dir==="rtl"?(x=Qe-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return be&&((fe===void 0||!fe)&&_e>0&&_e+y<Qe?Qe=_e:Qe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe===void 0||!fe)&&(ne-=E)),{width:Qe,height:ne}}function ae(be,_e,fe,tt,Ae){if(be.isScreenshoGenerator)return 1;var We=tt!==void 0&&tt,Ue=be.noScaleMargin!=null&&be.noScaleMargin,je=function(ee){return ee&&ee!=="false"},Qe=je(be.autoHeight),ne=de(_e,be.width,fe,Qe,We&&window.GGBT_wsf_view||Ue,Ae),a=parseInt(ne.width),y=be.width,x=be.height;if(y===void 0){var b=_e.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=We?1:ne.height/x;return fe!==void 0&&!fe&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Ie(be,_e,fe){var tt=1,Ae,We=!1;if(be.hasOwnProperty("allowUpscale")&&(We=be.allowUpscale),be.hasOwnProperty("scale")&&(tt=parseFloat(be.scale),(isNaN(tt)||tt===null||tt===0)&&(tt=1),tt>1&&(We=!0)),_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(We=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Ae=ae(be,_e,We,fe,be.scaleContainerClass);else return tt;return We&&(!be.hasOwnProperty("scale")||tt===1)?Ae:Math.min(tt,Ae)}function Je(be){var _e=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),tt=be.getBoundingClientRect(),Ae=(_e-tt.width)/2,We=(fe-tt.height)/2;We<0&&(We=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?be.style.left="40px":be.style.left=Ae+"px",be.style.top=We+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We<40?be.style.top="40px":be.style.top=We+"px",be.style.left=Ae+"px")}function ot(be,_e){var fe=be.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var tt=Ie(_e,be);Ge()&&fe.setAttribute("data-param-scale",tt);for(var Ae=null,We=0;We<be.childNodes.length;We++)if(be.childNodes[We].className!==void 0&&be.childNodes[We].className.match(/^applet_scaler/)){Ae=be.childNodes[We];break}if(Ae!==null&&Ae.querySelector(".noscale")!==null)return;var Ue=_e.id!==void 0?_e.id:"ggbApplet",je=window[Ue];(je==null||!je.recalculateEnvironments)&&Ae!==null&&!Ae.className.match(/fullscreen/)&&(Ae.parentNode.style.transform="",!isNaN(tt)&&tt!==1?(Ae.parentNode.style.width=_e.width*tt+"px",Ae.parentNode.style.height=_e.height*tt+"px",dt(Ae,tt)):(dt(Ae,1),Ae.parentNode.style.width=_e.width+"px",Ae.parentNode.style.height=_e.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:ot,isFlexibleWorksheetEditor:Ge,positionCenter:Je,getScale:Ie,scaleElement:dt}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,dt){}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(Ge){var dt=s[L].bindings;s[L].bindings=function(){for(var de=dt?dt():{},ae=Ge[webModule.__softPermutationId],Ie=O;Ie<ae.length;Ie++){var Je=ae[Ie];de[Je[O]]=Je[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Ge){function dt(ae){function Ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=Ie();if(Je){ae();return}function ot(){if(!Je){if(!Ie())return;Je=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,ot,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,ot,!1);var be=setInterval(function(){ot()},$)}function de(ae){var Ie=u(),Je=Ie.body,ot=Ie.createElement(_);ot.language=ab,ot.crossOrigin=W,ot.src=ae,webModule.__errFn&&(ot.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Je.appendChild(ot)}dt(function(){de(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var dt=u(),de=dt.body,ae=dt.createElement(_);ae.language=ab,ae.text=Ge,de.appendChild(ae),de.removeChild(ae)};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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var dt=c[Ge];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Ge(be){var _e=be.lastIndexOf(rb);_e==-1&&(_e=be.length);var fe=be.indexOf(sb);fe==-1&&(fe=be.length);var tt=be.lastIndexOf(tb,Math.min(fe,_e));return tt>=O?be.substring(O,tt+P):W}function dt(be){if(!be.match(/^\w+:\/\//)){var _e=o.createElement(ub);_e.src=be+vb,be=Ge(_e.src)}return be}function de(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ae(){for(var be=o.getElementsByTagName(_),_e=O;_e<be.length;++_e)if(be[_e].src.indexOf(xb)!=-1)return Ge(be[_e].src);return W}function Ie(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Je(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var ot=de();return ot==W&&(ot=ae()),ot==W&&(ot=Ie()),ot==W&&Je()&&(ot=Ge(o.location.href)),ot=dt(ot),ot}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],dt=O,de=[],ae=[];function Ie(be){var _e=ae[be](),fe=de[be];if(_e in fe)return _e;var tt=[];for(var Ae in fe)tt[fe[Ae]]=Ae;throw r&&r(be,tt,_e),null}if(__gwt_isKnownPropertyValue=function(be,_e){return _e in de[be]},webModule.__getPropMap=function(){var be={};for(var _e in de)de.hasOwnProperty(_e)&&(be[_e]=Ie(_e));return be},webModule.__computePropValue=Ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var ot=Je.indexOf(Db);ot!=-1&&(dt=parseInt(Je.substring(ot+P),$),Je=Je.substring(O,ot))}catch(be){}return webModule.__softPermutationId=dt,C(Je+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})()},15476:function(Ge,dt,de){"use strict";de.d(dt,{Ax:function(){return ot},Ds:function(){return be},KI:function(){return fe},SI:function(){return Je},f1:function(){return Ie}});var ae=de(11320);function Ie(tt){let Ae=!0;if(tt.length>0){for(let We=0;We<tt.length;We++)if(tt[We].compile_success==0||!tt[We].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function Je(tt,Ae=""){let We=[];for(let Ue=0;Ue<tt.length;Ue++){let je=tt[Ue],Qe=Ae?`${Ae}/${je.name}`:`${je.name}`;We.push({title:je.name,type:je.type,isLeaf:je.type!=="tree",key:Qe})}return We}function ot(tt,Ae,We){for(let Ue=0;Ue<tt.length;Ue++){let je=tt[Ue];if(je.key===Ae){je.children=We;break}je.children&&ot(je.children,Ae,We)}return tt}function be(tt,Ae,We){let Ue;return function(){let je=this,Qe=arguments,ne=function(){Ue=null,We||tt.apply(je,Qe)},a=We&&!Ue;clearTimeout(Ue),Ue=setTimeout(ne,Ae),a&&tt.apply(je,Qe)}}const _e=!0,fe=ae.Z.API_SERVER},63205:function(Ge,dt,de){"use strict";de.d(dt,{Z:function(){return Ue}});var ae=de(67294),Ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=de(94184),ot=de.n(Je),be=de(74330),_e=de(15979),fe=de(33170),tt=de(28706),Ae=(je,Qe,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(je,Qe)).next())}),Ue=({data:je,className:Qe,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,re]=(0,ae.useState)(!1),[ue,me]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),je!=null&&je.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",je!=null&&je.src&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[je==null?void 0:je.visible]);const xe=()=>Ae(void 0,null,function*(){re(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ct=yield(0,tt.ZJ)(je==null?void 0:je.src);z.current.src="",z.current.src=ct,z.current.onload=function(){Bt()},re(!1),me("")}),ze=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},gt=ct=>Ae(void 0,null,function*(){re(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const rt=yield(0,fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:je.title,file:ct.dataUrl}});rt!=null&&rt.id&&!E?(yield(0,fe.ZP)(`/api/attachments/${je.id}/add_subitem.json`,{method:"post",body:{subitem_id:rt==null?void 0:rt.id,settings:JSON.stringify(ct.state)}})).status===0&&x():rt!=null&&rt.id&&x(rt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),me("")}),ut=()=>{const ct=document.querySelector('a[href="https://markerjs.com/"]');ct&&ct.parentNode&&(ct.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(lt=>{const En=document.querySelector(lt.name);En&&En.setAttribute("title",lt.title)})},Bt=()=>{ee.current=new _e.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",gt),ee.current.addEventListener("beforeclose",ze),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(),je!=null&&je.snapshotData&&ee.current.restoreState(je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ut()},300)};return ae.createElement(ae.Fragment,null,(je==null?void 0:je.visible)&&ae.createElement(be.Z,{spinning:ge,tip:ue,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:ot()(Ie.imageDimensions,Qe,ne?Ie.fullWidth:""),style:a},ae.createElement("img",{className:Ie.img,ref:z}))))}},36527:function(Ge,dt,de){"use strict";var ae=de(67294),Ie=de(71230),Je=de(15746),ot=de(72773),be=de(85804),_e=de(85725),fe=de(71736),tt=de(84279),Ae=de(67294);const We=(0,ae.forwardRef)(({callback:Ue,showSaveButton:je,value:Qe=""},ne)=>{const a=(0,ae.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:Ae.createElement(Ie.Z,{className:fe.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ae.createElement(Je.Z,{flex:"110px",className:fe.Z.item},Ae.createElement("div",null,Ae.createElement(_e.Z,{value:`$$${ee.value}$$`}),ee.name),Ae.createElement("div",{className:fe.Z.children},ee.children.map((oe,ge)=>Ae.createElement("div",{key:ge},Ae.createElement("h1",null,oe.name),Ae.createElement(Ie.Z,{gutter:[10,10]},oe.data.map((re,ue)=>Ae.createElement(Je.Z,{key:ue,onClick:()=>b(re),className:fe.Z.diamond},Ae.createElement(_e.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(Ie.Z,{className:fe.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ae.createElement(Je.Z,{flex:"110px",className:fe.Z.item},Ae.createElement("div",null,Ae.createElement(_e.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ae.createElement("div",{className:fe.Z.children},ee.children.map((oe,ge)=>Ae.createElement("div",{key:ge},oe.name&&Ae.createElement("h1",null,oe.name),Ae.createElement(Ie.Z,{gutter:[10,10]},oe.data.map((re,ue)=>Ae.createElement(Je.Z,{key:ue,onClick:()=>b(re),className:fe.Z.diamond},Ae.createElement(_e.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ue&&Ue(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ae.createElement("div",{className:fe.Z.mathWrap},Ae.createElement(ot.default,{defaultActiveKey:"1",items:E}),Ae.createElement("math-field",{locale:"zh_cn",className:fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Qe||""),je&&Ae.createElement("div",{className:fe.Z.button},Ae.createElement(be.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=We},57444:function(Ge,dt,de){"use strict";de.d(dt,{h:function(){return ee}});var ae=de(67294),Ie=de(88044),Je=de(91773),ot=de(85804),be=de(4631),_e=de.n(be),fe=de(71749),tt=de(30483),Ae=Object.defineProperty,We=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Ae(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Qe.call(oe,ge)&&a(te,ge,oe[ge]);if(je)for(var ge of je(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>We(te,Ue(oe));const b=Ie.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"]};dt.Z=({callback:te,onCancel:oe})=>{const[ge,re]=(0,ae.useState)("python");function ue(xe){re(z[xe][1])}function me(xe){te(xe)}return ae.createElement(Je.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ae.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Ie.default,{getPopupContainer:xe=>xe.parentNode,onChange:ue},Object.keys(z).map(xe=>ae.createElement(b,{key:xe,value:xe},z[xe][0])))),ae.createElement(Je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ot.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ot.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:re={}}){const ue=(0,ae.useRef)(),[me,xe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(me){let ze=function(gt){const ut=gt.getValue();oe&&oe(ut)};return me.on("change",ze),()=>{me.off("change",ze)}}},[me,oe]),(0,ae.useEffect)(()=>{me&&me.setOption("mode",ge)},[me,ge]),(0,ae.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ae.useEffect)(()=>{if(ue.current&&!me){const ze=_e().fromTextArea(ue.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));xe(ze)}},[ue.current,me]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},35567:function(Ge,dt,de){"use strict";de.d(dt,{Z:function(){return Nn}});var ae=de(67294),Ie=de(4631),Je=de.n(Ie),ot=de(91033),be=de(71749),_e=de(57341),fe=de(82801),tt=de(88386),Ae=de(49047),We=de(80785),Ue=de(85725),je=({value:ce="",className:Pe,showTextOnly:Se,showLines:Te,style:Ye={}})=>{const ke=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ke}}))},Qe=de(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ce,Pe,Se)=>Pe in ce?ne(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ce[Pe]=Se,ee=(ce,Pe)=>{for(var Se in Pe||(Pe={}))b.call(Pe,Se)&&z(ce,Se,Pe[Se]);if(x)for(var Se of x(Pe))E.call(Pe,Se)&&z(ce,Se,Pe[Se]);return ce},te=(ce,Pe)=>a(ce,y(Pe));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:ce,title:Pe,icon:Se,actionName:Te,className:Ye="",children:ke}){function zt(){ce(Te)}return Qe.createElement("a",{title:Pe,className:Ye,onClick:zt},Qe.createElement("i",{className:`${Se}`}),ke)}var re=({watch:ce,showNullButton:Pe,showNullProgramButton:Se,onActionCallback:Te,fullScreen:Ye,insertTemp:ke,hidetoolBar:zt,extraUse:ht})=>{const pt=[...oe,{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 Qe.createElement("ul",{className:"markdown-toolbar-container"},!zt&&pt.map((Tt,fn)=>Qe.createElement("li",{key:fn},Tt.actionName?Qe.createElement(ge,te(ee({},Tt),{onActionCallback:Te})):Qe.createElement("span",{className:"v-line"}))),Pe?Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Te},Qe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Qe.createElement(Qe.Fragment,null,Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Te},Qe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Te},Qe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ke&&Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ke}`,onActionCallback:Te},Qe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ht&&Qe.createElement("li",null,ht),Qe.createElement("li",{className:"btn-full-screen"},Qe.createElement(ge,{icon:`${Ye?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ye?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Te})))},ue=de(76621),me=de(91773),xe=de(28802),ze=de(85804),gt=Object.defineProperty,ut=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,En=(ce,Pe,Se)=>Pe in ce?gt(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ce[Pe]=Se,yn=(ce,Pe)=>{for(var Se in Pe||(Pe={}))rt.call(Pe,Se)&&En(ce,Se,Pe[Se]);if(ct)for(var Se of ct(Pe))lt.call(Pe,Se)&&En(ce,Se,Pe[Se]);return ce},Wn=(ce,Pe)=>ut(ce,Bt(Pe));const Tn={labelCol:{span:4},wrapperCol:{span:20}};var On=({callback:ce,onCancel:Pe})=>{function Se(Te){ce(Te)}return ae.createElement(me.default,Wn(yn({},Tn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),ae.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(xe.default,null)),ae.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(xe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ze.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},wn=de(57444),Ee=de(70859),Ne=de(62844),Re=de(71230),ft=de(63205),$e=de(67294),St=({callback:ce,onCancel:Pe})=>{const Se=document.createElement("canvas"),Te=Se.getContext("2d");Se.width=1e3,Se.height=800,Te.fillStyle="#ffffff",Te.fillRect(0,0,Se.width,Se.height);const Ye=Se.toDataURL("image/png");return $e.createElement(Ne.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$e.createElement(Re.Z,{style:{height:"100vh"}},$e.createElement(ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ye,visible:!0,title:String(Date.now())},onOk:ke=>{ce({src:ke.url})},onClose:Pe})))},ie=de(23495);function qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(qe,go.CommandHandler),qe.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},qe.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var Pe=1/0;ce.selection.each(function(Se){Se instanceof go.Link||(Pe=Math.min(Se.position.x,Pe))}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Pe,Se.position.y))}),ce.commitTransaction("aligning left")},qe.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Pe=-1/0;ce.selection.each(function(Se){if(!(Se instanceof go.Link)){var Te=Se.actualBounds.x+Se.actualBounds.width;Pe=Math.max(Te,Pe)}}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Pe-Se.actualBounds.width,Se.position.y))}),ce.commitTransaction("aligning right")},qe.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Pe=1/0;ce.selection.each(function(Se){Se instanceof go.Link||(Pe=Math.min(Se.position.y,Pe))}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,Pe))}),ce.commitTransaction("alignTop")},qe.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Pe=-1/0;ce.selection.each(function(Se){if(!(Se instanceof go.Link)){var Te=Se.actualBounds.y+Se.actualBounds.height;Pe=Math.max(Te,Pe)}}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,Pe-Se.actualBounds.height))}),ce.commitTransaction("aligning bottom")},qe.prototype.alignCenterX=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center X");var Se=Pe.actualBounds.x+Pe.actualBounds.width/2;ce.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point(Se-Te.actualBounds.width/2,Te.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},qe.prototype.alignCenterY=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center Y");var Se=Pe.actualBounds.y+Pe.actualBounds.height/2;ce.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point(Te.actualBounds.x,Se-Te.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},qe.prototype.alignColumn=function(ce){var Pe=this.diagram;Pe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Se=new Array;Pe.selection.each(function(ht){ht instanceof go.Link||Se.push(ht)});for(var Te=0;Te<Se.length-1;Te++){var Ye=Se[Te],ke=Ye.actualBounds.y+Ye.actualBounds.height+ce,zt=Se[Te+1];zt.move(new go.Point(Ye.actualBounds.x,ke))}Pe.commitTransaction("align Column")},qe.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=this.diagram;Pe.startTransaction("align Row");var Se=new Array;Pe.selection.each(function(ht){ht instanceof go.Link||Se.push(ht)});for(var Te=0;Te<Se.length-1;Te++){var Ye=Se[Te],ke=Ye.actualBounds.x+Ye.actualBounds.width+ce,zt=Se[Te+1];zt.move(new go.Point(ke,Ye.actualBounds.y))}Pe.commitTransaction("align Row")},qe.prototype.canRotate=function(ce){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},qe.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ce.toString());var Pe=this.diagram;Pe.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ce)}),Pe.commitTransaction("rotate "+ce.toString())},qe.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Pe=new go.Map;ce.selection.each(function(Se){Pe.set(Se.layer,0)}),Pe.iteratorKeys.each(function(Se){var Te=0;Se.parts.each(function(Ye){if(!Ye.isSelected){var ke=Ye.zOrder;isNaN(ke)?Ye.zOrder=0:Te=Math.max(Te,ke)}}),Pe.set(Se,Te)}),ce.selection.each(function(Se){qe._assignZOrder(Se,Pe.get(Se.layer)+1)}),ce.commitTransaction("pullToFront")},qe.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Pe=new go.Map;ce.selection.each(function(Se){Pe.set(Se.layer,0)}),Pe.iteratorKeys.each(function(Se){var Te=0;Se.parts.each(function(Ye){if(!Ye.isSelected){var ke=Ye.zOrder;isNaN(ke)?Ye.zOrder=0:Te=Math.min(Te,ke)}}),Pe.set(Se,Te)}),ce.selection.each(function(Se){qe._assignZOrder(Se,Pe.get(Se.layer)-1-qe._findGroupDepth(Se))}),ce.commitTransaction("pushToBack")},qe._assignZOrder=function(ce,Pe,Se){Se===void 0&&(Se=ce),ce.layer===Se.layer&&(ce.zOrder=Pe),ce instanceof go.Group&&ce.memberParts.each(function(Te){qe._assignZOrder(Te,Pe+1,Se)})},qe._findGroupDepth=function(ce){if(ce instanceof go.Group){var Pe=0;return ce.memberParts.each(function(Se){Pe=Math.max(Pe,qe._findGroupDepth(Se))}),Pe+1}else return 0},qe.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Pe=ce.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},qe.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(Pe){ce.push(Pe)}),this.diagram.parts.each(function(Pe){ce.push(Pe)}),ce},qe.prototype._arrowKeyMove=function(){var ce=this.diagram,Pe=ce.lastInput,Se=0,Te=0;if(Pe.control||Pe.meta)Se=1,Te=1;else if(ce.grid!==null){var Ye=ce.grid.gridCellSize;Te=Ye.width,Se=Ye.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(ke){Pe.key==="Up"?ke.move(new go.Point(ke.actualBounds.x,ke.actualBounds.y-Se)):Pe.key==="Down"?ke.move(new go.Point(ke.actualBounds.x,ke.actualBounds.y+Se)):Pe.key==="Left"?ke.move(new go.Point(ke.actualBounds.x-Te,ke.actualBounds.y)):Pe.key==="Right"&&ke.move(new go.Point(ke.actualBounds.x+Te,ke.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},qe.prototype._arrowKeySelect=function(){var ce=this.diagram,Pe=ce.lastInput,Se=null;Pe.key==="Up"?Se=this._findNearestPartTowards(270):Pe.key==="Down"?Se=this._findNearestPartTowards(90):Pe.key==="Left"?Se=this._findNearestPartTowards(180):Pe.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(Pe.shift?Se.isSelected=!0:Pe.control||Pe.meta?Se.isSelected=!Se.isSelected:ce.select(Se))},qe.prototype._findNearestPartTowards=function(ce){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var Se=Pe.actualBounds.center,Te=this._getAllParts(),Ye=1/0,ke=Pe,zt=0;zt<Te.length;zt++){var ht=Te[zt];if(ht!==Pe&&ht.canSelect()){var pt=ht.actualBounds.center,Tt=Se.directionPoint(pt),fn=this._angleCloseness(Tt,ce);if(fn<=45){var De=Se.distanceSquaredPoint(pt);De*=1+Math.sin(fn*Math.PI/180),De<Ye&&(Ye=De,ke=ht)}}}return ke},qe.prototype._angleCloseness=function(ce,Pe){return Math.min(Math.abs(Pe-ce),Math.min(Math.abs(Pe+360-ce),Math.abs(Pe-360-ce)))},qe.prototype._arrowKeyTree=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe instanceof go.Node){var Se=ce.lastInput;if(Se.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ce.commandHandler.canExpandTree(Pe)&&ce.commandHandler.expandTree(Pe);else{var Te=this._sortTreeChildrenByY(Pe).first();Te!==null&&ce.select(Te)}}else if(Se.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ce.commandHandler.canCollapseTree(Pe)&&ce.commandHandler.collapseTree(Pe);else{var Ye=Pe.findTreeParentNode();Ye!==null&&ce.select(Ye)}else if(Se.key==="Up"){var Ye=Pe.findTreeParentNode();if(Ye!==null){var ke=this._sortTreeChildrenByY(Ye),zt=ke.indexOf(Pe);if(zt>0){for(var ht=ke.elt(zt-1);ht!==null&&ht.isTreeExpanded&&!ht.isTreeLeaf;){var pt=this._sortTreeChildrenByY(ht);ht=pt.last()}ht!==null&&ce.select(ht)}else ce.select(Ye)}}else if(Se.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Te=this._sortTreeChildrenByY(Pe).first();Te!==null&&ce.select(Te)}else for(;Pe!==null;){var Ye=Pe.findTreeParentNode();if(Ye===null)break;var ke=this._sortTreeChildrenByY(Ye),zt=ke.indexOf(Pe);if(zt<ke.length-1){ce.select(ke.elt(zt+1));break}else Pe=Ye}var Tt=ce.selection.first();Tt!==null&&ce.scrollToRect(Tt.actualBounds)}},qe.prototype._sortTreeChildrenByY=function(ce){var Pe=new go.List().addAll(ce.findTreeChildrenNodes());return Pe.sort(function(Se,Te){var Ye=Se.location,ke=Te.location;return Ye.y<ke.y?-1:Ye.y>ke.y?1:Ye.x<ke.x?-1:Ye.x>ke.x?1:0}),Pe},qe.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},qe.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(qe.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(qe.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 wt=qe,ln=de(18023),It=de(15746),zn=de(33170),Gn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ot=de(67294),In=(ce,Pe,Se)=>new Promise((Te,Ye)=>{var ke=pt=>{try{ht(Se.next(pt))}catch(Tt){Ye(Tt)}},zt=pt=>{try{ht(Se.throw(pt))}catch(Tt){Ye(Tt)}},ht=pt=>pt.done?Te(pt.value):Promise.resolve(pt.value).then(ke,zt);ht((Se=Se.apply(ce,Pe)).next())});function ra({onCancel:ce,callback:Pe}){let Se=(0,ae.useRef)(),Te=(0,ae.useRef)(),Ye=(0,ae.useRef)(),ke=(0,ae.useRef)(!1);const zt=(0,ae.useRef)(!1),[ht,pt]=(0,ae.useState)(0);function Tt(){const De=ie.bx.make,xt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Se.current=new ie.S0(Te.current,{padding:20,grid:De(ie.s_,"Grid",De(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:se=>{var pe=se.diagram.commandHandler.addTopLevelParts(se.diagram.selection,!0);pe||se.diagram.currentTool.doCancel()},commandHandler:De(wt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:se=>{var pe=se.subject;pe.location=pe.location.copy().snapToGridPoint(se.diagram.grid.gridOrigin,se.diagram.grid.gridCellSize),setTimeout(()=>{se.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:se=>{var pe=se.subject;setTimeout(()=>{se.diagram.commandHandler.editTextBlock()})},LinkRelinked:se=>{var pe=se.parameter.part;pe.invalidateConnectedLinks();var Fe=se.subject;se.diagram.toolManager.linkingTool.isForwards?Fe.toNode.invalidateConnectedLinks():Fe.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=De(ie.NB,"Auto",{locationSpot:ie.z6.Center,locationObjectName:"SHAPE",desiredSize:new ie.$u(120,60),minSize:new ie.$u(40,40),resizable:!0,resizeCellSize:new ie.$u(10,10),rotatable:!0},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),new ie.KX("desiredSize","size",ie.$u.parse).makeTwoWay(ie.$u.stringify),De(ie.bn,{name:"SHAPE",fill:xt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ie.z6.AllSides,toSpot:ie.z6.AllSides},new ie.KX("figure"),new ie.KX("fill"),new ie.KX("stroke","borderColor"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),De(ie.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),De(ie.al,{margin:1,textAlign:"center",overflow:ie.al.OverflowEllipsis,editable:!0},new ie.KX("text").makeTwoWay(),new ie.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=De("ToolTip",De(ie.s_,"Vertical",{maxSize:new ie.$u(200,NaN)},De(ie.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ie.KX("text")),De(ie.al,{font:"10pt sans-serif",textAlign:"center"},new ie.KX("text","details"))));function bn(se,pe){var Fe=(Le,ve)=>{Le.handled=!0,Le.diagram.model.commit(et=>{var Ke=ve.part.adornedPart,at=new ie.E9().setRectSpot(Ke.actualBounds,se);at.subtract(Ke.location),at.scale(2,2),at.x+=Math.sign(at.x)*130,at.y+=Math.sign(at.y)*130,at.add(Ke.location),at.snapToGridPoint(Le.diagram.grid.gridOrigin,Le.diagram.grid.gridCellSize);var mt=et.copyNodeData(Ke.data);et.setGroupKeyForNodeData(mt,et.getGroupKeyForNodeData(Ke.data)),et.addNodeData(mt);var Et={from:Ke.key,to:et.getKeyForNodeData(mt)};et.addLinkData(Et);var Nt=Le.diagram.findNodeForData(mt);Nt.location=at,Le.diagram.select(Nt),setTimeout(()=>{Le.diagram.commandHandler.editTextBlock()},20)})};return De(ie.bn,{figure:pe,alignment:se,alignmentFocus:se.opposite(),width:se.equals(ie.z6.Top)||se.equals(ie.z6.Bottom)?25:18,height:se.equals(ie.z6.Top)||se.equals(ie.z6.Bottom)?18:25,fill:"orange",stroke:xt.white,strokeWidth:4,mouseEnter:(Le,ve)=>ve.fill="dodgerblue",mouseLeave:(Le,ve)=>ve.fill="orange",isActionable:!0,click:Fe,contextClick:Fe})}function pn(se){return De(ie.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(pe,Fe)=>Fe.fill="dodgerblue",mouseLeave:(pe,Fe)=>Fe.fill="orange",click:(pe,Fe)=>{pe.diagram.commandHandler.showContextMenu(Fe.part.adornedPart)}},se||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=De(ie.uz,"Spot",De(ie.Vm,{padding:10}),bn(ie.z6.Top,"TriangleUp"),bn(ie.z6.Left,"TriangleLeft"),bn(ie.z6.Right,"TriangleRight"),bn(ie.z6.Bottom,"TriangleDown"),pn({alignment:new ie.z6(.75,0)}));function Ht(se,pe){return(Fe,Le)=>{Fe.handled=!0,Fe.diagram.model.commit(ve=>{ve.set(Le.part.adornedPart.data,se,pe)})}}function _t(se,pe){return pe||(pe="color"),De(ie.bn,{width:16,height:16,stroke:"lightgray",fill:se,margin:1,background:"transparent",mouseEnter:(Fe,Le)=>Le.stroke="dodgerblue",mouseLeave:(Fe,Le)=>Le.stroke="lightgray",click:Ht(pe,se),contextClick:Ht(pe,se)})}function Rn(){return[De("ContextMenuButton",De(ie.s_,"Horizontal",_t(xt.white,"fill"),_t(xt.beige,"fill"),_t(xt.extralightblue,"fill"),_t(xt.extralightred,"fill"))),De("ContextMenuButton",De(ie.s_,"Horizontal",_t(xt.lightgray,"fill"),_t(xt.lightgreen,"fill"),_t(xt.lightblue,"fill"),_t(xt.lightred,"fill")))]}function kn(){return[De("ContextMenuButton",De(ie.s_,"Horizontal",_t(xt.black),_t(xt.green),_t(xt.blue),_t(xt.red))),De("ContextMenuButton",De(ie.s_,"Horizontal",_t(xt.white),_t(xt.magenta),_t(xt.purple),_t(xt.orange)))]}function Bn(se,pe){return pe||(pe="thickness"),De(ie.bn,"LineH",{width:16,height:16,strokeWidth:se,margin:1,background:"transparent",mouseEnter:(Fe,Le)=>Le.background="dodgerblue",mouseLeave:(Fe,Le)=>Le.background="transparent",click:Ht(pe,se),contextClick:Ht(pe,se)})}function ea(se,pe){return pe||(pe="dash"),De(ie.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:se,margin:1,background:"transparent",mouseEnter:(Fe,Le)=>Le.background="dodgerblue",mouseLeave:(Fe,Le)=>Le.background="transparent",click:Ht(pe,se),contextClick:Ht(pe,se)})}function Yn(){return[De("ContextMenuButton",De(ie.s_,"Horizontal",Bn(1),Bn(2),Bn(3),Bn(4))),De("ContextMenuButton",De(ie.s_,"Horizontal",ea(null),ea([2,4]),ea([4,4])))]}function cn(se,pe){return pe||(pe="figure"),De(ie.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:se,margin:1,background:"transparent",mouseEnter:(Fe,Le)=>Le.fill="dodgerblue",mouseLeave:(Fe,Le)=>Le.fill="lightgray",click:Ht(pe,se),contextClick:Ht(pe,se)})}Se.current.nodeTemplate.contextMenu=De("ContextMenu",De("ContextMenuButton",De(ie.s_,"Horizontal",cn("Rectangle"),cn("RoundedRectangle"),cn("Ellipse"),cn("Diamond"))),De("ContextMenuButton",De(ie.s_,"Horizontal",cn("Parallelogram2"),cn("ManualOperation"),cn("Procedure"),cn("Cylinder1"))),De("ContextMenuButton",De(ie.s_,"Horizontal",cn("Terminator"),cn("CreateRequest"),cn("Document"),cn("TriangleDown"))),Rn(),kn(),Yn()),Se.current.groupTemplate=De(ie.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ie.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(se,pe)=>{var Fe=pe.addMembers(pe.diagram.selection,!0);Fe||pe.diagram.currentTool.doCancel()},avoidable:!1},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),De(ie.s_,"Auto",{name:"BODY"},De(ie.bn,{parameter1:10,fill:xt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ie.z6.AllSides,toSpot:ie.z6.AllSides},new ie.KX("fill"),new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),De(ie.Vm,{background:"transparent",margin:20})),De(ie.al,{alignment:ie.z6.Top,alignmentFocus:ie.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ie.KX("text"),new ie.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=De(ie.uz,"Spot",De(ie.s_,"Auto",De(ie.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),De(ie.Vm,{margin:1.5})),pn({alignment:ie.z6.TopRight,alignmentFocus:ie.z6.BottomRight})),Se.current.groupTemplate.contextMenu=De("ContextMenu",Rn(),kn(),Yn()),Se.current.linkTemplate=De(ie.rU,{layerName:"Foreground",routing:ie.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ie.KX("fromSpot","fromSpot",ie.z6.parse),new ie.KX("toSpot","toSpot",ie.z6.parse),new ie.KX("fromShortLength","dir",se=>se>=1?10:0),new ie.KX("toShortLength","dir",se=>se>=1?10:0),new ie.KX("points").makeTwoWay(),De(ie.bn,{strokeWidth:2},new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),De(ie.bn,{segmentIndex:0,segmentOffset:new ie.E9(15,0),segmentOrientation:ie.rU.OrientAlong,alignmentFocus:ie.z6.Right,figure:"circle",width:10,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",se=>se===1)),De(ie.bn,{segmentIndex:-1,segmentOffset:new ie.E9(-10,6),segmentOrientation:ie.rU.OrientPlus90,alignmentFocus:ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",se=>se>=1),new ie.KX("width","thickness",se=>7+3*se),new ie.KX("height","thickness",se=>7+3*se),new ie.KX("segmentOffset","thickness",se=>new ie.E9(-15,4+1.5*se))),De(ie.bn,{segmentIndex:0,segmentOffset:new ie.E9(15,-6),segmentOrientation:ie.rU.OrientMinus90,alignmentFocus:ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",se=>se===2),new ie.KX("width","thickness",se=>7+3*se),new ie.KX("height","thickness",se=>7+3*se),new ie.KX("segmentOffset","thickness",se=>new ie.E9(-15,4+1.5*se))),De(ie.al,{alignmentFocus:new ie.z6(0,1,-4,0),editable:!0},new ie.KX("text").makeTwoWay(),new ie.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=De(ie.uz,De(ie.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ta(2)},new ie.KX("pathPattern","thickness",ta)),pn({alignmentFocus:new ie.z6(0,0,-6,-4)}));function ta(se){return De(ie.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(se+4).toString()+" H3"})}function na(se){var pe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return se===0?pe="M0 0 M16 16 M0 8 L16 8":se===2&&(pe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),De(ie.bn,{geometryString:pe,margin:2,background:"transparent",mouseEnter:(Fe,Le)=>Le.background="dodgerblue",mouseLeave:(Fe,Le)=>Le.background="transparent",click:Ht("dir",se),contextClick:Ht("dir",se)})}function pa(se){var pe=(Fe,Le)=>{Fe.handled=!0,Fe.diagram.model.commit(ve=>{var et=Le.part.adornedPart;ve.set(et.data,se?"toSpot":"fromSpot",ie.z6.stringify(ie.z6.AllSides)),(se?et.toNode:et.fromNode).invalidateConnectedLinks()})};return De(ie.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Fe,Le)=>Le.background="dodgerblue",mouseLeave:(Fe,Le)=>Le.background="transparent",click:pe,contextClick:pe})}function Ce(se,pe){var Fe=0,Le=ie.z6.RightSide;se.equals(ie.z6.Top)?(Fe=270,Le=ie.z6.TopSide):se.equals(ie.z6.Left)?(Fe=180,Le=ie.z6.LeftSide):se.equals(ie.z6.Bottom)&&(Fe=90,Le=ie.z6.BottomSide),pe||(Fe-=180);var ve=(et,Ke)=>{et.handled=!0,et.diagram.model.commit(at=>{var mt=Ke.part.adornedPart;at.set(mt.data,pe?"toSpot":"fromSpot",ie.z6.stringify(Le)),(pe?mt.toNode:mt.fromNode).invalidateConnectedLinks()})};return De(ie.bn,{alignment:se,alignmentFocus:se.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Fe,background:"transparent",mouseEnter:(et,Ke)=>Ke.background="dodgerblue",mouseLeave:(et,Ke)=>Ke.background="transparent",click:ve,contextClick:ve})}Se.current.linkTemplate.contextMenu=De("ContextMenu",kn(),Yn(),De("ContextMenuButton",De(ie.s_,"Horizontal",na(0),na(1),na(2))),De("ContextMenuButton",De(ie.s_,"Horizontal",De(ie.s_,"Spot",pa(!1),Ce(ie.z6.Top,!1),Ce(ie.z6.Left,!1),Ce(ie.z6.Right,!1),Ce(ie.z6.Bottom,!1)),De(ie.s_,"Spot",{margin:new ie.Zt(0,0,0,2)},pa(!0),Ce(ie.z6.Top,!0),Ce(ie.z6.Left,!0),Ce(ie.z6.Right,!0),Ce(ie.z6.Bottom,!0)))));const Ca=`{ "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 le=["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 we(se){return console.log("shapeName:",se),le.indexOf(se)>=0}var Be=new ie.YI(Ye.current,{maxSelectionCount:1,linkTemplate:De(ie.rU,{locationSpot:ie.z6.Center,selectionAdornmentTemplate:De(ie.uz,"Link",{locationSpot:ie.z6.Center},De(ie.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),De(ie.bn,{toArrow:"Standard",stroke:null}))},{routing:ie.rU.AvoidsNodes,curve:ie.rU.JumpOver,corner:5,toShortLength:4},new ie.KX("points"),De(ie.bn,{isPanelMain:!0,strokeWidth:2}),De(ie.bn,{toArrow:"Standard",stroke:null})),model:new ie.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ie.bn.getFigureGenerators().toArray().map(se=>({text:"\u672A\u547D\u540D",size:"100 100",figure:se.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(se){var pe;const Fe=se.subject.part;var Le=(pe=document.activeElement)==null?void 0:pe.value;typeof Le=="string"&&Le.trim()===""&&Se.current.model.commit(function(ve){ve.set(Fe.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Be.nodeTemplate=De(ie.NB,"Auto",{locationSpot:ie.z6.Center},new ie.KX("location","location",ie.E9.parse).makeTwoWay(ie.E9.stringify),De(ie.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new ie.KX("stroke").makeTwoWay(),new ie.KX("fill").makeTwoWay(),new ie.KX("figure")),De(ie.al,{margin:new ie.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ie.$u(16,16),maxSize:new ie.$u(10,NaN),textAlign:"center",editable:!0},new ie.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=De(ie.s_,"Grid",De(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const fn=()=>In(this,null,function*(){var De=Se.current.makeImage();const xt=yield(0,zn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:De.src}});Pe({src:xt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Tt()},500),pt(ht+1),()=>{Se.current=null}),[]),Ot.createElement("div",{ref:zt,className:ke.current?`${Gn.maxH60} body-overflow-initial`:"body-overflow-initial"},Ot.createElement(Ne.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ht,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ot.createElement(Re.Z,null,Ot.createElement(It.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ot.createElement(It.Z,{onClick:()=>{var De,xt,bn=Se.current.selection.first();if(ke.current=!ke.current,document.activeElement&&bn){let pn=(xt=(De=document.activeElement)==null?void 0:De.value)==null?void 0:xt.trim();typeof pn=="string"&&Se.current.model.commit(function(Ht){Ht.set(bn.data,"text",pn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}pt(ht+1)}},Ot.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},Ot.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Gn.flowChartWrp},Ot.createElement("div",{style:{display:"flex",height:"100%"}},Ot.createElement("div",{style:{width:"300px",height:"100%"}},Ot.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ot.createElement("div",{style:{height:"calc(100% - 50px)"},className:Gn.myPaletteDiv,ref:Ye})),Ot.createElement("div",{style:{flex:1,position:"relative"}},Ot.createElement("div",{ref:Te,style:{height:"80vh"}}))),Ot.createElement("div",{className:"tr"},Ot.createElement(ze.ZP,{size:"large",onClick:fn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var jn=ra,Qn=de(98813),Un=de(55514);const qt=Qn.ZP.Group,mn={margin:"0 8px"};var un=({callback:ce,onCancel:Pe})=>{function Se(Te){ce(Te)}return ae.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:mn},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:mn},"\u884C\u6570"),ae.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Un.Z,null)),ae.createElement("span",{style:mn},"\u5217\u6570"),ae.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Un.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:mn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(me.default.Item,{name:"align"},ae.createElement(qt,null,ae.createElement(Qn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Qn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Qn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Qn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ze.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ct=de(47897),Xn=de(61016),ia=de.n(Xn),wa=(0,ae.forwardRef)(({use3d:ce,width:Pe,height:Se,callback:Te,showSaveButton:Ye},ke)=>{const zt=(0,ae.useRef)(),ht=(0,ae.useRef)(),[pt,Tt]=(0,ae.useState)(!1),fn=(0,ae.useRef)({id:zt,appName:"graphing",width:Pe||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{ht.current=new(ia())(fn.current,!0),window.onload=function(){ht.current.inject("applet_container")}},[]);const De=()=>{var xt=window.ggbApplet.getPNGBase64(1,!0,72);return Te&&Te(xt),xt};return(0,ae.useEffect)(()=>{fn.current.appName=pt?"3D":"graphing",ht.current.inject("applet_container")},[pt]),(0,ae.useEffect)(()=>{Tt(ce)},[ce]),(0,ae.useImperativeHandle)(ke,()=>({getImgData:De})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zt}),ae.createElement(Re.Z,{align:"middle"},ae.createElement(It.Z,{flex:1},ae.createElement(Ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:pt,onChange:xt=>Tt(xt)})),ae.createElement(It.Z,null,ae.createElement(ze.ZP,{size:"large",onClick:De,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ca=de(36527),Ea=de(25934),Fa=de(2453);const ma="link",Sa="upload-image",Vn="add-flowchart",qn="draw-image",he="add-flowchart",ye="code-block",Me="add-table",He="------------",it={default:He,left:`:${He}`,center:`:${He}:`,right:`${He}:`};var vt=de(99914),st=(ce,Pe,Se)=>new Promise((Te,Ye)=>{var ke=pt=>{try{ht(Se.next(pt))}catch(Tt){Ye(Tt)}},zt=pt=>{try{ht(Se.throw(pt))}catch(Tt){Ye(Tt)}},ht=pt=>pt.done?Te(pt.value):Promise.resolve(pt.value).then(ke,zt);ht((Se=Se.apply(ce,Pe)).next())});function Lt(){}let Pt=0;const jt=1e4,Mt="\u2581",Zt="@\u2581\u2581@",Vt="@\u2581@",nn=`
|
|
**\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`,Jt=["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 on(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const Rt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",an={[Rt+"-B"]:"bold",[Rt+"-I"]:"italic"},gn={[ma]:"\u6DFB\u52A0\u94FE\u63A5",[ye]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sa]:"\u6DFB\u52A0\u56FE\u7247",[qn]:"\u6DFB\u52A0\u753B\u56FE",[Vn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Me]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nn=({defaultValue:ce="",onChange:Pe,width:Se="100%",height:Te=400,miniToolbar:Ye=!1,isFocus:ke=!1,watch:zt,insertTemp:ht,mode:pt="markdown",id:Tt="markdown-editor-id",showResizeBar:fn=!1,noStorage:De=!1,showNullButton:xt=!1,showNullProgramButton:bn=!1,hidetoolBar:pn=!1,fullScreen:Ht=!1,onBlur:_t,onCMBeforeChange:Rn,onFullScreen:kn,className:Bn="",disablePaste:ea=!1,disabled:Yn=!1,disabledFill:cn=!1,placeholder:ta="",values:na="",extraUse:pa})=>{const[Ce,Ca]=(0,ae.useState)(null),[le,we]=(0,ae.useState)(ce),[Be,se]=(0,ae.useState)(zt),[pe,Fe]=(0,ae.useState)(Ht),[Le,ve]=(0,ae.useState)(""),[et,Ke]=(0,ae.useState)(0),[at,mt]=(0,ae.useState)(Te),[Et,Nt]=(0,ae.useState)(!1),At=(0,ae.useRef)((0,Ea.Z)()),Yt=(0,ae.useRef)(!1),Wt=(0,ae.useRef)(),[en,Ut]=(0,ae.useState)(0),[tn,Xt]=(0,ae.useState)(0),nt=(0,ae.useRef)(),Sn=(0,ae.useRef)(),kt=(0,ae.useRef)(),Cn=(0,ae.useRef)(),aa=()=>st(void 0,null,function*(){var Xe;const Oe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:At.current}});(Xe=Oe==null?void 0:Oe.attachments)!=null&&Xe.length&&(console.log("cm:",Ce,nt),Oe.attachments.map(Ze=>{Ze.content_type.indexOf("image")>-1?Ce.replaceSelection(``):Ze.content_type.indexOf("video")>-1?Ce.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ze.content_type.indexOf("pdf")>-1?Ce.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ze.id}?type=${Ze.content_type}&disposition=inline" target="_blank">${Ze.name}</a>`):Ce.replaceSelection(`[${Ze.name}](${ENV.API_SERVER}/api/attachments/${Ze.id}?type=${Ze.content_type})`)}))});(0,ae.useEffect)(()=>{const Xe=window.scrollY||window.pageYOffset;we(na),Ce==null||Ce.setValue(na),window.scrollTo(0,Xe)},[na]),(0,ae.useEffect)(()=>{kn==null||kn(pe)},[pe]),(0,ae.useEffect)(()=>{if(nt.current){let Xe=function(Ze,Ve){var Dt;if(ea){Ve.preventDefault();return}const Kt=Ve.clipboardData;if(Kt){const sn=Kt.types.toString(),rn=Kt.items;if(sn==="Files"||Kt.types.indexOf("Files")>-1){if(Ve.preventDefault(),pt=="stex")return;try{let bt=rn[1];((Dt=rn[0])==null?void 0:Dt.kind)==="file"&&(bt=rn[0]);const Ft=bt.getAsFile(),xn=Ft.name.split(".").pop();(0,Ee.I)(Ft,Dn=>{var fa,va,ba;Dn.id?((fa=Ft==null?void 0:Ft.type)==null?void 0:fa.indexOf("image"))>-1?Oe.replaceSelection(`<img width="100%" src="/api/attachments/${Dn.id}?type=${Dn.content_type})" alt="" />`):((va=Ft==null?void 0:Ft.type)==null?void 0:va.indexOf("video"))>-1?Oe.replaceSelection(`<video width="100%" controls src="/api/attachments/${Dn.id}"></video>`):((ba=Ft==null?void 0:Ft.type)==null?void 0:ba.indexOf("pdf"))>-1?Oe.replaceSelection(`<a href="/api/attachments/${Dn.id}?type=${Ft.type}&disposition=inline" target="_blank">${Ft.name}</a>`):Jt.includes(xn)?Oe.replaceSelection(`<a href="/api/attachments/${Dn.id}?type=office&disposition=inline" target="_blank">${Ft.name}</a>`):Oe.replaceSelection(`[${Ft.name}](/api/attachments/${Dn.id}?type=${Dn.content_type})`):(Dn==null?void 0:Dn.status)===401&&(Fa.ZP.warning((Dn==null?void 0:Dn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(bt){Fa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Oe=Je().fromTextArea(nt.current,{mode:pt,lineNumbers:!Ye,lineWrapping:!0,value:ce,autoCloseTags:!bn,autoCloseBrackets:!0});return Oe.on("keyup",function(Ze,Ve){Ve.keyCode===8&&(Ze.getValue()==""?Oe.setOption("placeholder",ta):Oe.setOption("placeholder",null))}),Oe.on("keydown",function(Ze,Ve){if(Ve.keyCode===8){var Dt=An(Ze);Dt&&Ve.preventDefault()}}),ke&&Oe.focus(),Oe.on("paste",Xe),Oe.on("dragleave",function(Ze,Ve){Sn.current.classList.remove("mouse-hover-md")}),Yn&&Oe.on("beforeChange",function(Ze,Ve){(Ve.origin==="paste"||Ve.origin==="+input")&&Ve.cancel()}),Ca(Oe),()=>{Oe.off("paste",Xe)}}},[]);const Jn=(0,ae.useCallback)(()=>{if(Sn.current)try{}catch(Xe){console.log(Xe,"---- to set md editor body height")}},[at,Sn,pe]);(0,ae.useEffect)(()=>{function Xe(){let Oe=new ot.Z(Ze=>{for(let Ve of Ze)(Ve.target.offsetHeight>0||Ve.target.offsetWidth>0)&&(Jn(),Ce.setSize("100%","100%"),Ce.refresh())});return Oe.observe(nt.current.parentElement),Oe}if(Ce){const Oe=Xe();return()=>{var Ze,Ve;(Ze=nt.current)!=null&&Ze.parentElement&&Oe.unobserve((Ve=nt.current)==null?void 0:Ve.parentElement)}}},[Ce,Jn]),(0,ae.useEffect)(()=>{if(Ce){let Xe=[];for(const[Oe,Ze]of Object.entries(an)){let Ve={[Oe]:()=>{oa(Ze)}};Xe.push(Ve),Ce.addKeyMap(Ve)}return Wt.current=setInterval(()=>{Yt.current&&aa()},4e3),()=>{clearInterval(Wt.current);for(let Oe of Xe)Ce.removeKeyMap(Oe)}}},[Ce]),(0,ae.useEffect)(()=>{Ht!==pe&&Fe(Ht)},[Ht]),(0,vt.Z)(()=>{if(!De&&et>0){let Xe=new Date().getTime(),Oe=window.sessionStorage.getItem(Tt);Xe>=et+jt&&(!Oe||Oe!==le)&&(window.sessionStorage.setItem(Tt,le),Nt(!0))}},jt),(0,ae.useEffect)(()=>{se(zt)},[Ce,zt]),(0,ae.useEffect)(()=>{Ce&&ke&&Ce.focus()},[Ce,ke]),(0,ae.useEffect)(()=>{if(Be&&Ce){let Xe=function(Ze){let Ve=Ze.target;if(Cn.current){let Dt=Ve.scrollTop/Ve.scrollHeight;Cn.current.scrollTop=Cn.current.scrollHeight*Dt}};const Oe=Ce.getScrollerElement();return Oe.addEventListener("scroll",Xe),()=>{Oe.removeEventListener("scroll",Xe)}}},[Ce,Be]),(0,ae.useEffect)(()=>{if(Ce&&Rn){let Xe=function(Oe,Ze){Rn(Oe,Ze)};return Ce.on("beforeChange",Xe),()=>{Ce.off("beforeChange",Xe)}}},[Ce,Rn]),(0,ae.useEffect)(()=>{if(Ce&&_t){let Xe=function(){_t(Ce.getValue())};return Ce.on("blur",Xe),()=>{Ce.off("blur",Xe)}}},[Ce,_t]);function An(Xe,Oe){var Ze=Xe.getDoc(),Ve=Ze.getCursor(),Dt=Ze.getLine(Ve.line),Kt=Dt.charAt(Ve.ch-1),sn=Dt.lastIndexOf("@\u2581@",Ve.ch),rn=Dt.lastIndexOf("@\u2581\u2581@",Ve.ch),bt=sn>rn?sn:rn,Ft=sn>rn?3:4;if(Zt.indexOf(Kt)===-1)return null;if(console.log("change1:",Oe,Xe,Dt,Ve,bt,sn,rn,Kt),bt>=0&&Ve.ch-bt<5){var xn=bt+Ft;return Ze.replaceRange("",{line:Ve.line,ch:bt},{line:Ve.line,ch:xn}),{line:Ve.line,ch:xn}}return null}(0,ae.useEffect)(()=>{if(Ce){let Xe=function(Oe,Ze){const Ve=Oe.getValue();we(Ve),Ke(new Date().getTime()),Oe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(bn?Pe(Ve,ha(Ve)):Pe(Ve))};return Ce.on("change",Xe),()=>{Ce.off("change",Xe)}}},[Ce,Pe]),(0,ae.useEffect)(()=>{if(Ce)if(ce==null)Ce.setValue(""),we("");else{const Xe=window.scrollY||window.pageYOffset;ce!==Ce.getValue()&&(Ce.setValue(ce),we(ce),Ce.setCursor(Yn?1:Ce.lineCount(),0),window.scrollTo(0,Xe))}},[Ce,ce]);const oa=(0,ae.useCallback)(Xe=>{const Oe=Ce.getCursor(),Ze=Ce.getSelection();let Ve=Ze.split(`
|
|
`);switch(Xe){case"bold":return Ce.replaceSelection("**"+Ze+"**"),Ze===""&&Ce.setCursor(Oe.line,Oe.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+Ze+"*"),Ze===""&&Ce.setCursor(Oe.line,Oe.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+Ze+"`"),Ze===""&&Ce.setCursor(Oe.line,Oe.ch+1),Ce.focus();case"inline-latex":return ve("inline-latex"),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+Ze+"\n```"),Ce.setCursor(Oe.line+1,Ze.length+1),Ce.focus();case"line-break":return Ce.replaceSelection(`<br/>
|
|
`),Ce.focus();case"list-ul":return Ze===""?Ce.replaceSelection("- "+Ze):Ce.replaceSelection(Ve.map(Dt=>Dt===""?"":`- ${Dt}`).join(`
|
|
`)),Ce.focus();case"list-ol":return Ze===""?Ce.replaceSelection("1. "+Ze):Ce.replaceSelection(Ve.map((Dt,Kt)=>Dt===""?"":`${Kt+1}. ${Dt}`).join(`
|
|
`)),Ce.focus();case"add-null-ch":return Ze===""&&Ce.setCursor(Oe.line,Oe.ch),Ce.replaceSelection(Mt),Ce.focus();case"add-signal":return Ze===""&&Ce.setCursor(Oe.line,Oe.ch),Ce.replaceSelection(Vt),Ce.focus();case"add-multiple":return Ze===""&&Ce.setCursor(Oe.line,Oe.ch),Ce.replaceSelection(Zt),Ce.focus();case"inster-template-1":return Ze===""&&Ce.setCursor(Oe.line,Oe.ch),Ce.replaceSelection(nn),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return se(!Be),Ce.focus();case"trigger-full-screen":return Fe(!pe),Ce.focus();case ma:ve(ma);return;case ye:ve(ye);return;case Sa:ve(Sa);return;case qn:ve(qn);return;case"maths-latex":ve("maths-latex");return;case Vn:ve(Vn);return;case Me:ve(Me);return;default:throw new Error}},[Ce,Be,pe]),Mn=(0,ae.useCallback)((Xe,Oe)=>{var Ze,Ve,Dt,Kt,sn,rn;switch(ve(""),Le){case ma:const{title:fa,link:va}=Xe;return Ce.replaceSelection(`[${fa}](${va})`),Ce.focus();case ye:const{language:ba,content:Da}=Xe;return Ce.replaceSelection(["```"+ba,Da,"```"].join(`
|
|
`)),Ce.focus();case"maths-latex":for(var bt=atob(Xe),Ft=new Uint8Array(bt.length),xn=0;xn<bt.length;xn++)Ft[xn]=bt.charCodeAt(xn);var Dn=new Blob([Ft],{type:"image/png"});(0,Ee.I)(Dn,Hn=>{Hn.id?Ce.replaceSelection(``):(Hn==null?void 0:Hn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ce.replaceSelection("`$$"+Xe+"$$`");break;case Sa:case qn:case he:const{src:ua,alt:za}=Xe,Ln=Oe,Ta=(Dt=(Ve=(Ze=Ln==null?void 0:Ln.name)==null?void 0:Ze.split("."))==null?void 0:Ve.pop)==null?void 0:Dt.call(Ve);return((Kt=Ln==null?void 0:Ln.type)==null?void 0:Kt.indexOf("image"))>-1||!(Ln!=null&&Ln.type)?Ln.align||Ln.width?Ce.replaceSelection(`<p style="text-align:${Ln.align||"initial"}"><img width="${Ln.width?Ln.width+"%":"initial"}" src="${ua}" alt="${za||""}" /></p>`):Ce.replaceSelection(`<img width="100%" src="${ua}" alt="${za||""}" />`):((sn=Ln==null?void 0:Ln.type)==null?void 0:sn.indexOf("video"))>-1?Ce.replaceSelection(`<video width="100%" controls src="${ua}"></video>`):((rn=Ln==null?void 0:Ln.type)==null?void 0:rn.indexOf("pdf"))>-1?Ce.replaceSelection(`<a href="${ua}?type=${Ln.type}&disposition=inline" target="_blank">${Ln.name}</a>`):Jt.includes(Ta)?Ce.replaceSelection(`<a href="${ua}?type=office&disposition=inline" target="_blank">${Ln.name}</a>`):Ce.replaceSelection(`[${Ln.name}](${ua})`),Ce.focus();case Me:const{row:Oa,col:Na,align:ka}=Xe;let Ga=`
|
|
`;for(let Hn=0;Hn<Oa;Hn++){let Ba=[],Aa=[];for(let Ma=0;Ma<Na;Ma++)Hn===1&&Aa.push(it[ka]),Ba.push(" ");Hn===1&&(Ga+=`| ${Aa.join(" | ")} |
|
|
`),Ga+=`| ${Ba.join(Na===1?"":" | ")} |
|
|
`}return Ce.replaceSelection(Ga+`
|
|
`),Ce.focus();default:throw new Error}},[Ce,Le]),sa=(0,ae.useMemo)(()=>{switch(Le){case ma:return ae.createElement(On,{callback:Mn,onCancel:$n});case ye:return ae.createElement(wn.Z,{callback:Mn,onCancel:$n});case Sa:return ae.createElement(Ee.Z,{callback:Mn,onCancel:$n});case Vn:return ae.createElement(jn,{callback:Mn,onCancel:$n});case Me:return ae.createElement(un,{callback:Mn,onCancel:$n});case"maths-latex":return ae.createElement(wa,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(ca.Z,{showSaveButton:!0,callback:Mn});default:return null}},[Le]);function $n(){ve("")}(0,ae.useEffect)(()=>{if(kt.current){let Xe=function(sn){Dt=!0,Kt=sn.pageY},Oe=function(){Dt=!1},Ze=function(sn){if(Dt){let rn=sn.pageY-Kt;rn<0&&(rn=0),rn>300&&(rn=300);let bt=Te+rn+"px";mt(bt)}},Ve=kt.current,Dt=!1,Kt=0;return Ve.addEventListener("mousedown",Xe),document.addEventListener("mousemove",Ze),document.addEventListener("mouseup",Oe),()=>{Ve.removeEventListener("mousedown",Xe),document.removeEventListener("mousemove",Ze),document.removeEventListener("mouseup",Oe)}}},[Ce,kt]),(0,ae.useEffect)(()=>{mt(Te)},[Te]);const Zn=on(Se),vn=on(at),da={width:Zn,height:vn},Pa=(0,ae.useMemo)(()=>{if(et){let Xe=new Date(et),Oe=Xe.getHours(),Ze=Xe.getMinutes(),Ve=Xe.getSeconds();return Oe=Oe<10?"0"+Oe:Oe,Ze=Ze<10?"0"+Ze:Ze,Ve=Ve<10?"0"+Ve:Ve,`${Oe}:${Ze}:${Ve}`}return 0},[et]),ha=Xe=>{const Oe=[];if(bn){let Ze=-1;Xe=Xe.replace(/(@▁▁@|@▁@)/g,function(Ve,Dt,Kt){Oe.push({multiLine:Ve!==Vt})})}return Oe};function la(){window.sessionStorage.removeItem(Tt),Nt(!1),Ke(0)}function ga(){Nt(!1),Ke(0),Ce.setValue(window.sessionStorage.getItem(Tt))}(0,ae.useEffect)(()=>{gn[Le]&&Le!==qn&&Le!==Vn&&setTimeout(()=>{const Xe=document.getElementsByClassName("markdown-popup-form")[0],Oe=window.innerWidth/2-Xe.offsetWidth/2,Ze=window.innerHeight/2-Xe.offsetHeight/2;Ut(Oe),Xt(Ze)},0)},[Le]);const yt=Xe=>{Xe.preventDefault();const Oe=Xe.clientX-en,Ze=Xe.clientY-tn;document.body.onmousemove=Ve=>{let Dt=Ve.clientX-Oe,Kt=Ve.clientY-Ze;const sn=document.getElementsByClassName("markdown-popup-form")[0],rn=window.innerWidth-sn.offsetWidth,bt=window.innerHeight-sn.offsetHeight;Dt=Math.max(0,Math.min(Dt,rn)),Kt=Math.max(0,Math.min(Kt,bt)),Pn(Ve.clientX,Ve.clientY,Oe,Ze)&&(Ut(Dt),Xt(Kt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Pn=(Xe,Oe,Ze,Ve)=>{const Dt=document.body.clientHeight,Kt=document.body.clientWidth;return Xe<20&&Ze>Xe||Xe>Kt-20&&Ze<Xe||Oe<20&&Ve>Oe||Oe>Dt-20&&Ve<Oe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Sn},ae.createElement("div",{className:`markdown-editor-container ${Bn} ${Be?"on-preview":""} ${Ye?"mini":""} ${pe?"full-screen":""}`,style:da},ae.createElement(re,{insertTemp:ht,watch:Be,fullScreen:pe,showNullButton:xt,showNullProgramButton:bn,onActionCallback:oa,hidetoolBar:pn,extraUse:pa}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:nt,placeholder:ta})),Be?ae.createElement("div",{ref:Cn,className:"preview-container"},pt==="stex"&&ae.createElement(je,{value:le}),pt!=="stex"&&ae.createElement(Ue.Z,{disabledFill:cn,showProgramFill:bn,value:le})):null))),fn?ae.createElement("a",{ref:kt,className:"editor-resize"}):null,Le===qn&&ae.createElement(St,{callback:Mn,onCancel:$n}),Le===Vn&&ae.createElement(jn,{callback:Mn,onCancel:$n}),ae.createElement(ue.Z,null,gn[Le]&&Le!==qn&&Le!==Vn?ae.createElement(Ne.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:en,top:tn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:yt},gn[Le]),open:!0,onCancel:$n,footer:null,destroyOnClose:!0,width:Le===Vn?"1200px":null,height:Le===Vn?"80vh":null,className:"markdown-popup-form"},sa):null))}},70859:function(Ge,dt,de){"use strict";de.d(dt,{Z:function(){return ge},I:function(){return ue}});var ae=de(91773),Ie=de(2453),Je=de(28802),ot=de(78957),be=de(55514),_e=de(98813),fe=de(85804),tt=de(15476),Ae=de(67294),We=de(52262),Ue=de(67294),je=Object.defineProperty,Qe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,xe,ze)=>xe in me?je(me,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):me[xe]=ze,E=(me,xe)=>{for(var ze in xe||(xe={}))y.call(xe,ze)&&b(me,ze,xe[ze]);if(a)for(var ze of a(xe))x.call(xe,ze)&&b(me,ze,xe[ze]);return me},z=(me,xe)=>Qe(me,ne(xe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:me,onCancel:xe})=>{const[ze]=ee();let gt=(0,Ae.useRef)();function ut(rt){gt.current.width=ze.getFieldValue("width"),gt.current.align=ze.getFieldValue("align"),me(rt,gt.current)}function Bt(rt,lt){if(rt.status===-1){Ie.ZP.error(rt.message);return}ze.setFieldsValue({src:`/api/attachments/${rt.id}`,type:lt.type})}function ct(rt){let lt=rt.target.files[0];gt.current=lt,ue(lt,Bt)}return Ue.createElement(ae.default,z(E({form:ze},oe),{className:"upload-image-panel",onFinish:ut,style:{width:470,overflow:"hidden"}}),Ue.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ue.createElement("div",{className:"flex-container"},Ue.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ue.createElement(Je.default,{style:te})),Ue.createElement(re,{onFileChange:ct}))),Ue.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(Je.default,{style:{width:264}})),Ue.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(ot.Z,null,Ue.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ue.createElement(be.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(_e.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ue.createElement("aside",null,Ue.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(fe.ZP,{type:"default",onClick:xe},"\u53D6\u6D88"))))};function re({onFileChange:me}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:me}))}function ue(me,xe){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,We.bg)())throw Ie.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ze=new FormData;ze.append("editormd-image-file",me),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var gt=new window.XMLHttpRequest;gt.withCredentials=!0,gt.addEventListener("load",function(ut){xe(JSON.parse(ut.target.responseText),me)},!1),gt.addEventListener("error",function(ut){console.error(ut)},!1),gt.open("POST",`${tt.KI}/api/attachments.json`),gt.send(ze)}},76621:function(Ge,dt,de){"use strict";de.d(dt,{Z:function(){return Je}});var ae=de(67294),Ie=de(73935);class Je extends ae.Component{constructor(be){super(be);const _e=window.document;this.node=_e.createElement("div"),_e.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Ie.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ge,dt,de){"use strict";de.d(dt,{Z:function(){return Ie}});var ae=de(67294);function Ie(Je,ot){const be=(0,ae.useRef)();(0,ae.useEffect)(()=>{be.current=Je}),(0,ae.useEffect)(()=>{function _e(){be.current()}if(ot!==null){let fe=setInterval(_e,ot);return()=>clearInterval(fe)}},[ot])}},87494:function(Ge,dt,de){"use strict";de.r(dt),de.d(dt,{default:function(){return re}});var ae=de(67294),Ie=de(35567),Je=de(2453),ot=de(28802),be=de(85804),_e=de(33170),fe=(ue,me,xe)=>new Promise((ze,gt)=>{var ut=rt=>{try{ct(xe.next(rt))}catch(lt){gt(lt)}},Bt=rt=>{try{ct(xe.throw(rt))}catch(lt){gt(lt)}},ct=rt=>rt.done?ze(rt.value):Promise.resolve(rt.value).then(ut,Bt);ct((xe=xe.apply(ue,me)).next())});function tt({setIscreate:ue,init:me,UpdateItem:xe}){const[ze,gt]=(0,ae.useState)(""),[ut,Bt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{xe&&(gt(xe&&xe.name),Bt(xe&&xe.description))},[xe]);function ct(){return fe(this,null,function*(){if(!ze){Je.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ut){Je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(xe){rt();return}(yield(0,_e.ZP)("/api/hpc_courses.json",{method:"post",body:{name:ze,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Je.ZP.info("\u521B\u5EFA\u6210\u529F"),ue(!1),me("add"))})}function rt(){return fe(this,null,function*(){(yield(0,_e.ZP)(`/api/hpc_courses/${xe.id}.json`,{method:"put",body:{name:ze,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Je.ZP.info("\u7F16\u8F91\u6210\u529F"),ue(!1),me(""))})}return ae.createElement("div",null,ae.createElement(ot.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:ze,maxLength:60,addonAfter:String(ze.length)+"/60",onChange:lt=>gt(lt.target.value)}),ae.createElement(Ie.Z,{id:"courseContentMD",defaultValue:ut,onChange:lt=>Bt(lt)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(be.ZP,{type:"primary",onClick:()=>ct(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>ue(!1)},"\u53D6\u6D88")))}var Ae=tt,We=de(85725),Ue=(ue,me,xe)=>new Promise((ze,gt)=>{var ut=rt=>{try{ct(xe.next(rt))}catch(lt){gt(lt)}},Bt=rt=>{try{ct(xe.throw(rt))}catch(lt){gt(lt)}},ct=rt=>rt.done?ze(rt.value):Promise.resolve(rt.value).then(ut,Bt);ct((xe=xe.apply(ue,me)).next())});function je({CourseItem:ue,userId:me,init:xe,ItemUpdate:ze,setSee:gt,UserInfo:ut}){function Bt(){return Ue(this,null,function*(){(yield(0,_e.ZP)(`/api/hpc_courses/${ue.id}.json`,{method:"delete"}))&&(Je.ZP.info("\u5220\u9664\u6210\u529F"),xe("delete"),gt(!1))})}function ct(){ze(ue)}return ae.createElement("div",null,me===299635||me===301458||ut!=null&&ut.admin||ut!=null&&ut.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(be.ZP,{onClick:()=>ct()},"\u7F16\u8F91"),ae.createElement(be.ZP,{onClick:()=>Bt(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,ae.createElement("h1",null,ue==null?void 0:ue.name),ae.createElement(We.Z,{value:ue==null?void 0:ue.description}))}var Qe=je,ne=de(92421),a=de(11320),y=de(35973),x=Object.defineProperty,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ue,me,xe)=>me in ue?x(ue,me,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ue[me]=xe,te=(ue,me)=>{for(var xe in me||(me={}))E.call(me,xe)&&ee(ue,xe,me[xe]);if(b)for(var xe of b(me))z.call(me,xe)&&ee(ue,xe,me[xe]);return ue},oe=(ue,me,xe)=>new Promise((ze,gt)=>{var ut=rt=>{try{ct(xe.next(rt))}catch(lt){gt(lt)}},Bt=rt=>{try{ct(xe.throw(rt))}catch(lt){gt(lt)}},ct=rt=>rt.done?ze(rt.value):Promise.resolve(rt.value).then(ut,Bt);ct((xe=xe.apply(ue,me)).next())});function ge({user:ue,dispatch:me}){var xe,ze,gt,ut,Bt,ct,rt,lt,En;const[yn,Wn]=(0,ae.useState)(1),[Tn,On]=(0,ae.useState)(100),[wn,Ee]=(0,ae.useState)([]),[Ne,Re]=(0,ae.useState)(!1),[ft,$e]=(0,ae.useState)(!1),[St,ie]=(0,ae.useState)(""),[qe,wt]=(0,ae.useState)(""),[ln,It]=(0,ae.useState)("");let{itemname:zn}=(0,y.useParams)();const[Gn,Ot]=(0,ae.useState)("");(0,ae.useEffect)(()=>{me({type:"globalSetting/headerToggle",payload:!1}),yn&&In("")},[yn]);function In(qt){return oe(this,null,function*(){var mn,un;const Ct=yield(0,_e.ZP)("/api/hpc_courses.json",{method:"get",params:{page:yn,per_page:Tn,container_type:window.location.pathname.split("/")[1]}});if(Ct){let Xn=Ct.data.hpc_courses.length;if(Ee(Ct.data.hpc_courses),It(Ct.data.file_url),wt(""),!Xn)return;if(Gn)if(qt==="delete"){if(Xn===0){$e(!1);return}ie(Ct.data.hpc_courses[0]),$e(!0),Ot(Ct.data.hpc_courses[0].id)}else qt==="add"?(ie(Ct.data.hpc_courses[Xn-1]),$e(!0),Ot(Ct.data.hpc_courses[Xn-1].id)):(ie(Ct.data.hpc_courses.filter(ia=>ia.id===Gn)[0]),$e(!0),Ot(Gn));else if(zn){let ia=0;(un=(mn=Ct==null?void 0:Ct.data)==null?void 0:mn.hpc_courses)==null||un.map((Kn,wa)=>{var ca;(zn==null?void 0:zn.toLocaleLowerCase())===((ca=Kn==null?void 0:Kn.name)==null?void 0:ca.toLocaleLowerCase())&&(ia=wa)}),ie(Ct.data.hpc_courses[ia]),$e(!0),Ot(Ct.data.hpc_courses[ia].id),(zn==null?void 0:zn.toLocaleLowerCase())==="resources"&&(ie(Ct.data.hpc_courses.filter(Kn=>Kn.id===15)[0]),$e(!0),Ot(15))}else ie(Ct.data.hpc_courses[0]),$e(!0),Ot(Ct.data.hpc_courses[0].id)}})}function ra(qt){Re(!1),$e(!0),ie(qt),Ot(qt.id)}function jn(qt){wt(qt),Re(!0),$e(!1)}function Qn(){wt(""),Re(!0),$e(!1)}const Un={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(qt){const{status:mn}=qt.file;mn==="done"?(Je.ZP.success(`${qt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),In("")):mn==="error"&&Je.ZP.error(`${qt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:qt=>{const mn=qt.size/1024/1024<150;return mn||Je.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),mn}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${a.Z.IMG_SERVER+`/${ln}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${ln}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},wn&&wn.map((qt,mn)=>ae.createElement("p",{key:mn,onClick:()=>ra(qt),className:Gn===qt.id?"menuitemselect":"menuitem task-hide"},qt.name)),((xe=ue==null?void 0:ue.userInfo)==null?void 0:xe.user_id)===299635||((ze=ue==null?void 0:ue.userInfo)==null?void 0:ze.user_id)===301458||(gt=ue==null?void 0:ue.userInfo)!=null&>.admin||(ut=ue==null?void 0:ue.userInfo)!=null&&ut.business?ae.createElement("p",{onClick:()=>Qn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},Ne?ae.createElement(Ae,{UpdateItem:qe,setIscreate:Re,init:In}):null,ft?ae.createElement(Qe,{UserInfo:ue==null?void 0:ue.userInfo,setSee:$e,userId:(Bt=ue==null?void 0:ue.userInfo)==null?void 0:Bt.user_id,ItemUpdate:jn,CourseItem:St,init:In}):null)),((ct=ue==null?void 0:ue.userInfo)==null?void 0:ct.user_id)===299635||((rt=ue==null?void 0:ue.userInfo)==null?void 0:rt.user_id)===301458||(lt=ue==null?void 0:ue.userInfo)!=null&<.admin||(En=ue==null?void 0:ue.userInfo)!=null&&En.business?ae.createElement(ne.default,te({},Un),ae.createElement(be.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var re=(0,y.connect)(({user:ue})=>({user:ue}))(ge)},38703:function(Ge,dt,de){"use strict";de.d(dt,{Z:function(){return qn}});var ae=de(67294),Ie=de(24327),Je=de(23526),ot=de(60068),be=de(30186),_e=de(85846),fe=de(13144),tt=de.n(fe),Ae=de(10366),We=de(53124),Ue=de(87462),je=de(1413),Qe=de(45987),ne=de(94184),a=de.n(ne),y={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},x=function(){var ye=(0,ae.useRef)([]),Me=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var He=Date.now(),it=!1;ye.current.forEach(function(vt){if(vt){it=!0;var st=vt.style;st.transitionDuration=".3s, .3s, .3s, .06s",Me.current&&He-Me.current<100&&(st.transitionDuration="0s, 0s")}}),it&&(Me.current=Date.now())}),ye.current},b=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],E=function(ye){var Me=(0,je.Z)((0,je.Z)({},y),ye),He=Me.className,it=Me.percent,vt=Me.prefixCls,st=Me.strokeColor,Lt=Me.strokeLinecap,Pt=Me.strokeWidth,jt=Me.style,Mt=Me.trailColor,Zt=Me.trailWidth,Vt=Me.transition,nn=(0,Qe.Z)(Me,b);delete nn.gapPosition;var Jt=Array.isArray(it)?it:[it],on=Array.isArray(st)?st:[st],Fn=x(),Rt=Pt/2,an=100-Pt/2,gn="M ".concat(Lt==="round"?Rt:0,",").concat(Rt,`
|
|
L `).concat(Lt==="round"?an:100,",").concat(Rt),Nn="0 0 100 ".concat(Pt),ce=0;return ae.createElement("svg",(0,Ue.Z)({className:a()("".concat(vt,"-line"),He),viewBox:Nn,preserveAspectRatio:"none",style:jt},nn),ae.createElement("path",{className:"".concat(vt,"-line-trail"),d:gn,strokeLinecap:Lt,stroke:Mt,strokeWidth:Zt||Pt,fillOpacity:"0"}),Jt.map(function(Pe,Se){var Te=1;switch(Lt){case"round":Te=1-Pt/100;break;case"square":Te=1-Pt/2/100;break;default:Te=1;break}var Ye={strokeDasharray:"".concat(Pe*Te,"px, 100px"),strokeDashoffset:"-".concat(ce,"px"),transition:Vt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ke=on[Se]||on[on.length-1];return ce+=Pe,ae.createElement("path",{key:Se,className:"".concat(vt,"-line-path"),d:gn,strokeLinecap:Lt,stroke:ke,strokeWidth:Pt,fillOpacity:"0",ref:function(ht){Fn[Se]=ht},style:Ye})}))},z=E,ee=de(71002),te=de(97685),oe=de(98924),ge=0,re=(0,oe.Z)();function ue(){var he;return re?(he=ge,ge+=1):he="TEST_OR_SSR",he}var me=function(he){var ye=ae.useState(),Me=(0,te.Z)(ye,2),He=Me[0],it=Me[1];return ae.useEffect(function(){it("rc_progress_".concat(ue()))},[]),he||He},xe=function(ye){var Me=ye.bg,He=ye.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Me}},He)};function ze(he,ye){return Object.keys(he).map(function(Me){var He=parseFloat(Me),it="".concat(Math.floor(He*ye),"%");return"".concat(he[Me]," ").concat(it)})}var gt=ae.forwardRef(function(he,ye){var Me=he.prefixCls,He=he.color,it=he.gradientId,vt=he.radius,st=he.style,Lt=he.ptg,Pt=he.strokeLinecap,jt=he.strokeWidth,Mt=he.size,Zt=he.gapDegree,Vt=He&&(0,ee.Z)(He)==="object",nn=Vt?"#FFF":void 0,Jt=Mt/2,on=ae.createElement("circle",{className:"".concat(Me,"-circle-path"),r:vt,cx:Jt,cy:Jt,stroke:nn,strokeLinecap:Pt,strokeWidth:jt,opacity:Lt===0?0:1,style:st,ref:ye});if(!Vt)return on;var Fn="".concat(it,"-conic"),Rt=Zt?"".concat(180+Zt/2,"deg"):"0deg",an=ze(He,(360-Zt)/360),gn=ze(He,1),Nn="conic-gradient(from ".concat(Rt,", ").concat(an.join(", "),")"),ce="linear-gradient(to ".concat(Zt?"bottom":"top",", ").concat(gn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Fn},on),ae.createElement("foreignObject",{x:0,y:0,width:Mt,height:Mt,mask:"url(#".concat(Fn,")")},ae.createElement(xe,{bg:ce},ae.createElement(xe,{bg:Nn}))))}),ut=gt,Bt=100,ct=function(ye,Me,He,it,vt,st,Lt,Pt,jt,Mt){var Zt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Vt=He/100*360*((360-st)/360),nn=st===0?0:{bottom:0,top:180,left:90,right:-90}[Lt],Jt=(100-it)/100*Me;jt==="round"&&it!==100&&(Jt+=Mt/2,Jt>=Me&&(Jt=Me-.01));var on=Bt/2;return{stroke:typeof Pt=="string"?Pt:void 0,strokeDasharray:"".concat(Me,"px ").concat(ye),strokeDashoffset:Jt+Zt,transform:"rotate(".concat(vt+Vt+nn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function lt(he){var ye=he!=null?he:[];return Array.isArray(ye)?ye:[ye]}var En=function(ye){var Me=(0,je.Z)((0,je.Z)({},y),ye),He=Me.id,it=Me.prefixCls,vt=Me.steps,st=Me.strokeWidth,Lt=Me.trailWidth,Pt=Me.gapDegree,jt=Pt===void 0?0:Pt,Mt=Me.gapPosition,Zt=Me.trailColor,Vt=Me.strokeLinecap,nn=Me.style,Jt=Me.className,on=Me.strokeColor,Fn=Me.percent,Rt=(0,Qe.Z)(Me,rt),an=Bt/2,gn=me(He),Nn="".concat(gn,"-gradient"),ce=an-st/2,Pe=Math.PI*2*ce,Se=jt>0?90+jt/2:-90,Te=Pe*((360-jt)/360),Ye=(0,ee.Z)(vt)==="object"?vt:{count:vt,gap:2},ke=Ye.count,zt=Ye.gap,ht=lt(Fn),pt=lt(on),Tt=pt.find(function(_t){return _t&&(0,ee.Z)(_t)==="object"}),fn=Tt&&(0,ee.Z)(Tt)==="object",De=fn?"butt":Vt,xt=ct(Pe,Te,0,100,Se,jt,Mt,Zt,De,st),bn=x(),pn=function(){var Rn=0;return ht.map(function(kn,Bn){var ea=pt[Bn]||pt[pt.length-1],Yn=ct(Pe,Te,Rn,kn,Se,jt,Mt,ea,De,st);return Rn+=kn,ae.createElement(ut,{key:Bn,color:ea,ptg:kn,radius:ce,prefixCls:it,gradientId:Nn,style:Yn,strokeLinecap:De,strokeWidth:st,gapDegree:jt,ref:function(ta){bn[Bn]=ta},size:Bt})}).reverse()},Ht=function(){var Rn=Math.round(ke*(ht[0]/100)),kn=100/ke,Bn=0;return new Array(ke).fill(null).map(function(ea,Yn){var cn=Yn<=Rn-1?pt[0]:Zt,ta=cn&&(0,ee.Z)(cn)==="object"?"url(#".concat(Nn,")"):void 0,na=ct(Pe,Te,Bn,kn,Se,jt,Mt,cn,"butt",st,zt);return Bn+=(Te-na.strokeDashoffset+zt)*100/Te,ae.createElement("circle",{key:Yn,className:"".concat(it,"-circle-path"),r:ce,cx:an,cy:an,stroke:ta,strokeWidth:st,opacity:1,style:na,ref:function(Ce){bn[Yn]=Ce}})})};return ae.createElement("svg",(0,Ue.Z)({className:a()("".concat(it,"-circle"),Jt),viewBox:"0 0 ".concat(Bt," ").concat(Bt),style:nn,id:He,role:"presentation"},Rt),!ke&&ae.createElement("circle",{className:"".concat(it,"-circle-trail"),r:ce,cx:an,cy:an,stroke:Zt,strokeLinecap:De,strokeWidth:Lt||st,style:xt}),ke?Ht():pn())},yn=En,Wn={Line:z,Circle:yn},Tn=de(83062),On=de(65409);function wn(he){return!he||he<0?0:he>100?100:he}function Ee(he){let{success:ye,successPercent:Me}=he,He=Me;return ye&&"progress"in ye&&(He=ye.progress),ye&&"percent"in ye&&(He=ye.percent),He}const Ne=he=>{let{percent:ye,success:Me,successPercent:He}=he;const it=wn(Ee({success:Me,successPercent:He}));return[it,wn(wn(ye)-it)]},Re=he=>{let{success:ye={},strokeColor:Me}=he;const{strokeColor:He}=ye;return[He||On.presetPrimaryColors.green,Me||null]},ft=(he,ye,Me)=>{var He,it,vt,st;let Lt=-1,Pt=-1;if(ye==="step"){const jt=Me.steps,Mt=Me.strokeWidth;typeof he=="string"||typeof he=="undefined"?(Lt=he==="small"?2:14,Pt=Mt!=null?Mt:8):typeof he=="number"?[Lt,Pt]=[he,he]:[Lt=14,Pt=8]=Array.isArray(he)?he:[he.width,he.height],Lt*=jt}else if(ye==="line"){const jt=Me==null?void 0:Me.strokeWidth;typeof he=="string"||typeof he=="undefined"?Pt=jt||(he==="small"?6:8):typeof he=="number"?[Lt,Pt]=[he,he]:[Lt=-1,Pt=8]=Array.isArray(he)?he:[he.width,he.height]}else(ye==="circle"||ye==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[Lt,Pt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[Lt,Pt]=[he,he]:Array.isArray(he)&&(Lt=(it=(He=he[0])!==null&&He!==void 0?He:he[1])!==null&&it!==void 0?it:120,Pt=(st=(vt=he[0])!==null&&vt!==void 0?vt:he[1])!==null&&st!==void 0?st:120));return[Lt,Pt]},$e=3,St=he=>$e/he*100;var qe=he=>{const{prefixCls:ye,trailColor:Me=null,strokeLinecap:He="round",gapPosition:it,gapDegree:vt,width:st=120,type:Lt,children:Pt,success:jt,size:Mt=st,steps:Zt}=he,[Vt,nn]=ft(Mt,"circle");let{strokeWidth:Jt}=he;Jt===void 0&&(Jt=Math.max(St(Vt),6));const on={width:Vt,height:nn,fontSize:Vt*.15+6},Fn=ae.useMemo(()=>{if(vt||vt===0)return vt;if(Lt==="dashboard")return 75},[vt,Lt]),Rt=Ne(he),an=it||Lt==="dashboard"&&"bottom"||void 0,gn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",Nn=Re({success:jt,strokeColor:he.strokeColor}),ce=tt()(`${ye}-inner`,{[`${ye}-circle-gradient`]:gn}),Pe=ae.createElement(yn,{steps:Zt,percent:Zt?Rt[1]:Rt,strokeWidth:Jt,trailWidth:Jt,strokeColor:Zt?Nn[1]:Nn,strokeLinecap:He,trailColor:Me,prefixCls:ye,gapDegree:Fn,gapPosition:an}),Se=Vt<=20,Te=ae.createElement("div",{className:ce,style:on},Pe,!Se&&Pt);return Se?ae.createElement(Tn.Z,{title:Pt},Te):Te},wt=de(16777),ln=de(14747),It=de(83559),zn=de(43259);const Gn="--progress-line-stroke-color",Ot="--progress-percent",In=he=>{const ye=he?"100%":"-100%";return new wt.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ye}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ye}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ra=he=>{const{componentCls:ye,iconCls:Me}=he;return{[ye]:Object.assign(Object.assign({},(0,ln.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize},[`${ye}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ye}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${ye}-inner:not(${ye}-circle-gradient)`]:{[`${ye}-circle-path`]:{stroke:he.defaultColor}},[`${ye}-success-bg, ${ye}-bg`]:{position:"relative",background:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${ye}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ye}-text`]:{width:"max-content",marginInlineStart:0,marginTop:he.marginXXS}},[`${ye}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Gn})`]},height:"100%",width:`calc(1 / var(${Ot}) * 100%)`,display:"block"},[`&${ye}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ye}-text-inner`]:{color:he.colorWhite,[`&${ye}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ye}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${ye}-text`]:{display:"inline-block",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Me]:{fontSize:he.fontSize},[`&${ye}-text-outer`]:{width:"max-content"},[`&${ye}-text-outer${ye}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:he.marginXS}},[`${ye}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,wt.unit)(he.paddingXXS)}`,[`&${ye}-text-start`]:{justifyContent:"start"},[`&${ye}-text-end`]:{justifyContent:"end"}},[`&${ye}-status-active`]:{[`${ye}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:In(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ye}-rtl${ye}-status-active`]:{[`${ye}-bg::before`]:{animationName:In(!0)}},[`&${ye}-status-exception`]:{[`${ye}-bg`]:{backgroundColor:he.colorError},[`${ye}-text`]:{color:he.colorError}},[`&${ye}-status-exception ${ye}-inner:not(${ye}-circle-gradient)`]:{[`${ye}-circle-path`]:{stroke:he.colorError}},[`&${ye}-status-success`]:{[`${ye}-bg`]:{backgroundColor:he.colorSuccess},[`${ye}-text`]:{color:he.colorSuccess}},[`&${ye}-status-success ${ye}-inner:not(${ye}-circle-gradient)`]:{[`${ye}-circle-path`]:{stroke:he.colorSuccess}}})}},jn=he=>{const{componentCls:ye,iconCls:Me}=he;return{[ye]:{[`${ye}-circle-trail`]:{stroke:he.remainingColor},[`&${ye}-circle ${ye}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ye}-circle ${ye}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Me]:{fontSize:he.circleIconFontSize}},[`${ye}-circle&-status-exception`]:{[`${ye}-text`]:{color:he.colorError}},[`${ye}-circle&-status-success`]:{[`${ye}-text`]:{color:he.colorSuccess}}},[`${ye}-inline-circle`]:{lineHeight:1,[`${ye}-inner`]:{verticalAlign:"bottom"}}}},Qn=he=>{const{componentCls:ye}=he;return{[ye]:{[`${ye}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},Un=he=>{const{componentCls:ye,iconCls:Me}=he;return{[ye]:{[`${ye}-small&-line, ${ye}-small&-line ${ye}-text ${Me}`]:{fontSize:he.fontSizeSM}}}},qt=he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${he.fontSize/he.fontSizeSM}em`});var mn=(0,It.I$)("Progress",he=>{const ye=he.calc(he.marginXXS).div(2).equal(),Me=(0,zn.mergeToken)(he,{progressStepMarginInlineEnd:ye,progressStepMinWidth:ye,progressActiveMotionDuration:"2.4s"});return[ra(Me),jn(Me),Qn(Me),Un(Me)]},qt),un=function(he,ye){var Me={};for(var He in he)Object.prototype.hasOwnProperty.call(he,He)&&ye.indexOf(He)<0&&(Me[He]=he[He]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,He=Object.getOwnPropertySymbols(he);it<He.length;it++)ye.indexOf(He[it])<0&&Object.prototype.propertyIsEnumerable.call(he,He[it])&&(Me[He[it]]=he[He[it]]);return Me};const Ct=he=>{let ye=[];return Object.keys(he).forEach(Me=>{const He=parseFloat(Me.replace(/%/g,""));Number.isNaN(He)||ye.push({key:He,value:he[Me]})}),ye=ye.sort((Me,He)=>Me.key-He.key),ye.map(Me=>{let{key:He,value:it}=Me;return`${it} ${He}%`}).join(", ")},Xn=(he,ye)=>{const{from:Me=On.presetPrimaryColors.blue,to:He=On.presetPrimaryColors.blue,direction:it=ye==="rtl"?"to left":"to right"}=he,vt=un(he,["from","to","direction"]);if(Object.keys(vt).length!==0){const Lt=Ct(vt),Pt=`linear-gradient(${it}, ${Lt})`;return{background:Pt,[Gn]:Pt}}const st=`linear-gradient(${it}, ${Me}, ${He})`;return{background:st,[Gn]:st}};var Kn=he=>{const{prefixCls:ye,direction:Me,percent:He,size:it,strokeWidth:vt,strokeColor:st,strokeLinecap:Lt="round",children:Pt,trailColor:jt=null,percentPosition:Mt,success:Zt}=he,{align:Vt,type:nn}=Mt,Jt=st&&typeof st!="string"?Xn(st,Me):{[Gn]:st,background:st},on=Lt==="square"||Lt==="butt"?0:void 0,Fn=it!=null?it:[-1,vt||(it==="small"?6:8)],[Rt,an]=ft(Fn,"line",{strokeWidth:vt}),gn={backgroundColor:jt||void 0,borderRadius:on},Nn=Object.assign(Object.assign({width:`${wn(He)}%`,height:an,borderRadius:on},Jt),{[Ot]:wn(He)/100}),ce=Ee(he),Pe={width:`${wn(ce)}%`,height:an,borderRadius:on,backgroundColor:Zt==null?void 0:Zt.strokeColor},Se={width:Rt<0?"100%":Rt},Te=ae.createElement("div",{className:`${ye}-inner`,style:gn},ae.createElement("div",{className:tt()(`${ye}-bg`,`${ye}-bg-${nn}`),style:Nn},nn==="inner"&&Pt),ce!==void 0&&ae.createElement("div",{className:`${ye}-success-bg`,style:Pe})),Ye=nn==="outer"&&Vt==="start",ke=nn==="outer"&&Vt==="end";return nn==="outer"&&Vt==="center"?ae.createElement("div",{className:`${ye}-layout-bottom`},Te,Pt):ae.createElement("div",{className:`${ye}-outer`,style:Se},Ye&&Pt,Te,ke&&Pt)},ca=he=>{const{size:ye,steps:Me,rounding:He=Math.round,percent:it=0,strokeWidth:vt=8,strokeColor:st,trailColor:Lt=null,prefixCls:Pt,children:jt}=he,Mt=He(Me*(it/100)),Zt=ye==="small"?2:14,Vt=ye!=null?ye:[Zt,vt],[nn,Jt]=ft(Vt,"step",{steps:Me,strokeWidth:vt}),on=nn/Me,Fn=Array.from({length:Me});for(let Rt=0;Rt<Me;Rt++){const an=Array.isArray(st)?st[Rt]:st;Fn[Rt]=ae.createElement("div",{key:Rt,className:tt()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:Rt<=Mt-1}),style:{backgroundColor:Rt<=Mt-1?an:Lt,width:on,height:Jt}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},Fn,jt)},Ea=function(he,ye){var Me={};for(var He in he)Object.prototype.hasOwnProperty.call(he,He)&&ye.indexOf(He)<0&&(Me[He]=he[He]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,He=Object.getOwnPropertySymbols(he);it<He.length;it++)ye.indexOf(He[it])<0&&Object.prototype.propertyIsEnumerable.call(he,He[it])&&(Me[He[it]]=he[He[it]]);return Me};const Fa=null,ma=["normal","exception","active","success"];var Vn=ae.forwardRef((he,ye)=>{const{prefixCls:Me,className:He,rootClassName:it,steps:vt,strokeColor:st,percent:Lt=0,size:Pt="default",showInfo:jt=!0,type:Mt="line",status:Zt,format:Vt,style:nn,percentPosition:Jt={}}=he,on=Ea(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Fn="end",type:Rt="outer"}=Jt,an=Array.isArray(st)?st[0]:st,gn=typeof st=="string"||Array.isArray(st)?st:void 0,Nn=ae.useMemo(()=>{if(an){const pn=typeof an=="string"?an:Object.values(an)[0];return new Ie.FastColor(pn).isLight()}return!1},[st]),ce=ae.useMemo(()=>{var pn,Ht;const _t=Ee(he);return parseInt(_t!==void 0?(pn=_t!=null?_t:0)===null||pn===void 0?void 0:pn.toString():(Ht=Lt!=null?Lt:0)===null||Ht===void 0?void 0:Ht.toString(),10)},[Lt,he.success,he.successPercent]),Pe=ae.useMemo(()=>!ma.includes(Zt)&&ce>=100?"success":Zt||"normal",[Zt,ce]),{getPrefixCls:Se,direction:Te,progress:Ye}=ae.useContext(We.E_),ke=Se("progress",Me),[zt,ht,pt]=mn(ke),Tt=Mt==="line",fn=Tt&&!vt,De=ae.useMemo(()=>{if(!jt)return null;const pn=Ee(he);let Ht;const _t=Vt||(kn=>`${kn}%`),Rn=Tt&&Nn&&Rt==="inner";return Rt==="inner"||Vt||Pe!=="exception"&&Pe!=="success"?Ht=_t(wn(Lt),wn(pn)):Pe==="exception"?Ht=Tt?ae.createElement(be.Z,null):ae.createElement(_e.Z,null):Pe==="success"&&(Ht=Tt?ae.createElement(Je.Z,null):ae.createElement(ot.Z,null)),ae.createElement("span",{className:tt()(`${ke}-text`,{[`${ke}-text-bright`]:Rn,[`${ke}-text-${Fn}`]:fn,[`${ke}-text-${Rt}`]:fn}),title:typeof Ht=="string"?Ht:void 0},Ht)},[jt,Lt,ce,Pe,Mt,ke,Vt]);let xt;Mt==="line"?xt=vt?ae.createElement(ca,Object.assign({},he,{strokeColor:gn,prefixCls:ke,steps:typeof vt=="object"?vt.count:vt}),De):ae.createElement(Kn,Object.assign({},he,{strokeColor:an,prefixCls:ke,direction:Te,percentPosition:{align:Fn,type:Rt}}),De):(Mt==="circle"||Mt==="dashboard")&&(xt=ae.createElement(qe,Object.assign({},he,{strokeColor:an,prefixCls:ke,progressStatus:Pe}),De));const bn=tt()(ke,`${ke}-status-${Pe}`,{[`${ke}-${Mt==="dashboard"&&"circle"||Mt}`]:Mt!=="line",[`${ke}-inline-circle`]:Mt==="circle"&&ft(Pt,"circle")[0]<=20,[`${ke}-line`]:fn,[`${ke}-line-align-${Fn}`]:fn,[`${ke}-line-position-${Rt}`]:fn,[`${ke}-steps`]:vt,[`${ke}-show-info`]:jt,[`${ke}-${Pt}`]:typeof Pt=="string",[`${ke}-rtl`]:Te==="rtl"},Ye==null?void 0:Ye.className,He,it,ht,pt);return zt(ae.createElement("div",Object.assign({ref:ye,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),nn),className:bn,role:"progressbar","aria-valuenow":ce,"aria-valuemin":0,"aria-valuemax":100},(0,Ae.Z)(on,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),xt))}),qn=Vn},92421:function(Ge,dt,de){"use strict";de.d(dt,{default:function(){return Ca}});var ae=de(67294),Ie=de(96641),Je=de(73935),ot=de(13144),be=de.n(ot),_e=de(87462),fe=de(15671),tt=de(43144),Ae=de(97326),We=de(60136),Ue=de(29388),je=de(4942),Qe=de(1413),ne=de(45987),a=de(71002),y=de(74165),x=de(15861),b=de(74902),E=de(94184),z=de.n(E),ee=de(64217),te=de(80334),oe=function(le,we){if(le&&we){var Be=Array.isArray(we)?we:we.split(","),se=le.name||"",pe=le.type||"",Fe=pe.replace(/\/.*$/,"");return Be.some(function(Le){var ve=Le.trim();if(/^\*(\/\*)?$/.test(Le))return!0;if(ve.charAt(0)==="."){var et=se.toLowerCase(),Ke=ve.toLowerCase(),at=[Ke];return(Ke===".jpg"||Ke===".jpeg")&&(at=[".jpg",".jpeg"]),at.some(function(mt){return et.endsWith(mt)})}return/\/\*$/.test(ve)?Fe===ve.replace(/\/.*$/,""):pe===ve?!0:/^\w+$/.test(ve)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ve,"'.Skip for check.")),!0):!1})}return!0};function ge(le,we){var Be="cannot ".concat(le.method," ").concat(le.action," ").concat(we.status,"'"),se=new Error(Be);return se.status=we.status,se.method=le.method,se.url=le.action,se}function re(le){var we=le.responseText||le.response;if(!we)return we;try{return JSON.parse(we)}catch(Be){return we}}function ue(le){var we=new XMLHttpRequest;le.onProgress&&we.upload&&(we.upload.onprogress=function(Fe){Fe.total>0&&(Fe.percent=Fe.loaded/Fe.total*100),le.onProgress(Fe)});var Be=new FormData;le.data&&Object.keys(le.data).forEach(function(pe){var Fe=le.data[pe];if(Array.isArray(Fe)){Fe.forEach(function(Le){Be.append("".concat(pe,"[]"),Le)});return}Be.append(pe,Fe)}),le.file instanceof Blob?Be.append(le.filename,le.file,le.file.name):Be.append(le.filename,le.file),we.onerror=function(Fe){le.onError(Fe)},we.onload=function(){return we.status<200||we.status>=300?le.onError(ge(le,we),re(we)):le.onSuccess(re(we),we)},we.open(le.method,le.action,!0),le.withCredentials&&"withCredentials"in we&&(we.withCredentials=!0);var se=le.headers||{};return se["X-Requested-With"]!==null&&we.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(se).forEach(function(pe){se[pe]!==null&&we.setRequestHeader(pe,se[pe])}),we.send(Be),{abort:function(){we.abort()}}}var me=function(){var le=(0,x.Z)((0,y.Z)().mark(function we(Be,se){var pe,Fe,Le,ve,et,Ke,at,mt;return(0,y.Z)().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:Ke=function(){return Ke=(0,x.Z)((0,y.Z)().mark(function Yt(Wt){return(0,y.Z)().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.abrupt("return",new Promise(function(tn){Wt.file(function(Xt){se(Xt)?(Wt.fullPath&&!Xt.webkitRelativePath&&(Object.defineProperties(Xt,{webkitRelativePath:{writable:!0}}),Xt.webkitRelativePath=Wt.fullPath.replace(/^\//,""),Object.defineProperties(Xt,{webkitRelativePath:{writable:!1}})),tn(Xt)):tn(null)})}));case 1:case"end":return Ut.stop()}},Yt)})),Ke.apply(this,arguments)},et=function(Yt){return Ke.apply(this,arguments)},ve=function(){return ve=(0,x.Z)((0,y.Z)().mark(function Yt(Wt){var en,Ut,tn,Xt,nt;return(0,y.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:en=Wt.createReader(),Ut=[];case 2:return kt.next=5,new Promise(function(Cn){en.readEntries(Cn,function(){return Cn([])})});case 5:if(tn=kt.sent,Xt=tn.length,Xt){kt.next=9;break}return kt.abrupt("break",12);case 9:for(nt=0;nt<Xt;nt++)Ut.push(tn[nt]);kt.next=2;break;case 12:return kt.abrupt("return",Ut);case 13:case"end":return kt.stop()}},Yt)})),ve.apply(this,arguments)},Le=function(Yt){return ve.apply(this,arguments)},pe=[],Fe=[],Be.forEach(function(At){return Fe.push(At.webkitGetAsEntry())}),at=function(){var At=(0,x.Z)((0,y.Z)().mark(function Yt(Wt,en){var Ut,tn;return(0,y.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Wt){nt.next=2;break}return nt.abrupt("return");case 2:if(Wt.path=en||"",!Wt.isFile){nt.next=10;break}return nt.next=6,et(Wt);case 6:Ut=nt.sent,Ut&&pe.push(Ut),nt.next=15;break;case 10:if(!Wt.isDirectory){nt.next=15;break}return nt.next=13,Le(Wt);case 13:tn=nt.sent,Fe.push.apply(Fe,(0,b.Z)(tn));case 15:case"end":return nt.stop()}},Yt)}));return function(Wt,en){return At.apply(this,arguments)}}(),mt=0;case 9:if(!(mt<Fe.length)){Nt.next=15;break}return Nt.next=12,at(Fe[mt]);case 12:mt++,Nt.next=9;break;case 15:return Nt.abrupt("return",pe);case 16:case"end":return Nt.stop()}},we)}));return function(Be,se){return le.apply(this,arguments)}}(),xe=me,ze=+new Date,gt=0;function ut(){return"rc-upload-".concat(ze,"-").concat(++gt)}var Bt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ct=function(le){(0,We.Z)(Be,le);var we=(0,Ue.Z)(Be);function Be(){var se;(0,fe.Z)(this,Be);for(var pe=arguments.length,Fe=new Array(pe),Le=0;Le<pe;Le++)Fe[Le]=arguments[Le];return se=we.call.apply(we,[this].concat(Fe)),(0,je.Z)((0,Ae.Z)(se),"state",{uid:ut()}),(0,je.Z)((0,Ae.Z)(se),"reqs",{}),(0,je.Z)((0,Ae.Z)(se),"fileInput",void 0),(0,je.Z)((0,Ae.Z)(se),"_isMounted",void 0),(0,je.Z)((0,Ae.Z)(se),"onChange",function(ve){var et=se.props,Ke=et.accept,at=et.directory,mt=ve.target.files,Et=(0,b.Z)(mt).filter(function(Nt){return!at||oe(Nt,Ke)});se.uploadFiles(Et),se.reset()}),(0,je.Z)((0,Ae.Z)(se),"onClick",function(ve){var et=se.fileInput;if(et){var Ke=ve.target,at=se.props.onClick;if(Ke&&Ke.tagName==="BUTTON"){var mt=et.parentNode;mt.focus(),Ke.blur()}et.click(),at&&at(ve)}}),(0,je.Z)((0,Ae.Z)(se),"onKeyDown",function(ve){ve.key==="Enter"&&se.onClick(ve)}),(0,je.Z)((0,Ae.Z)(se),"onFileDrop",function(){var ve=(0,x.Z)((0,y.Z)().mark(function et(Ke){var at,mt,Et;return(0,y.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(at=se.props.multiple,Ke.preventDefault(),Ke.type!=="dragover"){At.next=4;break}return At.abrupt("return");case 4:if(!se.props.directory){At.next=11;break}return At.next=7,xe(Array.prototype.slice.call(Ke.dataTransfer.items),function(Yt){return oe(Yt,se.props.accept)});case 7:mt=At.sent,se.uploadFiles(mt),At.next=14;break;case 11:Et=(0,b.Z)(Ke.dataTransfer.files).filter(function(Yt){return oe(Yt,se.props.accept)}),at===!1&&(Et=Et.slice(0,1)),se.uploadFiles(Et);case 14:case"end":return At.stop()}},et)}));return function(et){return ve.apply(this,arguments)}}()),(0,je.Z)((0,Ae.Z)(se),"uploadFiles",function(ve){var et=(0,b.Z)(ve),Ke=et.map(function(at){return at.uid=ut(),se.processFile(at,et)});Promise.all(Ke).then(function(at){var mt=se.props.onBatchStart;mt==null||mt(at.map(function(Et){var Nt=Et.origin,At=Et.parsedFile;return{file:Nt,parsedFile:At}})),at.filter(function(Et){return Et.parsedFile!==null}).forEach(function(Et){se.post(Et)})})}),(0,je.Z)((0,Ae.Z)(se),"processFile",function(){var ve=(0,x.Z)((0,y.Z)().mark(function et(Ke,at){var mt,Et,Nt,At,Yt,Wt,en,Ut,tn;return(0,y.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(mt=se.props.beforeUpload,Et=Ke,!mt){nt.next=14;break}return nt.prev=3,nt.next=6,mt(Ke,at);case 6:Et=nt.sent,nt.next=12;break;case 9:nt.prev=9,nt.t0=nt.catch(3),Et=!1;case 12:if(Et!==!1){nt.next=14;break}return nt.abrupt("return",{origin:Ke,parsedFile:null,action:null,data:null});case 14:if(Nt=se.props.action,typeof Nt!="function"){nt.next=21;break}return nt.next=18,Nt(Ke);case 18:At=nt.sent,nt.next=22;break;case 21:At=Nt;case 22:if(Yt=se.props.data,typeof Yt!="function"){nt.next=29;break}return nt.next=26,Yt(Ke);case 26:Wt=nt.sent,nt.next=30;break;case 29:Wt=Yt;case 30:return en=((0,a.Z)(Et)==="object"||typeof Et=="string")&&Et?Et:Ke,en instanceof File?Ut=en:Ut=new File([en],Ke.name,{type:Ke.type}),tn=Ut,tn.uid=Ke.uid,nt.abrupt("return",{origin:Ke,data:Wt,parsedFile:tn,action:At});case 35:case"end":return nt.stop()}},et,null,[[3,9]])}));return function(et,Ke){return ve.apply(this,arguments)}}()),(0,je.Z)((0,Ae.Z)(se),"saveFileInput",function(ve){se.fileInput=ve}),se}return(0,tt.Z)(Be,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(pe){var Fe=this,Le=pe.data,ve=pe.origin,et=pe.action,Ke=pe.parsedFile;if(this._isMounted){var at=this.props,mt=at.onStart,Et=at.customRequest,Nt=at.name,At=at.headers,Yt=at.withCredentials,Wt=at.method,en=ve.uid,Ut=Et||ue,tn={action:et,filename:Nt,data:Le,file:Ke,headers:At,withCredentials:Yt,method:Wt||"post",onProgress:function(nt){var Sn=Fe.props.onProgress;Sn==null||Sn(nt,Ke)},onSuccess:function(nt,Sn){var kt=Fe.props.onSuccess;kt==null||kt(nt,Ke,Sn),delete Fe.reqs[en]},onError:function(nt,Sn){var kt=Fe.props.onError;kt==null||kt(nt,Sn,Ke),delete Fe.reqs[en]}};mt(ve),this.reqs[en]=Ut(tn)}}},{key:"reset",value:function(){this.setState({uid:ut()})}},{key:"abort",value:function(pe){var Fe=this.reqs;if(pe){var Le=pe.uid?pe.uid:pe;Fe[Le]&&Fe[Le].abort&&Fe[Le].abort(),delete Fe[Le]}else Object.keys(Fe).forEach(function(ve){Fe[ve]&&Fe[ve].abort&&Fe[ve].abort(),delete Fe[ve]})}},{key:"render",value:function(){var pe=this.props,Fe=pe.component,Le=pe.prefixCls,ve=pe.className,et=pe.classNames,Ke=et===void 0?{}:et,at=pe.disabled,mt=pe.id,Et=pe.name,Nt=pe.style,At=pe.styles,Yt=At===void 0?{}:At,Wt=pe.multiple,en=pe.accept,Ut=pe.capture,tn=pe.children,Xt=pe.directory,nt=pe.openFileDialogOnClick,Sn=pe.onMouseEnter,kt=pe.onMouseLeave,Cn=pe.hasControlInside,aa=(0,ne.Z)(pe,Bt),Jn=z()((0,je.Z)((0,je.Z)((0,je.Z)({},Le,!0),"".concat(Le,"-disabled"),at),ve,ve)),An=Xt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},oa=at?{}:{onClick:nt?this.onClick:function(){},onKeyDown:nt?this.onKeyDown:function(){},onMouseEnter:Sn,onMouseLeave:kt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Cn?void 0:"0"};return ae.createElement(Fe,(0,_e.Z)({},oa,{className:Jn,role:Cn?void 0:"button",style:Nt}),ae.createElement("input",(0,_e.Z)({},(0,ee.Z)(aa,{aria:!0,data:!0}),{id:mt,name:Et,disabled:at,type:"file",ref:this.saveFileInput,onClick:function(sa){return sa.stopPropagation()},key:this.state.uid,style:(0,Qe.Z)({display:"none"},Yt.input),className:Ke.input,accept:en},An,{multiple:Wt,onChange:this.onChange},Ut!=null?{capture:Ut}:{})),tn)}}]),Be}(ae.Component),rt=ct;function lt(){}var En=function(le){(0,We.Z)(Be,le);var we=(0,Ue.Z)(Be);function Be(){var se;(0,fe.Z)(this,Be);for(var pe=arguments.length,Fe=new Array(pe),Le=0;Le<pe;Le++)Fe[Le]=arguments[Le];return se=we.call.apply(we,[this].concat(Fe)),(0,je.Z)((0,Ae.Z)(se),"uploader",void 0),(0,je.Z)((0,Ae.Z)(se),"saveUploader",function(ve){se.uploader=ve}),se}return(0,tt.Z)(Be,[{key:"abort",value:function(pe){this.uploader.abort(pe)}},{key:"render",value:function(){return ae.createElement(rt,(0,_e.Z)({},this.props,{ref:this.saveUploader}))}}]),Be}(ae.Component);(0,je.Z)(En,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:lt,onError:lt,onSuccess:lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var yn=En,Wn=yn,Tn=de(5663),On=de(53124),wn=de(98866),Ee=de(10110),Ne=de(24457),Re=de(14747),ft=de(33507),$e=de(83559),St=de(43259),ie=de(16777),wt=le=>{const{componentCls:we,iconCls:Be}=le;return{[`${we}-wrapper`]:{[`${we}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:le.colorFillAlter,border:`${(0,ie.unit)(le.lineWidth)} dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[we]:{padding:le.padding},[`${we}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:le.borderRadiusLG,"&:focus-visible":{outline:`${(0,ie.unit)(le.lineWidthFocus)} solid ${le.colorPrimaryBorder}`}},[`${we}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
&:not(${we}-disabled):hover,
|
|
&-hover:not(${we}-disabled)
|
|
`]:{borderColor:le.colorPrimaryHover},[`p${we}-drag-icon`]:{marginBottom:le.margin,[Be]:{color:le.colorPrimary,fontSize:le.uploadThumbnailSize}},[`p${we}-text`]:{margin:`0 0 ${(0,ie.unit)(le.marginXXS)}`,color:le.colorTextHeading,fontSize:le.fontSizeLG},[`p${we}-hint`]:{color:le.colorTextDescription,fontSize:le.fontSize},[`&${we}-disabled`]:{[`p${we}-drag-icon ${Be},
|
|
p${we}-text,
|
|
p${we}-hint
|
|
`]:{color:le.colorTextDisabled}}}}}},It=le=>{const{componentCls:we,iconCls:Be,fontSize:se,lineHeight:pe,calc:Fe}=le,Le=`${we}-list-item`,ve=`${Le}-actions`,et=`${Le}-action`;return{[`${we}-wrapper`]:{[`${we}-list`]:Object.assign(Object.assign({},(0,Re.dF)()),{lineHeight:le.lineHeight,[Le]:{position:"relative",height:Fe(le.lineHeight).mul(se).equal(),marginTop:le.marginXS,fontSize:se,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,borderRadius:le.borderRadiusSM,"&:hover":{backgroundColor:le.controlItemBgHover},[`${Le}-name`]:Object.assign(Object.assign({},Re.vS),{padding:`0 ${(0,ie.unit)(le.paddingXS)}`,lineHeight:pe,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[ve]:{whiteSpace:"nowrap",[et]:{opacity:0},[Be]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`
|
|
${et}:focus-visible,
|
|
&.picture ${et}
|
|
`]:{opacity:1}},[`${we}-icon ${Be}`]:{color:le.colorTextDescription,fontSize:se},[`${Le}-progress`]:{position:"absolute",bottom:le.calc(le.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Fe(se).add(le.paddingXS).equal(),fontSize:se,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Le}:hover ${et}`]:{opacity:1},[`${Le}-error`]:{color:le.colorError,[`${Le}-name, ${we}-icon ${Be}`]:{color:le.colorError},[ve]:{[`${Be}, ${Be}:hover`]:{color:le.colorError},[et]:{opacity:1}}},[`${we}-list-item-container`]:{transition:`opacity ${le.motionDurationSlow}, height ${le.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},zn=de(16932),Ot=le=>{const{componentCls:we}=le,Be=new ie.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:le.calc(le.marginXS).div(-2).equal()}}),se=new ie.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:le.calc(le.marginXS).div(-2).equal()}}),pe=`${we}-animate-inline`;return[{[`${we}-wrapper`]:{[`${pe}-appear, ${pe}-enter, ${pe}-leave`]:{animationDuration:le.motionDurationSlow,animationTimingFunction:le.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pe}-appear, ${pe}-enter`]:{animationName:Be},[`${pe}-leave`]:{animationName:se}}},{[`${we}-wrapper`]:(0,zn.J$)(le)},Be,se]},In=de(65409);const ra=le=>{const{componentCls:we,iconCls:Be,uploadThumbnailSize:se,uploadProgressOffset:pe,calc:Fe}=le,Le=`${we}-list`,ve=`${Le}-item`;return{[`${we}-wrapper`]:{[`
|
|
${Le}${Le}-picture,
|
|
${Le}${Le}-picture-card,
|
|
${Le}${Le}-picture-circle
|
|
`]:{[ve]:{position:"relative",height:Fe(se).add(Fe(le.lineWidth).mul(2)).add(Fe(le.paddingXS).mul(2)).equal(),padding:le.paddingXS,border:`${(0,ie.unit)(le.lineWidth)} ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${ve}-thumbnail`]:Object.assign(Object.assign({},Re.vS),{width:se,height:se,lineHeight:(0,ie.unit)(Fe(se).add(le.paddingSM).equal()),textAlign:"center",flex:"none",[Be]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ve}-progress`]:{bottom:pe,width:`calc(100% - ${(0,ie.unit)(Fe(le.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Fe(se).add(le.paddingXS).equal()}},[`${ve}-error`]:{borderColor:le.colorError,[`${ve}-thumbnail ${Be}`]:{[`svg path[fill='${In.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${In.blue.primary}']`]:{fill:le.colorError}}},[`${ve}-uploading`]:{borderStyle:"dashed",[`${ve}-name`]:{marginBottom:pe}}},[`${Le}${Le}-picture-circle ${ve}`]:{[`&, &::before, ${ve}-thumbnail`]:{borderRadius:"50%"}}}}},jn=le=>{const{componentCls:we,iconCls:Be,fontSizeLG:se,colorTextLightSolid:pe,calc:Fe}=le,Le=`${we}-list`,ve=`${Le}-item`,et=le.uploadPicCardSize;return{[`
|
|
${we}-wrapper${we}-picture-card-wrapper,
|
|
${we}-wrapper${we}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Re.dF)()),{display:"block",[`${we}${we}-select`]:{width:et,height:et,textAlign:"center",verticalAlign:"top",backgroundColor:le.colorFillAlter,border:`${(0,ie.unit)(le.lineWidth)} dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[`> ${we}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${we}-disabled):hover`]:{borderColor:le.colorPrimary}},[`${Le}${Le}-picture-card, ${Le}${Le}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:le.marginXS,marginInlineEnd:le.marginXS}},"@supports (gap: 1px)":{gap:le.marginXS},[`${Le}-item-container`]:{display:"inline-block",width:et,height:et,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[ve]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,ie.unit)(Fe(le.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,ie.unit)(Fe(le.paddingXS).mul(2).equal())})`,backgroundColor:le.colorBgMask,opacity:0,transition:`all ${le.motionDurationSlow}`,content:'" "'}},[`${ve}:hover`]:{[`&::before, ${ve}-actions`]:{opacity:1}},[`${ve}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`
|
|
${Be}-eye,
|
|
${Be}-download,
|
|
${Be}-delete
|
|
`]:{zIndex:10,width:se,margin:`0 ${(0,ie.unit)(le.marginXXS)}`,fontSize:se,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,color:pe,"&:hover":{color:pe},svg:{verticalAlign:"baseline"}}},[`${ve}-thumbnail, ${ve}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ve}-name`]:{display:"none",textAlign:"center"},[`${ve}-file + ${ve}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${(0,ie.unit)(Fe(le.paddingXS).mul(2).equal())})`},[`${ve}-uploading`]:{[`&${ve}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${Be}-eye, ${Be}-download, ${Be}-delete`]:{display:"none"}},[`${ve}-progress`]:{bottom:le.marginXL,width:`calc(100% - ${(0,ie.unit)(Fe(le.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${we}-wrapper${we}-picture-circle-wrapper`]:{[`${we}${we}-select`]:{borderRadius:"50%"}}}};var Un=le=>{const{componentCls:we}=le;return{[`${we}-rtl`]:{direction:"rtl"}}};const qt=le=>{const{componentCls:we,colorTextDisabled:Be}=le;return{[`${we}-wrapper`]:Object.assign(Object.assign({},(0,Re.Wf)(le)),{[we]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${we}-select`]:{display:"inline-block"},[`${we}-hidden`]:{display:"none"},[`${we}-disabled`]:{color:Be,cursor:"not-allowed"}})}},mn=le=>({actionsColor:le.colorTextDescription});var un=(0,$e.I$)("Upload",le=>{const{fontSizeHeading3:we,fontHeight:Be,lineWidth:se,controlHeightLG:pe,calc:Fe}=le,Le=(0,St.mergeToken)(le,{uploadThumbnailSize:Fe(we).mul(2).equal(),uploadProgressOffset:Fe(Fe(Be).div(2)).add(se).equal(),uploadPicCardSize:Fe(pe).mul(2.55).equal()});return[qt(Le),wt(Le),ra(Le),jn(Le),It(Le),Ot(Le),Un(Le),(0,ft.Z)(Le)]},mn),Ct=de(83963),Xn={icon:function(we,Be){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Be}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:we}}]}},name:"file",theme:"twotone"},ia=Xn,Kn=de(84180),wa=function(we,Be){return ae.createElement(Kn.Z,(0,Ct.Z)({},we,{ref:Be,icon:ia}))},ca=ae.forwardRef(wa),Ea=ca,Fa=de(77322),ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Sa=ma,Vn=function(we,Be){return ae.createElement(Kn.Z,(0,Ct.Z)({},we,{ref:Be,icon:Sa}))},qn=ae.forwardRef(Vn),he=qn,ye={icon:function(we,Be){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:we}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Be}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Be}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Be}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:we}}]}},name:"picture",theme:"twotone"},Me=ye,He=function(we,Be){return ae.createElement(Kn.Z,(0,Ct.Z)({},we,{ref:Be,icon:Me}))},it=ae.forwardRef(He),vt=it,st=de(15602),Lt=de(10366),Pt=de(57838),jt=de(33603),Mt=de(96159),Zt=de(85804);function Vt(le){return Object.assign(Object.assign({},le),{lastModified:le.lastModified,lastModifiedDate:le.lastModifiedDate,name:le.name,size:le.size,type:le.type,uid:le.uid,percent:0,originFileObj:le})}function nn(le,we){const Be=(0,Ie.Z)(we),se=Be.findIndex(pe=>{let{uid:Fe}=pe;return Fe===le.uid});return se===-1?Be.push(le):Be[se]=le,Be}function Jt(le,we){const Be=le.uid!==void 0?"uid":"name";return we.filter(se=>se[Be]===le[Be])[0]}function on(le,we){const Be=le.uid!==void 0?"uid":"name",se=we.filter(pe=>pe[Be]!==le[Be]);return se.length===we.length?null:se}const Fn=function(){const we=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),se=we[we.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(se)||[""])[0]},Rt=le=>le.indexOf("image/")===0,an=le=>{if(le.type&&!le.thumbUrl)return Rt(le.type);const we=le.thumbUrl||le.url||"",Be=Fn(we);return/^data:image\//.test(we)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Be)?!0:!(/^data:/.test(we)||Be)},gn=200;function Nn(le){return new Promise(we=>{if(!le.type||!Rt(le.type)){we("");return}const Be=document.createElement("canvas");Be.width=gn,Be.height=gn,Be.style.cssText=`position: fixed; left: 0; top: 0; width: ${gn}px; height: ${gn}px; z-index: 9999; display: none;`,document.body.appendChild(Be);const se=Be.getContext("2d"),pe=new Image;if(pe.onload=()=>{const{width:Fe,height:Le}=pe;let ve=gn,et=gn,Ke=0,at=0;Fe>Le?(et=Le*(gn/Fe),at=-(et-ve)/2):(ve=Fe*(gn/Le),Ke=-(ve-et)/2),se.drawImage(pe,Ke,at,ve,et);const mt=Be.toDataURL();document.body.removeChild(Be),window.URL.revokeObjectURL(pe.src),we(mt)},pe.crossOrigin="anonymous",le.type.startsWith("image/svg+xml")){const Fe=new FileReader;Fe.onload=()=>{Fe.result&&typeof Fe.result=="string"&&(pe.src=Fe.result)},Fe.readAsDataURL(le)}else if(le.type.startsWith("image/gif")){const Fe=new FileReader;Fe.onload=()=>{Fe.result&&we(Fe.result)},Fe.readAsDataURL(le)}else pe.src=window.URL.createObjectURL(le)})}var ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Pe=ce,Se=function(we,Be){return ae.createElement(Kn.Z,(0,Ct.Z)({},we,{ref:Be,icon:Pe}))},Te=ae.forwardRef(Se),Ye=Te,ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},zt=ke,ht=function(we,Be){return ae.createElement(Kn.Z,(0,Ct.Z)({},we,{ref:Be,icon:zt}))},pt=ae.forwardRef(ht),Tt=pt,fn=de(43481),De=de(38703),xt=de(83062),pn=ae.forwardRef((le,we)=>{let{prefixCls:Be,className:se,style:pe,locale:Fe,listType:Le,file:ve,items:et,progress:Ke,iconRender:at,actionIconRender:mt,itemRender:Et,isImgUrl:Nt,showPreviewIcon:At,showRemoveIcon:Yt,showDownloadIcon:Wt,previewIcon:en,removeIcon:Ut,downloadIcon:tn,extra:Xt,onPreview:nt,onDownload:Sn,onClose:kt}=le;var Cn,aa;const{status:Jn}=ve,[An,oa]=ae.useState(Jn);ae.useEffect(()=>{Jn!=="removed"&&oa(Jn)},[Jn]);const[Mn,sa]=ae.useState(!1);ae.useEffect(()=>{const bt=setTimeout(()=>{sa(!0)},300);return()=>{clearTimeout(bt)}},[]);const $n=at(ve);let Zn=ae.createElement("div",{className:`${Be}-icon`},$n);if(Le==="picture"||Le==="picture-card"||Le==="picture-circle")if(An==="uploading"||!ve.thumbUrl&&!ve.url){const bt=be()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:An!=="uploading"});Zn=ae.createElement("div",{className:bt},$n)}else{const bt=Nt!=null&&Nt(ve)?ae.createElement("img",{src:ve.thumbUrl||ve.url,alt:ve.name,className:`${Be}-list-item-image`,crossOrigin:ve.crossOrigin}):$n,Ft=be()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:Nt&&!Nt(ve)});Zn=ae.createElement("a",{className:Ft,onClick:xn=>nt(ve,xn),href:ve.url||ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},bt)}const vn=be()(`${Be}-list-item`,`${Be}-list-item-${An}`),da=typeof ve.linkProps=="string"?JSON.parse(ve.linkProps):ve.linkProps,Pa=(typeof Yt=="function"?Yt(ve):Yt)?mt((typeof Ut=="function"?Ut(ve):Ut)||ae.createElement(Ye,null),()=>kt(ve),Be,Fe.removeFile,!0):null,ha=(typeof Wt=="function"?Wt(ve):Wt)&&An==="done"?mt((typeof tn=="function"?tn(ve):tn)||ae.createElement(Tt,null),()=>Sn(ve),Be,Fe.downloadFile):null,la=Le!=="picture-card"&&Le!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:be()(`${Be}-list-item-actions`,{picture:Le==="picture"})},ha,Pa),ga=typeof Xt=="function"?Xt(ve):Xt,yt=ga&&ae.createElement("span",{className:`${Be}-list-item-extra`},ga),Pn=be()(`${Be}-list-item-name`),Xe=ve.url?ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Pn,title:ve.name},da,{href:ve.url,onClick:bt=>nt(ve,bt)}),ve.name,yt):ae.createElement("span",{key:"view",className:Pn,onClick:bt=>nt(ve,bt),title:ve.name},ve.name,yt),Oe=(typeof At=="function"?At(ve):At)&&(ve.url||ve.thumbUrl)?ae.createElement("a",{href:ve.url||ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:bt=>nt(ve,bt),title:Fe.previewFile},typeof en=="function"?en(ve):en||ae.createElement(fn.Z,null)):null,Ze=(Le==="picture-card"||Le==="picture-circle")&&An!=="uploading"&&ae.createElement("span",{className:`${Be}-list-item-actions`},Oe,An==="done"&&ha,Pa),{getPrefixCls:Ve}=ae.useContext(On.E_),Dt=Ve(),Kt=ae.createElement("div",{className:vn},Zn,Xe,la,Ze,Mn&&ae.createElement(st.default,{motionName:`${Dt}-fade`,visible:An==="uploading",motionDeadline:2e3},bt=>{let{className:Ft}=bt;const xn="percent"in ve?ae.createElement(De.Z,Object.assign({},Ke,{type:"line",percent:ve.percent,"aria-label":ve["aria-label"],"aria-labelledby":ve["aria-labelledby"]})):null;return ae.createElement("div",{className:be()(`${Be}-list-item-progress`,Ft)},xn)})),sn=ve.response&&typeof ve.response=="string"?ve.response:((Cn=ve.error)===null||Cn===void 0?void 0:Cn.statusText)||((aa=ve.error)===null||aa===void 0?void 0:aa.message)||Fe.uploadError,rn=An==="error"?ae.createElement(xt.Z,{title:sn,getPopupContainer:bt=>bt.parentNode},Kt):Kt;return ae.createElement("div",{className:be()(`${Be}-list-item-container`,se),style:pe,ref:we},Et?Et(rn,ve,et,{download:Sn.bind(null,ve),preview:nt.bind(null,ve),remove:kt.bind(null,ve)}):rn)});const Ht=(le,we)=>{const{listType:Be="text",previewFile:se=Nn,onPreview:pe,onDownload:Fe,onRemove:Le,locale:ve,iconRender:et,isImageUrl:Ke=an,prefixCls:at,items:mt=[],showPreviewIcon:Et=!0,showRemoveIcon:Nt=!0,showDownloadIcon:At=!1,removeIcon:Yt,previewIcon:Wt,downloadIcon:en,extra:Ut,progress:tn={size:[-1,2],showInfo:!1},appendAction:Xt,appendActionVisible:nt=!0,itemRender:Sn,disabled:kt}=le,Cn=(0,Pt.Z)(),[aa,Jn]=ae.useState(!1),An=["picture-card","picture-circle"].includes(Be);ae.useEffect(()=>{Be.startsWith("picture")&&(mt||[]).forEach(yt=>{!(yt.originFileObj instanceof File||yt.originFileObj instanceof Blob)||yt.thumbUrl!==void 0||(yt.thumbUrl="",se==null||se(yt.originFileObj).then(Pn=>{yt.thumbUrl=Pn||"",Cn()}))})},[Be,mt,se]),ae.useEffect(()=>{Jn(!0)},[]);const oa=(yt,Pn)=>{if(pe)return Pn==null||Pn.preventDefault(),pe(yt)},Mn=yt=>{typeof Fe=="function"?Fe(yt):yt.url&&window.open(yt.url)},sa=yt=>{Le==null||Le(yt)},$n=yt=>{if(et)return et(yt,Be);const Pn=yt.status==="uploading";if(Be.startsWith("picture")){const Xe=Be==="picture"?ae.createElement(Fa.Z,null):ve.uploading,Oe=Ke!=null&&Ke(yt)?ae.createElement(vt,null):ae.createElement(Ea,null);return Pn?Xe:Oe}return Pn?ae.createElement(Fa.Z,null):ae.createElement(he,null)},Zn=(yt,Pn,Xe,Oe,Ze)=>{const Ve={type:"text",size:"small",title:Oe,onClick:Dt=>{var Kt,sn;Pn(),ae.isValidElement(yt)&&((sn=(Kt=yt.props).onClick)===null||sn===void 0||sn.call(Kt,Dt))},className:`${Xe}-list-item-action`};return Ze&&(Ve.disabled=kt),ae.isValidElement(yt)?ae.createElement(Zt.ZP,Object.assign({},Ve,{icon:(0,Mt.Tm)(yt,Object.assign(Object.assign({},yt.props),{onClick:()=>{}}))})):ae.createElement(Zt.ZP,Object.assign({},Ve),ae.createElement("span",null,yt))};ae.useImperativeHandle(we,()=>({handlePreview:oa,handleDownload:Mn}));const{getPrefixCls:vn}=ae.useContext(On.E_),da=vn("upload",at),Pa=vn(),ha=be()(`${da}-list`,`${da}-list-${Be}`),la=ae.useMemo(()=>(0,Lt.Z)((0,jt.Z)(Pa),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Pa]),ga=Object.assign(Object.assign({},An?{}:la),{motionDeadline:2e3,motionName:`${da}-${An?"animate-inline":"animate"}`,keys:(0,Ie.Z)(mt.map(yt=>({key:yt.uid,file:yt}))),motionAppear:aa});return ae.createElement("div",{className:ha},ae.createElement(st.CSSMotionList,Object.assign({},ga,{component:!1}),yt=>{let{key:Pn,file:Xe,className:Oe,style:Ze}=yt;return ae.createElement(pn,{key:Pn,locale:ve,prefixCls:da,className:Oe,style:Ze,file:Xe,items:mt,progress:tn,listType:Be,isImgUrl:Ke,showPreviewIcon:Et,showRemoveIcon:Nt,showDownloadIcon:At,removeIcon:Yt,previewIcon:Wt,downloadIcon:en,extra:Ut,iconRender:$n,actionIconRender:Zn,itemRender:Sn,onPreview:oa,onDownload:Mn,onClose:sa})}),Xt&&ae.createElement(st.default,Object.assign({},ga,{visible:nt,forceRender:!0}),yt=>{let{className:Pn,style:Xe}=yt;return(0,Mt.Tm)(Xt,Oe=>({className:be()(Oe.className,Pn),style:Object.assign(Object.assign(Object.assign({},Xe),{pointerEvents:Pn?"none":void 0}),Oe.style)}))}))};var Rn=ae.forwardRef(Ht),kn=function(le,we,Be,se){function pe(Fe){return Fe instanceof Be?Fe:new Be(function(Le){Le(Fe)})}return new(Be||(Be=Promise))(function(Fe,Le){function ve(at){try{Ke(se.next(at))}catch(mt){Le(mt)}}function et(at){try{Ke(se.throw(at))}catch(mt){Le(mt)}}function Ke(at){at.done?Fe(at.value):pe(at.value).then(ve,et)}Ke((se=se.apply(le,we||[])).next())})};const Bn=`__LIST_IGNORE_${Date.now()}__`,ea=(le,we)=>{const{fileList:Be,defaultFileList:se,onRemove:pe,showUploadList:Fe=!0,listType:Le="text",onPreview:ve,onDownload:et,onChange:Ke,onDrop:at,previewFile:mt,disabled:Et,locale:Nt,iconRender:At,isImageUrl:Yt,progress:Wt,prefixCls:en,className:Ut,type:tn="select",children:Xt,style:nt,itemRender:Sn,maxCount:kt,data:Cn={},multiple:aa=!1,hasControlInside:Jn=!0,action:An="",accept:oa="",supportServerRender:Mn=!0,rootClassName:sa}=le,$n=ae.useContext(wn.Z),Zn=Et!=null?Et:$n,[vn,da]=(0,Tn.Z)(se||[],{value:Be,postState:Gt=>Gt!=null?Gt:[]}),[Pa,ha]=ae.useState("drop"),la=ae.useRef(null),ga=ae.useRef(null);ae.useMemo(()=>{const Gt=Date.now();(Be||[]).forEach((Qt,hn)=>{!Qt.uid&&!Object.isFrozen(Qt)&&(Qt.uid=`__AUTO__${Gt}_${hn}__`)})},[Be]);const yt=(Gt,Qt,hn)=>{let $t=(0,Ie.Z)(Qt),dn=!1;kt===1?$t=$t.slice(-1):kt&&(dn=$t.length>kt,$t=$t.slice(0,kt)),(0,Je.flushSync)(()=>{da($t)});const _n={file:Gt,fileList:$t};hn&&(_n.event=hn),(!dn||Gt.status==="removed"||$t.some(La=>La.uid===Gt.uid))&&(0,Je.flushSync)(()=>{Ke==null||Ke(_n)})},Pn=(Gt,Qt)=>kn(void 0,void 0,void 0,function*(){const{beforeUpload:hn,transformFile:$t}=le;let dn=Gt;if(hn){const _n=yield hn(Gt,Qt);if(_n===!1)return!1;if(delete Gt[Bn],_n===Bn)return Object.defineProperty(Gt,Bn,{value:!0,configurable:!0}),!1;typeof _n=="object"&&_n&&(dn=_n)}return $t&&(dn=yield $t(dn)),dn}),Xe=Gt=>{const Qt=Gt.filter(dn=>!dn.file[Bn]);if(!Qt.length)return;const hn=Qt.map(dn=>Vt(dn.file));let $t=(0,Ie.Z)(vn);hn.forEach(dn=>{$t=nn(dn,$t)}),hn.forEach((dn,_n)=>{let La=dn;if(Qt[_n].parsedFile)dn.status="uploading";else{const{originFileObj:xa}=dn;let ya;try{ya=new File([xa],xa.name,{type:xa.type})}catch(Ia){ya=new Blob([xa],{type:xa.type}),ya.name=xa.name,ya.lastModifiedDate=new Date,ya.lastModified=new Date().getTime()}ya.uid=dn.uid,La=ya}yt(La,$t)})},Oe=(Gt,Qt,hn)=>{try{typeof Gt=="string"&&(Gt=JSON.parse(Gt))}catch(_n){}if(!Jt(Qt,vn))return;const $t=Vt(Qt);$t.status="done",$t.percent=100,$t.response=Gt,$t.xhr=hn;const dn=nn($t,vn);yt($t,dn)},Ze=(Gt,Qt)=>{if(!Jt(Qt,vn))return;const hn=Vt(Qt);hn.status="uploading",hn.percent=Gt.percent;const $t=nn(hn,vn);yt(hn,$t,Gt)},Ve=(Gt,Qt,hn)=>{if(!Jt(hn,vn))return;const $t=Vt(hn);$t.error=Gt,$t.response=Qt,$t.status="error";const dn=nn($t,vn);yt($t,dn)},Dt=Gt=>{let Qt;Promise.resolve(typeof pe=="function"?pe(Gt):pe).then(hn=>{var $t;if(hn===!1)return;const dn=on(Gt,vn);dn&&(Qt=Object.assign(Object.assign({},Gt),{status:"removed"}),vn==null||vn.forEach(_n=>{const La=Qt.uid!==void 0?"uid":"name";_n[La]===Qt[La]&&!Object.isFrozen(_n)&&(_n.status="removed")}),($t=la.current)===null||$t===void 0||$t.abort(Qt),yt(Qt,dn))})},Kt=Gt=>{ha(Gt.type),Gt.type==="drop"&&(at==null||at(Gt))};ae.useImperativeHandle(we,()=>({onBatchStart:Xe,onSuccess:Oe,onProgress:Ze,onError:Ve,fileList:vn,upload:la.current,nativeElement:ga.current}));const{getPrefixCls:sn,direction:rn,upload:bt}=ae.useContext(On.E_),Ft=sn("upload",en),xn=Object.assign(Object.assign({onBatchStart:Xe,onError:Ve,onProgress:Ze,onSuccess:Oe},le),{data:Cn,multiple:aa,action:An,accept:oa,supportServerRender:Mn,prefixCls:Ft,disabled:Zn,beforeUpload:Pn,onChange:void 0,hasControlInside:Jn});delete xn.className,delete xn.style,(!Xt||Zn)&&delete xn.id;const Dn=`${Ft}-wrapper`,[fa,va,ba]=un(Ft,Dn),[Da]=(0,Ee.Z)("Upload",Ne.Z.Upload),{showRemoveIcon:ua,showPreviewIcon:za,showDownloadIcon:Ln,removeIcon:Ta,previewIcon:Oa,downloadIcon:Na,extra:ka}=typeof Fe=="boolean"?{}:Fe,Ga=typeof ua=="undefined"?!Zn:ua,Hn=(Gt,Qt)=>Fe?ae.createElement(Rn,{prefixCls:Ft,listType:Le,items:vn,previewFile:mt,onPreview:ve,onDownload:et,onRemove:Dt,showRemoveIcon:Ga,showPreviewIcon:za,showDownloadIcon:Ln,removeIcon:Ta,previewIcon:Oa,downloadIcon:Na,iconRender:At,extra:ka,locale:Object.assign(Object.assign({},Da),Nt),isImageUrl:Yt,progress:Wt,appendAction:Gt,appendActionVisible:Qt,itemRender:Sn,disabled:Zn}):Gt,Ba=be()(Dn,Ut,sa,va,ba,bt==null?void 0:bt.className,{[`${Ft}-rtl`]:rn==="rtl",[`${Ft}-picture-card-wrapper`]:Le==="picture-card",[`${Ft}-picture-circle-wrapper`]:Le==="picture-circle"}),Aa=Object.assign(Object.assign({},bt==null?void 0:bt.style),nt);if(tn==="drag"){const Gt=be()(va,Ft,`${Ft}-drag`,{[`${Ft}-drag-uploading`]:vn.some(Qt=>Qt.status==="uploading"),[`${Ft}-drag-hover`]:Pa==="dragover",[`${Ft}-disabled`]:Zn,[`${Ft}-rtl`]:rn==="rtl"});return fa(ae.createElement("span",{className:Ba,ref:ga},ae.createElement("div",{className:Gt,style:Aa,onDrop:Kt,onDragOver:Kt,onDragLeave:Kt},ae.createElement(Wn,Object.assign({},xn,{ref:la,className:`${Ft}-btn`}),ae.createElement("div",{className:`${Ft}-drag-container`},Xt))),Hn()))}const Ma=be()(Ft,`${Ft}-select`,{[`${Ft}-disabled`]:Zn,[`${Ft}-hidden`]:!Xt}),$a=ae.createElement("div",{className:Ma},ae.createElement(Wn,Object.assign({},xn,{ref:la})));return fa(Le==="picture-card"||Le==="picture-circle"?ae.createElement("span",{className:Ba,ref:ga},Hn($a,!!Xt)):ae.createElement("span",{className:Ba,ref:ga},$a,Hn()))};var cn=ae.forwardRef(ea),ta=function(le,we){var Be={};for(var se in le)Object.prototype.hasOwnProperty.call(le,se)&&we.indexOf(se)<0&&(Be[se]=le[se]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,se=Object.getOwnPropertySymbols(le);pe<se.length;pe++)we.indexOf(se[pe])<0&&Object.prototype.propertyIsEnumerable.call(le,se[pe])&&(Be[se[pe]]=le[se[pe]]);return Be},pa=ae.forwardRef((le,we)=>{var{style:Be,height:se,hasControlInside:pe=!1}=le,Fe=ta(le,["style","height","hasControlInside"]);return ae.createElement(cn,Object.assign({ref:we,hasControlInside:pe},Fe,{type:"drag",style:Object.assign(Object.assign({},Be),{height:se})}))});const Ce=cn;Ce.Dragger=pa,Ce.LIST_IGNORE=Bn;var Ca=Ce}}]);
|