You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__MoopCases__FormPanel__in...

138 lines
352 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6904],{33859:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return me}});var ae=ie(87462),Me=ie(67294),Qe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},De=Qe,ve=ie(43387),we=function(Oe,Re){return Me.createElement(ve.Z,(0,ae.Z)({},Oe,{ref:Re,icon:De}))},me=Me.forwardRef(we)},71736:function(Be,nt){"use strict";nt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},26942:function(){"use strict"},18023:function(){"use strict";function Be(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Be.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(Be.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(Be.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(Be.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 Be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var nt=[];function ie(ne,a){var y=nt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=nt.pop();return ne===void 0?new go.Point:ne}function Me(ne){nt.push(ne)}function Qe(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ge=NaN,he=NaN;if(oe===0)if(re===0)ne===y&&(ge=ne,he=a);else{var ue=(x-ee)/re,ze=x-ue*b;ge=ne,he=ue*ge+ze}else if(re===0){var Ce=(a-E)/oe,lt=a-Ce*ne;ge=b,he=Ce*ge+lt}else{var Ce=(a-E)/oe,ue=(x-ee)/re,lt=a-Ce*ne,ze=x-ue*b;ge=(ze-lt)/(Ce-ue),he=Ce*ge+lt}return te.x=ge,te.y=he,te}function De(ne,a,y,E,b,x,z,ee,te,oe,re,ge,he,ue){var ze=1-te,Ce=te,lt=ne*ze+y*Ce,zt=a*ze+E*Ce,Kt=y*ze+b*Ce,$t=E*ze+x*Ce,Ft=b*ze+z*Ce,bt=x*ze+ee*Ce,sn=lt*ze+Kt*Ce,en=zt*ze+$t*Ce,xt=Kt*ze+Ft*Ce,on=$t*ze+bt*Ce,Mn=sn*ze+xt*Ce,vn=en*ze+on*Ce;oe.x=lt,oe.y=zt,re.x=sn,re.y=en,ge.x=Mn,ge.y=vn,he.x=xt,he.y=on,ue.x=Ft,ue.y=bt}var ve=new go.Spot(.156,.156),we=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ve,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*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,me*y,(1-me)*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,me*y,me*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-me)*a,0,0,(1-me)*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 Be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ie=[];function Oe(){var ne=Ie.pop();return ne===void 0?[]:ne}function Re(ne){ne.length=0,Ie.push(ne)}function We(ne){for(var a=Oe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Ye(ne){var a=Ze(ne),y=Oe();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Re(a),y}function Ze(ne){for(var a=We(ne),y=Oe(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Qe(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Re(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=We(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=We(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=We(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=We(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=We(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=We(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=We(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Ze(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Ze(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Ze(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Ze(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Ze(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Ze(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Re(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Ye(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Re(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Ye(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Re(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Ye(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Re(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Ye(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Re(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Ye(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Re(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Ye(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Re(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ve,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=me*.4;var oe=ae(),re=ae(),ge=ae(),he=ae();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ge,he,he);var ue=ae(),ze=ae(),Ce=ae();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,Ce,ue,ze);var lt=ae(),zt=ae(),Kt=ae();De(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,lt,zt,Kt,he,he);var $t=ae(),Ft=ae(),bt=ae();return De(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,bt,$t,Ft),te.add(new go.PathSegment(go.PathSegment.Move,bt.x*a,bt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,$t.x*a,$t.y*y,Ft.x*a,Ft.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,bt.x*a,bt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Kt.x*a,Kt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ue.x*a,ue.y*y,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Kt.x*a,Kt.y*y,lt.x*a,lt.y*y,zt.x*a,zt.y*y).close()),Me(oe),Me(re),Me(ge),Me(he),Me(ue),Me(ze),Me(Ce),Me(lt),Me(zt),Me(Kt),Me($t),Me(Ft),Me(bt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ge=ae(),he=new go.PathFigure((z-x)*a,ee*y,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ge,oe,te,te),he.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));var ue=ie(oe.x,oe.y);De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,re,ge);var ze=ie(oe.x,oe.y);he.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),he.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=me*.35;var Ce=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var lt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(lt),Me(te),Me(oe),Me(re),Me(ge),Me(ue),Me(ze),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Qe(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Me(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Qe(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Me(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Qe(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Qe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Qe(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ge.x,ge.y),ge=Qe(.7,te/y,1,.5,0,z/y,1,z/y,ge),oe.spot2=new go.Spot(ge.x,ge.y),Me(ge),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Qe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ge=Qe(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ge.x,ge.y),Me(ge),oe}),go.Shape.setFigureParameter("Pointer",0,new Be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Qe(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Me(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Qe(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Me(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Qe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Qe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,ee=me*x,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ge=.05,he=me*ge;te=.05,oe=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,oe*y,(te+he)*a,(oe-ge)*y,(te+ge)*a,(oe-he)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,he=me*ge,te=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-he)*y,(te+he)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-he)*a,(oe-ge)*y,(te-ge)*a,(oe-he)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,he=me*ge,te=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-he)*y,(te+he)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-he)*a,(oe-ge)*y,(te-ge)*a,(oe-he)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,he=me*ge,te=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-he)*y,(te+he)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-he)*a,(oe-ge)*y,(te-ge)*a,(oe-he)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,he=me*ge,te=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te-ge)*a,(oe-he)*y,(te-he)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ge=(x-y)/2,he=new go.PathFigure(te*a+re,(oe+ee)*y+ge,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ge,(te-z)*a+re,(oe+ee)*y+ge,(te-ee)*a+re,(oe+z)*y+ge)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te-ee)*a+re,(oe-z)*y+ge,(te-z)*a+re,(oe-ee)*y+ge)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ge,te*a+re,(oe-ee)*y+ge,(te-ee+z*.5)*a+re,(oe-z)*y+ge)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te-ee+z*.5)*a+re,(oe+z)*y+ge,te*a+re,(oe+ee)*y+ge).close()),z=me*.4,ee=.4,te=.2,oe=.5;var ue=new go.PathFigure(te*a+re,(oe+ee)*y+ge,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ge,(te-z)*a+re,(oe+ee)*y+ge,(te-ee)*a+re,(oe+z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te-ee)*a+re,(oe-z)*y+ge,(te-z)*a+re,(oe-ee)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ge,te*a+re,(oe-ee)*y+ge,(te-ee+z*.5)*a+re,(oe-z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te-ee+z*.5)*a+re,(oe+z)*y+ge,te*a+re,(oe+ee)*y+ge).close()),z=me*.2,ee=.2,te=.5,oe=.5;var ze=new go.PathFigure((te-ee)*a+re,oe*y+ge,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te-ee)*a+re,(oe-z)*y+ge,(te-z)*a+re,(oe-ee)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ge,(te+z)*a+re,(oe-ee)*y+ge,(te+ee)*a+re,(oe-z)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te+ee)*a+re,(oe+z)*y+ge,(te+z)*a+re,(oe+ee)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ge,(te-z)*a+re,(oe+ee)*y+ge,(te-ee)*a+re,(oe+z)*y+ge)),z=me*.4,ee=.4,te=.8,oe=.5;var Ce=new go.PathFigure(te*a+re,(oe-ee)*y+ge,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ge,(te+z)*a+re,(oe-ee)*y+ge,(te+ee)*a+re,(oe-z)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te+ee)*a+re,(oe+z)*y+ge,(te+z)*a+re,(oe+ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ge,te*a+re,(oe+ee)*y+ge,(te+ee-z*.5)*a+re,(oe+z)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te+ee-z*.5)*a+re,(oe-z)*y+ge,te*a+re,(oe-ee)*y+ge).close()),z=me*.8,ee=.8,te=1,oe=.5;var lt=new go.PathFigure(te*a+re,(oe-ee)*y+ge,!0);return E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ge,(te+z)*a+re,(oe-ee)*y+ge,(te+ee)*a+re,(oe-z)*y+ge)),lt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te+ee)*a+re,(oe+z)*y+ge,(te+z)*a+re,(oe+ee)*y+ge)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ge,te*a+re,(oe+ee)*y+ge,(te+ee-z*.5)*a+re,(oe+z)*y+ge)),lt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te+ee-z*.5)*a+re,(oe-z)*y+ge,te*a+re,(oe-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ge=ae();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ge);var he=ie(oe.x,oe.y),ue=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),De(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ge,oe,te,te),ue.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)),b=me*.3,x=.3,De(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ge,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*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+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ge),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).close());var ue=new go.PathFigure(.45*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Me(te),Me(oe),Me(re),Me(ge),Me(he),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ge=.5,he=.5,ue=0,ze=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ge*y,re*a,.7*y,re*a,ge*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*a,(ue+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ge=re*.5,he=z,ue=z,ze=re*he,Ce=re*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*a,te*y,(ee-(ze+he)/2)*a,(te+(ue+Ce)/2)*y,(ee-he)*a,(te+Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-ue)*y,(ee-he)*a,(te-Ce)*y,(ee-ze)*a,(te-ue)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*a,te*y,(ee+ze)*a,(te-ue)*y,(ee+he)*a,(te-Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+he)*a,(te+Ce)*y,(ee+(ze+he)/2)*a,(te+(ue+Ce)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var lt=new go.PathFigure(.2*a,y,!1);E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return E.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);E.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()),z=.1,ee=me*.1,te=.8,oe=.9;var ge=new go.PathFigure((te-z)*a,oe*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,re=.1,ge=.9,he=new go.PathFigure((re-te)*a,ge*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-te)*y,(re-te)*a,(ge-oe)*y,(re-oe)*a,(ge-te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ge*y,(re+oe)*a,(ge-te)*y,(re+te)*a,(ge-oe)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+te)*y,(re+te)*a,(ge+oe)*y,(re+oe)*a,(ge+te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ge*y,(re-oe)*a,(ge+te)*y,(re-te)*a,(ge+oe)*y)),te=.1,oe=me*.1,re=.4,ge=.9;var ue=new go.PathFigure((re-te)*a,ge*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-te)*y,(re-te)*a,(ge-oe)*y,(re-oe)*a,(ge-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ge*y,(re+oe)*a,(ge-te)*y,(re+te)*a,(ge-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+te)*y,(re+te)*a,(ge+oe)*y,(re+oe)*a,(ge+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ge*y,(re-oe)*a,(ge+te)*y,(re-te)*a,(ge+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ge=me*.05,he=.175,ue=.95,ee=new go.PathFigure((he-re)*a,ue*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue-re)*y,(he-re)*a,(ue-ge)*y,(he-ge)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ue*y,(he+ge)*a,(ue-re)*y,(he+re)*a,(ue-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue+re)*y,(he+re)*a,(ue+ge)*y,(he+ge)*a,(ue+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ue*y,(he-ge)*a,(ue+re)*y,(he-re)*a,(ue+ge)*y));var re=.05,ge=me*.05,he=.375,ue=.95,te=new go.PathFigure((he-re)*a,ue*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue-re)*y,(he-re)*a,(ue-ge)*y,(he-ge)*a,(ue-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ue*y,(he+ge)*a,(ue-re)*y,(he+re)*a,(ue-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue+re)*y,(he+re)*a,(ue+ge)*y,(he+ge)*a,(ue+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ue*y,(he-ge)*a,(ue+re)*y,(he-re)*a,(ue+ge)*y));var re=.05,ge=me*.05,he=.625,ue=.95,oe=new go.PathFigure((he-re)*a,ue*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue-re)*y,(he-re)*a,(ue-ge)*y,(he-ge)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ue*y,(he+ge)*a,(ue-re)*y,(he+re)*a,(ue-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue+re)*y,(he+re)*a,(ue+ge)*y,(he+ge)*a,(ue+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ue*y,(he-ge)*a,(ue+re)*y,(he-re)*a,(ue+ge)*y));var re=.05,ge=me*.05,he=.825,ue=.95,ze=new go.PathFigure((he-re)*a,ue*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue-re)*y,(he-re)*a,(ue-ge)*y,(he-ge)*a,(ue-re)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ue*y,(he+ge)*a,(ue-re)*y,(he+re)*a,(ue-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ue+re)*y,(he+re)*a,(ue+ge)*y,(he+ge)*a,(ue+re)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ue*y,(he-ge)*a,(ue+re)*y,(he-re)*a,(ue+ge)*y).close());var Ce=new go.PathFigure(0,y,!1);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,re=.775,ge=new go.PathFigure((oe-ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),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)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.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()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 Be={},nt="5.0",ie={},ae=null,Me=!1,Qe=!1,De=null,ve=!1,we=null,me=null,Ie=0;Ie<arguments.length;Ie++){var Oe=arguments[Ie];if(Oe!==null)switch(typeof Oe){case"number":nt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?nt=Oe:De=Oe;break;case"object":typeof Oe.is3D!="undefined"?ae=Oe:ie=Oe;break;case"boolean":Me=Oe,Qe=!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},ie.material_id!==void 0&&!Qe&&(Me=!0)),De!==null&&ie.id===void 0&&(ie.id=De);var Re="",We="",Ye=!1,Ze=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var te=function(pe){return parseFloat(pe)>4?parseFloat(pe):5};Be.setHTML5Codebase=function(pe,Ae){me=pe,on(pe,Ae)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(pe,Ae){var Fe=parseFloat(pe);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}we=pe,xt(pe,Ae)},Be.getHTML5CodebaseVersion=function(){return ne},Be.getParameters=function(){return ie},Be.setFontsCSSURL=function(pe){z=pe},Be.setGiacJSURL=function(pe){},Be.setJNLPFile=function(pe){Re=pe},Be.setJNLPBaseDir=function(pe){},Be.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",Fe=ie.id,He,Ee=!1,qe=0;qe<arguments.length;qe++){var de=arguments[qe];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=de:Fe=arguments[qe]):typeof de=="boolean"?Ee=de:de instanceof HTMLElement&&(He=de)}Xe();function Xe(){if(!ve){setTimeout(Xe,200);return}Ae=sn(Ae);var St=He||document.getElementById(Fe);if(!St){console.log("possibly bug on ajax loading? ");return}if(Be.removeExistingApplet(St,!1),ie.width===void 0&&St.clientWidth&&(ie.width=St.clientWidth),ie.height===void 0&&St.clientHeight&&(ie.height=St.clientHeight),!(ie.width&&ie.height)&&Ae==="html5"&&(delete ie.width,delete ie.height),Ze=Ae,Ae==="screenshot")zt(St,ie);else{var _t=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?_t=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(_t=(!oe()||pe())&&re()),_t?(Ze="screenshot",$t(St,ie,Ee,Ae)):lt(St,ie,Ee)}}};function oe(){try{return window.self!==window.top}catch(pe){return!0}}function re(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Be.getViews=function(){return ae},Be.isJavaInstalled=function(){return!1};var ge=function(pe){var Ae=function(qe){var de=JSON.parse(qe),Xe=function(mt){return mt.type=="G"||mt.type=="E"},St=de.elements?de.elements.filter(Xe)[0]:de;if(!St||!St.url){Fe();return}ie.fileName=St.url,he(St.settings||{}),ae.is3D=!0;var _t="https://www.geogebra.org/images/";Be.setPreviewImage(E||St.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),pe()},Fe=function(){ie.onError&&ie.onError(),Mn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},He=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ee="/materials/"+ie.material_id+"?scope=basic";ue("https://"+He+"/api/proxy.php?path="+encodeURIComponent(Ee),Ae,Fe)};function he(pe){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Fe){pe[Fe]=!!pe[Fe]}),Ae.forEach(function(Fe){ie[Fe]===void 0&&pe[Fe]!==void 0&&(ie[Fe]=pe[Fe])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function ue(pe,Ae,Fe){var He=new XMLHttpRequest;He.open("GET",pe),He.onload=function(){Ae(He.responseText)},He.onerror=Fe,He.send()}Be.isHTML5Installed=function(){return!0},Be.getLoadedAppletType=function(){return Ze},Be.setPreviewImage=function(pe,Ae,Fe){E=pe,b=Ae,x=Fe},Be.removeExistingApplet=function(pe,Ae){var Fe;typeof pe=="string"&&(pe=document.getElementById(pe)),Ze=null;var He=null;for(Fe=0;Fe<pe.childNodes.length;Fe++){var Ee=pe.childNodes[Fe],qe=Ee.className;qe==="applet_screenshot"?Ae?(Ee.style.display="block",Ze="screenshot"):Ee.style.display="none":qe!=="applet_scaler prerender"&&(pe.removeChild(Ee),He=qe&&qe.indexOf("appletParameters")!=-1?Ee.id:null,Fe--)}var de=ie.id!==void 0?ie.id:He,Xe=window[de];Xe&&typeof Xe.getBase64=="function"&&(Xe.remove(),window[de]=null)},Be.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=Be.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var pe=Be.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},Be.stopAnimation=function(){var pe=Be.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},Be.getAppletObject=function(){var pe=ie.id!==void 0?ie.id:"ggbApplet";return window[pe]},Be.resize=function(){};var ze=function(pe,Ae,Fe){var He=document.createElement("param");He.setAttribute("name",Ae),He.setAttribute("value",Fe),pe.appendChild(He)},Ce=function(pe){return pe&&pe!=="false"},lt=function(pe,Ae,Fe){te(ne)<=4.2&&(Fe=!0);var He=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(He=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ee=document.createElement("div");Ee.classList.add("appletParameters","notranslate");var qe=Ae.width,de=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(te(ne)<=4.4)Ce(Ae.showToolBar)&&(Ae.height-=7),Ce(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&Ce(Ae.showToolBar)&&(Ae.width=605,qe=605);else{var Xe=100;(Ce(Ae.showToolBar)||Ce(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),Xe=Ce(Ae.showMenuBar)?245:155),qe<Xe&&(Ae.width=Xe,qe=Xe)}Ee.style.border="none",Ee.style.display="inline-block";for(var St in Ae)Ae.hasOwnProperty(St)&&St!=="appletOnLoad"&&Ee.setAttribute("data-param-"+St,Ae[St]);z&&Ee.setAttribute("data-param-fontscssurl",z),Be.resize=function(){GGBAppletUtils.responsiveResize(pe,Ae)},window.addEventListener("resize",function(tn){Be.resize()});var _t=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!Fe&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||Ee.setAttribute("data-param-showSplash","false");var mt=pe.querySelector(".applet_scaler.prerender"),Vt=mt!==null;if(Vt)var Bt=mt.querySelector(".ggb_preview");else{var Bt=bt(qe,de,Ae.borderColor,!1);mt=document.createElement("div"),mt.className="applet_scaler",mt.style.position="relative",mt.style.display="block",mt.style.width=qe+"px",mt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(mt,"66%"),te(ne)>=5?(Ae.appletOnLoad=function(tn){var Nn=pe.querySelector(".ggb_preview");Nn&&Nn.parentNode.removeChild(Nn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(mt),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(tn)},Vt||mt.appendChild(Bt)):Ee.appendChild(Bt),mt.appendChild(Ee),Vt||pe.appendChild(mt),setTimeout(function(){Be.resize()},1)}else{var Ot=document.createElement("div");Ot.className="applet_scaler",Ot.style.position="relative",Ot.style.display="block",Ot.appendChild(Ee),pe.appendChild(Ot),Ae.appletOnLoad=function(tn){Be.resize(),_t(tn)}}function At(tn,Nn){Nn&&typeof Nn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(tn,Nn.appletOnLoad):renderGGBElement(tn),Mn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nn)}function ln(tn,Nn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:tn,params:Nn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(fa){At(fa.article,fa.params)}),html5AppletsToProcess=null)},te(ne)<5&&(tn.className+=" geogebraweb")):At(tn,Nn)}if(He){scriptLoadStarted=!0;for(var kt=0;kt<Ee.childNodes.length;kt++){var Ln=Ee.childNodes[kt].tagName;Ln==="TABLE"&&(Ee.removeChild(Ee.childNodes[kt]),kt--)}if(ggbHTML5LoadedScript!==null){var Cn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Cn!=null&&Cn.parentNode.removeChild(Cn)}var rn=document.createElement("script"),Xn=function(){ln(Ee,Ae)};rn.src=We+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=rn.src,Mn("GeoGebra HTML5 codebase loaded: '"+We+"'.",Ae),!me&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Xn()):We.requirejs?__webpack_require__.e(12).then(function(){var tn=[__webpack_require__(12)];Xn.apply(null,tn)}.bind(this)).catch(__webpack_require__.oe):(rn.onload=Xn,pe.appendChild(rn))}else ln(Ee,Ae);Ae.height=de,Ae.width=qe},zt=function(pe,Ae,Fe){var He=bt(Ae.width,Ae.height,Ae.borderColor,Fe),Ee=document.createElement("div");Ee.style.position="relative",Ee.style.display="block",Ee.style.width=Ae.width+"px",Ee.style.height=Ae.height+"px",Ee.className="applet_screenshot applet_scaler"+(Fe?" applet_screenshot_play":""),Ee.appendChild(He);var qe=GGBAppletUtils.getScale(Ae,pe,Fe);Fe?(pe.appendChild(Ft()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ee,"66%"),pe.appendChild(Ee),qe!==1&&!isNaN(qe)&&(GGBAppletUtils.scaleElement(Ee,qe),Ee.style.width=Ae.width+"px",Ee.style.height=Ae.height+"px",Ee.parentNode.style.width=Ae.width*qe+"px",Ee.parentNode.style.height=Ae.height*qe+"px"),Be.resize=function(){Kt(pe,He,Ee,Fe)},window.addEventListener("resize",function(de){Be.resize()}),Be.resize()};function Kt(pe,Ae,Fe,He){if(pe.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var Ee=GGBAppletUtils.getScale(ie,pe,He);Fe.parentNode!==null&&(!isNaN(Ee)&&Ee!==1?(GGBAppletUtils.scaleElement(Fe,Ee),Fe.parentNode.style.width=ie.width*Ee+"px",Fe.parentNode.style.height=ie.height*Ee+"px"):(GGBAppletUtils.scaleElement(Fe,1),Fe.parentNode.style.width=ie.width+"px",Fe.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Be.onExitFullscreen=function(pe,Ae){Ae.appendChild(pe)};var $t=function(pe,Ae,Fe,He){zt(pe,Ae,!0);for(var Ee=function(){var Xe=[];for(de=0;de<pe.childNodes.length;de++)Xe.push(pe.childNodes[de]);if(window.GGBT_wsf_view){var St=window.GGBT_wsf_view.renderFullScreen(pe,Ae.id),_t=document.getElementById("fullscreencontainer"),mt=jQuery(pe).find(".fullscreencontent");mt.length>0?(St.remove(),mt.attr("id","fullscreencontent").show(),jQuery(_t).append(mt),window.dispatchEvent(new Event("resize"))):lt(St,Ae,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Ze=He,lt(pe,Ae,!1);if(!window.GGBT_wsf_view)for(de=0;de<Xe.length;de++)pe.removeChild(Xe[de])},qe=pe.getElementsByClassName("ggb_preview_play"),de=0;de<qe.length;de++)qe[de].addEventListener("click",Ee,!1),qe[de].addEventListener("ontouchstart",Ee,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ft=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.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");}',Fe=document.createElement("style");Fe.styleSheet?Fe.styleSheet.cssText=Ae:Fe.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(Fe)}return pe},bt=function(pe,Ae,Fe,He){var Ee=document.createElement("div");Ee.className="ggb_preview",Ee.style.position="absolute",Ee.style.zIndex="90",Ee.style.width=pe-2+"px",Ee.style.height=Ae-2+"px",Ee.style.top="0px",Ee.style.left="0px",Ee.style.overflow="hidden",Ee.style.backgroundColor="white";var qe="lightgrey";Fe!==void 0&&(Fe==="none"?qe="transparent":qe=Fe),Ee.style.border="1px solid "+qe;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Xe,St,_t;if(!He){Xe=document.createElement("img"),Xe.style.position="absolute",Xe.style.zIndex="1001",Xe.style.opacity=1,de.style.opacity=.3,St=360,St>pe/4*3&&(St=pe/4*3),_t=St/5.8,Xe.setAttribute("src",b),Xe.setAttribute("width",St),Xe.setAttribute("height",_t);var mt=(pe-St)/2,Vt=(Ae-_t)/2;Xe.style.left=mt+"px",Xe.style.top=Vt+"px",Ee.appendChild(Xe)}}return Ee.appendChild(de),Ee},sn=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},en=["web","webSimple","web3d","tablet","tablet3d","phone"],xt=function(pe,Ae){if(ne=pe,Ae){on(ne,!0);return}var Fe=!Me;if(Fe){var He=te(ne);!isNaN(He)&&He<4.4&&(Fe=!1)}var Ee,qe;window.location.protocol.substr(0,4)==="http"?Ee=window.location.protocol:Ee="http:";var de=ne.indexOf("//");de>0?qe=ne:de===0?qe=Ee+ne:qe="https://www.geogebra.org/apps/5.2.814.0/";for(var Xe in en)if(ne.slice(en[Xe].length*-1)===en[Xe]||ne.slice((en[Xe].length+1)*-1)===en[Xe]+"/"){on(qe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ce(ie.showToolBar)&&!Ce(ie.showMenuBar)&&!Ce(ie.showAlgebraInput)&&!Ce(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?qe+="webSimple/":qe+="web3d/",on(qe,!1)},on=function(pe,Ae){if(pe.requirejs){We=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),We=pe,Ae===null&&(Ae=pe.indexOf("http")===-1),Ye=Ae,a="web.nocache.js",y=!1;var Fe=We.split("/");Fe.length>1&&(!Ae&&Fe[Fe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):en.indexOf(Fe[Fe.length-2])>=0&&(a=Fe[Fe.length-2]+".nocache.js")),Fe=pe.split("/"),ne=Fe[Fe.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 He=parseFloat(ne);He!==NaN&&He<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+He+" is deprecated. Using version latest instead."),xt("5.0",Ae))},Mn=function(pe,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(pe)};ie.material_id!==void 0?ge(vn):vn();function vn(){var pe=nt;we!==null?pe=we:parseFloat(pe)<5&&(pe="5.0"),xt(pe,!1),me!==null&&on(me,Ye),ve=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function nt(ve,we){we!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+we+","+we+")",ve.style.webkitTransform="scale("+we+","+we+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function ie(ve,we,me,Ie,Oe,Re){var We=null;if(Re!=null&&Re!="")for(var Ye=ve.parentNode;Ye!=null;)if((" "+Ye.className+" ").indexOf(" "+Re+" ")>-1){We=Ye;break}else Ye=Ye.parentNode;var Ze=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(We)Ze=We.offsetWidth,ne=Math.max(Ie?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ze):(Ze=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=Ze&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=Ze-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ve&&((me===void 0||!me)&&we>0&&we+y<Ze?Ze=we:Ze-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:Ze,height:ne}}function ae(ve,we,me,Ie,Oe){if(ve.isScreenshoGenerator)return 1;var Re=Ie!==void 0&&Ie,We=ve.noScaleMargin!=null&&ve.noScaleMargin,Ye=function(ee){return ee&&ee!=="false"},Ze=Ye(ve.autoHeight),ne=ie(we,ve.width,me,Ze,Re&&window.GGBT_wsf_view||We,Oe),a=parseInt(ne.width),y=ve.width,E=ve.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Re?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Me(ve,we,me){var Ie=1,Oe,Re=!1;if(ve.hasOwnProperty("allowUpscale")&&(Re=ve.allowUpscale),ve.hasOwnProperty("scale")&&(Ie=parseFloat(ve.scale),(isNaN(Ie)||Ie===null||Ie===0)&&(Ie=1),Ie>1&&(Re=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Re=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Oe=ae(ve,we,Re,me,ve.scaleContainerClass);else return Ie;return Re&&(!ve.hasOwnProperty("scale")||Ie===1)?Oe:Math.min(Ie,Oe)}function Qe(ve){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=ve.getBoundingClientRect(),Oe=(we-Ie.width)/2,Re=(me-Ie.height)/2;Re<0&&(Re=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?ve.style.left="40px":ve.style.left=Oe+"px",ve.style.top=Re+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Re<40?ve.style.top="40px":ve.style.top=Re+"px",ve.style.left=Oe+"px")}function De(ve,we){var me=ve.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ie=Me(we,ve);Be()&&me.setAttribute("data-param-scale",Ie);for(var Oe=null,Re=0;Re<ve.childNodes.length;Re++)if(ve.childNodes[Re].className!==void 0&&ve.childNodes[Re].className.match(/^applet_scaler/)){Oe=ve.childNodes[Re];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var We=we.id!==void 0?we.id:"ggbApplet",Ye=window[We];(Ye==null||!Ye.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(Oe.parentNode.style.width=we.width*Ie+"px",Oe.parentNode.style.height=we.height*Ie+"px",nt(Oe,Ie)):(nt(Oe,1),Oe.parentNode.style.width=we.width+"px",Oe.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Qe(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:Be,positionCenter:Qe,getScale:Me,scaleElement:nt}}();__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 Be=n.location.search;return Be.indexOf(J)!=-1||Be.indexOf(K)!=-1}function q(Be,nt){}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(Be){var nt=s[L].bindings;s[L].bindings=function(){for(var ie=nt?nt():{},ae=Be[webModule.__softPermutationId],Me=O;Me<ae.length;Me++){var Qe=ae[Me];ie[Qe[O]]=Qe[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Be=o.createElement(Q);if(Be.id=L,Be.style.cssText=R+S,Be.tabIndex=-1,o.body.appendChild(Be),t=Be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var nt=document.compatMode==U?V:W;t.write(nt+X),t.close()}}}function w(Be){function nt(ae){function Me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Qe=Me();if(Qe){ae();return}function De(){if(!Qe){if(!Me())return;Qe=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,De,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,De,!1);var ve=setInterval(function(){De()},$)}function ie(ae){var Me=u(),Qe=Me.body,De=Me.createElement(_);De.language=ab,De.crossOrigin=W,De.src=ae,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Qe.appendChild(De)}nt(function(){ie(Be)})}webModule.__startLoadingFragment=function(Be){return C(Be)},webModule.__installRunAsyncCode=function(Be){var nt=u(),ie=nt.body,ae=nt.createElement(_);ae.language=ab,ae.text=Be,ie.appendChild(ae),ie.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(Be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Be){var nt=c[Be];return nt==null?null:nt},r=d,webModule.__errFn=e}function B(){function Be(ve){var we=ve.lastIndexOf(rb);we==-1&&(we=ve.length);var me=ve.indexOf(sb);me==-1&&(me=ve.length);var Ie=ve.lastIndexOf(tb,Math.min(me,we));return Ie>=O?ve.substring(O,Ie+P):W}function nt(ve){if(!ve.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ve+vb,ve=Be(we.src)}return ve}function ie(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),we=O;we<ve.length;++we)if(ve[we].src.indexOf(xb)!=-1)return Be(ve[we].src);return W}function Me(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Qe(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var De=ie();return De==W&&(De=ae()),De==W&&(De=Me()),De==W&&Qe()&&(De=Be(o.location.href)),De=nt(De),De}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],nt=O,ie=[],ae=[];function Me(ve){var we=ae[ve](),me=ie[ve];if(we in me)return we;var Ie=[];for(var Oe in me)Ie[me[Oe]]=Oe;throw r&&r(ve,Ie,we),null}if(__gwt_isKnownPropertyValue=function(ve,we){return we in ie[ve]},webModule.__getPropMap=function(){var ve={};for(var we in ie)ie.hasOwnProperty(we)&&(ve[we]=Me(we));return ve},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Qe;try{Qe=Cb;var De=Qe.indexOf(Db);De!=-1&&(nt=parseInt(Qe.substring(De+P),$),Qe=Qe.substring(O,De))}catch(ve){}return webModule.__softPermutationId=nt,C(Qe+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(Be,nt,ie){"use strict";ie.d(nt,{Ax:function(){return De},Ds:function(){return ve},KI:function(){return me},SI:function(){return Qe},f1:function(){return Me}});var ae=ie(11320);function Me(Ie){let Oe=!0;if(Ie.length>0){for(let Re=0;Re<Ie.length;Re++)if(Ie[Re].compile_success==0||!Ie[Re].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Qe(Ie,Oe=""){let Re=[];for(let We=0;We<Ie.length;We++){let Ye=Ie[We],Ze=Oe?`${Oe}/${Ye.name}`:`${Ye.name}`;Re.push({title:Ye.name,type:Ye.type,isLeaf:Ye.type!=="tree",key:Ze})}return Re}function De(Ie,Oe,Re){for(let We=0;We<Ie.length;We++){let Ye=Ie[We];if(Ye.key===Oe){Ye.children=Re;break}Ye.children&&De(Ye.children,Oe,Re)}return Ie}function ve(Ie,Oe,Re){let We;return function(){let Ye=this,Ze=arguments,ne=function(){We=null,Re||Ie.apply(Ye,Ze)},a=Re&&!We;clearTimeout(We),We=setTimeout(ne,Oe),a&&Ie.apply(Ye,Ze)}}const we=!0,me=ae.Z.API_SERVER},63205:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return We}});var ae=ie(67294),Me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Qe=ie(94184),De=ie.n(Qe),ve=ie(57953),we=ie(15979),me=ie(33170),Ie=ie(28706),Oe=(Ye,Ze,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Ye,Ze)).next())}),We=({data:Ye,className:Ze,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ge]=(0,ae.useState)(!1),[he,ue]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ye!=null&&Ye.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ye!=null&&Ye.src&&ze()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ye==null?void 0:Ye.visible]);const ze=()=>Oe(void 0,null,function*(){ge(!0),ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $t=yield(0,Ie.ZJ)(Ye==null?void 0:Ye.src);z.current.src="",z.current.src=$t,z.current.onload=function(){Kt()},ge(!1),ue("")}),Ce=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},lt=$t=>Oe(void 0,null,function*(){ge(!0),ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ft=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ye.title,file:$t.dataUrl}});Ft!=null&&Ft.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Ye.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ft==null?void 0:Ft.id,settings:JSON.stringify($t.state)}})).status===0&&E():Ft!=null&&Ft.id&&E(Ft),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),ue("")}),zt=()=>{const $t=document.querySelector('a[href="https://markerjs.com/"]');$t&&$t.parentNode&&($t.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(bt=>{const sn=document.querySelector(bt.name);sn&&sn.setAttribute("title",bt.title)})},Kt=()=>{ee.current=new we.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",lt),ee.current.addEventListener("beforeclose",Ce),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(),Ye!=null&&Ye.snapshotData&&ee.current.restoreState(Ye.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return ae.createElement(ae.Fragment,null,(Ye==null?void 0:Ye.visible)&&ae.createElement(ve.Z,{spinning:re,tip:he,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:De()(Me.imageDimensions,Ze,ne?Me.fullWidth:""),style:a},ae.createElement("img",{className:Me.img,ref:z}))))}},36527:function(Be,nt,ie){"use strict";var ae=ie(67294),Me=ie(71230),Qe=ie(15746),De=ie(36182),ve=ie(71577),we=ie(85725),me=ie(71736),Ie=ie(84279),Oe=ie(67294);const Re=(0,ae.forwardRef)(({callback:We,showSaveButton:Ye,value:Ze=""},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 "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(Me.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(Qe.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(we.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},Oe.createElement("h1",null,oe.name),Oe.createElement(Me.Z,{gutter:[10,10]},oe.data.map((ge,he)=>Oe.createElement(Qe.Z,{key:he,onClick:()=>b(ge),className:me.Z.diamond},Oe.createElement(we.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Me.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Oe.createElement(Qe.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(we.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},oe.name&&Oe.createElement("h1",null,oe.name),Oe.createElement(Me.Z,{gutter:[10,10]},oe.data.map((ge,he)=>Oe.createElement(Qe.Z,{key:he,onClick:()=>b(ge),className:me.Z.diamond},Oe.createElement(we.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return We&&We(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Oe.createElement("div",{className:me.Z.mathWrap},Oe.createElement(De.default,{defaultActiveKey:"1",items:x}),Oe.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ze||""),Ye&&Oe.createElement("div",{className:me.Z.button},Oe.createElement(ve.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});nt.Z=Re},57444:function(Be,nt,ie){"use strict";ie.d(nt,{h:function(){return ee}});var ae=ie(67294),Me=ie(42563),Qe=ie(91773),De=ie(71577),ve=ie(4631),we=ie.n(ve),me=ie(71749),Ie=ie(30483),Oe=Object.defineProperty,Re=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Oe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ze.call(oe,re)&&a(te,re,oe[re]);if(Ye)for(var re of Ye(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},E=(te,oe)=>Re(te,We(oe));const b=Me.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};nt.Z=({callback:te,onCancel:oe})=>{const[re,ge]=(0,ae.useState)("python");function he(ze){ge(z[ze][1])}function ue(ze){te(ze)}return ae.createElement(Qe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ue,style:{width:500}}),ae.createElement(Qe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Me.default,{getPopupContainer:ze=>ze.parentNode,onChange:he},Object.keys(z).map(ze=>ae.createElement(b,{key:ze,value:ze},z[ze][0])))),ae.createElement(Qe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(De.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ge={}}){const he=(0,ae.useRef)(),[ue,ze]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ue){let Ce=function(lt){const zt=lt.getValue();oe&&oe(zt)};return ue.on("change",Ce),()=>{ue.off("change",Ce)}}},[ue,oe]),(0,ae.useEffect)(()=>{ue&&ue.setOption("mode",re)},[ue,re]),(0,ae.useEffect)(()=>{ue&&(te!==ue.getValue()||te==="")&&setTimeout(()=>{ue.setValue(te||"")},300)},[ue,te]),(0,ae.useEffect)(()=>{if(he.current&&!ue){const Ce=we().fromTextArea(he.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));ze(Ce)}},[he.current,ue]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:he}))}},35567:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return Kn}});var ae=ie(67294),Me=ie(4631),Qe=ie.n(Me),De=ie(91033),ve=ie(71749),we=ie(57341),me=ie(82801),Ie=ie(88386),Oe=ie(49047),Re=ie(80785),We=ie(85725),Ye=({value:Se="",className:Pe,showTextOnly:ce,showLines:je,style:gt={}})=>{const at=(0,ae.useMemo)(()=>"",[Se]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},Ze=ie(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Se,Pe,ce)=>Pe in Se?ne(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Se[Pe]=ce,ee=(Se,Pe)=>{for(var ce in Pe||(Pe={}))b.call(Pe,ce)&&z(Se,ce,Pe[ce]);if(E)for(var ce of E(Pe))x.call(Pe,ce)&&z(Se,ce,Pe[ce]);return Se},te=(Se,Pe)=>a(Se,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 re({onActionCallback:Se,title:Pe,icon:ce,actionName:je,className:gt="",children:at}){function Rt(){Se(je)}return Ze.createElement("a",{title:Pe,className:gt,onClick:Rt},Ze.createElement("i",{className:`${ce}`}),at)}var ge=({watch:Se,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:je,fullScreen:gt,insertTemp:at,hidetoolBar:Rt,extraUse:Lt})=>{const Nt=[...oe,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ze.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&Nt.map((qt,wn)=>Ze.createElement("li",{key:wn},qt.actionName?Ze.createElement(re,te(ee({},qt),{onActionCallback:je})):Ze.createElement("span",{className:"v-line"}))),Pe?Ze.createElement("li",null,Ze.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:je},Ze.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?Ze.createElement(Ze.Fragment,null,Ze.createElement("li",null,Ze.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:je},Ze.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ze.createElement("li",null,Ze.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:je},Ze.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,at&&Ze.createElement("li",null,Ze.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${at}`,onActionCallback:je},Ze.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Lt&&Ze.createElement("li",null,Lt),Ze.createElement("li",{className:"btn-full-screen"},Ze.createElement(re,{icon:`${gt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:gt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:je})))},he=ie(76621),ue=ie(91773),ze=ie(11486),Ce=ie(71577),lt=Object.defineProperty,zt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,sn=(Se,Pe,ce)=>Pe in Se?lt(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Se[Pe]=ce,en=(Se,Pe)=>{for(var ce in Pe||(Pe={}))Ft.call(Pe,ce)&&sn(Se,ce,Pe[ce]);if($t)for(var ce of $t(Pe))bt.call(Pe,ce)&&sn(Se,ce,Pe[ce]);return Se},xt=(Se,Pe)=>zt(Se,Kt(Pe));const on={labelCol:{span:4},wrapperCol:{span:20}};var Mn=({callback:Se,onCancel:Pe})=>{function ce(je){Se(je)}return ae.createElement(ue.default,xt(en({},on),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ze.default,null)),ae.createElement(ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ze.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ce.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},vn=ie(57444),pe=ie(70859),Ae=ie(14446),Fe=ie(71230),He=ie(63205),Ee=ie(67294),qe=({callback:Se,onCancel:Pe})=>{const ce=document.createElement("canvas"),je=ce.getContext("2d");ce.width=1e3,ce.height=800,je.fillStyle="#ffffff",je.fillRect(0,0,ce.width,ce.height);const gt=ce.toDataURL("image/png");return Ee.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ee.createElement(Fe.Z,{style:{height:"100vh"}},Ee.createElement(He.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gt,visible:!0,title:String(Date.now())},onOk:at=>{Se({src:at.url})},onClose:Pe})))},de=ie(23495);function Xe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Xe,go.CommandHandler),Xe.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},Xe.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var Pe=1/0;Se.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),Se.commitTransaction("aligning left")},Xe.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var Pe=-1/0;Se.selection.each(function(ce){if(!(ce instanceof go.Link)){var je=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(je,Pe)}}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),Se.commitTransaction("aligning right")},Xe.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var Pe=1/0;Se.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),Se.commitTransaction("alignTop")},Xe.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var Pe=-1/0;Se.selection.each(function(ce){if(!(ce instanceof go.Link)){var je=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(je,Pe)}}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),Se.commitTransaction("aligning bottom")},Xe.prototype.alignCenterX=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;Se.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(ce-je.actualBounds.width/2,je.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},Xe.prototype.alignCenterY=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;Se.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.actualBounds.x,ce-je.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},Xe.prototype.alignColumn=function(Se){var Pe=this.diagram;Pe.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var ce=new Array;Pe.selection.each(function(Lt){Lt instanceof go.Link||ce.push(Lt)});for(var je=0;je<ce.length-1;je++){var gt=ce[je],at=gt.actualBounds.y+gt.actualBounds.height+Se,Rt=ce[je+1];Rt.move(new go.Point(gt.actualBounds.x,at))}Pe.commitTransaction("align Column")},Xe.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(Lt){Lt instanceof go.Link||ce.push(Lt)});for(var je=0;je<ce.length-1;je++){var gt=ce[je],at=gt.actualBounds.x+gt.actualBounds.width+Se,Rt=ce[je+1];Rt.move(new go.Point(at,gt.actualBounds.y))}Pe.commitTransaction("align Row")},Xe.prototype.canRotate=function(Se){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Xe.prototype.rotate=function(Se){Se===void 0&&(Se=90);var Pe=this.diagram;Pe.startTransaction("rotate "+Se.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=Se)}),Pe.commitTransaction("rotate "+Se.toString())},Xe.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var Pe=new go.Map;Se.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var je=0;ce.parts.each(function(gt){if(!gt.isSelected){var at=gt.zOrder;isNaN(at)?gt.zOrder=0:je=Math.max(je,at)}}),Pe.set(ce,je)}),Se.selection.each(function(ce){Xe._assignZOrder(ce,Pe.get(ce.layer)+1)}),Se.commitTransaction("pullToFront")},Xe.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var Pe=new go.Map;Se.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var je=0;ce.parts.each(function(gt){if(!gt.isSelected){var at=gt.zOrder;isNaN(at)?gt.zOrder=0:je=Math.min(je,at)}}),Pe.set(ce,je)}),Se.selection.each(function(ce){Xe._assignZOrder(ce,Pe.get(ce.layer)-1-Xe._findGroupDepth(ce))}),Se.commitTransaction("pushToBack")},Xe._assignZOrder=function(Se,Pe,ce){ce===void 0&&(ce=Se),Se.layer===ce.layer&&(Se.zOrder=Pe),Se instanceof go.Group&&Se.memberParts.each(function(je){Xe._assignZOrder(je,Pe+1,ce)})},Xe._findGroupDepth=function(Se){if(Se instanceof go.Group){var Pe=0;return Se.memberParts.each(function(ce){Pe=Math.max(Pe,Xe._findGroupDepth(ce))}),Pe+1}else return 0},Xe.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var Pe=Se.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Xe.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(Pe){Se.push(Pe)}),this.diagram.parts.each(function(Pe){Se.push(Pe)}),Se},Xe.prototype._arrowKeyMove=function(){var Se=this.diagram,Pe=Se.lastInput,ce=0,je=0;if(Pe.control||Pe.meta)ce=1,je=1;else if(Se.grid!==null){var gt=Se.grid.gridCellSize;je=gt.width,ce=gt.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(at){Pe.key==="Up"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y-ce)):Pe.key==="Down"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y+ce)):Pe.key==="Left"?at.move(new go.Point(at.actualBounds.x-je,at.actualBounds.y)):Pe.key==="Right"&&at.move(new go.Point(at.actualBounds.x+je,at.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},Xe.prototype._arrowKeySelect=function(){var Se=this.diagram,Pe=Se.lastInput,ce=null;Pe.key==="Up"?ce=this._findNearestPartTowards(270):Pe.key==="Down"?ce=this._findNearestPartTowards(90):Pe.key==="Left"?ce=this._findNearestPartTowards(180):Pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(Pe.shift?ce.isSelected=!0:Pe.control||Pe.meta?ce.isSelected=!ce.isSelected:Se.select(ce))},Xe.prototype._findNearestPartTowards=function(Se){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,je=this._getAllParts(),gt=1/0,at=Pe,Rt=0;Rt<je.length;Rt++){var Lt=je[Rt];if(Lt!==Pe&&Lt.canSelect()){var Nt=Lt.actualBounds.center,qt=ce.directionPoint(Nt),wn=this._angleCloseness(qt,Se);if(wn<=45){var ke=ce.distanceSquaredPoint(Nt);ke*=1+Math.sin(wn*Math.PI/180),ke<gt&&(gt=ke,at=Lt)}}}return at},Xe.prototype._angleCloseness=function(Se,Pe){return Math.min(Math.abs(Pe-Se),Math.min(Math.abs(Pe+360-Se),Math.abs(Pe-360-Se)))},Xe.prototype._arrowKeyTree=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe instanceof go.Node){var ce=Se.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)Se.commandHandler.canExpandTree(Pe)&&Se.commandHandler.expandTree(Pe);else{var je=this._sortTreeChildrenByY(Pe).first();je!==null&&Se.select(je)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)Se.commandHandler.canCollapseTree(Pe)&&Se.commandHandler.collapseTree(Pe);else{var gt=Pe.findTreeParentNode();gt!==null&&Se.select(gt)}else if(ce.key==="Up"){var gt=Pe.findTreeParentNode();if(gt!==null){var at=this._sortTreeChildrenByY(gt),Rt=at.indexOf(Pe);if(Rt>0){for(var Lt=at.elt(Rt-1);Lt!==null&&Lt.isTreeExpanded&&!Lt.isTreeLeaf;){var Nt=this._sortTreeChildrenByY(Lt);Lt=Nt.last()}Lt!==null&&Se.select(Lt)}else Se.select(gt)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var je=this._sortTreeChildrenByY(Pe).first();je!==null&&Se.select(je)}else for(;Pe!==null;){var gt=Pe.findTreeParentNode();if(gt===null)break;var at=this._sortTreeChildrenByY(gt),Rt=at.indexOf(Pe);if(Rt<at.length-1){Se.select(at.elt(Rt+1));break}else Pe=gt}var qt=Se.selection.first();qt!==null&&Se.scrollToRect(qt.actualBounds)}},Xe.prototype._sortTreeChildrenByY=function(Se){var Pe=new go.List().addAll(Se.findTreeChildrenNodes());return Pe.sort(function(ce,je){var gt=ce.location,at=je.location;return gt.y<at.y?-1:gt.y>at.y?1:gt.x<at.x?-1:gt.x>at.x?1:0}),Pe},Xe.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},Xe.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(Xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(Xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var St=Xe,_t=ie(18023),mt=ie(15746),Vt=ie(33170),Bt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ot=ie(67294),At=(Se,Pe,ce)=>new Promise((je,gt)=>{var at=Nt=>{try{Lt(ce.next(Nt))}catch(qt){gt(qt)}},Rt=Nt=>{try{Lt(ce.throw(Nt))}catch(qt){gt(qt)}},Lt=Nt=>Nt.done?je(Nt.value):Promise.resolve(Nt.value).then(at,Rt);Lt((ce=ce.apply(Se,Pe)).next())});function ln({onCancel:Se,callback:Pe}){let ce=(0,ae.useRef)(),je=(0,ae.useRef)(),gt=(0,ae.useRef)(),at=(0,ae.useRef)(!1);const Rt=(0,ae.useRef)(!1),[Lt,Nt]=(0,ae.useState)(0);function qt(){const ke=de.bx.make,Dt={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"};ce.current=new de.S0(je.current,{padding:20,grid:ke(de.s_,"Grid",ke(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ke(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ge=>{var Ue=Ge.diagram.commandHandler.addTopLevelParts(Ge.diagram.selection,!0);Ue||Ge.diagram.currentTool.doCancel()},commandHandler:ke(St),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ge=>{var Ue=Ge.subject;Ue.location=Ue.location.copy().snapToGridPoint(Ge.diagram.grid.gridOrigin,Ge.diagram.grid.gridCellSize),setTimeout(()=>{Ge.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ge=>{var Ue=Ge.subject;setTimeout(()=>{Ge.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ge=>{var Ue=Ge.parameter.part;Ue.invalidateConnectedLinks();var dt=Ge.subject;Ge.diagram.toolManager.linkingTool.isForwards?dt.toNode.invalidateConnectedLinks():dt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=ke(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),ke(de.bn,{name:"SHAPE",fill:Dt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ke(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ke(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=ke("ToolTip",ke(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},ke(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),ke(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function hn(Ge,Ue){var dt=(Je,Gt)=>{Je.handled=!0,Je.diagram.model.commit(Et=>{var Wt=Gt.part.adornedPart,Zt=new de.E9().setRectSpot(Wt.actualBounds,Ge);Zt.subtract(Wt.location),Zt.scale(2,2),Zt.x+=Math.sign(Zt.x)*130,Zt.y+=Math.sign(Zt.y)*130,Zt.add(Wt.location),Zt.snapToGridPoint(Je.diagram.grid.gridOrigin,Je.diagram.grid.gridCellSize);var Ut=Et.copyNodeData(Wt.data);Et.setGroupKeyForNodeData(Ut,Et.getGroupKeyForNodeData(Wt.data)),Et.addNodeData(Ut);var Ct={from:Wt.key,to:Et.getKeyForNodeData(Ut)};Et.addLinkData(Ct);var fn=Je.diagram.findNodeForData(Ut);fn.location=Zt,Je.diagram.select(fn),setTimeout(()=>{Je.diagram.commandHandler.editTextBlock()},20)})};return ke(de.bn,{figure:Ue,alignment:Ge,alignmentFocus:Ge.opposite(),width:Ge.equals(de.z6.Top)||Ge.equals(de.z6.Bottom)?25:18,height:Ge.equals(de.z6.Top)||Ge.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Dt.white,strokeWidth:4,mouseEnter:(Je,Gt)=>Gt.fill="dodgerblue",mouseLeave:(Je,Gt)=>Gt.fill="orange",isActionable:!0,click:dt,contextClick:dt})}function Hn(Ge){return ke(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ue,dt)=>dt.fill="dodgerblue",mouseLeave:(Ue,dt)=>dt.fill="orange",click:(Ue,dt)=>{Ue.diagram.commandHandler.showContextMenu(dt.part.adornedPart)}},Ge||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=ke(de.uz,"Spot",ke(de.Vm,{padding:10}),hn(de.z6.Top,"TriangleUp"),hn(de.z6.Left,"TriangleLeft"),hn(de.z6.Right,"TriangleRight"),hn(de.z6.Bottom,"TriangleDown"),Hn({alignment:new de.z6(.75,0)}));function un(Ge,Ue){return(dt,Je)=>{dt.handled=!0,dt.diagram.model.commit(Gt=>{Gt.set(Je.part.adornedPart.data,Ge,Ue)})}}function nn(Ge,Ue){return Ue||(Ue="color"),ke(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ge,margin:1,background:"transparent",mouseEnter:(dt,Je)=>Je.stroke="dodgerblue",mouseLeave:(dt,Je)=>Je.stroke="lightgray",click:un(Ue,Ge),contextClick:un(Ue,Ge)})}function Vn(){return[ke("ContextMenuButton",ke(de.s_,"Horizontal",nn(Dt.white,"fill"),nn(Dt.beige,"fill"),nn(Dt.extralightblue,"fill"),nn(Dt.extralightred,"fill"))),ke("ContextMenuButton",ke(de.s_,"Horizontal",nn(Dt.lightgray,"fill"),nn(Dt.lightgreen,"fill"),nn(Dt.lightblue,"fill"),nn(Dt.lightred,"fill")))]}function ta(){return[ke("ContextMenuButton",ke(de.s_,"Horizontal",nn(Dt.black),nn(Dt.green),nn(Dt.blue),nn(Dt.red))),ke("ContextMenuButton",ke(de.s_,"Horizontal",nn(Dt.white),nn(Dt.magenta),nn(Dt.purple),nn(Dt.orange)))]}function se(Ge,Ue){return Ue||(Ue="thickness"),ke(de.bn,"LineH",{width:16,height:16,strokeWidth:Ge,margin:1,background:"transparent",mouseEnter:(dt,Je)=>Je.background="dodgerblue",mouseLeave:(dt,Je)=>Je.background="transparent",click:un(Ue,Ge),contextClick:un(Ue,Ge)})}function ye(Ge,Ue){return Ue||(Ue="dash"),ke(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ge,margin:1,background:"transparent",mouseEnter:(dt,Je)=>Je.background="dodgerblue",mouseLeave:(dt,Je)=>Je.background="transparent",click:un(Ue,Ge),contextClick:un(Ue,Ge)})}function Le(){return[ke("ContextMenuButton",ke(de.s_,"Horizontal",se(1),se(2),se(3),se(4))),ke("ContextMenuButton",ke(de.s_,"Horizontal",ye(null),ye([2,4]),ye([4,4])))]}function be(Ge,Ue){return Ue||(Ue="figure"),ke(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ge,margin:1,background:"transparent",mouseEnter:(dt,Je)=>Je.fill="dodgerblue",mouseLeave:(dt,Je)=>Je.fill="lightgray",click:un(Ue,Ge),contextClick:un(Ue,Ge)})}ce.current.nodeTemplate.contextMenu=ke("ContextMenu",ke("ContextMenuButton",ke(de.s_,"Horizontal",be("Rectangle"),be("RoundedRectangle"),be("Ellipse"),be("Diamond"))),ke("ContextMenuButton",ke(de.s_,"Horizontal",be("Parallelogram2"),be("ManualOperation"),be("Procedure"),be("Cylinder1"))),ke("ContextMenuButton",ke(de.s_,"Horizontal",be("Terminator"),be("CreateRequest"),be("Document"),be("TriangleDown"))),Vn(),ta(),Le()),ce.current.groupTemplate=ke(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ge,Ue)=>{var dt=Ue.addMembers(Ue.diagram.selection,!0);dt||Ue.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),ke(de.s_,"Auto",{name:"BODY"},ke(de.bn,{parameter1:10,fill:Dt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ke(de.Vm,{background:"transparent",margin:20})),ke(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=ke(de.uz,"Spot",ke(de.s_,"Auto",ke(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ke(de.Vm,{margin:1.5})),Hn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=ke("ContextMenu",Vn(),ta(),Le()),ce.current.linkTemplate=ke(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ge=>Ge>=1?10:0),new de.KX("toShortLength","dir",Ge=>Ge>=1?10:0),new de.KX("points").makeTwoWay(),ke(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ke(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ge=>Ge===1)),ke(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ge=>Ge>=1),new de.KX("width","thickness",Ge=>7+3*Ge),new de.KX("height","thickness",Ge=>7+3*Ge),new de.KX("segmentOffset","thickness",Ge=>new de.E9(-15,4+1.5*Ge))),ke(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ge=>Ge===2),new de.KX("width","thickness",Ge=>7+3*Ge),new de.KX("height","thickness",Ge=>7+3*Ge),new de.KX("segmentOffset","thickness",Ge=>new de.E9(-15,4+1.5*Ge))),ke(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=ke(de.uz,ke(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:_e(2)},new de.KX("pathPattern","thickness",_e)),Hn({alignmentFocus:new de.z6(0,0,-6,-4)}));function _e(Ge){return ke(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ge+4).toString()+" H3"})}function Ne(Ge){var Ue="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ge===0?Ue="M0 0 M16 16 M0 8 L16 8":Ge===2&&(Ue="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ke(de.bn,{geometryString:Ue,margin:2,background:"transparent",mouseEnter:(dt,Je)=>Je.background="dodgerblue",mouseLeave:(dt,Je)=>Je.background="transparent",click:un("dir",Ge),contextClick:un("dir",Ge)})}function $e(Ge){var Ue=(dt,Je)=>{dt.handled=!0,dt.diagram.model.commit(Gt=>{var Et=Je.part.adornedPart;Gt.set(Et.data,Ge?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ge?Et.toNode:Et.fromNode).invalidateConnectedLinks()})};return ke(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(dt,Je)=>Je.background="dodgerblue",mouseLeave:(dt,Je)=>Je.background="transparent",click:Ue,contextClick:Ue})}function le(Ge,Ue){var dt=0,Je=de.z6.RightSide;Ge.equals(de.z6.Top)?(dt=270,Je=de.z6.TopSide):Ge.equals(de.z6.Left)?(dt=180,Je=de.z6.LeftSide):Ge.equals(de.z6.Bottom)&&(dt=90,Je=de.z6.BottomSide),Ue||(dt-=180);var Gt=(Et,Wt)=>{Et.handled=!0,Et.diagram.model.commit(Zt=>{var Ut=Wt.part.adornedPart;Zt.set(Ut.data,Ue?"toSpot":"fromSpot",de.z6.stringify(Je)),(Ue?Ut.toNode:Ut.fromNode).invalidateConnectedLinks()})};return ke(de.bn,{alignment:Ge,alignmentFocus:Ge.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:dt,background:"transparent",mouseEnter:(Et,Wt)=>Wt.background="dodgerblue",mouseLeave:(Et,Wt)=>Wt.background="transparent",click:Gt,contextClick:Gt})}ce.current.linkTemplate.contextMenu=ke("ContextMenu",ta(),Le(),ke("ContextMenuButton",ke(de.s_,"Horizontal",Ne(0),Ne(1),Ne(2))),ke("ContextMenuButton",ke(de.s_,"Horizontal",ke(de.s_,"Spot",$e(!1),le(de.z6.Top,!1),le(de.z6.Left,!1),le(de.z6.Right,!1),le(de.z6.Bottom,!1)),ke(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},$e(!0),le(de.z6.Top,!0),le(de.z6.Left,!0),le(de.z6.Right,!0),le(de.z6.Bottom,!0)))));const st=`{ "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 it=["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 ct(Ge){return console.log("shapeName:",Ge),it.indexOf(Ge)>=0}var yt=new de.YI(gt.current,{maxSelectionCount:1,linkTemplate:ke(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:ke(de.uz,"Link",{locationSpot:de.z6.Center},ke(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ke(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),ke(de.bn,{isPanelMain:!0,strokeWidth:2}),ke(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ge=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ge.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Ge){var Ue;const dt=Ge.subject.part;var Je=(Ue=document.activeElement)==null?void 0:Ue.value;typeof Je=="string"&&Je.trim()===""&&ce.current.model.commit(function(Gt){Gt.set(dt.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),yt.nodeTemplate=ke(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),ke(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),ke(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=ke(de.s_,"Grid",ke(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ke(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const wn=()=>At(this,null,function*(){var ke=ce.current.makeImage();const Dt=yield(0,Vt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ke.src}});Pe({src:Dt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{qt()},500),Nt(Lt+1),()=>{ce.current=null}),[]),Ot.createElement("div",{ref:Rt,className:at.current?`${Bt.maxH60} body-overflow-initial`:"body-overflow-initial"},Ot.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Lt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ot.createElement(Fe.Z,null,Ot.createElement(mt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ot.createElement(mt.Z,{onClick:()=>{var ke,Dt,hn=ce.current.selection.first();if(at.current=!at.current,document.activeElement&&hn){let Hn=(Dt=(ke=document.activeElement)==null?void 0:ke.value)==null?void 0:Dt.trim();typeof Hn=="string"&&ce.current.model.commit(function(un){un.set(hn.data,"text",Hn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Nt(Lt+1)}},Ot.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},Ot.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Bt.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:Bt.myPaletteDiv,ref:gt})),Ot.createElement("div",{style:{flex:1,position:"relative"}},Ot.createElement("div",{ref:je,style:{height:"80vh"}}))),Ot.createElement("div",{className:"tr"},Ot.createElement(Ce.ZP,{size:"large",onClick:wn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var kt=ln,Ln=ie(78045),Cn=ie(42405);const rn=Ln.ZP.Group,Xn={margin:"0 8px"};var tn=({callback:Se,onCancel:Pe})=>{function ce(je){Se(je)}return ae.createElement(ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Xn},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Xn},"\u884C\u6570"),ae.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Cn.Z,null)),ae.createElement("span",{style:Xn},"\u5217\u6570"),ae.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Cn.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Xn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(ue.default.Item,{name:"align"},ae.createElement(rn,null,ae.createElement(Ln.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Ln.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Ln.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Ln.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ce.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Nn=ie(47897),fa=ie(61016),ea=ie.n(fa),ya=(0,ae.forwardRef)(({use3d:Se,width:Pe,height:ce,callback:je,showSaveButton:gt},at)=>{const Rt=(0,ae.useRef)(),Lt=(0,ae.useRef)(),[Nt,qt]=(0,ae.useState)(!1),wn=(0,ae.useRef)({id:Rt,appName:"graphing",width:Pe||1e3,height:ce||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)(()=>{Lt.current=new(ea())(wn.current,!0),window.onload=function(){Lt.current.inject("applet_container")}},[]);const ke=()=>{var Dt=window.ggbApplet.getPNGBase64(1,!0,72);return je&&je(Dt),Dt};return(0,ae.useEffect)(()=>{wn.current.appName=Nt?"3D":"graphing",Lt.current.inject("applet_container")},[Nt]),(0,ae.useEffect)(()=>{qt(Se)},[Se]),(0,ae.useImperativeHandle)(at,()=>({getImgData:ke})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rt}),ae.createElement(Fe.Z,{align:"middle"},ae.createElement(mt.Z,{flex:1},ae.createElement(Nn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nt,onChange:Dt=>qt(Dt)})),ae.createElement(mt.Z,null,ae.createElement(Ce.ZP,{size:"large",onClick:ke,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),wa=ie(36527),fe=ie(25934),xe=ie(2453);const Te="link",Ve="upload-image",tt="add-flowchart",ht="draw-image",ft="add-flowchart",Pt="code-block",pt="add-table",It="------------",Mt={default:It,left:`:${It}`,center:`:${It}:`,right:`${It}:`};var Yt=ie(99914),Pn=(Se,Pe,ce)=>new Promise((je,gt)=>{var at=Nt=>{try{Lt(ce.next(Nt))}catch(qt){gt(qt)}},Rt=Nt=>{try{Lt(ce.throw(Nt))}catch(qt){gt(qt)}},Lt=Nt=>Nt.done?je(Nt.value):Promise.resolve(Nt.value).then(at,Rt);Lt((ce=ce.apply(Se,Pe)).next())});function yn(){}let gn=0;const Jt=1e4,Ht="\u2581",Gn="@\u2581\u2581@",bn="@\u2581@",Bn=`
**\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`,Qt=["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 kn(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dn={[In+"-B"]:"bold",[In+"-I"]:"italic"},Jn={[Te]:"\u6DFB\u52A0\u94FE\u63A5",[Pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ve]:"\u6DFB\u52A0\u56FE\u7247",[ht]:"\u6DFB\u52A0\u753B\u56FE",[tt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[pt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kn=({defaultValue:Se="",onChange:Pe,width:ce="100%",height:je=400,miniToolbar:gt=!1,isFocus:at=!1,watch:Rt,insertTemp:Lt,mode:Nt="markdown",id:qt="markdown-editor-id",showResizeBar:wn=!1,noStorage:ke=!1,showNullButton:Dt=!1,showNullProgramButton:hn=!1,hidetoolBar:Hn=!1,fullScreen:un=!1,onBlur:nn,onCMBeforeChange:Vn,onFullScreen:ta,className:se="",disablePaste:ye=!1,disabled:Le=!1,disabledFill:be=!1,placeholder:_e="",values:Ne="",extraUse:$e})=>{const[le,st]=(0,ae.useState)(null),[it,ct]=(0,ae.useState)(Se),[yt,Ge]=(0,ae.useState)(Rt),[Ue,dt]=(0,ae.useState)(un),[Je,Gt]=(0,ae.useState)(""),[Et,Wt]=(0,ae.useState)(0),[Zt,Ut]=(0,ae.useState)(je),[Ct,fn]=(0,ae.useState)(!1),Fn=(0,ae.useRef)((0,fe.Z)()),ia=(0,ae.useRef)(!1),Qn=(0,ae.useRef)(),[Rn,sa]=(0,ae.useState)(0),[ca,Sa]=(0,ae.useState)(0),Wn=(0,ae.useRef)(),An=(0,ae.useRef)(),dn=(0,ae.useRef)(),na=(0,ae.useRef)(),Pa=()=>Pn(void 0,null,function*(){var ot;const Ke=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Fn.current}});(ot=Ke==null?void 0:Ke.attachments)!=null&&ot.length&&(console.log("cm:",le,Wn),Ke.attachments.map(et=>{et.content_type.indexOf("image")>-1?le.replaceSelection(`![,](/api/attachments/${et.id}?type=${et.content_type})`):et.content_type.indexOf("video")>-1?le.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):et.content_type.indexOf("pdf")>-1?le.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type}&disposition=inline" target="_blank">${et.name}</a>`):le.replaceSelection(`[${et.name}](${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type})`)}))});(0,ae.useEffect)(()=>{const ot=window.scrollY||window.pageYOffset;ct(Ne),le==null||le.setValue(Ne),window.scrollTo(0,ot)},[Ne]),(0,ae.useEffect)(()=>{ta==null||ta(Ue)},[Ue]),(0,ae.useEffect)(()=>{if(Wn.current){let ot=function(et,rt){var jt;if(ye){rt.preventDefault();return}const Sn=rt.clipboardData;if(Sn){const On=Sn.types.toString(),En=Sn.items;if(On==="Files"||Sn.types.indexOf("Files")>-1){if(rt.preventDefault(),Nt=="stex")return;try{let zn=En[1];((jt=En[0])==null?void 0:jt.kind)==="file"&&(zn=En[0]);const xn=zn.getAsFile(),qn=xn.name.split(".").pop();(0,pe.I)(xn,jn=>{var La,ba,pa;jn.id?((La=xn==null?void 0:xn.type)==null?void 0:La.indexOf("image"))>-1?Ke.replaceSelection(`<img width="100%" src="/api/attachments/${jn.id}?type=${jn.content_type})" alt="" />`):((ba=xn==null?void 0:xn.type)==null?void 0:ba.indexOf("video"))>-1?Ke.replaceSelection(`<video width="100%" controls src="/api/attachments/${jn.id}"></video>`):((pa=xn==null?void 0:xn.type)==null?void 0:pa.indexOf("pdf"))>-1?Ke.replaceSelection(`<a href="/api/attachments/${jn.id}?type=${xn.type}&disposition=inline" target="_blank">${xn.name}</a>`):Qt.includes(qn)?Ke.replaceSelection(`<a href="/api/attachments/${jn.id}?type=office&disposition=inline" target="_blank">${xn.name}</a>`):Ke.replaceSelection(`[${xn.name}](/api/attachments/${jn.id}?type=${jn.content_type})`):(jn==null?void 0:jn.status)===401&&(xe.ZP.warning((jn==null?void 0:jn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(zn){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ke=Qe().fromTextArea(Wn.current,{mode:Nt,lineNumbers:!gt,lineWrapping:!0,value:Se,autoCloseTags:!hn,autoCloseBrackets:!0});return Ke.on("keyup",function(et,rt){rt.keyCode===8&&(et.getValue()==""?Ke.setOption("placeholder",_e):Ke.setOption("placeholder",null))}),Ke.on("keydown",function(et,rt){if(rt.keyCode===8){var jt=da(et);jt&&rt.preventDefault()}}),at&&Ke.focus(),Ke.on("paste",ot),Ke.on("dragleave",function(et,rt){An.current.classList.remove("mouse-hover-md")}),Le&&Ke.on("beforeChange",function(et,rt){(rt.origin==="paste"||rt.origin==="+input")&&rt.cancel()}),st(Ke),()=>{Ke.off("paste",ot)}}},[]);const ua=(0,ae.useCallback)(()=>{if(An.current)try{}catch(ot){console.log(ot,"---- to set md editor body height")}},[Zt,An,Ue]);(0,ae.useEffect)(()=>{function ot(){let Ke=new De.Z(et=>{for(let rt of et)(rt.target.offsetHeight>0||rt.target.offsetWidth>0)&&(ua(),le.setSize("100%","100%"),le.refresh())});return Ke.observe(Wn.current.parentElement),Ke}if(le){const Ke=ot();return()=>{var et,rt;(et=Wn.current)!=null&&et.parentElement&&Ke.unobserve((rt=Wn.current)==null?void 0:rt.parentElement)}}},[le,ua]),(0,ae.useEffect)(()=>{if(le){let ot=[];for(const[Ke,et]of Object.entries(Dn)){let rt={[Ke]:()=>{_n(et)}};ot.push(rt),le.addKeyMap(rt)}return Qn.current=setInterval(()=>{ia.current&&Pa()},4e3),()=>{clearInterval(Qn.current);for(let Ke of ot)le.removeKeyMap(Ke)}}},[le]),(0,ae.useEffect)(()=>{un!==Ue&&dt(un)},[un]),(0,Yt.Z)(()=>{if(!ke&&Et>0){let ot=new Date().getTime(),Ke=window.sessionStorage.getItem(qt);ot>=Et+Jt&&(!Ke||Ke!==it)&&(window.sessionStorage.setItem(qt,it),fn(!0))}},Jt),(0,ae.useEffect)(()=>{Ge(Rt)},[le,Rt]),(0,ae.useEffect)(()=>{le&&at&&le.focus()},[le,at]),(0,ae.useEffect)(()=>{if(yt&&le){let ot=function(et){let rt=et.target;if(na.current){let jt=rt.scrollTop/rt.scrollHeight;na.current.scrollTop=na.current.scrollHeight*jt}};const Ke=le.getScrollerElement();return Ke.addEventListener("scroll",ot),()=>{Ke.removeEventListener("scroll",ot)}}},[le,yt]),(0,ae.useEffect)(()=>{if(le&&Vn){let ot=function(Ke,et){Vn(Ke,et)};return le.on("beforeChange",ot),()=>{le.off("beforeChange",ot)}}},[le,Vn]),(0,ae.useEffect)(()=>{if(le&&nn){let ot=function(){nn(le.getValue())};return le.on("blur",ot),()=>{le.off("blur",ot)}}},[le,nn]);function da(ot,Ke){var et=ot.getDoc(),rt=et.getCursor(),jt=et.getLine(rt.line),Sn=jt.charAt(rt.ch-1),On=jt.lastIndexOf("@\u2581@",rt.ch),En=jt.lastIndexOf("@\u2581\u2581@",rt.ch),zn=On>En?On:En,xn=On>En?3:4;if(Gn.indexOf(Sn)===-1)return null;if(console.log("change1:",Ke,ot,jt,rt,zn,On,En,Sn),zn>=0&&rt.ch-zn<5){var qn=zn+xn;return et.replaceRange("",{line:rt.line,ch:zn},{line:rt.line,ch:qn}),{line:rt.line,ch:qn}}return null}(0,ae.useEffect)(()=>{if(le){let ot=function(Ke,et){const rt=Ke.getValue();ct(rt),Wt(new Date().getTime()),Ke.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(hn?Pe(rt,Fa(rt)):Pe(rt))};return le.on("change",ot),()=>{le.off("change",ot)}}},[le,Pe]),(0,ae.useEffect)(()=>{if(le)if(Se==null)le.setValue(""),ct("");else{const ot=window.scrollY||window.pageYOffset;Se!==le.getValue()&&(le.setValue(Se),ct(Se),le.setCursor(Le?1:le.lineCount(),0),window.scrollTo(0,ot))}},[le,Se]);const _n=(0,ae.useCallback)(ot=>{const Ke=le.getCursor(),et=le.getSelection();let rt=et.split(`
`);switch(ot){case"bold":return le.replaceSelection("**"+et+"**"),et===""&&le.setCursor(Ke.line,Ke.ch+2),le.focus();case"italic":return le.replaceSelection("*"+et+"*"),et===""&&le.setCursor(Ke.line,Ke.ch+1),le.focus();case"code":return le.replaceSelection("`"+et+"`"),et===""&&le.setCursor(Ke.line,Ke.ch+1),le.focus();case"inline-latex":return Gt("inline-latex"),le.focus();case"latex":return le.replaceSelection("```latex\n"+et+"\n```"),le.setCursor(Ke.line+1,et.length+1),le.focus();case"line-break":return le.replaceSelection(`<br/>
`),le.focus();case"list-ul":return et===""?le.replaceSelection("- "+et):le.replaceSelection(rt.map(jt=>jt===""?"":`- ${jt}`).join(`
`)),le.focus();case"list-ol":return et===""?le.replaceSelection("1. "+et):le.replaceSelection(rt.map((jt,Sn)=>jt===""?"":`${Sn+1}. ${jt}`).join(`
`)),le.focus();case"add-null-ch":return et===""&&le.setCursor(Ke.line,Ke.ch),le.replaceSelection(Ht),le.focus();case"add-signal":return et===""&&le.setCursor(Ke.line,Ke.ch),le.replaceSelection(bn),le.focus();case"add-multiple":return et===""&&le.setCursor(Ke.line,Ke.ch),le.replaceSelection(Gn),le.focus();case"inster-template-1":return et===""&&le.setCursor(Ke.line,Ke.ch),le.replaceSelection(Bn),le.focus();case"eraser":return le.setValue(""),le.focus();case"trigger-watch":return Ge(!yt),le.focus();case"trigger-full-screen":return dt(!Ue),le.focus();case Te:Gt(Te);return;case Pt:Gt(Pt);return;case Ve:Gt(Ve);return;case ht:Gt(ht);return;case"maths-latex":Gt("maths-latex");return;case tt:Gt(tt);return;case pt:Gt(pt);return;default:throw new Error}},[le,yt,Ue]),Zn=(0,ae.useCallback)((ot,Ke)=>{var et,rt,jt,Sn,On,En;switch(Gt(""),Je){case Te:const{title:La,link:ba}=ot;return le.replaceSelection(`[${La}](${ba})`),le.focus();case Pt:const{language:pa,content:wt}=ot;return le.replaceSelection(["```"+pa,wt,"```"].join(`
`)),le.focus();case"maths-latex":for(var zn=atob(ot),xn=new Uint8Array(zn.length),qn=0;qn<zn.length;qn++)xn[qn]=zn.charCodeAt(qn);var jn=new Blob([xn],{type:"image/png"});(0,pe.I)(jn,ga=>{ga.id?le.replaceSelection(`![,](/api/attachments/${ga.id}?type=${ga.content_type})`):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":le.replaceSelection("`$$"+ot+"$$`");break;case Ve:case ht:case ft:const{src:Tt,alt:mn}=ot,ut=Ke,an=(jt=(rt=(et=ut==null?void 0:ut.name)==null?void 0:et.split("."))==null?void 0:rt.pop)==null?void 0:jt.call(rt);return((Sn=ut==null?void 0:ut.type)==null?void 0:Sn.indexOf("image"))>-1||!(ut!=null&&ut.type)?ut.align||ut.width?le.replaceSelection(`<p style="text-align:${ut.align||"initial"}"><img width="${ut.width?ut.width+"%":"initial"}" src="${Tt}" alt="${mn||""}" /></p>`):le.replaceSelection(`<img width="100%" src="${Tt}" alt="${mn||""}" />`):((On=ut==null?void 0:ut.type)==null?void 0:On.indexOf("video"))>-1?le.replaceSelection(`<video width="100%" controls src="${Tt}"></video>`):((En=ut==null?void 0:ut.type)==null?void 0:En.indexOf("pdf"))>-1?le.replaceSelection(`<a href="${Tt}?type=${ut.type}&disposition=inline" target="_blank">${ut.name}</a>`):Qt.includes(an)?le.replaceSelection(`<a href="${Tt}?type=office&disposition=inline" target="_blank">${ut.name}</a>`):le.replaceSelection(`[${ut.name}](${Tt})`),le.focus();case pt:const{row:$n,col:ma,align:ha}=ot;let ra=`
`;for(let ga=0;ga<$n;ga++){let Ea=[],xa=[];for(let Ca=0;Ca<ma;Ca++)ga===1&&xa.push(Mt[ha]),Ea.push(" ");ga===1&&(ra+=`| ${xa.join(" | ")} |
`),ra+=`| ${Ea.join(ma===1?"":" | ")} |
`}return le.replaceSelection(ra+`
`),le.focus();default:throw new Error}},[le,Je]),vt=(0,ae.useMemo)(()=>{switch(Je){case Te:return ae.createElement(Mn,{callback:Zn,onCancel:Xt});case Pt:return ae.createElement(vn.Z,{callback:Zn,onCancel:Xt});case Ve:return ae.createElement(pe.Z,{callback:Zn,onCancel:Xt});case tt:return ae.createElement(kt,{callback:Zn,onCancel:Xt});case pt:return ae.createElement(tn,{callback:Zn,onCancel:Xt});case"maths-latex":return ae.createElement(ya,{showSaveButton:!0,callback:Zn});case"inline-latex":return ae.createElement(wa.Z,{showSaveButton:!0,callback:Zn});default:return null}},[Je]);function Xt(){Gt("")}(0,ae.useEffect)(()=>{if(dn.current){let ot=function(On){jt=!0,Sn=On.pageY},Ke=function(){jt=!1},et=function(On){if(jt){let En=On.pageY-Sn;En<0&&(En=0),En>300&&(En=300);let zn=je+En+"px";Ut(zn)}},rt=dn.current,jt=!1,Sn=0;return rt.addEventListener("mousedown",ot),document.addEventListener("mousemove",et),document.addEventListener("mouseup",Ke),()=>{rt.removeEventListener("mousedown",ot),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",Ke)}}},[le,dn]),(0,ae.useEffect)(()=>{Ut(je)},[je]);const Un=kn(ce),Tn=kn(Zt),la={width:Un,height:Tn},aa=(0,ae.useMemo)(()=>{if(Et){let ot=new Date(Et),Ke=ot.getHours(),et=ot.getMinutes(),rt=ot.getSeconds();return Ke=Ke<10?"0"+Ke:Ke,et=et<10?"0"+et:et,rt=rt<10?"0"+rt:rt,`${Ke}:${et}:${rt}`}return 0},[Et]),Fa=ot=>{const Ke=[];if(hn){let et=-1;ot=ot.replace(/(@▁▁@|@▁@)/g,function(rt,jt,Sn){Ke.push({multiLine:rt!==bn})})}return Ke};function va(){window.sessionStorage.removeItem(qt),fn(!1),Wt(0)}function pn(){fn(!1),Wt(0),le.setValue(window.sessionStorage.getItem(qt))}(0,ae.useEffect)(()=>{Jn[Je]&&Je!==ht&&Je!==tt&&setTimeout(()=>{const ot=document.getElementsByClassName("markdown-popup-form")[0],Ke=window.innerWidth/2-ot.offsetWidth/2,et=window.innerHeight/2-ot.offsetHeight/2;sa(Ke),Sa(et)},0)},[Je]);const cn=ot=>{ot.preventDefault();const Ke=ot.clientX-Rn,et=ot.clientY-ca;document.body.onmousemove=rt=>{let jt=rt.clientX-Ke,Sn=rt.clientY-et;const On=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth-On.offsetWidth,zn=window.innerHeight-On.offsetHeight;jt=Math.max(0,Math.min(jt,En)),Sn=Math.max(0,Math.min(Sn,zn)),oa(rt.clientX,rt.clientY,Ke,et)&&(sa(jt),Sa(Sn))},document.body.onmouseup=function(){document.body.onmousemove=null}},oa=(ot,Ke,et,rt)=>{const jt=document.body.clientHeight,Sn=document.body.clientWidth;return ot<20&&et>ot||ot>Sn-20&&et<ot||Ke<20&&rt>Ke||Ke>jt-20&&rt<Ke?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:An},ae.createElement("div",{className:`markdown-editor-container ${se} ${yt?"on-preview":""} ${gt?"mini":""} ${Ue?"full-screen":""}`,style:la},ae.createElement(ge,{insertTemp:Lt,watch:yt,fullScreen:Ue,showNullButton:Dt,showNullProgramButton:hn,onActionCallback:_n,hidetoolBar:Hn,extraUse:$e}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Wn,placeholder:_e})),yt?ae.createElement("div",{ref:na,className:"preview-container"},Nt==="stex"&&ae.createElement(Ye,{value:it}),Nt!=="stex"&&ae.createElement(We.Z,{disabledFill:be,showProgramFill:hn,value:it})):null))),wn?ae.createElement("a",{ref:dn,className:"editor-resize"}):null,Je===ht&&ae.createElement(qe,{callback:Zn,onCancel:Xt}),Je===tt&&ae.createElement(kt,{callback:Zn,onCancel:Xt}),ae.createElement(he.Z,null,Jn[Je]&&Je!==ht&&Je!==tt?ae.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Rn,top:ca},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:cn},Jn[Je]),open:!0,onCancel:Xt,footer:null,destroyOnClose:!0,width:Je===tt?"1200px":null,height:Je===tt?"80vh":null,className:"markdown-popup-form"},vt):null))}},70859:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return re},I:function(){return he}});var ae=ie(91773),Me=ie(2453),Qe=ie(11486),De=ie(93421),ve=ie(42405),we=ie(78045),me=ie(71577),Ie=ie(15476),Oe=ie(67294),Re=ie(52262),We=ie(67294),Ye=Object.defineProperty,Ze=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ue,ze,Ce)=>ze in ue?Ye(ue,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):ue[ze]=Ce,x=(ue,ze)=>{for(var Ce in ze||(ze={}))y.call(ze,Ce)&&b(ue,Ce,ze[Ce]);if(a)for(var Ce of a(ze))E.call(ze,Ce)&&b(ue,Ce,ze[Ce]);return ue},z=(ue,ze)=>Ze(ue,ne(ze));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:ue,onCancel:ze})=>{const[Ce]=ee();let lt=(0,Oe.useRef)();function zt(Ft){lt.current.width=Ce.getFieldValue("width"),lt.current.align=Ce.getFieldValue("align"),ue(Ft,lt.current)}function Kt(Ft,bt){if(Ft.status===-1){Me.ZP.error(Ft.message);return}Ce.setFieldsValue({src:`/api/attachments/${Ft.id}`,type:bt.type})}function $t(Ft){let bt=Ft.target.files[0];lt.current=bt,he(bt,Kt)}return We.createElement(ae.default,z(x({form:Ce},oe),{className:"upload-image-panel",onFinish:zt,style:{width:470,overflow:"hidden"}}),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Qe.default,{style:te})),We.createElement(ge,{onFileChange:$t}))),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Qe.default,{style:{width:264}})),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(De.Z,null,We.createElement(ae.default.Item,{name:"width",style:{margin:0}},We.createElement(ve.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(we.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"}]})),We.createElement("aside",null,We.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(me.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function ge({onFileChange:ue}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:ue}))}function he(ue,ze){if(!ue)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Re.bg)())throw Me.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ce=new FormData;Ce.append("editormd-image-file",ue),Ce.append("file_param_name","editormd-image-file"),Ce.append("byxhr","true");var lt=new window.XMLHttpRequest;lt.withCredentials=!0,lt.addEventListener("load",function(zt){ze(JSON.parse(zt.target.responseText),ue)},!1),lt.addEventListener("error",function(zt){console.error(zt)},!1),lt.open("POST",`${Ie.KI}/api/attachments.json`),lt.send(Ce)}},76621:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return Qe}});var ae=ie(67294),Me=ie(73935);class Qe extends ae.Component{constructor(ve){super(ve);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Me.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return Me}});var ae=ie(67294);function Me(Qe,De){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Qe}),(0,ae.useEffect)(()=>{function we(){ve.current()}if(De!==null){let me=setInterval(we,De);return()=>clearInterval(me)}},[De])}},69363:function(Be,nt,ie){"use strict";ie.r(nt),ie.d(nt,{default:function(){return Ae}});var ae=ie(67294),Me=ie(57953),Qe=ie(26942),De=ie(35973),ve=ie(84567),we=ie(92421),me=ie(91773),Ie=ie(2453),Oe=ie(14446),Re=ie(11486),We=ie(71577),Ye=ie(33859),Ze=ie(11320),ne=ie(35567),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Fe,He,Ee)=>He in Fe?a(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Fe[He]=Ee,te=(Fe,He)=>{for(var Ee in He||(He={}))x.call(He,Ee)&&ee(Fe,Ee,He[Ee]);if(b)for(var Ee of b(He))z.call(He,Ee)&&ee(Fe,Ee,He[Ee]);return Fe},oe=(Fe,He)=>y(Fe,E(He)),re=(Fe,He)=>{var Ee={};for(var qe in Fe)x.call(Fe,qe)&&He.indexOf(qe)<0&&(Ee[qe]=Fe[qe]);if(Fe!=null&&b)for(var qe of b(Fe))He.indexOf(qe)<0&&z.call(Fe,qe)&&(Ee[qe]=Fe[qe]);return Ee};const ge=ve.default.Group,{Dragger:he}=we.default;function ue(Fe,He){const Ee=new FileReader;Ee.addEventListener("load",()=>He(Ee.result)),Ee.readAsDataURL(Fe)}var ze=({callback:Fe,tags:He=[],initialValues:Ee={},removeAttachment:qe})=>{const[de,Xe]=(0,ae.useState)(""),[St]=me.default.useForm();function _t(At){const ln=At,{cover_id:kt,attachment_ids:Ln}=ln,Cn=re(ln,["cover_id","attachment_ids"]);Fe(oe(te({},Cn),{cover_id:kt==null?void 0:kt.map(rn=>rn.response?rn.response.id:rn.uid)[(kt==null?void 0:kt.length)-1],attachment_ids:Ln?Ln==null?void 0:Ln.map(rn=>rn.response?rn.response.id:rn.uid):[]}))}function mt(At){return Array.isArray(At)?At:At&&At.fileList}const Vt={multiple:!0,beforeUpload:At=>{const ln=At.size/1024/1024<100;if(!ln)return Ie.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(100MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),ln},action:`${Ze.Z.API_SERVER}/api/attachments.json`,onRemove:At=>{Oe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>qe(At.response?At.response.id:At.uid),onCancel:()=>!1})}};function Bt(At){At.file.status==="done"&&ue(At.file.originFileObj,ln=>Xe(ln))}const Ot={showUploadList:!1,withCredentials:!0,action:`${Ze.Z.API_SERVER}/api/attachments.json`,onChange:Bt};return(0,ae.useEffect)(()=>{Ee.title&&(St.setFieldsValue(Ee),Ee.cover_id.length>0&&Xe(Ze.Z.IMG_SERVER+Ee.cover_id[0].url))},[Ee]),ae.createElement(me.default,{form:St,initialValues:Ee,className:"moop-panel",style:{marginBottom:20},onFinish:_t},ae.createElement(me.default.Item,{label:"\u6807\u9898",name:"title",extra:ae.createElement("div",{className:"tip"},"\u7B80\u660E\u627C\u8981\u4ECB\u7ECD\u6587\u6863/\u89C6\u9891\u6240\u5305\u542B\u7684\u4E3B\u8981\u7684\u5185\u5BB9"),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(Re.default,{placeholder:"\u4F8B\u5982\uFF1A\u8F6F\u4EF6\u5DE5\u7A0B\u6559\u5B66\u6848\u4F8B"})),ae.createElement("div",{className:"flex-container"},ae.createElement(me.default.Item,{label:"\u4F5C\u8005",name:"author_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u540D\u79F0"}]},ae.createElement(Re.default,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",style:{marginRight:20,width:200}})),ae.createElement(me.default.Item,{name:"author_school_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0"}]},ae.createElement(Re.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0",style:{width:200}}))),ae.createElement(me.default.Item,{name:"tag_ids",label:"\u6807\u7B7E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u6807\u7B7E"}]},ae.createElement(ge,null,He.map(At=>ae.createElement(ve.default,{key:At.id,value:At.id}," ",At.name," ")))),ae.createElement(me.default.Item,{name:"publish",valuePropName:"checked"},ae.createElement(ve.default,null,"\u662F\u5426\u7533\u8BF7\u53D1\u5E03")),ae.createElement(me.default.Item,{name:"content",label:"\u63CF\u8FF0",valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ae.createElement(ne.Z,{id:"moop_cases_content",height:400})),ae.createElement(me.default.Item,{name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:mt},ae.createElement(he,te({},Vt),ae.createElement("p",{className:"c-blue",style:{marginBottom:10,fontSize:18}},"\u4E0A\u4F20\u9644\u4EF6"),ae.createElement("p",{className:"c-grey-c"},"\u4ECE\u6211\u7684\u7535\u8111\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u6863\uFF1A\u6309\u4F4FCTRL\u53EF\u4EE5\u4E0A\u4F20\u591A\u4EFD\u6587\u6863\u3002\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\uFF1A100MB"))),ae.createElement(me.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE",extra:"\u4E0A\u4F20\u5C3A\u5BF8\uFF1A120*90 px",getValueFromEvent:mt,valuePropName:"fileList",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE"}]},ae.createElement(we.default,te({},Ot),de?ae.createElement("img",{src:de,width:120}):ae.createElement("a",{title:"\u4E0A\u4F20\u5C01\u9762\u56FE",className:"upload-cover"}," ",ae.createElement(Ye.Z,null)," "))),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u5BA1\u6838\u8BF4\u660E"),ae.createElement("p",null," \u5E73\u53F0\u7BA1\u7406\u5458\u5C06\u5BF9\u6BCF\u5929\u65B0\u4E0A\u4F20\u7684\u6587\u6863\u8FDB\u884C\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u7684\u6587\u6863\u5C06\u516C\u5F00\u663E\u793A\uFF0C\u5426\u5219\u5C06\u79C1\u6709\u5316\u6216\u79FB\u9664 ")),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u6E29\u99A8\u63D0\u793A"),ae.createElement("ul",{style:{padding:0}},ae.createElement("li",null,"1.\u8BF7\u52FF\u4E0A\u4F20\u5DF2\u8BBE\u7F6E\u52A0\u5BC6\u53E3\u4EE4\u7684\u6587\u6863\u8D44\u6E90\uFF1B"),ae.createElement("li",null,"2.\u53EF\u4EE5\u4E0A\u4F20\u7B26\u5408\u6559\u5B66\u6848\u4F8B\u6807\u51C6\u7684\u6587\u6863\u8D44\u6599\uFF0C\u5982",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34799",target:"_blank"}," \u6848\u4F8B\u5165\u5E93\u6807\u51C6 ")," \u3001",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34798",target:"_blank"},"\u6848\u4F8B\u4F7F\u7528\u8BF4\u660E\u4E66"),"\u4EE5\u53CA\u5176\u4ED6\u8D44\u6599\u7B49\uFF0C\u4E0A\u4F20\u652F\u6301\u7684\u6587\u4EF6\u6700\u5927\u5BB9\u91CF\uFF1A100MB\uFF1B"),ae.createElement("li",null,"3.\u8BF7\u786E\u4FDD\u4E0A\u4F20\u5185\u5BB9\u65E0\u4FB5\u6743\u6216\u8FDD\u53CD\u56FD\u5BB6\u5173\u4E8E\u4E92\u8054\u7F51\u653F\u7B56\u7684\u4E0D\u826F\u884C\u4E3A\uFF1B"),ae.createElement("li",null,"4.\u8BF7\u4F7F\u7528Chrome\uFF0CFirefox\uFF0CSafari\uFF0CIE11\uFF08\u53CA\u4EE5\u4E0A\u7248\u672C\uFF09\u6D4F\u89C8\u5668\uFF1B"))),ae.createElement(me.default.Item,{style:{marginTop:10}},ae.createElement(We.ZP,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4")))},Ce=ie(4440),lt=Object.defineProperty,zt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,sn=(Fe,He,Ee)=>He in Fe?lt(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Fe[He]=Ee,en=(Fe,He)=>{for(var Ee in He||(He={}))Ft.call(He,Ee)&&sn(Fe,Ee,He[Ee]);if($t)for(var Ee of $t(He))bt.call(He,Ee)&&sn(Fe,Ee,He[Ee]);return Fe},xt=(Fe,He)=>zt(Fe,Kt(He)),on=(Fe,He,Ee)=>new Promise((qe,de)=>{var Xe=mt=>{try{_t(Ee.next(mt))}catch(Vt){de(Vt)}},St=mt=>{try{_t(Ee.throw(mt))}catch(Vt){de(Vt)}},_t=mt=>mt.done?qe(mt.value):Promise.resolve(mt.value).then(Xe,St);_t((Ee=Ee.apply(Fe,He)).next())});const Mn={loading:!1,data:{},tags:[]};var vn=(Fe=>(Fe[Fe.GET_DATA=0]="GET_DATA",Fe[Fe.SET_LOADING=1]="SET_LOADING",Fe[Fe.GET_TAGS=2]="GET_TAGS",Fe))(vn||{});function pe(Fe,He){switch(He.type){case 0:return en(en({},Fe),He.payload);case 2:return xt(en({},Fe),{tags:He.payload});case 1:return xt(en({},Fe),{loading:He.payload});default:throw new Error}}var Ae=()=>{const{caseId:Fe}=(0,De.useParams)(),[He,Ee]=(0,ae.useReducer)(pe,Mn),{loading:qe,tags:de,data:Xe}=He;(0,ae.useEffect)(()=>{function mt(){return on(this,null,function*(){const Vt=yield(0,Ce.rO)({tab_module_type:"moop_cases"});Vt.un_purchased&&Ee({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Ee({type:2,payload:Vt.library_tags})})}mt()},[]),(0,ae.useEffect)(()=>{let mt=!1;function Vt(){return on(this,null,function*(){Ee({type:1,payload:!1});let Bt=yield(0,Ce.$J)(Fe);const{author_name:Ot,author_school_name:At,content:ln,cover:kt,attachments:Ln,status:Cn,title:rn,tags:Xn}=Bt;mt||(Bt.status===404?De.history.push("/moop_cases"):Ee({type:0,payload:{data:{title:rn,author_name:Ot,author_school_name:At,content:ln,tag_ids:Xn.map(tn=>tn.id),publish:Cn==="published",attachment_ids:Ln.map(tn=>({uid:tn.id,id:tn.id,name:tn.title,url:tn.url,filesize:tn.filesize,status:"done"})),cover_id:kt!=null&&kt.id?[{uid:kt==null?void 0:kt.id,id:kt==null?void 0:kt.id,name:kt==null?void 0:kt.title,url:kt==null?void 0:kt.url,filesize:kt==null?void 0:kt.filesize,status:"done"}]:[]},loading:!1}}))})}return!mt&&Fe&&Vt(),()=>{mt=!0}},[Fe]);function St(mt){return on(this,null,function*(){if(Fe)yield(0,Ce.bN)(Fe,mt),De.history.push(`/moop_cases/${Fe}/publish-success`);else{const{id:Vt}=yield(0,Ce.jP)(mt);Vt&&De.history.push(`/moop_cases/${Vt}/publish-success`)}})}const _t={initialValues:Xe,tags:de,removeAttachment:Ce.JZ,callback:St};return ae.createElement(Me.Z,{spinning:qe,delay:500},ae.createElement("div",{className:"moop-info"},ae.createElement("div",{className:"crumb"},ae.createElement(De.Link,{to:"/moop_cases"},"\u6559\u5B66\u6848\u4F8B > "),ae.createElement("span",null,"\u65B0\u5EFA")),ae.createElement("div",{className:"title"},ae.createElement("h2",null,"\u4E0A\u4F20\u6559\u5B66\u6848\u4F8B"),ae.createElement(De.Link,{to:"/moop_cases"},"\u8FD4\u56DE")),ae.createElement(ze,en({},_t))))}},4440:function(Be,nt,ie){"use strict";ie.d(nt,{$J:function(){return Qe},JZ:function(){return ve},bN:function(){return me},jP:function(){return we},rO:function(){return De}});var ae=ie(33170),Me=(Ie,Oe,Re)=>new Promise((We,Ye)=>{var Ze=y=>{try{a(Re.next(y))}catch(E){Ye(E)}},ne=y=>{try{a(Re.throw(y))}catch(E){Ye(E)}},a=y=>y.done?We(y.value):Promise.resolve(y.value).then(Ze,ne);a((Re=Re.apply(Ie,Oe)).next())});function Qe(Ie){return(0,ae.U2)(`libraries/${Ie}.json`)}function De(Ie){return(0,ae.U2)("library_tags.json",Ie)}function ve(Ie){return Me(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ie}.json`)).status===0})}function we(Ie){return(0,ae.v_)("libraries.json",Ie)}function me(Ie,Oe){return(0,ae.gz)(`libraries/${Ie}.json`,Oe)}},57838:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return Me}});var ae=ie(67294);function Me(){const[,Qe]=ae.useReducer(De=>De+1,0);return Qe}},84567:function(Be,nt,ie){"use strict";ie.d(nt,{default:function(){return re}});var ae=ie(94184),Me=ie.n(ae),Qe=ie(95860),De=ie(67294),ve=ie(53124),we=ie(98866),me=ie(65223),Oe=De.createContext(null),Re=ie(63185),We=ie(45353),Ye=ie(92429),Ze=function(ge,he){var ue={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&he.indexOf(ze)<0&&(ue[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ze=Object.getOwnPropertySymbols(ge);Ce<ze.length;Ce++)he.indexOf(ze[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[Ce])&&(ue[ze[Ce]]=ge[ze[Ce]]);return ue};const ne=(ge,he)=>{var ue;const{prefixCls:ze,className:Ce,rootClassName:lt,children:zt,indeterminate:Kt=!1,style:$t,onMouseEnter:Ft,onMouseLeave:bt,skipGroup:sn=!1,disabled:en}=ge,xt=Ze(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:on,direction:Mn,checkbox:vn}=De.useContext(ve.E_),pe=De.useContext(Oe),{isFormItemInput:Ae}=De.useContext(me.aM),Fe=De.useContext(we.Z),He=(ue=(pe==null?void 0:pe.disabled)||en)!==null&&ue!==void 0?ue:Fe,Ee=De.useRef(xt.value);De.useEffect(()=>{pe==null||pe.registerValue(xt.value)},[]),De.useEffect(()=>{if(!sn)return xt.value!==Ee.current&&(pe==null||pe.cancelValue(Ee.current),pe==null||pe.registerValue(xt.value),Ee.current=xt.value),()=>pe==null?void 0:pe.cancelValue(xt.value)},[xt.value]);const qe=on("checkbox",ze),[de,Xe]=(0,Re.ZP)(qe),St=Object.assign({},xt);pe&&!sn&&(St.onChange=function(){xt.onChange&&xt.onChange.apply(xt,arguments),pe.toggleOption&&pe.toggleOption({label:zt,value:xt.value})},St.name=pe.name,St.checked=pe.value.includes(xt.value));const _t=Me()(`${qe}-wrapper`,{[`${qe}-rtl`]:Mn==="rtl",[`${qe}-wrapper-checked`]:St.checked,[`${qe}-wrapper-disabled`]:He,[`${qe}-wrapper-in-form-item`]:Ae},vn==null?void 0:vn.className,Ce,lt,Xe),mt=Me()({[`${qe}-indeterminate`]:Kt},Ye.A,Xe),Vt=Kt?"mixed":void 0;return de(De.createElement(We.Z,{component:"Checkbox",disabled:He},De.createElement("label",{className:_t,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),$t),onMouseEnter:Ft,onMouseLeave:bt},De.createElement(Qe.Z,Object.assign({"aria-checked":Vt},St,{prefixCls:qe,className:mt,disabled:He,ref:he})),zt!==void 0&&De.createElement("span",null,zt))))};var y=De.forwardRef(ne),E=ie(74902),b=ie(10366),x=function(ge,he){var ue={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&he.indexOf(ze)<0&&(ue[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ze=Object.getOwnPropertySymbols(ge);Ce<ze.length;Ce++)he.indexOf(ze[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[Ce])&&(ue[ze[Ce]]=ge[ze[Ce]]);return ue};const z=(ge,he)=>{const{defaultValue:ue,children:ze,options:Ce=[],prefixCls:lt,className:zt,rootClassName:Kt,style:$t,onChange:Ft}=ge,bt=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:sn,direction:en}=De.useContext(ve.E_),[xt,on]=De.useState(bt.value||ue||[]),[Mn,vn]=De.useState([]);De.useEffect(()=>{"value"in bt&&on(bt.value||[])},[bt.value]);const pe=De.useMemo(()=>Ce.map(Bt=>typeof Bt=="string"||typeof Bt=="number"?{label:Bt,value:Bt}:Bt),[Ce]),Ae=Bt=>{vn(Ot=>Ot.filter(At=>At!==Bt))},Fe=Bt=>{vn(Ot=>[].concat((0,E.Z)(Ot),[Bt]))},He=Bt=>{const Ot=xt.indexOf(Bt.value),At=(0,E.Z)(xt);Ot===-1?At.push(Bt.value):At.splice(Ot,1),"value"in bt||on(At),Ft==null||Ft(At.filter(ln=>Mn.includes(ln)).sort((ln,kt)=>{const Ln=pe.findIndex(rn=>rn.value===ln),Cn=pe.findIndex(rn=>rn.value===kt);return Ln-Cn}))},Ee=sn("checkbox",lt),qe=`${Ee}-group`,[de,Xe]=(0,Re.ZP)(Ee),St=(0,b.Z)(bt,["value","disabled"]),_t=Ce.length?pe.map(Bt=>De.createElement(y,{prefixCls:Ee,key:Bt.value.toString(),disabled:"disabled"in Bt?Bt.disabled:bt.disabled,value:Bt.value,checked:xt.includes(Bt.value),onChange:Bt.onChange,className:`${qe}-item`,style:Bt.style,title:Bt.title},Bt.label)):ze,mt={toggleOption:He,value:xt,disabled:bt.disabled,name:bt.name,registerValue:Fe,cancelValue:Ae},Vt=Me()(qe,{[`${qe}-rtl`]:en==="rtl"},zt,Kt,Xe);return de(De.createElement("div",Object.assign({className:Vt,style:$t},St,{ref:he}),De.createElement(Oe.Provider,{value:mt},_t)))},ee=De.forwardRef(z);var te=De.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var re=oe},63185:function(Be,nt,ie){"use strict";ie.d(nt,{C2:function(){return ve}});var ae=ie(14747),Me=ie(45503),Qe=ie(67968);const De=we=>{const{checkboxCls:me}=we,Ie=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${me}:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{borderColor:we.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${me}-checked:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:we.colorTextDisabled}}}]};function ve(we,me){const Ie=(0,Me.TS)(me,{checkboxCls:`.${we}`,checkboxSize:me.controlInteractiveSize});return[De(Ie)]}nt.ZP=(0,Qe.Z)("Checkbox",(we,me)=>{let{prefixCls:Ie}=me;return[ve(Ie,we)]})},38703:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return wa}});var ae=ie(67294),Me=ie(23526),Qe=ie(60068),De=ie(30186),ve=ie(85846),we=ie(94184),me=ie.n(we),Ie=ie(10366),Oe=ie(53124),Re=ie(87462),We=ie(1413),Ye=ie(45987),Ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var xe=(0,ae.useRef)([]),Te=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ve=Date.now(),tt=!1;xe.current.forEach(function(ht){if(ht){tt=!0;var ft=ht.style;ft.transitionDuration=".3s, .3s, .3s, .06s",Te.current&&Ve-Te.current<100&&(ft.transitionDuration="0s, 0s")}}),tt&&(Te.current=Date.now())}),xe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(xe){var Te=(0,We.Z)((0,We.Z)({},Ze),xe),Ve=Te.className,tt=Te.percent,ht=Te.prefixCls,ft=Te.strokeColor,Pt=Te.strokeLinecap,pt=Te.strokeWidth,It=Te.style,Mt=Te.trailColor,Yt=Te.trailWidth,Pn=Te.transition,yn=(0,Ye.Z)(Te,a);delete yn.gapPosition;var gn=Array.isArray(tt)?tt:[tt],Jt=Array.isArray(ft)?ft:[ft],Ht=ne(),Gn=pt/2,bn=100-pt/2,Bn="M ".concat(Pt==="round"?Gn:0,",").concat(Gn,`
L `).concat(Pt==="round"?bn:100,",").concat(Gn),Qt="0 0 100 ".concat(pt),kn=0;return ae.createElement("svg",(0,Re.Z)({className:me()("".concat(ht,"-line"),Ve),viewBox:Qt,preserveAspectRatio:"none",style:It},yn),ae.createElement("path",{className:"".concat(ht,"-line-trail"),d:Bn,strokeLinecap:Pt,stroke:Mt,strokeWidth:Yt||pt,fillOpacity:"0"}),gn.map(function(Yn,In){var Dn=1;switch(Pt){case"round":Dn=1-pt/100;break;case"square":Dn=1-pt/2/100;break;default:Dn=1;break}var Jn={strokeDasharray:"".concat(Yn*Dn,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:Pn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Kn=Jt[In]||Jt[Jt.length-1];return kn+=Yn,ae.createElement("path",{key:In,className:"".concat(ht,"-line-path"),d:Bn,strokeLinecap:Pt,stroke:Kn,strokeWidth:pt,fillOpacity:"0",ref:function(Pe){Ht[In]=Pe},style:Jn})}))},E=y,b=ie(71002),x=ie(97685),z=ie(98924),ee=0,te=(0,z.Z)();function oe(){var fe;return te?(fe=ee,ee+=1):fe="TEST_OR_SSR",fe}var re=function(fe){var xe=ae.useState(),Te=(0,x.Z)(xe,2),Ve=Te[0],tt=Te[1];return ae.useEffect(function(){tt("rc_progress_".concat(oe()))},[]),fe||Ve},ge=function(xe){var Te=xe.bg,Ve=xe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Te}},Ve)};function he(fe,xe){return Object.keys(fe).map(function(Te){var Ve=parseFloat(Te),tt="".concat(Math.floor(Ve*xe),"%");return"".concat(fe[Te]," ").concat(tt)})}var ue=ae.forwardRef(function(fe,xe){var Te=fe.prefixCls,Ve=fe.color,tt=fe.gradientId,ht=fe.radius,ft=fe.style,Pt=fe.ptg,pt=fe.strokeLinecap,It=fe.strokeWidth,Mt=fe.size,Yt=fe.gapDegree,Pn=Ve&&(0,b.Z)(Ve)==="object",yn=Pn?"#FFF":void 0,gn=Mt/2,Jt=ae.createElement("circle",{className:"".concat(Te,"-circle-path"),r:ht,cx:gn,cy:gn,stroke:yn,strokeLinecap:pt,strokeWidth:It,opacity:Pt===0?0:1,style:ft,ref:xe});if(!Pn)return Jt;var Ht="".concat(tt,"-conic"),Gn=Yt?"".concat(180+Yt/2,"deg"):"0deg",bn=he(Ve,(360-Yt)/360),Bn=he(Ve,1),Qt="conic-gradient(from ".concat(Gn,", ").concat(bn.join(", "),")"),kn="linear-gradient(to ".concat(Yt?"bottom":"top",", ").concat(Bn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ht},Jt),ae.createElement("foreignObject",{x:0,y:0,width:Mt,height:Mt,mask:"url(#".concat(Ht,")")},ae.createElement(ge,{bg:kn},ae.createElement(ge,{bg:Qt}))))}),ze=ue,Ce=100,lt=function(xe,Te,Ve,tt,ht,ft,Pt,pt,It,Mt){var Yt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Pn=Ve/100*360*((360-ft)/360),yn=ft===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],gn=(100-tt)/100*Te;It==="round"&&tt!==100&&(gn+=Mt/2,gn>=Te&&(gn=Te-.01));var Jt=Ce/2;return{stroke:typeof pt=="string"?pt:void 0,strokeDasharray:"".concat(Te,"px ").concat(xe),strokeDashoffset:gn+Yt,transform:"rotate(".concat(ht+Pn+yn,"deg)"),transformOrigin:"".concat(Jt,"px ").concat(Jt,"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}},zt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Kt(fe){var xe=fe!=null?fe:[];return Array.isArray(xe)?xe:[xe]}var $t=function(xe){var Te=(0,We.Z)((0,We.Z)({},Ze),xe),Ve=Te.id,tt=Te.prefixCls,ht=Te.steps,ft=Te.strokeWidth,Pt=Te.trailWidth,pt=Te.gapDegree,It=pt===void 0?0:pt,Mt=Te.gapPosition,Yt=Te.trailColor,Pn=Te.strokeLinecap,yn=Te.style,gn=Te.className,Jt=Te.strokeColor,Ht=Te.percent,Gn=(0,Ye.Z)(Te,zt),bn=Ce/2,Bn=re(Ve),Qt="".concat(Bn,"-gradient"),kn=bn-ft/2,Yn=Math.PI*2*kn,In=It>0?90+It/2:-90,Dn=Yn*((360-It)/360),Jn=(0,b.Z)(ht)==="object"?ht:{count:ht,space:2},Kn=Jn.count,Se=Jn.space,Pe=Kt(Ht),ce=Kt(Jt),je=ce.find(function(wn){return wn&&(0,b.Z)(wn)==="object"}),gt=je&&(0,b.Z)(je)==="object",at=gt?"butt":Pn,Rt=lt(Yn,Dn,0,100,In,It,Mt,Yt,at,ft),Lt=ne(),Nt=function(){var ke=0;return Pe.map(function(Dt,hn){var Hn=ce[hn]||ce[ce.length-1],un=lt(Yn,Dn,ke,Dt,In,It,Mt,Hn,at,ft);return ke+=Dt,ae.createElement(ze,{key:hn,color:Hn,ptg:Dt,radius:kn,prefixCls:tt,gradientId:Qt,style:un,strokeLinecap:at,strokeWidth:ft,gapDegree:It,ref:function(Vn){Lt[hn]=Vn},size:Ce})}).reverse()},qt=function(){var ke=Math.round(Kn*(Pe[0]/100)),Dt=100/Kn,hn=0;return new Array(Kn).fill(null).map(function(Hn,un){var nn=un<=ke-1?ce[0]:Yt,Vn=nn&&(0,b.Z)(nn)==="object"?"url(#".concat(Qt,")"):void 0,ta=lt(Yn,Dn,hn,Dt,In,It,Mt,nn,"butt",ft,Se);return hn+=(Dn-ta.strokeDashoffset+Se)*100/Dn,ae.createElement("circle",{key:un,className:"".concat(tt,"-circle-path"),r:kn,cx:bn,cy:bn,stroke:Vn,strokeWidth:ft,opacity:1,style:ta,ref:function(ye){Lt[un]=ye}})})};return ae.createElement("svg",(0,Re.Z)({className:me()("".concat(tt,"-circle"),gn),viewBox:"0 0 ".concat(Ce," ").concat(Ce),style:yn,id:Ve,role:"presentation"},Gn),!Kn&&ae.createElement("circle",{className:"".concat(tt,"-circle-trail"),r:kn,cx:bn,cy:bn,stroke:Yt,strokeLinecap:at,strokeWidth:Pt||ft,style:Rt}),Kn?qt():Nt())},Ft=$t,bt={Line:E,Circle:Ft},sn=ie(83062),en=ie(47448);function xt(fe){return!fe||fe<0?0:fe>100?100:fe}function on(fe){let{success:xe,successPercent:Te}=fe,Ve=Te;return xe&&"progress"in xe&&(Ve=xe.progress),xe&&"percent"in xe&&(Ve=xe.percent),Ve}const Mn=fe=>{let{percent:xe,success:Te,successPercent:Ve}=fe;const tt=xt(on({success:Te,successPercent:Ve}));return[tt,xt(xt(xe)-tt)]},vn=fe=>{let{success:xe={},strokeColor:Te}=fe;const{strokeColor:Ve}=xe;return[Ve||en.presetPrimaryColors.green,Te||null]},pe=(fe,xe,Te)=>{var Ve,tt,ht,ft;let Pt=-1,pt=-1;if(xe==="step"){const It=Te.steps,Mt=Te.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?(Pt=fe==="small"?2:14,pt=Mt!=null?Mt:8):typeof fe=="number"?[Pt,pt]=[fe,fe]:[Pt=14,pt=8]=fe,Pt*=It}else if(xe==="line"){const It=Te==null?void 0:Te.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?pt=It||(fe==="small"?6:8):typeof fe=="number"?[Pt,pt]=[fe,fe]:[Pt=-1,pt=8]=fe}else(xe==="circle"||xe==="dashboard")&&(typeof fe=="string"||typeof fe=="undefined"?[Pt,pt]=fe==="small"?[60,60]:[120,120]:typeof fe=="number"?[Pt,pt]=[fe,fe]:(Pt=(tt=(Ve=fe[0])!==null&&Ve!==void 0?Ve:fe[1])!==null&&tt!==void 0?tt:120,pt=(ft=(ht=fe[0])!==null&&ht!==void 0?ht:fe[1])!==null&&ft!==void 0?ft:120));return[Pt,pt]},Ae=3,Fe=fe=>Ae/fe*100;var Ee=fe=>{const{prefixCls:xe,trailColor:Te=null,strokeLinecap:Ve="round",gapPosition:tt,gapDegree:ht,width:ft=120,type:Pt,children:pt,success:It,size:Mt=ft}=fe,[Yt,Pn]=pe(Mt,"circle");let{strokeWidth:yn}=fe;yn===void 0&&(yn=Math.max(Fe(Yt),6));const gn={width:Yt,height:Pn,fontSize:Yt*.15+6},Jt=ae.useMemo(()=>{if(ht||ht===0)return ht;if(Pt==="dashboard")return 75},[ht,Pt]),Ht=tt||Pt==="dashboard"&&"bottom"||void 0,Gn=Object.prototype.toString.call(fe.strokeColor)==="[object Object]",bn=vn({success:It,strokeColor:fe.strokeColor}),Bn=me()(`${xe}-inner`,{[`${xe}-circle-gradient`]:Gn}),Qt=ae.createElement(Ft,{percent:Mn(fe),strokeWidth:yn,trailWidth:yn,strokeColor:bn,strokeLinecap:Ve,trailColor:Te,prefixCls:xe,gapDegree:Jt,gapPosition:Ht});return ae.createElement("div",{className:Bn,style:gn},Yt<=20?ae.createElement(sn.Z,{title:pt},ae.createElement("span",null,Qt)):ae.createElement(ae.Fragment,null,Qt,pt))},qe=function(fe,xe){var Te={};for(var Ve in fe)Object.prototype.hasOwnProperty.call(fe,Ve)&&xe.indexOf(Ve)<0&&(Te[Ve]=fe[Ve]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ve=Object.getOwnPropertySymbols(fe);tt<Ve.length;tt++)xe.indexOf(Ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ve[tt])&&(Te[Ve[tt]]=fe[Ve[tt]]);return Te};const de=fe=>{let xe=[];return Object.keys(fe).forEach(Te=>{const Ve=parseFloat(Te.replace(/%/g,""));isNaN(Ve)||xe.push({key:Ve,value:fe[Te]})}),xe=xe.sort((Te,Ve)=>Te.key-Ve.key),xe.map(Te=>{let{key:Ve,value:tt}=Te;return`${tt} ${Ve}%`}).join(", ")},Xe=(fe,xe)=>{const{from:Te=en.presetPrimaryColors.blue,to:Ve=en.presetPrimaryColors.blue,direction:tt=xe==="rtl"?"to left":"to right"}=fe,ht=qe(fe,["from","to","direction"]);if(Object.keys(ht).length!==0){const ft=de(ht);return{backgroundImage:`linear-gradient(${tt}, ${ft})`}}return{backgroundImage:`linear-gradient(${tt}, ${Te}, ${Ve})`}};var _t=fe=>{const{prefixCls:xe,direction:Te,percent:Ve,size:tt,strokeWidth:ht,strokeColor:ft,strokeLinecap:Pt="round",children:pt,trailColor:It=null,success:Mt}=fe,Yt=ft&&typeof ft!="string"?Xe(ft,Te):{backgroundColor:ft},Pn=Pt==="square"||Pt==="butt"?0:void 0,yn={backgroundColor:It||void 0,borderRadius:Pn},gn=tt!=null?tt:[-1,ht||(tt==="small"?6:8)],[Jt,Ht]=pe(gn,"line",{strokeWidth:ht}),Gn=Object.assign({width:`${xt(Ve)}%`,height:Ht,borderRadius:Pn},Yt),bn=on(fe),Bn={width:`${xt(bn)}%`,height:Ht,borderRadius:Pn,backgroundColor:Mt==null?void 0:Mt.strokeColor},Qt={width:Jt<0?"100%":Jt,height:Ht};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${xe}-outer`,style:Qt},ae.createElement("div",{className:`${xe}-inner`,style:yn},ae.createElement("div",{className:`${xe}-bg`,style:Gn}),bn!==void 0?ae.createElement("div",{className:`${xe}-success-bg`,style:Bn}):null)),pt)},Vt=fe=>{const{size:xe,steps:Te,percent:Ve=0,strokeWidth:tt=8,strokeColor:ht,trailColor:ft=null,prefixCls:Pt,children:pt}=fe,It=Math.round(Te*(Ve/100)),Mt=xe==="small"?2:14,Yt=xe!=null?xe:[Mt,tt],[Pn,yn]=pe(Yt,"step",{steps:Te,strokeWidth:tt}),gn=Pn/Te,Jt=new Array(Te);for(let Ht=0;Ht<Te;Ht++){const Gn=Array.isArray(ht)?ht[Ht]:ht;Jt[Ht]=ae.createElement("div",{key:Ht,className:me()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:Ht<=It-1}),style:{backgroundColor:Ht<=It-1?Gn:ft,width:gn,height:yn}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},Jt,pt)},Bt=ie(45930),Ot=ie(14747),At=ie(67968),ln=ie(45503);const kt=fe=>{const xe=fe?"100%":"-100%";return new Bt.Keyframes(`antProgress${fe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ln=fe=>{const{componentCls:xe,iconCls:Te}=fe;return{[xe]:Object.assign(Object.assign({},(0,Ot.Wf)(fe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:fe.fontSize,marginInlineEnd:fe.marginXS,marginBottom:fe.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${fe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${fe.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:fe.remainingColor,borderRadius:fe.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:fe.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:fe.defaultColor,borderRadius:fe.lineBorderRadius,transition:`all ${fe.motionDurationSlow} ${fe.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:fe.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:fe.marginXS,color:fe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Te]:{fontSize:fe.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:fe.colorBgContainer,borderRadius:fe.lineBorderRadius,opacity:0,animationName:kt(),animationDuration:fe.progressActiveMotionDuration,animationTimingFunction:fe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:kt(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:fe.colorError},[`${xe}-text`]:{color:fe.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:fe.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:fe.colorSuccess},[`${xe}-text`]:{color:fe.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:fe.colorSuccess}}})}},Cn=fe=>{const{componentCls:xe,iconCls:Te}=fe;return{[xe]:{[`${xe}-circle-trail`]:{stroke:fe.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:fe.circleTextColor,fontSize:fe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Te]:{fontSize:`${fe.fontSize/fe.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:fe.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:fe.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},rn=fe=>{const{componentCls:xe}=fe;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:fe.progressStepMinWidth,marginInlineEnd:fe.progressStepMarginInlineEnd,backgroundColor:fe.remainingColor,transition:`all ${fe.motionDurationSlow}`,"&-active":{backgroundColor:fe.defaultColor}}}}}},Xn=fe=>{const{componentCls:xe,iconCls:Te}=fe;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${Te}`]:{fontSize:fe.fontSizeSM}}}};var tn=(0,At.Z)("Progress",fe=>{const xe=fe.marginXXS/2,Te=(0,ln.TS)(fe,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[Ln(Te),Cn(Te),rn(Te),Xn(Te)]},fe=>({circleTextColor:fe.colorText,defaultColor:fe.colorInfo,remainingColor:fe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nn=function(fe,xe){var Te={};for(var Ve in fe)Object.prototype.hasOwnProperty.call(fe,Ve)&&xe.indexOf(Ve)<0&&(Te[Ve]=fe[Ve]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ve=Object.getOwnPropertySymbols(fe);tt<Ve.length;tt++)xe.indexOf(Ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ve[tt])&&(Te[Ve[tt]]=fe[Ve[tt]]);return Te};const fa=null,ea=["normal","exception","active","success"];var ya=ae.forwardRef((fe,xe)=>{const{prefixCls:Te,className:Ve,rootClassName:tt,steps:ht,strokeColor:ft,percent:Pt=0,size:pt="default",showInfo:It=!0,type:Mt="line",status:Yt,format:Pn,style:yn}=fe,gn=Nn(fe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Jt=ae.useMemo(()=>{var Pe,ce;const je=on(fe);return parseInt(je!==void 0?(Pe=je!=null?je:0)===null||Pe===void 0?void 0:Pe.toString():(ce=Pt!=null?Pt:0)===null||ce===void 0?void 0:ce.toString(),10)},[Pt,fe.success,fe.successPercent]),Ht=ae.useMemo(()=>!ea.includes(Yt)&&Jt>=100?"success":Yt||"normal",[Yt,Jt]),{getPrefixCls:Gn,direction:bn,progress:Bn}=ae.useContext(Oe.E_),Qt=Gn("progress",Te),[kn,Yn]=tn(Qt),In=ae.useMemo(()=>{if(!It)return null;const Pe=on(fe);let ce;const je=Pn||(at=>`${at}%`),gt=Mt==="line";return Pn||Ht!=="exception"&&Ht!=="success"?ce=je(xt(Pt),xt(Pe)):Ht==="exception"?ce=gt?ae.createElement(De.Z,null):ae.createElement(ve.Z,null):Ht==="success"&&(ce=gt?ae.createElement(Me.Z,null):ae.createElement(Qe.Z,null)),ae.createElement("span",{className:`${Qt}-text`,title:typeof ce=="string"?ce:void 0},ce)},[It,Pt,Jt,Ht,Mt,Qt,Pn]),Dn=Array.isArray(ft)?ft[0]:ft,Jn=typeof ft=="string"||Array.isArray(ft)?ft:void 0;let Kn;Mt==="line"?Kn=ht?ae.createElement(Vt,Object.assign({},fe,{strokeColor:Jn,prefixCls:Qt,steps:ht}),In):ae.createElement(_t,Object.assign({},fe,{strokeColor:Dn,prefixCls:Qt,direction:bn}),In):(Mt==="circle"||Mt==="dashboard")&&(Kn=ae.createElement(Ee,Object.assign({},fe,{strokeColor:Dn,prefixCls:Qt,progressStatus:Ht}),In));const Se=me()(Qt,`${Qt}-status-${Ht}`,`${Qt}-${Mt==="dashboard"&&"circle"||ht&&"steps"||Mt}`,{[`${Qt}-inline-circle`]:Mt==="circle"&&pe(pt,"circle")[0]<=20,[`${Qt}-show-info`]:It,[`${Qt}-${pt}`]:typeof pt=="string",[`${Qt}-rtl`]:bn==="rtl"},Bn==null?void 0:Bn.className,Ve,tt,Yn);return kn(ae.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),yn),className:Se,role:"progressbar","aria-valuenow":Jt},(0,Ie.Z)(gn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Kn))}),wa=ya},92421:function(Be,nt,ie){"use strict";ie.d(nt,{default:function(){return ta}});var ae=ie(67294),Me=ie(74902),Qe=ie(94184),De=ie.n(Qe),ve=ie(87462),we=ie(15671),me=ie(43144),Ie=ie(60136),Oe=ie(51630),Re=ie(4942),We=ie(45987),Ye=ie(74165),Ze=ie(71002),ne=ie(15861),a=ie(64217);function y(se,ye){var Le="cannot ".concat(se.method," ").concat(se.action," ").concat(ye.status,"'"),be=new Error(Le);return be.status=ye.status,be.method=se.method,be.url=se.action,be}function E(se){var ye=se.responseText||se.response;if(!ye)return ye;try{return JSON.parse(ye)}catch(Le){return ye}}function b(se){var ye=new XMLHttpRequest;se.onProgress&&ye.upload&&(ye.upload.onprogress=function(Ne){Ne.total>0&&(Ne.percent=Ne.loaded/Ne.total*100),se.onProgress(Ne)});var Le=new FormData;se.data&&Object.keys(se.data).forEach(function(_e){var Ne=se.data[_e];if(Array.isArray(Ne)){Ne.forEach(function($e){Le.append("".concat(_e,"[]"),$e)});return}Le.append(_e,Ne)}),se.file instanceof Blob?Le.append(se.filename,se.file,se.file.name):Le.append(se.filename,se.file),ye.onerror=function(Ne){se.onError(Ne)},ye.onload=function(){return ye.status<200||ye.status>=300?se.onError(y(se,ye),E(ye)):se.onSuccess(E(ye),ye)},ye.open(se.method,se.action,!0),se.withCredentials&&"withCredentials"in ye&&(ye.withCredentials=!0);var be=se.headers||{};return be["X-Requested-With"]!==null&&ye.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(be).forEach(function(_e){be[_e]!==null&&ye.setRequestHeader(_e,be[_e])}),ye.send(Le),{abort:function(){ye.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=ie(80334),oe=function(se,ye){if(se&&ye){var Le=Array.isArray(ye)?ye:ye.split(","),be=se.name||"",_e=se.type||"",Ne=_e.replace(/\/.*$/,"");return Le.some(function($e){var le=$e.trim();if(/^\*(\/\*)?$/.test($e))return!0;if(le.charAt(0)==="."){var st=be.toLowerCase(),it=le.toLowerCase(),ct=[it];return(it===".jpg"||it===".jpeg")&&(ct=[".jpg",".jpeg"]),ct.some(function(yt){return st.endsWith(yt)})}return/\/\*$/.test(le)?Ne===le.replace(/\/.*$/,""):_e===le?!0:/^\w+$/.test(le)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(le,"'.Skip for check.")),!0):!1})}return!0};function re(se,ye){var Le=se.createReader(),be=[];function _e(){Le.readEntries(function(Ne){var $e=Array.prototype.slice.apply(Ne);be=be.concat($e);var le=!$e.length;le?ye(be):_e()})}_e()}var ge=function(ye,Le,be){var _e=function Ne($e,le){$e&&($e.path=le||"",$e.isFile?$e.file(function(st){be(st)&&($e.fullPath&&!st.webkitRelativePath&&(Object.defineProperties(st,{webkitRelativePath:{writable:!0}}),st.webkitRelativePath=$e.fullPath.replace(/^\//,""),Object.defineProperties(st,{webkitRelativePath:{writable:!1}})),Le([st]))}):$e.isDirectory&&re($e,function(st){st.forEach(function(it){Ne(it,"".concat(le).concat($e.name,"/"))})}))};ye.forEach(function(Ne){_e(Ne.webkitGetAsEntry())})},he=ge,ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(se){(0,Ie.Z)(Le,se);var ye=(0,Oe.Z)(Le);function Le(){var be;(0,we.Z)(this,Le);for(var _e=arguments.length,Ne=new Array(_e),$e=0;$e<_e;$e++)Ne[$e]=arguments[$e];return be=ye.call.apply(ye,[this].concat(Ne)),be.state={uid:ee()},be.reqs={},be.fileInput=void 0,be._isMounted=void 0,be.onChange=function(le){var st=be.props,it=st.accept,ct=st.directory,yt=le.target.files,Ge=(0,Me.Z)(yt).filter(function(Ue){return!ct||oe(Ue,it)});be.uploadFiles(Ge),be.reset()},be.onClick=function(le){var st=be.fileInput;if(st){var it=be.props,ct=it.children,yt=it.onClick;if(ct&&ct.type==="button"){var Ge=st.parentNode;Ge.focus(),Ge.querySelector("button").blur()}st.click(),yt&&yt(le)}},be.onKeyDown=function(le){le.key==="Enter"&&be.onClick(le)},be.onFileDrop=function(le){var st=be.props.multiple;if(le.preventDefault(),le.type!=="dragover")if(be.props.directory)he(Array.prototype.slice.call(le.dataTransfer.items),be.uploadFiles,function(ct){return oe(ct,be.props.accept)});else{var it=(0,Me.Z)(le.dataTransfer.files).filter(function(ct){return oe(ct,be.props.accept)});st===!1&&(it=it.slice(0,1)),be.uploadFiles(it)}},be.uploadFiles=function(le){var st=(0,Me.Z)(le),it=st.map(function(ct){return ct.uid=ee(),be.processFile(ct,st)});Promise.all(it).then(function(ct){var yt=be.props.onBatchStart;yt==null||yt(ct.map(function(Ge){var Ue=Ge.origin,dt=Ge.parsedFile;return{file:Ue,parsedFile:dt}})),ct.filter(function(Ge){return Ge.parsedFile!==null}).forEach(function(Ge){be.post(Ge)})})},be.processFile=function(){var le=(0,ne.Z)((0,Ye.Z)().mark(function st(it,ct){var yt,Ge,Ue,dt,Je,Gt,Et,Wt,Zt;return(0,Ye.Z)().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(yt=be.props.beforeUpload,Ge=it,!yt){Ct.next=14;break}return Ct.prev=3,Ct.next=6,yt(it,ct);case 6:Ge=Ct.sent,Ct.next=12;break;case 9:Ct.prev=9,Ct.t0=Ct.catch(3),Ge=!1;case 12:if(Ge!==!1){Ct.next=14;break}return Ct.abrupt("return",{origin:it,parsedFile:null,action:null,data:null});case 14:if(Ue=be.props.action,typeof Ue!="function"){Ct.next=21;break}return Ct.next=18,Ue(it);case 18:dt=Ct.sent,Ct.next=22;break;case 21:dt=Ue;case 22:if(Je=be.props.data,typeof Je!="function"){Ct.next=29;break}return Ct.next=26,Je(it);case 26:Gt=Ct.sent,Ct.next=30;break;case 29:Gt=Je;case 30:return Et=((0,Ze.Z)(Ge)==="object"||typeof Ge=="string")&&Ge?Ge:it,Et instanceof File?Wt=Et:Wt=new File([Et],it.name,{type:it.type}),Zt=Wt,Zt.uid=it.uid,Ct.abrupt("return",{origin:it,data:Gt,parsedFile:Zt,action:dt});case 35:case"end":return Ct.stop()}},st,null,[[3,9]])}));return function(st,it){return le.apply(this,arguments)}}(),be.saveFileInput=function(le){be.fileInput=le},be}return(0,me.Z)(Le,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(_e){var Ne=this,$e=_e.data,le=_e.origin,st=_e.action,it=_e.parsedFile;if(this._isMounted){var ct=this.props,yt=ct.onStart,Ge=ct.customRequest,Ue=ct.name,dt=ct.headers,Je=ct.withCredentials,Gt=ct.method,Et=le.uid,Wt=Ge||b,Zt={action:st,filename:Ue,data:$e,file:it,headers:dt,withCredentials:Je,method:Gt||"post",onProgress:function(Ct){var fn=Ne.props.onProgress;fn==null||fn(Ct,it)},onSuccess:function(Ct,fn){var Fn=Ne.props.onSuccess;Fn==null||Fn(Ct,it,fn),delete Ne.reqs[Et]},onError:function(Ct,fn){var Fn=Ne.props.onError;Fn==null||Fn(Ct,fn,it),delete Ne.reqs[Et]}};yt(le),this.reqs[Et]=Wt(Zt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(_e){var Ne=this.reqs;if(_e){var $e=_e.uid?_e.uid:_e;Ne[$e]&&Ne[$e].abort&&Ne[$e].abort(),delete Ne[$e]}else Object.keys(Ne).forEach(function(le){Ne[le]&&Ne[le].abort&&Ne[le].abort(),delete Ne[le]})}},{key:"render",value:function(){var _e,Ne=this.props,$e=Ne.component,le=Ne.prefixCls,st=Ne.className,it=Ne.disabled,ct=Ne.id,yt=Ne.style,Ge=Ne.multiple,Ue=Ne.accept,dt=Ne.capture,Je=Ne.children,Gt=Ne.directory,Et=Ne.openFileDialogOnClick,Wt=Ne.onMouseEnter,Zt=Ne.onMouseLeave,Ut=(0,We.Z)(Ne,ue),Ct=De()((_e={},(0,Re.Z)(_e,le,!0),(0,Re.Z)(_e,"".concat(le,"-disabled"),it),(0,Re.Z)(_e,st,st),_e)),fn=Gt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Fn=it?{}:{onClick:Et?this.onClick:function(){},onKeyDown:Et?this.onKeyDown:function(){},onMouseEnter:Wt,onMouseLeave:Zt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement($e,(0,ve.Z)({},Fn,{className:Ct,role:"button",style:yt}),ae.createElement("input",(0,ve.Z)({},(0,a.Z)(Ut,{aria:!0,data:!0}),{id:ct,disabled:it,type:"file",ref:this.saveFileInput,onClick:function(Qn){return Qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ue},fn,{multiple:Ge,onChange:this.onChange},dt!=null?{capture:dt}:{})),Je)}}]),Le}(ae.Component),Ce=ze;function lt(){}var zt=function(se){(0,Ie.Z)(Le,se);var ye=(0,Oe.Z)(Le);function Le(){var be;(0,we.Z)(this,Le);for(var _e=arguments.length,Ne=new Array(_e),$e=0;$e<_e;$e++)Ne[$e]=arguments[$e];return be=ye.call.apply(ye,[this].concat(Ne)),be.uploader=void 0,be.saveUploader=function(le){be.uploader=le},be}return(0,me.Z)(Le,[{key:"abort",value:function(_e){this.uploader.abort(_e)}},{key:"render",value:function(){return ae.createElement(Ce,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),Le}(ae.Component);zt.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};var Kt=zt,$t=Kt,Ft=ie(5663),bt=ie(73935),sn=ie(53124),en=ie(98866),xt=ie(10110),on=ie(24457),Mn={icon:function(ye,Le){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Le}},{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:ye}}]}},name:"file",theme:"twotone"},vn=Mn,pe=ie(44327),Ae=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:vn}))},Fe=ae.forwardRef(Ae),He=ie(77322),Ee={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"},qe=Ee,de=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:qe}))},Xe=ae.forwardRef(de),St={icon:function(ye,Le){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:ye}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Le}},{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:Le}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Le}},{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:ye}}]}},name:"picture",theme:"twotone"},_t=St,mt=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:_t}))},Vt=ae.forwardRef(mt),Bt=ie(38379),Ot=ie(57838),At=ie(33603),ln=ie(96159),kt=ie(71577);function Ln(se){return Object.assign(Object.assign({},se),{lastModified:se.lastModified,lastModifiedDate:se.lastModifiedDate,name:se.name,size:se.size,type:se.type,uid:se.uid,percent:0,originFileObj:se})}function Cn(se,ye){const Le=(0,Me.Z)(ye),be=Le.findIndex(_e=>{let{uid:Ne}=_e;return Ne===se.uid});return be===-1?Le.push(se):Le[be]=se,Le}function rn(se,ye){const Le=se.uid!==void 0?"uid":"name";return ye.filter(be=>be[Le]===se[Le])[0]}function Xn(se,ye){const Le=se.uid!==void 0?"uid":"name",be=ye.filter(_e=>_e[Le]!==se[Le]);return be.length===ye.length?null:be}const tn=function(){const ye=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),be=ye[ye.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(be)||[""])[0]},Nn=se=>se.indexOf("image/")===0,fa=se=>{if(se.type&&!se.thumbUrl)return Nn(se.type);const ye=se.thumbUrl||se.url||"",Le=tn(ye);return/^data:image\//.test(ye)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Le)?!0:!(/^data:/.test(ye)||Le)},ea=200;function Ba(se){return new Promise(ye=>{if(!se.type||!Nn(se.type)){ye("");return}const Le=document.createElement("canvas");Le.width=ea,Le.height=ea,Le.style.cssText=`position: fixed; left: 0; top: 0; width: ${ea}px; height: ${ea}px; z-index: 9999; display: none;`,document.body.appendChild(Le);const be=Le.getContext("2d"),_e=new Image;if(_e.onload=()=>{const{width:Ne,height:$e}=_e;let le=ea,st=ea,it=0,ct=0;Ne>$e?(st=$e*(ea/Ne),ct=-(st-le)/2):(le=Ne*(ea/$e),it=-(le-st)/2),be.drawImage(_e,it,ct,le,st);const yt=Le.toDataURL();document.body.removeChild(Le),window.URL.revokeObjectURL(_e.src),ye(yt)},_e.crossOrigin="anonymous",se.type.startsWith("image/svg+xml")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&(_e.src=Ne.result)},Ne.readAsDataURL(se)}else if(se.type.startsWith("image/gif")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&ye(Ne.result)},Ne.readAsDataURL(se)}else _e.src=window.URL.createObjectURL(se)})}var ya={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"},wa=ya,fe=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:wa}))},xe=ae.forwardRef(fe),Te={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"},Ve=Te,tt=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:Ve}))},ht=ae.forwardRef(tt),ft=ie(43481),Pt=ie(38703),pt=ie(83062),Mt=ae.forwardRef((se,ye)=>{let{prefixCls:Le,className:be,style:_e,locale:Ne,listType:$e,file:le,items:st,progress:it,iconRender:ct,actionIconRender:yt,itemRender:Ge,isImgUrl:Ue,showPreviewIcon:dt,showRemoveIcon:Je,showDownloadIcon:Gt,previewIcon:Et,removeIcon:Wt,downloadIcon:Zt,onPreview:Ut,onDownload:Ct,onClose:fn}=se;var Fn,ia;const{status:Qn}=le,[Rn,sa]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&sa(Qn)},[Qn]);const[ca,Sa]=ae.useState(!1);ae.useEffect(()=>{const pn=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(pn)}},[]);const Wn=ct(le);let An=ae.createElement("div",{className:`${Le}-icon`},Wn);if($e==="picture"||$e==="picture-card"||$e==="picture-circle")if(Rn==="uploading"||!le.thumbUrl&&!le.url){const pn=De()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:Rn!=="uploading"});An=ae.createElement("div",{className:pn},Wn)}else{const pn=Ue!=null&&Ue(le)?ae.createElement("img",{src:le.thumbUrl||le.url,alt:le.name,className:`${Le}-list-item-image`,crossOrigin:le.crossOrigin}):Wn,cn=De()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:Ue&&!Ue(le)});An=ae.createElement("a",{className:cn,onClick:oa=>Ut(le,oa),href:le.url||le.thumbUrl,target:"_blank",rel:"noopener noreferrer"},pn)}const dn=De()(`${Le}-list-item`,`${Le}-list-item-${Rn}`),na=typeof le.linkProps=="string"?JSON.parse(le.linkProps):le.linkProps,Pa=Je?yt((typeof Wt=="function"?Wt(le):Wt)||ae.createElement(xe,null),()=>fn(le),Le,Ne.removeFile):null,ua=Gt&&Rn==="done"?yt((typeof Zt=="function"?Zt(le):Zt)||ae.createElement(ht,null),()=>Ct(le),Le,Ne.downloadFile):null,da=$e!=="picture-card"&&$e!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:De()(`${Le}-list-item-actions`,{picture:$e==="picture"})},ua,Pa),_n=De()(`${Le}-list-item-name`),Zn=le.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_n,title:le.name},na,{href:le.url,onClick:pn=>Ut(le,pn)}),le.name),da]:[ae.createElement("span",{key:"view",className:_n,onClick:pn=>Ut(le,pn),title:le.name},le.name),da],vt={pointerEvents:"none",opacity:.5},Xt=dt?ae.createElement("a",{href:le.url||le.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:le.url||le.thumbUrl?void 0:vt,onClick:pn=>Ut(le,pn),title:Ne.previewFile},typeof Et=="function"?Et(le):Et||ae.createElement(ft.Z,null)):null,Un=($e==="picture-card"||$e==="picture-circle")&&Rn!=="uploading"&&ae.createElement("span",{className:`${Le}-list-item-actions`},Xt,Rn==="done"&&ua,Pa),{getPrefixCls:Tn}=ae.useContext(sn.E_),la=Tn(),aa=ae.createElement("div",{className:dn},An,Zn,Un,ca&&ae.createElement(Bt.default,{motionName:`${la}-fade`,visible:Rn==="uploading",motionDeadline:2e3},pn=>{let{className:cn}=pn;const oa="percent"in le?ae.createElement(Pt.Z,Object.assign({},it,{type:"line",percent:le.percent,"aria-label":le["aria-label"],"aria-labelledby":le["aria-labelledby"]})):null;return ae.createElement("div",{className:De()(`${Le}-list-item-progress`,cn)},oa)})),Fa=le.response&&typeof le.response=="string"?le.response:((Fn=le.error)===null||Fn===void 0?void 0:Fn.statusText)||((ia=le.error)===null||ia===void 0?void 0:ia.message)||Ne.uploadError,va=Rn==="error"?ae.createElement(pt.Z,{title:Fa,getPopupContainer:pn=>pn.parentNode},aa):aa;return ae.createElement("div",{className:De()(`${Le}-list-item-container`,be),style:_e,ref:ye},Ge?Ge(va,le,st,{download:Ct.bind(null,le),preview:Ut.bind(null,le),remove:fn.bind(null,le)}):va)});const Yt=(se,ye)=>{const{listType:Le="text",previewFile:be=Ba,onPreview:_e,onDownload:Ne,onRemove:$e,locale:le,iconRender:st,isImageUrl:it=fa,prefixCls:ct,items:yt=[],showPreviewIcon:Ge=!0,showRemoveIcon:Ue=!0,showDownloadIcon:dt=!1,removeIcon:Je,previewIcon:Gt,downloadIcon:Et,progress:Wt={size:[-1,2],showInfo:!1},appendAction:Zt,appendActionVisible:Ut=!0,itemRender:Ct,disabled:fn}=se,Fn=(0,Ot.Z)(),[ia,Qn]=ae.useState(!1);ae.useEffect(()=>{Le!=="picture"&&Le!=="picture-card"&&Le!=="picture-circle"||(yt||[]).forEach(vt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(vt.originFileObj instanceof File||vt.originFileObj instanceof Blob)||vt.thumbUrl!==void 0||(vt.thumbUrl="",be&&be(vt.originFileObj).then(Xt=>{vt.thumbUrl=Xt||"",Fn()}))})},[Le,yt,be]),ae.useEffect(()=>{Qn(!0)},[]);const Rn=(vt,Xt)=>{if(_e)return Xt==null||Xt.preventDefault(),_e(vt)},sa=vt=>{typeof Ne=="function"?Ne(vt):vt.url&&window.open(vt.url)},ca=vt=>{$e==null||$e(vt)},Sa=vt=>{if(st)return st(vt,Le);const Xt=vt.status==="uploading",Un=it&&it(vt)?ae.createElement(Vt,null):ae.createElement(Fe,null);let Tn=Xt?ae.createElement(He.Z,null):ae.createElement(Xe,null);return Le==="picture"?Tn=Xt?ae.createElement(He.Z,null):Un:(Le==="picture-card"||Le==="picture-circle")&&(Tn=Xt?le.uploading:Un),Tn},Wn=(vt,Xt,Un,Tn)=>{const la={type:"text",size:"small",title:Tn,onClick:aa=>{Xt(),(0,ln.l$)(vt)&&vt.props.onClick&&vt.props.onClick(aa)},className:`${Un}-list-item-action`,disabled:fn};if((0,ln.l$)(vt)){const aa=(0,ln.Tm)(vt,Object.assign(Object.assign({},vt.props),{onClick:()=>{}}));return ae.createElement(kt.ZP,Object.assign({},la,{icon:aa}))}return ae.createElement(kt.ZP,Object.assign({},la),ae.createElement("span",null,vt))};ae.useImperativeHandle(ye,()=>({handlePreview:Rn,handleDownload:sa}));const{getPrefixCls:An}=ae.useContext(sn.E_),dn=An("upload",ct),na=An(),Pa=De()(`${dn}-list`,`${dn}-list-${Le}`),ua=(0,Me.Z)(yt.map(vt=>({key:vt.uid,file:vt})));let _n={motionDeadline:2e3,motionName:`${dn}-${Le==="picture-card"||Le==="picture-circle"?"animate-inline":"animate"}`,keys:ua,motionAppear:ia};const Zn=ae.useMemo(()=>{const vt=Object.assign({},(0,At.Z)(na));return delete vt.onAppearEnd,delete vt.onEnterEnd,delete vt.onLeaveEnd,vt},[na]);return Le!=="picture-card"&&Le!=="picture-circle"&&(_n=Object.assign(Object.assign({},Zn),_n)),ae.createElement("div",{className:Pa},ae.createElement(Bt.CSSMotionList,Object.assign({},_n,{component:!1}),vt=>{let{key:Xt,file:Un,className:Tn,style:la}=vt;return ae.createElement(Mt,{key:Xt,locale:le,prefixCls:dn,className:Tn,style:la,file:Un,items:yt,progress:Wt,listType:Le,isImgUrl:it,showPreviewIcon:Ge,showRemoveIcon:Ue,showDownloadIcon:dt,removeIcon:Je,previewIcon:Gt,downloadIcon:Et,iconRender:Sa,actionIconRender:Wn,itemRender:Ct,onPreview:Rn,onDownload:sa,onClose:ca})}),Zt&&ae.createElement(Bt.default,Object.assign({},_n,{visible:Ut,forceRender:!0}),vt=>{let{className:Xt,style:Un}=vt;return(0,ln.Tm)(Zt,Tn=>({className:De()(Tn.className,Xt),style:Object.assign(Object.assign(Object.assign({},Un),{pointerEvents:Xt?"none":void 0}),Tn.style)}))}))};var yn=ae.forwardRef(Yt),gn=ie(14747),Jt=ie(33507),Ht=ie(67968),Gn=ie(45503),Bn=se=>{const{componentCls:ye,iconCls:Le}=se;return{[`${ye}-wrapper`]:{[`${ye}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[ye]:{padding:`${se.padding}px 0`},[`${ye}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ye}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ye}-disabled):hover`]:{borderColor:se.colorPrimaryHover},[`p${ye}-drag-icon`]:{marginBottom:se.margin,[Le]:{color:se.colorPrimary,fontSize:se.uploadThumbnailSize}},[`p${ye}-text`]:{margin:`0 0 ${se.marginXXS}px`,color:se.colorTextHeading,fontSize:se.fontSizeLG},[`p${ye}-hint`]:{color:se.colorTextDescription,fontSize:se.fontSize},[`&${ye}-disabled`]:{cursor:"not-allowed",[`p${ye}-drag-icon ${Le},
p${ye}-text,
p${ye}-hint
`]:{color:se.colorTextDisabled}}}}}},kn=se=>{const{componentCls:ye,antCls:Le,iconCls:be,fontSize:_e,lineHeight:Ne}=se,$e=`${ye}-list-item`,le=`${$e}-actions`,st=`${$e}-action`,it=Math.round(_e*Ne);return{[`${ye}-wrapper`]:{[`${ye}-list`]:Object.assign(Object.assign({},(0,gn.dF)()),{lineHeight:se.lineHeight,[$e]:{position:"relative",height:se.lineHeight*_e,marginTop:se.marginXS,fontSize:_e,display:"flex",alignItems:"center",transition:`background-color ${se.motionDurationSlow}`,"&:hover":{backgroundColor:se.controlItemBgHover},[`${$e}-name`]:Object.assign(Object.assign({},gn.vS),{padding:`0 ${se.paddingXS}px`,lineHeight:Ne,flex:"auto",transition:`all ${se.motionDurationSlow}`}),[le]:{[st]:{opacity:0},[`${st}${Le}-btn-sm`]:{height:it,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${st}:focus-visible,
&.picture ${st}
`]:{opacity:1},[be]:{color:se.actionsColor,transition:`all ${se.motionDurationSlow}`},[`&:hover ${be}`]:{color:se.colorText}},[`${ye}-icon ${be}`]:{color:se.colorTextDescription,fontSize:_e},[`${$e}-progress`]:{position:"absolute",bottom:-se.uploadProgressOffset,width:"100%",paddingInlineStart:_e+se.paddingXS,fontSize:_e,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${$e}:hover ${st}`]:{opacity:1,color:se.colorText},[`${$e}-error`]:{color:se.colorError,[`${$e}-name, ${ye}-icon ${be}`]:{color:se.colorError},[le]:{[`${be}, ${be}:hover`]:{color:se.colorError},[st]:{opacity:1}}},[`${ye}-list-item-container`]:{transition:`opacity ${se.motionDurationSlow}, height ${se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Yn=ie(45930),In=ie(16932);const Dn=new Yn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new Yn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Se=se=>{const{componentCls:ye}=se,Le=`${ye}-animate-inline`;return[{[`${ye}-wrapper`]:{[`${Le}-appear, ${Le}-enter, ${Le}-leave`]:{animationDuration:se.motionDurationSlow,animationTimingFunction:se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Le}-appear, ${Le}-enter`]:{animationName:Dn},[`${Le}-leave`]:{animationName:Jn}}},{[`${ye}-wrapper`]:(0,In.J$)(se)},Dn,Jn]},Pe=ie(47448),ce=ie(84780);const je=se=>{const{componentCls:ye,iconCls:Le,uploadThumbnailSize:be,uploadProgressOffset:_e}=se,Ne=`${ye}-list`,$e=`${Ne}-item`;return{[`${ye}-wrapper`]:{[`
${Ne}${Ne}-picture,
${Ne}${Ne}-picture-card,
${Ne}${Ne}-picture-circle
`]:{[$e]:{position:"relative",height:be+se.lineWidth*2+se.paddingXS*2,padding:se.paddingXS,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusLG,"&:hover":{background:"transparent"},[`${$e}-thumbnail`]:Object.assign(Object.assign({},gn.vS),{width:be,height:be,lineHeight:`${be+se.paddingSM}px`,textAlign:"center",flex:"none",[Le]:{fontSize:se.fontSizeHeading2,color:se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${$e}-progress`]:{bottom:_e,width:`calc(100% - ${se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:be+se.paddingXS}},[`${$e}-error`]:{borderColor:se.colorError,[`${$e}-thumbnail ${Le}`]:{[`svg path[fill='${Pe.blue[0]}']`]:{fill:se.colorErrorBg},[`svg path[fill='${Pe.blue.primary}']`]:{fill:se.colorError}}},[`${$e}-uploading`]:{borderStyle:"dashed",[`${$e}-name`]:{marginBottom:_e}}},[`${Ne}${Ne}-picture-circle ${$e}`]:{[`&, &::before, ${$e}-thumbnail`]:{borderRadius:"50%"}}}}},gt=se=>{const{componentCls:ye,iconCls:Le,fontSizeLG:be,colorTextLightSolid:_e}=se,Ne=`${ye}-list`,$e=`${Ne}-item`,le=se.uploadPicCardSize;return{[`
${ye}-wrapper${ye}-picture-card-wrapper,
${ye}-wrapper${ye}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,gn.dF)()),{display:"inline-block",width:"100%",[`${ye}${ye}-select`]:{width:le,height:le,marginInlineEnd:se.marginXS,marginBottom:se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[`> ${ye}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ye}-disabled):hover`]:{borderColor:se.colorPrimary}},[`${Ne}${Ne}-picture-card, ${Ne}${Ne}-picture-circle`]:{[`${Ne}-item-container`]:{display:"inline-block",width:le,height:le,marginBlock:`0 ${se.marginXS}px`,marginInline:`0 ${se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[$e]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se.paddingXS*2}px)`,height:`calc(100% - ${se.paddingXS*2}px)`,backgroundColor:se.colorBgMask,opacity:0,transition:`all ${se.motionDurationSlow}`,content:'" "'}},[`${$e}:hover`]:{[`&::before, ${$e}-actions`]:{opacity:1}},[`${$e}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${se.motionDurationSlow}`,[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{zIndex:10,width:be,margin:`0 ${se.marginXXS}px`,fontSize:be,cursor:"pointer",transition:`all ${se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${$e}-actions, ${$e}-actions:hover`]:{[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{color:new ce.C(_e).setAlpha(.65).toRgbString(),"&:hover":{color:_e}}},[`${$e}-thumbnail, ${$e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${$e}-name`]:{display:"none",textAlign:"center"},[`${$e}-file + ${$e}-name`]:{position:"absolute",bottom:se.margin,display:"block",width:`calc(100% - ${se.paddingXS*2}px)`},[`${$e}-uploading`]:{[`&${$e}`]:{backgroundColor:se.colorFillAlter},[`&::before, ${Le}-eye, ${Le}-download, ${Le}-delete`]:{display:"none"}},[`${$e}-progress`]:{bottom:se.marginXL,width:`calc(100% - ${se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ye}-wrapper${ye}-picture-circle-wrapper`]:{[`${ye}${ye}-select`]:{borderRadius:"50%"}}}};var Rt=se=>{const{componentCls:ye}=se;return{[`${ye}-rtl`]:{direction:"rtl"}}};const Lt=se=>{const{componentCls:ye,colorTextDisabled:Le}=se;return{[`${ye}-wrapper`]:Object.assign(Object.assign({},(0,gn.Wf)(se)),{[ye]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ye}-select`]:{display:"inline-block"},[`${ye}-disabled`]:{color:Le,cursor:"not-allowed"}})}};var Nt=(0,Ht.Z)("Upload",se=>{const{fontSizeHeading3:ye,fontSize:Le,lineHeight:be,lineWidth:_e,controlHeightLG:Ne}=se,$e=Math.round(Le*be),le=(0,Gn.TS)(se,{uploadThumbnailSize:ye*2,uploadProgressOffset:$e/2+_e,uploadPicCardSize:Ne*2.55});return[Lt(le),Bn(le),je(le),gt(le),kn(le),Se(le),Rt(le),(0,Jt.Z)(le)]},se=>({actionsColor:se.colorTextDescription})),qt=function(se,ye,Le,be){function _e(Ne){return Ne instanceof Le?Ne:new Le(function($e){$e(Ne)})}return new(Le||(Le=Promise))(function(Ne,$e){function le(ct){try{it(be.next(ct))}catch(yt){$e(yt)}}function st(ct){try{it(be.throw(ct))}catch(yt){$e(yt)}}function it(ct){ct.done?Ne(ct.value):_e(ct.value).then(le,st)}it((be=be.apply(se,ye||[])).next())})};const wn=`__LIST_IGNORE_${Date.now()}__`,ke=(se,ye)=>{const{fileList:Le,defaultFileList:be,onRemove:_e,showUploadList:Ne=!0,listType:$e="text",onPreview:le,onDownload:st,onChange:it,onDrop:ct,previewFile:yt,disabled:Ge,locale:Ue,iconRender:dt,isImageUrl:Je,progress:Gt,prefixCls:Et,className:Wt,type:Zt="select",children:Ut,style:Ct,itemRender:fn,maxCount:Fn,data:ia={},multiple:Qn=!1,action:Rn="",accept:sa="",supportServerRender:ca=!0,rootClassName:Sa}=se,Wn=ae.useContext(en.Z),An=Ge!=null?Ge:Wn,[dn,na]=(0,Ft.Z)(be||[],{value:Le,postState:wt=>wt!=null?wt:[]}),[Pa,ua]=ae.useState("drop"),da=ae.useRef(null);ae.useMemo(()=>{const wt=Date.now();(Le||[]).forEach((Tt,mn)=>{!Tt.uid&&!Object.isFrozen(Tt)&&(Tt.uid=`__AUTO__${wt}_${mn}__`)})},[Le]);const _n=(wt,Tt,mn)=>{let ut=(0,Me.Z)(Tt),an=!1;Fn===1?ut=ut.slice(-1):Fn&&(an=ut.length>Fn,ut=ut.slice(0,Fn)),(0,bt.flushSync)(()=>{na(ut)});const $n={file:wt,fileList:ut};mn&&($n.event=mn),(!an||ut.some(ma=>ma.uid===wt.uid))&&(0,bt.flushSync)(()=>{it==null||it($n)})},Zn=(wt,Tt)=>qt(void 0,void 0,void 0,function*(){const{beforeUpload:mn,transformFile:ut}=se;let an=wt;if(mn){const $n=yield mn(wt,Tt);if($n===!1)return!1;if(delete wt[wn],$n===wn)return Object.defineProperty(wt,wn,{value:!0,configurable:!0}),!1;typeof $n=="object"&&$n&&(an=$n)}return ut&&(an=yield ut(an)),an}),vt=wt=>{const Tt=wt.filter(an=>!an.file[wn]);if(!Tt.length)return;const mn=Tt.map(an=>Ln(an.file));let ut=(0,Me.Z)(dn);mn.forEach(an=>{ut=Cn(an,ut)}),mn.forEach((an,$n)=>{let ma=an;if(Tt[$n].parsedFile)an.status="uploading";else{const{originFileObj:ha}=an;let ra;try{ra=new File([ha],ha.name,{type:ha.type})}catch(ga){ra=new Blob([ha],{type:ha.type}),ra.name=ha.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=an.uid,ma=ra}_n(ma,ut)})},Xt=(wt,Tt,mn)=>{try{typeof wt=="string"&&(wt=JSON.parse(wt))}catch($n){}if(!rn(Tt,dn))return;const ut=Ln(Tt);ut.status="done",ut.percent=100,ut.response=wt,ut.xhr=mn;const an=Cn(ut,dn);_n(ut,an)},Un=(wt,Tt)=>{if(!rn(Tt,dn))return;const mn=Ln(Tt);mn.status="uploading",mn.percent=wt.percent;const ut=Cn(mn,dn);_n(mn,ut,wt)},Tn=(wt,Tt,mn)=>{if(!rn(mn,dn))return;const ut=Ln(mn);ut.error=wt,ut.response=Tt,ut.status="error";const an=Cn(ut,dn);_n(ut,an)},la=wt=>{let Tt;Promise.resolve(typeof _e=="function"?_e(wt):_e).then(mn=>{var ut;if(mn===!1)return;const an=Xn(wt,dn);an&&(Tt=Object.assign(Object.assign({},wt),{status:"removed"}),dn==null||dn.forEach($n=>{const ma=Tt.uid!==void 0?"uid":"name";$n[ma]===Tt[ma]&&!Object.isFrozen($n)&&($n.status="removed")}),(ut=da.current)===null||ut===void 0||ut.abort(Tt),_n(Tt,an))})},aa=wt=>{ua(wt.type),wt.type==="drop"&&(ct==null||ct(wt))};ae.useImperativeHandle(ye,()=>({onBatchStart:vt,onSuccess:Xt,onProgress:Un,onError:Tn,fileList:dn,upload:da.current}));const{getPrefixCls:Fa,direction:va,upload:pn}=ae.useContext(sn.E_),cn=Fa("upload",Et),oa=Object.assign(Object.assign({onBatchStart:vt,onError:Tn,onProgress:Un,onSuccess:Xt},se),{data:ia,multiple:Qn,action:Rn,accept:sa,supportServerRender:ca,prefixCls:cn,disabled:An,beforeUpload:Zn,onChange:void 0});delete oa.className,delete oa.style,(!Ut||An)&&delete oa.id;const[ot,Ke]=Nt(cn),[et]=(0,xt.Z)("Upload",on.Z.Upload),{showRemoveIcon:rt,showPreviewIcon:jt,showDownloadIcon:Sn,removeIcon:On,previewIcon:En,downloadIcon:zn}=typeof Ne=="boolean"?{}:Ne,xn=(wt,Tt)=>Ne?ae.createElement(yn,{prefixCls:cn,listType:$e,items:dn,previewFile:yt,onPreview:le,onDownload:st,onRemove:la,showRemoveIcon:!An&&rt,showPreviewIcon:jt,showDownloadIcon:Sn,removeIcon:On,previewIcon:En,downloadIcon:zn,iconRender:dt,locale:Object.assign(Object.assign({},et),Ue),isImageUrl:Je,progress:Gt,appendAction:wt,appendActionVisible:Tt,itemRender:fn,disabled:An}):wt,qn=De()(`${cn}-wrapper`,Wt,Sa,Ke,pn==null?void 0:pn.className,{[`${cn}-rtl`]:va==="rtl",[`${cn}-picture-card-wrapper`]:$e==="picture-card",[`${cn}-picture-circle-wrapper`]:$e==="picture-circle"}),jn=Object.assign(Object.assign({},pn==null?void 0:pn.style),Ct);if(Zt==="drag"){const wt=De()(Ke,cn,`${cn}-drag`,{[`${cn}-drag-uploading`]:dn.some(Tt=>Tt.status==="uploading"),[`${cn}-drag-hover`]:Pa==="dragover",[`${cn}-disabled`]:An,[`${cn}-rtl`]:va==="rtl"});return ot(ae.createElement("span",{className:qn},ae.createElement("div",{className:wt,style:jn,onDrop:aa,onDragOver:aa,onDragLeave:aa},ae.createElement($t,Object.assign({},oa,{ref:da,className:`${cn}-btn`}),ae.createElement("div",{className:`${cn}-drag-container`},Ut))),xn()))}const La=De()(cn,`${cn}-select`,{[`${cn}-disabled`]:An}),pa=(wt=>ae.createElement("div",{className:La,style:wt},ae.createElement($t,Object.assign({},oa,{ref:da}))))(Ut?void 0:{display:"none"});return ot($e==="picture-card"||$e==="picture-circle"?ae.createElement("span",{className:qn},xn(pa,!!Ut)):ae.createElement("span",{className:qn},pa,xn()))};var hn=ae.forwardRef(ke),Hn=function(se,ye){var Le={};for(var be in se)Object.prototype.hasOwnProperty.call(se,be)&&ye.indexOf(be)<0&&(Le[be]=se[be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,be=Object.getOwnPropertySymbols(se);_e<be.length;_e++)ye.indexOf(be[_e])<0&&Object.prototype.propertyIsEnumerable.call(se,be[_e])&&(Le[be[_e]]=se[be[_e]]);return Le},nn=ae.forwardRef((se,ye)=>{var{style:Le,height:be}=se,_e=Hn(se,["style","height"]);return ae.createElement(hn,Object.assign({ref:ye},_e,{type:"drag",style:Object.assign(Object.assign({},Le),{height:be})}))});const Vn=hn;Vn.Dragger=nn,Vn.LIST_IGNORE=wn;var ta=Vn},64217:function(Be,nt,ie){"use strict";ie.d(nt,{Z:function(){return Ie}});var ae=ie(1413),Me=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Qe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,De="".concat(Me," ").concat(Qe).split(/[\s\n]+/),ve="aria-",we="data-";function me(Oe,Re){return Oe.indexOf(Re)===0}function Ie(Oe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We;Re===!1?We={aria:!0,data:!0,attr:!0}:Re===!0?We={aria:!0}:We=(0,ae.Z)({},Re);var Ye={};return Object.keys(Oe).forEach(function(Ze){(We.aria&&(Ze==="role"||me(Ze,ve))||We.data&&me(Ze,we)||We.attr&&De.includes(Ze))&&(Ye[Ze]=Oe[Ze])}),Ye}}}]);