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__HttpStatus__HpcCourse.65...

115 lines
342 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4496],{26227:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return et}});var ae=ie(54476),ke=ie(59301),Ze={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"},He=Ze,ye=ie(7657),Re=function(Ne,rt){return ke.createElement(ye.Z,(0,ae.Z)({},Ne,{ref:rt,icon:He}))},Se=ke.forwardRef(Re),et=Se},41464:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return et}});var ae=ie(54476),ke=ie(59301),Ze={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"},He=Ze,ye=ie(7657),Re=function(Ne,rt){return ke.createElement(ye.Z,(0,ae.Z)({},Ne,{ref:rt,icon:He}))},Se=ke.forwardRef(Re),et=Se},96408:function(Fe,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25863:function(){"use strict";function Fe(te,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=te,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Fe.prototype,"name",{get:function(){return this._name},set:function(te){if(typeof te!="string"||te==="")throw new Error("Shape name must be a valid string.");this._name=te}}),Object.defineProperty(Fe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("The default value must be a real number, not: "+te);this._defaultValue=te}}),Object.defineProperty(Fe.prototype,"minimum",{get:function(){return this._minimum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Minimum must be a real number, not: "+te);this._minimum=te}}),Object.defineProperty(Fe.prototype,"maximum",{get:function(){return this._maximum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Maximum must be a real number, not: "+te);this._maximum=te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(te,a){var y=go.Shape._FigureParameters[te];return y?y[a]:null},go.Shape.setFigureParameter=function(te,a,y){if(!(y instanceof Fe))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[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var gt=[];function ie(te,a){var y=gt.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ae(){var te=gt.pop();return te===void 0?new go.Point:te}function ke(te){gt.push(te)}function Ze(te,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=te-y,ge=b-z,re=NaN,se=NaN;if(oe===0)if(ge===0)te===y&&(re=te,se=a);else{var ue=(x-ee)/ge,Le=x-ue*b;re=te,se=ue*re+Le}else if(ge===0){var Ge=(a-E)/oe,$e=a-Ge*te;re=b,se=Ge*re+$e}else{var Ge=(a-E)/oe,ue=(x-ee)/ge,$e=a-Ge*te,Le=x-ue*b;re=(Le-$e)/(Ge-ue),se=Ge*re+$e}return ne.x=re,ne.y=se,ne}function He(te,a,y,E,b,x,z,ee,ne,oe,ge,re,se,ue){var Le=1-ne,Ge=ne,$e=te*Le+y*Ge,ct=a*Le+E*Ge,Pt=y*Le+b*Ge,pt=E*Le+x*Ge,lt=b*Le+z*Ge,yt=x*Le+ee*Ge,Qt=$e*Le+Pt*Ge,nn=ct*Le+pt*Ge,Fn=Pt*Le+lt*Ge,bn=pt*Le+yt*Ge,Kn=Qt*Le+Fn*Ge,Hn=nn*Le+bn*Ge;oe.x=$e,oe.y=ct,ge.x=Qt,ge.y=nn,re.x=Kn,re.y=Hn,se.x=Fn,se.y=bn,ue.x=lt,ue.y=yt}var ye=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),Se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Fe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*Se,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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=ye,b.spot2=Re,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(te,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(te,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(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,Se*a,0,a,(1-Se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,Se*y,(1-Se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,Se*y,Se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-Se)*a,0,0,(1-Se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(te,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(te,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(te,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(te,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 Fe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(te,a,y){var E=te?te.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 Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(te,a,y){var E=te?te.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 Fe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(te,a,y){var E=te?te.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 Fe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(te,a,y){var E=te?te.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 Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(te,a,y){var E=te?te.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 et=[];function Ve(){var te=et.pop();return te===void 0?[]:te}function Ne(te){te.length=0,et.push(te)}function rt(te){for(var a=Ve(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<te;z++)x=2*Math.PI/te*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function _e(te){var a=st(te),y=Ve();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 Ne(a),y}function st(te){for(var a=rt(te),y=Ve(),E=Math.floor(a.length/2),b=a.length-1,x=te%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ze(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ne(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(te,a,y){var E=rt(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()),Ne(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(te,a,y){var E=st(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()),Ne(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(te,a,y){var E=st(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()),Ne(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(te,a,y){var E=st(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()),Ne(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(te,a,y){var E=st(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()),Ne(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(te,a,y){var E=st(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()),Ne(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(te,a,y){var E=st(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()),Ne(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(te,a,y){var E=_e(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(),Ne(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(te,a,y){var E=_e(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(),Ne(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(te,a,y){var E=_e(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(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(te,a,y){var E=_e(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(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(te,a,y){var E=_e(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(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(te,a,y){var E=_e(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(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Fe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Fe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.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 Fe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(te,a,y){var E=te?te.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=ye,x.spot2=Re,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(te,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(te,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 Fe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Fe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.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(te,a,y){var E=Se/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 Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(te,a,y){var E=te?te.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 Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(te,a,y){var E=te?te.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 Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(te,a,y){var E=te?te.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),ne=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(te,a,y){var E=te?te.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 Fe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(te,a,y){var E=te?te.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 Fe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(te,a,y){var E=te?te.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(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,Se*a,0,a,(.5-Se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Se/2)*y,Se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(te,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(te,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(te,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(te,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,ne=x*Se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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=Se*.4;var oe=ae(),ge=ae(),re=ae(),se=ae();He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,re,se,se);var ue=ae(),Le=ae(),Ge=ae();He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ge,ue,Le);var $e=ae(),ct=ae(),Pt=ae();He(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,$e,ct,Pt,se,se);var pt=ae(),lt=ae(),yt=ae();return He(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,yt,pt,lt),ne.add(new go.PathSegment(go.PathSegment.Move,yt.x*a,yt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,pt.x*a,pt.y*y,lt.x*a,lt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,yt.x*a,yt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Pt.x*a,Pt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ue.x*a,ue.y*y,Le.x*a,Le.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*a,Pt.y*y,$e.x*a,$e.y*y,ct.x*a,ct.y*y).close()),ke(oe),ke(ge),ke(re),ke(se),ke(ue),ke(Le),ke(Ge),ke($e),ke(ct),ke(Pt),ke(pt),ke(lt),ke(yt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(te,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 Fe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(te,a,y){var E=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=Se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),re=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),se.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(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,re,oe,ne,ne),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y));var ue=ie(oe.x,oe.y);He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,ge,re);var Le=ie(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.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=Se*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.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 $e=new go.PathFigure((z-x)*a,ee*y,!1);return E.add($e),ke(ne),ke(oe),ke(ge),ke(re),ke(ue),ke(Le),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(te,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*Se,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.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)),ne.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)),ne.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)),ne.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)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*Se;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.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)),ne.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)),ne.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)),ne.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 ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),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(te,a,y){var E=te?te.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(te,a,y){var E=te?te.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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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 Fe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Fe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=te?te.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var ge=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),ke(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Fe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Fe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=te?te.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var ge=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),ke(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(te,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(te,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 Fe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(te,a,y){var E=te?te.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 ne=Ze(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ze(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Fe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Fe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=Ze(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(re.x,re.y),re=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),ke(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Fe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(te,a,y){var E=te?te.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 ne=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Fe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Fe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var re=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(re.x,re.y),ke(re),oe}),go.Shape.setFigureParameter("Pointer",0,new Fe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(te,a,y){var E=te?te.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=Ze(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),ke(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Fe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(te,a,y){var E=te?te.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=Ze(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),ke(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Fe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(te,a,y){var E=te?te.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 ne=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Fe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(te,a,y){var E=te?te.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 ne=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Fe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(te,a,y){var E=te?te.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.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(te,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(te,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(te,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(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,Se*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-Se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-Se*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-Se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-Se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=Se*.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,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,Se*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-Se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-Se*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-Se*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-Se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=Se*.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-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*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+Se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+Se*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(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*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-Se*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-Se*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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.2,x=.1,z=Se*b,ee=Se*x,ne=.5,oe=.1,ge=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var re=.05,se=Se*re;ne=.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)),ne=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+re)*a,oe*y,(ne+se)*a,(oe-re)*y,(ne+re)*a,(oe-se)*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)),re=.025,se=Se*re,ne=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-se)*y,(ne+se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-se)*a,(oe-re)*y,(ne-re)*a,(oe-se)*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)),re=.05,se=Se*re,ne=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-se)*y,(ne+se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-se)*a,(oe-re)*y,(ne-re)*a,(oe-se)*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)),re=.025,se=Se*re,ne=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-se)*y,(ne+se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-se)*a,(oe-re)*y,(ne-re)*a,(oe-se)*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)),re=.05,se=Se*re,ne=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne-re)*a,(oe-se)*y,(ne-se)*a,(oe-re)*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 Fe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(te,a,y){var E=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.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(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=Se*.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.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(te,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=Se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.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(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=Se*.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=Se*.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(te,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(te,a,y){var E=new go.Geometry,b=Se*.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 ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(te,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(te,a,y){var E=new go.Geometry,b=Se*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.4,z=Se*.1,ee=.1,ne=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var re=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+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(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.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=Se*.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(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.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(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.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=Se*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.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(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.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(te,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(te,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(te,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=Se*.8,ee=.8,ne=0,oe=.5,ge=(b-a)/2,re=(x-y)/2,se=new go.PathFigure(ne*a+ge,(oe+ee)*y+re,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+re,ne*a+ge,(oe-ee)*y+re,(ne-ee+z*.5)*a+ge,(oe-z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne-ee+z*.5)*a+ge,(oe+z)*y+re,ne*a+ge,(oe+ee)*y+re).close()),z=Se*.4,ee=.4,ne=.2,oe=.5;var ue=new go.PathFigure(ne*a+ge,(oe+ee)*y+re,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+re,ne*a+ge,(oe-ee)*y+re,(ne-ee+z*.5)*a+ge,(oe-z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne-ee+z*.5)*a+ge,(oe+z)*y+re,ne*a+ge,(oe+ee)*y+re).close()),z=Se*.2,ee=.2,ne=.5,oe=.5;var Le=new go.PathFigure((ne-ee)*a+ge,oe*y+re,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),z=Se*.4,ee=.4,ne=.8,oe=.5;var Ge=new go.PathFigure(ne*a+ge,(oe-ee)*y+re,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+re,ne*a+ge,(oe+ee)*y+re,(ne+ee-z*.5)*a+ge,(oe+z)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne+ee-z*.5)*a+ge,(oe-z)*y+re,ne*a+ge,(oe-ee)*y+re).close()),z=Se*.8,ee=.8,ne=1,oe=.5;var $e=new go.PathFigure(ne*a+ge,(oe-ee)*y+re,!0);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+re,ne*a+ge,(oe+ee)*y+re,(ne+ee-z*.5)*a+ge,(oe+z)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne+ee-z*.5)*a+ge,(oe-z)*y+re,ne*a+ge,(oe-ee)*y+re).close()),E}),go.Shape.defineFigureGenerator("Email",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),re=ae();He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,re);var se=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,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)),He(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,ne,ne),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)),b=Se*.3,x=.3,He(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,ne,ne),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,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)),He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,re),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).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()),ke(ne),ke(oe),ke(ge),ke(re),ke(se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(te,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,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*Se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,se=.5,ue=0,Le=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(ue+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Le.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)),Le.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)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(te,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(te,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(te,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(te,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(te,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(te,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(te,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,ne=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ge*.5,se=z,ue=z,Le=ge*se,Ge=ge*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,ne*y,(ee-(Le+se)/2)*a,(ne+(ue+Ge)/2)*y,(ee-se)*a,(ne+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ue)*y,(ee-se)*a,(ne-Ge)*y,(ee-Le)*a,(ne-ue)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,ne*y,(ee+Le)*a,(ne-ue)*y,(ee+se)*a,(ne-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(ne+Ge)*y,(ee+(Le+se)/2)*a,(ne+(ue+Ge)/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 $e=new go.PathFigure(.2*a,y,!1);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ct=new go.PathFigure(.8*a,y,!1);return E.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=Se*.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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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=Se*.1,ne=.2,oe=.9,ge=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=Se*.1,ne=.8,oe=.9;var re=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(te,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(te,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 ne=.1,oe=Se*.1,ge=.1,re=.9,se=new go.PathFigure((ge-ne)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-ne)*y,(ge-ne)*a,(re-oe)*y,(ge-oe)*a,(re-ne)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,re*y,(ge+oe)*a,(re-ne)*y,(ge+ne)*a,(re-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+ne)*y,(ge+ne)*a,(re+oe)*y,(ge+oe)*a,(re+ne)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,re*y,(ge-oe)*a,(re+ne)*y,(ge-ne)*a,(re+oe)*y)),ne=.1,oe=Se*.1,ge=.4,re=.9;var ue=new go.PathFigure((ge-ne)*a,re*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-ne)*y,(ge-ne)*a,(re-oe)*y,(ge-oe)*a,(re-ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,re*y,(ge+oe)*a,(re-ne)*y,(ge+ne)*a,(re-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+ne)*y,(ge+ne)*a,(re+oe)*y,(ge+oe)*a,(re+ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,re*y,(ge-oe)*a,(re+ne)*y,(ge-ne)*a,(re+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,re=Se*.05,se=.175,ue=.95,ee=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,se=.375,ue=.95,ne=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,se=.625,ue=.95,oe=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,se=.825,ue=.95,Le=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(te,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,ne=Se*.05,oe=.35,ge=.775,re=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-ne)*y,(oe-ne)*a,(ge-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+ne)*a,(ge-ee)*y,(oe+ee)*a,(ge-ne)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+ne)*y,(oe+ne)*a,(ge+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-ne)*a,(ge+ee)*y,(oe-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.3,x=Se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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=Se*.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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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 ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(te,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(te,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 ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(te,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 ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(te,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(te,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(te,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 ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(te,a,y){var E=new go.Geometry,b=8,x=b*Se,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 ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.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(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*Se,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=15,x=b*Se,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(te,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(te,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(te,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(te,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(te,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(te,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")},93510: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 Fe={},gt="5.0",ie={},ae=null,ke=!1,Ze=!1,He=null,ye=!1,Re=null,Se=null,et=0;et<arguments.length;et++){var Ve=arguments[et];if(Ve!==null)switch(typeof Ve){case"number":gt=Ve.toFixed(1);break;case"string":Ve.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Ve:He=Ve;break;case"object":typeof Ve.is3D!="undefined"?ae=Ve:ie=Ve;break;case"boolean":ke=Ve,Ze=!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&&!Ze&&(ke=!0)),He!==null&&ie.id===void 0&&(ie.id=He);var Ne="",rt="",_e=!1,st=null,te=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 ne=function(we){return parseFloat(we)>4?parseFloat(we):5};Fe.setHTML5Codebase=function(we,Me){Se=we,bn(we,Me)},Fe.setJavaCodebase=Fe.setJavaCodebaseVersion=Fe.isCompiledInstalled=Fe.setPreCompiledScriptPath=Fe.setPreCompiledResourcePath=function(){},Fe.setHTML5CodebaseVersion=function(we,Me){var je=parseFloat(we);if(je!==NaN&&je<5){console.log("The GeoGebra HTML5 codebase version "+je+" is deprecated. Using version latest instead.");return}Re=we,Fn(we,Me)},Fe.getHTML5CodebaseVersion=function(){return te},Fe.getParameters=function(){return ie},Fe.setFontsCSSURL=function(we){z=we},Fe.setGiacJSURL=function(we){},Fe.setJNLPFile=function(we){Ne=we},Fe.setJNLPBaseDir=function(we){},Fe.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Me="auto",je=ie.id,bt,Ie=!1,ht=0;ht<arguments.length;ht++){var de=arguments[ht];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Me=de:je=arguments[ht]):typeof de=="boolean"?Ie=de:de instanceof HTMLElement&&(bt=de)}Ye();function Ye(){if(!ye){setTimeout(Ye,200);return}Me=Qt(Me);var xt=bt||document.getElementById(je);if(!xt){console.log("possibly bug on ajax loading? ");return}if(Fe.removeExistingApplet(xt,!1),ie.width===void 0&&xt.clientWidth&&(ie.width=xt.clientWidth),ie.height===void 0&&xt.clientHeight&&(ie.height=xt.clientHeight),!(ie.width&&ie.height)&&Me==="html5"&&(delete ie.width,delete ie.height),st=Me,Me==="screenshot")ct(xt,ie);else{var rn=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?rn=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(rn=(!oe()||we())&&ge()),rn?(st="screenshot",pt(xt,ie,Ie,Me)):$e(xt,ie,Ie)}}};function oe(){try{return window.self!==window.top}catch(we){return!0}}function ge(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Fe.getViews=function(){return ae},Fe.isJavaInstalled=function(){return!1};var re=function(we){var Me=function(ht){var de=JSON.parse(ht),Ye=function(_t){return _t.type=="G"||_t.type=="E"},xt=de.elements?de.elements.filter(Ye)[0]:de;if(!xt||!xt.url){je();return}ie.fileName=xt.url,se(xt.settings||{}),ae.is3D=!0;var rn="https://www.geogebra.org/images/";Fe.setPreviewImage(E||xt.previewUrl,rn+"GeoGebra_loading.png",rn+"applet_play.png"),we()},je=function(){ie.onError&&ie.onError(),Kn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ie="/materials/"+ie.material_id+"?scope=basic";ue("https://"+bt+"/api/proxy.php?path="+encodeURIComponent(Ie),Me,je)};function se(we){var Me=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(je){we[je]=!!we[je]}),Me.forEach(function(je){ie[je]===void 0&&we[je]!==void 0&&(ie[je]=we[je])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function ue(we,Me,je){var bt=new XMLHttpRequest;bt.open("GET",we),bt.onload=function(){Me(bt.responseText)},bt.onerror=je,bt.send()}Fe.isHTML5Installed=function(){return!0},Fe.getLoadedAppletType=function(){return st},Fe.setPreviewImage=function(we,Me,je){E=we,b=Me,x=je},Fe.removeExistingApplet=function(we,Me){var je;typeof we=="string"&&(we=document.getElementById(we)),st=null;var bt=null;for(je=0;je<we.childNodes.length;je++){var Ie=we.childNodes[je],ht=Ie.className;ht==="applet_screenshot"?Me?(Ie.style.display="block",st="screenshot"):Ie.style.display="none":ht!=="applet_scaler prerender"&&(we.removeChild(Ie),bt=ht&&ht.indexOf("appletParameters")!=-1?Ie.id:null,je--)}var de=ie.id!==void 0?ie.id:bt,Ye=window[de];Ye&&typeof Ye.getBase64=="function"&&(Ye.remove(),window[de]=null)},Fe.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=Fe.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},Fe.startAnimation=function(){var we=Fe.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},Fe.stopAnimation=function(){var we=Fe.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},Fe.getAppletObject=function(){var we=ie.id!==void 0?ie.id:"ggbApplet";return window[we]},Fe.resize=function(){};var Le=function(we,Me,je){var bt=document.createElement("param");bt.setAttribute("name",Me),bt.setAttribute("value",je),we.appendChild(bt)},Ge=function(we){return we&&we!=="false"},$e=function(we,Me,je){ne(te)<=4.2&&(je=!0);var bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ie=document.createElement("div");Ie.classList.add("appletParameters","notranslate");var ht=Me.width,de=Me.height;if(Me.disableAutoScale=Me.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Me.disableAutoScale,Me.width!==void 0)if(ne(te)<=4.4)Ge(Me.showToolBar)&&(Me.height-=7),Ge(Me.showAlgebraInput)&&(Me.height-=37),Me.width<605&&Ge(Me.showToolBar)&&(Me.width=605,ht=605);else{var Ye=100;(Ge(Me.showToolBar)||Ge(Me.showMenuBar))&&(Me.hasOwnProperty("customToolBar")&&(Me.customToolbar=Me.customToolBar),Ye=Ge(Me.showMenuBar)?245:155),ht<Ye&&(Me.width=Ye,ht=Ye)}Ie.style.border="none",Ie.style.display="inline-block";for(var xt in Me)Me.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&Ie.setAttribute("data-param-"+xt,Me[xt]);z&&Ie.setAttribute("data-param-fontscssurl",z),Fe.resize=function(){GGBAppletUtils.responsiveResize(we,Me)},window.addEventListener("resize",function(gn){Fe.resize()});var rn=typeof Me.appletOnLoad=="function"?Me.appletOnLoad:function(){};if(!je&&Me.width!==void 0){Me.hasOwnProperty("showSplash")||Ie.setAttribute("data-param-showSplash","false");var _t=we.querySelector(".applet_scaler.prerender"),Cn=_t!==null;if(Cn)var Nn=_t.querySelector(".ggb_preview");else{var Nn=yt(ht,de,Me.borderColor,!1);_t=document.createElement("div"),_t.className="applet_scaler",_t.style.position="relative",_t.style.display="block",_t.style.width=ht+"px",_t.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_t,"66%"),ne(te)>=5?(Me.appletOnLoad=function(gn){var Dt=we.querySelector(".ggb_preview");Dt&&Dt.parentNode.removeChild(Dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_t),window.GGBT_wsf_view&&$(window).trigger("resize"),rn(gn)},Cn||_t.appendChild(Nn)):Ie.appendChild(Nn),_t.appendChild(Ie),Cn||we.appendChild(_t),setTimeout(function(){Fe.resize()},1)}else{var $t=document.createElement("div");$t.className="applet_scaler",$t.style.position="relative",$t.style.display="block",$t.appendChild(Ie),we.appendChild($t),Me.appletOnLoad=function(gn){Fe.resize(),rn(gn)}}function Wn(gn,Dt){Dt&&typeof Dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(gn,Dt.appletOnLoad):renderGGBElement(gn),Kn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Dt)}function Vn(gn,Dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:gn,params:Dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Yn){Wn(Yn.article,Yn.params)}),html5AppletsToProcess=null)},ne(te)<5&&(gn.className+=" geogebraweb")):Wn(gn,Dt)}if(bt){scriptLoadStarted=!0;for(var kn=0;kn<Ie.childNodes.length;kn++){var Zn=Ie.childNodes[kn].tagName;Zn==="TABLE"&&(Ie.removeChild(Ie.childNodes[kn]),kn--)}if(ggbHTML5LoadedScript!==null){var An=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');An!=null&&An.parentNode.removeChild(An)}var Xt=document.createElement("script"),qt=function(){Vn(Ie,Me)};Xt.src=rt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Xt.src,Kn("GeoGebra HTML5 codebase loaded: '"+rt+"'.",Me),!Se&&(!Re||Re=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),qt()):rt.requirejs?__webpack_require__.e(3861).then(function(){var gn=[__webpack_require__(40341)];qt.apply(null,gn)}.bind(this)).catch(__webpack_require__.oe):(Xt.onload=qt,we.appendChild(Xt))}else Vn(Ie,Me);Me.height=de,Me.width=ht},ct=function(we,Me,je){var bt=yt(Me.width,Me.height,Me.borderColor,je),Ie=document.createElement("div");Ie.style.position="relative",Ie.style.display="block",Ie.style.width=Me.width+"px",Ie.style.height=Me.height+"px",Ie.className="applet_screenshot applet_scaler"+(je?" applet_screenshot_play":""),Ie.appendChild(bt);var ht=GGBAppletUtils.getScale(Me,we,je);je?(we.appendChild(lt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),we.appendChild(Ie),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement(Ie,ht),Ie.style.width=Me.width+"px",Ie.style.height=Me.height+"px",Ie.parentNode.style.width=Me.width*ht+"px",Ie.parentNode.style.height=Me.height*ht+"px"),Fe.resize=function(){Pt(we,bt,Ie,je)},window.addEventListener("resize",function(de){Fe.resize()}),Fe.resize()};function Pt(we,Me,je,bt){if(we.contains(Me)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Ie=GGBAppletUtils.getScale(ie,we,bt);je.parentNode!==null&&(!isNaN(Ie)&&Ie!==1?(GGBAppletUtils.scaleElement(je,Ie),je.parentNode.style.width=ie.width*Ie+"px",je.parentNode.style.height=ie.height*Ie+"px"):(GGBAppletUtils.scaleElement(je,1),je.parentNode.style.width=ie.width+"px",je.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Fe.onExitFullscreen=function(we,Me){Me.appendChild(we)};var pt=function(we,Me,je,bt){ct(we,Me,!0);for(var Ie=function(){var Ye=[];for(de=0;de<we.childNodes.length;de++)Ye.push(we.childNodes[de]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(we,Me.id),rn=document.getElementById("fullscreencontainer"),_t=jQuery(we).find(".fullscreencontent");_t.length>0?(xt.remove(),_t.attr("id","fullscreencontent").show(),jQuery(rn).append(_t),window.dispatchEvent(new Event("resize"))):$e(xt,Me,!1),window.GGBT_wsf_view.launchFullScreen(rn)}else st=bt,$e(we,Me,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ye.length;de++)we.removeChild(Ye[de])},ht=we.getElementsByClassName("ggb_preview_play"),de=0;de<ht.length;de++)ht[de].addEventListener("click",Ie,!1),ht[de].addEventListener("ontouchstart",Ie,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Me='.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");}',je=document.createElement("style");je.styleSheet?je.styleSheet.cssText=Me:je.appendChild(document.createTextNode(Me)),document.getElementsByTagName("head")[0].appendChild(je)}return we},yt=function(we,Me,je,bt){var Ie=document.createElement("div");Ie.className="ggb_preview",Ie.style.position="absolute",Ie.style.zIndex="90",Ie.style.width=we-2+"px",Ie.style.height=Me-2+"px",Ie.style.top="0px",Ie.style.left="0px",Ie.style.overflow="hidden",Ie.style.backgroundColor="white";var ht="lightgrey";je!==void 0&&(je==="none"?ht="transparent":ht=je),Ie.style.border="1px solid "+ht;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 Ye,xt,rn;if(!bt){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,de.style.opacity=.3,xt=360,xt>we/4*3&&(xt=we/4*3),rn=xt/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",xt),Ye.setAttribute("height",rn);var _t=(we-xt)/2,Cn=(Me-rn)/2;Ye.style.left=_t+"px",Ye.style.top=Cn+"px",Ie.appendChild(Ye)}}return Ie.appendChild(de),Ie},Qt=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},nn=["web","webSimple","web3d","tablet","tablet3d","phone"],Fn=function(we,Me){if(te=we,Me){bn(te,!0);return}var je=!ke;if(je){var bt=ne(te);!isNaN(bt)&&bt<4.4&&(je=!1)}var Ie,ht;window.location.protocol.substr(0,4)==="http"?Ie=window.location.protocol:Ie="http:";var de=te.indexOf("//");de>0?ht=te:de===0?ht=Ie+te:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in nn)if(te.slice(nn[Ye].length*-1)===nn[Ye]||te.slice((nn[Ye].length+1)*-1)===nn[Ye]+"/"){bn(ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ge(ie.showToolBar)&&!Ge(ie.showMenuBar)&&!Ge(ie.showAlgebraInput)&&!Ge(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?ht+="webSimple/":ht+="web3d/",bn(ht,!1)},bn=function(we,Me){if(we.requirejs){rt=we;return}we.slice(-1)!=="/"&&(we+="/"),rt=we,Me===null&&(Me=we.indexOf("http")===-1),_e=Me,a="web.nocache.js",y=!1;var je=rt.split("/");je.length>1&&(!Me&&je[je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):nn.indexOf(je[je.length-2])>=0&&(a=je[je.length-2]+".nocache.js")),je=we.split("/"),te=je[je.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var bt=parseFloat(te);bt!==NaN&&bt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+bt+" is deprecated. Using version latest instead."),Fn("5.0",Me))},Kn=function(we,Me){window.console&&window.console.log&&(!Me||typeof Me.showLogging=="undefined"||Me.showLogging&&Me.showLogging!=="false")&&console.log(we)};ie.material_id!==void 0?re(Hn):Hn();function Hn(){var we=gt;Re!==null?we=Re:parseFloat(we)<5&&(we="5.0"),Fn(we,!1),Se!==null&&bn(Se,_e),ye=!0}return Fe},GGBAppletUtils=function(){"use strict";function Fe(){return window.GGBT_wsf_edit!==void 0}function gt(ye,Re){Re!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+Re+","+Re+")",ye.style.webkitTransform="scale("+Re+","+Re+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function ie(ye,Re,Se,et,Ve,Ne){var rt=null;if(Ne!=null&&Ne!="")for(var _e=ye.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+Ne+" ")>-1){rt=_e;break}else _e=_e.parentNode;var st=0,te=0,a=0,y=0,E=0,b=0,x=0;if(rt)st=rt.offsetWidth,te=Math.max(et?rt.offsetWidth:0,rt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(st=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=st):(st=window.innerWidth,te=window.innerHeight,a=window.innerWidth),ye){var z=ye.getBoundingClientRect();z.left>0&&z.left<=st&&(Ve===void 0||!Ve)&&(document.dir==="rtl"?(E=st-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ye&&((Se===void 0||!Se)&&Re>0&&Re+y<st?st=Re:st-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(te-=x)),{width:st,height:te}}function ae(ye,Re,Se,et,Ve){if(ye.isScreenshoGenerator)return 1;var Ne=et!==void 0&&et,rt=ye.noScaleMargin!=null&&ye.noScaleMargin,_e=function(ee){return ee&&ee!=="false"},st=_e(ye.autoHeight),te=ie(Re,ye.width,Se,st,Ne&&window.GGBT_wsf_view||rt,Ve),a=parseInt(te.width),y=ye.width,E=ye.height;if(y===void 0){var b=Re.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ne?1:te.height/E;return Se!==void 0&&!Se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ke(ye,Re,Se){var et=1,Ve,Ne=!1;if(ye.hasOwnProperty("allowUpscale")&&(Ne=ye.allowUpscale),ye.hasOwnProperty("scale")&&(et=parseFloat(ye.scale),(isNaN(et)||et===null||et===0)&&(et=1),et>1&&(Ne=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))Ve=ae(ye,Re,Ne,Se,ye.scaleContainerClass);else return et;return Ne&&(!ye.hasOwnProperty("scale")||et===1)?Ve:Math.min(et,Ve)}function Ze(ye){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),et=ye.getBoundingClientRect(),Ve=(Re-et.width)/2,Ne=(Se-et.height)/2;Ne<0&&(Ne=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve<40?ye.style.left="40px":ye.style.left=Ve+"px",ye.style.top=Ne+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne<40?ye.style.top="40px":ye.style.top=Ne+"px",ye.style.left=Ve+"px")}function He(ye,Re){var Se=ye.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var et=ke(Re,ye);Fe()&&Se.setAttribute("data-param-scale",et);for(var Ve=null,Ne=0;Ne<ye.childNodes.length;Ne++)if(ye.childNodes[Ne].className!==void 0&&ye.childNodes[Ne].className.match(/^applet_scaler/)){Ve=ye.childNodes[Ne];break}if(Ve!==null&&Ve.querySelector(".noscale")!==null)return;var rt=Re.id!==void 0?Re.id:"ggbApplet",_e=window[rt];(_e==null||!_e.recalculateEnvironments)&&Ve!==null&&!Ve.className.match(/fullscreen/)&&(Ve.parentNode.style.transform="",!isNaN(et)&&et!==1?(Ve.parentNode.style.width=Re.width*et+"px",Ve.parentNode.style.height=Re.height*et+"px",gt(Ve,et)):(gt(Ve,1),Ve.parentNode.style.width=Re.width+"px",Ve.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:He,isFlexibleWorksheetEditor:Fe,positionCenter:Ze,getScale:ke,scaleElement:gt}}();__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 Fe=n.location.search;return Fe.indexOf(J)!=-1||Fe.indexOf(K)!=-1}function q(Fe,gt){}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(Fe){var gt=s[L].bindings;s[L].bindings=function(){for(var ie=gt?gt():{},ae=Fe[webModule.__softPermutationId],ke=O;ke<ae.length;ke++){var Ze=ae[ke];ie[Ze[O]]=Ze[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Fe=o.createElement(Q);if(Fe.id=L,Fe.style.cssText=R+S,Fe.tabIndex=-1,o.body.appendChild(Fe),t=Fe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Fe){function gt(ae){function ke(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=ke();if(Ze){ae();return}function He(){if(!Ze){if(!ke())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,He,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,He,!1);var ye=setInterval(function(){He()},$)}function ie(ae){var ke=u(),Ze=ke.body,He=ke.createElement(_);He.language=ab,He.crossOrigin=W,He.src=ae,webModule.__errFn&&(He.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(He)}gt(function(){ie(Fe)})}webModule.__startLoadingFragment=function(Fe){return C(Fe)},webModule.__installRunAsyncCode=function(Fe){var gt=u(),ie=gt.body,ae=gt.createElement(_);ae.language=ab,ae.text=Fe,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(Fe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Fe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Fe){var gt=c[Fe];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Fe(ye){var Re=ye.lastIndexOf(rb);Re==-1&&(Re=ye.length);var Se=ye.indexOf(sb);Se==-1&&(Se=ye.length);var et=ye.lastIndexOf(tb,Math.min(Se,Re));return et>=O?ye.substring(O,et+P):W}function gt(ye){if(!ye.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=ye+vb,ye=Fe(Re.src)}return ye}function ie(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function ae(){for(var ye=o.getElementsByTagName(_),Re=O;Re<ye.length;++Re)if(ye[Re].src.indexOf(xb)!=-1)return Fe(ye[Re].src);return W}function ke(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function Ze(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var He=ie();return He==W&&(He=ae()),He==W&&(He=ke()),He==W&&Ze()&&(He=Fe(o.location.href)),He=gt(He),He}function C(Fe){return Fe.match(/^\//)||Fe.match(/^[a-zA-Z]+:\/\//)?Fe:webModule.__moduleBase+Fe}function D(){var Fe=[],gt=O,ie=[],ae=[];function ke(ye){var Re=ae[ye](),Se=ie[ye];if(Re in Se)return Re;var et=[];for(var Ve in Se)et[Se[Ve]]=Ve;throw r&&r(ye,et,Re),null}if(__gwt_isKnownPropertyValue=function(ye,Re){return Re in ie[ye]},webModule.__getPropMap=function(){var ye={};for(var Re in ie)ie.hasOwnProperty(Re)&&(ye[Re]=ke(Re));return ye},webModule.__computePropValue=ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var He=Ze.indexOf(Db);He!=-1&&(gt=parseInt(Ze.substring(He+P),$),Ze=Ze.substring(O,He))}catch(ye){}return webModule.__softPermutationId=gt,C(Ze+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})()},28735:function(Fe,gt,ie){"use strict";ie.d(gt,{Ax:function(){return He},Ds:function(){return ye},KI:function(){return Se},SI:function(){return Ze},f1:function(){return ke}});var ae=ie(74128);function ke(et){let Ve=!0;if(et.length>0){for(let Ne=0;Ne<et.length;Ne++)if(et[Ne].compile_success==0||!et[Ne].compile_success){Ve=!1;break}}else Ve=!1;return Ve}function Ze(et,Ve=""){let Ne=[];for(let rt=0;rt<et.length;rt++){let _e=et[rt],st=Ve?`${Ve}/${_e.name}`:`${_e.name}`;Ne.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:st})}return Ne}function He(et,Ve,Ne){for(let rt=0;rt<et.length;rt++){let _e=et[rt];if(_e.key===Ve){_e.children=Ne;break}_e.children&&He(_e.children,Ve,Ne)}return et}function ye(et,Ve,Ne){let rt;return function(){let _e=this,st=arguments,te=function(){rt=null,Ne||et.apply(_e,st)},a=Ne&&!rt;clearTimeout(rt),rt=setTimeout(te,Ve),a&&et.apply(_e,st)}}const Re=!0,Se=ae.Z.API_SERVER},16750:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return rt}});var ae=ie(59301),ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ie(92310),He=ie.n(Ze),ye=ie(71418),Re=ie(2859),Se=ie(38147),et=ie(65862),Ve=(_e,st,te)=>new Promise((a,y)=>{var E=z=>{try{x(te.next(z))}catch(ee){y(ee)}},b=z=>{try{x(te.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((te=te.apply(_e,st)).next())}),rt=({data:_e,className:st,fullWidth:te,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),ne=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,re]=(0,ae.useState)(!1),[se,ue]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&Le()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[_e==null?void 0:_e.visible]);const Le=()=>Ve(void 0,null,function*(){re(!0),ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pt=yield(0,et.ZJ)(_e==null?void 0:_e.src);z.current.src="",z.current.src=pt,z.current.onload=function(){Pt()},re(!1),ue("")}),Ge=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},$e=pt=>Ve(void 0,null,function*(){re(!0),ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const lt=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:pt.dataUrl}});lt!=null&&lt.id&&!x?(yield(0,Se.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:lt==null?void 0:lt.id,settings:JSON.stringify(pt.state)}})).status===0&&E():lt!=null&&lt.id&&E(lt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",re(!1),ue("")}),ct=()=>{const pt=document.querySelector('a[href="https://markerjs.com/"]');pt&&pt.parentNode&&(pt.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(yt=>{const Qt=document.querySelector(yt.name);Qt&&Qt.setAttribute("title",yt.title)})},Pt=()=>{ee.current=new Re.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",$e),ee.current.addEventListener("beforeclose",Ge),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(),_e!=null&&_e.snapshotData&&ee.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ct()},300)};return ae.createElement(ae.Fragment,null,(_e==null?void 0:_e.visible)&&ae.createElement(ye.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:He()(ke.imageDimensions,st,te?ke.fullWidth:""),style:a},ae.createElement("img",{className:ke.img,ref:z}))))}},99298:function(Fe,gt,ie){"use strict";var ae=ie(59301),ke=ie(95237),Ze=ie(43604),He=ie(99313),ye=ie(3113),Re=ie(6339),Se=ie(96408),et=ie(48136),Ve=ie(65582),Ne=ie(59301);const rt=(0,ae.forwardRef)(({callback:_e,showSaveButton:st,value:te=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ve.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=oe=>{y.current.setValue(y.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ne.createElement(ke.Z,{className:Se.Z.lists,gutter:[10,10]},b.map((oe,ge)=>Ne.createElement(Ze.Z,{flex:"110px",className:Se.Z.item},Ne.createElement("div",null,Ne.createElement(Re.Z,{value:`$$${oe.value}$$`}),oe.name),Ne.createElement("div",{className:Se.Z.children},oe.children.map((re,se)=>Ne.createElement("div",{key:se},Ne.createElement("h1",null,re.name),Ne.createElement(ke.Z,{gutter:[10,10]},re.data.map((ue,Le)=>Ne.createElement(Ze.Z,{key:Le,onClick:()=>z(ue),className:Se.Z.diamond},Ne.createElement(Re.Z,{value:"`$$"+ue.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ne.createElement(ke.Z,{className:Se.Z.lists,gutter:[10,10]},x.map((oe,ge)=>Ne.createElement(Ze.Z,{flex:"110px",className:Se.Z.item},Ne.createElement("div",null,Ne.createElement(Re.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Ne.createElement("div",{className:Se.Z.children},oe.children.map((re,se)=>Ne.createElement("div",{key:se},re.name&&Ne.createElement("h1",null,re.name),Ne.createElement(ke.Z,{gutter:[10,10]},re.data.map((ue,Le)=>Ne.createElement(Ze.Z,{key:Le,onClick:()=>z(ue),className:Se.Z.diamond},Ne.createElement(Re.Z,{value:"`$$"+ue.value+"$$`"}))))))))))}],ne=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var ge=oe.innerText;return _e&&_e(ge),ge};return(0,ae.useImperativeHandle)(a,()=>({getData:ne})),Ne.createElement("div",{className:Se.Z.mathWrap},Ne.createElement(He.default,{defaultActiveKey:"1",items:ee}),Ne.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},te||""),st&&Ne.createElement("div",{className:Se.Z.button},Ne.createElement(ye.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});gt.Z=rt},85533:function(Fe,gt,ie){"use strict";ie.d(gt,{h:function(){return ne}});var ae=ie(59301),ke=ie(57809),Ze=ie(78241),He=ie(3113),ye=ie(89780),Re=ie.n(ye),Se=ie(45559),et=ie(42313),Ve=ie(65582),Ne=Object.defineProperty,rt=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,ge,re)=>ge in oe?Ne(oe,ge,{enumerable:!0,configurable:!0,writable:!0,value:re}):oe[ge]=re,E=(oe,ge)=>{for(var re in ge||(ge={}))te.call(ge,re)&&y(oe,re,ge[re]);if(st)for(var re of st(ge))a.call(ge,re)&&y(oe,re,ge[re]);return oe},b=(oe,ge)=>rt(oe,_e(ge));const x=ke.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={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"]};gt.Z=({callback:oe,onCancel:ge})=>{const[re,se]=(0,ae.useState)("python");function ue($e){se(ee[$e][1])}function Le($e){oe($e)}const Ge=(0,Ve.useIntl)();return ae.createElement(Ze.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),ae.createElement(Ze.default.Item,{label:Ge.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(ke.default,{getPopupContainer:$e=>$e.parentNode,onChange:ue},Object.keys(ee).map($e=>ae.createElement(x,{key:$e,value:$e},ee[$e][0])))),ae.createElement(Ze.default.Item,{label:Ge.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ne,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ge.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(He.ZP,{type:"ghost",onClick:ge},Ge.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:oe,onChange:ge,mode:re,options:se={}}){const ue=(0,ae.useRef)(),[Le,Ge]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Le){let $e=function(ct){const Pt=ct.getValue();ge&&ge(Pt)};return Le.on("change",$e),()=>{Le.off("change",$e)}}},[Le,ge]),(0,ae.useEffect)(()=>{Le&&Le.setOption("mode",re)},[Le,re]),(0,ae.useEffect)(()=>{Le&&(oe!==Le.getValue()||oe==="")&&setTimeout(()=>{Le.setValue(oe||"")},300)},[Le,oe]),(0,ae.useEffect)(()=>{if(ue.current&&!Le){const $e=Re().fromTextArea(ue.current,E({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Ge($e)}},[ue.current,Le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},96565:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return ea}});var ae=ie(59301),ke=ie(89780),Ze=ie.n(ke),He=ie(76374),ye=ie(45559),Re=ie(6313),Se=ie(25717),et=ie(99498),Ve=ie(25419),Ne=ie(67549),rt=ie(6339),_e=({value:le="",className:Pe,showTextOnly:ce,showLines:Ae,style:Je={}})=>{const at=(0,ae.useMemo)(()=>"",[le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},st=ie(65582),te=ie(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(le,Pe,ce)=>Pe in le?a(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,ne=(le,Pe)=>{for(var ce in Pe||(Pe={}))x.call(Pe,ce)&&ee(le,ce,Pe[ce]);if(b)for(var ce of b(Pe))z.call(Pe,ce)&&ee(le,ce,Pe[ce]);return le},oe=(le,Pe)=>y(le,E(Pe));function ge({onActionCallback:le,title:Pe,icon:ce,actionName:Ae,className:Je="",children:at}){function Gt(){le(Ae)}return te.createElement("a",{title:Pe,className:Je,onClick:Gt},te.createElement("i",{className:`${ce}`}),at)}var re=({watch:le,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Ae,fullScreen:Je,insertTemp:at,hidetoolBar:Gt,extraUse:Bt})=>{const it=(0,st.useIntl)(),jn=[...[{title:it.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:it.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:it.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:it.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:it.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:it.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:it.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:it.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:it.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:it.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:it.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:it.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:it.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:it.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:it.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:it.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${le?it.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):it.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Gt&&jn.map((fn,Oe)=>te.createElement("li",{key:Oe},fn.actionName?te.createElement(ge,oe(ne({},fn),{onActionCallback:Ae})):te.createElement("span",{className:"v-line"}))),Pe?te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,at&&te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${at}`,onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bt&&te.createElement("li",null,Bt),te.createElement("li",{className:"btn-full-screen"},te.createElement(ge,{icon:`${Je?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Je?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ae})))},se=ie(57261),ue=ie(78241),Le=ie(92832),Ge=ie(3113),$e=Object.defineProperty,ct=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Qt=(le,Pe,ce)=>Pe in le?$e(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,nn=(le,Pe)=>{for(var ce in Pe||(Pe={}))lt.call(Pe,ce)&&Qt(le,ce,Pe[ce]);if(pt)for(var ce of pt(Pe))yt.call(Pe,ce)&&Qt(le,ce,Pe[ce]);return le},Fn=(le,Pe)=>ct(le,Pt(Pe));const bn={labelCol:{span:4},wrapperCol:{span:20}};var Kn=({callback:le,onCancel:Pe})=>{function ce(Je){le(Je)}const Ae=(0,st.useIntl)();return ae.createElement(ue.default,Fn(nn({},bn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(ue.default.Item,{label:Ae.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Le.default,null)),ae.createElement(ue.default.Item,{label:Ae.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Le.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Hn=ie(85533),we=ie(45053),Me=ie(43418),je=ie(95237),bt=ie(16750),Ie=ie(59301),ht=({callback:le,onCancel:Pe})=>{const ce=document.createElement("canvas"),Ae=ce.getContext("2d");ce.width=1e3,ce.height=800,Ae.fillStyle="#ffffff",Ae.fillRect(0,0,ce.width,ce.height);const Je=ce.toDataURL("image/png");return Ie.createElement(Me.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ie.createElement(je.Z,{style:{height:"100vh"}},Ie.createElement(bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Je,visible:!0,title:String(Date.now())},onOk:at=>{le({src:at.url})},onClose:Pe})))},de=ie(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},Ye.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),le.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Ae=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(Ae,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),le.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),le.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Ae=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(Ae,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),le.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;le.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(ce-Ae.actualBounds.width/2,Ae.actualBounds.y))}),le.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;le.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.actualBounds.x,ce-Ae.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(le){var Pe=this.diagram;Pe.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var ce=new Array;Pe.selection.each(function(Bt){Bt instanceof go.Link||ce.push(Bt)});for(var Ae=0;Ae<ce.length-1;Ae++){var Je=ce[Ae],at=Je.actualBounds.y+Je.actualBounds.height+le,Gt=ce[Ae+1];Gt.move(new go.Point(Je.actualBounds.x,at))}Pe.commitTransaction("align Column")},Ye.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(Bt){Bt instanceof go.Link||ce.push(Bt)});for(var Ae=0;Ae<ce.length-1;Ae++){var Je=ce[Ae],at=Je.actualBounds.x+Je.actualBounds.width+le,Gt=ce[Ae+1];Gt.move(new go.Point(at,Je.actualBounds.y))}Pe.commitTransaction("align Row")},Ye.prototype.canRotate=function(le){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ye.prototype.rotate=function(le){le===void 0&&(le=90);var Pe=this.diagram;Pe.startTransaction("rotate "+le.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=le)}),Pe.commitTransaction("rotate "+le.toString())},Ye.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Ae=0;ce.parts.each(function(Je){if(!Je.isSelected){var at=Je.zOrder;isNaN(at)?Je.zOrder=0:Ae=Math.max(Ae,at)}}),Pe.set(ce,Ae)}),le.selection.each(function(ce){Ye._assignZOrder(ce,Pe.get(ce.layer)+1)}),le.commitTransaction("pullToFront")},Ye.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Ae=0;ce.parts.each(function(Je){if(!Je.isSelected){var at=Je.zOrder;isNaN(at)?Je.zOrder=0:Ae=Math.min(Ae,at)}}),Pe.set(ce,Ae)}),le.selection.each(function(ce){Ye._assignZOrder(ce,Pe.get(ce.layer)-1-Ye._findGroupDepth(ce))}),le.commitTransaction("pushToBack")},Ye._assignZOrder=function(le,Pe,ce){ce===void 0&&(ce=le),le.layer===ce.layer&&(le.zOrder=Pe),le instanceof go.Group&&le.memberParts.each(function(Ae){Ye._assignZOrder(Ae,Pe+1,ce)})},Ye._findGroupDepth=function(le){if(le instanceof go.Group){var Pe=0;return le.memberParts.each(function(ce){Pe=Math.max(Pe,Ye._findGroupDepth(ce))}),Pe+1}else return 0},Ye.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Pe=le.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)}},Ye.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Pe){le.push(Pe)}),this.diagram.parts.each(function(Pe){le.push(Pe)}),le},Ye.prototype._arrowKeyMove=function(){var le=this.diagram,Pe=le.lastInput,ce=0,Ae=0;if(Pe.control||Pe.meta)ce=1,Ae=1;else if(le.grid!==null){var Je=le.grid.gridCellSize;Ae=Je.width,ce=Je.height}le.startTransaction("arrowKeyMove"),le.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-Ae,at.actualBounds.y)):Pe.key==="Right"&&at.move(new go.Point(at.actualBounds.x+Ae,at.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},Ye.prototype._arrowKeySelect=function(){var le=this.diagram,Pe=le.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:le.select(ce))},Ye.prototype._findNearestPartTowards=function(le){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,Ae=this._getAllParts(),Je=1/0,at=Pe,Gt=0;Gt<Ae.length;Gt++){var Bt=Ae[Gt];if(Bt!==Pe&&Bt.canSelect()){var it=Bt.actualBounds.center,Jt=ce.directionPoint(it),jn=this._angleCloseness(Jt,le);if(jn<=45){var fn=ce.distanceSquaredPoint(it);fn*=1+Math.sin(jn*Math.PI/180),fn<Je&&(Je=fn,at=Bt)}}}return at},Ye.prototype._angleCloseness=function(le,Pe){return Math.min(Math.abs(Pe-le),Math.min(Math.abs(Pe+360-le),Math.abs(Pe-360-le)))},Ye.prototype._arrowKeyTree=function(){var le=this.diagram,Pe=le.selection.first();if(Pe instanceof go.Node){var ce=le.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)le.commandHandler.canExpandTree(Pe)&&le.commandHandler.expandTree(Pe);else{var Ae=this._sortTreeChildrenByY(Pe).first();Ae!==null&&le.select(Ae)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)le.commandHandler.canCollapseTree(Pe)&&le.commandHandler.collapseTree(Pe);else{var Je=Pe.findTreeParentNode();Je!==null&&le.select(Je)}else if(ce.key==="Up"){var Je=Pe.findTreeParentNode();if(Je!==null){var at=this._sortTreeChildrenByY(Je),Gt=at.indexOf(Pe);if(Gt>0){for(var Bt=at.elt(Gt-1);Bt!==null&&Bt.isTreeExpanded&&!Bt.isTreeLeaf;){var it=this._sortTreeChildrenByY(Bt);Bt=it.last()}Bt!==null&&le.select(Bt)}else le.select(Je)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Ae=this._sortTreeChildrenByY(Pe).first();Ae!==null&&le.select(Ae)}else for(;Pe!==null;){var Je=Pe.findTreeParentNode();if(Je===null)break;var at=this._sortTreeChildrenByY(Je),Gt=at.indexOf(Pe);if(Gt<at.length-1){le.select(at.elt(Gt+1));break}else Pe=Je}var Jt=le.selection.first();Jt!==null&&le.scrollToRect(Jt.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(le){var Pe=new go.List().addAll(le.findTreeChildrenNodes());return Pe.sort(function(ce,Ae){var Je=ce.location,at=Ae.location;return Je.y<at.y?-1:Je.y>at.y?1:Je.x<at.x?-1:Je.x>at.x?1:0}),Pe},Ye.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var xt=Ye,rn=ie(25863),_t=ie(43604),Cn=ie(38147),Nn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},$t=ie(59301),Wn=(le,Pe,ce)=>new Promise((Ae,Je)=>{var at=it=>{try{Bt(ce.next(it))}catch(Jt){Je(Jt)}},Gt=it=>{try{Bt(ce.throw(it))}catch(Jt){Je(Jt)}},Bt=it=>it.done?Ae(it.value):Promise.resolve(it.value).then(at,Gt);Bt((ce=ce.apply(le,Pe)).next())});function Vn({onCancel:le,callback:Pe}){let ce=(0,ae.useRef)(),Ae=(0,ae.useRef)(),Je=(0,ae.useRef)(),at=(0,ae.useRef)(!1);const Gt=(0,ae.useRef)(!1),[Bt,it]=(0,ae.useState)(0);function Jt(){const Oe=de.bx.make,Et={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(Ae.current,{padding:20,grid:Oe(de.s_,"Grid",Oe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Oe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ce=>{var qe=Ce.diagram.commandHandler.addTopLevelParts(Ce.diagram.selection,!0);qe||Ce.diagram.currentTool.doCancel()},commandHandler:Oe(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ce=>{var qe=Ce.subject;qe.location=qe.location.copy().snapToGridPoint(Ce.diagram.grid.gridOrigin,Ce.diagram.grid.gridCellSize),setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ce=>{var qe=Ce.subject;setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ce=>{var qe=Ce.parameter.part;qe.invalidateConnectedLinks();var Xe=Ce.subject;Ce.diagram.toolManager.linkingTool.isForwards?Xe.toNode.invalidateConnectedLinks():Xe.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Oe(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),Oe(de.bn,{name:"SHAPE",fill:Et.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")),Oe(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Oe(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=Oe("ToolTip",Oe(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Oe(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Oe(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function xn(Ce,qe){var Xe=(Qe,At)=>{Qe.handled=!0,Qe.diagram.model.commit(zt=>{var St=At.part.adornedPart,Wt=new de.E9().setRectSpot(St.actualBounds,Ce);Wt.subtract(St.location),Wt.scale(2,2),Wt.x+=Math.sign(Wt.x)*130,Wt.y+=Math.sign(Wt.y)*130,Wt.add(St.location),Wt.snapToGridPoint(Qe.diagram.grid.gridOrigin,Qe.diagram.grid.gridCellSize);var Kt=zt.copyNodeData(St.data);zt.setGroupKeyForNodeData(Kt,zt.getGroupKeyForNodeData(St.data)),zt.addNodeData(Kt);var In={from:St.key,to:zt.getKeyForNodeData(Kt)};zt.addLinkData(In);var Xn=Qe.diagram.findNodeForData(Kt);Xn.location=Wt,Qe.diagram.select(Xn),setTimeout(()=>{Qe.diagram.commandHandler.editTextBlock()},20)})};return Oe(de.bn,{figure:qe,alignment:Ce,alignmentFocus:Ce.opposite(),width:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?25:18,height:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Et.white,strokeWidth:4,mouseEnter:(Qe,At)=>At.fill="dodgerblue",mouseLeave:(Qe,At)=>At.fill="orange",isActionable:!0,click:Xe,contextClick:Xe})}function Ln(Ce){return Oe(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:(qe,Xe)=>Xe.fill="dodgerblue",mouseLeave:(qe,Xe)=>Xe.fill="orange",click:(qe,Xe)=>{qe.diagram.commandHandler.showContextMenu(Xe.part.adornedPart)}},Ce||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Oe(de.uz,"Spot",Oe(de.Vm,{padding:10}),xn(de.z6.Top,"TriangleUp"),xn(de.z6.Left,"TriangleLeft"),xn(de.z6.Right,"TriangleRight"),xn(de.z6.Bottom,"TriangleDown"),Ln({alignment:new de.z6(.75,0)}));function mn(Ce,qe){return(Xe,Qe)=>{Xe.handled=!0,Xe.diagram.model.commit(At=>{At.set(Qe.part.adornedPart.data,Ce,qe)})}}function me(Ce,qe){return qe||(qe="color"),Oe(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ce,margin:1,background:"transparent",mouseEnter:(Xe,Qe)=>Qe.stroke="dodgerblue",mouseLeave:(Xe,Qe)=>Qe.stroke="lightgray",click:mn(qe,Ce),contextClick:mn(qe,Ce)})}function ve(){return[Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Et.white,"fill"),me(Et.beige,"fill"),me(Et.extralightblue,"fill"),me(Et.extralightred,"fill"))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Et.lightgray,"fill"),me(Et.lightgreen,"fill"),me(Et.lightblue,"fill"),me(Et.lightred,"fill")))]}function pe(){return[Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Et.black),me(Et.green),me(Et.blue),me(Et.red))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Et.white),me(Et.magenta),me(Et.purple),me(Et.orange)))]}function Be(Ce,qe){return qe||(qe="thickness"),Oe(de.bn,"LineH",{width:16,height:16,strokeWidth:Ce,margin:1,background:"transparent",mouseEnter:(Xe,Qe)=>Qe.background="dodgerblue",mouseLeave:(Xe,Qe)=>Qe.background="transparent",click:mn(qe,Ce),contextClick:mn(qe,Ce)})}function ze(Ce,qe){return qe||(qe="dash"),Oe(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ce,margin:1,background:"transparent",mouseEnter:(Xe,Qe)=>Qe.background="dodgerblue",mouseLeave:(Xe,Qe)=>Qe.background="transparent",click:mn(qe,Ce),contextClick:mn(qe,Ce)})}function Te(){return[Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Be(1),Be(2),Be(3),Be(4))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",ze(null),ze([2,4]),ze([4,4])))]}function xe(Ce,qe){return qe||(qe="figure"),Oe(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ce,margin:1,background:"transparent",mouseEnter:(Xe,Qe)=>Qe.fill="dodgerblue",mouseLeave:(Xe,Qe)=>Qe.fill="lightgray",click:mn(qe,Ce),contextClick:mn(qe,Ce)})}ce.current.nodeTemplate.contextMenu=Oe("ContextMenu",Oe("ContextMenuButton",Oe(de.s_,"Horizontal",xe("Rectangle"),xe("RoundedRectangle"),xe("Ellipse"),xe("Diamond"))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",xe("Parallelogram2"),xe("ManualOperation"),xe("Procedure"),xe("Cylinder1"))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",xe("Terminator"),xe("CreateRequest"),xe("Document"),xe("TriangleDown"))),ve(),pe(),Te()),ce.current.groupTemplate=Oe(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ce,qe)=>{var Xe=qe.addMembers(qe.diagram.selection,!0);Xe||qe.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Oe(de.s_,"Auto",{name:"BODY"},Oe(de.bn,{parameter1:10,fill:Et.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")),Oe(de.Vm,{background:"transparent",margin:20})),Oe(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=Oe(de.uz,"Spot",Oe(de.s_,"Auto",Oe(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Oe(de.Vm,{margin:1.5})),Ln({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Oe("ContextMenu",ve(),pe(),Te()),ce.current.linkTemplate=Oe(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",Ce=>Ce>=1?10:0),new de.KX("toShortLength","dir",Ce=>Ce>=1?10:0),new de.KX("points").makeTwoWay(),Oe(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Oe(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",Ce=>Ce===1)),Oe(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",Ce=>Ce>=1),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),Oe(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",Ce=>Ce===2),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),Oe(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=Oe(de.uz,Oe(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ee(2)},new de.KX("pathPattern","thickness",Ee)),Ln({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ee(Ce){return Oe(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ce+4).toString()+" H3"})}function dt(Ce){var qe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ce===0?qe="M0 0 M16 16 M0 8 L16 8":Ce===2&&(qe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Oe(de.bn,{geometryString:qe,margin:2,background:"transparent",mouseEnter:(Xe,Qe)=>Qe.background="dodgerblue",mouseLeave:(Xe,Qe)=>Qe.background="transparent",click:mn("dir",Ce),contextClick:mn("dir",Ce)})}function fe(Ce){var qe=(Xe,Qe)=>{Xe.handled=!0,Xe.diagram.model.commit(At=>{var zt=Qe.part.adornedPart;At.set(zt.data,Ce?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ce?zt.toNode:zt.fromNode).invalidateConnectedLinks()})};return Oe(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Xe,Qe)=>Qe.background="dodgerblue",mouseLeave:(Xe,Qe)=>Qe.background="transparent",click:qe,contextClick:qe})}function mt(Ce,qe){var Xe=0,Qe=de.z6.RightSide;Ce.equals(de.z6.Top)?(Xe=270,Qe=de.z6.TopSide):Ce.equals(de.z6.Left)?(Xe=180,Qe=de.z6.LeftSide):Ce.equals(de.z6.Bottom)&&(Xe=90,Qe=de.z6.BottomSide),qe||(Xe-=180);var At=(zt,St)=>{zt.handled=!0,zt.diagram.model.commit(Wt=>{var Kt=St.part.adornedPart;Wt.set(Kt.data,qe?"toSpot":"fromSpot",de.z6.stringify(Qe)),(qe?Kt.toNode:Kt.fromNode).invalidateConnectedLinks()})};return Oe(de.bn,{alignment:Ce,alignmentFocus:Ce.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Xe,background:"transparent",mouseEnter:(zt,St)=>St.background="dodgerblue",mouseLeave:(zt,St)=>St.background="transparent",click:At,contextClick:At})}ce.current.linkTemplate.contextMenu=Oe("ContextMenu",pe(),Te(),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",dt(0),dt(1),dt(2))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Oe(de.s_,"Spot",fe(!1),mt(de.z6.Top,!1),mt(de.z6.Left,!1),mt(de.z6.Right,!1),mt(de.z6.Bottom,!1)),Oe(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},fe(!0),mt(de.z6.Top,!0),mt(de.z6.Left,!0),mt(de.z6.Right,!0),mt(de.z6.Bottom,!0)))));const Ct=`{ "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 Nt=["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 Ht(Ce){return console.log("shapeName:",Ce),Nt.indexOf(Ce)>=0}var yn=new de.YI(Je.current,{maxSelectionCount:1,linkTemplate:Oe(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Oe(de.uz,"Link",{locationSpot:de.z6.Center},Oe(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Oe(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Oe(de.bn,{isPanelMain:!0,strokeWidth:2}),Oe(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(Ce=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ce.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Ce){var qe;const Xe=Ce.subject.part;var Qe=(qe=document.activeElement)==null?void 0:qe.value;typeof Qe=="string"&&Qe.trim()===""&&ce.current.model.commit(function(At){At.set(Xe.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),yn.nodeTemplate=Oe(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Oe(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")),Oe(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=Oe(de.s_,"Grid",Oe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Oe(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 jn=()=>Wn(this,null,function*(){var Oe=ce.current.makeImage();const Et=yield(0,Cn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Oe.src}});Pe({src:Et.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{Jt()},500),it(Bt+1),()=>{ce.current=null}),[]);const fn=(0,st.useIntl)();return $t.createElement("div",{ref:Gt,className:at.current?`${Nn.maxH60} body-overflow-initial`:"body-overflow-initial"},$t.createElement(Me.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:$t.createElement(je.Z,null,$t.createElement(_t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),$t.createElement(_t.Z,{onClick:()=>{var Oe,Et,xn=ce.current.selection.first();if(at.current=!at.current,document.activeElement&&xn){let Ln=(Et=(Oe=document.activeElement)==null?void 0:Oe.value)==null?void 0:Et.trim();typeof Ln=="string"&&ce.current.model.commit(function(mn){mn.set(xn.data,"text",Ln||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}it(Bt+1)}},$t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",fn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:le},$t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Nn.flowChartWrp},$t.createElement("div",{style:{display:"flex",height:"100%"}},$t.createElement("div",{style:{width:"300px",height:"100%"}},$t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),$t.createElement("div",{style:{height:"calc(100% - 50px)"},className:Nn.myPaletteDiv,ref:Je})),$t.createElement("div",{style:{flex:1,position:"relative"}},$t.createElement("div",{ref:Ae,style:{height:"80vh"}}))),$t.createElement("div",{className:"tr"},$t.createElement(Ge.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},fn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var kn=Vn,Zn=ie(5112),An=ie(5871);const Xt=Zn.ZP.Group,qt={margin:"0 8px"};var gn=({callback:le,onCancel:Pe})=>{function ce(Je){le(Je)}const Ae=(0,st.useIntl)();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:qt},Ae.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:qt},Ae.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(An.Z,null)),ae.createElement("span",{style:qt},Ae.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(An.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:qt},Ae.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(ue.default.Item,{name:"align"},ae.createElement(Xt,null,ae.createElement(Zn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Zn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Zn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Zn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Dt=ie(78673),Yn=ie(93510),qn=ie.n(Yn),ha=(0,ae.forwardRef)(({use3d:le,width:Pe,height:ce,callback:Ae,showSaveButton:Je},at)=>{const Gt=(0,ae.useRef)(),Bt=(0,ae.useRef)(),it=(0,st.useIntl)(),[Jt,jn]=(0,ae.useState)(!1),fn=(0,ae.useRef)({id:Gt,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)(()=>{Bt.current=new(qn())(fn.current,!0),window.onload=function(){Bt.current.inject("applet_container")}},[]);const Oe=()=>{var Et=window.ggbApplet.getPNGBase64(1,!0,72);return Ae&&Ae(Et),Et};return(0,ae.useEffect)(()=>{fn.current.appName=Jt?"3D":"graphing",Bt.current.inject("applet_container")},[Jt]),(0,ae.useEffect)(()=>{jn(le)},[le]),(0,ae.useImperativeHandle)(at,()=>({getImgData:Oe})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gt}),ae.createElement(je.Z,{align:"middle"},ae.createElement(_t.Z,{flex:1},ae.createElement(Dt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:it.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Jt,onChange:Et=>jn(Et)})),ae.createElement(_t.Z,null,ae.createElement(Ge.ZP,{size:"large",onClick:Oe,style:{zIndex:8,marginTop:10},type:"primary"},it.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),On=ie(99298),he=ie(1012),be=ie(8591);const De="link",Ue="upload-image",tt="add-flowchart",vt="draw-image",Ft="add-flowchart",ft="code-block",wt="add-table",kt="------------",Tt={default:kt,left:`:${kt}`,center:`:${kt}:`,right:`${kt}:`};var It=ie(31103),dn=(le,Pe,ce)=>new Promise((Ae,Je)=>{var at=it=>{try{Bt(ce.next(it))}catch(Jt){Je(Jt)}},Gt=it=>{try{Bt(ce.throw(it))}catch(Jt){Je(Jt)}},Bt=it=>it.done?Ae(it.value):Promise.resolve(it.value).then(at,Gt);Bt((ce=ce.apply(le,Pe)).next())});function cn(){}let Sn=0;const Yt=1e4,jt="\u2581",Bn="@\u2581\u2581@",Pn="@\u2581@",hn=`
**\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`,Ut=["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 Mn(le){return/^\d+$/.test(le)?`${le}px`:le}const $n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zn={[$n+"-B"]:"bold",[$n+"-I"]:"italic"};var ea=({defaultValue:le="",onChange:Pe,width:ce="100%",height:Ae=400,miniToolbar:Je=!1,isFocus:at=!1,watch:Gt,insertTemp:Bt,mode:it="markdown",id:Jt="markdown-editor-id",showResizeBar:jn=!1,noStorage:fn=!1,showNullButton:Oe=!1,showNullProgramButton:Et=!1,hidetoolBar:xn=!1,fullScreen:Ln=!1,onBlur:mn,onCMBeforeChange:me,onFullScreen:ve,className:pe="",disablePaste:Be=!1,disabled:ze=!1,disabledFill:Te=!1,placeholder:xe="",values:Ee="",extraUse:dt})=>{const[fe,mt]=(0,ae.useState)(null),[Ct,Nt]=(0,ae.useState)(le),[Ht,yn]=(0,ae.useState)(Gt),[Ce,qe]=(0,ae.useState)(Ln),[Xe,Qe]=(0,ae.useState)(""),[At,zt]=(0,ae.useState)(0),[St,Wt]=(0,ae.useState)(Ae),[Kt,In]=(0,ae.useState)(!1),Xn=(0,ae.useRef)((0,he.Z)()),Rn=(0,ae.useRef)(!1),la=(0,ae.useRef)(),[Sa,Pa]=(0,ae.useState)(0),[oa,Dn]=(0,ae.useState)(0),Vt=(0,ae.useRef)(),ta=(0,ae.useRef)(),na=(0,ae.useRef)(),aa=(0,ae.useRef)(),ga=()=>dn(void 0,null,function*(){var ot;const We=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Xn.current}});(ot=We==null?void 0:We.attachments)!=null&&ot.length&&(console.log("cm:",fe,Vt),We.attachments.map(Ke=>{Ke.content_type.indexOf("image")>-1?fe.replaceSelection(`![,](/api/attachments/${Ke.id}?type=${Ke.content_type})`):Ke.content_type.indexOf("video")>-1?fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ke.content_type.indexOf("pdf")>-1?fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ke.id}?type=${Ke.content_type}&disposition=inline" target="_blank">${Ke.name}</a>`):fe.replaceSelection(`[${Ke.name}](${ENV.API_SERVER}/api/attachments/${Ke.id}?type=${Ke.content_type})`)}))});(0,ae.useEffect)(()=>{const ot=window.scrollY||window.pageYOffset;Nt(Ee),fe==null||fe.setValue(Ee),window.scrollTo(0,ot)},[Ee]),(0,ae.useEffect)(()=>{ve==null||ve(Ce)},[Ce]),(0,ae.useEffect)(()=>{if(Vt.current){let ot=function(Ke,nt){var Rt;if(Be){nt.preventDefault();return}const an=nt.clipboardData;if(an){const wn=an.types.toString(),vn=an.items;if(wn==="Files"||an.types.indexOf("Files")>-1){if(nt.preventDefault(),it=="stex")return;try{let En=vn[1];((Rt=vn[0])==null?void 0:Rt.kind)==="file"&&(En=vn[0]);const Gn=En.getAsFile(),Qn=Gn.name.split(".").pop();(0,we.I)(Gn,ut=>{var Ot,en,Mt;ut.id?((Ot=Gn==null?void 0:Gn.type)==null?void 0:Ot.indexOf("image"))>-1?We.replaceSelection(`<img width="100%" src="/api/attachments/${ut.id}?type=${ut.content_type})" alt="" />`):((en=Gn==null?void 0:Gn.type)==null?void 0:en.indexOf("video"))>-1?We.replaceSelection(`<video width="100%" controls src="/api/attachments/${ut.id}"></video>`):((Mt=Gn==null?void 0:Gn.type)==null?void 0:Mt.indexOf("pdf"))>-1?We.replaceSelection(`<a href="/api/attachments/${ut.id}?type=${Gn.type}&disposition=inline" target="_blank">${Gn.name}</a>`):Ut.includes(Qn)?We.replaceSelection(`<a href="/api/attachments/${ut.id}?type=office&disposition=inline" target="_blank">${Gn.name}</a>`):We.replaceSelection(`[${Gn.name}](/api/attachments/${ut.id}?type=${ut.content_type})`):(ut==null?void 0:ut.status)===401&&(be.ZP.warning((ut==null?void 0:ut.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(En){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const We=Ze().fromTextArea(Vt.current,{mode:it,lineNumbers:!Je,lineWrapping:!0,value:le,autoCloseTags:!Et,autoCloseBrackets:!0});return We.on("keyup",function(Ke,nt){nt.keyCode===8&&(Ke.getValue()==""?We.setOption("placeholder",xe):We.setOption("placeholder",null))}),We.on("keydown",function(Ke,nt){if(nt.keyCode===8){var Rt=fa(Ke);Rt&&nt.preventDefault()}}),at&&We.focus(),We.on("paste",ot),We.on("dragleave",function(Ke,nt){ta.current.classList.remove("mouse-hover-md")}),ze&&We.on("beforeChange",function(Ke,nt){(nt.origin==="paste"||nt.origin==="+input")&&nt.cancel()}),mt(We),()=>{We.off("paste",ot)}}},[]);const Tn=(0,ae.useCallback)(()=>{if(ta.current)try{}catch(ot){console.log(ot,"---- to set md editor body height")}},[St,ta,Ce]);(0,ae.useEffect)(()=>{function ot(){let We=new He.Z(Ke=>{for(let nt of Ke)(nt.target.offsetHeight>0||nt.target.offsetWidth>0)&&(Tn(),fe.setSize("100%","100%"),fe.refresh())});return We.observe(Vt.current.parentElement),We}if(fe){const We=ot();return()=>{var Ke,nt;(Ke=Vt.current)!=null&&Ke.parentElement&&We.unobserve((nt=Vt.current)==null?void 0:nt.parentElement)}}},[fe,Tn]),(0,ae.useEffect)(()=>{if(fe){let ot=[];for(const[We,Ke]of Object.entries(zn)){let nt={[We]:()=>{Lt(Ke)}};ot.push(nt),fe.addKeyMap(nt)}return la.current=setInterval(()=>{Rn.current&&ga()},4e3),()=>{clearInterval(la.current);for(let We of ot)fe.removeKeyMap(We)}}},[fe]),(0,ae.useEffect)(()=>{Ln!==Ce&&qe(Ln)},[Ln]),(0,It.Z)(()=>{if(!fn&&At>0){let ot=new Date().getTime(),We=window.sessionStorage.getItem(Jt);ot>=At+Yt&&(!We||We!==Ct)&&(window.sessionStorage.setItem(Jt,Ct),In(!0))}},Yt),(0,ae.useEffect)(()=>{yn(Gt)},[fe,Gt]),(0,ae.useEffect)(()=>{fe&&at&&fe.focus()},[fe,at]),(0,ae.useEffect)(()=>{if(Ht&&fe){let ot=function(Ke){let nt=Ke.target;if(aa.current){let Rt=nt.scrollTop/nt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*Rt}};const We=fe.getScrollerElement();return We.addEventListener("scroll",ot),()=>{We.removeEventListener("scroll",ot)}}},[fe,Ht]),(0,ae.useEffect)(()=>{if(fe&&me){let ot=function(We,Ke){me(We,Ke)};return fe.on("beforeChange",ot),()=>{fe.off("beforeChange",ot)}}},[fe,me]),(0,ae.useEffect)(()=>{if(fe&&mn){let ot=function(){mn(fe.getValue())};return fe.on("blur",ot),()=>{fe.off("blur",ot)}}},[fe,mn]);function fa(ot,We){var Ke=ot.getDoc(),nt=Ke.getCursor(),Rt=Ke.getLine(nt.line),an=Rt.charAt(nt.ch-1),wn=Rt.lastIndexOf("@\u2581@",nt.ch),vn=Rt.lastIndexOf("@\u2581\u2581@",nt.ch),En=wn>vn?wn:vn,Gn=wn>vn?3:4;if(Bn.indexOf(an)===-1)return null;if(console.log("change1:",We,ot,Rt,nt,En,wn,vn,an),En>=0&&nt.ch-En<5){var Qn=En+Gn;return Ke.replaceRange("",{line:nt.line,ch:En},{line:nt.line,ch:Qn}),{line:nt.line,ch:Qn}}return null}(0,ae.useEffect)(()=>{if(fe){let ot=function(We,Ke){const nt=We.getValue();Nt(nt),zt(new Date().getTime()),We.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Et?Pe(nt,ln(nt)):Pe(nt))};return fe.on("change",ot),()=>{fe.off("change",ot)}}},[fe,Pe]),(0,ae.useEffect)(()=>{if(fe)if(le==null)fe.setValue(""),Nt("");else{const ot=window.scrollY||window.pageYOffset;le!==fe.getValue()&&(fe.setValue(le),Nt(le),fe.setCursor(ze?1:fe.lineCount(),0),window.scrollTo(0,ot))}},[fe,le]);const Lt=(0,ae.useCallback)(ot=>{const We=fe.getCursor(),Ke=fe.getSelection();let nt=Ke.split(`
`);switch(ot){case"bold":return fe.replaceSelection("**"+Ke+"**"),Ke===""&&fe.setCursor(We.line,We.ch+2),fe.focus();case"italic":return fe.replaceSelection("*"+Ke+"*"),Ke===""&&fe.setCursor(We.line,We.ch+1),fe.focus();case"code":return fe.replaceSelection("`"+Ke+"`"),Ke===""&&fe.setCursor(We.line,We.ch+1),fe.focus();case"inline-latex":return Qe("inline-latex"),fe.focus();case"latex":return fe.replaceSelection("```latex\n"+Ke+"\n```"),fe.setCursor(We.line+1,Ke.length+1),fe.focus();case"line-break":return fe.replaceSelection(`<br/>
`),fe.focus();case"list-ul":return Ke===""?fe.replaceSelection("- "+Ke):fe.replaceSelection(nt.map(Rt=>Rt===""?"":`- ${Rt}`).join(`
`)),fe.focus();case"list-ol":return Ke===""?fe.replaceSelection("1. "+Ke):fe.replaceSelection(nt.map((Rt,an)=>Rt===""?"":`${an+1}. ${Rt}`).join(`
`)),fe.focus();case"add-null-ch":return Ke===""&&fe.setCursor(We.line,We.ch),fe.replaceSelection(jt),fe.focus();case"add-signal":return Ke===""&&fe.setCursor(We.line,We.ch),fe.replaceSelection(Pn),fe.focus();case"add-multiple":return Ke===""&&fe.setCursor(We.line,We.ch),fe.replaceSelection(Bn),fe.focus();case"inster-template-1":return Ke===""&&fe.setCursor(We.line,We.ch),fe.replaceSelection(hn),fe.focus();case"eraser":return fe.setValue(""),fe.focus();case"trigger-watch":return yn(!Ht),fe.focus();case"trigger-full-screen":return qe(!Ce),fe.focus();case De:Qe(De);return;case ft:Qe(ft);return;case Ue:Qe(Ue);return;case vt:Qe(vt);return;case"maths-latex":Qe("maths-latex");return;case tt:Qe(tt);return;case wt:Qe(wt);return;default:throw new Error}},[fe,Ht,Ce]),Zt=(0,ae.useCallback)((ot,We)=>{var Ke,nt,Rt,an,wn,vn;switch(Qe(""),Xe){case De:const{title:Ot,link:en}=ot;return fe.replaceSelection(`[${Ot}](${en})`),fe.focus();case ft:const{language:Mt,content:tn}=ot;return fe.replaceSelection(["```"+Mt,tn,"```"].join(`
`)),fe.focus();case"maths-latex":for(var En=atob(ot),Gn=new Uint8Array(En.length),Qn=0;Qn<En.length;Qn++)Gn[Qn]=En.charCodeAt(Qn);var ut=new Blob([Gn],{type:"image/png"});(0,we.I)(ut,ma=>{ma.id?fe.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fe.replaceSelection("`$$"+ot+"$$`");break;case Ue:case vt:case Ft:const{src:pn,alt:da}=ot,on=We,ca=(Rt=(nt=(Ke=on==null?void 0:on.name)==null?void 0:Ke.split("."))==null?void 0:nt.pop)==null?void 0:Rt.call(nt);return((an=on==null?void 0:on.type)==null?void 0:an.indexOf("image"))>-1||!(on!=null&&on.type)?on.align||on.width?fe.replaceSelection(`<p style="text-align:${on.align||"initial"}"><img width="${on.width?on.width+"%":"initial"}" src="${pn}" alt="${da||""}" /></p>`):fe.replaceSelection(`<img width="100%" src="${pn}" alt="${da||""}" />`):((wn=on==null?void 0:on.type)==null?void 0:wn.indexOf("video"))>-1?fe.replaceSelection(`<video width="100%" controls src="${pn}"></video>`):((vn=on==null?void 0:on.type)==null?void 0:vn.indexOf("pdf"))>-1?fe.replaceSelection(`<a href="${pn}?type=${on.type}&disposition=inline" target="_blank">${on.name}</a>`):Ut.includes(ca)?fe.replaceSelection(`<a href="${pn}?type=office&disposition=inline" target="_blank">${on.name}</a>`):fe.replaceSelection(`[${on.name}](${pn})`),fe.focus();case wt:const{row:ba,col:Ba,align:Ca}=ot;let Fa=`
`;for(let ma=0;ma<ba;ma++){let Ea=[],xa=[];for(let Ga=0;Ga<Ba;Ga++)ma===1&&xa.push(Tt[Ca]),Ea.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
`),Fa+=`| ${Ea.join(Ba===1?"":" | ")} |
`}return fe.replaceSelection(Fa+`
`),fe.focus();default:throw new Error}},[fe,Xe]),_n=(0,ae.useMemo)(()=>{switch(Xe){case De:return ae.createElement(Kn,{callback:Zt,onCancel:sn});case ft:return ae.createElement(Hn.Z,{callback:Zt,onCancel:sn});case Ue:return ae.createElement(we.Z,{callback:Zt,onCancel:sn});case tt:return ae.createElement(kn,{callback:Zt,onCancel:sn});case wt:return ae.createElement(gn,{callback:Zt,onCancel:sn});case"maths-latex":return ae.createElement(ha,{showSaveButton:!0,callback:Zt});case"inline-latex":return ae.createElement(On.Z,{showSaveButton:!0,callback:Zt});default:return null}},[Xe]);function sn(){Qe("")}(0,ae.useEffect)(()=>{if(na.current){let ot=function(wn){Rt=!0,an=wn.pageY},We=function(){Rt=!1},Ke=function(wn){if(Rt){let vn=wn.pageY-an;vn<0&&(vn=0),vn>300&&(vn=300);let En=Ae+vn+"px";Wt(En)}},nt=na.current,Rt=!1,an=0;return nt.addEventListener("mousedown",ot),document.addEventListener("mousemove",Ke),document.addEventListener("mouseup",We),()=>{nt.removeEventListener("mousedown",ot),document.removeEventListener("mousemove",Ke),document.removeEventListener("mouseup",We)}}},[fe,na]),(0,ae.useEffect)(()=>{Wt(Ae)},[Ae]);const ra=Mn(ce),Jn=Mn(St),La={width:ra,height:Jn},pa=(0,ae.useMemo)(()=>{if(At){let ot=new Date(At),We=ot.getHours(),Ke=ot.getMinutes(),nt=ot.getSeconds();return We=We<10?"0"+We:We,Ke=Ke<10?"0"+Ke:Ke,nt=nt<10?"0"+nt:nt,`${We}:${Ke}:${nt}`}return 0},[At]),ln=ot=>{const We=[];if(Et){let Ke=-1;ot=ot.replace(/(@▁▁@|@▁@)/g,function(nt,Rt,an){We.push({multiLine:nt!==Pn})})}return We};function un(){window.sessionStorage.removeItem(Jt),In(!1),zt(0)}function ia(){In(!1),zt(0),fe.setValue(window.sessionStorage.getItem(Jt))}const ua=(0,st.useIntl)(),va={[De]:"\u6DFB\u52A0\u94FE\u63A5",[ft]:ua.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[Ue]:ua.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[vt]:"\u6DFB\u52A0\u753B\u56FE",[tt]:ua.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ua.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ua.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{va[Xe]&&Xe!==vt&&Xe!==tt&&setTimeout(()=>{const ot=document.getElementsByClassName("markdown-popup-form")[0],We=window.innerWidth/2-ot.offsetWidth/2,Ke=window.innerHeight/2-ot.offsetHeight/2;Pa(We),Dn(Ke)},0)},[Xe]);const ya=ot=>{ot.preventDefault();const We=ot.clientX-Sa,Ke=ot.clientY-oa;document.body.onmousemove=nt=>{let Rt=nt.clientX-We,an=nt.clientY-Ke;const wn=document.getElementsByClassName("markdown-popup-form")[0],vn=window.innerWidth-wn.offsetWidth,En=window.innerHeight-wn.offsetHeight;Rt=Math.max(0,Math.min(Rt,vn)),an=Math.max(0,Math.min(an,En)),wa(nt.clientX,nt.clientY,We,Ke)&&(Pa(Rt),Dn(an))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(ot,We,Ke,nt)=>{const Rt=document.body.clientHeight,an=document.body.clientWidth;return ot<20&&Ke>ot||ot>an-20&&Ke<ot||We<20&&nt>We||We>Rt-20&&nt<We?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ta},ae.createElement("div",{className:`markdown-editor-container ${pe} ${Ht?"on-preview":""} ${Je?"mini":""} ${Ce?"full-screen":""}`,style:La},ae.createElement(re,{insertTemp:Bt,watch:Ht,fullScreen:Ce,showNullButton:Oe,showNullProgramButton:Et,onActionCallback:Lt,hidetoolBar:xn,extraUse:dt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Vt,placeholder:xe})),Ht?ae.createElement("div",{ref:aa,className:"preview-container"},it==="stex"&&ae.createElement(_e,{value:Ct}),it!=="stex"&&ae.createElement(rt.Z,{disabledFill:Te,showProgramFill:Et,value:Ct})):null))),jn?ae.createElement("a",{ref:na,className:"editor-resize"}):null,Xe===vt&&ae.createElement(ht,{callback:Zt,onCancel:sn}),Xe===tt&&ae.createElement(kn,{callback:Zt,onCancel:sn}),ae.createElement(se.Z,null,va[Xe]&&Xe!==vt&&Xe!==tt?ae.createElement(Me.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Sa,top:oa},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},va[Xe]),open:!0,onCancel:sn,footer:null,destroyOnClose:!0,width:Xe===tt?"1200px":null,height:Xe===tt?"80vh":null,className:"markdown-popup-form"},_n):null))}},45053:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return re},I:function(){return ue}});var ae=ie(78241),ke=ie(8591),Ze=ie(92832),He=ie(81327),ye=ie(5871),Re=ie(5112),Se=ie(3113),et=ie(28735),Ve=ie(59301),Ne=ie(41867),rt=ie(65582),_e=ie(59301),st=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Le,Ge,$e)=>Ge in Le?st(Le,Ge,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Le[Ge]=$e,z=(Le,Ge)=>{for(var $e in Ge||(Ge={}))E.call(Ge,$e)&&x(Le,$e,Ge[$e]);if(y)for(var $e of y(Ge))b.call(Ge,$e)&&x(Le,$e,Ge[$e]);return Le},ee=(Le,Ge)=>te(Le,a(Ge));const{useForm:ne}=ae.default,oe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:Le,onCancel:Ge})=>{const[$e]=ne();let ct=(0,Ve.useRef)();const Pt=(0,rt.useIntl)();function pt(Qt){ct.current.width=$e.getFieldValue("width"),ct.current.align=$e.getFieldValue("align"),Le(Qt,ct.current)}function lt(Qt,nn){if(Qt.status===-1){ke.ZP.error(Qt.message);return}$e.setFieldsValue({src:`/api/attachments/${Qt.id}`,type:nn.type})}function yt(Qt){let nn=Qt.target.files[0];ct.current=nn,ue(nn,lt)}return _e.createElement(ae.default,ee(z({form:$e},ge),{className:"upload-image-panel",onFinish:pt,style:{width:470,overflow:"hidden"}}),_e.createElement(ae.default.Item,{label:Pt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},_e.createElement("div",{className:"flex-container"},_e.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},_e.createElement(Ze.default,{style:oe})),_e.createElement(se,{onFileChange:yt}))),_e.createElement(ae.default.Item,{label:Pt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},_e.createElement(Ze.default,{style:{width:264}})),_e.createElement(ae.default.Item,{label:Pt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},_e.createElement(He.Z,null,_e.createElement(ae.default.Item,{name:"width",style:{margin:0}},_e.createElement(ye.Z,{style:{width:264}})),_e.createElement("span",{className:"ml8"},"%"))),_e.createElement(ae.default.Item,{label:Pt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},_e.createElement(Re.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Pt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Pt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Pt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),_e.createElement("aside",null,_e.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},_e.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Pt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),_e.createElement(Se.ZP,{type:"default",onClick:Ge},Pt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function se({onFileChange:Le}){return _e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",_e.createElement("input",{type:"file",onChange:Le}))}function ue(Le,Ge){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ne.bg)())throw ke.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",Le),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var ct=new window.XMLHttpRequest;ct.withCredentials=!0,ct.addEventListener("load",function(Pt){Ge(JSON.parse(Pt.target.responseText),Le)},!1),ct.addEventListener("error",function(Pt){console.error(Pt)},!1),ct.open("POST",`${et.KI}/api/attachments.json`),ct.send($e)}},57261:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return Ze}});var ae=ie(59301),ke=ie(4676);class Ze extends ae.Component{constructor(ye){super(ye);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,ke.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return ke}});var ae=ie(59301);function ke(Ze,He){const ye=(0,ae.useRef)();(0,ae.useEffect)(()=>{ye.current=Ze}),(0,ae.useEffect)(()=>{function Re(){ye.current()}if(He!==null){let Se=setInterval(Re,He);return()=>clearInterval(Se)}},[He])}},19730:function(Fe,gt,ie){"use strict";ie.r(gt),ie.d(gt,{default:function(){return re}});var ae=ie(59301),ke=ie(96565),Ze=ie(8591),He=ie(92832),ye=ie(3113),Re=ie(38147),Se=(se,ue,Le)=>new Promise((Ge,$e)=>{var ct=lt=>{try{pt(Le.next(lt))}catch(yt){$e(yt)}},Pt=lt=>{try{pt(Le.throw(lt))}catch(yt){$e(yt)}},pt=lt=>lt.done?Ge(lt.value):Promise.resolve(lt.value).then(ct,Pt);pt((Le=Le.apply(se,ue)).next())});function et({setIscreate:se,init:ue,UpdateItem:Le}){const[Ge,$e]=(0,ae.useState)(""),[ct,Pt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{Le&&($e(Le&&Le.name),Pt(Le&&Le.description))},[Le]);function pt(){return Se(this,null,function*(){if(!Ge){Ze.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ct){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(Le){lt();return}(yield(0,Re.ZP)("/api/hpc_courses.json",{method:"post",body:{name:Ge,description:ct,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u521B\u5EFA\u6210\u529F"),se(!1),ue("add"))})}function lt(){return Se(this,null,function*(){(yield(0,Re.ZP)(`/api/hpc_courses/${Le.id}.json`,{method:"put",body:{name:Ge,description:ct,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u7F16\u8F91\u6210\u529F"),se(!1),ue(""))})}return ae.createElement("div",null,ae.createElement(He.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:Ge,onChange:yt=>$e(yt.target.value)}),ae.createElement(ke.Z,{id:"courseContentMD",defaultValue:ct,onChange:yt=>Pt(yt)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(ye.ZP,{type:"primary",onClick:()=>pt(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>se(!1)},"\u53D6\u6D88")))}var Ve=et,Ne=ie(6339),rt=(se,ue,Le)=>new Promise((Ge,$e)=>{var ct=lt=>{try{pt(Le.next(lt))}catch(yt){$e(yt)}},Pt=lt=>{try{pt(Le.throw(lt))}catch(yt){$e(yt)}},pt=lt=>lt.done?Ge(lt.value):Promise.resolve(lt.value).then(ct,Pt);pt((Le=Le.apply(se,ue)).next())});function _e({CourseItem:se,userId:ue,init:Le,ItemUpdate:Ge,setSee:$e,UserInfo:ct}){function Pt(){return rt(this,null,function*(){(yield(0,Re.ZP)(`/api/hpc_courses/${se.id}.json`,{method:"delete"}))&&(Ze.ZP.info("\u5220\u9664\u6210\u529F"),Le("delete"),$e(!1))})}function pt(){Ge(se)}return ae.createElement("div",null,ue===299635||ue===301458||ct!=null&&ct.admin||ct!=null&&ct.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(ye.ZP,{onClick:()=>pt()},"\u7F16\u8F91"),ae.createElement(ye.ZP,{onClick:()=>Pt(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,ae.createElement("h1",null,se==null?void 0:se.name),ae.createElement(Ne.Z,{value:se==null?void 0:se.description}))}var st=_e,te=ie(54580),a=ie(74128),y=ie(65582),E=Object.defineProperty,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(se,ue,Le)=>ue in se?E(se,ue,{enumerable:!0,configurable:!0,writable:!0,value:Le}):se[ue]=Le,ne=(se,ue)=>{for(var Le in ue||(ue={}))x.call(ue,Le)&&ee(se,Le,ue[Le]);if(b)for(var Le of b(ue))z.call(ue,Le)&&ee(se,Le,ue[Le]);return se},oe=(se,ue,Le)=>new Promise((Ge,$e)=>{var ct=lt=>{try{pt(Le.next(lt))}catch(yt){$e(yt)}},Pt=lt=>{try{pt(Le.throw(lt))}catch(yt){$e(yt)}},pt=lt=>lt.done?Ge(lt.value):Promise.resolve(lt.value).then(ct,Pt);pt((Le=Le.apply(se,ue)).next())});function ge({user:se,dispatch:ue}){var Le,Ge,$e,ct,Pt,pt,lt,yt,Qt;const[nn,Fn]=(0,ae.useState)(1),[bn,Kn]=(0,ae.useState)(100),[Hn,we]=(0,ae.useState)([]),[Me,je]=(0,ae.useState)(!1),[bt,Ie]=(0,ae.useState)(!1),[ht,de]=(0,ae.useState)(""),[Ye,xt]=(0,ae.useState)(""),[rn,_t]=(0,ae.useState)("");let{itemname:Cn}=(0,y.useParams)();const[Nn,$t]=(0,ae.useState)("");(0,ae.useEffect)(()=>{ue({type:"globalSetting/headerToggle",payload:!1}),nn&&Wn("")},[nn]);function Wn(Xt){return oe(this,null,function*(){var qt,gn;const Dt=yield(0,Re.ZP)("/api/hpc_courses.json",{method:"get",params:{page:nn,per_page:bn,container_type:window.location.pathname.split("/")[1]}});if(Dt){let Yn=Dt.data.hpc_courses.length;if(we(Dt.data.hpc_courses),_t(Dt.data.file_url),xt(""),!Yn)return;if(Nn)if(Xt==="delete"){if(Yn===0){Ie(!1);return}de(Dt.data.hpc_courses[0]),Ie(!0),$t(Dt.data.hpc_courses[0].id)}else Xt==="add"?(de(Dt.data.hpc_courses[Yn-1]),Ie(!0),$t(Dt.data.hpc_courses[Yn-1].id)):(de(Dt.data.hpc_courses.filter(qn=>qn.id===Nn)[0]),Ie(!0),$t(Nn));else if(Cn){let qn=0;(gn=(qt=Dt==null?void 0:Dt.data)==null?void 0:qt.hpc_courses)==null||gn.map((sa,ha)=>{var On;(Cn==null?void 0:Cn.toLocaleLowerCase())===((On=sa==null?void 0:sa.name)==null?void 0:On.toLocaleLowerCase())&&(qn=ha)}),de(Dt.data.hpc_courses[qn]),Ie(!0),$t(Dt.data.hpc_courses[qn].id),(Cn==null?void 0:Cn.toLocaleLowerCase())==="resources"&&(de(Dt.data.hpc_courses.filter(sa=>sa.id===15)[0]),Ie(!0),$t(15))}else de(Dt.data.hpc_courses[0]),Ie(!0),$t(Dt.data.hpc_courses[0].id)}})}function Vn(Xt){je(!1),Ie(!0),de(Xt),$t(Xt.id)}function kn(Xt){xt(Xt),je(!0),Ie(!1)}function Zn(){xt(""),je(!0),Ie(!1)}const An={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(Xt){const{status:qt}=Xt.file;qt==="done"?(Ze.ZP.success(`${Xt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Wn("")):qt==="error"&&Ze.ZP.error(`${Xt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Xt=>{const qt=Xt.size/1024/1024<150;return qt||Ze.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),qt}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${a.Z.IMG_SERVER+`/${rn}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${rn}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Hn&&Hn.map((Xt,qt)=>ae.createElement("p",{key:qt,onClick:()=>Vn(Xt),className:Nn===Xt.id?"menuitemselect":"menuitem task-hide"},Xt.name)),((Le=se==null?void 0:se.userInfo)==null?void 0:Le.user_id)===299635||((Ge=se==null?void 0:se.userInfo)==null?void 0:Ge.user_id)===301458||($e=se==null?void 0:se.userInfo)!=null&&$e.admin||(ct=se==null?void 0:se.userInfo)!=null&&ct.business?ae.createElement("p",{onClick:()=>Zn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},Me?ae.createElement(Ve,{UpdateItem:Ye,setIscreate:je,init:Wn}):null,bt?ae.createElement(st,{UserInfo:se==null?void 0:se.userInfo,setSee:Ie,userId:(Pt=se==null?void 0:se.userInfo)==null?void 0:Pt.user_id,ItemUpdate:kn,CourseItem:ht,init:Wn}):null)),((pt=se==null?void 0:se.userInfo)==null?void 0:pt.user_id)===299635||((lt=se==null?void 0:se.userInfo)==null?void 0:lt.user_id)===301458||(yt=se==null?void 0:se.userInfo)!=null&&yt.admin||(Qt=se==null?void 0:se.userInfo)!=null&&Qt.business?ae.createElement(te.default,ne({},An),ae.createElement(ye.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var re=(0,y.connect)(({user:se})=>({user:se}))(ge)},56762:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return ke}});var ae=ie(59301);function ke(){const[,Ze]=ae.useReducer(He=>He+1,0);return Ze}},93948:function(Fe,gt,ie){"use strict";ie.d(gt,{Z:function(){return On}});var ae=ie(59301),ke=ie(29679),Ze=ie(40001),He=ie(19248),ye=ie(99267),Re=ie(92310),Se=ie.n(Re),et=ie(2738),Ve=ie(36355),Ne=ie(54476),rt=ie(33885),_e=ie(75931),st={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var be=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ue=Date.now(),tt=!1;be.current.forEach(function(vt){if(vt){tt=!0;var Ft=vt.style;Ft.transitionDuration=".3s, .3s, .3s, .06s",De.current&&Ue-De.current<100&&(Ft.transitionDuration="0s, 0s")}}),tt&&(De.current=Date.now())}),be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(be){var De=(0,rt.Z)((0,rt.Z)({},st),be),Ue=De.className,tt=De.percent,vt=De.prefixCls,Ft=De.strokeColor,ft=De.strokeLinecap,wt=De.strokeWidth,kt=De.style,Tt=De.trailColor,It=De.trailWidth,dn=De.transition,cn=(0,_e.Z)(De,a);delete cn.gapPosition;var Sn=Array.isArray(tt)?tt:[tt],Yt=Array.isArray(Ft)?Ft:[Ft],jt=te(),Bn=wt/2,Pn=100-wt/2,hn="M ".concat(ft==="round"?Bn:0,",").concat(Bn,`
L `).concat(ft==="round"?Pn:100,",").concat(Bn),Ut="0 0 100 ".concat(wt),Mn=0;return ae.createElement("svg",(0,Ne.Z)({className:Se()("".concat(vt,"-line"),Ue),viewBox:Ut,preserveAspectRatio:"none",style:kt},cn),ae.createElement("path",{className:"".concat(vt,"-line-trail"),d:hn,strokeLinecap:ft,stroke:Tt,strokeWidth:It||wt,fillOpacity:"0"}),Sn.map(function(Un,$n){var zn=1;switch(ft){case"round":zn=1-wt/100;break;case"square":zn=1-wt/2/100;break;default:zn=1;break}var ea={strokeDasharray:"".concat(Un*zn,"px, 100px"),strokeDashoffset:"-".concat(Mn,"px"),transition:dn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},le=Yt[$n]||Yt[Yt.length-1];return Mn+=Un,ae.createElement("path",{key:$n,className:"".concat(vt,"-line-path"),d:hn,strokeLinecap:ft,stroke:le,strokeWidth:wt,fillOpacity:"0",ref:function(ce){jt[$n]=ce},style:ea})}))},E=y,b=ie(76190),x=ie(42978),z=ie(47273),ee=0,ne=(0,z.Z)();function oe(){var he;return ne?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var be=ae.useState(),De=(0,x.Z)(be,2),Ue=De[0],tt=De[1];return ae.useEffect(function(){tt("rc_progress_".concat(oe()))},[]),he||Ue},re=function(be){var De=be.bg,Ue=be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},Ue)};function se(he,be){return Object.keys(he).map(function(De){var Ue=parseFloat(De),tt="".concat(Math.floor(Ue*be),"%");return"".concat(he[De]," ").concat(tt)})}var ue=ae.forwardRef(function(he,be){var De=he.prefixCls,Ue=he.color,tt=he.gradientId,vt=he.radius,Ft=he.style,ft=he.ptg,wt=he.strokeLinecap,kt=he.strokeWidth,Tt=he.size,It=he.gapDegree,dn=Ue&&(0,b.Z)(Ue)==="object",cn=dn?"#FFF":void 0,Sn=Tt/2,Yt=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:vt,cx:Sn,cy:Sn,stroke:cn,strokeLinecap:wt,strokeWidth:kt,opacity:ft===0?0:1,style:Ft,ref:be});if(!dn)return Yt;var jt="".concat(tt,"-conic"),Bn=It?"".concat(180+It/2,"deg"):"0deg",Pn=se(Ue,(360-It)/360),hn=se(Ue,1),Ut="conic-gradient(from ".concat(Bn,", ").concat(Pn.join(", "),")"),Mn="linear-gradient(to ".concat(It?"bottom":"top",", ").concat(hn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:jt},Yt),ae.createElement("foreignObject",{x:0,y:0,width:Tt,height:Tt,mask:"url(#".concat(jt,")")},ae.createElement(re,{bg:Mn},ae.createElement(re,{bg:Ut}))))}),Le=ue,Ge=100,$e=function(be,De,Ue,tt,vt,Ft,ft,wt,kt,Tt){var It=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,dn=Ue/100*360*((360-Ft)/360),cn=Ft===0?0:{bottom:0,top:180,left:90,right:-90}[ft],Sn=(100-tt)/100*De;kt==="round"&&tt!==100&&(Sn+=Tt/2,Sn>=De&&(Sn=De-.01));var Yt=Ge/2;return{stroke:typeof wt=="string"?wt:void 0,strokeDasharray:"".concat(De,"px ").concat(be),strokeDashoffset:Sn+It,transform:"rotate(".concat(vt+dn+cn,"deg)"),transformOrigin:"".concat(Yt,"px ").concat(Yt,"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}},ct=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Pt(he){var be=he!=null?he:[];return Array.isArray(be)?be:[be]}var pt=function(be){var De=(0,rt.Z)((0,rt.Z)({},st),be),Ue=De.id,tt=De.prefixCls,vt=De.steps,Ft=De.strokeWidth,ft=De.trailWidth,wt=De.gapDegree,kt=wt===void 0?0:wt,Tt=De.gapPosition,It=De.trailColor,dn=De.strokeLinecap,cn=De.style,Sn=De.className,Yt=De.strokeColor,jt=De.percent,Bn=(0,_e.Z)(De,ct),Pn=Ge/2,hn=ge(Ue),Ut="".concat(hn,"-gradient"),Mn=Pn-Ft/2,Un=Math.PI*2*Mn,$n=kt>0?90+kt/2:-90,zn=Un*((360-kt)/360),ea=(0,b.Z)(vt)==="object"?vt:{count:vt,space:2},le=ea.count,Pe=ea.space,ce=Pt(jt),Ae=Pt(Yt),Je=Ae.find(function(fn){return fn&&(0,b.Z)(fn)==="object"}),at=Je&&(0,b.Z)(Je)==="object",Gt=at?"butt":dn,Bt=$e(Un,zn,0,100,$n,kt,Tt,It,Gt,Ft),it=te(),Jt=function(){var Oe=0;return ce.map(function(Et,xn){var Ln=Ae[xn]||Ae[Ae.length-1],mn=$e(Un,zn,Oe,Et,$n,kt,Tt,Ln,Gt,Ft);return Oe+=Et,ae.createElement(Le,{key:xn,color:Ln,ptg:Et,radius:Mn,prefixCls:tt,gradientId:Ut,style:mn,strokeLinecap:Gt,strokeWidth:Ft,gapDegree:kt,ref:function(ve){it[xn]=ve},size:Ge})}).reverse()},jn=function(){var Oe=Math.round(le*(ce[0]/100)),Et=100/le,xn=0;return new Array(le).fill(null).map(function(Ln,mn){var me=mn<=Oe-1?Ae[0]:It,ve=me&&(0,b.Z)(me)==="object"?"url(#".concat(Ut,")"):void 0,pe=$e(Un,zn,xn,Et,$n,kt,Tt,me,"butt",Ft,Pe);return xn+=(zn-pe.strokeDashoffset+Pe)*100/zn,ae.createElement("circle",{key:mn,className:"".concat(tt,"-circle-path"),r:Mn,cx:Pn,cy:Pn,stroke:ve,strokeWidth:Ft,opacity:1,style:pe,ref:function(ze){it[mn]=ze}})})};return ae.createElement("svg",(0,Ne.Z)({className:Se()("".concat(tt,"-circle"),Sn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:cn,id:Ue,role:"presentation"},Bn),!le&&ae.createElement("circle",{className:"".concat(tt,"-circle-trail"),r:Mn,cx:Pn,cy:Pn,stroke:It,strokeLinecap:Gt,strokeWidth:ft||Ft,style:Bt}),le?jn():Jt())},lt=pt,yt={Line:E,Circle:lt},Qt=ie(6848),nn=ie(30071);function Fn(he){return!he||he<0?0:he>100?100:he}function bn(he){let{success:be,successPercent:De}=he,Ue=De;return be&&"progress"in be&&(Ue=be.progress),be&&"percent"in be&&(Ue=be.percent),Ue}const Kn=he=>{let{percent:be,success:De,successPercent:Ue}=he;const tt=Fn(bn({success:De,successPercent:Ue}));return[tt,Fn(Fn(be)-tt)]},Hn=he=>{let{success:be={},strokeColor:De}=he;const{strokeColor:Ue}=be;return[Ue||nn.presetPrimaryColors.green,De||null]},we=(he,be,De)=>{var Ue,tt,vt,Ft;let ft=-1,wt=-1;if(be==="step"){const kt=De.steps,Tt=De.strokeWidth;typeof he=="string"||typeof he=="undefined"?(ft=he==="small"?2:14,wt=Tt!=null?Tt:8):typeof he=="number"?[ft,wt]=[he,he]:[ft=14,wt=8]=he,ft*=kt}else if(be==="line"){const kt=De==null?void 0:De.strokeWidth;typeof he=="string"||typeof he=="undefined"?wt=kt||(he==="small"?6:8):typeof he=="number"?[ft,wt]=[he,he]:[ft=-1,wt=8]=he}else(be==="circle"||be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[ft,wt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[ft,wt]=[he,he]:(ft=(tt=(Ue=he[0])!==null&&Ue!==void 0?Ue:he[1])!==null&&tt!==void 0?tt:120,wt=(Ft=(vt=he[0])!==null&&vt!==void 0?vt:he[1])!==null&&Ft!==void 0?Ft:120));return[ft,wt]},Me=3,je=he=>Me/he*100;var Ie=he=>{const{prefixCls:be,trailColor:De=null,strokeLinecap:Ue="round",gapPosition:tt,gapDegree:vt,width:Ft=120,type:ft,children:wt,success:kt,size:Tt=Ft}=he,[It,dn]=we(Tt,"circle");let{strokeWidth:cn}=he;cn===void 0&&(cn=Math.max(je(It),6));const Sn={width:It,height:dn,fontSize:It*.15+6},Yt=ae.useMemo(()=>{if(vt||vt===0)return vt;if(ft==="dashboard")return 75},[vt,ft]),jt=tt||ft==="dashboard"&&"bottom"||void 0,Bn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",Pn=Hn({success:kt,strokeColor:he.strokeColor}),hn=Se()(`${be}-inner`,{[`${be}-circle-gradient`]:Bn}),Ut=ae.createElement(lt,{percent:Kn(he),strokeWidth:cn,trailWidth:cn,strokeColor:Pn,strokeLinecap:Ue,trailColor:De,prefixCls:be,gapDegree:Yt,gapPosition:jt});return ae.createElement("div",{className:hn,style:Sn},It<=20?ae.createElement(Qt.Z,{title:wt},ae.createElement("span",null,Ut)):ae.createElement(ae.Fragment,null,Ut,wt))},ht=function(he,be){var De={};for(var Ue in he)Object.prototype.hasOwnProperty.call(he,Ue)&&be.indexOf(Ue)<0&&(De[Ue]=he[Ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(he);tt<Ue.length;tt++)be.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ue[tt])&&(De[Ue[tt]]=he[Ue[tt]]);return De};const de=he=>{let be=[];return Object.keys(he).forEach(De=>{const Ue=parseFloat(De.replace(/%/g,""));isNaN(Ue)||be.push({key:Ue,value:he[De]})}),be=be.sort((De,Ue)=>De.key-Ue.key),be.map(De=>{let{key:Ue,value:tt}=De;return`${tt} ${Ue}%`}).join(", ")},Ye=(he,be)=>{const{from:De=nn.presetPrimaryColors.blue,to:Ue=nn.presetPrimaryColors.blue,direction:tt=be==="rtl"?"to left":"to right"}=he,vt=ht(he,["from","to","direction"]);if(Object.keys(vt).length!==0){const Ft=de(vt);return{backgroundImage:`linear-gradient(${tt}, ${Ft})`}}return{backgroundImage:`linear-gradient(${tt}, ${De}, ${Ue})`}};var rn=he=>{const{prefixCls:be,direction:De,percent:Ue,size:tt,strokeWidth:vt,strokeColor:Ft,strokeLinecap:ft="round",children:wt,trailColor:kt=null,success:Tt}=he,It=Ft&&typeof Ft!="string"?Ye(Ft,De):{backgroundColor:Ft},dn=ft==="square"||ft==="butt"?0:void 0,cn={backgroundColor:kt||void 0,borderRadius:dn},Sn=tt!=null?tt:[-1,vt||(tt==="small"?6:8)],[Yt,jt]=we(Sn,"line",{strokeWidth:vt}),Bn=Object.assign({width:`${Fn(Ue)}%`,height:jt,borderRadius:dn},It),Pn=bn(he),hn={width:`${Fn(Pn)}%`,height:jt,borderRadius:dn,backgroundColor:Tt==null?void 0:Tt.strokeColor},Ut={width:Yt<0?"100%":Yt,height:jt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:Ut},ae.createElement("div",{className:`${be}-inner`,style:cn},ae.createElement("div",{className:`${be}-bg`,style:Bn}),Pn!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:hn}):null)),wt)},Cn=he=>{const{size:be,steps:De,percent:Ue=0,strokeWidth:tt=8,strokeColor:vt,trailColor:Ft=null,prefixCls:ft,children:wt}=he,kt=Math.round(De*(Ue/100)),Tt=be==="small"?2:14,It=be!=null?be:[Tt,tt],[dn,cn]=we(It,"step",{steps:De,strokeWidth:tt}),Sn=dn/De,Yt=new Array(De);for(let jt=0;jt<De;jt++){const Bn=Array.isArray(vt)?vt[jt]:vt;Yt[jt]=ae.createElement("div",{key:jt,className:Se()(`${ft}-steps-item`,{[`${ft}-steps-item-active`]:jt<=kt-1}),style:{backgroundColor:jt<=kt-1?Bn:Ft,width:Sn,height:cn}})}return ae.createElement("div",{className:`${ft}-steps-outer`},Yt,wt)},Nn=ie(36237),$t=ie(17313),Wn=ie(83116),Vn=ie(37613);const kn=he=>{const be=he?"100%":"-100%";return new Nn.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Zn=he=>{const{componentCls:be,iconCls:De}=he;return{[be]:Object.assign(Object.assign({},(0,$t.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${be}-outer`]:{display:"inline-block",width:"100%"},[`&${be}-show-info`]:{[`${be}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.defaultColor}},[`${be}-success-bg, ${be}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:he.fontSize}},[`&${be}-status-active`]:{[`${be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:kn(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:kn(!0)}},[`&${be}-status-exception`]:{[`${be}-bg`]:{backgroundColor:he.colorError},[`${be}-text`]:{color:he.colorError}},[`&${be}-status-exception ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.colorError}},[`&${be}-status-success`]:{[`${be}-bg`]:{backgroundColor:he.colorSuccess},[`${be}-text`]:{color:he.colorSuccess}},[`&${be}-status-success ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.colorSuccess}}})}},An=he=>{const{componentCls:be,iconCls:De}=he;return{[be]:{[`${be}-circle-trail`]:{stroke:he.remainingColor},[`&${be}-circle ${be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${be}-circle ${be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${be}-circle&-status-exception`]:{[`${be}-text`]:{color:he.colorError}},[`${be}-circle&-status-success`]:{[`${be}-text`]:{color:he.colorSuccess}}},[`${be}-inline-circle`]:{lineHeight:1,[`${be}-inner`]:{verticalAlign:"bottom"}}}},Xt=he=>{const{componentCls:be}=he;return{[be]:{[`${be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},qt=he=>{const{componentCls:be,iconCls:De}=he;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${De}`]:{fontSize:he.fontSizeSM}}}};var gn=(0,Wn.Z)("Progress",he=>{const be=he.marginXXS/2,De=(0,Vn.TS)(he,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[Zn(De),An(De),Xt(De),qt(De)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Dt=function(he,be){var De={};for(var Ue in he)Object.prototype.hasOwnProperty.call(he,Ue)&&be.indexOf(Ue)<0&&(De[Ue]=he[Ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(he);tt<Ue.length;tt++)be.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ue[tt])&&(De[Ue[tt]]=he[Ue[tt]]);return De};const Yn=null,qn=["normal","exception","active","success"];var ha=ae.forwardRef((he,be)=>{const{prefixCls:De,className:Ue,rootClassName:tt,steps:vt,strokeColor:Ft,percent:ft=0,size:wt="default",showInfo:kt=!0,type:Tt="line",status:It,format:dn,style:cn}=he,Sn=Dt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Yt=ae.useMemo(()=>{var ce,Ae;const Je=bn(he);return parseInt(Je!==void 0?(ce=Je!=null?Je:0)===null||ce===void 0?void 0:ce.toString():(Ae=ft!=null?ft:0)===null||Ae===void 0?void 0:Ae.toString(),10)},[ft,he.success,he.successPercent]),jt=ae.useMemo(()=>!qn.includes(It)&&Yt>=100?"success":It||"normal",[It,Yt]),{getPrefixCls:Bn,direction:Pn,progress:hn}=ae.useContext(Ve.E_),Ut=Bn("progress",De),[Mn,Un]=gn(Ut),$n=ae.useMemo(()=>{if(!kt)return null;const ce=bn(he);let Ae;const Je=dn||(Gt=>`${Gt}%`),at=Tt==="line";return dn||jt!=="exception"&&jt!=="success"?Ae=Je(Fn(ft),Fn(ce)):jt==="exception"?Ae=at?ae.createElement(He.Z,null):ae.createElement(ye.Z,null):jt==="success"&&(Ae=at?ae.createElement(ke.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${Ut}-text`,title:typeof Ae=="string"?Ae:void 0},Ae)},[kt,ft,Yt,jt,Tt,Ut,dn]),zn=Array.isArray(Ft)?Ft[0]:Ft,ea=typeof Ft=="string"||Array.isArray(Ft)?Ft:void 0;let le;Tt==="line"?le=vt?ae.createElement(Cn,Object.assign({},he,{strokeColor:ea,prefixCls:Ut,steps:vt}),$n):ae.createElement(rn,Object.assign({},he,{strokeColor:zn,prefixCls:Ut,direction:Pn}),$n):(Tt==="circle"||Tt==="dashboard")&&(le=ae.createElement(Ie,Object.assign({},he,{strokeColor:zn,prefixCls:Ut,progressStatus:jt}),$n));const Pe=Se()(Ut,`${Ut}-status-${jt}`,`${Ut}-${Tt==="dashboard"&&"circle"||vt&&"steps"||Tt}`,{[`${Ut}-inline-circle`]:Tt==="circle"&&we(wt,"circle")[0]<=20,[`${Ut}-show-info`]:kt,[`${Ut}-${wt}`]:typeof wt=="string",[`${Ut}-rtl`]:Pn==="rtl"},hn==null?void 0:hn.className,Ue,tt,Un);return Mn(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),cn),className:Pe,role:"progressbar","aria-valuenow":Yt},(0,et.Z)(Sn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),le))}),On=ha},54580:function(Fe,gt,ie){"use strict";ie.d(gt,{default:function(){return mn}});var ae=ie(59301),ke=ie(94480),Ze=ie(92310),He=ie.n(Ze),ye=ie(54476),Re=ie(67732),Se=ie(83652),et=ie(42403),Ve=ie(158),Ne=ie(20068),rt=ie(75931),_e=ie(75044),st=ie(76190),te=ie(3202),a=ie(26112);function y(me,ve){var pe="cannot ".concat(me.method," ").concat(me.action," ").concat(ve.status,"'"),Be=new Error(pe);return Be.status=ve.status,Be.method=me.method,Be.url=me.action,Be}function E(me){var ve=me.responseText||me.response;if(!ve)return ve;try{return JSON.parse(ve)}catch(pe){return ve}}function b(me){var ve=new XMLHttpRequest;me.onProgress&&ve.upload&&(ve.upload.onprogress=function(Te){Te.total>0&&(Te.percent=Te.loaded/Te.total*100),me.onProgress(Te)});var pe=new FormData;me.data&&Object.keys(me.data).forEach(function(ze){var Te=me.data[ze];if(Array.isArray(Te)){Te.forEach(function(xe){pe.append("".concat(ze,"[]"),xe)});return}pe.append(ze,Te)}),me.file instanceof Blob?pe.append(me.filename,me.file,me.file.name):pe.append(me.filename,me.file),ve.onerror=function(Te){me.onError(Te)},ve.onload=function(){return ve.status<200||ve.status>=300?me.onError(y(me,ve),E(ve)):me.onSuccess(E(ve),ve)},ve.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in ve&&(ve.withCredentials=!0);var Be=me.headers||{};return Be["X-Requested-With"]!==null&&ve.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Be).forEach(function(ze){Be[ze]!==null&&ve.setRequestHeader(ze,Be[ze])}),ve.send(pe),{abort:function(){ve.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=ie(48736),oe=function(me,ve){if(me&&ve){var pe=Array.isArray(ve)?ve:ve.split(","),Be=me.name||"",ze=me.type||"",Te=ze.replace(/\/.*$/,"");return pe.some(function(xe){var Ee=xe.trim();if(/^\*(\/\*)?$/.test(xe))return!0;if(Ee.charAt(0)==="."){var dt=Be.toLowerCase(),fe=Ee.toLowerCase(),mt=[fe];return(fe===".jpg"||fe===".jpeg")&&(mt=[".jpg",".jpeg"]),mt.some(function(Ct){return dt.endsWith(Ct)})}return/\/\*$/.test(Ee)?Te===Ee.replace(/\/.*$/,""):ze===Ee?!0:/^\w+$/.test(Ee)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ee,"'.Skip for check.")),!0):!1})}return!0};function ge(me,ve){var pe=me.createReader(),Be=[];function ze(){pe.readEntries(function(Te){var xe=Array.prototype.slice.apply(Te);Be=Be.concat(xe);var Ee=!xe.length;Ee?ve(Be):ze()})}ze()}var re=function(ve,pe,Be){var ze=function Te(xe,Ee){xe&&(xe.path=Ee||"",xe.isFile?xe.file(function(dt){Be(dt)&&(xe.fullPath&&!dt.webkitRelativePath&&(Object.defineProperties(dt,{webkitRelativePath:{writable:!0}}),dt.webkitRelativePath=xe.fullPath.replace(/^\//,""),Object.defineProperties(dt,{webkitRelativePath:{writable:!1}})),pe([dt]))}):xe.isDirectory&&ge(xe,function(dt){dt.forEach(function(fe){Te(fe,"".concat(Ee).concat(xe.name,"/"))})}))};ve.forEach(function(Te){ze(Te.webkitGetAsEntry())})},se=re,ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Le=function(me){(0,et.Z)(pe,me);var ve=(0,Ve.Z)(pe);function pe(){var Be;(0,Re.Z)(this,pe);for(var ze=arguments.length,Te=new Array(ze),xe=0;xe<ze;xe++)Te[xe]=arguments[xe];return Be=ve.call.apply(ve,[this].concat(Te)),Be.state={uid:ee()},Be.reqs={},Be.fileInput=void 0,Be._isMounted=void 0,Be.onChange=function(Ee){var dt=Be.props,fe=dt.accept,mt=dt.directory,Ct=Ee.target.files,Nt=(0,ke.Z)(Ct).filter(function(Ht){return!mt||oe(Ht,fe)});Be.uploadFiles(Nt),Be.reset()},Be.onClick=function(Ee){var dt=Be.fileInput;if(dt){var fe=Ee.target,mt=Be.props.onClick;if(fe&&fe.tagName==="BUTTON"){var Ct=dt.parentNode;Ct.focus(),fe.blur()}dt.click(),mt&&mt(Ee)}},Be.onKeyDown=function(Ee){Ee.key==="Enter"&&Be.onClick(Ee)},Be.onFileDrop=function(Ee){var dt=Be.props.multiple;if(Ee.preventDefault(),Ee.type!=="dragover")if(Be.props.directory)se(Array.prototype.slice.call(Ee.dataTransfer.items),Be.uploadFiles,function(mt){return oe(mt,Be.props.accept)});else{var fe=(0,ke.Z)(Ee.dataTransfer.files).filter(function(mt){return oe(mt,Be.props.accept)});dt===!1&&(fe=fe.slice(0,1)),Be.uploadFiles(fe)}},Be.uploadFiles=function(Ee){var dt=(0,ke.Z)(Ee),fe=dt.map(function(mt){return mt.uid=ee(),Be.processFile(mt,dt)});Promise.all(fe).then(function(mt){var Ct=Be.props.onBatchStart;Ct==null||Ct(mt.map(function(Nt){var Ht=Nt.origin,yn=Nt.parsedFile;return{file:Ht,parsedFile:yn}})),mt.filter(function(Nt){return Nt.parsedFile!==null}).forEach(function(Nt){Be.post(Nt)})})},Be.processFile=function(){var Ee=(0,te.Z)((0,_e.Z)().mark(function dt(fe,mt){var Ct,Nt,Ht,yn,Ce,qe,Xe,Qe,At;return(0,_e.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(Ct=Be.props.beforeUpload,Nt=fe,!Ct){St.next=14;break}return St.prev=3,St.next=6,Ct(fe,mt);case 6:Nt=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),Nt=!1;case 12:if(Nt!==!1){St.next=14;break}return St.abrupt("return",{origin:fe,parsedFile:null,action:null,data:null});case 14:if(Ht=Be.props.action,typeof Ht!="function"){St.next=21;break}return St.next=18,Ht(fe);case 18:yn=St.sent,St.next=22;break;case 21:yn=Ht;case 22:if(Ce=Be.props.data,typeof Ce!="function"){St.next=29;break}return St.next=26,Ce(fe);case 26:qe=St.sent,St.next=30;break;case 29:qe=Ce;case 30:return Xe=((0,st.Z)(Nt)==="object"||typeof Nt=="string")&&Nt?Nt:fe,Xe instanceof File?Qe=Xe:Qe=new File([Xe],fe.name,{type:fe.type}),At=Qe,At.uid=fe.uid,St.abrupt("return",{origin:fe,data:qe,parsedFile:At,action:yn});case 35:case"end":return St.stop()}},dt,null,[[3,9]])}));return function(dt,fe){return Ee.apply(this,arguments)}}(),Be.saveFileInput=function(Ee){Be.fileInput=Ee},Be}return(0,Se.Z)(pe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ze){var Te=this,xe=ze.data,Ee=ze.origin,dt=ze.action,fe=ze.parsedFile;if(this._isMounted){var mt=this.props,Ct=mt.onStart,Nt=mt.customRequest,Ht=mt.name,yn=mt.headers,Ce=mt.withCredentials,qe=mt.method,Xe=Ee.uid,Qe=Nt||b,At={action:dt,filename:Ht,data:xe,file:fe,headers:yn,withCredentials:Ce,method:qe||"post",onProgress:function(St){var Wt=Te.props.onProgress;Wt==null||Wt(St,fe)},onSuccess:function(St,Wt){var Kt=Te.props.onSuccess;Kt==null||Kt(St,fe,Wt),delete Te.reqs[Xe]},onError:function(St,Wt){var Kt=Te.props.onError;Kt==null||Kt(St,Wt,fe),delete Te.reqs[Xe]}};Ct(Ee),this.reqs[Xe]=Qe(At)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ze){var Te=this.reqs;if(ze){var xe=ze.uid?ze.uid:ze;Te[xe]&&Te[xe].abort&&Te[xe].abort(),delete Te[xe]}else Object.keys(Te).forEach(function(Ee){Te[Ee]&&Te[Ee].abort&&Te[Ee].abort(),delete Te[Ee]})}},{key:"render",value:function(){var ze=this.props,Te=ze.component,xe=ze.prefixCls,Ee=ze.className,dt=ze.disabled,fe=ze.id,mt=ze.style,Ct=ze.multiple,Nt=ze.accept,Ht=ze.capture,yn=ze.children,Ce=ze.directory,qe=ze.openFileDialogOnClick,Xe=ze.onMouseEnter,Qe=ze.onMouseLeave,At=(0,rt.Z)(ze,ue),zt=He()((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},xe,!0),"".concat(xe,"-disabled"),dt),Ee,Ee)),St=Ce?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Wt=dt?{}:{onClick:qe?this.onClick:function(){},onKeyDown:qe?this.onKeyDown:function(){},onMouseEnter:Xe,onMouseLeave:Qe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Te,(0,ye.Z)({},Wt,{className:zt,role:"button",style:mt}),ae.createElement("input",(0,ye.Z)({},(0,a.Z)(At,{aria:!0,data:!0}),{id:fe,disabled:dt,type:"file",ref:this.saveFileInput,onClick:function(In){return In.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Nt},St,{multiple:Ct,onChange:this.onChange},Ht!=null?{capture:Ht}:{})),yn)}}]),pe}(ae.Component),Ge=Le;function $e(){}var ct=function(me){(0,et.Z)(pe,me);var ve=(0,Ve.Z)(pe);function pe(){var Be;(0,Re.Z)(this,pe);for(var ze=arguments.length,Te=new Array(ze),xe=0;xe<ze;xe++)Te[xe]=arguments[xe];return Be=ve.call.apply(ve,[this].concat(Te)),Be.uploader=void 0,Be.saveUploader=function(Ee){Be.uploader=Ee},Be}return(0,Se.Z)(pe,[{key:"abort",value:function(ze){this.uploader.abort(ze)}},{key:"render",value:function(){return ae.createElement(Ge,(0,ye.Z)({},this.props,{ref:this.saveUploader}))}}]),pe}(ae.Component);ct.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:$e,onError:$e,onSuccess:$e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Pt=ct,pt=Pt,lt=ie(18929),yt=ie(4676),Qt=ie(36355),nn=ie(1684),Fn=ie(9763),bn=ie(31724),Kn={icon:function(ve,pe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pe}},{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:ve}}]}},name:"file",theme:"twotone"},Hn=Kn,we=ie(7657),Me=function(ve,pe){return ae.createElement(we.Z,(0,ye.Z)({},ve,{ref:pe,icon:Hn}))},je=ae.forwardRef(Me),bt=je,Ie=ie(58617),ht={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"},de=ht,Ye=function(ve,pe){return ae.createElement(we.Z,(0,ye.Z)({},ve,{ref:pe,icon:de}))},xt=ae.forwardRef(Ye),rn=xt,_t={icon:function(ve,pe){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:ve}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pe}},{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:pe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pe}},{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:ve}}]}},name:"picture",theme:"twotone"},Cn=_t,Nn=function(ve,pe){return ae.createElement(we.Z,(0,ye.Z)({},ve,{ref:pe,icon:Cn}))},$t=ae.forwardRef(Nn),Wn=$t,Vn=ie(77900),kn=ie(56762),Zn=ie(62892),An=ie(92343),Xt=ie(3113);function qt(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function gn(me,ve){const pe=(0,ke.Z)(ve),Be=pe.findIndex(ze=>{let{uid:Te}=ze;return Te===me.uid});return Be===-1?pe.push(me):pe[Be]=me,pe}function Dt(me,ve){const pe=me.uid!==void 0?"uid":"name";return ve.filter(Be=>Be[pe]===me[pe])[0]}function Yn(me,ve){const pe=me.uid!==void 0?"uid":"name",Be=ve.filter(ze=>ze[pe]!==me[pe]);return Be.length===ve.length?null:Be}const qn=function(){const ve=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Be=ve[ve.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Be)||[""])[0]},sa=me=>me.indexOf("image/")===0,ha=me=>{if(me.type&&!me.thumbUrl)return sa(me.type);const ve=me.thumbUrl||me.url||"",pe=qn(ve);return/^data:image\//.test(ve)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pe)?!0:!(/^data:/.test(ve)||pe)},On=200;function he(me){return new Promise(ve=>{if(!me.type||!sa(me.type)){ve("");return}const pe=document.createElement("canvas");pe.width=On,pe.height=On,pe.style.cssText=`position: fixed; left: 0; top: 0; width: ${On}px; height: ${On}px; z-index: 9999; display: none;`,document.body.appendChild(pe);const Be=pe.getContext("2d"),ze=new Image;if(ze.onload=()=>{const{width:Te,height:xe}=ze;let Ee=On,dt=On,fe=0,mt=0;Te>xe?(dt=xe*(On/Te),mt=-(dt-Ee)/2):(Ee=Te*(On/xe),fe=-(Ee-dt)/2),Be.drawImage(ze,fe,mt,Ee,dt);const Ct=pe.toDataURL();document.body.removeChild(pe),window.URL.revokeObjectURL(ze.src),ve(Ct)},ze.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Te=new FileReader;Te.onload=()=>{Te.result&&(ze.src=Te.result)},Te.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Te=new FileReader;Te.onload=()=>{Te.result&&ve(Te.result)},Te.readAsDataURL(me)}else ze.src=window.URL.createObjectURL(me)})}var be=ie(26227),De=ie(41464),Ue=ie(15277),tt=ie(93948),vt=ie(6848),ft=ae.forwardRef((me,ve)=>{let{prefixCls:pe,className:Be,style:ze,locale:Te,listType:xe,file:Ee,items:dt,progress:fe,iconRender:mt,actionIconRender:Ct,itemRender:Nt,isImgUrl:Ht,showPreviewIcon:yn,showRemoveIcon:Ce,showDownloadIcon:qe,previewIcon:Xe,removeIcon:Qe,downloadIcon:At,onPreview:zt,onDownload:St,onClose:Wt}=me;var Kt,In;const{status:Xn}=Ee,[Rn,la]=ae.useState(Xn);ae.useEffect(()=>{Xn!=="removed"&&la(Xn)},[Xn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const ln=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(ln)}},[]);const oa=mt(Ee);let Dn=ae.createElement("div",{className:`${pe}-icon`},oa);if(xe==="picture"||xe==="picture-card"||xe==="picture-circle")if(Rn==="uploading"||!Ee.thumbUrl&&!Ee.url){const ln=He()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Rn!=="uploading"});Dn=ae.createElement("div",{className:ln},oa)}else{const ln=Ht!=null&&Ht(Ee)?ae.createElement("img",{src:Ee.thumbUrl||Ee.url,alt:Ee.name,className:`${pe}-list-item-image`,crossOrigin:Ee.crossOrigin}):oa,un=He()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Ht&&!Ht(Ee)});Dn=ae.createElement("a",{className:un,onClick:ia=>zt(Ee,ia),href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ln)}const Vt=He()(`${pe}-list-item`,`${pe}-list-item-${Rn}`),ta=typeof Ee.linkProps=="string"?JSON.parse(Ee.linkProps):Ee.linkProps,na=Ce?Ct((typeof Qe=="function"?Qe(Ee):Qe)||ae.createElement(be.Z,null),()=>Wt(Ee),pe,Te.removeFile):null,aa=qe&&Rn==="done"?Ct((typeof At=="function"?At(Ee):At)||ae.createElement(De.Z,null),()=>St(Ee),pe,Te.downloadFile):null,ga=xe!=="picture-card"&&xe!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:He()(`${pe}-list-item-actions`,{picture:xe==="picture"})},aa,na),Tn=He()(`${pe}-list-item-name`),fa=Ee.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Tn,title:Ee.name},ta,{href:Ee.url,onClick:ln=>zt(Ee,ln)}),Ee.name),ga]:[ae.createElement("span",{key:"view",className:Tn,onClick:ln=>zt(Ee,ln),title:Ee.name},Ee.name),ga],Lt={pointerEvents:"none",opacity:.5},Zt=yn?ae.createElement("a",{href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ee.url||Ee.thumbUrl?void 0:Lt,onClick:ln=>zt(Ee,ln),title:Te.previewFile},typeof Xe=="function"?Xe(Ee):Xe||ae.createElement(Ue.Z,null)):null,_n=(xe==="picture-card"||xe==="picture-circle")&&Rn!=="uploading"&&ae.createElement("span",{className:`${pe}-list-item-actions`},Zt,Rn==="done"&&aa,na),{getPrefixCls:sn}=ae.useContext(Qt.E_),ra=sn(),Jn=ae.createElement("div",{className:Vt},Dn,fa,_n,Sa&&ae.createElement(Vn.default,{motionName:`${ra}-fade`,visible:Rn==="uploading",motionDeadline:2e3},ln=>{let{className:un}=ln;const ia="percent"in Ee?ae.createElement(tt.Z,Object.assign({},fe,{type:"line",percent:Ee.percent,"aria-label":Ee["aria-label"],"aria-labelledby":Ee["aria-labelledby"]})):null;return ae.createElement("div",{className:He()(`${pe}-list-item-progress`,un)},ia)})),La=Ee.response&&typeof Ee.response=="string"?Ee.response:((Kt=Ee.error)===null||Kt===void 0?void 0:Kt.statusText)||((In=Ee.error)===null||In===void 0?void 0:In.message)||Te.uploadError,pa=Rn==="error"?ae.createElement(vt.Z,{title:La,getPopupContainer:ln=>ln.parentNode},Jn):Jn;return ae.createElement("div",{className:He()(`${pe}-list-item-container`,Be),style:ze,ref:ve},Nt?Nt(pa,Ee,dt,{download:St.bind(null,Ee),preview:zt.bind(null,Ee),remove:Wt.bind(null,Ee)}):pa)});const wt=(me,ve)=>{const{listType:pe="text",previewFile:Be=he,onPreview:ze,onDownload:Te,onRemove:xe,locale:Ee,iconRender:dt,isImageUrl:fe=ha,prefixCls:mt,items:Ct=[],showPreviewIcon:Nt=!0,showRemoveIcon:Ht=!0,showDownloadIcon:yn=!1,removeIcon:Ce,previewIcon:qe,downloadIcon:Xe,progress:Qe={size:[-1,2],showInfo:!1},appendAction:At,appendActionVisible:zt=!0,itemRender:St,disabled:Wt}=me,Kt=(0,kn.Z)(),[In,Xn]=ae.useState(!1);ae.useEffect(()=>{pe!=="picture"&&pe!=="picture-card"&&pe!=="picture-circle"||(Ct||[]).forEach(Lt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Lt.originFileObj instanceof File||Lt.originFileObj instanceof Blob)||Lt.thumbUrl!==void 0||(Lt.thumbUrl="",Be&&Be(Lt.originFileObj).then(Zt=>{Lt.thumbUrl=Zt||"",Kt()}))})},[pe,Ct,Be]),ae.useEffect(()=>{Xn(!0)},[]);const Rn=(Lt,Zt)=>{if(ze)return Zt==null||Zt.preventDefault(),ze(Lt)},la=Lt=>{typeof Te=="function"?Te(Lt):Lt.url&&window.open(Lt.url)},Sa=Lt=>{xe==null||xe(Lt)},Pa=Lt=>{if(dt)return dt(Lt,pe);const Zt=Lt.status==="uploading",_n=fe&&fe(Lt)?ae.createElement(Wn,null):ae.createElement(bt,null);let sn=Zt?ae.createElement(Ie.Z,null):ae.createElement(rn,null);return pe==="picture"?sn=Zt?ae.createElement(Ie.Z,null):_n:(pe==="picture-card"||pe==="picture-circle")&&(sn=Zt?Ee.uploading:_n),sn},oa=(Lt,Zt,_n,sn)=>{const ra={type:"text",size:"small",title:sn,onClick:Jn=>{Zt(),(0,An.l$)(Lt)&&Lt.props.onClick&&Lt.props.onClick(Jn)},className:`${_n}-list-item-action`,disabled:Wt};if((0,An.l$)(Lt)){const Jn=(0,An.Tm)(Lt,Object.assign(Object.assign({},Lt.props),{onClick:()=>{}}));return ae.createElement(Xt.ZP,Object.assign({},ra,{icon:Jn}))}return ae.createElement(Xt.ZP,Object.assign({},ra),ae.createElement("span",null,Lt))};ae.useImperativeHandle(ve,()=>({handlePreview:Rn,handleDownload:la}));const{getPrefixCls:Dn}=ae.useContext(Qt.E_),Vt=Dn("upload",mt),ta=Dn(),na=He()(`${Vt}-list`,`${Vt}-list-${pe}`),aa=(0,ke.Z)(Ct.map(Lt=>({key:Lt.uid,file:Lt})));let Tn={motionDeadline:2e3,motionName:`${Vt}-${pe==="picture-card"||pe==="picture-circle"?"animate-inline":"animate"}`,keys:aa,motionAppear:In};const fa=ae.useMemo(()=>{const Lt=Object.assign({},(0,Zn.Z)(ta));return delete Lt.onAppearEnd,delete Lt.onEnterEnd,delete Lt.onLeaveEnd,Lt},[ta]);return pe!=="picture-card"&&pe!=="picture-circle"&&(Tn=Object.assign(Object.assign({},fa),Tn)),ae.createElement("div",{className:na},ae.createElement(Vn.CSSMotionList,Object.assign({},Tn,{component:!1}),Lt=>{let{key:Zt,file:_n,className:sn,style:ra}=Lt;return ae.createElement(ft,{key:Zt,locale:Ee,prefixCls:Vt,className:sn,style:ra,file:_n,items:Ct,progress:Qe,listType:pe,isImgUrl:fe,showPreviewIcon:Nt,showRemoveIcon:Ht,showDownloadIcon:yn,removeIcon:Ce,previewIcon:qe,downloadIcon:Xe,iconRender:Pa,actionIconRender:oa,itemRender:St,onPreview:Rn,onDownload:la,onClose:Sa})}),At&&ae.createElement(Vn.default,Object.assign({},Tn,{visible:zt,forceRender:!0}),Lt=>{let{className:Zt,style:_n}=Lt;return(0,An.Tm)(At,sn=>({className:He()(sn.className,Zt),style:Object.assign(Object.assign(Object.assign({},_n),{pointerEvents:Zt?"none":void 0}),sn.style)}))}))};var Tt=ae.forwardRef(wt),It=ie(17313),dn=ie(8378),cn=ie(83116),Sn=ie(37613),jt=me=>{const{componentCls:ve,iconCls:pe}=me;return{[`${ve}-wrapper`]:{[`${ve}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[ve]:{padding:`${me.padding}px 0`},[`${ve}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ve}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ve}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${ve}-drag-icon`]:{marginBottom:me.margin,[pe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${ve}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${ve}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${ve}-disabled`]:{cursor:"not-allowed",[`p${ve}-drag-icon ${pe},
p${ve}-text,
p${ve}-hint
`]:{color:me.colorTextDisabled}}}}}},Pn=me=>{const{componentCls:ve,antCls:pe,iconCls:Be,fontSize:ze,lineHeight:Te}=me,xe=`${ve}-list-item`,Ee=`${xe}-actions`,dt=`${xe}-action`,fe=Math.round(ze*Te);return{[`${ve}-wrapper`]:{[`${ve}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:me.lineHeight,[xe]:{position:"relative",height:me.lineHeight*ze,marginTop:me.marginXS,fontSize:ze,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${xe}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Te,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Ee]:{[dt]:{opacity:0},[`${dt}${pe}-btn-sm`]:{height:fe,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${dt}:focus-visible,
&.picture ${dt}
`]:{opacity:1},[Be]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Be}`]:{color:me.colorText}},[`${ve}-icon ${Be}`]:{color:me.colorTextDescription,fontSize:ze},[`${xe}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:ze+me.paddingXS,fontSize:ze,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${xe}:hover ${dt}`]:{opacity:1,color:me.colorText},[`${xe}-error`]:{color:me.colorError,[`${xe}-name, ${ve}-icon ${Be}`]:{color:me.colorError},[Ee]:{[`${Be}, ${Be}:hover`]:{color:me.colorError},[dt]:{opacity:1}}},[`${ve}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},hn=ie(36237),Ut=ie(1950);const Mn=new hn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Un=new hn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var zn=me=>{const{componentCls:ve}=me,pe=`${ve}-animate-inline`;return[{[`${ve}-wrapper`]:{[`${pe}-appear, ${pe}-enter, ${pe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pe}-appear, ${pe}-enter`]:{animationName:Mn},[`${pe}-leave`]:{animationName:Un}}},{[`${ve}-wrapper`]:(0,Ut.J$)(me)},Mn,Un]},ea=ie(30071),le=ie(64993);const Pe=me=>{const{componentCls:ve,iconCls:pe,uploadThumbnailSize:Be,uploadProgressOffset:ze}=me,Te=`${ve}-list`,xe=`${Te}-item`;return{[`${ve}-wrapper`]:{[`
${Te}${Te}-picture,
${Te}${Te}-picture-card,
${Te}${Te}-picture-circle
`]:{[xe]:{position:"relative",height:Be+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${xe}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:Be,height:Be,lineHeight:`${Be+me.paddingSM}px`,textAlign:"center",flex:"none",[pe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${xe}-progress`]:{bottom:ze,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Be+me.paddingXS}},[`${xe}-error`]:{borderColor:me.colorError,[`${xe}-thumbnail ${pe}`]:{[`svg path[fill='${ea.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${ea.blue.primary}']`]:{fill:me.colorError}}},[`${xe}-uploading`]:{borderStyle:"dashed",[`${xe}-name`]:{marginBottom:ze}}},[`${Te}${Te}-picture-circle ${xe}`]:{[`&, &::before, ${xe}-thumbnail`]:{borderRadius:"50%"}}}}},ce=me=>{const{componentCls:ve,iconCls:pe,fontSizeLG:Be,colorTextLightSolid:ze}=me,Te=`${ve}-list`,xe=`${Te}-item`,Ee=me.uploadPicCardSize;return{[`
${ve}-wrapper${ve}-picture-card-wrapper,
${ve}-wrapper${ve}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${ve}${ve}-select`]:{width:Ee,height:Ee,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${ve}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ve}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Te}${Te}-picture-card, ${Te}${Te}-picture-circle`]:{[`${Te}-item-container`]:{display:"inline-block",width:Ee,height:Ee,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[xe]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${xe}:hover`]:{[`&::before, ${xe}-actions`]:{opacity:1}},[`${xe}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{zIndex:10,width:Be,margin:`0 ${me.marginXXS}px`,fontSize:Be,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${xe}-actions, ${xe}-actions:hover`]:{[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{color:new le.C(ze).setAlpha(.65).toRgbString(),"&:hover":{color:ze}}},[`${xe}-thumbnail, ${xe}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${xe}-name`]:{display:"none",textAlign:"center"},[`${xe}-file + ${xe}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${xe}-uploading`]:{[`&${xe}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${pe}-eye, ${pe}-download, ${pe}-delete`]:{display:"none"}},[`${xe}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ve}-wrapper${ve}-picture-circle-wrapper`]:{[`${ve}${ve}-select`]:{borderRadius:"50%"}}}};var Je=me=>{const{componentCls:ve}=me;return{[`${ve}-rtl`]:{direction:"rtl"}}};const at=me=>{const{componentCls:ve,colorTextDisabled:pe}=me;return{[`${ve}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(me)),{[ve]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ve}-select`]:{display:"inline-block"},[`${ve}-disabled`]:{color:pe,cursor:"not-allowed"}})}};var Gt=(0,cn.Z)("Upload",me=>{const{fontSizeHeading3:ve,fontSize:pe,lineHeight:Be,lineWidth:ze,controlHeightLG:Te}=me,xe=Math.round(pe*Be),Ee=(0,Sn.TS)(me,{uploadThumbnailSize:ve*2,uploadProgressOffset:xe/2+ze,uploadPicCardSize:Te*2.55});return[at(Ee),jt(Ee),Pe(Ee),ce(Ee),Pn(Ee),zn(Ee),Je(Ee),(0,dn.Z)(Ee)]},me=>({actionsColor:me.colorTextDescription})),Bt=function(me,ve,pe,Be){function ze(Te){return Te instanceof pe?Te:new pe(function(xe){xe(Te)})}return new(pe||(pe=Promise))(function(Te,xe){function Ee(mt){try{fe(Be.next(mt))}catch(Ct){xe(Ct)}}function dt(mt){try{fe(Be.throw(mt))}catch(Ct){xe(Ct)}}function fe(mt){mt.done?Te(mt.value):ze(mt.value).then(Ee,dt)}fe((Be=Be.apply(me,ve||[])).next())})};const it=`__LIST_IGNORE_${Date.now()}__`,Jt=(me,ve)=>{const{fileList:pe,defaultFileList:Be,onRemove:ze,showUploadList:Te=!0,listType:xe="text",onPreview:Ee,onDownload:dt,onChange:fe,onDrop:mt,previewFile:Ct,disabled:Nt,locale:Ht,iconRender:yn,isImageUrl:Ce,progress:qe,prefixCls:Xe,className:Qe,type:At="select",children:zt,style:St,itemRender:Wt,maxCount:Kt,data:In={},multiple:Xn=!1,action:Rn="",accept:la="",supportServerRender:Sa=!0,rootClassName:Pa}=me,oa=ae.useContext(nn.Z),Dn=Nt!=null?Nt:oa,[Vt,ta]=(0,lt.Z)(Be||[],{value:pe,postState:ut=>ut!=null?ut:[]}),[na,aa]=ae.useState("drop"),ga=ae.useRef(null);ae.useMemo(()=>{const ut=Date.now();(pe||[]).forEach((Ot,en)=>{!Ot.uid&&!Object.isFrozen(Ot)&&(Ot.uid=`__AUTO__${ut}_${en}__`)})},[pe]);const Tn=(ut,Ot,en)=>{let Mt=(0,ke.Z)(Ot),tn=!1;Kt===1?Mt=Mt.slice(-1):Kt&&(tn=Mt.length>Kt,Mt=Mt.slice(0,Kt)),(0,yt.flushSync)(()=>{ta(Mt)});const pn={file:ut,fileList:Mt};en&&(pn.event=en),(!tn||Mt.some(da=>da.uid===ut.uid))&&(0,yt.flushSync)(()=>{fe==null||fe(pn)})},fa=(ut,Ot)=>Bt(void 0,void 0,void 0,function*(){const{beforeUpload:en,transformFile:Mt}=me;let tn=ut;if(en){const pn=yield en(ut,Ot);if(pn===!1)return!1;if(delete ut[it],pn===it)return Object.defineProperty(ut,it,{value:!0,configurable:!0}),!1;typeof pn=="object"&&pn&&(tn=pn)}return Mt&&(tn=yield Mt(tn)),tn}),Lt=ut=>{const Ot=ut.filter(tn=>!tn.file[it]);if(!Ot.length)return;const en=Ot.map(tn=>qt(tn.file));let Mt=(0,ke.Z)(Vt);en.forEach(tn=>{Mt=gn(tn,Mt)}),en.forEach((tn,pn)=>{let da=tn;if(Ot[pn].parsedFile)tn.status="uploading";else{const{originFileObj:on}=tn;let ca;try{ca=new File([on],on.name,{type:on.type})}catch(ba){ca=new Blob([on],{type:on.type}),ca.name=on.name,ca.lastModifiedDate=new Date,ca.lastModified=new Date().getTime()}ca.uid=tn.uid,da=ca}Tn(da,Mt)})},Zt=(ut,Ot,en)=>{try{typeof ut=="string"&&(ut=JSON.parse(ut))}catch(pn){}if(!Dt(Ot,Vt))return;const Mt=qt(Ot);Mt.status="done",Mt.percent=100,Mt.response=ut,Mt.xhr=en;const tn=gn(Mt,Vt);Tn(Mt,tn)},_n=(ut,Ot)=>{if(!Dt(Ot,Vt))return;const en=qt(Ot);en.status="uploading",en.percent=ut.percent;const Mt=gn(en,Vt);Tn(en,Mt,ut)},sn=(ut,Ot,en)=>{if(!Dt(en,Vt))return;const Mt=qt(en);Mt.error=ut,Mt.response=Ot,Mt.status="error";const tn=gn(Mt,Vt);Tn(Mt,tn)},ra=ut=>{let Ot;Promise.resolve(typeof ze=="function"?ze(ut):ze).then(en=>{var Mt;if(en===!1)return;const tn=Yn(ut,Vt);tn&&(Ot=Object.assign(Object.assign({},ut),{status:"removed"}),Vt==null||Vt.forEach(pn=>{const da=Ot.uid!==void 0?"uid":"name";pn[da]===Ot[da]&&!Object.isFrozen(pn)&&(pn.status="removed")}),(Mt=ga.current)===null||Mt===void 0||Mt.abort(Ot),Tn(Ot,tn))})},Jn=ut=>{aa(ut.type),ut.type==="drop"&&(mt==null||mt(ut))};ae.useImperativeHandle(ve,()=>({onBatchStart:Lt,onSuccess:Zt,onProgress:_n,onError:sn,fileList:Vt,upload:ga.current}));const{getPrefixCls:La,direction:pa,upload:ln}=ae.useContext(Qt.E_),un=La("upload",Xe),ia=Object.assign(Object.assign({onBatchStart:Lt,onError:sn,onProgress:_n,onSuccess:Zt},me),{data:In,multiple:Xn,action:Rn,accept:la,supportServerRender:Sa,prefixCls:un,disabled:Dn,beforeUpload:fa,onChange:void 0});delete ia.className,delete ia.style,(!zt||Dn)&&delete ia.id;const[ua,va]=Gt(un),[ya]=(0,Fn.Z)("Upload",bn.Z.Upload),{showRemoveIcon:wa,showPreviewIcon:ot,showDownloadIcon:We,removeIcon:Ke,previewIcon:nt,downloadIcon:Rt}=typeof Te=="boolean"?{}:Te,an=(ut,Ot)=>Te?ae.createElement(Tt,{prefixCls:un,listType:xe,items:Vt,previewFile:Ct,onPreview:Ee,onDownload:dt,onRemove:ra,showRemoveIcon:!Dn&&wa,showPreviewIcon:ot,showDownloadIcon:We,removeIcon:Ke,previewIcon:nt,downloadIcon:Rt,iconRender:yn,locale:Object.assign(Object.assign({},ya),Ht),isImageUrl:Ce,progress:qe,appendAction:ut,appendActionVisible:Ot,itemRender:Wt,disabled:Dn}):ut,wn=He()(`${un}-wrapper`,Qe,Pa,va,ln==null?void 0:ln.className,{[`${un}-rtl`]:pa==="rtl",[`${un}-picture-card-wrapper`]:xe==="picture-card",[`${un}-picture-circle-wrapper`]:xe==="picture-circle"}),vn=Object.assign(Object.assign({},ln==null?void 0:ln.style),St);if(At==="drag"){const ut=He()(va,un,`${un}-drag`,{[`${un}-drag-uploading`]:Vt.some(Ot=>Ot.status==="uploading"),[`${un}-drag-hover`]:na==="dragover",[`${un}-disabled`]:Dn,[`${un}-rtl`]:pa==="rtl"});return ua(ae.createElement("span",{className:wn},ae.createElement("div",{className:ut,style:vn,onDrop:Jn,onDragOver:Jn,onDragLeave:Jn},ae.createElement(pt,Object.assign({},ia,{ref:ga,className:`${un}-btn`}),ae.createElement("div",{className:`${un}-drag-container`},zt))),an()))}const En=He()(un,`${un}-select`,{[`${un}-disabled`]:Dn}),Qn=(ut=>ae.createElement("div",{className:En,style:ut},ae.createElement(pt,Object.assign({},ia,{ref:ga}))))(zt?void 0:{display:"none"});return ua(xe==="picture-card"||xe==="picture-circle"?ae.createElement("span",{className:wn},an(Qn,!!zt)):ae.createElement("span",{className:wn},Qn,an()))};var fn=ae.forwardRef(Jt),Oe=function(me,ve){var pe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&ve.indexOf(Be)<0&&(pe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(me);ze<Be.length;ze++)ve.indexOf(Be[ze])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[ze])&&(pe[Be[ze]]=me[Be[ze]]);return pe},xn=ae.forwardRef((me,ve)=>{var{style:pe,height:Be}=me,ze=Oe(me,["style","height"]);return ae.createElement(fn,Object.assign({ref:ve},ze,{type:"drag",style:Object.assign(Object.assign({},pe),{height:Be})}))});const Ln=fn;Ln.Dragger=xn,Ln.LIST_IGNORE=it;var mn=Ln}}]);