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.
121 lines
349 KiB
121 lines
349 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6904],{26227:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return Ae}});var ae=ie(92413),De=ie(59301),Ke={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"},Ge=Ke,ve=ie(7657),we=function(je,ot){return De.createElement(ve.Z,(0,ae.Z)({},je,{ref:ot,icon:Ge}))},me=De.forwardRef(we),Ae=me},41464:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return Ae}});var ae=ie(92413),De=ie(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ge=Ke,ve=ie(7657),we=function(je,ot){return De.createElement(ve.Z,(0,ae.Z)({},je,{ref:ot,icon:Ge}))},me=De.forwardRef(we),Ae=me},61481:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return Ae}});var ae=ie(92413),De=ie(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ge=Ke,ve=ie(7657),we=function(je,ot){return De.createElement(ve.Z,(0,ae.Z)({},je,{ref:ot,icon:Ge}))},me=De.forwardRef(we),Ae=me},11570:function(be,tt){"use strict";tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74949:function(){"use strict"},29277:function(){"use strict";function be(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(be.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(be.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(be.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var tt=[];function ie(ne,a){var y=tt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=tt.pop();return ne===void 0?new go.Point:ne}function De(ne){tt.push(ne)}function Ke(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ge=NaN,Se=NaN;if(oe===0)if(re===0)ne===y&&(ge=ne,Se=a);else{var ue=(x-ee)/re,Oe=x-ue*b;ge=ne,Se=ue*ge+Oe}else if(re===0){var $e=(a-E)/oe,St=a-$e*ne;ge=b,Se=$e*ge+St}else{var $e=(a-E)/oe,ue=(x-ee)/re,St=a-$e*ne,Oe=x-ue*b;ge=(Oe-St)/($e-ue),Se=$e*ge+St}return te.x=ge,te.y=Se,te}function Ge(ne,a,y,E,b,x,z,ee,te,oe,re,ge,Se,ue){var Oe=1-te,$e=te,St=ne*Oe+y*$e,Ft=a*Oe+E*$e,Zt=y*Oe+b*$e,It=E*Oe+x*$e,Rt=b*Oe+z*$e,Nt=x*Oe+ee*$e,mn=St*Oe+Zt*$e,nn=Ft*Oe+It*$e,bt=Zt*Oe+Rt*$e,on=It*Oe+Nt*$e,Mn=mn*Oe+bt*$e,vn=nn*Oe+on*$e;oe.x=St,oe.y=Ft,re.x=mn,re.y=nn,ge.x=Mn,ge.y=vn,Se.x=bt,Se.y=on,ue.x=Rt,ue.y=Nt}var ve=new go.Spot(.156,.156),we=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ve,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ae=[];function Te(){var ne=Ae.pop();return ne===void 0?[]:ne}function je(ne){ne.length=0,Ae.push(ne)}function ot(ne){for(var a=Te(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Qe(ne){var a=Xe(ne),y=Te();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 je(a),y}function Xe(ne){for(var a=ot(ne),y=Te(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],je(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=ot(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()),je(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Xe(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()),je(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Xe(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()),je(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Xe(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()),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Xe(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()),je(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Xe(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()),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Xe(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()),je(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Qe(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(),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Qe(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(),je(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Qe(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(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Qe(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(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Qe(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(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Qe(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(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ve,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=me*.4;var oe=ae(),re=ae(),ge=ae(),Se=ae();Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ge,Se,Se);var ue=ae(),Oe=ae(),$e=ae();Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Se,Se,$e,ue,Oe);var St=ae(),Ft=ae(),Zt=ae();Ge(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,St,Ft,Zt,Se,Se);var It=ae(),Rt=ae(),Nt=ae();return Ge(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Se,Se,Nt,It,Rt),te.add(new go.PathSegment(go.PathSegment.Move,Nt.x*a,Nt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,It.x*a,It.y*y,Rt.x*a,Rt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Nt.x*a,Nt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ue.x*a,ue.y*y,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*a,Zt.y*y,St.x*a,St.y*y,Ft.x*a,Ft.y*y).close()),De(oe),De(re),De(ge),De(Se),De(ue),De(Oe),De($e),De(St),De(Ft),De(Zt),De(It),De(Rt),De(Nt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ge=ae(),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)),Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ge,oe,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y));var ue=ie(oe.x,oe.y);Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,re,ge);var Oe=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,(Oe.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.9)*a,(Oe.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.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=me*.35;var $e=new go.PathFigure(z*a,(ee-x)*y,!1);E.add($e),$e.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.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),$e.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.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 St=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(St),De(te),De(oe),De(re),De(ge),De(ue),De(Oe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),De(re),te}),go.Shape.setFigureParameter("Arrow2",0,new be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),De(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),De(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ge.x,ge.y),ge=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ge),oe.spot2=new go.Spot(ge.x,ge.y),De(ge),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),De(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ge=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ge.x,ge.y),De(ge),oe}),go.Shape.setFigureParameter("Pointer",0,new be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),De(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),De(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),De(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),De(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,ee=me*x,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ge=.05,Se=me*ge;te=.05,oe=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,oe*y,(te+Se)*a,(oe-ge)*y,(te+ge)*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)),ge=.025,Se=me*ge,te=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-Se)*y,(te+Se)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-Se)*a,(oe-ge)*y,(te-ge)*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)),ge=.05,Se=me*ge,te=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-Se)*y,(te+Se)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-Se)*a,(oe-ge)*y,(te-ge)*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)),ge=.025,Se=me*ge,te=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-Se)*y,(te+Se)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-Se)*a,(oe-ge)*y,(te-ge)*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)),ge=.05,Se=me*ge,te=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te-ge)*a,(oe-Se)*y,(te-Se)*a,(oe-ge)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ge=(x-y)/2,Se=new go.PathFigure(te*a+re,(oe+ee)*y+ge,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ge,(te-z)*a+re,(oe+ee)*y+ge,(te-ee)*a+re,(oe+z)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te-ee)*a+re,(oe-z)*y+ge,(te-z)*a+re,(oe-ee)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ge,te*a+re,(oe-ee)*y+ge,(te-ee+z*.5)*a+re,(oe-z)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te-ee+z*.5)*a+re,(oe+z)*y+ge,te*a+re,(oe+ee)*y+ge).close()),z=me*.4,ee=.4,te=.2,oe=.5;var ue=new go.PathFigure(te*a+re,(oe+ee)*y+ge,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ge,(te-z)*a+re,(oe+ee)*y+ge,(te-ee)*a+re,(oe+z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te-ee)*a+re,(oe-z)*y+ge,(te-z)*a+re,(oe-ee)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ge,te*a+re,(oe-ee)*y+ge,(te-ee+z*.5)*a+re,(oe-z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te-ee+z*.5)*a+re,(oe+z)*y+ge,te*a+re,(oe+ee)*y+ge).close()),z=me*.2,ee=.2,te=.5,oe=.5;var Oe=new go.PathFigure((te-ee)*a+re,oe*y+ge,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te-ee)*a+re,(oe-z)*y+ge,(te-z)*a+re,(oe-ee)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ge,(te+z)*a+re,(oe-ee)*y+ge,(te+ee)*a+re,(oe-z)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te+ee)*a+re,(oe+z)*y+ge,(te+z)*a+re,(oe+ee)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ge,(te-z)*a+re,(oe+ee)*y+ge,(te-ee)*a+re,(oe+z)*y+ge)),z=me*.4,ee=.4,te=.8,oe=.5;var $e=new go.PathFigure(te*a+re,(oe-ee)*y+ge,!0);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ge,(te+z)*a+re,(oe-ee)*y+ge,(te+ee)*a+re,(oe-z)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te+ee)*a+re,(oe+z)*y+ge,(te+z)*a+re,(oe+ee)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ge,te*a+re,(oe+ee)*y+ge,(te+ee-z*.5)*a+re,(oe+z)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te+ee-z*.5)*a+re,(oe-z)*y+ge,te*a+re,(oe-ee)*y+ge).close()),z=me*.8,ee=.8,te=1,oe=.5;var St=new go.PathFigure(te*a+re,(oe-ee)*y+ge,!0);return E.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ge,(te+z)*a+re,(oe-ee)*y+ge,(te+ee)*a+re,(oe-z)*y+ge)),St.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ge,(te+ee)*a+re,(oe+z)*y+ge,(te+z)*a+re,(oe+ee)*y+ge)),St.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ge,te*a+re,(oe+ee)*y+ge,(te+ee-z*.5)*a+re,(oe+z)*y+ge)),St.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ge,(te+ee-z*.5)*a+re,(oe-z)*y+ge,te*a+re,(oe-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ge=ae();Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ge);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,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)),Ge(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ge,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),b=me*.3,x=.3,Ge(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ge,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ge),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y).close());var ue=new go.PathFigure(.45*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),De(te),De(oe),De(re),De(ge),De(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ge=.5,Se=.5,ue=0,Oe=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ge*y,re*a,.7*y,re*a,ge*y)),Oe.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)),Oe.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)),Oe.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)),Oe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Oe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Oe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ge=re*.5,Se=z,ue=z,Oe=re*Se,$e=re*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,te*y,(ee-(Oe+Se)/2)*a,(te+(ue+$e)/2)*y,(ee-Se)*a,(te+$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-ue)*y,(ee-Se)*a,(te-$e)*y,(ee-Oe)*a,(te-ue)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,te*y,(ee+Oe)*a,(te-ue)*y,(ee+Se)*a,(te-$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(te+$e)*y,(ee+(Oe+Se)/2)*a,(te+(ue+$e)/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 St=new go.PathFigure(.2*a,y,!1);E.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ft=new go.PathFigure(.8*a,y,!1);return E.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ge=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,re=.1,ge=.9,Se=new go.PathFigure((re-te)*a,ge*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-te)*y,(re-te)*a,(ge-oe)*y,(re-oe)*a,(ge-te)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ge*y,(re+oe)*a,(ge-te)*y,(re+te)*a,(ge-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+te)*y,(re+te)*a,(ge+oe)*y,(re+oe)*a,(ge+te)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ge*y,(re-oe)*a,(ge+te)*y,(re-te)*a,(ge+oe)*y)),te=.1,oe=me*.1,re=.4,ge=.9;var ue=new go.PathFigure((re-te)*a,ge*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-te)*y,(re-te)*a,(ge-oe)*y,(re-oe)*a,(ge-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ge*y,(re+oe)*a,(ge-te)*y,(re+te)*a,(ge-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+te)*y,(re+te)*a,(ge+oe)*y,(re+oe)*a,(ge+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ge*y,(re-oe)*a,(ge+te)*y,(re-te)*a,(ge+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ge=me*.05,Se=.175,ue=.95,ee=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ge)*y,(Se-ge)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ge)*a,(ue-re)*y,(Se+re)*a,(ue-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ge)*y,(Se+ge)*a,(ue+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ge)*a,(ue+re)*y,(Se-re)*a,(ue+ge)*y));var re=.05,ge=me*.05,Se=.375,ue=.95,te=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ge)*y,(Se-ge)*a,(ue-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ge)*a,(ue-re)*y,(Se+re)*a,(ue-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ge)*y,(Se+ge)*a,(ue+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ge)*a,(ue+re)*y,(Se-re)*a,(ue+ge)*y));var re=.05,ge=me*.05,Se=.625,ue=.95,oe=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ge)*y,(Se-ge)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ge)*a,(ue-re)*y,(Se+re)*a,(ue-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ge)*y,(Se+ge)*a,(ue+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ge)*a,(ue+re)*y,(Se-re)*a,(ue+ge)*y));var re=.05,ge=me*.05,Se=.825,ue=.95,Oe=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ge)*y,(Se-ge)*a,(ue-re)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ge)*a,(ue-re)*y,(Se+re)*a,(ue-ge)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ge)*y,(Se+ge)*a,(ue+re)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ge)*a,(ue+re)*y,(Se-re)*a,(ue+ge)*y).close());var $e=new go.PathFigure(0,y,!1);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,re=.775,ge=new go.PathFigure((oe-ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},5559:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var be={},tt="5.0",ie={},ae=null,De=!1,Ke=!1,Ge=null,ve=!1,we=null,me=null,Ae=0;Ae<arguments.length;Ae++){var Te=arguments[Ae];if(Te!==null)switch(typeof Te){case"number":tt=Te.toFixed(1);break;case"string":Te.match(new RegExp("^[0-9]\\.[0-9]+$"))?tt=Te:Ge=Te;break;case"object":typeof Te.is3D!="undefined"?ae=Te:ie=Te;break;case"boolean":De=Te,Ke=!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&&!Ke&&(De=!0)),Ge!==null&&ie.id===void 0&&(ie.id=Ge);var je="",ot="",Qe=!1,Xe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};be.setHTML5Codebase=function(fe,Ne){me=fe,on(fe,Ne)},be.setJavaCodebase=be.setJavaCodebaseVersion=be.isCompiledInstalled=be.setPreCompiledScriptPath=be.setPreCompiledResourcePath=function(){},be.setHTML5CodebaseVersion=function(fe,Ne){var Fe=parseFloat(fe);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}we=fe,bt(fe,Ne)},be.getHTML5CodebaseVersion=function(){return ne},be.getParameters=function(){return ie},be.setFontsCSSURL=function(fe){z=fe},be.setGiacJSURL=function(fe){},be.setJNLPFile=function(fe){je=fe},be.setJNLPBaseDir=function(fe){},be.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ne="auto",Fe=ie.id,We,Be=!1,qe=0;qe<arguments.length;qe++){var de=arguments[qe];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ne=de:Fe=arguments[qe]):typeof de=="boolean"?Be=de:de instanceof HTMLElement&&(We=de)}Ze();function Ze(){if(!ve){setTimeout(Ze,200);return}Ne=mn(Ne);var ct=We||document.getElementById(Fe);if(!ct){console.log("possibly bug on ajax loading? ");return}if(be.removeExistingApplet(ct,!1),ie.width===void 0&&ct.clientWidth&&(ie.width=ct.clientWidth),ie.height===void 0&&ct.clientHeight&&(ie.height=ct.clientHeight),!(ie.width&&ie.height)&&Ne==="html5"&&(delete ie.width,delete ie.height),Xe=Ne,Ne==="screenshot")Ft(ct,ie);else{var _t=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?_t=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(_t=(!oe()||fe())&&re()),_t?(Xe="screenshot",It(ct,ie,Be,Ne)):St(ct,ie,Be)}}};function oe(){try{return window.self!==window.top}catch(fe){return!0}}function re(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}be.getViews=function(){return ae},be.isJavaInstalled=function(){return!1};var ge=function(fe){var Ne=function(qe){var de=JSON.parse(qe),Ze=function(st){return st.type=="G"||st.type=="E"},ct=de.elements?de.elements.filter(Ze)[0]:de;if(!ct||!ct.url){Fe();return}ie.fileName=ct.url,Se(ct.settings||{}),ae.is3D=!0;var _t="https://www.geogebra.org/images/";be.setPreviewImage(E||ct.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),fe()},Fe=function(){ie.onError&&ie.onError(),Mn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},We=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Be="/materials/"+ie.material_id+"?scope=basic";ue("https://"+We+"/api/proxy.php?path="+encodeURIComponent(Be),Ne,Fe)};function Se(fe){var Ne=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Fe){fe[Fe]=!!fe[Fe]}),Ne.forEach(function(Fe){ie[Fe]===void 0&&fe[Fe]!==void 0&&(ie[Fe]=fe[Fe])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function ue(fe,Ne,Fe){var We=new XMLHttpRequest;We.open("GET",fe),We.onload=function(){Ne(We.responseText)},We.onerror=Fe,We.send()}be.isHTML5Installed=function(){return!0},be.getLoadedAppletType=function(){return Xe},be.setPreviewImage=function(fe,Ne,Fe){E=fe,b=Ne,x=Fe},be.removeExistingApplet=function(fe,Ne){var Fe;typeof fe=="string"&&(fe=document.getElementById(fe)),Xe=null;var We=null;for(Fe=0;Fe<fe.childNodes.length;Fe++){var Be=fe.childNodes[Fe],qe=Be.className;qe==="applet_screenshot"?Ne?(Be.style.display="block",Xe="screenshot"):Be.style.display="none":qe!=="applet_scaler prerender"&&(fe.removeChild(Be),We=qe&&qe.indexOf("appletParameters")!=-1?Be.id:null,Fe--)}var de=ie.id!==void 0?ie.id:We,Ze=window[de];Ze&&typeof Ze.getBase64=="function"&&(Ze.remove(),window[de]=null)},be.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=be.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},be.startAnimation=function(){var fe=be.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},be.stopAnimation=function(){var fe=be.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},be.getAppletObject=function(){var fe=ie.id!==void 0?ie.id:"ggbApplet";return window[fe]},be.resize=function(){};var Oe=function(fe,Ne,Fe){var We=document.createElement("param");We.setAttribute("name",Ne),We.setAttribute("value",Fe),fe.appendChild(We)},$e=function(fe){return fe&&fe!=="false"},St=function(fe,Ne,Fe){te(ne)<=4.2&&(Fe=!0);var We=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(We=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Be=document.createElement("div");Be.classList.add("appletParameters","notranslate");var qe=Ne.width,de=Ne.height;if(Ne.disableAutoScale=Ne.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ne.disableAutoScale,Ne.width!==void 0)if(te(ne)<=4.4)$e(Ne.showToolBar)&&(Ne.height-=7),$e(Ne.showAlgebraInput)&&(Ne.height-=37),Ne.width<605&&$e(Ne.showToolBar)&&(Ne.width=605,qe=605);else{var Ze=100;($e(Ne.showToolBar)||$e(Ne.showMenuBar))&&(Ne.hasOwnProperty("customToolBar")&&(Ne.customToolbar=Ne.customToolBar),Ze=$e(Ne.showMenuBar)?245:155),qe<Ze&&(Ne.width=Ze,qe=Ze)}Be.style.border="none",Be.style.display="inline-block";for(var ct in Ne)Ne.hasOwnProperty(ct)&&ct!=="appletOnLoad"&&Be.setAttribute("data-param-"+ct,Ne[ct]);z&&Be.setAttribute("data-param-fontscssurl",z),be.resize=function(){GGBAppletUtils.responsiveResize(fe,Ne)},window.addEventListener("resize",function(Yt){be.resize()});var _t=typeof Ne.appletOnLoad=="function"?Ne.appletOnLoad:function(){};if(!Fe&&Ne.width!==void 0){Ne.hasOwnProperty("showSplash")||Be.setAttribute("data-param-showSplash","false");var st=fe.querySelector(".applet_scaler.prerender"),Qt=st!==null;if(Qt)var Et=st.querySelector(".ggb_preview");else{var Et=Nt(qe,de,Ne.borderColor,!1);st=document.createElement("div"),st.className="applet_scaler",st.style.position="relative",st.style.display="block",st.style.width=qe+"px",st.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(st,"66%"),te(ne)>=5?(Ne.appletOnLoad=function(Yt){var Gn=fe.querySelector(".ggb_preview");Gn&&Gn.parentNode.removeChild(Gn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(st),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(Yt)},Qt||st.appendChild(Et)):Be.appendChild(Et),st.appendChild(Be),Qt||fe.appendChild(st),setTimeout(function(){be.resize()},1)}else{var At=document.createElement("div");At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.appendChild(Be),fe.appendChild(At),Ne.appletOnLoad=function(Yt){be.resize(),_t(Yt)}}function Gt(Yt,Gn){Gn&&typeof Gn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Yt,Gn.appletOnLoad):renderGGBElement(Yt),Mn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Gn)}function ln(Yt,Gn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Yt,params:Gn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Sa){Gt(Sa.article,Sa.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Yt.className+=" geogebraweb")):Gt(Yt,Gn)}if(We){scriptLoadStarted=!0;for(var jt=0;jt<Be.childNodes.length;jt++){var Cn=Be.childNodes[jt].tagName;Cn==="TABLE"&&(Be.removeChild(Be.childNodes[jt]),jt--)}if(ggbHTML5LoadedScript!==null){var En=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');En!=null&&En.parentNode.removeChild(En)}var rn=document.createElement("script"),Tn=function(){ln(Be,Ne)};rn.src=ot+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=rn.src,Mn("GeoGebra HTML5 codebase loaded: '"+ot+"'.",Ne),!me&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Tn()):ot.requirejs?__webpack_require__.e(777).then(function(){var Yt=[__webpack_require__(70777)];Tn.apply(null,Yt)}.bind(this)).catch(__webpack_require__.oe):(rn.onload=Tn,fe.appendChild(rn))}else ln(Be,Ne);Ne.height=de,Ne.width=qe},Ft=function(fe,Ne,Fe){var We=Nt(Ne.width,Ne.height,Ne.borderColor,Fe),Be=document.createElement("div");Be.style.position="relative",Be.style.display="block",Be.style.width=Ne.width+"px",Be.style.height=Ne.height+"px",Be.className="applet_screenshot applet_scaler"+(Fe?" applet_screenshot_play":""),Be.appendChild(We);var qe=GGBAppletUtils.getScale(Ne,fe,Fe);Fe?(fe.appendChild(Rt()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Be,"66%"),fe.appendChild(Be),qe!==1&&!isNaN(qe)&&(GGBAppletUtils.scaleElement(Be,qe),Be.style.width=Ne.width+"px",Be.style.height=Ne.height+"px",Be.parentNode.style.width=Ne.width*qe+"px",Be.parentNode.style.height=Ne.height*qe+"px"),be.resize=function(){Zt(fe,We,Be,Fe)},window.addEventListener("resize",function(de){be.resize()}),be.resize()};function Zt(fe,Ne,Fe,We){if(fe.contains(Ne)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var Be=GGBAppletUtils.getScale(ie,fe,We);Fe.parentNode!==null&&(!isNaN(Be)&&Be!==1?(GGBAppletUtils.scaleElement(Fe,Be),Fe.parentNode.style.width=ie.width*Be+"px",Fe.parentNode.style.height=ie.height*Be+"px"):(GGBAppletUtils.scaleElement(Fe,1),Fe.parentNode.style.width=ie.width+"px",Fe.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}be.onExitFullscreen=function(fe,Ne){Ne.appendChild(fe)};var It=function(fe,Ne,Fe,We){Ft(fe,Ne,!0);for(var Be=function(){var Ze=[];for(de=0;de<fe.childNodes.length;de++)Ze.push(fe.childNodes[de]);if(window.GGBT_wsf_view){var ct=window.GGBT_wsf_view.renderFullScreen(fe,Ne.id),_t=document.getElementById("fullscreencontainer"),st=jQuery(fe).find(".fullscreencontent");st.length>0?(ct.remove(),st.attr("id","fullscreencontent").show(),jQuery(_t).append(st),window.dispatchEvent(new Event("resize"))):St(ct,Ne,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Xe=We,St(fe,Ne,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ze.length;de++)fe.removeChild(Ze[de])},qe=fe.getElementsByClassName("ggb_preview_play"),de=0;de<qe.length;de++)qe[de].addEventListener("click",Be,!1),qe[de].addEventListener("ontouchstart",Be,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Rt=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ne='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Fe=document.createElement("style");Fe.styleSheet?Fe.styleSheet.cssText=Ne:Fe.appendChild(document.createTextNode(Ne)),document.getElementsByTagName("head")[0].appendChild(Fe)}return fe},Nt=function(fe,Ne,Fe,We){var Be=document.createElement("div");Be.className="ggb_preview",Be.style.position="absolute",Be.style.zIndex="90",Be.style.width=fe-2+"px",Be.style.height=Ne-2+"px",Be.style.top="0px",Be.style.left="0px",Be.style.overflow="hidden",Be.style.backgroundColor="white";var qe="lightgrey";Fe!==void 0&&(Fe==="none"?qe="transparent":qe=Fe),Be.style.border="1px solid "+qe;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Ze,ct,_t;if(!We){Ze=document.createElement("img"),Ze.style.position="absolute",Ze.style.zIndex="1001",Ze.style.opacity=1,de.style.opacity=.3,ct=360,ct>fe/4*3&&(ct=fe/4*3),_t=ct/5.8,Ze.setAttribute("src",b),Ze.setAttribute("width",ct),Ze.setAttribute("height",_t);var st=(fe-ct)/2,Qt=(Ne-_t)/2;Ze.style.left=st+"px",Ze.style.top=Qt+"px",Be.appendChild(Ze)}}return Be.appendChild(de),Be},mn=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},nn=["web","webSimple","web3d","tablet","tablet3d","phone"],bt=function(fe,Ne){if(ne=fe,Ne){on(ne,!0);return}var Fe=!De;if(Fe){var We=te(ne);!isNaN(We)&&We<4.4&&(Fe=!1)}var Be,qe;window.location.protocol.substr(0,4)==="http"?Be=window.location.protocol:Be="http:";var de=ne.indexOf("//");de>0?qe=ne:de===0?qe=Be+ne:qe="https://www.geogebra.org/apps/5.2.814.0/";for(var Ze in nn)if(ne.slice(nn[Ze].length*-1)===nn[Ze]||ne.slice((nn[Ze].length+1)*-1)===nn[Ze]+"/"){on(qe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!$e(ie.showToolBar)&&!$e(ie.showMenuBar)&&!$e(ie.showAlgebraInput)&&!$e(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?qe+="webSimple/":qe+="web3d/",on(qe,!1)},on=function(fe,Ne){if(fe.requirejs){ot=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),ot=fe,Ne===null&&(Ne=fe.indexOf("http")===-1),Qe=Ne,a="web.nocache.js",y=!1;var Fe=ot.split("/");Fe.length>1&&(!Ne&&Fe[Fe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):nn.indexOf(Fe[Fe.length-2])>=0&&(a=Fe[Fe.length-2]+".nocache.js")),Fe=fe.split("/"),ne=Fe[Fe.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var We=parseFloat(ne);We!==NaN&&We<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+We+" is deprecated. Using version latest instead."),bt("5.0",Ne))},Mn=function(fe,Ne){window.console&&window.console.log&&(!Ne||typeof Ne.showLogging=="undefined"||Ne.showLogging&&Ne.showLogging!=="false")&&console.log(fe)};ie.material_id!==void 0?ge(vn):vn();function vn(){var fe=tt;we!==null?fe=we:parseFloat(fe)<5&&(fe="5.0"),bt(fe,!1),me!==null&&on(me,Qe),ve=!0}return be},GGBAppletUtils=function(){"use strict";function be(){return window.GGBT_wsf_edit!==void 0}function tt(ve,we){we!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+we+","+we+")",ve.style.webkitTransform="scale("+we+","+we+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function ie(ve,we,me,Ae,Te,je){var ot=null;if(je!=null&&je!="")for(var Qe=ve.parentNode;Qe!=null;)if((" "+Qe.className+" ").indexOf(" "+je+" ")>-1){ot=Qe;break}else Qe=Qe.parentNode;var Xe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ot)Xe=ot.offsetWidth,ne=Math.max(Ae?ot.offsetWidth:0,ot.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Xe):(Xe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=Xe&&(Te===void 0||!Te)&&(document.dir==="rtl"?(E=Xe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ve&&((me===void 0||!me)&&we>0&&we+y<Xe?Xe=we:Xe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:Xe,height:ne}}function ae(ve,we,me,Ae,Te){if(ve.isScreenshoGenerator)return 1;var je=Ae!==void 0&&Ae,ot=ve.noScaleMargin!=null&&ve.noScaleMargin,Qe=function(ee){return ee&&ee!=="false"},Xe=Qe(ve.autoHeight),ne=ie(we,ve.width,me,Xe,je&&window.GGBT_wsf_view||ot,Te),a=parseInt(ne.width),y=ve.width,E=ve.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=je?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function De(ve,we,me){var Ae=1,Te,je=!1;if(ve.hasOwnProperty("allowUpscale")&&(je=ve.allowUpscale),ve.hasOwnProperty("scale")&&(Ae=parseFloat(ve.scale),(isNaN(Ae)||Ae===null||Ae===0)&&(Ae=1),Ae>1&&(je=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Te=ae(ve,we,je,me,ve.scaleContainerClass);else return Ae;return je&&(!ve.hasOwnProperty("scale")||Ae===1)?Te:Math.min(Ae,Te)}function Ke(ve){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=ve.getBoundingClientRect(),Te=(we-Ae.width)/2,je=(me-Ae.height)/2;je<0&&(je=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te<40?ve.style.left="40px":ve.style.left=Te+"px",ve.style.top=je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je<40?ve.style.top="40px":ve.style.top=je+"px",ve.style.left=Te+"px")}function Ge(ve,we){var me=ve.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ae=De(we,ve);be()&&me.setAttribute("data-param-scale",Ae);for(var Te=null,je=0;je<ve.childNodes.length;je++)if(ve.childNodes[je].className!==void 0&&ve.childNodes[je].className.match(/^applet_scaler/)){Te=ve.childNodes[je];break}if(Te!==null&&Te.querySelector(".noscale")!==null)return;var ot=we.id!==void 0?we.id:"ggbApplet",Qe=window[ot];(Qe==null||!Qe.recalculateEnvironments)&&Te!==null&&!Te.className.match(/fullscreen/)&&(Te.parentNode.style.transform="",!isNaN(Ae)&&Ae!==1?(Te.parentNode.style.width=we.width*Ae+"px",Te.parentNode.style.height=we.height*Ae+"px",tt(Te,Ae)):(tt(Te,1),Te.parentNode.style.width=we.width+"px",Te.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:be,positionCenter:Ke,getScale:De,scaleElement:tt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var be=n.location.search;return be.indexOf(J)!=-1||be.indexOf(K)!=-1}function q(be,tt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(be){var tt=s[L].bindings;s[L].bindings=function(){for(var ie=tt?tt():{},ae=be[webModule.__softPermutationId],De=O;De<ae.length;De++){var Ke=ae[De];ie[Ke[O]]=Ke[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var be=o.createElement(Q);if(be.id=L,be.style.cssText=R+S,be.tabIndex=-1,o.body.appendChild(be),t=be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tt=document.compatMode==U?V:W;t.write(tt+X),t.close()}}}function w(be){function tt(ae){function De(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=De();if(Ke){ae();return}function Ge(){if(!Ke){if(!De())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var ve=setInterval(function(){Ge()},$)}function ie(ae){var De=u(),Ke=De.body,Ge=De.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=ae,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(Ge)}tt(function(){ie(be)})}webModule.__startLoadingFragment=function(be){return C(be)},webModule.__installRunAsyncCode=function(be){var tt=u(),ie=tt.body,ae=tt.createElement(_);ae.language=ab,ae.text=be,ie.appendChild(ae),ie.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(be){var tt=c[be];return tt==null?null:tt},r=d,webModule.__errFn=e}function B(){function be(ve){var we=ve.lastIndexOf(rb);we==-1&&(we=ve.length);var me=ve.indexOf(sb);me==-1&&(me=ve.length);var Ae=ve.lastIndexOf(tb,Math.min(me,we));return Ae>=O?ve.substring(O,Ae+P):W}function tt(ve){if(!ve.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ve+vb,ve=be(we.src)}return ve}function ie(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),we=O;we<ve.length;++we)if(ve[we].src.indexOf(xb)!=-1)return be(ve[we].src);return W}function De(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Ke(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Ge=ie();return Ge==W&&(Ge=ae()),Ge==W&&(Ge=De()),Ge==W&&Ke()&&(Ge=be(o.location.href)),Ge=tt(Ge),Ge}function C(be){return be.match(/^\//)||be.match(/^[a-zA-Z]+:\/\//)?be:webModule.__moduleBase+be}function D(){var be=[],tt=O,ie=[],ae=[];function De(ve){var we=ae[ve](),me=ie[ve];if(we in me)return we;var Ae=[];for(var Te in me)Ae[me[Te]]=Te;throw r&&r(ve,Ae,we),null}if(__gwt_isKnownPropertyValue=function(ve,we){return we in ie[ve]},webModule.__getPropMap=function(){var ve={};for(var we in ie)ie.hasOwnProperty(we)&&(ve[we]=De(we));return ve},webModule.__computePropValue=De,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ge=Ke.indexOf(Db);Ge!=-1&&(tt=parseInt(Ke.substring(Ge+P),$),Ke=Ke.substring(O,Ge))}catch(ve){}return webModule.__softPermutationId=tt,C(Ke+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})()},49291:function(be,tt,ie){"use strict";ie.d(tt,{Ax:function(){return Ge},Ds:function(){return ve},KI:function(){return me},SI:function(){return Ke},f1:function(){return De}});var ae=ie(38446);function De(Ae){let Te=!0;if(Ae.length>0){for(let je=0;je<Ae.length;je++)if(Ae[je].compile_success==0||!Ae[je].compile_success){Te=!1;break}}else Te=!1;return Te}function Ke(Ae,Te=""){let je=[];for(let ot=0;ot<Ae.length;ot++){let Qe=Ae[ot],Xe=Te?`${Te}/${Qe.name}`:`${Qe.name}`;je.push({title:Qe.name,type:Qe.type,isLeaf:Qe.type!=="tree",key:Xe})}return je}function Ge(Ae,Te,je){for(let ot=0;ot<Ae.length;ot++){let Qe=Ae[ot];if(Qe.key===Te){Qe.children=je;break}Qe.children&&Ge(Qe.children,Te,je)}return Ae}function ve(Ae,Te,je){let ot;return function(){let Qe=this,Xe=arguments,ne=function(){ot=null,je||Ae.apply(Qe,Xe)},a=je&&!ot;clearTimeout(ot),ot=setTimeout(ne,Te),a&&Ae.apply(Qe,Xe)}}const we=!0,me=ae.Z.API_SERVER},14573:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return ot}});var ae=ie(59301),De={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=ie(92310),Ge=ie.n(Ke),ve=ie(71418),we=ie(2859),me=ie(7660),Ae=ie(88230),Te=(Qe,Xe,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Qe,Xe)).next())}),ot=({data:Qe,className:Xe,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ge]=(0,ae.useState)(!1),[Se,ue]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Qe!=null&&Qe.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Qe!=null&&Qe.src&&Oe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Qe==null?void 0:Qe.visible]);const Oe=()=>Te(void 0,null,function*(){ge(!0),ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const It=yield(0,Ae.ZJ)(Qe==null?void 0:Qe.src);z.current.src="",z.current.src=It,z.current.onload=function(){Zt()},ge(!1),ue("")}),$e=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},St=It=>Te(void 0,null,function*(){ge(!0),ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Rt=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qe.title,file:It.dataUrl}});Rt!=null&&Rt.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Rt==null?void 0:Rt.id,settings:JSON.stringify(It.state)}})).status===0&&E():Rt!=null&&Rt.id&&E(Rt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),ue("")}),Ft=()=>{const It=document.querySelector('a[href="https://markerjs.com/"]');It&&It.parentNode&&(It.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(Nt=>{const mn=document.querySelector(Nt.name);mn&&mn.setAttribute("title",Nt.title)})},Zt=()=>{ee.current=new we.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",St),ee.current.addEventListener("beforeclose",$e),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(),Qe!=null&&Qe.snapshotData&&ee.current.restoreState(Qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ft()},300)};return ae.createElement(ae.Fragment,null,(Qe==null?void 0:Qe.visible)&&ae.createElement(ve.Z,{spinning:re,tip:Se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ge()(De.imageDimensions,Xe,ne?De.fullWidth:""),style:a},ae.createElement("img",{className:De.img,ref:z}))))}},46531:function(be,tt,ie){"use strict";var ae=ie(59301),De=ie(95237),Ke=ie(43604),Ge=ie(99313),ve=ie(3113),we=ie(99325),me=ie(11570),Ae=ie(48136),Te=ie(59301);const je=(0,ae.forwardRef)(({callback:ot,showSaveButton:Qe,value:Xe=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Te.createElement(De.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Te.createElement(Ke.Z,{flex:"110px",className:me.Z.item},Te.createElement("div",null,Te.createElement(we.Z,{value:`$$${ee.value}$$`}),ee.name),Te.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Te.createElement("div",{key:re},Te.createElement("h1",null,oe.name),Te.createElement(De.Z,{gutter:[10,10]},oe.data.map((ge,Se)=>Te.createElement(Ke.Z,{key:Se,onClick:()=>b(ge),className:me.Z.diamond},Te.createElement(we.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Te.createElement(De.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Te.createElement(Ke.Z,{flex:"110px",className:me.Z.item},Te.createElement("div",null,Te.createElement(we.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Te.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Te.createElement("div",{key:re},oe.name&&Te.createElement("h1",null,oe.name),Te.createElement(De.Z,{gutter:[10,10]},oe.data.map((ge,Se)=>Te.createElement(Ke.Z,{key:Se,onClick:()=>b(ge),className:me.Z.diamond},Te.createElement(we.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return ot&&ot(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Te.createElement("div",{className:me.Z.mathWrap},Te.createElement(Ge.default,{defaultActiveKey:"1",items:x}),Te.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Xe||""),Qe&&Te.createElement("div",{className:me.Z.button},Te.createElement(ve.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tt.Z=je},73278:function(be,tt,ie){"use strict";ie.d(tt,{h:function(){return ee}});var ae=ie(59301),De=ie(57809),Ke=ie(78241),Ge=ie(3113),ve=ie(89780),we=ie.n(ve),me=ie(78780),Ae=ie(19136),Te=Object.defineProperty,je=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Te(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Xe.call(oe,re)&&a(te,re,oe[re]);if(Qe)for(var re of Qe(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},E=(te,oe)=>je(te,ot(oe));const b=De.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};tt.Z=({callback:te,onCancel:oe})=>{const[re,ge]=(0,ae.useState)("python");function Se(Oe){ge(z[Oe][1])}function ue(Oe){te(Oe)}return ae.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ue,style:{width:500}}),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(De.default,{getPopupContainer:Oe=>Oe.parentNode,onChange:Se},Object.keys(z).map(Oe=>ae.createElement(b,{key:Oe,value:Oe},z[Oe][0])))),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ge={}}){const Se=(0,ae.useRef)(),[ue,Oe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ue){let $e=function(St){const Ft=St.getValue();oe&&oe(Ft)};return ue.on("change",$e),()=>{ue.off("change",$e)}}},[ue,oe]),(0,ae.useEffect)(()=>{ue&&ue.setOption("mode",re)},[ue,re]),(0,ae.useEffect)(()=>{ue&&(te!==ue.getValue()||te==="")&&setTimeout(()=>{ue.setValue(te||"")},300)},[ue,te]),(0,ae.useEffect)(()=>{if(Se.current&&!ue){const $e=we().fromTextArea(Se.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Oe($e)}},[Se.current,ue]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:Se}))}},64726:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return Zn}});var ae=ie(59301),De=ie(89780),Ke=ie.n(De),Ge=ie(76374),ve=ie(78780),we=ie(6313),me=ie(25717),Ae=ie(99498),Te=ie(25419),je=ie(67549),ot=ie(99325),Qe=({value:ce="",className:Pe,showTextOnly:se,showLines:He,style:it={}})=>{const at=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},Xe=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,Pe,se)=>Pe in ce?ne(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:se}):ce[Pe]=se,ee=(ce,Pe)=>{for(var se in Pe||(Pe={}))b.call(Pe,se)&&z(ce,se,Pe[se]);if(E)for(var se of E(Pe))x.call(Pe,se)&&z(ce,se,Pe[se]);return ce},te=(ce,Pe)=>a(ce,y(Pe));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:ce,title:Pe,icon:se,actionName:He,className:it="",children:at}){function $t(){ce(He)}return Xe.createElement("a",{title:Pe,className:it,onClick:$t},Xe.createElement("i",{className:`${se}`}),at)}var ge=({watch:ce,showNullButton:Pe,showNullProgramButton:se,onActionCallback:He,fullScreen:it,insertTemp:at,hidetoolBar:$t,extraUse:ht})=>{const xt=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Xe.createElement("ul",{className:"markdown-toolbar-container"},!$t&&xt.map((tn,Nn)=>Xe.createElement("li",{key:Nn},tn.actionName?Xe.createElement(re,te(ee({},tn),{onActionCallback:He})):Xe.createElement("span",{className:"v-line"}))),Pe?Xe.createElement("li",null,Xe.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:He},Xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,se?Xe.createElement(Xe.Fragment,null,Xe.createElement("li",null,Xe.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:He},Xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Xe.createElement("li",null,Xe.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:He},Xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,at&&Xe.createElement("li",null,Xe.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${at}`,onActionCallback:He},Xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ht&&Xe.createElement("li",null,ht),Xe.createElement("li",{className:"btn-full-screen"},Xe.createElement(re,{icon:`${it?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:it?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:He})))},Se=ie(19647),ue=ie(78241),Oe=ie(92832),$e=ie(3113),St=Object.defineProperty,Ft=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,mn=(ce,Pe,se)=>Pe in ce?St(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:se}):ce[Pe]=se,nn=(ce,Pe)=>{for(var se in Pe||(Pe={}))Rt.call(Pe,se)&&mn(ce,se,Pe[se]);if(It)for(var se of It(Pe))Nt.call(Pe,se)&&mn(ce,se,Pe[se]);return ce},bt=(ce,Pe)=>Ft(ce,Zt(Pe));const on={labelCol:{span:4},wrapperCol:{span:20}};var Mn=({callback:ce,onCancel:Pe})=>{function se(He){ce(He)}return ae.createElement(ue.default,bt(nn({},on),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:se,style:{width:500}}),ae.createElement(ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Oe.default,null)),ae.createElement(ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Oe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement($e.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},vn=ie(73278),fe=ie(56030),Ne=ie(43418),Fe=ie(95237),We=ie(14573),Be=ie(59301),qe=({callback:ce,onCancel:Pe})=>{const se=document.createElement("canvas"),He=se.getContext("2d");se.width=1e3,se.height=800,He.fillStyle="#ffffff",He.fillRect(0,0,se.width,se.height);const it=se.toDataURL("image/png");return Be.createElement(Ne.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Be.createElement(Fe.Z,{style:{height:"100vh"}},Be.createElement(We.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:it,visible:!0,title:String(Date.now())},onOk:at=>{ce({src:at.url})},onClose:Pe})))},de=ie(12378);function Ze(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ze,go.CommandHandler),Ze.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Ze.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var Pe=1/0;ce.selection.each(function(se){se instanceof go.Link||(Pe=Math.min(se.position.x,Pe))}),ce.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(Pe,se.position.y))}),ce.commitTransaction("aligning left")},Ze.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Pe=-1/0;ce.selection.each(function(se){if(!(se instanceof go.Link)){var He=se.actualBounds.x+se.actualBounds.width;Pe=Math.max(He,Pe)}}),ce.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(Pe-se.actualBounds.width,se.position.y))}),ce.commitTransaction("aligning right")},Ze.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Pe=1/0;ce.selection.each(function(se){se instanceof go.Link||(Pe=Math.min(se.position.y,Pe))}),ce.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(se.position.x,Pe))}),ce.commitTransaction("alignTop")},Ze.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Pe=-1/0;ce.selection.each(function(se){if(!(se instanceof go.Link)){var He=se.actualBounds.y+se.actualBounds.height;Pe=Math.max(He,Pe)}}),ce.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(se.actualBounds.x,Pe-se.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Ze.prototype.alignCenterX=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center X");var se=Pe.actualBounds.x+Pe.actualBounds.width/2;ce.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(se-He.actualBounds.width/2,He.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Ze.prototype.alignCenterY=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center Y");var se=Pe.actualBounds.y+Pe.actualBounds.height/2;ce.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,se-He.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Ze.prototype.alignColumn=function(ce){var Pe=this.diagram;Pe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var se=new Array;Pe.selection.each(function(ht){ht instanceof go.Link||se.push(ht)});for(var He=0;He<se.length-1;He++){var it=se[He],at=it.actualBounds.y+it.actualBounds.height+ce,$t=se[He+1];$t.move(new go.Point(it.actualBounds.x,at))}Pe.commitTransaction("align Column")},Ze.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=this.diagram;Pe.startTransaction("align Row");var se=new Array;Pe.selection.each(function(ht){ht instanceof go.Link||se.push(ht)});for(var He=0;He<se.length-1;He++){var it=se[He],at=it.actualBounds.x+it.actualBounds.width+ce,$t=se[He+1];$t.move(new go.Point(at,it.actualBounds.y))}Pe.commitTransaction("align Row")},Ze.prototype.canRotate=function(ce){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ze.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ce.toString());var Pe=this.diagram;Pe.selection.each(function(se){se instanceof go.Link||se instanceof go.Group||(se.angle+=ce)}),Pe.commitTransaction("rotate "+ce.toString())},Ze.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Pe=new go.Map;ce.selection.each(function(se){Pe.set(se.layer,0)}),Pe.iteratorKeys.each(function(se){var He=0;se.parts.each(function(it){if(!it.isSelected){var at=it.zOrder;isNaN(at)?it.zOrder=0:He=Math.max(He,at)}}),Pe.set(se,He)}),ce.selection.each(function(se){Ze._assignZOrder(se,Pe.get(se.layer)+1)}),ce.commitTransaction("pullToFront")},Ze.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Pe=new go.Map;ce.selection.each(function(se){Pe.set(se.layer,0)}),Pe.iteratorKeys.each(function(se){var He=0;se.parts.each(function(it){if(!it.isSelected){var at=it.zOrder;isNaN(at)?it.zOrder=0:He=Math.min(He,at)}}),Pe.set(se,He)}),ce.selection.each(function(se){Ze._assignZOrder(se,Pe.get(se.layer)-1-Ze._findGroupDepth(se))}),ce.commitTransaction("pushToBack")},Ze._assignZOrder=function(ce,Pe,se){se===void 0&&(se=ce),ce.layer===se.layer&&(ce.zOrder=Pe),ce instanceof go.Group&&ce.memberParts.each(function(He){Ze._assignZOrder(He,Pe+1,se)})},Ze._findGroupDepth=function(ce){if(ce instanceof go.Group){var Pe=0;return ce.memberParts.each(function(se){Pe=Math.max(Pe,Ze._findGroupDepth(se))}),Pe+1}else return 0},Ze.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Pe=ce.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var se=this.arrowKeyBehavior;if(se==="none")return;if(se==="select"){this._arrowKeySelect();return}else if(se==="move"){this._arrowKeyMove();return}else if(se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ze.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(Pe){ce.push(Pe)}),this.diagram.parts.each(function(Pe){ce.push(Pe)}),ce},Ze.prototype._arrowKeyMove=function(){var ce=this.diagram,Pe=ce.lastInput,se=0,He=0;if(Pe.control||Pe.meta)se=1,He=1;else if(ce.grid!==null){var it=ce.grid.gridCellSize;He=it.width,se=it.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(at){Pe.key==="Up"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y-se)):Pe.key==="Down"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y+se)):Pe.key==="Left"?at.move(new go.Point(at.actualBounds.x-He,at.actualBounds.y)):Pe.key==="Right"&&at.move(new go.Point(at.actualBounds.x+He,at.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Ze.prototype._arrowKeySelect=function(){var ce=this.diagram,Pe=ce.lastInput,se=null;Pe.key==="Up"?se=this._findNearestPartTowards(270):Pe.key==="Down"?se=this._findNearestPartTowards(90):Pe.key==="Left"?se=this._findNearestPartTowards(180):Pe.key==="Right"&&(se=this._findNearestPartTowards(0)),se!==null&&(Pe.shift?se.isSelected=!0:Pe.control||Pe.meta?se.isSelected=!se.isSelected:ce.select(se))},Ze.prototype._findNearestPartTowards=function(ce){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var se=Pe.actualBounds.center,He=this._getAllParts(),it=1/0,at=Pe,$t=0;$t<He.length;$t++){var ht=He[$t];if(ht!==Pe&&ht.canSelect()){var xt=ht.actualBounds.center,tn=se.directionPoint(xt),Nn=this._angleCloseness(tn,ce);if(Nn<=45){var _e=se.distanceSquaredPoint(xt);_e*=1+Math.sin(Nn*Math.PI/180),_e<it&&(it=_e,at=ht)}}}return at},Ze.prototype._angleCloseness=function(ce,Pe){return Math.min(Math.abs(Pe-ce),Math.min(Math.abs(Pe+360-ce),Math.abs(Pe-360-ce)))},Ze.prototype._arrowKeyTree=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe instanceof go.Node){var se=ce.lastInput;if(se.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ce.commandHandler.canExpandTree(Pe)&&ce.commandHandler.expandTree(Pe);else{var He=this._sortTreeChildrenByY(Pe).first();He!==null&&ce.select(He)}}else if(se.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ce.commandHandler.canCollapseTree(Pe)&&ce.commandHandler.collapseTree(Pe);else{var it=Pe.findTreeParentNode();it!==null&&ce.select(it)}else if(se.key==="Up"){var it=Pe.findTreeParentNode();if(it!==null){var at=this._sortTreeChildrenByY(it),$t=at.indexOf(Pe);if($t>0){for(var ht=at.elt($t-1);ht!==null&&ht.isTreeExpanded&&!ht.isTreeLeaf;){var xt=this._sortTreeChildrenByY(ht);ht=xt.last()}ht!==null&&ce.select(ht)}else ce.select(it)}}else if(se.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var He=this._sortTreeChildrenByY(Pe).first();He!==null&&ce.select(He)}else for(;Pe!==null;){var it=Pe.findTreeParentNode();if(it===null)break;var at=this._sortTreeChildrenByY(it),$t=at.indexOf(Pe);if($t<at.length-1){ce.select(at.elt($t+1));break}else Pe=it}var tn=ce.selection.first();tn!==null&&ce.scrollToRect(tn.actualBounds)}},Ze.prototype._sortTreeChildrenByY=function(ce){var Pe=new go.List().addAll(ce.findTreeChildrenNodes());return Pe.sort(function(se,He){var it=se.location,at=He.location;return it.y<at.y?-1:it.y>at.y?1:it.x<at.x?-1:it.x>at.x?1:0}),Pe},Ze.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Ze.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Ze.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Ze.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var ct=Ze,_t=ie(29277),st=ie(43604),Qt=ie(7660),Et={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},At=ie(59301),Gt=(ce,Pe,se)=>new Promise((He,it)=>{var at=xt=>{try{ht(se.next(xt))}catch(tn){it(tn)}},$t=xt=>{try{ht(se.throw(xt))}catch(tn){it(tn)}},ht=xt=>xt.done?He(xt.value):Promise.resolve(xt.value).then(at,$t);ht((se=se.apply(ce,Pe)).next())});function ln({onCancel:ce,callback:Pe}){let se=(0,ae.useRef)(),He=(0,ae.useRef)(),it=(0,ae.useRef)(),at=(0,ae.useRef)(!1);const $t=(0,ae.useRef)(!1),[ht,xt]=(0,ae.useState)(0);function tn(){const _e=de.bx.make,Ct={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};se.current=new de.S0(He.current,{padding:20,grid:_e(de.s_,"Grid",_e(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),_e(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ke=>{var Je=ke.diagram.commandHandler.addTopLevelParts(ke.diagram.selection,!0);Je||ke.diagram.currentTool.doCancel()},commandHandler:_e(ct),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ke=>{var Je=ke.subject;Je.location=Je.location.copy().snapToGridPoint(ke.diagram.grid.gridOrigin,ke.diagram.grid.gridCellSize),setTimeout(()=>{ke.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ke=>{var Je=ke.subject;setTimeout(()=>{ke.diagram.commandHandler.editTextBlock()})},LinkRelinked:ke=>{var Je=ke.parameter.part;Je.invalidateConnectedLinks();var dt=ke.subject;ke.diagram.toolManager.linkingTool.isForwards?dt.toNode.invalidateConnectedLinks():dt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),se.current.nodeTemplate=_e(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),_e(de.bn,{name:"SHAPE",fill:Ct.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),_e(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),_e(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),se.current.nodeTemplate.toolTip=_e("ToolTip",_e(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},_e(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),_e(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function bn(ke,Je){var dt=(Ye,wt)=>{Ye.handled=!0,Ye.diagram.model.commit(Bt=>{var ut=wt.part.adornedPart,Kt=new de.E9().setRectSpot(ut.actualBounds,ke);Kt.subtract(ut.location),Kt.scale(2,2),Kt.x+=Math.sign(Kt.x)*130,Kt.y+=Math.sign(Kt.y)*130,Kt.add(ut.location),Kt.snapToGridPoint(Ye.diagram.grid.gridOrigin,Ye.diagram.grid.gridCellSize);var Vt=Bt.copyNodeData(ut.data);Bt.setGroupKeyForNodeData(Vt,Bt.getGroupKeyForNodeData(ut.data)),Bt.addNodeData(Vt);var ea={from:ut.key,to:Bt.getKeyForNodeData(Vt)};Bt.addLinkData(ea);var Un=Ye.diagram.findNodeForData(Vt);Un.location=Kt,Ye.diagram.select(Un),setTimeout(()=>{Ye.diagram.commandHandler.editTextBlock()},20)})};return _e(de.bn,{figure:Je,alignment:ke,alignmentFocus:ke.opposite(),width:ke.equals(de.z6.Top)||ke.equals(de.z6.Bottom)?25:18,height:ke.equals(de.z6.Top)||ke.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ct.white,strokeWidth:4,mouseEnter:(Ye,wt)=>wt.fill="dodgerblue",mouseLeave:(Ye,wt)=>wt.fill="orange",isActionable:!0,click:dt,contextClick:dt})}function In(ke){return _e(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Je,dt)=>dt.fill="dodgerblue",mouseLeave:(Je,dt)=>dt.fill="orange",click:(Je,dt)=>{Je.diagram.commandHandler.showContextMenu(dt.part.adornedPart)}},ke||{})}se.current.nodeTemplate.selectionAdornmentTemplate=_e(de.uz,"Spot",_e(de.Vm,{padding:10}),bn(de.z6.Top,"TriangleUp"),bn(de.z6.Left,"TriangleLeft"),bn(de.z6.Right,"TriangleRight"),bn(de.z6.Bottom,"TriangleDown"),In({alignment:new de.z6(.75,0)}));function gn(ke,Je){return(dt,Ye)=>{dt.handled=!0,dt.diagram.model.commit(wt=>{wt.set(Ye.part.adornedPart.data,ke,Je)})}}function le(ke,Je){return Je||(Je="color"),_e(de.bn,{width:16,height:16,stroke:"lightgray",fill:ke,margin:1,background:"transparent",mouseEnter:(dt,Ye)=>Ye.stroke="dodgerblue",mouseLeave:(dt,Ye)=>Ye.stroke="lightgray",click:gn(Je,ke),contextClick:gn(Je,ke)})}function ye(){return[_e("ContextMenuButton",_e(de.s_,"Horizontal",le(Ct.white,"fill"),le(Ct.beige,"fill"),le(Ct.extralightblue,"fill"),le(Ct.extralightred,"fill"))),_e("ContextMenuButton",_e(de.s_,"Horizontal",le(Ct.lightgray,"fill"),le(Ct.lightgreen,"fill"),le(Ct.lightblue,"fill"),le(Ct.lightred,"fill")))]}function Le(){return[_e("ContextMenuButton",_e(de.s_,"Horizontal",le(Ct.black),le(Ct.green),le(Ct.blue),le(Ct.red))),_e("ContextMenuButton",_e(de.s_,"Horizontal",le(Ct.white),le(Ct.magenta),le(Ct.purple),le(Ct.orange)))]}function xe(ke,Je){return Je||(Je="thickness"),_e(de.bn,"LineH",{width:16,height:16,strokeWidth:ke,margin:1,background:"transparent",mouseEnter:(dt,Ye)=>Ye.background="dodgerblue",mouseLeave:(dt,Ye)=>Ye.background="transparent",click:gn(Je,ke),contextClick:gn(Je,ke)})}function Me(ke,Je){return Je||(Je="dash"),_e(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ke,margin:1,background:"transparent",mouseEnter:(dt,Ye)=>Ye.background="dodgerblue",mouseLeave:(dt,Ye)=>Ye.background="transparent",click:gn(Je,ke),contextClick:gn(Je,ke)})}function Ie(){return[_e("ContextMenuButton",_e(de.s_,"Horizontal",xe(1),xe(2),xe(3),xe(4))),_e("ContextMenuButton",_e(de.s_,"Horizontal",Me(null),Me([2,4]),Me([4,4])))]}function ze(ke,Je){return Je||(Je="figure"),_e(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ke,margin:1,background:"transparent",mouseEnter:(dt,Ye)=>Ye.fill="dodgerblue",mouseLeave:(dt,Ye)=>Ye.fill="lightgray",click:gn(Je,ke),contextClick:gn(Je,ke)})}se.current.nodeTemplate.contextMenu=_e("ContextMenu",_e("ContextMenuButton",_e(de.s_,"Horizontal",ze("Rectangle"),ze("RoundedRectangle"),ze("Ellipse"),ze("Diamond"))),_e("ContextMenuButton",_e(de.s_,"Horizontal",ze("Parallelogram2"),ze("ManualOperation"),ze("Procedure"),ze("Cylinder1"))),_e("ContextMenuButton",_e(de.s_,"Horizontal",ze("Terminator"),ze("CreateRequest"),ze("Document"),ze("TriangleDown"))),ye(),Le(),Ie()),se.current.groupTemplate=_e(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ke,Je)=>{var dt=Je.addMembers(Je.diagram.selection,!0);dt||Je.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),_e(de.s_,"Auto",{name:"BODY"},_e(de.bn,{parameter1:10,fill:Ct.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),_e(de.Vm,{background:"transparent",margin:20})),_e(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),se.current.groupTemplate.selectionAdornmentTemplate=_e(de.uz,"Spot",_e(de.s_,"Auto",_e(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),_e(de.Vm,{margin:1.5})),In({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),se.current.groupTemplate.contextMenu=_e("ContextMenu",ye(),Le(),Ie()),se.current.linkTemplate=_e(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",ke=>ke>=1?10:0),new de.KX("toShortLength","dir",ke=>ke>=1?10:0),new de.KX("points").makeTwoWay(),_e(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),_e(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ke=>ke===1)),_e(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ke=>ke>=1),new de.KX("width","thickness",ke=>7+3*ke),new de.KX("height","thickness",ke=>7+3*ke),new de.KX("segmentOffset","thickness",ke=>new de.E9(-15,4+1.5*ke))),_e(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ke=>ke===2),new de.KX("width","thickness",ke=>7+3*ke),new de.KX("height","thickness",ke=>7+3*ke),new de.KX("segmentOffset","thickness",ke=>new de.E9(-15,4+1.5*ke))),_e(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),se.current.linkTemplate.selectionAdornmentTemplate=_e(de.uz,_e(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ce(2)},new de.KX("pathPattern","thickness",Ce)),In({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ce(ke){return _e(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ke+4).toString()+" H3"})}function mt(ke){var Je="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ke===0?Je="M0 0 M16 16 M0 8 L16 8":ke===2&&(Je="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),_e(de.bn,{geometryString:Je,margin:2,background:"transparent",mouseEnter:(dt,Ye)=>Ye.background="dodgerblue",mouseLeave:(dt,Ye)=>Ye.background="transparent",click:gn("dir",ke),contextClick:gn("dir",ke)})}function lt(ke){var Je=(dt,Ye)=>{dt.handled=!0,dt.diagram.model.commit(wt=>{var Bt=Ye.part.adornedPart;wt.set(Bt.data,ke?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ke?Bt.toNode:Bt.fromNode).invalidateConnectedLinks()})};return _e(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(dt,Ye)=>Ye.background="dodgerblue",mouseLeave:(dt,Ye)=>Ye.background="transparent",click:Je,contextClick:Je})}function pe(ke,Je){var dt=0,Ye=de.z6.RightSide;ke.equals(de.z6.Top)?(dt=270,Ye=de.z6.TopSide):ke.equals(de.z6.Left)?(dt=180,Ye=de.z6.LeftSide):ke.equals(de.z6.Bottom)&&(dt=90,Ye=de.z6.BottomSide),Je||(dt-=180);var wt=(Bt,ut)=>{Bt.handled=!0,Bt.diagram.model.commit(Kt=>{var Vt=ut.part.adornedPart;Kt.set(Vt.data,Je?"toSpot":"fromSpot",de.z6.stringify(Ye)),(Je?Vt.toNode:Vt.fromNode).invalidateConnectedLinks()})};return _e(de.bn,{alignment:ke,alignmentFocus:ke.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:dt,background:"transparent",mouseEnter:(Bt,ut)=>ut.background="dodgerblue",mouseLeave:(Bt,ut)=>ut.background="transparent",click:wt,contextClick:wt})}se.current.linkTemplate.contextMenu=_e("ContextMenu",Le(),Ie(),_e("ContextMenuButton",_e(de.s_,"Horizontal",mt(0),mt(1),mt(2))),_e("ContextMenuButton",_e(de.s_,"Horizontal",_e(de.s_,"Spot",lt(!1),pe(de.z6.Top,!1),pe(de.z6.Left,!1),pe(de.z6.Right,!1),pe(de.z6.Bottom,!1)),_e(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},lt(!0),pe(de.z6.Top,!0),pe(de.z6.Left,!0),pe(de.z6.Right,!0),pe(de.z6.Bottom,!0)))));const Ot=`{ "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 zt=["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 qt(ke){return console.log("shapeName:",ke),zt.indexOf(ke)>=0}var dn=new de.YI(it.current,{maxSelectionCount:1,linkTemplate:_e(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:_e(de.uz,"Link",{locationSpot:de.z6.Center},_e(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),_e(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),_e(de.bn,{isPanelMain:!0,strokeWidth:2}),_e(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(ke=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ke.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return se.current.addDiagramListener("TextEdited",function(ke){var Je;const dt=ke.subject.part;var Ye=(Je=document.activeElement)==null?void 0:Je.value;typeof Ye=="string"&&Ye.trim()===""&&se.current.model.commit(function(wt){wt.set(dt.data,"text","\u672A\u547D\u540D"),se.current.commandHandler.stopCommand()},"increment")}),dn.nodeTemplate=_e(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),_e(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),_e(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{se.current.grid=_e(de.s_,"Grid",_e(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),_e(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),se.current.grid.visible=!0,se.current.grid.gridCellStroke="darkgray",se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=se.current,se.current}const Nn=()=>Gt(this,null,function*(){var _e=se.current.makeImage();const Ct=yield(0,Qt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:_e.src}});Pe({src:Ct.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{tn()},500),xt(ht+1),()=>{se.current=null}),[]),At.createElement("div",{ref:$t,className:at.current?`${Et.maxH60} body-overflow-initial`:"body-overflow-initial"},At.createElement(Ne.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ht,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:At.createElement(Fe.Z,null,At.createElement(st.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),At.createElement(st.Z,{onClick:()=>{var _e,Ct,bn=se.current.selection.first();if(at.current=!at.current,document.activeElement&&bn){let In=(Ct=(_e=document.activeElement)==null?void 0:_e.value)==null?void 0:Ct.trim();typeof In=="string"&&se.current.model.commit(function(gn){gn.set(bn.data,"text",In||"\u672A\u547D\u540D"),se.current.commandHandler.stopCommand()},"increment")}xt(ht+1)}},At.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},At.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Et.flowChartWrp},At.createElement("div",{style:{display:"flex",height:"100%"}},At.createElement("div",{style:{width:"300px",height:"100%"}},At.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),At.createElement("div",{style:{height:"calc(100% - 50px)"},className:Et.myPaletteDiv,ref:it})),At.createElement("div",{style:{flex:1,position:"relative"}},At.createElement("div",{ref:He,style:{height:"80vh"}}))),At.createElement("div",{className:"tr"},At.createElement($e.ZP,{size:"large",onClick:Nn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var jt=ln,Cn=ie(5112),En=ie(5871);const rn=Cn.ZP.Group,Tn={margin:"0 8px"};var Yt=({callback:ce,onCancel:Pe})=>{function se(He){ce(He)}return ae.createElement(ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Tn},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Tn},"\u884C\u6570"),ae.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(En.Z,null)),ae.createElement("span",{style:Tn},"\u5217\u6570"),ae.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(En.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Tn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(ue.default.Item,{name:"align"},ae.createElement(rn,null,ae.createElement(Cn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Cn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Cn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Cn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement($e.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Gn=ie(78673),Sa=ie(5559),ha=ie.n(Sa),fa=(0,ae.forwardRef)(({use3d:ce,width:Pe,height:se,callback:He,showSaveButton:it},at)=>{const $t=(0,ae.useRef)(),ht=(0,ae.useRef)(),[xt,tn]=(0,ae.useState)(!1),Nn=(0,ae.useRef)({id:$t,appName:"graphing",width:Pe||1e3,height:se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{ht.current=new(ha())(Nn.current,!0),window.onload=function(){ht.current.inject("applet_container")}},[]);const _e=()=>{var Ct=window.ggbApplet.getPNGBase64(1,!0,72);return He&&He(Ct),Ct};return(0,ae.useEffect)(()=>{Nn.current.appName=xt?"3D":"graphing",ht.current.inject("applet_container")},[xt]),(0,ae.useEffect)(()=>{tn(ce)},[ce]),(0,ae.useImperativeHandle)(at,()=>({getImgData:_e})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:$t}),ae.createElement(Fe.Z,{align:"middle"},ae.createElement(st.Z,{flex:1},ae.createElement(Gn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:xt,onChange:Ct=>tn(Ct)})),ae.createElement(st.Z,null,ae.createElement($e.ZP,{size:"large",onClick:_e,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qn=ie(46531),he=ie(1012),Ee=ie(8591);const Re="link",Ve="upload-image",nt="add-flowchart",ft="draw-image",yt="add-flowchart",Pt="code-block",pt="add-table",Tt="------------",Dt={default:Tt,left:`:${Tt}`,center:`:${Tt}:`,right:`${Tt}:`};var Ht=ie(50505),sn=(ce,Pe,se)=>new Promise((He,it)=>{var at=xt=>{try{ht(se.next(xt))}catch(tn){it(tn)}},$t=xt=>{try{ht(se.throw(xt))}catch(tn){it(tn)}},ht=xt=>xt.done?He(xt.value):Promise.resolve(xt.value).then(at,$t);ht((se=se.apply(ce,Pe)).next())});function Ln(){}let yn=0;const en=1e4,Ut="\u2581",zn="@\u2581\u2581@",wn="@\u2581@",Fn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Jt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function $n(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const Wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",kn={[Wn+"-B"]:"bold",[Wn+"-I"]:"italic"},Jn={[Re]:"\u6DFB\u52A0\u94FE\u63A5",[Pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ve]:"\u6DFB\u52A0\u56FE\u7247",[ft]:"\u6DFB\u52A0\u753B\u56FE",[nt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[pt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:ce="",onChange:Pe,width:se="100%",height:He=400,miniToolbar:it=!1,isFocus:at=!1,watch:$t,insertTemp:ht,mode:xt="markdown",id:tn="markdown-editor-id",showResizeBar:Nn=!1,noStorage:_e=!1,showNullButton:Ct=!1,showNullProgramButton:bn=!1,hidetoolBar:In=!1,fullScreen:gn=!1,onBlur:le,onCMBeforeChange:ye,onFullScreen:Le,className:xe="",disablePaste:Me=!1,disabled:Ie=!1,disabledFill:ze=!1,placeholder:Ce="",values:mt="",extraUse:lt})=>{const[pe,Ot]=(0,ae.useState)(null),[zt,qt]=(0,ae.useState)(ce),[dn,ke]=(0,ae.useState)($t),[Je,dt]=(0,ae.useState)(gn),[Ye,wt]=(0,ae.useState)(""),[Bt,ut]=(0,ae.useState)(0),[Kt,Vt]=(0,ae.useState)(He),[ea,Un]=(0,ae.useState)(!1),Xn=(0,ae.useRef)((0,he.Z)()),ma=(0,ae.useRef)(!1),la=(0,ae.useRef)(),[sa,oa]=(0,ae.useState)(0),[Hn,un]=(0,ae.useState)(0),Vn=(0,ae.useRef)(),na=(0,ae.useRef)(),aa=(0,ae.useRef)(),Qn=(0,ae.useRef)(),Kn=()=>sn(void 0,null,function*(){var gt;const Ue=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Xn.current}});(gt=Ue==null?void 0:Ue.attachments)!=null&>.length&&(console.log("cm:",pe,Vn),Ue.attachments.map(et=>{et.content_type.indexOf("image")>-1?pe.replaceSelection(``):et.content_type.indexOf("video")>-1?pe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):et.content_type.indexOf("pdf")>-1?pe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type}&disposition=inline" target="_blank">${et.name}</a>`):pe.replaceSelection(`[${et.name}](${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type})`)}))});(0,ae.useEffect)(()=>{const gt=window.scrollY||window.pageYOffset;qt(mt),pe==null||pe.setValue(mt),window.scrollTo(0,gt)},[mt]),(0,ae.useEffect)(()=>{Le==null||Le(Je)},[Je]),(0,ae.useEffect)(()=>{if(Vn.current){let gt=function(et,rt){var Wt;if(Me){rt.preventDefault();return}const Pn=rt.clipboardData;if(Pn){const xn=Pn.types.toString(),pn=Pn.items;if(xn==="Files"||Pn.types.indexOf("Files")>-1){if(rt.preventDefault(),xt=="stex")return;try{let An=pn[1];((Wt=pn[0])==null?void 0:Wt.kind)==="file"&&(An=pn[0]);const Dn=An.getAsFile(),ga=Dn.name.split(".").pop();(0,fe.I)(Dn,jn=>{var Lt,kt,an;jn.id?((Lt=Dn==null?void 0:Dn.type)==null?void 0:Lt.indexOf("image"))>-1?Ue.replaceSelection(``):((kt=Dn==null?void 0:Dn.type)==null?void 0:kt.indexOf("video"))>-1?Ue.replaceSelection(`<video width="100%" controls src="/api/attachments/${jn.id}"></video>`):((an=Dn==null?void 0:Dn.type)==null?void 0:an.indexOf("pdf"))>-1?Ue.replaceSelection(`<a href="/api/attachments/${jn.id}?type=${Dn.type}&disposition=inline" target="_blank">${Dn.name}</a>`):Jt.includes(ga)?Ue.replaceSelection(`<a href="/api/attachments/${jn.id}?type=office&disposition=inline" target="_blank">${Dn.name}</a>`):Ue.replaceSelection(`[${Dn.name}](/api/attachments/${jn.id}?type=${jn.content_type})`):(jn==null?void 0:jn.status)===401&&(Ee.ZP.warning((jn==null?void 0:jn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(An){Ee.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ue=Ke().fromTextArea(Vn.current,{mode:xt,lineNumbers:!it,lineWrapping:!0,value:ce,autoCloseTags:!bn,autoCloseBrackets:!0});return Ue.on("keyup",function(et,rt){rt.keyCode===8&&(et.getValue()==""?Ue.setOption("placeholder",Ce):Ue.setOption("placeholder",null))}),Ue.on("keydown",function(et,rt){if(rt.keyCode===8){var Wt=vt(et);Wt&&rt.preventDefault()}}),at&&Ue.focus(),Ue.on("paste",gt),Ue.on("dragleave",function(et,rt){na.current.classList.remove("mouse-hover-md")}),Ie&&Ue.on("beforeChange",function(et,rt){(rt.origin==="paste"||rt.origin==="+input")&&rt.cancel()}),Ot(Ue),()=>{Ue.off("paste",gt)}}},[]);const ua=(0,ae.useCallback)(()=>{if(na.current)try{}catch(gt){console.log(gt,"---- to set md editor body height")}},[Kt,na,Je]);(0,ae.useEffect)(()=>{function gt(){let Ue=new Ge.Z(et=>{for(let rt of et)(rt.target.offsetHeight>0||rt.target.offsetWidth>0)&&(ua(),pe.setSize("100%","100%"),pe.refresh())});return Ue.observe(Vn.current.parentElement),Ue}if(pe){const Ue=gt();return()=>{var et,rt;(et=Vn.current)!=null&&et.parentElement&&Ue.unobserve((rt=Vn.current)==null?void 0:rt.parentElement)}}},[pe,ua]),(0,ae.useEffect)(()=>{if(pe){let gt=[];for(const[Ue,et]of Object.entries(kn)){let rt={[Ue]:()=>{cn(et)}};gt.push(rt),pe.addKeyMap(rt)}return la.current=setInterval(()=>{ma.current&&Kn()},4e3),()=>{clearInterval(la.current);for(let Ue of gt)pe.removeKeyMap(Ue)}}},[pe]),(0,ae.useEffect)(()=>{gn!==Je&&dt(gn)},[gn]),(0,Ht.Z)(()=>{if(!_e&&Bt>0){let gt=new Date().getTime(),Ue=window.sessionStorage.getItem(tn);gt>=Bt+en&&(!Ue||Ue!==zt)&&(window.sessionStorage.setItem(tn,zt),Un(!0))}},en),(0,ae.useEffect)(()=>{ke($t)},[pe,$t]),(0,ae.useEffect)(()=>{pe&&at&&pe.focus()},[pe,at]),(0,ae.useEffect)(()=>{if(dn&&pe){let gt=function(et){let rt=et.target;if(Qn.current){let Wt=rt.scrollTop/rt.scrollHeight;Qn.current.scrollTop=Qn.current.scrollHeight*Wt}};const Ue=pe.getScrollerElement();return Ue.addEventListener("scroll",gt),()=>{Ue.removeEventListener("scroll",gt)}}},[pe,dn]),(0,ae.useEffect)(()=>{if(pe&&ye){let gt=function(Ue,et){ye(Ue,et)};return pe.on("beforeChange",gt),()=>{pe.off("beforeChange",gt)}}},[pe,ye]),(0,ae.useEffect)(()=>{if(pe&&le){let gt=function(){le(pe.getValue())};return pe.on("blur",gt),()=>{pe.off("blur",gt)}}},[pe,le]);function vt(gt,Ue){var et=gt.getDoc(),rt=et.getCursor(),Wt=et.getLine(rt.line),Pn=Wt.charAt(rt.ch-1),xn=Wt.lastIndexOf("@\u2581@",rt.ch),pn=Wt.lastIndexOf("@\u2581\u2581@",rt.ch),An=xn>pn?xn:pn,Dn=xn>pn?3:4;if(zn.indexOf(Pn)===-1)return null;if(console.log("change1:",Ue,gt,Wt,rt,An,xn,pn,Pn),An>=0&&rt.ch-An<5){var ga=An+Dn;return et.replaceRange("",{line:rt.line,ch:An},{line:rt.line,ch:ga}),{line:rt.line,ch:ga}}return null}(0,ae.useEffect)(()=>{if(pe){let gt=function(Ue,et){const rt=Ue.getValue();qt(rt),ut(new Date().getTime()),Ue.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(bn?Pe(rt,Sn(rt)):Pe(rt))};return pe.on("change",gt),()=>{pe.off("change",gt)}}},[pe,Pe]),(0,ae.useEffect)(()=>{if(pe)if(ce==null)pe.setValue(""),qt("");else{const gt=window.scrollY||window.pageYOffset;ce!==pe.getValue()&&(pe.setValue(ce),qt(ce),pe.setCursor(Ie?1:pe.lineCount(),0),window.scrollTo(0,gt))}},[pe,ce]);const cn=(0,ae.useCallback)(gt=>{const Ue=pe.getCursor(),et=pe.getSelection();let rt=et.split(`
|
|
`);switch(gt){case"bold":return pe.replaceSelection("**"+et+"**"),et===""&&pe.setCursor(Ue.line,Ue.ch+2),pe.focus();case"italic":return pe.replaceSelection("*"+et+"*"),et===""&&pe.setCursor(Ue.line,Ue.ch+1),pe.focus();case"code":return pe.replaceSelection("`"+et+"`"),et===""&&pe.setCursor(Ue.line,Ue.ch+1),pe.focus();case"inline-latex":return wt("inline-latex"),pe.focus();case"latex":return pe.replaceSelection("```latex\n"+et+"\n```"),pe.setCursor(Ue.line+1,et.length+1),pe.focus();case"line-break":return pe.replaceSelection(`<br/>
|
|
`),pe.focus();case"list-ul":return et===""?pe.replaceSelection("- "+et):pe.replaceSelection(rt.map(Wt=>Wt===""?"":`- ${Wt}`).join(`
|
|
`)),pe.focus();case"list-ol":return et===""?pe.replaceSelection("1. "+et):pe.replaceSelection(rt.map((Wt,Pn)=>Wt===""?"":`${Pn+1}. ${Wt}`).join(`
|
|
`)),pe.focus();case"add-null-ch":return et===""&&pe.setCursor(Ue.line,Ue.ch),pe.replaceSelection(Ut),pe.focus();case"add-signal":return et===""&&pe.setCursor(Ue.line,Ue.ch),pe.replaceSelection(wn),pe.focus();case"add-multiple":return et===""&&pe.setCursor(Ue.line,Ue.ch),pe.replaceSelection(zn),pe.focus();case"inster-template-1":return et===""&&pe.setCursor(Ue.line,Ue.ch),pe.replaceSelection(Fn),pe.focus();case"eraser":return pe.setValue(""),pe.focus();case"trigger-watch":return ke(!dn),pe.focus();case"trigger-full-screen":return dt(!Je),pe.focus();case Re:wt(Re);return;case Pt:wt(Pt);return;case Ve:wt(Ve);return;case ft:wt(ft);return;case"maths-latex":wt("maths-latex");return;case nt:wt(nt);return;case pt:wt(pt);return;default:throw new Error}},[pe,dn,Je]),hn=(0,ae.useCallback)((gt,Ue)=>{var et,rt,Wt,Pn,xn,pn;switch(wt(""),Ye){case Re:const{title:Lt,link:kt}=gt;return pe.replaceSelection(`[${Lt}](${kt})`),pe.focus();case Pt:const{language:an,content:Mt}=gt;return pe.replaceSelection(["```"+an,Mt,"```"].join(`
|
|
`)),pe.focus();case"maths-latex":for(var An=atob(gt),Dn=new Uint8Array(An.length),ga=0;ga<An.length;ga++)Dn[ga]=An.charCodeAt(ga);var jn=new Blob([Dn],{type:"image/png"});(0,fe.I)(jn,ia=>{ia.id?pe.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pe.replaceSelection("`$$"+gt+"$$`");break;case Ve:case ft:case yt:const{src:Xt,alt:On}=gt,Bn=Ue,ca=(Wt=(rt=(et=Bn==null?void 0:Bn.name)==null?void 0:et.split("."))==null?void 0:rt.pop)==null?void 0:Wt.call(rt);return((Pn=Bn==null?void 0:Bn.type)==null?void 0:Pn.indexOf("image"))>-1||!(Bn!=null&&Bn.type)?On?pe.replaceSelection(``):pe.replaceSelection(``):((xn=Bn==null?void 0:Bn.type)==null?void 0:xn.indexOf("video"))>-1?pe.replaceSelection(`<video width="100%" controls src="${Xt}"></video>`):((pn=Bn==null?void 0:Bn.type)==null?void 0:pn.indexOf("pdf"))>-1?pe.replaceSelection(`<a href="${Xt}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):Jt.includes(ca)?pe.replaceSelection(`<a href="${Xt}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):pe.replaceSelection(`[${Bn.name}](${Xt})`),pe.focus();case pt:const{row:da,col:Fa,align:Ca}=gt;let ba=`
|
|
`;for(let ia=0;ia<da;ia++){let Ba=[],Ea=[];for(let xa=0;xa<Fa;xa++)ia===1&&Ea.push(Dt[Ca]),Ba.push(" ");ia===1&&(ba+=`| ${Ea.join(" | ")} |
|
|
`),ba+=`| ${Ba.join(Fa===1?"":" | ")} |
|
|
`}return pe.replaceSelection(ba+`
|
|
`),pe.focus();default:throw new Error}},[pe,Ye]),Rn=(0,ae.useMemo)(()=>{switch(Ye){case Re:return ae.createElement(Mn,{callback:hn,onCancel:_n});case Pt:return ae.createElement(vn.Z,{callback:hn,onCancel:_n});case Ve:return ae.createElement(fe.Z,{callback:hn,onCancel:_n});case nt:return ae.createElement(jt,{callback:hn,onCancel:_n});case pt:return ae.createElement(Yt,{callback:hn,onCancel:_n});case"maths-latex":return ae.createElement(fa,{showSaveButton:!0,callback:hn});case"inline-latex":return ae.createElement(qn.Z,{showSaveButton:!0,callback:hn});default:return null}},[Ye]);function _n(){wt("")}(0,ae.useEffect)(()=>{if(aa.current){let gt=function(xn){Wt=!0,Pn=xn.pageY},Ue=function(){Wt=!1},et=function(xn){if(Wt){let pn=xn.pageY-Pn;pn<0&&(pn=0),pn>300&&(pn=300);let An=He+pn+"px";Vt(An)}},rt=aa.current,Wt=!1,Pn=0;return rt.addEventListener("mousedown",gt),document.addEventListener("mousemove",et),document.addEventListener("mouseup",Ue),()=>{rt.removeEventListener("mousedown",gt),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",Ue)}}},[pe,aa]),(0,ae.useEffect)(()=>{Vt(He)},[He]);const ta=$n(se),pa=$n(Kt),Pa={width:ta,height:pa},fn=(0,ae.useMemo)(()=>{if(Bt){let gt=new Date(Bt),Ue=gt.getHours(),et=gt.getMinutes(),rt=gt.getSeconds();return Ue=Ue<10?"0"+Ue:Ue,et=et<10?"0"+et:et,rt=rt<10?"0"+rt:rt,`${Ue}:${et}:${rt}`}return 0},[Bt]),Sn=gt=>{const Ue=[];if(bn){let et=-1;gt=gt.replace(/(@▁▁@|@▁@)/g,function(rt,Wt,Pn){Ue.push({multiLine:rt!==wn})})}return Ue};function ra(){window.sessionStorage.removeItem(tn),Un(!1),ut(0)}function La(){Un(!1),ut(0),pe.setValue(window.sessionStorage.getItem(tn))}(0,ae.useEffect)(()=>{Jn[Ye]&&Ye!==ft&&Ye!==nt&&setTimeout(()=>{const gt=document.getElementsByClassName("markdown-popup-form")[0],Ue=window.innerWidth/2-gt.offsetWidth/2,et=window.innerHeight/2-gt.offsetHeight/2;oa(Ue),un(et)},0)},[Ye]);const ya=gt=>{gt.preventDefault();const Ue=gt.clientX-sa,et=gt.clientY-Hn;document.body.onmousemove=rt=>{let Wt=rt.clientX-Ue,Pn=rt.clientY-et;const xn=document.getElementsByClassName("markdown-popup-form")[0],pn=window.innerWidth-xn.offsetWidth,An=window.innerHeight-xn.offsetHeight;Wt=Math.max(0,Math.min(Wt,pn)),Pn=Math.max(0,Math.min(Pn,An)),wa(rt.clientX,rt.clientY,Ue,et)&&(oa(Wt),un(Pn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(gt,Ue,et,rt)=>{const Wt=document.body.clientHeight,Pn=document.body.clientWidth;return gt<20&&et>gt||gt>Pn-20&&et<gt||Ue<20&&rt>Ue||Ue>Wt-20&&rt<Ue?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:na},ae.createElement("div",{className:`markdown-editor-container ${xe} ${dn?"on-preview":""} ${it?"mini":""} ${Je?"full-screen":""}`,style:Pa},ae.createElement(ge,{insertTemp:ht,watch:dn,fullScreen:Je,showNullButton:Ct,showNullProgramButton:bn,onActionCallback:cn,hidetoolBar:In,extraUse:lt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Vn,placeholder:Ce})),dn?ae.createElement("div",{ref:Qn,className:"preview-container"},xt==="stex"&&ae.createElement(Qe,{value:zt}),xt!=="stex"&&ae.createElement(ot.Z,{disabledFill:ze,showProgramFill:bn,value:zt})):null))),Nn?ae.createElement("a",{ref:aa,className:"editor-resize"}):null,Ye===ft&&ae.createElement(qe,{callback:hn,onCancel:_n}),Ye===nt&&ae.createElement(jt,{callback:hn,onCancel:_n}),ae.createElement(Se.Z,null,Jn[Ye]&&Ye!==ft&&Ye!==nt?ae.createElement(Ne.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:sa,top:Hn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},Jn[Ye]),open:!0,onCancel:_n,footer:null,destroyOnClose:!0,width:Ye===nt?"1200px":null,height:Ye===nt?"80vh":null,className:"markdown-popup-form"},Rn):null))}},56030:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return ee},I:function(){return oe}});var ae=ie(78241),De=ie(8591),Ke=ie(92832),Ge=ie(3113),ve=ie(49291),we=ie(59301),me=ie(73898),Ae=ie(59301),Te=Object.defineProperty,je=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(re,ge,Se)=>ge in re?Te(re,ge,{enumerable:!0,configurable:!0,writable:!0,value:Se}):re[ge]=Se,y=(re,ge)=>{for(var Se in ge||(ge={}))Xe.call(ge,Se)&&a(re,Se,ge[Se]);if(Qe)for(var Se of Qe(ge))ne.call(ge,Se)&&a(re,Se,ge[Se]);return re},E=(re,ge)=>je(re,ot(ge));const{useForm:b}=ae.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:re,onCancel:ge})=>{const[Se]=b();let ue=(0,we.useRef)();function Oe(Ft){re(Ft,ue.current)}function $e(Ft,Zt){if(Ft.status===-1){De.ZP.error(Ft.message);return}Se.setFieldsValue({src:`/api/attachments/${Ft.id}`,type:Zt.type})}function St(Ft){let Zt=Ft.target.files[0];ue.current=Zt,oe(Zt,$e)}return Ae.createElement(ae.default,E(y({form:Se},z),{className:"upload-image-panel",onFinish:Oe,style:{width:470,overflow:"hidden"}}),Ae.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ae.createElement("div",{className:"flex-container"},Ae.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ae.createElement(Ke.default,{style:x})),Ae.createElement(te,{onFileChange:St}))),Ae.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ae.createElement(Ke.default,{style:{width:264}})),Ae.createElement(ae.default.Item,{style:{textAlign:"right"}},Ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ae.createElement(Ge.ZP,{type:"default",onClick:ge},"\u53D6\u6D88")))};function te({onFileChange:re}){return Ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ae.createElement("input",{type:"file",onChange:re}))}function oe(re,ge){if(!re)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,me.bg)())throw De.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Se=new FormData;Se.append("editormd-image-file",re),Se.append("file_param_name","editormd-image-file"),Se.append("byxhr","true");var ue=new window.XMLHttpRequest;ue.withCredentials=!0,ue.addEventListener("load",function(Oe){ge(JSON.parse(Oe.target.responseText),re)},!1),ue.addEventListener("error",function(Oe){console.error(Oe)},!1),ue.open("POST",`${ve.KI}/api/attachments.json`),ue.send(Se)}},19647:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return Ke}});var ae=ie(59301),De=ie(4676);class Ke extends ae.Component{constructor(ve){super(ve);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,De.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50505:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return De}});var ae=ie(59301);function De(Ke,Ge){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Ke}),(0,ae.useEffect)(()=>{function we(){ve.current()}if(Ge!==null){let me=setInterval(we,Ge);return()=>clearInterval(me)}},[Ge])}},28258:function(be,tt,ie){"use strict";ie.r(tt),ie.d(tt,{default:function(){return Ne}});var ae=ie(59301),De=ie(71418),Ke=ie(74949),Ge=ie(24459),ve=ie(24905),we=ie(54580),me=ie(78241),Ae=ie(8591),Te=ie(43418),je=ie(92832),ot=ie(3113),Qe=ie(61481),Xe=ie(38446),ne=ie(64726),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Fe,We,Be)=>We in Fe?a(Fe,We,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Fe[We]=Be,te=(Fe,We)=>{for(var Be in We||(We={}))x.call(We,Be)&&ee(Fe,Be,We[Be]);if(b)for(var Be of b(We))z.call(We,Be)&&ee(Fe,Be,We[Be]);return Fe},oe=(Fe,We)=>y(Fe,E(We)),re=(Fe,We)=>{var Be={};for(var qe in Fe)x.call(Fe,qe)&&We.indexOf(qe)<0&&(Be[qe]=Fe[qe]);if(Fe!=null&&b)for(var qe of b(Fe))We.indexOf(qe)<0&&z.call(Fe,qe)&&(Be[qe]=Fe[qe]);return Be};const ge=ve.default.Group,{Dragger:Se}=we.default;function ue(Fe,We){const Be=new FileReader;Be.addEventListener("load",()=>We(Be.result)),Be.readAsDataURL(Fe)}var Oe=({callback:Fe,tags:We=[],initialValues:Be={},removeAttachment:qe})=>{const[de,Ze]=(0,ae.useState)(""),[ct]=me.default.useForm();function _t(Gt){const ln=Gt,{cover_id:jt,attachment_ids:Cn}=ln,En=re(ln,["cover_id","attachment_ids"]);Fe(oe(te({},En),{cover_id:jt==null?void 0:jt.map(rn=>rn.response?rn.response.id:rn.uid)[(jt==null?void 0:jt.length)-1],attachment_ids:Cn?Cn==null?void 0:Cn.map(rn=>rn.response?rn.response.id:rn.uid):[]}))}function st(Gt){return Array.isArray(Gt)?Gt:Gt&&Gt.fileList}const Qt={multiple:!0,beforeUpload:Gt=>{const ln=Gt.size/1024/1024<100;if(!ln)return Ae.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(100MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),ln},action:`${Xe.Z.API_SERVER}/api/attachments.json`,onRemove:Gt=>{Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>qe(Gt.response?Gt.response.id:Gt.uid),onCancel:()=>!1})}};function Et(Gt){Gt.file.status==="done"&&ue(Gt.file.originFileObj,ln=>Ze(ln))}const At={showUploadList:!1,withCredentials:!0,action:`${Xe.Z.API_SERVER}/api/attachments.json`,onChange:Et};return(0,ae.useEffect)(()=>{Be.title&&(ct.setFieldsValue(Be),Be.cover_id.length>0&&Ze(Xe.Z.IMG_SERVER+Be.cover_id[0].url))},[Be]),ae.createElement(me.default,{form:ct,initialValues:Be,className:"moop-panel",style:{marginBottom:20},onFinish:_t},ae.createElement(me.default.Item,{label:"\u6807\u9898",name:"title",extra:ae.createElement("div",{className:"tip"},"\u7B80\u660E\u627C\u8981\u4ECB\u7ECD\u6587\u6863/\u89C6\u9891\u6240\u5305\u542B\u7684\u4E3B\u8981\u7684\u5185\u5BB9"),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(je.default,{placeholder:"\u4F8B\u5982\uFF1A\u8F6F\u4EF6\u5DE5\u7A0B\u6559\u5B66\u6848\u4F8B"})),ae.createElement("div",{className:"flex-container"},ae.createElement(me.default.Item,{label:"\u4F5C\u8005",name:"author_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u540D\u79F0"}]},ae.createElement(je.default,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",style:{marginRight:20,width:200}})),ae.createElement(me.default.Item,{name:"author_school_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0"}]},ae.createElement(je.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0",style:{width:200}}))),ae.createElement(me.default.Item,{name:"tag_ids",label:"\u6807\u7B7E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u6807\u7B7E"}]},ae.createElement(ge,null,We.map(Gt=>ae.createElement(ve.default,{key:Gt.id,value:Gt.id}," ",Gt.name," ")))),ae.createElement(me.default.Item,{name:"publish",valuePropName:"checked"},ae.createElement(ve.default,null,"\u662F\u5426\u7533\u8BF7\u53D1\u5E03")),ae.createElement(me.default.Item,{name:"content",label:"\u63CF\u8FF0",valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ae.createElement(ne.Z,{id:"moop_cases_content",height:400})),ae.createElement(me.default.Item,{name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:st},ae.createElement(Se,te({},Qt),ae.createElement("p",{className:"c-blue",style:{marginBottom:10,fontSize:18}},"\u4E0A\u4F20\u9644\u4EF6"),ae.createElement("p",{className:"c-grey-c"},"\u4ECE\u6211\u7684\u7535\u8111\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u6863\uFF1A\u6309\u4F4FCTRL\u53EF\u4EE5\u4E0A\u4F20\u591A\u4EFD\u6587\u6863\u3002\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\uFF1A100MB"))),ae.createElement(me.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE",extra:"\u4E0A\u4F20\u5C3A\u5BF8\uFF1A120*90 px",getValueFromEvent:st,valuePropName:"fileList",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE"}]},ae.createElement(we.default,te({},At),de?ae.createElement("img",{src:de,width:120}):ae.createElement("a",{title:"\u4E0A\u4F20\u5C01\u9762\u56FE",className:"upload-cover"}," ",ae.createElement(Qe.Z,null)," "))),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u5BA1\u6838\u8BF4\u660E"),ae.createElement("p",null," \u5E73\u53F0\u7BA1\u7406\u5458\u5C06\u5BF9\u6BCF\u5929\u65B0\u4E0A\u4F20\u7684\u6587\u6863\u8FDB\u884C\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u7684\u6587\u6863\u5C06\u516C\u5F00\u663E\u793A\uFF0C\u5426\u5219\u5C06\u79C1\u6709\u5316\u6216\u79FB\u9664 ")),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u6E29\u99A8\u63D0\u793A"),ae.createElement("ul",{style:{padding:0}},ae.createElement("li",null,"1.\u8BF7\u52FF\u4E0A\u4F20\u5DF2\u8BBE\u7F6E\u52A0\u5BC6\u53E3\u4EE4\u7684\u6587\u6863\u8D44\u6E90\uFF1B"),ae.createElement("li",null,"2.\u53EF\u4EE5\u4E0A\u4F20\u7B26\u5408\u6559\u5B66\u6848\u4F8B\u6807\u51C6\u7684\u6587\u6863\u8D44\u6599\uFF0C\u5982",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34799",target:"_blank"}," \u6848\u4F8B\u5165\u5E93\u6807\u51C6 ")," \u3001",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34798",target:"_blank"},"\u6848\u4F8B\u4F7F\u7528\u8BF4\u660E\u4E66"),"\u4EE5\u53CA\u5176\u4ED6\u8D44\u6599\u7B49\uFF0C\u4E0A\u4F20\u652F\u6301\u7684\u6587\u4EF6\u6700\u5927\u5BB9\u91CF\uFF1A100MB\uFF1B"),ae.createElement("li",null,"3.\u8BF7\u786E\u4FDD\u4E0A\u4F20\u5185\u5BB9\u65E0\u4FB5\u6743\u6216\u8FDD\u53CD\u56FD\u5BB6\u5173\u4E8E\u4E92\u8054\u7F51\u653F\u7B56\u7684\u4E0D\u826F\u884C\u4E3A\uFF1B"),ae.createElement("li",null,"4.\u8BF7\u4F7F\u7528Chrome\uFF0CFirefox\uFF0CSafari\uFF0CIE11\uFF08\u53CA\u4EE5\u4E0A\u7248\u672C\uFF09\u6D4F\u89C8\u5668\uFF1B"))),ae.createElement(me.default.Item,{style:{marginTop:10}},ae.createElement(ot.ZP,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4")))},$e=ie(59674),St=Object.defineProperty,Ft=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,mn=(Fe,We,Be)=>We in Fe?St(Fe,We,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Fe[We]=Be,nn=(Fe,We)=>{for(var Be in We||(We={}))Rt.call(We,Be)&&mn(Fe,Be,We[Be]);if(It)for(var Be of It(We))Nt.call(We,Be)&&mn(Fe,Be,We[Be]);return Fe},bt=(Fe,We)=>Ft(Fe,Zt(We)),on=(Fe,We,Be)=>new Promise((qe,de)=>{var Ze=st=>{try{_t(Be.next(st))}catch(Qt){de(Qt)}},ct=st=>{try{_t(Be.throw(st))}catch(Qt){de(Qt)}},_t=st=>st.done?qe(st.value):Promise.resolve(st.value).then(Ze,ct);_t((Be=Be.apply(Fe,We)).next())});const Mn={loading:!1,data:{},tags:[]};var vn=(Fe=>(Fe[Fe.GET_DATA=0]="GET_DATA",Fe[Fe.SET_LOADING=1]="SET_LOADING",Fe[Fe.GET_TAGS=2]="GET_TAGS",Fe))(vn||{});function fe(Fe,We){switch(We.type){case 0:return nn(nn({},Fe),We.payload);case 2:return bt(nn({},Fe),{tags:We.payload});case 1:return bt(nn({},Fe),{loading:We.payload});default:throw new Error}}var Ne=()=>{const{caseId:Fe}=(0,Ge.useParams)(),[We,Be]=(0,ae.useReducer)(fe,Mn),{loading:qe,tags:de,data:Ze}=We;(0,ae.useEffect)(()=>{function st(){return on(this,null,function*(){const Qt=yield(0,$e.rO)({tab_module_type:"moop_cases"});Qt.un_purchased&&Be({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Be({type:2,payload:Qt.library_tags})})}st()},[]),(0,ae.useEffect)(()=>{let st=!1;function Qt(){return on(this,null,function*(){Be({type:1,payload:!1});let Et=yield(0,$e.$J)(Fe);const{author_name:At,author_school_name:Gt,content:ln,cover:jt,attachments:Cn,status:En,title:rn,tags:Tn}=Et;st||(Et.status===404?Ge.history.push("/moop_cases"):Be({type:0,payload:{data:{title:rn,author_name:At,author_school_name:Gt,content:ln,tag_ids:Tn.map(Yt=>Yt.id),publish:En==="published",attachment_ids:Cn.map(Yt=>({uid:Yt.id,id:Yt.id,name:Yt.title,url:Yt.url,filesize:Yt.filesize,status:"done"})),cover_id:jt!=null&&jt.id?[{uid:jt==null?void 0:jt.id,id:jt==null?void 0:jt.id,name:jt==null?void 0:jt.title,url:jt==null?void 0:jt.url,filesize:jt==null?void 0:jt.filesize,status:"done"}]:[]},loading:!1}}))})}return!st&&Fe&&Qt(),()=>{st=!0}},[Fe]);function ct(st){return on(this,null,function*(){if(Fe)yield(0,$e.bN)(Fe,st),Ge.history.push(`/moop_cases/${Fe}/publish-success`);else{const{id:Qt}=yield(0,$e.jP)(st);Qt&&Ge.history.push(`/moop_cases/${Qt}/publish-success`)}})}const _t={initialValues:Ze,tags:de,removeAttachment:$e.JZ,callback:ct};return ae.createElement(De.Z,{spinning:qe,delay:500},ae.createElement("div",{className:"moop-info"},ae.createElement("div",{className:"crumb"},ae.createElement(Ge.Link,{to:"/moop_cases"},"\u6559\u5B66\u6848\u4F8B > "),ae.createElement("span",null,"\u65B0\u5EFA")),ae.createElement("div",{className:"title"},ae.createElement("h2",null,"\u4E0A\u4F20\u6559\u5B66\u6848\u4F8B"),ae.createElement(Ge.Link,{to:"/moop_cases"},"\u8FD4\u56DE")),ae.createElement(Oe,nn({},_t))))}},59674:function(be,tt,ie){"use strict";ie.d(tt,{$J:function(){return Ke},JZ:function(){return ve},bN:function(){return me},jP:function(){return we},rO:function(){return Ge}});var ae=ie(7660),De=(Ae,Te,je)=>new Promise((ot,Qe)=>{var Xe=y=>{try{a(je.next(y))}catch(E){Qe(E)}},ne=y=>{try{a(je.throw(y))}catch(E){Qe(E)}},a=y=>y.done?ot(y.value):Promise.resolve(y.value).then(Xe,ne);a((je=je.apply(Ae,Te)).next())});function Ke(Ae){return(0,ae.U2)(`libraries/${Ae}.json`)}function Ge(Ae){return(0,ae.U2)("library_tags.json",Ae)}function ve(Ae){return De(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ae}.json`)).status===0})}function we(Ae){return(0,ae.v_)("libraries.json",Ae)}function me(Ae,Te){return(0,ae.gz)(`libraries/${Ae}.json`,Te)}},56762:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return De}});var ae=ie(59301);function De(){const[,Ke]=ae.useReducer(Ge=>Ge+1,0);return Ke}},24905:function(be,tt,ie){"use strict";ie.d(tt,{default:function(){return re}});var ae=ie(92310),De=ie.n(ae),Ke=ie(5630),Ge=ie(59301),ve=ie(36355),we=ie(1684),me=ie(32441),Te=Ge.createContext(null),je=ie(98447),ot=ie(14088),Qe=ie(4572),Xe=function(ge,Se){var ue={};for(var Oe in ge)Object.prototype.hasOwnProperty.call(ge,Oe)&&Se.indexOf(Oe)<0&&(ue[Oe]=ge[Oe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Oe=Object.getOwnPropertySymbols(ge);$e<Oe.length;$e++)Se.indexOf(Oe[$e])<0&&Object.prototype.propertyIsEnumerable.call(ge,Oe[$e])&&(ue[Oe[$e]]=ge[Oe[$e]]);return ue};const ne=(ge,Se)=>{var ue;const{prefixCls:Oe,className:$e,rootClassName:St,children:Ft,indeterminate:Zt=!1,style:It,onMouseEnter:Rt,onMouseLeave:Nt,skipGroup:mn=!1,disabled:nn}=ge,bt=Xe(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:on,direction:Mn,checkbox:vn}=Ge.useContext(ve.E_),fe=Ge.useContext(Te),{isFormItemInput:Ne}=Ge.useContext(me.aM),Fe=Ge.useContext(we.Z),We=(ue=(fe==null?void 0:fe.disabled)||nn)!==null&&ue!==void 0?ue:Fe,Be=Ge.useRef(bt.value);Ge.useEffect(()=>{fe==null||fe.registerValue(bt.value)},[]),Ge.useEffect(()=>{if(!mn)return bt.value!==Be.current&&(fe==null||fe.cancelValue(Be.current),fe==null||fe.registerValue(bt.value),Be.current=bt.value),()=>fe==null?void 0:fe.cancelValue(bt.value)},[bt.value]);const qe=on("checkbox",Oe),[de,Ze]=(0,je.ZP)(qe),ct=Object.assign({},bt);fe&&!mn&&(ct.onChange=function(){bt.onChange&&bt.onChange.apply(bt,arguments),fe.toggleOption&&fe.toggleOption({label:Ft,value:bt.value})},ct.name=fe.name,ct.checked=fe.value.includes(bt.value));const _t=De()(`${qe}-wrapper`,{[`${qe}-rtl`]:Mn==="rtl",[`${qe}-wrapper-checked`]:ct.checked,[`${qe}-wrapper-disabled`]:We,[`${qe}-wrapper-in-form-item`]:Ne},vn==null?void 0:vn.className,$e,St,Ze),st=De()({[`${qe}-indeterminate`]:Zt},Qe.A,Ze),Qt=Zt?"mixed":void 0;return de(Ge.createElement(ot.Z,{component:"Checkbox",disabled:We},Ge.createElement("label",{className:_t,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),It),onMouseEnter:Rt,onMouseLeave:Nt},Ge.createElement(Ke.Z,Object.assign({"aria-checked":Qt},ct,{prefixCls:qe,className:st,disabled:We,ref:Se})),Ft!==void 0&&Ge.createElement("span",null,Ft))))};var y=Ge.forwardRef(ne),E=ie(26407),b=ie(2738),x=function(ge,Se){var ue={};for(var Oe in ge)Object.prototype.hasOwnProperty.call(ge,Oe)&&Se.indexOf(Oe)<0&&(ue[Oe]=ge[Oe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Oe=Object.getOwnPropertySymbols(ge);$e<Oe.length;$e++)Se.indexOf(Oe[$e])<0&&Object.prototype.propertyIsEnumerable.call(ge,Oe[$e])&&(ue[Oe[$e]]=ge[Oe[$e]]);return ue};const z=(ge,Se)=>{const{defaultValue:ue,children:Oe,options:$e=[],prefixCls:St,className:Ft,rootClassName:Zt,style:It,onChange:Rt}=ge,Nt=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:mn,direction:nn}=Ge.useContext(ve.E_),[bt,on]=Ge.useState(Nt.value||ue||[]),[Mn,vn]=Ge.useState([]);Ge.useEffect(()=>{"value"in Nt&&on(Nt.value||[])},[Nt.value]);const fe=Ge.useMemo(()=>$e.map(Et=>typeof Et=="string"||typeof Et=="number"?{label:Et,value:Et}:Et),[$e]),Ne=Et=>{vn(At=>At.filter(Gt=>Gt!==Et))},Fe=Et=>{vn(At=>[].concat((0,E.Z)(At),[Et]))},We=Et=>{const At=bt.indexOf(Et.value),Gt=(0,E.Z)(bt);At===-1?Gt.push(Et.value):Gt.splice(At,1),"value"in Nt||on(Gt),Rt==null||Rt(Gt.filter(ln=>Mn.includes(ln)).sort((ln,jt)=>{const Cn=fe.findIndex(rn=>rn.value===ln),En=fe.findIndex(rn=>rn.value===jt);return Cn-En}))},Be=mn("checkbox",St),qe=`${Be}-group`,[de,Ze]=(0,je.ZP)(Be),ct=(0,b.Z)(Nt,["value","disabled"]),_t=$e.length?fe.map(Et=>Ge.createElement(y,{prefixCls:Be,key:Et.value.toString(),disabled:"disabled"in Et?Et.disabled:Nt.disabled,value:Et.value,checked:bt.includes(Et.value),onChange:Et.onChange,className:`${qe}-item`,style:Et.style,title:Et.title},Et.label)):Oe,st={toggleOption:We,value:bt,disabled:Nt.disabled,name:Nt.name,registerValue:Fe,cancelValue:Ne},Qt=De()(qe,{[`${qe}-rtl`]:nn==="rtl"},Ft,Zt,Ze);return de(Ge.createElement("div",Object.assign({className:Qt,style:It},ct,{ref:Se}),Ge.createElement(Te.Provider,{value:st},_t)))},ee=Ge.forwardRef(z);var te=Ge.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var re=oe},98447:function(be,tt,ie){"use strict";ie.d(tt,{C2:function(){return ve}});var ae=ie(17313),De=ie(37613),Ke=ie(83116);const Ge=we=>{const{checkboxCls:me}=we,Ae=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Ae]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ae}`]:{marginInlineStart:0},[`&${Ae}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
|
|
${Ae}:not(${Ae}-disabled),
|
|
${me}:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{borderColor:we.colorPrimary}},[`${Ae}:not(${Ae}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
|
|
${Ae}-checked:not(${Ae}-disabled),
|
|
${me}-checked:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ae}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:we.colorTextDisabled}}}]};function ve(we,me){const Ae=(0,De.TS)(me,{checkboxCls:`.${we}`,checkboxSize:me.controlInteractiveSize});return[Ge(Ae)]}tt.ZP=(0,Ke.Z)("Checkbox",(we,me)=>{let{prefixCls:Ae}=me;return[ve(Ae,we)]})},93948:function(be,tt,ie){"use strict";ie.d(tt,{Z:function(){return qn}});var ae=ie(59301),De=ie(29679),Ke=ie(40001),Ge=ie(19248),ve=ie(99267),we=ie(92310),me=ie.n(we),Ae=ie(2738),Te=ie(36355),je=ie(92413),ot=ie(33708),Qe=ie(37061),Xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ee=(0,ae.useRef)([]),Re=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ve=Date.now(),nt=!1;Ee.current.forEach(function(ft){if(ft){nt=!0;var yt=ft.style;yt.transitionDuration=".3s, .3s, .3s, .06s",Re.current&&Ve-Re.current<100&&(yt.transitionDuration="0s, 0s")}}),nt&&(Re.current=Date.now())}),Ee.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ee){var Re=(0,ot.Z)((0,ot.Z)({},Xe),Ee),Ve=Re.className,nt=Re.percent,ft=Re.prefixCls,yt=Re.strokeColor,Pt=Re.strokeLinecap,pt=Re.strokeWidth,Tt=Re.style,Dt=Re.trailColor,Ht=Re.trailWidth,sn=Re.transition,Ln=(0,Qe.Z)(Re,a);delete Ln.gapPosition;var yn=Array.isArray(nt)?nt:[nt],en=Array.isArray(yt)?yt:[yt],Ut=ne(),zn=pt/2,wn=100-pt/2,Fn="M ".concat(Pt==="round"?zn:0,",").concat(zn,`
|
|
L `).concat(Pt==="round"?wn:100,",").concat(zn),Jt="0 0 100 ".concat(pt),$n=0;return ae.createElement("svg",(0,je.Z)({className:me()("".concat(ft,"-line"),Ve),viewBox:Jt,preserveAspectRatio:"none",style:Tt},Ln),ae.createElement("path",{className:"".concat(ft,"-line-trail"),d:Fn,strokeLinecap:Pt,stroke:Dt,strokeWidth:Ht||pt,fillOpacity:"0"}),yn.map(function(Yn,Wn){var kn=1;switch(Pt){case"round":kn=1-pt/100;break;case"square":kn=1-pt/2/100;break;default:kn=1;break}var Jn={strokeDasharray:"".concat(Yn*kn,"px, 100px"),strokeDashoffset:"-".concat($n,"px"),transition:sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=en[Wn]||en[en.length-1];return $n+=Yn,ae.createElement("path",{key:Wn,className:"".concat(ft,"-line-path"),d:Fn,strokeLinecap:Pt,stroke:Zn,strokeWidth:pt,fillOpacity:"0",ref:function(Pe){Ut[Wn]=Pe},style:Jn})}))},E=y,b=ie(39559),x=ie(33606),z=ie(47273),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var re=function(he){var Ee=ae.useState(),Re=(0,x.Z)(Ee,2),Ve=Re[0],nt=Re[1];return ae.useEffect(function(){nt("rc_progress_".concat(oe()))},[]),he||Ve},ge=function(Ee){var Re=Ee.bg,Ve=Ee.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Re}},Ve)};function Se(he,Ee){return Object.keys(he).map(function(Re){var Ve=parseFloat(Re),nt="".concat(Math.floor(Ve*Ee),"%");return"".concat(he[Re]," ").concat(nt)})}var ue=ae.forwardRef(function(he,Ee){var Re=he.prefixCls,Ve=he.color,nt=he.gradientId,ft=he.radius,yt=he.style,Pt=he.ptg,pt=he.strokeLinecap,Tt=he.strokeWidth,Dt=he.size,Ht=he.gapDegree,sn=Ve&&(0,b.Z)(Ve)==="object",Ln=sn?"#FFF":void 0,yn=Dt/2,en=ae.createElement("circle",{className:"".concat(Re,"-circle-path"),r:ft,cx:yn,cy:yn,stroke:Ln,strokeLinecap:pt,strokeWidth:Tt,opacity:Pt===0?0:1,style:yt,ref:Ee});if(!sn)return en;var Ut="".concat(nt,"-conic"),zn=Ht?"".concat(180+Ht/2,"deg"):"0deg",wn=Se(Ve,(360-Ht)/360),Fn=Se(Ve,1),Jt="conic-gradient(from ".concat(zn,", ").concat(wn.join(", "),")"),$n="linear-gradient(to ".concat(Ht?"bottom":"top",", ").concat(Fn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ut},en),ae.createElement("foreignObject",{x:0,y:0,width:Dt,height:Dt,mask:"url(#".concat(Ut,")")},ae.createElement(ge,{bg:$n},ae.createElement(ge,{bg:Jt}))))}),Oe=ue,$e=100,St=function(Ee,Re,Ve,nt,ft,yt,Pt,pt,Tt,Dt){var Ht=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sn=Ve/100*360*((360-yt)/360),Ln=yt===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],yn=(100-nt)/100*Re;Tt==="round"&&nt!==100&&(yn+=Dt/2,yn>=Re&&(yn=Re-.01));var en=$e/2;return{stroke:typeof pt=="string"?pt:void 0,strokeDasharray:"".concat(Re,"px ").concat(Ee),strokeDashoffset:yn+Ht,transform:"rotate(".concat(ft+sn+Ln,"deg)"),transformOrigin:"".concat(en,"px ").concat(en,"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}},Ft=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(he){var Ee=he!=null?he:[];return Array.isArray(Ee)?Ee:[Ee]}var It=function(Ee){var Re=(0,ot.Z)((0,ot.Z)({},Xe),Ee),Ve=Re.id,nt=Re.prefixCls,ft=Re.steps,yt=Re.strokeWidth,Pt=Re.trailWidth,pt=Re.gapDegree,Tt=pt===void 0?0:pt,Dt=Re.gapPosition,Ht=Re.trailColor,sn=Re.strokeLinecap,Ln=Re.style,yn=Re.className,en=Re.strokeColor,Ut=Re.percent,zn=(0,Qe.Z)(Re,Ft),wn=$e/2,Fn=re(Ve),Jt="".concat(Fn,"-gradient"),$n=wn-yt/2,Yn=Math.PI*2*$n,Wn=Tt>0?90+Tt/2:-90,kn=Yn*((360-Tt)/360),Jn=(0,b.Z)(ft)==="object"?ft:{count:ft,space:2},Zn=Jn.count,ce=Jn.space,Pe=Zt(Ut),se=Zt(en),He=se.find(function(Nn){return Nn&&(0,b.Z)(Nn)==="object"}),it=He&&(0,b.Z)(He)==="object",at=it?"butt":sn,$t=St(Yn,kn,0,100,Wn,Tt,Dt,Ht,at,yt),ht=ne(),xt=function(){var _e=0;return Pe.map(function(Ct,bn){var In=se[bn]||se[se.length-1],gn=St(Yn,kn,_e,Ct,Wn,Tt,Dt,In,at,yt);return _e+=Ct,ae.createElement(Oe,{key:bn,color:In,ptg:Ct,radius:$n,prefixCls:nt,gradientId:Jt,style:gn,strokeLinecap:at,strokeWidth:yt,gapDegree:Tt,ref:function(ye){ht[bn]=ye},size:$e})}).reverse()},tn=function(){var _e=Math.round(Zn*(Pe[0]/100)),Ct=100/Zn,bn=0;return new Array(Zn).fill(null).map(function(In,gn){var le=gn<=_e-1?se[0]:Ht,ye=le&&(0,b.Z)(le)==="object"?"url(#".concat(Jt,")"):void 0,Le=St(Yn,kn,bn,Ct,Wn,Tt,Dt,le,"butt",yt,ce);return bn+=(kn-Le.strokeDashoffset+ce)*100/kn,ae.createElement("circle",{key:gn,className:"".concat(nt,"-circle-path"),r:$n,cx:wn,cy:wn,stroke:ye,strokeWidth:yt,opacity:1,style:Le,ref:function(Me){ht[gn]=Me}})})};return ae.createElement("svg",(0,je.Z)({className:me()("".concat(nt,"-circle"),yn),viewBox:"0 0 ".concat($e," ").concat($e),style:Ln,id:Ve,role:"presentation"},zn),!Zn&&ae.createElement("circle",{className:"".concat(nt,"-circle-trail"),r:$n,cx:wn,cy:wn,stroke:Ht,strokeLinecap:at,strokeWidth:Pt||yt,style:$t}),Zn?tn():xt())},Rt=It,Nt={Line:E,Circle:Rt},mn=ie(6848),nn=ie(93398);function bt(he){return!he||he<0?0:he>100?100:he}function on(he){let{success:Ee,successPercent:Re}=he,Ve=Re;return Ee&&"progress"in Ee&&(Ve=Ee.progress),Ee&&"percent"in Ee&&(Ve=Ee.percent),Ve}const Mn=he=>{let{percent:Ee,success:Re,successPercent:Ve}=he;const nt=bt(on({success:Re,successPercent:Ve}));return[nt,bt(bt(Ee)-nt)]},vn=he=>{let{success:Ee={},strokeColor:Re}=he;const{strokeColor:Ve}=Ee;return[Ve||nn.presetPrimaryColors.green,Re||null]},fe=(he,Ee,Re)=>{var Ve,nt,ft,yt;let Pt=-1,pt=-1;if(Ee==="step"){const Tt=Re.steps,Dt=Re.strokeWidth;typeof he=="string"||typeof he=="undefined"?(Pt=he==="small"?2:14,pt=Dt!=null?Dt:8):typeof he=="number"?[Pt,pt]=[he,he]:[Pt=14,pt=8]=he,Pt*=Tt}else if(Ee==="line"){const Tt=Re==null?void 0:Re.strokeWidth;typeof he=="string"||typeof he=="undefined"?pt=Tt||(he==="small"?6:8):typeof he=="number"?[Pt,pt]=[he,he]:[Pt=-1,pt=8]=he}else(Ee==="circle"||Ee==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[Pt,pt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[Pt,pt]=[he,he]:(Pt=(nt=(Ve=he[0])!==null&&Ve!==void 0?Ve:he[1])!==null&&nt!==void 0?nt:120,pt=(yt=(ft=he[0])!==null&&ft!==void 0?ft:he[1])!==null&&yt!==void 0?yt:120));return[Pt,pt]},Ne=3,Fe=he=>Ne/he*100;var Be=he=>{const{prefixCls:Ee,trailColor:Re=null,strokeLinecap:Ve="round",gapPosition:nt,gapDegree:ft,width:yt=120,type:Pt,children:pt,success:Tt,size:Dt=yt}=he,[Ht,sn]=fe(Dt,"circle");let{strokeWidth:Ln}=he;Ln===void 0&&(Ln=Math.max(Fe(Ht),6));const yn={width:Ht,height:sn,fontSize:Ht*.15+6},en=ae.useMemo(()=>{if(ft||ft===0)return ft;if(Pt==="dashboard")return 75},[ft,Pt]),Ut=nt||Pt==="dashboard"&&"bottom"||void 0,zn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",wn=vn({success:Tt,strokeColor:he.strokeColor}),Fn=me()(`${Ee}-inner`,{[`${Ee}-circle-gradient`]:zn}),Jt=ae.createElement(Rt,{percent:Mn(he),strokeWidth:Ln,trailWidth:Ln,strokeColor:wn,strokeLinecap:Ve,trailColor:Re,prefixCls:Ee,gapDegree:en,gapPosition:Ut});return ae.createElement("div",{className:Fn,style:yn},Ht<=20?ae.createElement(mn.Z,{title:pt},ae.createElement("span",null,Jt)):ae.createElement(ae.Fragment,null,Jt,pt))},qe=function(he,Ee){var Re={};for(var Ve in he)Object.prototype.hasOwnProperty.call(he,Ve)&&Ee.indexOf(Ve)<0&&(Re[Ve]=he[Ve]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ve=Object.getOwnPropertySymbols(he);nt<Ve.length;nt++)Ee.indexOf(Ve[nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ve[nt])&&(Re[Ve[nt]]=he[Ve[nt]]);return Re};const de=he=>{let Ee=[];return Object.keys(he).forEach(Re=>{const Ve=parseFloat(Re.replace(/%/g,""));isNaN(Ve)||Ee.push({key:Ve,value:he[Re]})}),Ee=Ee.sort((Re,Ve)=>Re.key-Ve.key),Ee.map(Re=>{let{key:Ve,value:nt}=Re;return`${nt} ${Ve}%`}).join(", ")},Ze=(he,Ee)=>{const{from:Re=nn.presetPrimaryColors.blue,to:Ve=nn.presetPrimaryColors.blue,direction:nt=Ee==="rtl"?"to left":"to right"}=he,ft=qe(he,["from","to","direction"]);if(Object.keys(ft).length!==0){const yt=de(ft);return{backgroundImage:`linear-gradient(${nt}, ${yt})`}}return{backgroundImage:`linear-gradient(${nt}, ${Re}, ${Ve})`}};var _t=he=>{const{prefixCls:Ee,direction:Re,percent:Ve,size:nt,strokeWidth:ft,strokeColor:yt,strokeLinecap:Pt="round",children:pt,trailColor:Tt=null,success:Dt}=he,Ht=yt&&typeof yt!="string"?Ze(yt,Re):{backgroundColor:yt},sn=Pt==="square"||Pt==="butt"?0:void 0,Ln={backgroundColor:Tt||void 0,borderRadius:sn},yn=nt!=null?nt:[-1,ft||(nt==="small"?6:8)],[en,Ut]=fe(yn,"line",{strokeWidth:ft}),zn=Object.assign({width:`${bt(Ve)}%`,height:Ut,borderRadius:sn},Ht),wn=on(he),Fn={width:`${bt(wn)}%`,height:Ut,borderRadius:sn,backgroundColor:Dt==null?void 0:Dt.strokeColor},Jt={width:en<0?"100%":en,height:Ut};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ee}-outer`,style:Jt},ae.createElement("div",{className:`${Ee}-inner`,style:Ln},ae.createElement("div",{className:`${Ee}-bg`,style:zn}),wn!==void 0?ae.createElement("div",{className:`${Ee}-success-bg`,style:Fn}):null)),pt)},Qt=he=>{const{size:Ee,steps:Re,percent:Ve=0,strokeWidth:nt=8,strokeColor:ft,trailColor:yt=null,prefixCls:Pt,children:pt}=he,Tt=Math.round(Re*(Ve/100)),Dt=Ee==="small"?2:14,Ht=Ee!=null?Ee:[Dt,nt],[sn,Ln]=fe(Ht,"step",{steps:Re,strokeWidth:nt}),yn=sn/Re,en=new Array(Re);for(let Ut=0;Ut<Re;Ut++){const zn=Array.isArray(ft)?ft[Ut]:ft;en[Ut]=ae.createElement("div",{key:Ut,className:me()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:Ut<=Tt-1}),style:{backgroundColor:Ut<=Tt-1?zn:yt,width:yn,height:Ln}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},en,pt)},Et=ie(93083),At=ie(17313),Gt=ie(83116),ln=ie(37613);const jt=he=>{const Ee=he?"100%":"-100%";return new Et.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Cn=he=>{const{componentCls:Ee,iconCls:Re}=he;return{[Ee]:Object.assign(Object.assign({},(0,At.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Ee}-outer`]:{display:"inline-block",width:"100%"},[`&${Ee}-show-info`]:{[`${Ee}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Ee}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.defaultColor}},[`${Ee}-success-bg, ${Ee}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Ee}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Ee}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Re]:{fontSize:he.fontSize}},[`&${Ee}-status-active`]:{[`${Ee}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:jt(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ee}-rtl${Ee}-status-active`]:{[`${Ee}-bg::before`]:{animationName:jt(!0)}},[`&${Ee}-status-exception`]:{[`${Ee}-bg`]:{backgroundColor:he.colorError},[`${Ee}-text`]:{color:he.colorError}},[`&${Ee}-status-exception ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.colorError}},[`&${Ee}-status-success`]:{[`${Ee}-bg`]:{backgroundColor:he.colorSuccess},[`${Ee}-text`]:{color:he.colorSuccess}},[`&${Ee}-status-success ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.colorSuccess}}})}},En=he=>{const{componentCls:Ee,iconCls:Re}=he;return{[Ee]:{[`${Ee}-circle-trail`]:{stroke:he.remainingColor},[`&${Ee}-circle ${Ee}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ee}-circle ${Ee}-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%)",[Re]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Ee}-circle&-status-exception`]:{[`${Ee}-text`]:{color:he.colorError}},[`${Ee}-circle&-status-success`]:{[`${Ee}-text`]:{color:he.colorSuccess}}},[`${Ee}-inline-circle`]:{lineHeight:1,[`${Ee}-inner`]:{verticalAlign:"bottom"}}}},rn=he=>{const{componentCls:Ee}=he;return{[Ee]:{[`${Ee}-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}}}}}},Tn=he=>{const{componentCls:Ee,iconCls:Re}=he;return{[Ee]:{[`${Ee}-small&-line, ${Ee}-small&-line ${Ee}-text ${Re}`]:{fontSize:he.fontSizeSM}}}};var Yt=(0,Gt.Z)("Progress",he=>{const Ee=he.marginXXS/2,Re=(0,ln.TS)(he,{progressStepMarginInlineEnd:Ee,progressStepMinWidth:Ee,progressActiveMotionDuration:"2.4s"});return[Cn(Re),En(Re),rn(Re),Tn(Re)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Gn=function(he,Ee){var Re={};for(var Ve in he)Object.prototype.hasOwnProperty.call(he,Ve)&&Ee.indexOf(Ve)<0&&(Re[Ve]=he[Ve]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ve=Object.getOwnPropertySymbols(he);nt<Ve.length;nt++)Ee.indexOf(Ve[nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ve[nt])&&(Re[Ve[nt]]=he[Ve[nt]]);return Re};const Sa=null,ha=["normal","exception","active","success"];var fa=ae.forwardRef((he,Ee)=>{const{prefixCls:Re,className:Ve,rootClassName:nt,steps:ft,strokeColor:yt,percent:Pt=0,size:pt="default",showInfo:Tt=!0,type:Dt="line",status:Ht,format:sn,style:Ln}=he,yn=Gn(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),en=ae.useMemo(()=>{var Pe,se;const He=on(he);return parseInt(He!==void 0?(Pe=He!=null?He:0)===null||Pe===void 0?void 0:Pe.toString():(se=Pt!=null?Pt:0)===null||se===void 0?void 0:se.toString(),10)},[Pt,he.success,he.successPercent]),Ut=ae.useMemo(()=>!ha.includes(Ht)&&en>=100?"success":Ht||"normal",[Ht,en]),{getPrefixCls:zn,direction:wn,progress:Fn}=ae.useContext(Te.E_),Jt=zn("progress",Re),[$n,Yn]=Yt(Jt),Wn=ae.useMemo(()=>{if(!Tt)return null;const Pe=on(he);let se;const He=sn||(at=>`${at}%`),it=Dt==="line";return sn||Ut!=="exception"&&Ut!=="success"?se=He(bt(Pt),bt(Pe)):Ut==="exception"?se=it?ae.createElement(Ge.Z,null):ae.createElement(ve.Z,null):Ut==="success"&&(se=it?ae.createElement(De.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${Jt}-text`,title:typeof se=="string"?se:void 0},se)},[Tt,Pt,en,Ut,Dt,Jt,sn]),kn=Array.isArray(yt)?yt[0]:yt,Jn=typeof yt=="string"||Array.isArray(yt)?yt:void 0;let Zn;Dt==="line"?Zn=ft?ae.createElement(Qt,Object.assign({},he,{strokeColor:Jn,prefixCls:Jt,steps:ft}),Wn):ae.createElement(_t,Object.assign({},he,{strokeColor:kn,prefixCls:Jt,direction:wn}),Wn):(Dt==="circle"||Dt==="dashboard")&&(Zn=ae.createElement(Be,Object.assign({},he,{strokeColor:kn,prefixCls:Jt,progressStatus:Ut}),Wn));const ce=me()(Jt,`${Jt}-status-${Ut}`,`${Jt}-${Dt==="dashboard"&&"circle"||ft&&"steps"||Dt}`,{[`${Jt}-inline-circle`]:Dt==="circle"&&fe(pt,"circle")[0]<=20,[`${Jt}-show-info`]:Tt,[`${Jt}-${pt}`]:typeof pt=="string",[`${Jt}-rtl`]:wn==="rtl"},Fn==null?void 0:Fn.className,Ve,nt,Yn);return $n(ae.createElement("div",Object.assign({ref:Ee,style:Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Ln),className:ce,role:"progressbar","aria-valuenow":en},(0,Ae.Z)(yn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zn))}),qn=fa},54580:function(be,tt,ie){"use strict";ie.d(tt,{default:function(){return gn}});var ae=ie(59301),De=ie(26407),Ke=ie(92310),Ge=ie.n(Ke),ve=ie(92413),we=ie(6909),me=ie(4771),Ae=ie(9427),Te=ie(25440),je=ie(400),ot=ie(37061),Qe=ie(85195),Xe=ie(39559),ne=ie(20569),a=ie(26112);function y(le,ye){var Le="cannot ".concat(le.method," ").concat(le.action," ").concat(ye.status,"'"),xe=new Error(Le);return xe.status=ye.status,xe.method=le.method,xe.url=le.action,xe}function E(le){var ye=le.responseText||le.response;if(!ye)return ye;try{return JSON.parse(ye)}catch(Le){return ye}}function b(le){var ye=new XMLHttpRequest;le.onProgress&&ye.upload&&(ye.upload.onprogress=function(Ie){Ie.total>0&&(Ie.percent=Ie.loaded/Ie.total*100),le.onProgress(Ie)});var Le=new FormData;le.data&&Object.keys(le.data).forEach(function(Me){var Ie=le.data[Me];if(Array.isArray(Ie)){Ie.forEach(function(ze){Le.append("".concat(Me,"[]"),ze)});return}Le.append(Me,Ie)}),le.file instanceof Blob?Le.append(le.filename,le.file,le.file.name):Le.append(le.filename,le.file),ye.onerror=function(Ie){le.onError(Ie)},ye.onload=function(){return ye.status<200||ye.status>=300?le.onError(y(le,ye),E(ye)):le.onSuccess(E(ye),ye)},ye.open(le.method,le.action,!0),le.withCredentials&&"withCredentials"in ye&&(ye.withCredentials=!0);var xe=le.headers||{};return xe["X-Requested-With"]!==null&&ye.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xe).forEach(function(Me){xe[Me]!==null&&ye.setRequestHeader(Me,xe[Me])}),ye.send(Le),{abort:function(){ye.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=ie(48736),oe=function(le,ye){if(le&&ye){var Le=Array.isArray(ye)?ye:ye.split(","),xe=le.name||"",Me=le.type||"",Ie=Me.replace(/\/.*$/,"");return Le.some(function(ze){var Ce=ze.trim();if(/^\*(\/\*)?$/.test(ze))return!0;if(Ce.charAt(0)==="."){var mt=xe.toLowerCase(),lt=Ce.toLowerCase(),pe=[lt];return(lt===".jpg"||lt===".jpeg")&&(pe=[".jpg",".jpeg"]),pe.some(function(Ot){return mt.endsWith(Ot)})}return/\/\*$/.test(Ce)?Ie===Ce.replace(/\/.*$/,""):Me===Ce?!0:/^\w+$/.test(Ce)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ce,"'.Skip for check.")),!0):!1})}return!0};function re(le,ye){var Le=le.createReader(),xe=[];function Me(){Le.readEntries(function(Ie){var ze=Array.prototype.slice.apply(Ie);xe=xe.concat(ze);var Ce=!ze.length;Ce?ye(xe):Me()})}Me()}var ge=function(ye,Le,xe){var Me=function Ie(ze,Ce){ze&&(ze.path=Ce||"",ze.isFile?ze.file(function(mt){xe(mt)&&(ze.fullPath&&!mt.webkitRelativePath&&(Object.defineProperties(mt,{webkitRelativePath:{writable:!0}}),mt.webkitRelativePath=ze.fullPath.replace(/^\//,""),Object.defineProperties(mt,{webkitRelativePath:{writable:!1}})),Le([mt]))}):ze.isDirectory&&re(ze,function(mt){mt.forEach(function(lt){Ie(lt,"".concat(Ce).concat(ze.name,"/"))})}))};ye.forEach(function(Ie){Me(Ie.webkitGetAsEntry())})},Se=ge,ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Oe=function(le){(0,Ae.Z)(Le,le);var ye=(0,Te.Z)(Le);function Le(){var xe;(0,we.Z)(this,Le);for(var Me=arguments.length,Ie=new Array(Me),ze=0;ze<Me;ze++)Ie[ze]=arguments[ze];return xe=ye.call.apply(ye,[this].concat(Ie)),xe.state={uid:ee()},xe.reqs={},xe.fileInput=void 0,xe._isMounted=void 0,xe.onChange=function(Ce){var mt=xe.props,lt=mt.accept,pe=mt.directory,Ot=Ce.target.files,zt=(0,De.Z)(Ot).filter(function(qt){return!pe||oe(qt,lt)});xe.uploadFiles(zt),xe.reset()},xe.onClick=function(Ce){var mt=xe.fileInput;if(mt){var lt=Ce.target,pe=xe.props.onClick;if(lt&<.tagName==="BUTTON"){var Ot=mt.parentNode;Ot.focus(),lt.blur()}mt.click(),pe&&pe(Ce)}},xe.onKeyDown=function(Ce){Ce.key==="Enter"&&xe.onClick(Ce)},xe.onFileDrop=function(Ce){var mt=xe.props.multiple;if(Ce.preventDefault(),Ce.type!=="dragover")if(xe.props.directory)Se(Array.prototype.slice.call(Ce.dataTransfer.items),xe.uploadFiles,function(pe){return oe(pe,xe.props.accept)});else{var lt=(0,De.Z)(Ce.dataTransfer.files).filter(function(pe){return oe(pe,xe.props.accept)});mt===!1&&(lt=lt.slice(0,1)),xe.uploadFiles(lt)}},xe.uploadFiles=function(Ce){var mt=(0,De.Z)(Ce),lt=mt.map(function(pe){return pe.uid=ee(),xe.processFile(pe,mt)});Promise.all(lt).then(function(pe){var Ot=xe.props.onBatchStart;Ot==null||Ot(pe.map(function(zt){var qt=zt.origin,dn=zt.parsedFile;return{file:qt,parsedFile:dn}})),pe.filter(function(zt){return zt.parsedFile!==null}).forEach(function(zt){xe.post(zt)})})},xe.processFile=function(){var Ce=(0,ne.Z)((0,Qe.Z)().mark(function mt(lt,pe){var Ot,zt,qt,dn,ke,Je,dt,Ye,wt;return(0,Qe.Z)().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(Ot=xe.props.beforeUpload,zt=lt,!Ot){ut.next=14;break}return ut.prev=3,ut.next=6,Ot(lt,pe);case 6:zt=ut.sent,ut.next=12;break;case 9:ut.prev=9,ut.t0=ut.catch(3),zt=!1;case 12:if(zt!==!1){ut.next=14;break}return ut.abrupt("return",{origin:lt,parsedFile:null,action:null,data:null});case 14:if(qt=xe.props.action,typeof qt!="function"){ut.next=21;break}return ut.next=18,qt(lt);case 18:dn=ut.sent,ut.next=22;break;case 21:dn=qt;case 22:if(ke=xe.props.data,typeof ke!="function"){ut.next=29;break}return ut.next=26,ke(lt);case 26:Je=ut.sent,ut.next=30;break;case 29:Je=ke;case 30:return dt=((0,Xe.Z)(zt)==="object"||typeof zt=="string")&&zt?zt:lt,dt instanceof File?Ye=dt:Ye=new File([dt],lt.name,{type:lt.type}),wt=Ye,wt.uid=lt.uid,ut.abrupt("return",{origin:lt,data:Je,parsedFile:wt,action:dn});case 35:case"end":return ut.stop()}},mt,null,[[3,9]])}));return function(mt,lt){return Ce.apply(this,arguments)}}(),xe.saveFileInput=function(Ce){xe.fileInput=Ce},xe}return(0,me.Z)(Le,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Me){var Ie=this,ze=Me.data,Ce=Me.origin,mt=Me.action,lt=Me.parsedFile;if(this._isMounted){var pe=this.props,Ot=pe.onStart,zt=pe.customRequest,qt=pe.name,dn=pe.headers,ke=pe.withCredentials,Je=pe.method,dt=Ce.uid,Ye=zt||b,wt={action:mt,filename:qt,data:ze,file:lt,headers:dn,withCredentials:ke,method:Je||"post",onProgress:function(ut){var Kt=Ie.props.onProgress;Kt==null||Kt(ut,lt)},onSuccess:function(ut,Kt){var Vt=Ie.props.onSuccess;Vt==null||Vt(ut,lt,Kt),delete Ie.reqs[dt]},onError:function(ut,Kt){var Vt=Ie.props.onError;Vt==null||Vt(ut,Kt,lt),delete Ie.reqs[dt]}};Ot(Ce),this.reqs[dt]=Ye(wt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Me){var Ie=this.reqs;if(Me){var ze=Me.uid?Me.uid:Me;Ie[ze]&&Ie[ze].abort&&Ie[ze].abort(),delete Ie[ze]}else Object.keys(Ie).forEach(function(Ce){Ie[Ce]&&Ie[Ce].abort&&Ie[Ce].abort(),delete Ie[Ce]})}},{key:"render",value:function(){var Me=this.props,Ie=Me.component,ze=Me.prefixCls,Ce=Me.className,mt=Me.disabled,lt=Me.id,pe=Me.style,Ot=Me.multiple,zt=Me.accept,qt=Me.capture,dn=Me.children,ke=Me.directory,Je=Me.openFileDialogOnClick,dt=Me.onMouseEnter,Ye=Me.onMouseLeave,wt=(0,ot.Z)(Me,ue),Bt=Ge()((0,je.Z)((0,je.Z)((0,je.Z)({},ze,!0),"".concat(ze,"-disabled"),mt),Ce,Ce)),ut=ke?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Kt=mt?{}:{onClick:Je?this.onClick:function(){},onKeyDown:Je?this.onKeyDown:function(){},onMouseEnter:dt,onMouseLeave:Ye,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ie,(0,ve.Z)({},Kt,{className:Bt,role:"button",style:pe}),ae.createElement("input",(0,ve.Z)({},(0,a.Z)(wt,{aria:!0,data:!0}),{id:lt,disabled:mt,type:"file",ref:this.saveFileInput,onClick:function(ea){return ea.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:zt},ut,{multiple:Ot,onChange:this.onChange},qt!=null?{capture:qt}:{})),dn)}}]),Le}(ae.Component),$e=Oe;function St(){}var Ft=function(le){(0,Ae.Z)(Le,le);var ye=(0,Te.Z)(Le);function Le(){var xe;(0,we.Z)(this,Le);for(var Me=arguments.length,Ie=new Array(Me),ze=0;ze<Me;ze++)Ie[ze]=arguments[ze];return xe=ye.call.apply(ye,[this].concat(Ie)),xe.uploader=void 0,xe.saveUploader=function(Ce){xe.uploader=Ce},xe}return(0,me.Z)(Le,[{key:"abort",value:function(Me){this.uploader.abort(Me)}},{key:"render",value:function(){return ae.createElement($e,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),Le}(ae.Component);Ft.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:St,onError:St,onSuccess:St,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Zt=Ft,It=Zt,Rt=ie(18929),Nt=ie(4676),mn=ie(36355),nn=ie(1684),bt=ie(9763),on=ie(31724),Mn={icon:function(ye,Le){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Le}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:ye}}]}},name:"file",theme:"twotone"},vn=Mn,fe=ie(7657),Ne=function(ye,Le){return ae.createElement(fe.Z,(0,ve.Z)({},ye,{ref:Le,icon:vn}))},Fe=ae.forwardRef(Ne),We=Fe,Be=ie(58617),qe={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=qe,Ze=function(ye,Le){return ae.createElement(fe.Z,(0,ve.Z)({},ye,{ref:Le,icon:de}))},ct=ae.forwardRef(Ze),_t=ct,st={icon:function(ye,Le){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:ye}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Le}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Le}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Le}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:ye}}]}},name:"picture",theme:"twotone"},Qt=st,Et=function(ye,Le){return ae.createElement(fe.Z,(0,ve.Z)({},ye,{ref:Le,icon:Qt}))},At=ae.forwardRef(Et),Gt=At,ln=ie(77900),jt=ie(56762),Cn=ie(62892),En=ie(92343),rn=ie(3113);function Tn(le){return Object.assign(Object.assign({},le),{lastModified:le.lastModified,lastModifiedDate:le.lastModifiedDate,name:le.name,size:le.size,type:le.type,uid:le.uid,percent:0,originFileObj:le})}function Yt(le,ye){const Le=(0,De.Z)(ye),xe=Le.findIndex(Me=>{let{uid:Ie}=Me;return Ie===le.uid});return xe===-1?Le.push(le):Le[xe]=le,Le}function Gn(le,ye){const Le=le.uid!==void 0?"uid":"name";return ye.filter(xe=>xe[Le]===le[Le])[0]}function Sa(le,ye){const Le=le.uid!==void 0?"uid":"name",xe=ye.filter(Me=>Me[Le]!==le[Le]);return xe.length===ye.length?null:xe}const ha=function(){const ye=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xe=ye[ye.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xe)||[""])[0]},va=le=>le.indexOf("image/")===0,fa=le=>{if(le.type&&!le.thumbUrl)return va(le.type);const ye=le.thumbUrl||le.url||"",Le=ha(ye);return/^data:image\//.test(ye)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Le)?!0:!(/^data:/.test(ye)||Le)},qn=200;function he(le){return new Promise(ye=>{if(!le.type||!va(le.type)){ye("");return}const Le=document.createElement("canvas");Le.width=qn,Le.height=qn,Le.style.cssText=`position: fixed; left: 0; top: 0; width: ${qn}px; height: ${qn}px; z-index: 9999; display: none;`,document.body.appendChild(Le);const xe=Le.getContext("2d"),Me=new Image;if(Me.onload=()=>{const{width:Ie,height:ze}=Me;let Ce=qn,mt=qn,lt=0,pe=0;Ie>ze?(mt=ze*(qn/Ie),pe=-(mt-Ce)/2):(Ce=Ie*(qn/ze),lt=-(Ce-mt)/2),xe.drawImage(Me,lt,pe,Ce,mt);const Ot=Le.toDataURL();document.body.removeChild(Le),window.URL.revokeObjectURL(Me.src),ye(Ot)},Me.crossOrigin="anonymous",le.type.startsWith("image/svg+xml")){const Ie=new FileReader;Ie.onload=()=>{Ie.result&&(Me.src=Ie.result)},Ie.readAsDataURL(le)}else if(le.type.startsWith("image/gif")){const Ie=new FileReader;Ie.onload=()=>{Ie.result&&ye(Ie.result)},Ie.readAsDataURL(le)}else Me.src=window.URL.createObjectURL(le)})}var Ee=ie(26227),Re=ie(41464),Ve=ie(15277),nt=ie(93948),ft=ie(6848),Pt=ae.forwardRef((le,ye)=>{let{prefixCls:Le,className:xe,style:Me,locale:Ie,listType:ze,file:Ce,items:mt,progress:lt,iconRender:pe,actionIconRender:Ot,itemRender:zt,isImgUrl:qt,showPreviewIcon:dn,showRemoveIcon:ke,showDownloadIcon:Je,previewIcon:dt,removeIcon:Ye,downloadIcon:wt,onPreview:Bt,onDownload:ut,onClose:Kt}=le;var Vt,ea;const{status:Un}=Ce,[Xn,ma]=ae.useState(Un);ae.useEffect(()=>{Un!=="removed"&&ma(Un)},[Un]);const[la,sa]=ae.useState(!1);ae.useEffect(()=>{const fn=setTimeout(()=>{sa(!0)},300);return()=>{clearTimeout(fn)}},[]);const oa=pe(Ce);let Hn=ae.createElement("div",{className:`${Le}-icon`},oa);if(ze==="picture"||ze==="picture-card"||ze==="picture-circle")if(Xn==="uploading"||!Ce.thumbUrl&&!Ce.url){const fn=Ge()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:Xn!=="uploading"});Hn=ae.createElement("div",{className:fn},oa)}else{const fn=qt!=null&&qt(Ce)?ae.createElement("img",{src:Ce.thumbUrl||Ce.url,alt:Ce.name,className:`${Le}-list-item-image`,crossOrigin:Ce.crossOrigin}):oa,Sn=Ge()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:qt&&!qt(Ce)});Hn=ae.createElement("a",{className:Sn,onClick:ra=>Bt(Ce,ra),href:Ce.url||Ce.thumbUrl,target:"_blank",rel:"noopener noreferrer"},fn)}const un=Ge()(`${Le}-list-item`,`${Le}-list-item-${Xn}`),Vn=typeof Ce.linkProps=="string"?JSON.parse(Ce.linkProps):Ce.linkProps,na=ke?Ot((typeof Ye=="function"?Ye(Ce):Ye)||ae.createElement(Ee.Z,null),()=>Kt(Ce),Le,Ie.removeFile):null,aa=Je&&Xn==="done"?Ot((typeof wt=="function"?wt(Ce):wt)||ae.createElement(Re.Z,null),()=>ut(Ce),Le,Ie.downloadFile):null,Qn=ze!=="picture-card"&&ze!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ge()(`${Le}-list-item-actions`,{picture:ze==="picture"})},aa,na),Kn=Ge()(`${Le}-list-item-name`),ua=Ce.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kn,title:Ce.name},Vn,{href:Ce.url,onClick:fn=>Bt(Ce,fn)}),Ce.name),Qn]:[ae.createElement("span",{key:"view",className:Kn,onClick:fn=>Bt(Ce,fn),title:Ce.name},Ce.name),Qn],vt={pointerEvents:"none",opacity:.5},cn=dn?ae.createElement("a",{href:Ce.url||Ce.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ce.url||Ce.thumbUrl?void 0:vt,onClick:fn=>Bt(Ce,fn),title:Ie.previewFile},typeof dt=="function"?dt(Ce):dt||ae.createElement(Ve.Z,null)):null,hn=(ze==="picture-card"||ze==="picture-circle")&&Xn!=="uploading"&&ae.createElement("span",{className:`${Le}-list-item-actions`},cn,Xn==="done"&&aa,na),{getPrefixCls:Rn}=ae.useContext(mn.E_),_n=Rn(),ta=ae.createElement("div",{className:un},Hn,ua,hn,la&&ae.createElement(ln.default,{motionName:`${_n}-fade`,visible:Xn==="uploading",motionDeadline:2e3},fn=>{let{className:Sn}=fn;const ra="percent"in Ce?ae.createElement(nt.Z,Object.assign({},lt,{type:"line",percent:Ce.percent,"aria-label":Ce["aria-label"],"aria-labelledby":Ce["aria-labelledby"]})):null;return ae.createElement("div",{className:Ge()(`${Le}-list-item-progress`,Sn)},ra)})),pa=Ce.response&&typeof Ce.response=="string"?Ce.response:((Vt=Ce.error)===null||Vt===void 0?void 0:Vt.statusText)||((ea=Ce.error)===null||ea===void 0?void 0:ea.message)||Ie.uploadError,Pa=Xn==="error"?ae.createElement(ft.Z,{title:pa,getPopupContainer:fn=>fn.parentNode},ta):ta;return ae.createElement("div",{className:Ge()(`${Le}-list-item-container`,xe),style:Me,ref:ye},zt?zt(Pa,Ce,mt,{download:ut.bind(null,Ce),preview:Bt.bind(null,Ce),remove:Kt.bind(null,Ce)}):Pa)});const pt=(le,ye)=>{const{listType:Le="text",previewFile:xe=he,onPreview:Me,onDownload:Ie,onRemove:ze,locale:Ce,iconRender:mt,isImageUrl:lt=fa,prefixCls:pe,items:Ot=[],showPreviewIcon:zt=!0,showRemoveIcon:qt=!0,showDownloadIcon:dn=!1,removeIcon:ke,previewIcon:Je,downloadIcon:dt,progress:Ye={size:[-1,2],showInfo:!1},appendAction:wt,appendActionVisible:Bt=!0,itemRender:ut,disabled:Kt}=le,Vt=(0,jt.Z)(),[ea,Un]=ae.useState(!1);ae.useEffect(()=>{Le!=="picture"&&Le!=="picture-card"&&Le!=="picture-circle"||(Ot||[]).forEach(vt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(vt.originFileObj instanceof File||vt.originFileObj instanceof Blob)||vt.thumbUrl!==void 0||(vt.thumbUrl="",xe&&xe(vt.originFileObj).then(cn=>{vt.thumbUrl=cn||"",Vt()}))})},[Le,Ot,xe]),ae.useEffect(()=>{Un(!0)},[]);const Xn=(vt,cn)=>{if(Me)return cn==null||cn.preventDefault(),Me(vt)},ma=vt=>{typeof Ie=="function"?Ie(vt):vt.url&&window.open(vt.url)},la=vt=>{ze==null||ze(vt)},sa=vt=>{if(mt)return mt(vt,Le);const cn=vt.status==="uploading",hn=lt&<(vt)?ae.createElement(Gt,null):ae.createElement(We,null);let Rn=cn?ae.createElement(Be.Z,null):ae.createElement(_t,null);return Le==="picture"?Rn=cn?ae.createElement(Be.Z,null):hn:(Le==="picture-card"||Le==="picture-circle")&&(Rn=cn?Ce.uploading:hn),Rn},oa=(vt,cn,hn,Rn)=>{const _n={type:"text",size:"small",title:Rn,onClick:ta=>{cn(),(0,En.l$)(vt)&&vt.props.onClick&&vt.props.onClick(ta)},className:`${hn}-list-item-action`,disabled:Kt};if((0,En.l$)(vt)){const ta=(0,En.Tm)(vt,Object.assign(Object.assign({},vt.props),{onClick:()=>{}}));return ae.createElement(rn.ZP,Object.assign({},_n,{icon:ta}))}return ae.createElement(rn.ZP,Object.assign({},_n),ae.createElement("span",null,vt))};ae.useImperativeHandle(ye,()=>({handlePreview:Xn,handleDownload:ma}));const{getPrefixCls:Hn}=ae.useContext(mn.E_),un=Hn("upload",pe),Vn=Hn(),na=Ge()(`${un}-list`,`${un}-list-${Le}`),aa=(0,De.Z)(Ot.map(vt=>({key:vt.uid,file:vt})));let Kn={motionDeadline:2e3,motionName:`${un}-${Le==="picture-card"||Le==="picture-circle"?"animate-inline":"animate"}`,keys:aa,motionAppear:ea};const ua=ae.useMemo(()=>{const vt=Object.assign({},(0,Cn.Z)(Vn));return delete vt.onAppearEnd,delete vt.onEnterEnd,delete vt.onLeaveEnd,vt},[Vn]);return Le!=="picture-card"&&Le!=="picture-circle"&&(Kn=Object.assign(Object.assign({},ua),Kn)),ae.createElement("div",{className:na},ae.createElement(ln.CSSMotionList,Object.assign({},Kn,{component:!1}),vt=>{let{key:cn,file:hn,className:Rn,style:_n}=vt;return ae.createElement(Pt,{key:cn,locale:Ce,prefixCls:un,className:Rn,style:_n,file:hn,items:Ot,progress:Ye,listType:Le,isImgUrl:lt,showPreviewIcon:zt,showRemoveIcon:qt,showDownloadIcon:dn,removeIcon:ke,previewIcon:Je,downloadIcon:dt,iconRender:sa,actionIconRender:oa,itemRender:ut,onPreview:Xn,onDownload:ma,onClose:la})}),wt&&ae.createElement(ln.default,Object.assign({},Kn,{visible:Bt,forceRender:!0}),vt=>{let{className:cn,style:hn}=vt;return(0,En.Tm)(wt,Rn=>({className:Ge()(Rn.className,cn),style:Object.assign(Object.assign(Object.assign({},hn),{pointerEvents:cn?"none":void 0}),Rn.style)}))}))};var Dt=ae.forwardRef(pt),Ht=ie(17313),sn=ie(8378),Ln=ie(83116),yn=ie(37613),Ut=le=>{const{componentCls:ye,iconCls:Le}=le;return{[`${ye}-wrapper`]:{[`${ye}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[ye]:{padding:`${le.padding}px 0`},[`${ye}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ye}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ye}-disabled):hover`]:{borderColor:le.colorPrimaryHover},[`p${ye}-drag-icon`]:{marginBottom:le.margin,[Le]:{color:le.colorPrimary,fontSize:le.uploadThumbnailSize}},[`p${ye}-text`]:{margin:`0 0 ${le.marginXXS}px`,color:le.colorTextHeading,fontSize:le.fontSizeLG},[`p${ye}-hint`]:{color:le.colorTextDescription,fontSize:le.fontSize},[`&${ye}-disabled`]:{cursor:"not-allowed",[`p${ye}-drag-icon ${Le},
|
|
p${ye}-text,
|
|
p${ye}-hint
|
|
`]:{color:le.colorTextDisabled}}}}}},wn=le=>{const{componentCls:ye,antCls:Le,iconCls:xe,fontSize:Me,lineHeight:Ie}=le,ze=`${ye}-list-item`,Ce=`${ze}-actions`,mt=`${ze}-action`,lt=Math.round(Me*Ie);return{[`${ye}-wrapper`]:{[`${ye}-list`]:Object.assign(Object.assign({},(0,Ht.dF)()),{lineHeight:le.lineHeight,[ze]:{position:"relative",height:le.lineHeight*Me,marginTop:le.marginXS,fontSize:Me,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,"&:hover":{backgroundColor:le.controlItemBgHover},[`${ze}-name`]:Object.assign(Object.assign({},Ht.vS),{padding:`0 ${le.paddingXS}px`,lineHeight:Ie,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[Ce]:{[mt]:{opacity:0},[`${mt}${Le}-btn-sm`]:{height:lt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${mt}:focus-visible,
|
|
&.picture ${mt}
|
|
`]:{opacity:1},[xe]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`&:hover ${xe}`]:{color:le.colorText}},[`${ye}-icon ${xe}`]:{color:le.colorTextDescription,fontSize:Me},[`${ze}-progress`]:{position:"absolute",bottom:-le.uploadProgressOffset,width:"100%",paddingInlineStart:Me+le.paddingXS,fontSize:Me,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ze}:hover ${mt}`]:{opacity:1,color:le.colorText},[`${ze}-error`]:{color:le.colorError,[`${ze}-name, ${ye}-icon ${xe}`]:{color:le.colorError},[Ce]:{[`${xe}, ${xe}:hover`]:{color:le.colorError},[mt]:{opacity:1}}},[`${ye}-list-item-container`]:{transition:`opacity ${le.motionDurationSlow}, height ${le.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Fn=ie(93083),Jt=ie(1950);const $n=new Fn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Fn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var kn=le=>{const{componentCls:ye}=le,Le=`${ye}-animate-inline`;return[{[`${ye}-wrapper`]:{[`${Le}-appear, ${Le}-enter, ${Le}-leave`]:{animationDuration:le.motionDurationSlow,animationTimingFunction:le.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Le}-appear, ${Le}-enter`]:{animationName:$n},[`${Le}-leave`]:{animationName:Yn}}},{[`${ye}-wrapper`]:(0,Jt.J$)(le)},$n,Yn]},Jn=ie(93398),Zn=ie(64993);const ce=le=>{const{componentCls:ye,iconCls:Le,uploadThumbnailSize:xe,uploadProgressOffset:Me}=le,Ie=`${ye}-list`,ze=`${Ie}-item`;return{[`${ye}-wrapper`]:{[`
|
|
${Ie}${Ie}-picture,
|
|
${Ie}${Ie}-picture-card,
|
|
${Ie}${Ie}-picture-circle
|
|
`]:{[ze]:{position:"relative",height:xe+le.lineWidth*2+le.paddingXS*2,padding:le.paddingXS,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${ze}-thumbnail`]:Object.assign(Object.assign({},Ht.vS),{width:xe,height:xe,lineHeight:`${xe+le.paddingSM}px`,textAlign:"center",flex:"none",[Le]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ze}-progress`]:{bottom:Me,width:`calc(100% - ${le.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xe+le.paddingXS}},[`${ze}-error`]:{borderColor:le.colorError,[`${ze}-thumbnail ${Le}`]:{[`svg path[fill='${Jn.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${Jn.blue.primary}']`]:{fill:le.colorError}}},[`${ze}-uploading`]:{borderStyle:"dashed",[`${ze}-name`]:{marginBottom:Me}}},[`${Ie}${Ie}-picture-circle ${ze}`]:{[`&, &::before, ${ze}-thumbnail`]:{borderRadius:"50%"}}}}},Pe=le=>{const{componentCls:ye,iconCls:Le,fontSizeLG:xe,colorTextLightSolid:Me}=le,Ie=`${ye}-list`,ze=`${Ie}-item`,Ce=le.uploadPicCardSize;return{[`
|
|
${ye}-wrapper${ye}-picture-card-wrapper,
|
|
${ye}-wrapper${ye}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ht.dF)()),{display:"inline-block",width:"100%",[`${ye}${ye}-select`]:{width:Ce,height:Ce,marginInlineEnd:le.marginXS,marginBottom:le.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[`> ${ye}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ye}-disabled):hover`]:{borderColor:le.colorPrimary}},[`${Ie}${Ie}-picture-card, ${Ie}${Ie}-picture-circle`]:{[`${Ie}-item-container`]:{display:"inline-block",width:Ce,height:Ce,marginBlock:`0 ${le.marginXS}px`,marginInline:`0 ${le.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ze]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le.paddingXS*2}px)`,height:`calc(100% - ${le.paddingXS*2}px)`,backgroundColor:le.colorBgMask,opacity:0,transition:`all ${le.motionDurationSlow}`,content:'" "'}},[`${ze}:hover`]:{[`&::before, ${ze}-actions`]:{opacity:1}},[`${ze}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{zIndex:10,width:xe,margin:`0 ${le.marginXXS}px`,fontSize:xe,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ze}-actions, ${ze}-actions:hover`]:{[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{color:new Zn.C(Me).setAlpha(.65).toRgbString(),"&:hover":{color:Me}}},[`${ze}-thumbnail, ${ze}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ze}-name`]:{display:"none",textAlign:"center"},[`${ze}-file + ${ze}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${le.paddingXS*2}px)`},[`${ze}-uploading`]:{[`&${ze}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${Le}-eye, ${Le}-download, ${Le}-delete`]:{display:"none"}},[`${ze}-progress`]:{bottom:le.marginXL,width:`calc(100% - ${le.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ye}-wrapper${ye}-picture-circle-wrapper`]:{[`${ye}${ye}-select`]:{borderRadius:"50%"}}}};var He=le=>{const{componentCls:ye}=le;return{[`${ye}-rtl`]:{direction:"rtl"}}};const it=le=>{const{componentCls:ye,colorTextDisabled:Le}=le;return{[`${ye}-wrapper`]:Object.assign(Object.assign({},(0,Ht.Wf)(le)),{[ye]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ye}-select`]:{display:"inline-block"},[`${ye}-disabled`]:{color:Le,cursor:"not-allowed"}})}};var at=(0,Ln.Z)("Upload",le=>{const{fontSizeHeading3:ye,fontSize:Le,lineHeight:xe,lineWidth:Me,controlHeightLG:Ie}=le,ze=Math.round(Le*xe),Ce=(0,yn.TS)(le,{uploadThumbnailSize:ye*2,uploadProgressOffset:ze/2+Me,uploadPicCardSize:Ie*2.55});return[it(Ce),Ut(Ce),ce(Ce),Pe(Ce),wn(Ce),kn(Ce),He(Ce),(0,sn.Z)(Ce)]},le=>({actionsColor:le.colorTextDescription})),$t=function(le,ye,Le,xe){function Me(Ie){return Ie instanceof Le?Ie:new Le(function(ze){ze(Ie)})}return new(Le||(Le=Promise))(function(Ie,ze){function Ce(pe){try{lt(xe.next(pe))}catch(Ot){ze(Ot)}}function mt(pe){try{lt(xe.throw(pe))}catch(Ot){ze(Ot)}}function lt(pe){pe.done?Ie(pe.value):Me(pe.value).then(Ce,mt)}lt((xe=xe.apply(le,ye||[])).next())})};const ht=`__LIST_IGNORE_${Date.now()}__`,xt=(le,ye)=>{const{fileList:Le,defaultFileList:xe,onRemove:Me,showUploadList:Ie=!0,listType:ze="text",onPreview:Ce,onDownload:mt,onChange:lt,onDrop:pe,previewFile:Ot,disabled:zt,locale:qt,iconRender:dn,isImageUrl:ke,progress:Je,prefixCls:dt,className:Ye,type:wt="select",children:Bt,style:ut,itemRender:Kt,maxCount:Vt,data:ea={},multiple:Un=!1,action:Xn="",accept:ma="",supportServerRender:la=!0,rootClassName:sa}=le,oa=ae.useContext(nn.Z),Hn=zt!=null?zt:oa,[un,Vn]=(0,Rt.Z)(xe||[],{value:Le,postState:Lt=>Lt!=null?Lt:[]}),[na,aa]=ae.useState("drop"),Qn=ae.useRef(null);ae.useMemo(()=>{const Lt=Date.now();(Le||[]).forEach((kt,an)=>{!kt.uid&&!Object.isFrozen(kt)&&(kt.uid=`__AUTO__${Lt}_${an}__`)})},[Le]);const Kn=(Lt,kt,an)=>{let Mt=(0,De.Z)(kt),Xt=!1;Vt===1?Mt=Mt.slice(-1):Vt&&(Xt=Mt.length>Vt,Mt=Mt.slice(0,Vt)),(0,Nt.flushSync)(()=>{Vn(Mt)});const On={file:Lt,fileList:Mt};an&&(On.event=an),(!Xt||Mt.some(Bn=>Bn.uid===Lt.uid))&&(0,Nt.flushSync)(()=>{lt==null||lt(On)})},ua=(Lt,kt)=>$t(void 0,void 0,void 0,function*(){const{beforeUpload:an,transformFile:Mt}=le;let Xt=Lt;if(an){const On=yield an(Lt,kt);if(On===!1)return!1;if(delete Lt[ht],On===ht)return Object.defineProperty(Lt,ht,{value:!0,configurable:!0}),!1;typeof On=="object"&&On&&(Xt=On)}return Mt&&(Xt=yield Mt(Xt)),Xt}),vt=Lt=>{const kt=Lt.filter(Xt=>!Xt.file[ht]);if(!kt.length)return;const an=kt.map(Xt=>Tn(Xt.file));let Mt=(0,De.Z)(un);an.forEach(Xt=>{Mt=Yt(Xt,Mt)}),an.forEach((Xt,On)=>{let Bn=Xt;if(kt[On].parsedFile)Xt.status="uploading";else{const{originFileObj:ca}=Xt;let da;try{da=new File([ca],ca.name,{type:ca.type})}catch(Fa){da=new Blob([ca],{type:ca.type}),da.name=ca.name,da.lastModifiedDate=new Date,da.lastModified=new Date().getTime()}da.uid=Xt.uid,Bn=da}Kn(Bn,Mt)})},cn=(Lt,kt,an)=>{try{typeof Lt=="string"&&(Lt=JSON.parse(Lt))}catch(On){}if(!Gn(kt,un))return;const Mt=Tn(kt);Mt.status="done",Mt.percent=100,Mt.response=Lt,Mt.xhr=an;const Xt=Yt(Mt,un);Kn(Mt,Xt)},hn=(Lt,kt)=>{if(!Gn(kt,un))return;const an=Tn(kt);an.status="uploading",an.percent=Lt.percent;const Mt=Yt(an,un);Kn(an,Mt,Lt)},Rn=(Lt,kt,an)=>{if(!Gn(an,un))return;const Mt=Tn(an);Mt.error=Lt,Mt.response=kt,Mt.status="error";const Xt=Yt(Mt,un);Kn(Mt,Xt)},_n=Lt=>{let kt;Promise.resolve(typeof Me=="function"?Me(Lt):Me).then(an=>{var Mt;if(an===!1)return;const Xt=Sa(Lt,un);Xt&&(kt=Object.assign(Object.assign({},Lt),{status:"removed"}),un==null||un.forEach(On=>{const Bn=kt.uid!==void 0?"uid":"name";On[Bn]===kt[Bn]&&!Object.isFrozen(On)&&(On.status="removed")}),(Mt=Qn.current)===null||Mt===void 0||Mt.abort(kt),Kn(kt,Xt))})},ta=Lt=>{aa(Lt.type),Lt.type==="drop"&&(pe==null||pe(Lt))};ae.useImperativeHandle(ye,()=>({onBatchStart:vt,onSuccess:cn,onProgress:hn,onError:Rn,fileList:un,upload:Qn.current}));const{getPrefixCls:pa,direction:Pa,upload:fn}=ae.useContext(mn.E_),Sn=pa("upload",dt),ra=Object.assign(Object.assign({onBatchStart:vt,onError:Rn,onProgress:hn,onSuccess:cn},le),{data:ea,multiple:Un,action:Xn,accept:ma,supportServerRender:la,prefixCls:Sn,disabled:Hn,beforeUpload:ua,onChange:void 0});delete ra.className,delete ra.style,(!Bt||Hn)&&delete ra.id;const[La,ya]=at(Sn),[wa]=(0,bt.Z)("Upload",on.Z.Upload),{showRemoveIcon:gt,showPreviewIcon:Ue,showDownloadIcon:et,removeIcon:rt,previewIcon:Wt,downloadIcon:Pn}=typeof Ie=="boolean"?{}:Ie,xn=(Lt,kt)=>Ie?ae.createElement(Dt,{prefixCls:Sn,listType:ze,items:un,previewFile:Ot,onPreview:Ce,onDownload:mt,onRemove:_n,showRemoveIcon:!Hn&>,showPreviewIcon:Ue,showDownloadIcon:et,removeIcon:rt,previewIcon:Wt,downloadIcon:Pn,iconRender:dn,locale:Object.assign(Object.assign({},wa),qt),isImageUrl:ke,progress:Je,appendAction:Lt,appendActionVisible:kt,itemRender:Kt,disabled:Hn}):Lt,pn=Ge()(`${Sn}-wrapper`,Ye,sa,ya,fn==null?void 0:fn.className,{[`${Sn}-rtl`]:Pa==="rtl",[`${Sn}-picture-card-wrapper`]:ze==="picture-card",[`${Sn}-picture-circle-wrapper`]:ze==="picture-circle"}),An=Object.assign(Object.assign({},fn==null?void 0:fn.style),ut);if(wt==="drag"){const Lt=Ge()(ya,Sn,`${Sn}-drag`,{[`${Sn}-drag-uploading`]:un.some(kt=>kt.status==="uploading"),[`${Sn}-drag-hover`]:na==="dragover",[`${Sn}-disabled`]:Hn,[`${Sn}-rtl`]:Pa==="rtl"});return La(ae.createElement("span",{className:pn},ae.createElement("div",{className:Lt,style:An,onDrop:ta,onDragOver:ta,onDragLeave:ta},ae.createElement(It,Object.assign({},ra,{ref:Qn,className:`${Sn}-btn`}),ae.createElement("div",{className:`${Sn}-drag-container`},Bt))),xn()))}const Dn=Ge()(Sn,`${Sn}-select`,{[`${Sn}-disabled`]:Hn}),jn=(Lt=>ae.createElement("div",{className:Dn,style:Lt},ae.createElement(It,Object.assign({},ra,{ref:Qn}))))(Bt?void 0:{display:"none"});return La(ze==="picture-card"||ze==="picture-circle"?ae.createElement("span",{className:pn},xn(jn,!!Bt)):ae.createElement("span",{className:pn},jn,xn()))};var Nn=ae.forwardRef(xt),_e=function(le,ye){var Le={};for(var xe in le)Object.prototype.hasOwnProperty.call(le,xe)&&ye.indexOf(xe)<0&&(Le[xe]=le[xe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,xe=Object.getOwnPropertySymbols(le);Me<xe.length;Me++)ye.indexOf(xe[Me])<0&&Object.prototype.propertyIsEnumerable.call(le,xe[Me])&&(Le[xe[Me]]=le[xe[Me]]);return Le},bn=ae.forwardRef((le,ye)=>{var{style:Le,height:xe}=le,Me=_e(le,["style","height"]);return ae.createElement(Nn,Object.assign({ref:ye},Me,{type:"drag",style:Object.assign(Object.assign({},Le),{height:xe})}))});const In=Nn;In.Dragger=bn,In.LIST_IGNORE=ht;var gn=In}}]);
|