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

144 lines
391 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[8999],{84249:function(xe,at,re){"use strict";re.d(at,{Z:function(){return se}});var ae=re(87462),Pe=re(67294),We={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"},Ne=We,he=re(74643),Re=function(je,Le){return Pe.createElement(he.Z,(0,ae.Z)({},je,{ref:Le,icon:Ne}))},se=Pe.forwardRef(Re)},90674:function(xe,at,re){"use strict";re.d(at,{Z:function(){return se}});var ae=re(87462),Pe=re(67294),We={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"},Ne=We,he=re(74643),Re=function(je,Le){return Pe.createElement(he.Z,(0,ae.Z)({},je,{ref:Le,icon:Ne}))},se=Pe.forwardRef(Re)},55304:function(xe,at,re){"use strict";re.d(at,{Z:function(){return se}});var ae=re(87462),Pe=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ne=We,he=re(74643),Re=function(je,Le){return Pe.createElement(he.Z,(0,ae.Z)({},je,{ref:Le,icon:Ne}))},se=Pe.forwardRef(Re)},22751:function(xe,at,re){"use strict";re.d(at,{Z:function(){return se}});var ae=re(87462),Pe=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ne=We,he=re(74643),Re=function(je,Le){return Pe.createElement(he.Z,(0,ae.Z)({},je,{ref:Le,icon:Ne}))},se=Pe.forwardRef(Re)},74664:function(xe,at,re){"use strict";re.d(at,{Z:function(){return se}});var ae=re(87462),Pe=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ne=We,he=re(74643),Re=function(je,Le){return Pe.createElement(he.Z,(0,ae.Z)({},je,{ref:Le,icon:Ne}))},se=Pe.forwardRef(Re)},91034:function(xe,at,re){"use strict";re.d(at,{Z:function(){return se}});var ae=re(87462),Pe=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ne=We,he=re(74643),Re=function(je,Le){return Pe.createElement(he.Z,(0,ae.Z)({},je,{ref:Le,icon:Ne}))},se=Pe.forwardRef(Re)},71736:function(xe,at){"use strict";at.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function xe(te,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=te,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(xe.prototype,"name",{get:function(){return this._name},set:function(te){if(typeof te!="string"||te==="")throw new Error("Shape name must be a valid string.");this._name=te}}),Object.defineProperty(xe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("The default value must be a real number, not: "+te);this._defaultValue=te}}),Object.defineProperty(xe.prototype,"minimum",{get:function(){return this._minimum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Minimum must be a real number, not: "+te);this._minimum=te}}),Object.defineProperty(xe.prototype,"maximum",{get:function(){return this._maximum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Maximum must be a real number, not: "+te);this._maximum=te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(te,a){var y=go.Shape._FigureParameters[te];return y?y[a]:null},go.Shape.setFigureParameter=function(te,a,y){if(!(y instanceof xe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var at=[];function re(te,a){var y=at.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ae(){var te=at.pop();return te===void 0?new go.Point:te}function Pe(te){at.push(te)}function We(te,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=te-y,ge=b-z,ie=NaN,ue=NaN;if(oe===0)if(ge===0)te===y&&(ie=te,ue=a);else{var ce=(x-ee)/ge,ze=x-ce*b;ie=te,ue=ce*ie+ze}else if(ge===0){var De=(a-E)/oe,et=a-De*te;ie=b,ue=De*ie+et}else{var De=(a-E)/oe,ce=(x-ee)/ge,et=a-De*te,ze=x-ce*b;ie=(ze-et)/(De-ce),ue=De*ie+et}return ne.x=ie,ne.y=ue,ne}function Ne(te,a,y,E,b,x,z,ee,ne,oe,ge,ie,ue,ce){var ze=1-ne,De=ne,et=te*ze+y*De,Ot=a*ze+E*De,zt=y*ze+b*De,Jt=E*ze+x*De,un=b*ze+z*De,_t=x*ze+ee*De,Kt=et*ze+zt*De,Tt=Ot*ze+Jt*De,Wt=zt*ze+un*De,dn=Jt*ze+_t*De,In=Kt*ze+Wt*De,$n=Tt*ze+dn*De;oe.x=et,oe.y=Ot,ge.x=Kt,ge.y=Tt,ie.x=In,ie.y=$n,ue.x=Wt,ue.y=dn,ce.x=un,ce.y=_t}var he=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(te,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(te,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=he,b.spot2=Re,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new xe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new xe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new xe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var qe=[];function je(){var te=qe.pop();return te===void 0?[]:te}function Le(te){te.length=0,qe.push(te)}function Xe(te){for(var a=je(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<te;z++)x=2*Math.PI/te*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function He(te){var a=Ge(te),y=je();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 Le(a),y}function Ge(te){for(var a=Xe(te),y=je(),E=Math.floor(a.length/2),b=a.length-1,x=te%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Le(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,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<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()),Le(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(te,a,y){var E=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<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()),Le(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(te,a,y){var E=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<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()),Le(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(te,a,y){var E=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<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()),Le(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(te,a,y){var E=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<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()),Le(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(te,a,y){var E=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<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()),Le(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(te,a,y){var E=Xe(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()),Le(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(te,a,y){var E=Ge(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()),Le(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(te,a,y){var E=Ge(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()),Le(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(te,a,y){var E=Ge(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()),Le(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(te,a,y){var E=Ge(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()),Le(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(te,a,y){var E=Ge(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()),Le(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(te,a,y){var E=Ge(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()),Le(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(te,a,y){var E=He(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(),Le(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(te,a,y){var E=He(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(),Le(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(te,a,y){var E=He(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(),Le(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(te,a,y){var E=He(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(),Le(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(te,a,y){var E=He(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(),Le(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(te,a,y){var E=He(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(),Le(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new xe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new xe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new xe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=he,x.spot2=Re,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(te,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new xe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new xe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(te,a,y){var E=se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(te,a,y){var E=te?te.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new xe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new xe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(te,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=se*.4;var oe=ae(),ge=ae(),ie=ae(),ue=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,ue,ue);var ce=ae(),ze=ae(),De=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ue,ue,De,ce,ze);var et=ae(),Ot=ae(),zt=ae();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,et,Ot,zt,ue,ue);var Jt=ae(),un=ae(),_t=ae();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ue,ue,_t,Jt,un),ne.add(new go.PathSegment(go.PathSegment.Move,_t.x*a,_t.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Jt.x*a,Jt.y*y,un.x*a,un.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,_t.x*a,_t.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,zt.x*a,zt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,ze.x*a,ze.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*a,zt.y*y,et.x*a,et.y*y,Ot.x*a,Ot.y*y).close()),Pe(oe),Pe(ge),Pe(ie),Pe(ue),Pe(ce),Pe(ze),Pe(De),Pe(et),Pe(Ot),Pe(zt),Pe(Jt),Pe(un),Pe(_t),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(te,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),ie=ae(),ue=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ue),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)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,oe,ne,ne),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var ce=re(oe.x,oe.y);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,ge,ie);var ze=re(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.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)),x=.35,b=se*.35;var De=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),De.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 et=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(et),Pe(ne),Pe(oe),Pe(ge),Pe(ie),Pe(ce),Pe(ze),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(te,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*se;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(te,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new xe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new xe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=te?te.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),Pe(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new xe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=te?te.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),Pe(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new xe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=We(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(ne.x,ne.y),ne=We(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=We(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=We(.7,ne/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new xe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new xe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=We(.7,ne/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new xe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new xe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=We(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new xe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new xe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new xe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(te,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,ne=.5,oe=.1,ge=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var ie=.05,ue=se*ie;ne=.05,oe=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+ue)*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ue=se*ie,ne=.825,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y,(ne+ue)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ue)*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ue=se*ie,ne=.5,oe=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y,(ne+ue)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ue)*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ue=se*ie,ne=.175,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y,(ne+ue)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ue)*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ue=se*ie,ne=.05,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y,(ne-ue)*a,(oe-ie)*y)),ce.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 xe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(te,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(te,a,y){var E=new go.Geometry,b=se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(te,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,ne=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(te,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(te,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,ne=0,oe=.5,ge=(b-a)/2,ie=(x-y)/2,ue=new go.PathFigure(ne*a+ge,(oe+ee)*y+ie,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+ie,(ne-z)*a+ge,(oe+ee)*y+ie,(ne-ee)*a+ge,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+ie,(ne-ee)*a+ge,(oe-z)*y+ie,(ne-z)*a+ge,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+ie,ne*a+ge,(oe-ee)*y+ie,(ne-ee+z*.5)*a+ge,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+ie,(ne-ee+z*.5)*a+ge,(oe+z)*y+ie,ne*a+ge,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var ce=new go.PathFigure(ne*a+ge,(oe+ee)*y+ie,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+ie,(ne-z)*a+ge,(oe+ee)*y+ie,(ne-ee)*a+ge,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+ie,(ne-ee)*a+ge,(oe-z)*y+ie,(ne-z)*a+ge,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+ie,ne*a+ge,(oe-ee)*y+ie,(ne-ee+z*.5)*a+ge,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+ie,(ne-ee+z*.5)*a+ge,(oe+z)*y+ie,ne*a+ge,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var ze=new go.PathFigure((ne-ee)*a+ge,oe*y+ie,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+ie,(ne-ee)*a+ge,(oe-z)*y+ie,(ne-z)*a+ge,(oe-ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+ie,(ne+z)*a+ge,(oe-ee)*y+ie,(ne+ee)*a+ge,(oe-z)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+ie,(ne+ee)*a+ge,(oe+z)*y+ie,(ne+z)*a+ge,(oe+ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+ie,(ne-z)*a+ge,(oe+ee)*y+ie,(ne-ee)*a+ge,(oe+z)*y+ie)),z=se*.4,ee=.4,ne=.8,oe=.5;var De=new go.PathFigure(ne*a+ge,(oe-ee)*y+ie,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+ie,(ne+z)*a+ge,(oe-ee)*y+ie,(ne+ee)*a+ge,(oe-z)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+ie,(ne+ee)*a+ge,(oe+z)*y+ie,(ne+z)*a+ge,(oe+ee)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+ie,ne*a+ge,(oe+ee)*y+ie,(ne+ee-z*.5)*a+ge,(oe+z)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+ie,(ne+ee-z*.5)*a+ge,(oe-z)*y+ie,ne*a+ge,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,ne=1,oe=.5;var et=new go.PathFigure(ne*a+ge,(oe-ee)*y+ie,!0);return E.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+ie,(ne+z)*a+ge,(oe-ee)*y+ie,(ne+ee)*a+ge,(oe-z)*y+ie)),et.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+ie,(ne+ee)*a+ge,(oe+z)*y+ie,(ne+z)*a+ge,(oe+ee)*y+ie)),et.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+ie,ne*a+ge,(oe+ee)*y+ie,(ne+ee-z*.5)*a+ge,(oe+z)*y+ie)),et.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+ie,(ne+ee-z*.5)*a+ge,(oe-z)*y+ie,ne*a+ge,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(te,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),ie=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,ie);var ue=re(oe.x,oe.y),ce=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=se*.3,x=.3,Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,ie),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(ne),Pe(oe),Pe(ge),Pe(ie),Pe(ue),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(te,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,ue=.5,ce=0,ze=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,ue=z,ce=z,ze=ge*ue,De=ge*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,ne*y,(ee-(ze+ue)/2)*a,(ne+(ce+De)/2)*y,(ee-ue)*a,(ne+De)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-ue)*a,(ne-De)*y,(ee-ze)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,ne*y,(ee+ze)*a,(ne-ce)*y,(ee+ue)*a,(ne-De)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(ne+De)*y,(ee+(ze+ue)/2)*a,(ne+(ce+De)/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 et=new go.PathFigure(.2*a,y,!1);E.add(et),et.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ot=new go.PathFigure(.8*a,y,!1);return E.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(te,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,ne=.2,oe=.9,ge=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ne=.8,oe=.9;var ie=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,oe=se*.1,ge=.1,ie=.9,ue=new go.PathFigure((ge-ne)*a,ie*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-ne)*y,(ge-ne)*a,(ie-oe)*y,(ge-oe)*a,(ie-ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,ie*y,(ge+oe)*a,(ie-ne)*y,(ge+ne)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+ne)*y,(ge+ne)*a,(ie+oe)*y,(ge+oe)*a,(ie+ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,ie*y,(ge-oe)*a,(ie+ne)*y,(ge-ne)*a,(ie+oe)*y)),ne=.1,oe=se*.1,ge=.4,ie=.9;var ce=new go.PathFigure((ge-ne)*a,ie*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-ne)*y,(ge-ne)*a,(ie-oe)*y,(ge-oe)*a,(ie-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,ie*y,(ge+oe)*a,(ie-ne)*y,(ge+ne)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+ne)*y,(ge+ne)*a,(ie+oe)*y,(ge+oe)*a,(ie+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,ie*y,(ge-oe)*a,(ie+ne)*y,(ge-ne)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=se*.05,ue=.175,ce=.95,ee=new go.PathFigure((ue-ge)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-ge)*y,(ue-ge)*a,(ce-ie)*y,(ue-ie)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,ce*y,(ue+ie)*a,(ce-ge)*y,(ue+ge)*a,(ce-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+ge)*y,(ue+ge)*a,(ce+ie)*y,(ue+ie)*a,(ce+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,ce*y,(ue-ie)*a,(ce+ge)*y,(ue-ge)*a,(ce+ie)*y));var ge=.05,ie=se*.05,ue=.375,ce=.95,ne=new go.PathFigure((ue-ge)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-ge)*y,(ue-ge)*a,(ce-ie)*y,(ue-ie)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,ce*y,(ue+ie)*a,(ce-ge)*y,(ue+ge)*a,(ce-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+ge)*y,(ue+ge)*a,(ce+ie)*y,(ue+ie)*a,(ce+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,ce*y,(ue-ie)*a,(ce+ge)*y,(ue-ge)*a,(ce+ie)*y));var ge=.05,ie=se*.05,ue=.625,ce=.95,oe=new go.PathFigure((ue-ge)*a,ce*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-ge)*y,(ue-ge)*a,(ce-ie)*y,(ue-ie)*a,(ce-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,ce*y,(ue+ie)*a,(ce-ge)*y,(ue+ge)*a,(ce-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+ge)*y,(ue+ge)*a,(ce+ie)*y,(ue+ie)*a,(ce+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,ce*y,(ue-ie)*a,(ce+ge)*y,(ue-ge)*a,(ce+ie)*y));var ge=.05,ie=se*.05,ue=.825,ce=.95,ze=new go.PathFigure((ue-ge)*a,ce*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-ge)*y,(ue-ge)*a,(ce-ie)*y,(ue-ie)*a,(ce-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,ce*y,(ue+ie)*a,(ce-ge)*y,(ue+ge)*a,(ce-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+ge)*y,(ue+ge)*a,(ce+ie)*y,(ue+ie)*a,(ce+ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,ce*y,(ue-ie)*a,(ce+ge)*y,(ue-ge)*a,(ce+ie)*y).close());var De=new go.PathFigure(0,y,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=se*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-ne)*y,(oe-ne)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+ne)*a,(ge-ee)*y,(oe+ee)*a,(ge-ne)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+ne)*y,(oe+ne)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-ne)*a,(ge+ee)*y,(oe-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(te,a,y){var E=new go.Geometry,b=.3,x=se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(te,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(te,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(te,a,y){var E=new go.Geometry,b=8,x=b*se,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(te,a,y){var E=new go.Geometry,b=15,x=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var xe={},at="5.0",re={},ae=null,Pe=!1,We=!1,Ne=null,he=!1,Re=null,se=null,qe=0;qe<arguments.length;qe++){var je=arguments[qe];if(je!==null)switch(typeof je){case"number":at=je.toFixed(1);break;case"string":je.match(new RegExp("^[0-9]\\.[0-9]+$"))?at=je:Ne=je;break;case"object":typeof je.is3D!="undefined"?ae=je:re=je;break;case"boolean":Pe=je,We=!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},re.material_id!==void 0&&!We&&(Pe=!0)),Ne!==null&&re.id===void 0&&(re.id=Ne);var Le="",Xe="",He=!1,Ge=null,te=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var ne=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};xe.setHTML5Codebase=function(Ee,ke){se=Ee,dn(Ee,ke)},xe.setJavaCodebase=xe.setJavaCodebaseVersion=xe.isCompiledInstalled=xe.setPreCompiledScriptPath=xe.setPreCompiledResourcePath=function(){},xe.setHTML5CodebaseVersion=function(Ee,ke){var Ae=parseFloat(Ee);if(Ae!==NaN&&Ae<5){console.log("The GeoGebra HTML5 codebase version "+Ae+" is deprecated. Using version latest instead.");return}Re=Ee,Wt(Ee,ke)},xe.getHTML5CodebaseVersion=function(){return te},xe.getParameters=function(){return re},xe.setFontsCSSURL=function(Ee){z=Ee},xe.setGiacJSURL=function(Ee){},xe.setJNLPFile=function(Ee){Le=Ee},xe.setJNLPBaseDir=function(Ee){},xe.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ke="auto",Ae=re.id,ot,Oe=!1,ft=0;ft<arguments.length;ft++){var de=arguments[ft];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ke=de:Ae=arguments[ft]):typeof de=="boolean"?Oe=de:de instanceof HTMLElement&&(ot=de)}rt();function rt(){if(!he){setTimeout(rt,200);return}ke=Kt(ke);var Et=ot||document.getElementById(Ae);if(!Et){console.log("possibly bug on ajax loading? ");return}if(xe.removeExistingApplet(Et,!1),re.width===void 0&&Et.clientWidth&&(re.width=Et.clientWidth),re.height===void 0&&Et.clientHeight&&(re.height=Et.clientHeight),!(re.width&&re.height)&&ke==="html5"&&(delete re.width,delete re.height),Ge=ke,ke==="screenshot")Ot(Et,re);else{var yt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?yt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(yt=(!oe()||Ee())&&ge()),yt?(Ge="screenshot",Jt(Et,re,Oe,ke)):et(Et,re,Oe)}}};function oe(){try{return window.self!==window.top}catch(Ee){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xe.getViews=function(){return ae},xe.isJavaInstalled=function(){return!1};var ie=function(Ee){var ke=function(ft){var de=JSON.parse(ft),rt=function(Ze){return Ze.type=="G"||Ze.type=="E"},Et=de.elements?de.elements.filter(rt)[0]:de;if(!Et||!Et.url){Ae();return}re.fileName=Et.url,ue(Et.settings||{}),ae.is3D=!0;var yt="https://www.geogebra.org/images/";xe.setPreviewImage(E||Et.previewUrl,yt+"GeoGebra_loading.png",yt+"applet_play.png"),Ee()},Ae=function(){re.onError&&re.onError(),In("Error: Fetching material (id "+re.material_id+") failed.",re)},ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Oe="/materials/"+re.material_id+"?scope=basic";ce("https://"+ot+"/api/proxy.php?path="+encodeURIComponent(Oe),ke,Ae)};function ue(Ee){var ke=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ae){Ee[Ae]=!!Ee[Ae]}),ke.forEach(function(Ae){re[Ae]===void 0&&Ee[Ae]!==void 0&&(re[Ae]=Ee[Ae])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function ce(Ee,ke,Ae){var ot=new XMLHttpRequest;ot.open("GET",Ee),ot.onload=function(){ke(ot.responseText)},ot.onerror=Ae,ot.send()}xe.isHTML5Installed=function(){return!0},xe.getLoadedAppletType=function(){return Ge},xe.setPreviewImage=function(Ee,ke,Ae){E=Ee,b=ke,x=Ae},xe.removeExistingApplet=function(Ee,ke){var Ae;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),Ge=null;var ot=null;for(Ae=0;Ae<Ee.childNodes.length;Ae++){var Oe=Ee.childNodes[Ae],ft=Oe.className;ft==="applet_screenshot"?ke?(Oe.style.display="block",Ge="screenshot"):Oe.style.display="none":ft!=="applet_scaler prerender"&&(Ee.removeChild(Oe),ot=ft&&ft.indexOf("appletParameters")!=-1?Oe.id:null,Ae--)}var de=re.id!==void 0?re.id:ot,rt=window[de];rt&&typeof rt.getBase64=="function"&&(rt.remove(),window[de]=null)},xe.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=xe.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},xe.startAnimation=function(){var Ee=xe.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},xe.stopAnimation=function(){var Ee=xe.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},xe.getAppletObject=function(){var Ee=re.id!==void 0?re.id:"ggbApplet";return window[Ee]},xe.resize=function(){};var ze=function(Ee,ke,Ae){var ot=document.createElement("param");ot.setAttribute("name",ke),ot.setAttribute("value",Ae),Ee.appendChild(ot)},De=function(Ee){return Ee&&Ee!=="false"},et=function(Ee,ke,Ae){ne(te)<=4.2&&(Ae=!0);var ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Oe=document.createElement("div");Oe.classList.add("appletParameters","notranslate");var ft=ke.width,de=ke.height;if(ke.disableAutoScale=ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ke.disableAutoScale,ke.width!==void 0)if(ne(te)<=4.4)De(ke.showToolBar)&&(ke.height-=7),De(ke.showAlgebraInput)&&(ke.height-=37),ke.width<605&&De(ke.showToolBar)&&(ke.width=605,ft=605);else{var rt=100;(De(ke.showToolBar)||De(ke.showMenuBar))&&(ke.hasOwnProperty("customToolBar")&&(ke.customToolbar=ke.customToolBar),rt=De(ke.showMenuBar)?245:155),ft<rt&&(ke.width=rt,ft=rt)}Oe.style.border="none",Oe.style.display="inline-block";for(var Et in ke)ke.hasOwnProperty(Et)&&Et!=="appletOnLoad"&&Oe.setAttribute("data-param-"+Et,ke[Et]);z&&Oe.setAttribute("data-param-fontscssurl",z),xe.resize=function(){GGBAppletUtils.responsiveResize(Ee,ke)},window.addEventListener("resize",function(jt){xe.resize()});var yt=typeof ke.appletOnLoad=="function"?ke.appletOnLoad:function(){};if(!Ae&&ke.width!==void 0){ke.hasOwnProperty("showSplash")||Oe.setAttribute("data-param-showSplash","false");var Ze=Ee.querySelector(".applet_scaler.prerender"),Me=Ze!==null;if(Me)var we=Ze.querySelector(".ggb_preview");else{var we=_t(ft,de,ke.borderColor,!1);Ze=document.createElement("div"),Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.style.width=ft+"px",Ze.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ze,"66%"),ne(te)>=5?(ke.appletOnLoad=function(jt){var Nt=Ee.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ze),window.GGBT_wsf_view&&$(window).trigger("resize"),yt(jt)},Me||Ze.appendChild(we)):Oe.appendChild(we),Ze.appendChild(Oe),Me||Ee.appendChild(Ze),setTimeout(function(){xe.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Oe),Ee.appendChild(pe),ke.appletOnLoad=function(jt){xe.resize(),yt(jt)}}function Ve(jt,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Nt.appletOnLoad):renderGGBElement(jt),In("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function Ye(jt,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Nt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ln){Ve(ln.article,ln.params)}),html5AppletsToProcess=null)},ne(te)<5&&(jt.className+=" geogebraweb")):Ve(jt,Nt)}if(ot){scriptLoadStarted=!0;for(var st=0;st<Oe.childNodes.length;st++){var it=Oe.childNodes[st].tagName;it==="TABLE"&&(Oe.removeChild(Oe.childNodes[st]),st--)}if(ggbHTML5LoadedScript!==null){var mt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');mt!=null&&mt.parentNode.removeChild(mt)}var Mt=document.createElement("script"),It=function(){Ye(Oe,ke)};Mt.src=Xe+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Mt.src,In("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",ke),!se&&(!Re||Re=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),It()):Xe.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];It.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(Mt.onload=It,Ee.appendChild(Mt))}else Ye(Oe,ke);ke.height=de,ke.width=ft},Ot=function(Ee,ke,Ae){var ot=_t(ke.width,ke.height,ke.borderColor,Ae),Oe=document.createElement("div");Oe.style.position="relative",Oe.style.display="block",Oe.style.width=ke.width+"px",Oe.style.height=ke.height+"px",Oe.className="applet_screenshot applet_scaler"+(Ae?" applet_screenshot_play":""),Oe.appendChild(ot);var ft=GGBAppletUtils.getScale(ke,Ee,Ae);Ae?(Ee.appendChild(un()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Oe,"66%"),Ee.appendChild(Oe),ft!==1&&!isNaN(ft)&&(GGBAppletUtils.scaleElement(Oe,ft),Oe.style.width=ke.width+"px",Oe.style.height=ke.height+"px",Oe.parentNode.style.width=ke.width*ft+"px",Oe.parentNode.style.height=ke.height*ft+"px"),xe.resize=function(){zt(Ee,ot,Oe,Ae)},window.addEventListener("resize",function(de){xe.resize()}),xe.resize()};function zt(Ee,ke,Ae,ot){if(Ee.contains(ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var Oe=GGBAppletUtils.getScale(re,Ee,ot);Ae.parentNode!==null&&(!isNaN(Oe)&&Oe!==1?(GGBAppletUtils.scaleElement(Ae,Oe),Ae.parentNode.style.width=re.width*Oe+"px",Ae.parentNode.style.height=re.height*Oe+"px"):(GGBAppletUtils.scaleElement(Ae,1),Ae.parentNode.style.width=re.width+"px",Ae.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xe.onExitFullscreen=function(Ee,ke){ke.appendChild(Ee)};var Jt=function(Ee,ke,Ae,ot){Ot(Ee,ke,!0);for(var Oe=function(){var rt=[];for(de=0;de<Ee.childNodes.length;de++)rt.push(Ee.childNodes[de]);if(window.GGBT_wsf_view){var Et=window.GGBT_wsf_view.renderFullScreen(Ee,ke.id),yt=document.getElementById("fullscreencontainer"),Ze=jQuery(Ee).find(".fullscreencontent");Ze.length>0?(Et.remove(),Ze.attr("id","fullscreencontent").show(),jQuery(yt).append(Ze),window.dispatchEvent(new Event("resize"))):et(Et,ke,!1),window.GGBT_wsf_view.launchFullScreen(yt)}else Ge=ot,et(Ee,ke,!1);if(!window.GGBT_wsf_view)for(de=0;de<rt.length;de++)Ee.removeChild(rt[de])},ft=Ee.getElementsByClassName("ggb_preview_play"),de=0;de<ft.length;de++)ft[de].addEventListener("click",Oe,!1),ft[de].addEventListener("ontouchstart",Oe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},un=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ke='.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");}',Ae=document.createElement("style");Ae.styleSheet?Ae.styleSheet.cssText=ke:Ae.appendChild(document.createTextNode(ke)),document.getElementsByTagName("head")[0].appendChild(Ae)}return Ee},_t=function(Ee,ke,Ae,ot){var Oe=document.createElement("div");Oe.className="ggb_preview",Oe.style.position="absolute",Oe.style.zIndex="90",Oe.style.width=Ee-2+"px",Oe.style.height=ke-2+"px",Oe.style.top="0px",Oe.style.left="0px",Oe.style.overflow="hidden",Oe.style.backgroundColor="white";var ft="lightgrey";Ae!==void 0&&(Ae==="none"?ft="transparent":ft=Ae),Oe.style.border="1px solid "+ft;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 rt,Et,yt;if(!ot){rt=document.createElement("img"),rt.style.position="absolute",rt.style.zIndex="1001",rt.style.opacity=1,de.style.opacity=.3,Et=360,Et>Ee/4*3&&(Et=Ee/4*3),yt=Et/5.8,rt.setAttribute("src",b),rt.setAttribute("width",Et),rt.setAttribute("height",yt);var Ze=(Ee-Et)/2,Me=(ke-yt)/2;rt.style.left=Ze+"px",rt.style.top=Me+"px",Oe.appendChild(rt)}}return Oe.appendChild(de),Oe},Kt=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Tt=["web","webSimple","web3d","tablet","tablet3d","phone"],Wt=function(Ee,ke){if(te=Ee,ke){dn(te,!0);return}var Ae=!Pe;if(Ae){var ot=ne(te);!isNaN(ot)&&ot<4.4&&(Ae=!1)}var Oe,ft;window.location.protocol.substr(0,4)==="http"?Oe=window.location.protocol:Oe="http:";var de=te.indexOf("//");de>0?ft=te:de===0?ft=Oe+te:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var rt in Tt)if(te.slice(Tt[rt].length*-1)===Tt[rt]||te.slice((Tt[rt].length+1)*-1)===Tt[rt]+"/"){dn(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ae&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!De(re.showToolBar)&&!De(re.showMenuBar)&&!De(re.showAlgebraInput)&&!De(re.enableRightClick)&&(!re.appName||re.appName=="classic")?ft+="webSimple/":ft+="web3d/",dn(ft,!1)},dn=function(Ee,ke){if(Ee.requirejs){Xe=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Xe=Ee,ke===null&&(ke=Ee.indexOf("http")===-1),He=ke,a="web.nocache.js",y=!1;var Ae=Xe.split("/");Ae.length>1&&(!ke&&Ae[Ae.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Tt.indexOf(Ae[Ae.length-2])>=0&&(a=Ae[Ae.length-2]+".nocache.js")),Ae=Ee.split("/"),te=Ae[Ae.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var ot=parseFloat(te);ot!==NaN&&ot<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead."),Wt("5.0",ke))},In=function(Ee,ke){window.console&&window.console.log&&(!ke||typeof ke.showLogging=="undefined"||ke.showLogging&&ke.showLogging!=="false")&&console.log(Ee)};re.material_id!==void 0?ie($n):$n();function $n(){var Ee=at;Re!==null?Ee=Re:parseFloat(Ee)<5&&(Ee="5.0"),Wt(Ee,!1),se!==null&&dn(se,He),he=!0}return xe},GGBAppletUtils=function(){"use strict";function xe(){return window.GGBT_wsf_edit!==void 0}function at(he,Re){Re!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+Re+","+Re+")",he.style.webkitTransform="scale("+Re+","+Re+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function re(he,Re,se,qe,je,Le){var Xe=null;if(Le!=null&&Le!="")for(var He=he.parentNode;He!=null;)if((" "+He.className+" ").indexOf(" "+Le+" ")>-1){Xe=He;break}else He=He.parentNode;var Ge=0,te=0,a=0,y=0,E=0,b=0,x=0;if(Xe)Ge=Xe.offsetWidth,te=Math.max(qe?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ge):(Ge=window.innerWidth,te=window.innerHeight,a=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=Ge&&(je===void 0||!je)&&(document.dir==="rtl"?(E=Ge-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return he&&((se===void 0||!se)&&Re>0&&Re+y<Ge?Ge=Re:Ge-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(te-=x)),{width:Ge,height:te}}function ae(he,Re,se,qe,je){if(he.isScreenshoGenerator)return 1;var Le=qe!==void 0&&qe,Xe=he.noScaleMargin!=null&&he.noScaleMargin,He=function(ee){return ee&&ee!=="false"},Ge=He(he.autoHeight),te=re(Re,he.width,se,Ge,Le&&window.GGBT_wsf_view||Xe,je),a=parseInt(te.width),y=he.width,E=he.height;if(y===void 0){var b=Re.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Le?1:te.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(he,Re,se){var qe=1,je,Le=!1;if(he.hasOwnProperty("allowUpscale")&&(Le=he.allowUpscale),he.hasOwnProperty("scale")&&(qe=parseFloat(he.scale),(isNaN(qe)||qe===null||qe===0)&&(qe=1),qe>1&&(Le=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Le=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))je=ae(he,Re,Le,se,he.scaleContainerClass);else return qe;return Le&&(!he.hasOwnProperty("scale")||qe===1)?je:Math.min(qe,je)}function We(he){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),qe=he.getBoundingClientRect(),je=(Re-qe.width)/2,Le=(se-qe.height)/2;Le<0&&(Le=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(je<40?he.style.left="40px":he.style.left=je+"px",he.style.top=Le+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Le<40?he.style.top="40px":he.style.top=Le+"px",he.style.left=je+"px")}function Ne(he,Re){var se=he.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var qe=Pe(Re,he);xe()&&se.setAttribute("data-param-scale",qe);for(var je=null,Le=0;Le<he.childNodes.length;Le++)if(he.childNodes[Le].className!==void 0&&he.childNodes[Le].className.match(/^applet_scaler/)){je=he.childNodes[Le];break}if(je!==null&&je.querySelector(".noscale")!==null)return;var Xe=Re.id!==void 0?Re.id:"ggbApplet",He=window[Xe];(He==null||!He.recalculateEnvironments)&&je!==null&&!je.className.match(/fullscreen/)&&(je.parentNode.style.transform="",!isNaN(qe)&&qe!==1?(je.parentNode.style.width=Re.width*qe+"px",je.parentNode.style.height=Re.height*qe+"px",at(je,qe)):(at(je,1),je.parentNode.style.width=Re.width+"px",je.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:xe,positionCenter:We,getScale:Pe,scaleElement:at}}();__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 xe=n.location.search;return xe.indexOf(J)!=-1||xe.indexOf(K)!=-1}function q(xe,at){}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(xe){var at=s[L].bindings;s[L].bindings=function(){for(var re=at?at():{},ae=xe[webModule.__softPermutationId],Pe=O;Pe<ae.length;Pe++){var We=ae[Pe];re[We[O]]=We[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var xe=o.createElement(Q);if(xe.id=L,xe.style.cssText=R+S,xe.tabIndex=-1,o.body.appendChild(xe),t=xe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var at=document.compatMode==U?V:W;t.write(at+X),t.close()}}}function w(xe){function at(ae){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=Pe();if(We){ae();return}function Ne(){if(!We){if(!Pe())return;We=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var he=setInterval(function(){Ne()},$)}function re(ae){var Pe=u(),We=Pe.body,Ne=Pe.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ae,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),We.appendChild(Ne)}at(function(){re(xe)})}webModule.__startLoadingFragment=function(xe){return C(xe)},webModule.__installRunAsyncCode=function(xe){var at=u(),re=at.body,ae=at.createElement(_);ae.language=ab,ae.text=xe,re.appendChild(ae),re.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(xe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xe){var at=c[xe];return at==null?null:at},r=d,webModule.__errFn=e}function B(){function xe(he){var Re=he.lastIndexOf(rb);Re==-1&&(Re=he.length);var se=he.indexOf(sb);se==-1&&(se=he.length);var qe=he.lastIndexOf(tb,Math.min(se,Re));return qe>=O?he.substring(O,qe+P):W}function at(he){if(!he.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=he+vb,he=xe(Re.src)}return he}function re(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function ae(){for(var he=o.getElementsByTagName(_),Re=O;Re<he.length;++Re)if(he[Re].src.indexOf(xb)!=-1)return xe(he[Re].src);return W}function Pe(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function We(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var Ne=re();return Ne==W&&(Ne=ae()),Ne==W&&(Ne=Pe()),Ne==W&&We()&&(Ne=xe(o.location.href)),Ne=at(Ne),Ne}function C(xe){return xe.match(/^\//)||xe.match(/^[a-zA-Z]+:\/\//)?xe:webModule.__moduleBase+xe}function D(){var xe=[],at=O,re=[],ae=[];function Pe(he){var Re=ae[he](),se=re[he];if(Re in se)return Re;var qe=[];for(var je in se)qe[se[je]]=je;throw r&&r(he,qe,Re),null}if(__gwt_isKnownPropertyValue=function(he,Re){return Re in re[he]},webModule.__getPropMap=function(){var he={};for(var Re in re)re.hasOwnProperty(Re)&&(he[Re]=Pe(Re));return he},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Ne=We.indexOf(Db);Ne!=-1&&(at=parseInt(We.substring(Ne+P),$),We=We.substring(O,Ne))}catch(he){}return webModule.__softPermutationId=at,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(xe,at,re){"use strict";re.d(at,{Ax:function(){return Ne},Ds:function(){return he},KI:function(){return se},SI:function(){return We},f1:function(){return Pe}});var ae=re(11320);function Pe(qe){let je=!0;if(qe.length>0){for(let Le=0;Le<qe.length;Le++)if(qe[Le].compile_success==0||!qe[Le].compile_success){je=!1;break}}else je=!1;return je}function We(qe,je=""){let Le=[];for(let Xe=0;Xe<qe.length;Xe++){let He=qe[Xe],Ge=je?`${je}/${He.name}`:`${He.name}`;Le.push({title:He.name,type:He.type,isLeaf:He.type!=="tree",key:Ge})}return Le}function Ne(qe,je,Le){for(let Xe=0;Xe<qe.length;Xe++){let He=qe[Xe];if(He.key===je){He.children=Le;break}He.children&&Ne(He.children,je,Le)}return qe}function he(qe,je,Le){let Xe;return function(){let He=this,Ge=arguments,te=function(){Xe=null,Le||qe.apply(He,Ge)},a=Le&&!Xe;clearTimeout(Xe),Xe=setTimeout(te,je),a&&qe.apply(He,Ge)}}const Re=!0,se=ae.Z.API_SERVER},63205:function(xe,at,re){"use strict";re.d(at,{Z:function(){return He}});var ae=re(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=re(94184),Ne=re.n(We),he=re(57953),Re=re(15979),se=re(33170),qe=re(28706),je=re(35973),Le=(Ge,te,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(ne){E(ne)}},x=ee=>{try{z(a.throw(ee))}catch(ne){E(ne)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(Ge,te)).next())}),He=({data:Ge,className:te,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,je.useIntl)(),ne=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),ge=(0,ae.useRef)(null),ie=(0,ae.useRef)(null),[ue,ce]=(0,ae.useState)(!1),[ze,De]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ge.current||(ge.current=document.createElement("style"),document.head.appendChild(ge.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),ge.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&et()):(document.body.removeAttribute("data-custom"),ge.current&&(document.head.removeChild(ge.current),ge.current=null))},[Ge==null?void 0:Ge.visible]);const et=()=>Le(void 0,null,function*(){ce(!0),De("\u6B63\u5728\u52A0\u8F7D\u4E2D");const _t=yield(0,qe.ZJ)(Ge==null?void 0:Ge.src);ne.current.src="",ne.current.src=_t,ne.current.onload=function(){un()},ce(!1),De("")}),Ot=()=>{document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",E()},zt=_t=>Le(void 0,null,function*(){ce(!0),De("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Kt=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:_t.dataUrl}});Kt!=null&&Kt.id&&!z?(yield(0,se.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:Kt==null?void 0:Kt.id,settings:JSON.stringify(_t.state)}})).status===0&&b():Kt!=null&&Kt.id&&b(Kt),document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",ce(!1),De("")}),Jt=()=>{const _t=document.querySelector('a[href="https://markerjs.com/"]');_t&&_t.parentNode&&(_t.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:ee.formatMessage({id:"shixuns.text",defaultMessage:"\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:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Tt=>{const Wt=document.querySelector(Tt.name);Wt&&Wt.setAttribute("title",Tt.title)})},un=()=>{oe.current=new Re.hP(ne.current),oe.current.targetRoot=ie.current,oe.current.addEventListener("render",zt),oe.current.addEventListener("beforeclose",Ot),x&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),Ge!=null&&Ge.snapshotData&&oe.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Jt()},300)};return ae.createElement(ae.Fragment,null,(Ge==null?void 0:Ge.visible)&&ae.createElement(he.Z,{spinning:ue,tip:ze,style:{position:"absolute"}},ae.createElement("div",{ref:ie,className:Ne()(Pe.imageDimensions,te,a?Pe.fullWidth:""),style:y},ae.createElement("img",{className:Pe.img,ref:ne}))))}},36527:function(xe,at,re){"use strict";var ae=re(67294),Pe=re(71230),We=re(15746),Ne=re(66368),he=re(71577),Re=re(85725),se=re(71736),qe=re(84279),je=re(35973),Le=re(67294);const Xe=(0,ae.forwardRef)(({callback:He,showSaveButton:Ge,value:te=""},a)=>{const y=(0,ae.useRef)(),E=(0,je.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\u5206\u6570\u5F97\u5206"}),value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\u6839\u5F0F\u89D2\u6807"}),value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\u6781\u9650\u5BF9\u6570"}),value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\u4E09\u89D2\u51FD\u6570"}),value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\u79EF\u5206\u8FD0\u7B97"}),value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\u5927\u578B\u8FD0\u7B97"}),value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\u4EE3\u6570"}),value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\u51E0\u4F55"}),value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\u4E0D\u7B49\u5F0F"}),value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\u79EF\u5206"}),value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\u4E09\u89D2"}),value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\u7EDF\u8BA1"}),value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],z=oe=>{y.current.setValue(y.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Le.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},b.map((oe,ge)=>Le.createElement(We.Z,{flex:"110px",className:se.Z.item},Le.createElement("div",null,Le.createElement(Re.Z,{value:`$$${oe.value}$$`}),oe.name),Le.createElement("div",{className:se.Z.children},oe.children.map((ie,ue)=>Le.createElement("div",{key:ue},Le.createElement("h1",null,ie.name),Le.createElement(Pe.Z,{gutter:[10,10]},ie.data.map((ce,ze)=>Le.createElement(We.Z,{key:ze,onClick:()=>z(ce),className:se.Z.diamond},Le.createElement(Re.Z,{value:"`$$"+ce.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Le.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},x.map((oe,ge)=>Le.createElement(We.Z,{flex:"110px",className:se.Z.item},Le.createElement("div",null,Le.createElement(Re.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Le.createElement("div",{className:se.Z.children},oe.children.map((ie,ue)=>Le.createElement("div",{key:ue},ie.name&&Le.createElement("h1",null,ie.name),Le.createElement(Pe.Z,{gutter:[10,10]},ie.data.map((ce,ze)=>Le.createElement(We.Z,{key:ze,onClick:()=>z(ce),className:se.Z.diamond},Le.createElement(Re.Z,{value:"`$$"+ce.value+"$$`"}))))))))))}],ne=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var ge=oe.innerText;return He&&He(ge),ge};return(0,ae.useImperativeHandle)(a,()=>({getData:ne})),Le.createElement("div",{className:se.Z.mathWrap},Le.createElement(Ne.default,{defaultActiveKey:"1",items:ee}),Le.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},te||""),Ge&&Le.createElement("div",{className:se.Z.button},Le.createElement(he.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});at.Z=Xe},57444:function(xe,at,re){"use strict";re.d(at,{h:function(){return ne}});var ae=re(67294),Pe=re(11713),We=re(22150),Ne=re(71577),he=re(4631),Re=re.n(he),se=re(71749),qe=re(30483),je=re(35973),Le=Object.defineProperty,Xe=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,ge,ie)=>ge in oe?Le(oe,ge,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[ge]=ie,E=(oe,ge)=>{for(var ie in ge||(ge={}))te.call(ge,ie)&&y(oe,ie,ge[ie]);if(Ge)for(var ie of Ge(ge))a.call(ge,ie)&&y(oe,ie,ge[ie]);return oe},b=(oe,ge)=>Xe(oe,He(ge));const x=Pe.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};at.Z=({callback:oe,onCancel:ge})=>{const[ie,ue]=(0,ae.useState)("python");function ce(et){ue(ee[et][1])}function ze(et){oe(et)}const De=(0,je.useIntl)();return ae.createElement(We.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ze,style:{width:500}}),ae.createElement(We.default.Item,{label:De.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(Pe.default,{getPopupContainer:et=>et.parentNode,onChange:ce},Object.keys(ee).map(et=>ae.createElement(x,{key:et,value:et},ee[et][0])))),ae.createElement(We.default.Item,{label:De.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ne,{mode:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},De.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ne.ZP,{type:"ghost",onClick:ge},De.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:oe,onChange:ge,mode:ie,options:ue={}}){const ce=(0,ae.useRef)(),[ze,De]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ze){let et=function(Ot){const zt=Ot.getValue();ge&&ge(zt)};return ze.on("change",et),()=>{ze.off("change",et)}}},[ze,ge]),(0,ae.useEffect)(()=>{ze&&ze.setOption("mode",ie)},[ze,ie]),(0,ae.useEffect)(()=>{ze&&(oe!==ze.getValue()||oe==="")&&setTimeout(()=>{ze.setValue(oe||"")},300)},[ze,oe]),(0,ae.useEffect)(()=>{if(ce.current&&!ze){const et=Re().fromTextArea(ce.current,E({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ue));De(et)}},[ce.current,ze]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ce}))}},35567:function(xe,at,re){"use strict";re.d(at,{Z:function(){return aa}});var ae=re(67294),Pe=re(4631),We=re.n(Pe),Ne=re(91033),he=re(71749),Re=re(57341),se=re(82801),qe=re(88386),je=re(49047),Le=re(80785),Xe=re(85725),He=({value:Se="",className:ve,showTextOnly:fe,showLines:Ue,style:ct={}})=>{const ht=(0,ae.useMemo)(()=>"",[Se]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ht}}))},Ge=re(35973),te=re(67294),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Se,ve,fe)=>ve in Se?a(Se,ve,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Se[ve]=fe,ne=(Se,ve)=>{for(var fe in ve||(ve={}))x.call(ve,fe)&&ee(Se,fe,ve[fe]);if(b)for(var fe of b(ve))z.call(ve,fe)&&ee(Se,fe,ve[fe]);return Se},oe=(Se,ve)=>y(Se,E(ve));function ge({onActionCallback:Se,title:ve,icon:fe,actionName:Ue,className:ct="",children:ht}){function Yt(){Se(Ue)}return te.createElement("a",{title:ve,className:ct,onClick:Yt},te.createElement("i",{className:`${fe}`}),ht)}var ie=({watch:Se,showNullButton:ve,showNullProgramButton:fe,onActionCallback:Ue,fullScreen:ct,insertTemp:ht,hidetoolBar:Yt,extraUse:Ut})=>{const Ft=(0,Ge.useIntl)(),Vn=[...[{title:Ft.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Ft.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Ft.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Ft.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Ft.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Ft.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Ft.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Ft.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Ft.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Ft.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Ft.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Ft.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Ft.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Ft.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Ft.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Ft.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${Se?Ft.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Ft.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Yt&&Vn.map((zn,Je)=>te.createElement("li",{key:Je},zn.actionName?te.createElement(ge,oe(ne({},zn),{onActionCallback:Ue})):te.createElement("span",{className:"v-line"}))),ve?te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ue},te.createElement("span",{className:"fill-tip"},Ft.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Ft.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,fe?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ue},te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ue},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ht&&te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:Ft.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${ht}`,onActionCallback:Ue},te.createElement("span",{className:"fill-tip"},Ft.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Ut&&te.createElement("li",null,Ut),te.createElement("li",{className:"btn-full-screen"},te.createElement(ge,{icon:`${ct?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ct?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ue})))},ue=re(76621),ce=re(22150),ze=re(69677),De=re(71577),et=Object.defineProperty,Ot=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Kt=(Se,ve,fe)=>ve in Se?et(Se,ve,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Se[ve]=fe,Tt=(Se,ve)=>{for(var fe in ve||(ve={}))un.call(ve,fe)&&Kt(Se,fe,ve[fe]);if(Jt)for(var fe of Jt(ve))_t.call(ve,fe)&&Kt(Se,fe,ve[fe]);return Se},Wt=(Se,ve)=>Ot(Se,zt(ve));const dn={labelCol:{span:4},wrapperCol:{span:20}};var In=({callback:Se,onCancel:ve})=>{function fe(ct){Se(ct)}const Ue=(0,Ge.useIntl)();return ae.createElement(ce.default,Wt(Tt({},dn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fe,style:{width:500}}),ae.createElement(ce.default.Item,{label:Ue.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ze.default,null)),ae.createElement(ce.default.Item,{label:Ue.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ze.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ue.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(De.ZP,{type:"ghost",onClick:ve},Ue.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},$n=re(57444),Ee=re(70859),ke=re(14446),Ae=re(71230),ot=re(63205),Oe=re(67294),ft=({callback:Se,onCancel:ve})=>{const fe=document.createElement("canvas"),Ue=fe.getContext("2d");fe.width=1e3,fe.height=800,Ue.fillStyle="#ffffff",Ue.fillRect(0,0,fe.width,fe.height);const ct=fe.toDataURL("image/png");return Oe.createElement(ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Oe.createElement(Ae.Z,{style:{height:"100vh"}},Oe.createElement(ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ct,visible:!0,title:String(Date.now())},onOk:ht=>{Se({src:ht.url})},onClose:ve})))},de=re(23495);function rt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(rt,go.CommandHandler),rt.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},rt.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var ve=1/0;Se.selection.each(function(fe){fe instanceof go.Link||(ve=Math.min(fe.position.x,ve))}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(ve,fe.position.y))}),Se.commitTransaction("aligning left")},rt.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var ve=-1/0;Se.selection.each(function(fe){if(!(fe instanceof go.Link)){var Ue=fe.actualBounds.x+fe.actualBounds.width;ve=Math.max(Ue,ve)}}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(ve-fe.actualBounds.width,fe.position.y))}),Se.commitTransaction("aligning right")},rt.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var ve=1/0;Se.selection.each(function(fe){fe instanceof go.Link||(ve=Math.min(fe.position.y,ve))}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.position.x,ve))}),Se.commitTransaction("alignTop")},rt.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var ve=-1/0;Se.selection.each(function(fe){if(!(fe instanceof go.Link)){var Ue=fe.actualBounds.y+fe.actualBounds.height;ve=Math.max(Ue,ve)}}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.actualBounds.x,ve-fe.actualBounds.height))}),Se.commitTransaction("aligning bottom")},rt.prototype.alignCenterX=function(){var Se=this.diagram,ve=Se.selection.first();if(ve){Se.startTransaction("aligning Center X");var fe=ve.actualBounds.x+ve.actualBounds.width/2;Se.selection.each(function(Ue){Ue instanceof go.Link||Ue.move(new go.Point(fe-Ue.actualBounds.width/2,Ue.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},rt.prototype.alignCenterY=function(){var Se=this.diagram,ve=Se.selection.first();if(ve){Se.startTransaction("aligning Center Y");var fe=ve.actualBounds.y+ve.actualBounds.height/2;Se.selection.each(function(Ue){Ue instanceof go.Link||Ue.move(new go.Point(Ue.actualBounds.x,fe-Ue.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},rt.prototype.alignColumn=function(Se){var ve=this.diagram;ve.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var fe=new Array;ve.selection.each(function(Ut){Ut instanceof go.Link||fe.push(Ut)});for(var Ue=0;Ue<fe.length-1;Ue++){var ct=fe[Ue],ht=ct.actualBounds.y+ct.actualBounds.height+Se,Yt=fe[Ue+1];Yt.move(new go.Point(ct.actualBounds.x,ht))}ve.commitTransaction("align Column")},rt.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var ve=this.diagram;ve.startTransaction("align Row");var fe=new Array;ve.selection.each(function(Ut){Ut instanceof go.Link||fe.push(Ut)});for(var Ue=0;Ue<fe.length-1;Ue++){var ct=fe[Ue],ht=ct.actualBounds.x+ct.actualBounds.width+Se,Yt=fe[Ue+1];Yt.move(new go.Point(ht,ct.actualBounds.y))}ve.commitTransaction("align Row")},rt.prototype.canRotate=function(Se){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},rt.prototype.rotate=function(Se){Se===void 0&&(Se=90);var ve=this.diagram;ve.startTransaction("rotate "+Se.toString());var ve=this.diagram;ve.selection.each(function(fe){fe instanceof go.Link||fe instanceof go.Group||(fe.angle+=Se)}),ve.commitTransaction("rotate "+Se.toString())},rt.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var ve=new go.Map;Se.selection.each(function(fe){ve.set(fe.layer,0)}),ve.iteratorKeys.each(function(fe){var Ue=0;fe.parts.each(function(ct){if(!ct.isSelected){var ht=ct.zOrder;isNaN(ht)?ct.zOrder=0:Ue=Math.max(Ue,ht)}}),ve.set(fe,Ue)}),Se.selection.each(function(fe){rt._assignZOrder(fe,ve.get(fe.layer)+1)}),Se.commitTransaction("pullToFront")},rt.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var ve=new go.Map;Se.selection.each(function(fe){ve.set(fe.layer,0)}),ve.iteratorKeys.each(function(fe){var Ue=0;fe.parts.each(function(ct){if(!ct.isSelected){var ht=ct.zOrder;isNaN(ht)?ct.zOrder=0:Ue=Math.min(Ue,ht)}}),ve.set(fe,Ue)}),Se.selection.each(function(fe){rt._assignZOrder(fe,ve.get(fe.layer)-1-rt._findGroupDepth(fe))}),Se.commitTransaction("pushToBack")},rt._assignZOrder=function(Se,ve,fe){fe===void 0&&(fe=Se),Se.layer===fe.layer&&(Se.zOrder=ve),Se instanceof go.Group&&Se.memberParts.each(function(Ue){rt._assignZOrder(Ue,ve+1,fe)})},rt._findGroupDepth=function(Se){if(Se instanceof go.Group){var ve=0;return Se.memberParts.each(function(fe){ve=Math.max(ve,rt._findGroupDepth(fe))}),ve+1}else return 0},rt.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var ve=Se.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var fe=this.arrowKeyBehavior;if(fe==="none")return;if(fe==="select"){this._arrowKeySelect();return}else if(fe==="move"){this._arrowKeyMove();return}else if(fe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},rt.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(ve){Se.push(ve)}),this.diagram.parts.each(function(ve){Se.push(ve)}),Se},rt.prototype._arrowKeyMove=function(){var Se=this.diagram,ve=Se.lastInput,fe=0,Ue=0;if(ve.control||ve.meta)fe=1,Ue=1;else if(Se.grid!==null){var ct=Se.grid.gridCellSize;Ue=ct.width,fe=ct.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(ht){ve.key==="Up"?ht.move(new go.Point(ht.actualBounds.x,ht.actualBounds.y-fe)):ve.key==="Down"?ht.move(new go.Point(ht.actualBounds.x,ht.actualBounds.y+fe)):ve.key==="Left"?ht.move(new go.Point(ht.actualBounds.x-Ue,ht.actualBounds.y)):ve.key==="Right"&&ht.move(new go.Point(ht.actualBounds.x+Ue,ht.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},rt.prototype._arrowKeySelect=function(){var Se=this.diagram,ve=Se.lastInput,fe=null;ve.key==="Up"?fe=this._findNearestPartTowards(270):ve.key==="Down"?fe=this._findNearestPartTowards(90):ve.key==="Left"?fe=this._findNearestPartTowards(180):ve.key==="Right"&&(fe=this._findNearestPartTowards(0)),fe!==null&&(ve.shift?fe.isSelected=!0:ve.control||ve.meta?fe.isSelected=!fe.isSelected:Se.select(fe))},rt.prototype._findNearestPartTowards=function(Se){var ve=this.diagram.selection.first();if(ve===null)return null;for(var fe=ve.actualBounds.center,Ue=this._getAllParts(),ct=1/0,ht=ve,Yt=0;Yt<Ue.length;Yt++){var Ut=Ue[Yt];if(Ut!==ve&&Ut.canSelect()){var Ft=Ut.actualBounds.center,hn=fe.directionPoint(Ft),Vn=this._angleCloseness(hn,Se);if(Vn<=45){var zn=fe.distanceSquaredPoint(Ft);zn*=1+Math.sin(Vn*Math.PI/180),zn<ct&&(ct=zn,ht=Ut)}}}return ht},rt.prototype._angleCloseness=function(Se,ve){return Math.min(Math.abs(ve-Se),Math.min(Math.abs(ve+360-Se),Math.abs(ve-360-Se)))},rt.prototype._arrowKeyTree=function(){var Se=this.diagram,ve=Se.selection.first();if(ve instanceof go.Node){var fe=Se.lastInput;if(fe.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)Se.commandHandler.canExpandTree(ve)&&Se.commandHandler.expandTree(ve);else{var Ue=this._sortTreeChildrenByY(ve).first();Ue!==null&&Se.select(Ue)}}else if(fe.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)Se.commandHandler.canCollapseTree(ve)&&Se.commandHandler.collapseTree(ve);else{var ct=ve.findTreeParentNode();ct!==null&&Se.select(ct)}else if(fe.key==="Up"){var ct=ve.findTreeParentNode();if(ct!==null){var ht=this._sortTreeChildrenByY(ct),Yt=ht.indexOf(ve);if(Yt>0){for(var Ut=ht.elt(Yt-1);Ut!==null&&Ut.isTreeExpanded&&!Ut.isTreeLeaf;){var Ft=this._sortTreeChildrenByY(Ut);Ut=Ft.last()}Ut!==null&&Se.select(Ut)}else Se.select(ct)}}else if(fe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var Ue=this._sortTreeChildrenByY(ve).first();Ue!==null&&Se.select(Ue)}else for(;ve!==null;){var ct=ve.findTreeParentNode();if(ct===null)break;var ht=this._sortTreeChildrenByY(ct),Yt=ht.indexOf(ve);if(Yt<ht.length-1){Se.select(ht.elt(Yt+1));break}else ve=ct}var hn=Se.selection.first();hn!==null&&Se.scrollToRect(hn.actualBounds)}},rt.prototype._sortTreeChildrenByY=function(Se){var ve=new go.List().addAll(Se.findTreeChildrenNodes());return ve.sort(function(fe,Ue){var ct=fe.location,ht=Ue.location;return ct.y<ht.y?-1:ct.y>ht.y?1:ct.x<ht.x?-1:ct.x>ht.x?1:0}),ve},rt.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},rt.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(rt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(rt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var Et=rt,yt=re(18023),Ze=re(15746),Me=re(33170),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=re(67294),Ve=(Se,ve,fe)=>new Promise((Ue,ct)=>{var ht=Ft=>{try{Ut(fe.next(Ft))}catch(hn){ct(hn)}},Yt=Ft=>{try{Ut(fe.throw(Ft))}catch(hn){ct(hn)}},Ut=Ft=>Ft.done?Ue(Ft.value):Promise.resolve(Ft.value).then(ht,Yt);Ut((fe=fe.apply(Se,ve)).next())});function Ye({onCancel:Se,callback:ve}){let fe=(0,ae.useRef)(),Ue=(0,ae.useRef)(),ct=(0,ae.useRef)(),ht=(0,ae.useRef)(!1);const Yt=(0,ae.useRef)(!1),[Ut,Ft]=(0,ae.useState)(0);function hn(){const Je=de.bx.make,Ht={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"};fe.current=new de.S0(Ue.current,{padding:20,grid:Je(de.s_,"Grid",Je(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Je(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:_e=>{var St=_e.diagram.commandHandler.addTopLevelParts(_e.diagram.selection,!0);St||_e.diagram.currentTool.doCancel()},commandHandler:Je(Et),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:_e=>{var St=_e.subject;St.location=St.location.copy().snapToGridPoint(_e.diagram.grid.gridOrigin,_e.diagram.grid.gridCellSize),setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:_e=>{var St=_e.subject;setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()})},LinkRelinked:_e=>{var St=_e.parameter.part;St.invalidateConnectedLinks();var ut=_e.subject;_e.diagram.toolManager.linkingTool.isForwards?ut.toNode.invalidateConnectedLinks():ut.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),fe.current.nodeTemplate=Je(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),Je(de.bn,{name:"SHAPE",fill:Ht.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")),Je(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Je(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.nodeTemplate.toolTip=Je("ToolTip",Je(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Je(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Je(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function me(_e,St){var ut=(nt,qt)=>{nt.handled=!0,nt.diagram.model.commit(Vt=>{var Fn=qt.part.adornedPart,Ln=new de.E9().setRectSpot(Fn.actualBounds,_e);Ln.subtract(Fn.location),Ln.scale(2,2),Ln.x+=Math.sign(Ln.x)*130,Ln.y+=Math.sign(Ln.y)*130,Ln.add(Fn.location),Ln.snapToGridPoint(nt.diagram.grid.gridOrigin,nt.diagram.grid.gridCellSize);var Gn=Vt.copyNodeData(Fn.data);Vt.setGroupKeyForNodeData(Gn,Vt.getGroupKeyForNodeData(Fn.data)),Vt.addNodeData(Gn);var qn={from:Fn.key,to:Vt.getKeyForNodeData(Gn)};Vt.addLinkData(qn);var oa=nt.diagram.findNodeForData(Gn);oa.location=Ln,nt.diagram.select(oa),setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()},20)})};return Je(de.bn,{figure:St,alignment:_e,alignmentFocus:_e.opposite(),width:_e.equals(de.z6.Top)||_e.equals(de.z6.Bottom)?25:18,height:_e.equals(de.z6.Top)||_e.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ht.white,strokeWidth:4,mouseEnter:(nt,qt)=>qt.fill="dodgerblue",mouseLeave:(nt,qt)=>qt.fill="orange",isActionable:!0,click:ut,contextClick:ut})}function be(_e){return Je(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:(St,ut)=>ut.fill="dodgerblue",mouseLeave:(St,ut)=>ut.fill="orange",click:(St,ut)=>{St.diagram.commandHandler.showContextMenu(ut.part.adornedPart)}},_e||{})}fe.current.nodeTemplate.selectionAdornmentTemplate=Je(de.uz,"Spot",Je(de.Vm,{padding:10}),me(de.z6.Top,"TriangleUp"),me(de.z6.Left,"TriangleLeft"),me(de.z6.Right,"TriangleRight"),me(de.z6.Bottom,"TriangleDown"),be({alignment:new de.z6(.75,0)}));function ye(_e,St){return(ut,nt)=>{ut.handled=!0,ut.diagram.model.commit(qt=>{qt.set(nt.part.adornedPart.data,_e,St)})}}function Be(_e,St){return St||(St="color"),Je(de.bn,{width:16,height:16,stroke:"lightgray",fill:_e,margin:1,background:"transparent",mouseEnter:(ut,nt)=>nt.stroke="dodgerblue",mouseLeave:(ut,nt)=>nt.stroke="lightgray",click:ye(St,_e),contextClick:ye(St,_e)})}function Qe(){return[Je("ContextMenuButton",Je(de.s_,"Horizontal",Be(Ht.white,"fill"),Be(Ht.beige,"fill"),Be(Ht.extralightblue,"fill"),Be(Ht.extralightred,"fill"))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Be(Ht.lightgray,"fill"),Be(Ht.lightgreen,"fill"),Be(Ht.lightblue,"fill"),Be(Ht.lightred,"fill")))]}function Te(){return[Je("ContextMenuButton",Je(de.s_,"Horizontal",Be(Ht.black),Be(Ht.green),Be(Ht.blue),Be(Ht.red))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Be(Ht.white),Be(Ht.magenta),Be(Ht.purple),Be(Ht.orange)))]}function Ke(_e,St){return St||(St="thickness"),Je(de.bn,"LineH",{width:16,height:16,strokeWidth:_e,margin:1,background:"transparent",mouseEnter:(ut,nt)=>nt.background="dodgerblue",mouseLeave:(ut,nt)=>nt.background="transparent",click:ye(St,_e),contextClick:ye(St,_e)})}function $e(_e,St){return St||(St="dash"),Je(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:_e,margin:1,background:"transparent",mouseEnter:(ut,nt)=>nt.background="dodgerblue",mouseLeave:(ut,nt)=>nt.background="transparent",click:ye(St,_e),contextClick:ye(St,_e)})}function xt(){return[Je("ContextMenuButton",Je(de.s_,"Horizontal",Ke(1),Ke(2),Ke(3),Ke(4))),Je("ContextMenuButton",Je(de.s_,"Horizontal",$e(null),$e([2,4]),$e([4,4])))]}function Pt(_e,St){return St||(St="figure"),Je(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:_e,margin:1,background:"transparent",mouseEnter:(ut,nt)=>nt.fill="dodgerblue",mouseLeave:(ut,nt)=>nt.fill="lightgray",click:ye(St,_e),contextClick:ye(St,_e)})}fe.current.nodeTemplate.contextMenu=Je("ContextMenu",Je("ContextMenuButton",Je(de.s_,"Horizontal",Pt("Rectangle"),Pt("RoundedRectangle"),Pt("Ellipse"),Pt("Diamond"))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Pt("Parallelogram2"),Pt("ManualOperation"),Pt("Procedure"),Pt("Cylinder1"))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Pt("Terminator"),Pt("CreateRequest"),Pt("Document"),Pt("TriangleDown"))),Qe(),Te(),xt()),fe.current.groupTemplate=Je(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(_e,St)=>{var ut=St.addMembers(St.diagram.selection,!0);ut||St.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Je(de.s_,"Auto",{name:"BODY"},Je(de.bn,{parameter1:10,fill:Ht.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")),Je(de.Vm,{background:"transparent",margin:20})),Je(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"))),fe.current.groupTemplate.selectionAdornmentTemplate=Je(de.uz,"Spot",Je(de.s_,"Auto",Je(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Je(de.Vm,{margin:1.5})),be({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),fe.current.groupTemplate.contextMenu=Je("ContextMenu",Qe(),Te(),xt()),fe.current.linkTemplate=Je(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",_e=>_e>=1?10:0),new de.KX("toShortLength","dir",_e=>_e>=1?10:0),new de.KX("points").makeTwoWay(),Je(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Je(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",_e=>_e===1)),Je(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",_e=>_e>=1),new de.KX("width","thickness",_e=>7+3*_e),new de.KX("height","thickness",_e=>7+3*_e),new de.KX("segmentOffset","thickness",_e=>new de.E9(-15,4+1.5*_e))),Je(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",_e=>_e===2),new de.KX("width","thickness",_e=>7+3*_e),new de.KX("height","thickness",_e=>7+3*_e),new de.KX("segmentOffset","thickness",_e=>new de.E9(-15,4+1.5*_e))),Je(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.linkTemplate.selectionAdornmentTemplate=Je(de.uz,Je(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:$t(2)},new de.KX("pathPattern","thickness",$t)),be({alignmentFocus:new de.z6(0,0,-6,-4)}));function $t(_e){return Je(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(_e+4).toString()+" H3"})}function Xt(_e){var St="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return _e===0?St="M0 0 M16 16 M0 8 L16 8":_e===2&&(St="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Je(de.bn,{geometryString:St,margin:2,background:"transparent",mouseEnter:(ut,nt)=>nt.background="dodgerblue",mouseLeave:(ut,nt)=>nt.background="transparent",click:ye("dir",_e),contextClick:ye("dir",_e)})}function Ce(_e){var St=(ut,nt)=>{ut.handled=!0,ut.diagram.model.commit(qt=>{var Vt=nt.part.adornedPart;qt.set(Vt.data,_e?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(_e?Vt.toNode:Vt.fromNode).invalidateConnectedLinks()})};return Je(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ut,nt)=>nt.background="dodgerblue",mouseLeave:(ut,nt)=>nt.background="transparent",click:St,contextClick:St})}function on(_e,St){var ut=0,nt=de.z6.RightSide;_e.equals(de.z6.Top)?(ut=270,nt=de.z6.TopSide):_e.equals(de.z6.Left)?(ut=180,nt=de.z6.LeftSide):_e.equals(de.z6.Bottom)&&(ut=90,nt=de.z6.BottomSide),St||(ut-=180);var qt=(Vt,Fn)=>{Vt.handled=!0,Vt.diagram.model.commit(Ln=>{var Gn=Fn.part.adornedPart;Ln.set(Gn.data,St?"toSpot":"fromSpot",de.z6.stringify(nt)),(St?Gn.toNode:Gn.fromNode).invalidateConnectedLinks()})};return Je(de.bn,{alignment:_e,alignmentFocus:_e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ut,background:"transparent",mouseEnter:(Vt,Fn)=>Fn.background="dodgerblue",mouseLeave:(Vt,Fn)=>Fn.background="transparent",click:qt,contextClick:qt})}fe.current.linkTemplate.contextMenu=Je("ContextMenu",Te(),xt(),Je("ContextMenuButton",Je(de.s_,"Horizontal",Xt(0),Xt(1),Xt(2))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Je(de.s_,"Spot",Ce(!1),on(de.z6.Top,!1),on(de.z6.Left,!1),on(de.z6.Right,!1),on(de.z6.Bottom,!1)),Je(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Ce(!0),on(de.z6.Top,!0),on(de.z6.Left,!0),on(de.z6.Right,!0),on(de.z6.Bottom,!0)))));const Nn=`{ "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 An=["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 Dn(_e){return console.log("shapeName:",_e),An.indexOf(_e)>=0}var bn=new de.YI(ct.current,{maxSelectionCount:1,linkTemplate:Je(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Je(de.uz,"Link",{locationSpot:de.z6.Center},Je(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Je(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Je(de.bn,{isPanelMain:!0,strokeWidth:2}),Je(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(_e=>({text:"\u672A\u547D\u540D",size:"100 100",figure:_e.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return fe.current.addDiagramListener("TextEdited",function(_e){var St;const ut=_e.subject.part;var nt=(St=document.activeElement)==null?void 0:St.value;typeof nt=="string"&&nt.trim()===""&&fe.current.model.commit(function(qt){qt.set(ut.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),bn.nodeTemplate=Je(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Je(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")),Je(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(()=>{fe.current.grid=Je(de.s_,"Grid",Je(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Je(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),fe.current.grid.visible=!0,fe.current.grid.gridCellStroke="darkgray",fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=fe.current,fe.current}const Vn=()=>Ve(this,null,function*(){var Je=fe.current.makeImage();const Ht=yield(0,Me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Je.src}});ve({src:Ht.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{hn()},500),Ft(Ut+1),()=>{fe.current=null}),[]);const zn=(0,Ge.useIntl)();return pe.createElement("div",{ref:Yt,className:ht.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(ke.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ut,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ae.Z,null,pe.createElement(Ze.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Ze.Z,{onClick:()=>{var Je,Ht,me=fe.current.selection.first();if(ht.current=!ht.current,document.activeElement&&me){let be=(Ht=(Je=document.activeElement)==null?void 0:Je.value)==null?void 0:Ht.trim();typeof be=="string"&&fe.current.model.commit(function(ye){ye.set(me.data,"text",be||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}Ft(Ut+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},zn.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",zn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:Se},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:we.flowChartWrp},pe.createElement("div",{style:{display:"flex",height:"100%"}},pe.createElement("div",{style:{width:"300px",height:"100%"}},pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:we.myPaletteDiv,ref:ct})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:Ue,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(De.ZP,{size:"large",onClick:Vn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},zn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var st=Ye,it=re(78045),mt=re(31795);const Mt=it.ZP.Group,It={margin:"0 8px"};var jt=({callback:Se,onCancel:ve})=>{function fe(ct){Se(ct)}const Ue=(0,Ge.useIntl)();return ae.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:It},Ue.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:It},Ue.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(mt.Z,null)),ae.createElement("span",{style:It},Ue.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(mt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:It},Ue.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(ce.default.Item,{name:"align"},ae.createElement(Mt,null,ae.createElement(it.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(it.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(it.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(it.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ue.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(De.ZP,{type:"ghost",onClick:ve},Ue.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Nt=re(47897),ln=re(61016),nn=re.n(ln),en=(0,ae.forwardRef)(({use3d:Se,width:ve,height:fe,callback:Ue,showSaveButton:ct},ht)=>{const Yt=(0,ae.useRef)(),Ut=(0,ae.useRef)(),Ft=(0,Ge.useIntl)(),[hn,Vn]=(0,ae.useState)(!1),zn=(0,ae.useRef)({id:Yt,appName:"graphing",width:ve||1e3,height:fe||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)(()=>{Ut.current=new(nn())(zn.current,!0),window.onload=function(){Ut.current.inject("applet_container")}},[]);const Je=()=>{var Ht=window.ggbApplet.getPNGBase64(1,!0,72);return Ue&&Ue(Ht),Ht};return(0,ae.useEffect)(()=>{zn.current.appName=hn?"3D":"graphing",Ut.current.inject("applet_container")},[hn]),(0,ae.useEffect)(()=>{Vn(Se)},[Se]),(0,ae.useImperativeHandle)(ht,()=>({getImgData:Je})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Yt}),ae.createElement(Ae.Z,{align:"middle"},ae.createElement(Ze.Z,{flex:1},ae.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Ft.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:hn,onChange:Ht=>Vn(Ht)})),ae.createElement(Ze.Z,null,ae.createElement(De.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},Ft.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),Gt=re(36527),le=re(25934),Fe=re(2453);const Ie="link",tt="upload-image",dt="add-flowchart",wt="draw-image",Ct="add-flowchart",vt="code-block",bt="add-table",Zt="------------",Rt={default:Zt,left:`:${Zt}`,center:`:${Zt}:`,right:`${Zt}:`};var an=re(99914),cn=(Se,ve,fe)=>new Promise((Ue,ct)=>{var ht=Ft=>{try{Ut(fe.next(Ft))}catch(hn){ct(hn)}},Yt=Ft=>{try{Ut(fe.throw(Ft))}catch(hn){ct(hn)}},Ut=Ft=>Ft.done?Ue(Ft.value):Promise.resolve(Ft.value).then(ht,Yt);Ut((fe=fe.apply(Se,ve)).next())});function fn(){}let pn=0;const tn=1e4,Qt="\u2581",Sn="@\u2581\u2581@",vn="@\u2581@",yn=`
**\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`,sn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function On(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[wn+"-B"]:"bold",[wn+"-I"]:"italic"};var aa=({defaultValue:Se="",onChange:ve,width:fe="100%",height:Ue=400,miniToolbar:ct=!1,isFocus:ht=!1,watch:Yt,insertTemp:Ut,mode:Ft="markdown",id:hn="markdown-editor-id",showResizeBar:Vn=!1,noStorage:zn=!1,showNullButton:Je=!1,showNullProgramButton:Ht=!1,hidetoolBar:me=!1,fullScreen:be=!1,onBlur:ye,onCMBeforeChange:Be,onFullScreen:Qe,className:Te="",disablePaste:Ke=!1,disabled:$e=!1,disabledFill:xt=!1,placeholder:Pt="",values:$t="",extraUse:Xt})=>{const[Ce,on]=(0,ae.useState)(null),[Nn,An]=(0,ae.useState)(Se),[Dn,bn]=(0,ae.useState)(Yt),[_e,St]=(0,ae.useState)(be),[ut,nt]=(0,ae.useState)(""),[qt,Vt]=(0,ae.useState)(0),[Fn,Ln]=(0,ae.useState)(Ue),[Gn,qn]=(0,ae.useState)(!1),oa=(0,ae.useRef)((0,le.Z)()),ua=(0,ae.useRef)(!1),ra=(0,ae.useRef)(),[Un,En]=(0,ae.useState)(0),[la,sa]=(0,ae.useState)(0),Yn=(0,ae.useRef)(),Qn=(0,ae.useRef)(),jn=(0,ae.useRef)(),ga=(0,ae.useRef)(),kt=()=>cn(void 0,null,function*(){var Lt;const gt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oa.current}});(Lt=gt==null?void 0:gt.attachments)!=null&&Lt.length&&(console.log("cm:",Ce,Yn),gt.attachments.map(lt=>{lt.content_type.indexOf("image")>-1?Ce.replaceSelection(`![,](/api/attachments/${lt.id}?type=${lt.content_type})`):lt.content_type.indexOf("video")>-1?Ce.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):lt.content_type.indexOf("pdf")>-1?Ce.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type}&disposition=inline" target="_blank">${lt.name}</a>`):Ce.replaceSelection(`[${lt.name}](${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type})`)}))});(0,ae.useEffect)(()=>{const Lt=window.scrollY||window.pageYOffset;An($t),Ce==null||Ce.setValue($t),window.scrollTo(0,Lt)},[$t]),(0,ae.useEffect)(()=>{Qe==null||Qe(_e)},[_e]),(0,ae.useEffect)(()=>{if(Yn.current){let Lt=function(lt,pt){var rn;if(Ke){pt.preventDefault();return}const Mn=pt.clipboardData;if(Mn){const Zn=Mn.types.toString(),Tn=Mn.items;if(Zn==="Files"||Mn.types.indexOf("Files")>-1){if(pt.preventDefault(),Ft=="stex")return;try{let Bt=Tn[1];((rn=Tn[0])==null?void 0:rn.kind)==="file"&&(Bt=Tn[0]);const At=Bt.getAsFile(),gn=At.name.split(".").pop();(0,Ee.I)(At,Dt=>{var mn,kn,na;Dt.id?((mn=At==null?void 0:At.type)==null?void 0:mn.indexOf("image"))>-1?gt.replaceSelection(`<img width="100%" src="/api/attachments/${Dt.id}?type=${Dt.content_type})" alt="" />`):((kn=At==null?void 0:At.type)==null?void 0:kn.indexOf("video"))>-1?gt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Dt.id}"></video>`):((na=At==null?void 0:At.type)==null?void 0:na.indexOf("pdf"))>-1?gt.replaceSelection(`<a href="/api/attachments/${Dt.id}?type=${At.type}&disposition=inline" target="_blank">${At.name}</a>`):sn.includes(gn)?gt.replaceSelection(`<a href="/api/attachments/${Dt.id}?type=office&disposition=inline" target="_blank">${At.name}</a>`):gt.replaceSelection(`[${At.name}](/api/attachments/${Dt.id}?type=${Dt.content_type})`):(Dt==null?void 0:Dt.status)===401&&(Fe.ZP.warning((Dt==null?void 0:Dt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Bt){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const gt=We().fromTextArea(Yn.current,{mode:Ft,lineNumbers:!ct,lineWrapping:!0,value:Se,autoCloseTags:!Ht,autoCloseBrackets:!0});return gt.on("keyup",function(lt,pt){pt.keyCode===8&&(lt.getValue()==""?gt.setOption("placeholder",Pt):gt.setOption("placeholder",null))}),gt.on("keydown",function(lt,pt){if(pt.keyCode===8){var rn=Xn(lt);rn&&pt.preventDefault()}}),ht&&gt.focus(),gt.on("paste",Lt),gt.on("dragleave",function(lt,pt){Qn.current.classList.remove("mouse-hover-md")}),$e&&gt.on("beforeChange",function(lt,pt){(pt.origin==="paste"||pt.origin==="+input")&&pt.cancel()}),on(gt),()=>{gt.off("paste",Lt)}}},[]);const Bn=(0,ae.useCallback)(()=>{if(Qn.current)try{}catch(Lt){console.log(Lt,"---- to set md editor body height")}},[Fn,Qn,_e]);(0,ae.useEffect)(()=>{function Lt(){let gt=new Ne.Z(lt=>{for(let pt of lt)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&(Bn(),Ce.setSize("100%","100%"),Ce.refresh())});return gt.observe(Yn.current.parentElement),gt}if(Ce){const gt=Lt();return()=>{var lt,pt;(lt=Yn.current)!=null&&lt.parentElement&&gt.unobserve((pt=Yn.current)==null?void 0:pt.parentElement)}}},[Ce,Bn]),(0,ae.useEffect)(()=>{if(Ce){let Lt=[];for(const[gt,lt]of Object.entries(Wn)){let pt={[gt]:()=>{Hn(lt)}};Lt.push(pt),Ce.addKeyMap(pt)}return ra.current=setInterval(()=>{ua.current&&kt()},4e3),()=>{clearInterval(ra.current);for(let gt of Lt)Ce.removeKeyMap(gt)}}},[Ce]),(0,ae.useEffect)(()=>{be!==_e&&St(be)},[be]),(0,an.Z)(()=>{if(!zn&&qt>0){let Lt=new Date().getTime(),gt=window.sessionStorage.getItem(hn);Lt>=qt+tn&&(!gt||gt!==Nn)&&(window.sessionStorage.setItem(hn,Nn),qn(!0))}},tn),(0,ae.useEffect)(()=>{bn(Yt)},[Ce,Yt]),(0,ae.useEffect)(()=>{Ce&&ht&&Ce.focus()},[Ce,ht]),(0,ae.useEffect)(()=>{if(Dn&&Ce){let Lt=function(lt){let pt=lt.target;if(ga.current){let rn=pt.scrollTop/pt.scrollHeight;ga.current.scrollTop=ga.current.scrollHeight*rn}};const gt=Ce.getScrollerElement();return gt.addEventListener("scroll",Lt),()=>{gt.removeEventListener("scroll",Lt)}}},[Ce,Dn]),(0,ae.useEffect)(()=>{if(Ce&&Be){let Lt=function(gt,lt){Be(gt,lt)};return Ce.on("beforeChange",Lt),()=>{Ce.off("beforeChange",Lt)}}},[Ce,Be]),(0,ae.useEffect)(()=>{if(Ce&&ye){let Lt=function(){ye(Ce.getValue())};return Ce.on("blur",Lt),()=>{Ce.off("blur",Lt)}}},[Ce,ye]);function Xn(Lt,gt){var lt=Lt.getDoc(),pt=lt.getCursor(),rn=lt.getLine(pt.line),Mn=rn.charAt(pt.ch-1),Zn=rn.lastIndexOf("@\u2581@",pt.ch),Tn=rn.lastIndexOf("@\u2581\u2581@",pt.ch),Bt=Zn>Tn?Zn:Tn,At=Zn>Tn?3:4;if(Sn.indexOf(Mn)===-1)return null;if(console.log("change1:",gt,Lt,rn,pt,Bt,Zn,Tn,Mn),Bt>=0&&pt.ch-Bt<5){var gn=Bt+At;return lt.replaceRange("",{line:pt.line,ch:Bt},{line:pt.line,ch:gn}),{line:pt.line,ch:gn}}return null}(0,ae.useEffect)(()=>{if(Ce){let Lt=function(gt,lt){const pt=gt.getValue();An(pt),Vt(new Date().getTime()),gt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Ht?ve(pt,Pa(pt)):ve(pt))};return Ce.on("change",Lt),()=>{Ce.off("change",Lt)}}},[Ce,ve]),(0,ae.useEffect)(()=>{if(Ce)if(Se==null)Ce.setValue(""),An("");else{const Lt=window.scrollY||window.pageYOffset;Se!==Ce.getValue()&&(Ce.setValue(Se),An(Se),Ce.setCursor($e?1:Ce.lineCount(),0),window.scrollTo(0,Lt))}},[Ce,Se]);const Hn=(0,ae.useCallback)(Lt=>{const gt=Ce.getCursor(),lt=Ce.getSelection();let pt=lt.split(`
`);switch(Lt){case"bold":return Ce.replaceSelection("**"+lt+"**"),lt===""&&Ce.setCursor(gt.line,gt.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+lt+"*"),lt===""&&Ce.setCursor(gt.line,gt.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+lt+"`"),lt===""&&Ce.setCursor(gt.line,gt.ch+1),Ce.focus();case"inline-latex":return nt("inline-latex"),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+lt+"\n```"),Ce.setCursor(gt.line+1,lt.length+1),Ce.focus();case"line-break":return Ce.replaceSelection(`<br/>
`),Ce.focus();case"list-ul":return lt===""?Ce.replaceSelection("- "+lt):Ce.replaceSelection(pt.map(rn=>rn===""?"":`- ${rn}`).join(`
`)),Ce.focus();case"list-ol":return lt===""?Ce.replaceSelection("1. "+lt):Ce.replaceSelection(pt.map((rn,Mn)=>rn===""?"":`${Mn+1}. ${rn}`).join(`
`)),Ce.focus();case"add-null-ch":return lt===""&&Ce.setCursor(gt.line,gt.ch),Ce.replaceSelection(Qt),Ce.focus();case"add-signal":return lt===""&&Ce.setCursor(gt.line,gt.ch),Ce.replaceSelection(vn),Ce.focus();case"add-multiple":return lt===""&&Ce.setCursor(gt.line,gt.ch),Ce.replaceSelection(Sn),Ce.focus();case"inster-template-1":return lt===""&&Ce.setCursor(gt.line,gt.ch),Ce.replaceSelection(yn),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return bn(!Dn),Ce.focus();case"trigger-full-screen":return St(!_e),Ce.focus();case Ie:nt(Ie);return;case vt:nt(vt);return;case tt:nt(tt);return;case wt:nt(wt);return;case"maths-latex":nt("maths-latex");return;case dt:nt(dt);return;case bt:nt(bt);return;default:throw new Error}},[Ce,Dn,_e]),_n=(0,ae.useCallback)((Lt,gt)=>{var lt,pt,rn,Mn,Zn,Tn;switch(nt(""),ut){case Ie:const{title:mn,link:kn}=Lt;return Ce.replaceSelection(`[${mn}](${kn})`),Ce.focus();case vt:const{language:na,content:ma}=Lt;return Ce.replaceSelection(["```"+na,ma,"```"].join(`
`)),Ce.focus();case"maths-latex":for(var Bt=atob(Lt),At=new Uint8Array(Bt.length),gn=0;gn<Bt.length;gn++)At[gn]=Bt.charCodeAt(gn);var Dt=new Blob([At],{type:"image/png"});(0,Ee.I)(Dt,da=>{da.id?Ce.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ce.replaceSelection("`$$"+Lt+"$$`");break;case tt:case wt:case Ct:const{src:Jn,alt:La}=Lt,Rn=gt,xa=(rn=(pt=(lt=Rn==null?void 0:Rn.name)==null?void 0:lt.split("."))==null?void 0:pt.pop)==null?void 0:rn.call(pt);return((Mn=Rn==null?void 0:Rn.type)==null?void 0:Mn.indexOf("image"))>-1||!(Rn!=null&&Rn.type)?Rn.align||Rn.width?Ce.replaceSelection(`<p style="text-align:${Rn.align||"initial"}"><img width="${Rn.width?Rn.width+"%":"initial"}" src="${Jn}" alt="${La||""}" /></p>`):Ce.replaceSelection(`<img width="100%" src="${Jn}" alt="${La||""}" />`):((Zn=Rn==null?void 0:Rn.type)==null?void 0:Zn.indexOf("video"))>-1?Ce.replaceSelection(`<video width="100%" controls src="${Jn}"></video>`):((Tn=Rn==null?void 0:Rn.type)==null?void 0:Tn.indexOf("pdf"))>-1?Ce.replaceSelection(`<a href="${Jn}?type=${Rn.type}&disposition=inline" target="_blank">${Rn.name}</a>`):sn.includes(xa)?Ce.replaceSelection(`<a href="${Jn}?type=office&disposition=inline" target="_blank">${Rn.name}</a>`):Ce.replaceSelection(`[${Rn.name}](${Jn})`),Ce.focus();case bt:const{row:Ca,col:ba,align:Ma}=Lt;let ya=`
`;for(let da=0;da<Ca;da++){let Fa=[],Ea=[];for(let Ba=0;Ba<ba;Ba++)da===1&&Ea.push(Rt[Ma]),Fa.push(" ");da===1&&(ya+=`| ${Ea.join(" | ")} |
`),ya+=`| ${Fa.join(ba===1?"":" | ")} |
`}return Ce.replaceSelection(ya+`
`),Ce.focus();default:throw new Error}},[Ce,ut]),ea=(0,ae.useMemo)(()=>{switch(ut){case Ie:return ae.createElement(In,{callback:_n,onCancel:ta});case vt:return ae.createElement($n.Z,{callback:_n,onCancel:ta});case tt:return ae.createElement(Ee.Z,{callback:_n,onCancel:ta});case dt:return ae.createElement(st,{callback:_n,onCancel:ta});case bt:return ae.createElement(jt,{callback:_n,onCancel:ta});case"maths-latex":return ae.createElement(en,{showSaveButton:!0,callback:_n});case"inline-latex":return ae.createElement(Gt.Z,{showSaveButton:!0,callback:_n});default:return null}},[ut]);function ta(){nt("")}(0,ae.useEffect)(()=>{if(jn.current){let Lt=function(Zn){rn=!0,Mn=Zn.pageY},gt=function(){rn=!1},lt=function(Zn){if(rn){let Tn=Zn.pageY-Mn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let Bt=Ue+Tn+"px";Ln(Bt)}},pt=jn.current,rn=!1,Mn=0;return pt.addEventListener("mousedown",Lt),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",gt),()=>{pt.removeEventListener("mousedown",Lt),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",gt)}}},[Ce,jn]),(0,ae.useEffect)(()=>{Ln(Ue)},[Ue]);const ca=On(fe),xn=On(Fn),Cn={width:ca,height:xn},ia=(0,ae.useMemo)(()=>{if(qt){let Lt=new Date(qt),gt=Lt.getHours(),lt=Lt.getMinutes(),pt=Lt.getSeconds();return gt=gt<10?"0"+gt:gt,lt=lt<10?"0"+lt:lt,pt=pt<10?"0"+pt:pt,`${gt}:${lt}:${pt}`}return 0},[qt]),Pa=Lt=>{const gt=[];if(Ht){let lt=-1;Lt=Lt.replace(/(@▁▁@|@▁@)/g,function(pt,rn,Mn){gt.push({multiLine:pt!==vn})})}return gt};function ha(){window.sessionStorage.removeItem(hn),qn(!1),Vt(0)}function wa(){qn(!1),Vt(0),Ce.setValue(window.sessionStorage.getItem(hn))}const Sa=(0,Ge.useIntl)(),fa={[Ie]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:Sa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[tt]:Sa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[wt]:"\u6DFB\u52A0\u753B\u56FE",[dt]:Sa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[bt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":Sa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":Sa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{fa[ut]&&ut!==wt&&ut!==dt&&setTimeout(()=>{const Lt=document.getElementsByClassName("markdown-popup-form")[0],gt=window.innerWidth/2-Lt.offsetWidth/2,lt=window.innerHeight/2-Lt.offsetHeight/2;En(gt),sa(lt)},0)},[ut]);const pa=Lt=>{Lt.preventDefault();const gt=Lt.clientX-Un,lt=Lt.clientY-la;document.body.onmousemove=pt=>{let rn=pt.clientX-gt,Mn=pt.clientY-lt;const Zn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Zn.offsetWidth,Bt=window.innerHeight-Zn.offsetHeight;rn=Math.max(0,Math.min(rn,Tn)),Mn=Math.max(0,Math.min(Mn,Bt)),va(pt.clientX,pt.clientY,gt,lt)&&(En(rn),sa(Mn))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(Lt,gt,lt,pt)=>{const rn=document.body.clientHeight,Mn=document.body.clientWidth;return Lt<20&&lt>Lt||Lt>Mn-20&&lt<Lt||gt<20&&pt>gt||gt>rn-20&&pt<gt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Qn},ae.createElement("div",{className:`markdown-editor-container ${Te} ${Dn?"on-preview":""} ${ct?"mini":""} ${_e?"full-screen":""}`,style:Cn},ae.createElement(ie,{insertTemp:Ut,watch:Dn,fullScreen:_e,showNullButton:Je,showNullProgramButton:Ht,onActionCallback:Hn,hidetoolBar:me,extraUse:Xt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Yn,placeholder:Pt})),Dn?ae.createElement("div",{ref:ga,className:"preview-container"},Ft==="stex"&&ae.createElement(He,{value:Nn}),Ft!=="stex"&&ae.createElement(Xe.Z,{disabledFill:xt,showProgramFill:Ht,value:Nn})):null))),Vn?ae.createElement("a",{ref:jn,className:"editor-resize"}):null,ut===wt&&ae.createElement(ft,{callback:_n,onCancel:ta}),ut===dt&&ae.createElement(st,{callback:_n,onCancel:ta}),ae.createElement(ue.Z,null,fa[ut]&&ut!==wt&&ut!==dt?ae.createElement(ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Un,top:la},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:pa},fa[ut]),open:!0,onCancel:ta,footer:null,destroyOnClose:!0,width:ut===dt?"1200px":null,height:ut===dt?"80vh":null,className:"markdown-popup-form"},ea):null))}},70859:function(xe,at,re){"use strict";re.d(at,{Z:function(){return ie},I:function(){return ce}});var ae=re(22150),Pe=re(2453),We=re(69677),Ne=re(93421),he=re(31795),Re=re(78045),se=re(71577),qe=re(15476),je=re(67294),Le=re(52262),Xe=re(35973),He=re(67294),Ge=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ze,De,et)=>De in ze?Ge(ze,De,{enumerable:!0,configurable:!0,writable:!0,value:et}):ze[De]=et,z=(ze,De)=>{for(var et in De||(De={}))E.call(De,et)&&x(ze,et,De[et]);if(y)for(var et of y(De))b.call(De,et)&&x(ze,et,De[et]);return ze},ee=(ze,De)=>te(ze,a(De));const{useForm:ne}=ae.default,oe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:ze,onCancel:De})=>{const[et]=ne();let Ot=(0,je.useRef)();const zt=(0,Xe.useIntl)();function Jt(Kt){Ot.current.width=et.getFieldValue("width"),Ot.current.align=et.getFieldValue("align"),ze(Kt,Ot.current)}function un(Kt,Tt){if(Kt.status===-1){Pe.ZP.error(Kt.message);return}et.setFieldsValue({src:`/api/attachments/${Kt.id}`,type:Tt.type})}function _t(Kt){let Tt=Kt.target.files[0];Ot.current=Tt,ce(Tt,un)}return He.createElement(ae.default,ee(z({form:et},ge),{className:"upload-image-panel",onFinish:Jt,style:{width:470,overflow:"hidden"}}),He.createElement(ae.default.Item,{label:zt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement(We.default,{style:oe})),He.createElement(ue,{onFileChange:_t}))),He.createElement(ae.default.Item,{label:zt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},He.createElement(We.default,{style:{width:264}})),He.createElement(ae.default.Item,{label:zt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},He.createElement(Ne.Z,null,He.createElement(ae.default.Item,{name:"width",style:{margin:0}},He.createElement(he.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(ae.default.Item,{label:zt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},He.createElement(Re.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:zt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:zt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:zt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),He.createElement("aside",null,He.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},zt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),He.createElement(se.ZP,{type:"default",onClick:De},zt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function ue({onFileChange:ze}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:ze}))}function ce(ze,De){if(!ze)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Le.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let et=new FormData;et.append("editormd-image-file",ze),et.append("file_param_name","editormd-image-file"),et.append("byxhr","true");var Ot=new window.XMLHttpRequest;Ot.withCredentials=!0,Ot.addEventListener("load",function(zt){De(JSON.parse(zt.target.responseText),ze)},!1),Ot.addEventListener("error",function(zt){console.error(zt)},!1),Ot.open("POST",`${qe.KI}/api/attachments.json`),Ot.send(et)}},76621:function(xe,at,re){"use strict";re.d(at,{Z:function(){return We}});var ae=re(67294),Pe=re(73935);class We extends ae.Component{constructor(he){super(he);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,Pe.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(xe,at,re){"use strict";re.d(at,{Z:function(){return Pe}});var ae=re(67294);function Pe(We,Ne){const he=(0,ae.useRef)();(0,ae.useEffect)(()=>{he.current=We}),(0,ae.useEffect)(()=>{function Re(){he.current()}if(Ne!==null){let se=setInterval(Re,Ne);return()=>clearInterval(se)}},[Ne])}},34294:function(xe,at,re){"use strict";re.r(at),re.d(at,{default:function(){return ke}});var ae=re(67294),Pe=re(68508),We=re(97183),Ne=re(2453),he=re(14446),Re=re(55241),se=re(11320),qe={flex_box_center:"flex_box_center___GfbI9",flex_space_between:"flex_space_between___m14JJ",flex_box_vertical_center:"flex_box_vertical_center___IKGDg",flex_box_center_end:"flex_box_center_end___JZxvM",flex_box_column:"flex_box_column___WnVa8",SubMentItem:"SubMentItem___P0LXo",MenuItem:"MenuItem___p91mQ",wrp:"wrp___kMQ4i",classroomInfo:"classroomInfo___rb1qC",title:"title___AQndp",titleLeft:"titleLeft___K7c9u",titleRight:"titleRight___BUODH",classroomUser:"classroomUser___NkYxe",headPic:"headPic___RD_it",teacherInfo:"teacherInfo___Gyj_W",classroomDesc:"classroomDesc___ng_AB",classroomDescBg:"classroomDescBg___Dz_DM",joinCouses:"joinCouses___U2D0G",bg:"bg___IcypX",leftMenus:"leftMenus___fF5qD",titleSelected:"titleSelected___Rqtd8",menuText:"menuText___jhrfq",totalCount:"totalCount___fqkbl",actions:"actions___NAYZl",task_count:"task_count___a1sYB",container:"container___djeCS",leftMenuActions:"leftMenuActions___lRhBF"},je=re(33170),Le=re(35973),Xe=re(55304),He=re(74664),Ge=re(52262),te=re(69677),a=(Ae,ot,Oe)=>new Promise((ft,de)=>{var rt=Ze=>{try{yt(Oe.next(Ze))}catch(Me){de(Me)}},Et=Ze=>{try{yt(Oe.throw(Ze))}catch(Me){de(Me)}},yt=Ze=>Ze.done?ft(Ze.value):Promise.resolve(Ze.value).then(rt,Et);yt((Oe=Oe.apply(Ae,ot)).next())});function y({user:Ae,CategoryId:ot,IsShow:Oe,setIsShow:ft,dispatch:de,init:rt}){const Et=(0,Le.useIntl)(),[yt,Ze]=(0,ae.useState)();return ae.createElement(he.default,{title:ot?"\u65B0\u5EFA\u4E09\u7EA7\u7C7B\u76EE":"\u65B0\u5EFA\u4E8C\u7EA7\u7C7B\u76EE",width:424,onCancel:()=>{ft(!1)},onOk:()=>a(this,null,function*(){if(!yt){Ne.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,je.ZP)("/api/programas.json",{method:"post",body:{name:yt,parent_id:ot}})).status===0&&(Ne.ZP.info(Et.formatMessage({id:"shixuns.creationSuccessful",defaultMessage:"\u521B\u5EFA\u6210\u529F"})),ft(!1),Ze(""),rt())}),open:Oe},ae.createElement(te.default,{value:yt,onChange:Me=>Ze(Me.target.value),placeholder:Et.formatMessage({id:"paths.enterName",defaultMessage:"\u8BF7\u8F93\u5165\u540D\u79F0"})}))}var E=(0,Le.connect)(({user:Ae})=>({user:Ae}))(y),b=(Ae,ot,Oe)=>new Promise((ft,de)=>{var rt=Ze=>{try{yt(Oe.next(Ze))}catch(Me){de(Me)}},Et=Ze=>{try{yt(Oe.throw(Ze))}catch(Me){de(Me)}},yt=Ze=>Ze.done?ft(Ze.value):Promise.resolve(Ze.value).then(rt,Et);yt((Oe=Oe.apply(Ae,ot)).next())});function x({user:Ae,CategoryId:ot,name:Oe,IsShow:ft,setIsShow:de,dispatch:rt,init:Et}){const yt=(0,Le.useIntl)(),[Ze,Me]=(0,ae.useState)();return(0,ae.useEffect)(()=>{Me(Oe)},[Oe]),ae.createElement(he.default,{title:"\u76EE\u5F55\u91CD\u547D\u540D",width:424,onCancel:()=>{de(!1)},onOk:()=>b(this,null,function*(){if(!Ze){Ne.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,je.ZP)(`/api/programas/${ot}/rename.json`,{method:"put",body:{name:Ze,id:ot}})).status===0&&(Ne.ZP.info(yt.formatMessage({id:"paths.modifySuccess",defaultMessage:"\u4FEE\u6539\u6210\u529F"})),de(!1),Me(""),Et())}),open:ft},ae.createElement(te.default,{value:Ze,onChange:we=>Me(we.target.value),placeholder:yt.formatMessage({id:"paths.enterName",defaultMessage:"\u8BF7\u8F93\u5165\u540D\u79F0"})}))}var z=(0,Le.connect)(({user:Ae})=>({user:Ae}))(x),ee=re(71577),ne=re(85725);function oe({user:Ae,ItemData:ot,setIssee:Oe,dispatch:ft,init:de}){var rt,Et,yt,Ze;const Me=(0,Le.useIntl)();return ae.createElement("div",null,ae.createElement("div",{style:{textAlign:"right"}},(0,Ge.Ny)()&&ae.createElement(ee.ZP,{onClick:()=>Oe(!1)},Me.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"}))),ae.createElement(ne.Z,{value:ot.content}),((rt=ot==null?void 0:ot.attachment)==null?void 0:rt.id)&&ae.createElement("div",null,ae.createElement("a",{href:(Et=ot==null?void 0:ot.attachment)==null?void 0:Et.url,target:"_self",download:(yt=ot==null?void 0:ot.attachment)==null?void 0:yt.title},ae.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),ae.createElement("span",{style:{color:"#000000"}},(Ze=ot==null?void 0:ot.attachment)==null?void 0:Ze.title))))}var ge=(0,Le.connect)(({user:Ae})=>({user:Ae}))(oe),ie=re(59810),ue=re(35567),ce=re(78392),ze=Object.defineProperty,De=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,zt=(Ae,ot,Oe)=>ot in Ae?ze(Ae,ot,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ae[ot]=Oe,Jt=(Ae,ot)=>{for(var Oe in ot||(ot={}))et.call(ot,Oe)&&zt(Ae,Oe,ot[Oe]);if(De)for(var Oe of De(ot))Ot.call(ot,Oe)&&zt(Ae,Oe,ot[Oe]);return Ae},un=(Ae,ot,Oe)=>new Promise((ft,de)=>{var rt=Ze=>{try{yt(Oe.next(Ze))}catch(Me){de(Me)}},Et=Ze=>{try{yt(Oe.throw(Ze))}catch(Me){de(Me)}},yt=Ze=>Ze.done?ft(Ze.value):Promise.resolve(Ze.value).then(rt,Et);yt((Oe=Oe.apply(Ae,ot)).next())});function _t({user:Ae,ItemData:ot,setIssee:Oe,CategoryId:ft,dispatch:de,init:rt}){const Et=(0,Le.useIntl)();let[yt,Ze]=(0,ae.useState)([]);const[Me,we]=(0,ae.useState)(ot.content);function pe(){var it;let mt=[];return(it=ot==null?void 0:ot.attachments)==null||it.map(Mt=>{let It={uid:Mt==null?void 0:Mt.id,name:Mt.title,response:{id:Mt.id}};mt.push(It)}),mt}const Ve={name:"file",multiple:!0,action:se.Z.API_SERVER+"/api/attachments.json",defaultFileList:pe(),onRemove(it){(0,ce.y8)({id:it.uid})},onChange(it){console.log("info",it);const{status:mt}=it.file;mt==="removed"&&Ze(it.fileList),mt==="done"?(Ze(it.fileList),Ne.ZP.success(`${it.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):mt==="error"&&Ne.ZP.error(`${it.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:it=>{const mt=it.size/1024/1024<150;return mt||Ne.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),mt}};function Ye(){return un(this,null,function*(){(yield(0,je.ZP)(`/api/programas/${ft}/update_content.json`,{method:"put",body:{id:ft,content:Me,attachment_id:st(yt)}}))&&(Ne.ZP.info("\u63D0\u4EA4\u6210\u529F"),Oe(!0))})}function st(it){let mt;return it&&it.map(Mt=>{mt=Mt.response.id}),mt}return ae.createElement("div",null,ae.createElement(ue.Z,{defaultValue:Me,onChange:it=>we(it)}),ae.createElement(ie.default,Jt({},Ve),ae.createElement(ee.ZP,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),ae.createElement("p",{style:{marginTop:"10px"}},ae.createElement(ee.ZP,{style:{width:"90px"},onClick:()=>Ye()},"\u63D0\u4EA4"),ae.createElement(ee.ZP,{style:{marginLeft:"30px",width:"90px"},type:"primary",onClick:()=>Oe(!0)},Et.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))}var Kt=(0,Le.connect)(({user:Ae})=>({user:Ae}))(_t),Tt=(Ae,ot,Oe)=>new Promise((ft,de)=>{var rt=Ze=>{try{yt(Oe.next(Ze))}catch(Me){de(Me)}},Et=Ze=>{try{yt(Oe.throw(Ze))}catch(Me){de(Me)}},yt=Ze=>Ze.done?ft(Ze.value):Promise.resolve(Ze.value).then(rt,Et);yt((Oe=Oe.apply(Ae,ot)).next())});const Wt=(0,Le.useIntl)(),{SubMenu:dn}=Pe.default,{Content:In,Sider:$n}=We.default;function Ee({user:Ae,dispatch:ot,globalSetting:Oe}){var ft;const[de,rt]=(0,ae.useState)(),[Et,yt]=(0,ae.useState)(!1),[Ze,Me]=(0,ae.useState)();let[we,pe]=(0,ae.useState)();const[Ve,Ye]=(0,ae.useState)(!1),[st,it]=(0,ae.useState)(""),[mt,Mt]=(0,ae.useState)(""),[It,jt]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{Nt()},[]),console.log("globalSetting",Oe);function Nt(){return Tt(this,null,function*(){const Gt=yield(0,je.ZP)("/api/programas.json",{method:"get"});Gt&&Me(Gt==null?void 0:Gt.programas)})}const ln=(Gt,le,Fe)=>Tt(this,null,function*(){switch(Gt){case 1:pe(le==null?void 0:le.id),yt(!0);break;case 2:pe(le==null?void 0:le.id),Ye(!0),it(le==null?void 0:le.name);break;case 3:(yield(0,je.ZP)(`/api/programas/${le==null?void 0:le.id}/top.json`,{method:"post",body:{id:le==null?void 0:le.id}})).status===0&&Nt();break;case 4:nn(ae.createElement("p",null,"\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u6062\u590D,",ae.createElement("br",null),Wt.formatMessage({id:"paperlibrary.confirmDeleteSure",defaultMessage:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"})),()=>Tt(this,null,function*(){(yield(0,je.ZP)(`/api/programas/${le==null?void 0:le.id}.json`,{method:"delete",body:{id:le==null?void 0:le.id}})).status===0&&(Ne.ZP.info(Wt.formatMessage({id:"classrooms.deleteSuccess",defaultMessage:"\u5220\u9664\u6210\u529F"})),Nt())}));break}}),nn=(Gt,le)=>{he.default.confirm({centered:!0,title:Wt.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),icon:ae.createElement(Xe.Z,null),content:Gt,okText:Wt.formatMessage({id:"shixuns.confirm",defaultMessage:"\u786E\u8BA4"}),onOk:()=>le(),cancelText:Wt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})})},Pn=(Gt,le)=>ae.createElement("div",{className:qe.leftMenuActions},le===1&&ae.createElement("p",{className:"current",onClick:()=>ln(1,Gt,le)},"\u65B0\u5EFA"),ae.createElement("p",{className:"current",onClick:()=>ln(2,Gt,le)},"\u91CD\u547D\u540D"),ae.createElement("p",{className:"current",onClick:()=>ln(3,Gt,le)},"\u7F6E\u9876"),ae.createElement("p",{className:"current",onClick:()=>ln(4,Gt,le)},Wt.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})));function en(){return Tt(this,null,function*(){const Gt=yield(0,je.ZP)(`/api/programas/${we}/content.json`,{method:"get",params:{id:we}});Gt&&Mt(Gt)})}return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("img",{style:{width:"100%"},src:se.Z.IMG_SERVER+`/${(ft=Oe==null?void 0:Oe.setting)==null?void 0:ft.shixun_banner_url}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement($n,{width:244,className:qe.leftMenus,style:{background:"none",marginTop:"20px",height:"auto"}},ae.createElement(Pe.default,{mode:"inline"},Ze==null?void 0:Ze.map((Gt,le)=>{var Fe,Ie;return(Gt==null?void 0:Gt.children.length)>0?ae.createElement(dn,{title:ae.createElement("span",{className:"font16"},ae.createElement("span",null,Gt.name),!(0,Ge.Ny)()&&ae.createElement("span",null),(0,Ge.Ny)()&&ae.createElement(Re.Z,{placement:"right",content:()=>Pn(Gt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",qe.actions].join(" ")})))},(Fe=Gt==null?void 0:Gt.children)==null?void 0:Fe.map((tt,dt)=>{var wt;return ae.createElement(Pe.default.Item,{className:(wt=qe)==null?void 0:wt.SubMentItem,onClick:()=>{pe(tt==null?void 0:tt.id),we=tt==null?void 0:tt.id,en()}},ae.createElement("span",{style:{flex:"1"}},tt==null?void 0:tt.name),(0,Ge.Ny)()&&ae.createElement(Re.Z,{placement:"right",content:()=>Pn(tt,2),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",qe.actions].join(" ")})))})):ae.createElement(Pe.default.Item,{className:(Ie=qe)==null?void 0:Ie.SubMentItem,onClick:()=>{pe(Gt==null?void 0:Gt.id),we=Gt==null?void 0:Gt.id,en()}},ae.createElement("span",{style:{flex:"1"}},Gt==null?void 0:Gt.name),(0,Ge.Ny)()&&ae.createElement(Re.Z,{placement:"right",content:()=>Pn(Gt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",qe.actions].join(" ")})))}),ae.createElement(Pe.default.Item,{onClick:()=>{pe(""),we="",yt(!0)},style:{color:"#0152d9",fontSize:"16px",height:"40px",display:"flex",alignItems:"center"},icon:ae.createElement(He.Z,{style:{color:"#0152d9",fontSize:"16px"}})},"\u65B0\u589E\u4E8C\u7EA7\u7C7B\u76EE"))),ae.createElement("div",{style:{width:"937px",marginLeft:"17px",background:"#fff",padding:"20px"}},It&&ae.createElement(ge,{ItemData:mt,setIssee:jt}),It===!1&&ae.createElement(Kt,{ItemData:mt,setIssee:jt,CategoryId:we}))),ae.createElement(E,{CategoryId:we,IsShow:Et,setIsShow:yt,init:Nt}),ae.createElement(z,{CategoryId:we,name:st,IsShow:Ve,setIsShow:Ye,init:Nt}))}var ke=(0,Le.connect)(({user:Ae,globalSetting:ot})=>({user:Ae,globalSetting:ot}))(Ee)},81643:function(xe,at,re){"use strict";re.d(at,{Z:function(){return ae}});const ae=Pe=>Pe?typeof Pe=="function"?Pe():Pe:null},57838:function(xe,at,re){"use strict";re.d(at,{Z:function(){return Pe}});var ae=re(67294);function Pe(){const[,We]=ae.useReducer(Ne=>Ne+1,0);return We}},71322:function(xe,at,re){"use strict";re.d(at,{D:function(){return x},Z:function(){return ne}});var ae=re(87462),Pe=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ne=We,he=re(74643),Re=function(ge,ie){return Pe.createElement(he.Z,(0,ae.Z)({},ge,{ref:ie,icon:Ne}))},se=Pe.forwardRef(Re),qe=re(22751),je=re(91034),Le=re(94184),Xe=re.n(Le),He=re(10366),te=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var ie={};for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&ge.indexOf(ue)<0&&(ie[ue]=oe[ue]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ue=Object.getOwnPropertySymbols(oe);ce<ue.length;ce++)ge.indexOf(ue[ce])<0&&Object.prototype.propertyIsEnumerable.call(oe,ue[ce])&&(ie[ue[ce]]=oe[ue[ce]]);return ie};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Pe.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var ne=Pe.forwardRef((oe,ge)=>{const{prefixCls:ie,className:ue,trigger:ce,children:ze,defaultCollapsed:De=!1,theme:et="dark",style:Ot={},collapsible:zt=!1,reverseArrow:Jt=!1,width:un=200,collapsedWidth:_t=80,zeroWidthTriggerStyle:Kt,breakpoint:Tt,onCollapse:Wt,onBreakpoint:dn}=oe,In=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$n}=(0,Pe.useContext)(y.Gs),[Ee,ke]=(0,Pe.useState)("collapsed"in oe?oe.collapsed:De),[Ae,ot]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in oe&&ke(oe.collapsed)},[oe.collapsed]);const Oe=(Ze,Me)=>{"collapsed"in oe||ke(Ze),Wt==null||Wt(Ze,Me)},ft=(0,Pe.useRef)();ft.current=Ze=>{ot(Ze.matches),dn==null||dn(Ze.matches),Ee!==Ze.matches&&Oe(Ze.matches,"responsive")},(0,Pe.useEffect)(()=>{function Ze(we){return ft.current(we)}let Me;if(typeof window!="undefined"){const{matchMedia:we}=window;if(we&&Tt&&Tt in b){Me=we(`(max-width: ${b[Tt]})`);try{Me.addEventListener("change",Ze)}catch(pe){Me.addListener(Ze)}Ze(Me)}}return()=>{try{Me==null||Me.removeEventListener("change",Ze)}catch(we){Me==null||Me.removeListener(Ze)}}},[Tt]),(0,Pe.useEffect)(()=>{const Ze=z("ant-sider-");return $n.addSider(Ze),()=>$n.removeSider(Ze)},[]);const de=()=>{Oe(!Ee,"clickTrigger")},{getPrefixCls:rt}=(0,Pe.useContext)(a.E_),Et=()=>{const Ze=rt("layout-sider",ie),Me=(0,He.Z)(In,["collapsed"]),we=Ee?_t:un,pe=te(we)?`${we}px`:String(we),Ve=parseFloat(String(_t||0))===0?Pe.createElement("span",{onClick:de,className:Xe()(`${Ze}-zero-width-trigger`,`${Ze}-zero-width-trigger-${Jt?"right":"left"}`),style:Kt},ce||Pe.createElement(se,null)):null,it={expanded:Jt?Pe.createElement(je.Z,null):Pe.createElement(qe.Z,null),collapsed:Jt?Pe.createElement(qe.Z,null):Pe.createElement(je.Z,null)}[Ee?"collapsed":"expanded"],mt=ce!==null?Ve||Pe.createElement("div",{className:`${Ze}-trigger`,onClick:de,style:{width:pe}},ce||it):null,Mt=Object.assign(Object.assign({},Ot),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),It=Xe()(Ze,`${Ze}-${et}`,{[`${Ze}-collapsed`]:!!Ee,[`${Ze}-has-trigger`]:zt&&ce!==null&&!Ve,[`${Ze}-below`]:!!Ae,[`${Ze}-zero-width`]:parseFloat(pe)===0},ue);return Pe.createElement("aside",Object.assign({className:It},Me,{style:Mt,ref:ge}),Pe.createElement("div",{className:`${Ze}-children`},ze),zt||Ae&&Ve?mt:null)},yt=Pe.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return Pe.createElement(x.Provider,{value:yt},Et())})},97183:function(xe,at,re){"use strict";var ae=re(84321),Pe=re(71322);const We=ae.ZP;We.Header=ae.h4,We.Footer=ae.$_,We.Content=ae.VY,We.Sider=Pe.Z,at.default=We},84321:function(xe,at,re){"use strict";re.d(at,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ge},ZP:function(){return ee}});var ae=re(74902),Pe=re(94184),We=re.n(Pe),Ne=re(10366),he=re(67294),Re=re(53124),se=re(67968),je=ne=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:ce}=ne;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:ce,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:ce,background:ue,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Le=ne=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:ue,footerBg:ce,triggerBg:ze,headerHeight:De,headerPadding:et,headerColor:Ot,footerPadding:zt,triggerHeight:Jt,zeroTriggerHeight:un,zeroTriggerWidth:_t,motionDurationMid:Kt,motionDurationSlow:Tt,fontSize:Wt,borderRadius:dn,bodyBg:In,headerBg:$n,siderBg:Ee}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:In,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Ee,transition:`all ${Kt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Jt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Jt,color:ue,lineHeight:`${Jt}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${Kt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-_t,zIndex:1,width:_t,height:un,color:ue,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:dn,borderEndEndRadius:dn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Tt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Tt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_t,borderStartStartRadius:dn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:dn}}}}},je(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:De,padding:et,color:Ot,lineHeight:`${De}px`,background:$n,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:zt,color:ie,fontSize:Wt,background:ce},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Xe=(0,se.Z)("Layout",ne=>[Le(ne)],ne=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:ue,controlHeightSM:ce,marginXXS:ze,colorTextLightSolid:De,colorBgContainer:et}=ne,Ot=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Ot}px`,headerColor:ue,footerPadding:`${ce}px ${Ot}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+ze*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:et,lightTriggerBg:et,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),He=function(ne,oe){var ge={};for(var ie in ne)Object.prototype.hasOwnProperty.call(ne,ie)&&oe.indexOf(ie)<0&&(ge[ie]=ne[ie]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ie=Object.getOwnPropertySymbols(ne);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(ne,ie[ue])&&(ge[ie[ue]]=ne[ie[ue]]);return ge};const Ge=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function te(ne){let{suffixCls:oe,tagName:ge,displayName:ie}=ne;return ue=>he.forwardRef((ze,De)=>he.createElement(ue,Object.assign({ref:De,suffixCls:oe,tagName:ge},ze)))}const a=he.forwardRef((ne,oe)=>{const{prefixCls:ge,suffixCls:ie,className:ue,tagName:ce}=ne,ze=He(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=he.useContext(Re.E_),et=De("layout",ge),[Ot,zt]=Xe(et),Jt=ie?`${et}-${ie}`:et;return Ot(he.createElement(ce,Object.assign({className:We()(ge||Jt,ue,zt),ref:oe},ze)))}),y=he.forwardRef((ne,oe)=>{const{direction:ge}=he.useContext(Re.E_),[ie,ue]=he.useState([]),{prefixCls:ce,className:ze,rootClassName:De,children:et,hasSider:Ot,tagName:zt,style:Jt}=ne,un=He(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_t=(0,Ne.Z)(un,["suffixCls"]),{getPrefixCls:Kt,layout:Tt}=he.useContext(Re.E_),Wt=Kt("layout",ce),[dn,In]=Xe(Wt),$n=We()(Wt,{[`${Wt}-has-sider`]:typeof Ot=="boolean"?Ot:ie.length>0,[`${Wt}-rtl`]:ge==="rtl"},Tt==null?void 0:Tt.className,ze,De,In),Ee=he.useMemo(()=>({siderHook:{addSider:ke=>{ue(Ae=>[].concat((0,ae.Z)(Ae),[ke]))},removeSider:ke=>{ue(Ae=>Ae.filter(ot=>ot!==ke))}}}),[]);return dn(he.createElement(Ge.Provider,{value:Ee},he.createElement(zt,Object.assign({ref:oe,className:$n,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),Jt)},_t),et)))}),E=te({tagName:"div",displayName:"Layout"})(y),b=te({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=te({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=te({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(xe,at,re){"use strict";re.d(at,{J:function(){return Re}});var ae=re(67294),Pe=re(4173),We=re(60276),Ne=function(se,qe){var je={};for(var Le in se)Object.prototype.hasOwnProperty.call(se,Le)&&qe.indexOf(Le)<0&&(je[Le]=se[Le]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Le=Object.getOwnPropertySymbols(se);Xe<Le.length;Xe++)qe.indexOf(Le[Xe])<0&&Object.prototype.propertyIsEnumerable.call(se,Le[Xe])&&(je[Le[Xe]]=se[Le[Xe]]);return je};const he=ae.createContext(null),Re=ae.forwardRef((se,qe)=>{const{children:je}=se,Le=Ne(se,["children"]),Xe=ae.useContext(he),He=ae.useMemo(()=>Object.assign(Object.assign({},Xe),Le),[Xe,Le.prefixCls,Le.mode,Le.selectable]);return ae.createElement(he.Provider,{value:He},ae.createElement(Pe.BR,null,(0,We.supportNodeRef)(je)?ae.cloneElement(je,{ref:qe}):je))});at.Z=he},68508:function(xe,at,re){"use strict";re.d(at,{default:function(){return Ze}});var ae=re(78595),Pe=re(67294),We=re(71322),Ne=re(94184),he=re.n(Ne),Re=re(53124),se=function(Me,we){var pe={};for(var Ve in Me)Object.prototype.hasOwnProperty.call(Me,Ve)&&we.indexOf(Ve)<0&&(pe[Ve]=Me[Ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ve=Object.getOwnPropertySymbols(Me);Ye<Ve.length;Ye++)we.indexOf(Ve[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ve[Ye])&&(pe[Ve[Ye]]=Me[Ve[Ye]]);return pe},je=Me=>{const{prefixCls:we,className:pe,dashed:Ve}=Me,Ye=se(Me,["prefixCls","className","dashed"]),{getPrefixCls:st}=Pe.useContext(Re.E_),it=st("menu",we),mt=he()({[`${it}-item-divider-dashed`]:!!Ve},pe);return Pe.createElement(ae.iz,Object.assign({className:mt},Ye))},Le=re(37419),Xe=re(10366),He=re(83062),Ge=re(96159),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Me=>{var we;const{className:pe,children:Ve,icon:Ye,title:st,danger:it}=Me,{prefixCls:mt,firstLevel:Mt,direction:It,disableMenuItemTitleTooltip:jt,inlineCollapsed:Nt}=Pe.useContext(a),ln=Fe=>{const Ie=Pe.createElement("span",{className:`${mt}-title-content`},Ve);return(!Ye||(0,Ge.l$)(Ve)&&Ve.type==="span")&&Ve&&Fe&&Mt&&typeof Ve=="string"?Pe.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Ve.charAt(0)):Ie},{siderCollapsed:nn}=Pe.useContext(We.D);let Pn=st;typeof st=="undefined"?Pn=Mt?Ve:"":st===!1&&(Pn="");const en={title:Pn};!nn&&!Nt&&(en.title=null,en.open=!1);const Gt=(0,Le.Z)(Ve).length;let le=Pe.createElement(ae.ck,Object.assign({},(0,Xe.Z)(Me,["title","icon","danger"]),{className:he()({[`${mt}-item-danger`]:it,[`${mt}-item-only-child`]:(Ye?Gt+1:Gt)===1},pe),title:typeof st=="string"?st:void 0}),(0,Ge.Tm)(Ye,{className:he()((0,Ge.l$)(Ye)?(we=Ye.props)===null||we===void 0?void 0:we.className:"",`${mt}-item-icon`)}),ln(Nt));return jt||(le=Pe.createElement(He.Z,Object.assign({},en,{placement:It==="rtl"?"left":"right",overlayClassName:`${mt}-inline-collapsed-tooltip`}),le)),le},x=Me=>{var we;const{popupClassName:pe,icon:Ve,title:Ye,theme:st}=Me,it=Pe.useContext(a),{prefixCls:mt,inlineCollapsed:Mt,theme:It}=it,jt=(0,ae.Xl)();let Nt;if(!Ve)Nt=Mt&&!jt.length&&Ye&&typeof Ye=="string"?Pe.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Ye.charAt(0)):Pe.createElement("span",{className:`${mt}-title-content`},Ye);else{const nn=(0,Ge.l$)(Ye)&&Ye.type==="span";Nt=Pe.createElement(Pe.Fragment,null,(0,Ge.Tm)(Ve,{className:he()((0,Ge.l$)(Ve)?(we=Ve.props)===null||we===void 0?void 0:we.className:"",`${mt}-item-icon`)}),nn?Ye:Pe.createElement("span",{className:`${mt}-title-content`},Ye))}const ln=Pe.useMemo(()=>Object.assign(Object.assign({},it),{firstLevel:!1}),[it]);return Pe.createElement(a.Provider,{value:ln},Pe.createElement(ae.Wd,Object.assign({},(0,Xe.Z)(Me,["icon"]),{title:Nt,popupClassName:he()(mt,pe,`${mt}-${st||It}`)})))},z=re(25877),ee=re(60276),ne=re(33603),oe=re(76529),ge=function(Me,we){var pe={};for(var Ve in Me)Object.prototype.hasOwnProperty.call(Me,Ve)&&we.indexOf(Ve)<0&&(pe[Ve]=Me[Ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ve=Object.getOwnPropertySymbols(Me);Ye<Ve.length;Ye++)we.indexOf(Ve[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ve[Ye])&&(pe[Ve[Ye]]=Me[Ve[Ye]]);return pe};function ie(Me){return(Me||[]).map((we,pe)=>{if(we&&typeof we=="object"){const Ve=we,{label:Ye,children:st,key:it,type:mt}=Ve,Mt=ge(Ve,["label","children","key","type"]),It=it!=null?it:`tmp-${pe}`;return st||mt==="group"?mt==="group"?Pe.createElement(ae.BW,Object.assign({key:It},Mt,{title:Ye}),ie(st)):Pe.createElement(x,Object.assign({key:It},Mt,{title:Ye}),ie(st)):mt==="divider"?Pe.createElement(je,Object.assign({key:It},Mt)):Pe.createElement(E,Object.assign({key:It},Mt),Ye)}return null}).filter(we=>we)}function ue(Me){return Pe.useMemo(()=>Me&&ie(Me),[Me])}var ce=re(84780),ze=re(14747),De=re(33507),et=re(67771),Ot=re(50438),zt=re(67968),Jt=re(45503),_t=Me=>{const{componentCls:we,motionDurationSlow:pe,horizontalLineHeight:Ve,colorSplit:Ye,lineWidth:st,lineType:it,itemPaddingInline:mt}=Me;return{[`${we}-horizontal`]:{lineHeight:Ve,border:0,borderBottom:`${st}px ${it} ${Ye}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:mt},[`> ${we}-item:hover,
> ${we}-item-active,
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},Tt=Me=>{let{componentCls:we,menuArrowOffset:pe}=Me;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const Wt=Me=>Object.assign({},(0,ze.oN)(Me));var In=(Me,we)=>{const{componentCls:pe,itemColor:Ve,itemSelectedColor:Ye,groupTitleColor:st,itemBg:it,subMenuItemBg:mt,itemSelectedBg:Mt,activeBarHeight:It,activeBarWidth:jt,activeBarBorderWidth:Nt,motionDurationSlow:ln,motionEaseInOut:nn,motionEaseOut:Pn,itemPaddingInline:en,motionDurationMid:Gt,itemHoverColor:le,lineType:Fe,colorSplit:Ie,itemDisabledColor:tt,dangerItemColor:dt,dangerItemHoverColor:wt,dangerItemSelectedColor:Ct,dangerItemActiveBg:vt,dangerItemSelectedBg:bt,itemHoverBg:Zt,itemActiveBg:Rt,menuSubMenuBg:an,horizontalItemSelectedColor:cn,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:pn,horizontalItemHoverBg:tn,popupBg:Qt}=Me;return{[`${pe}-${we}, ${pe}-${we} > ${pe}`]:{color:Ve,background:it,[`&${pe}-root:focus-visible`]:Object.assign({},Wt(Me)),[`${pe}-item-group-title`]:{color:st},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Ye}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${tt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:le}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Zt},"&:active":{backgroundColor:Rt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Zt},"&:active":{backgroundColor:Rt}}},[`${pe}-item-danger`]:{color:dt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:wt}},[`&${pe}-item:active`]:{background:vt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Ye,[`&${pe}-item-danger`]:{color:Ct},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Mt,[`&${pe}-item-danger`]:{backgroundColor:bt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},Wt(Me))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:an},[`&${pe}-popup > ${pe}`]:{backgroundColor:Qt},[`&${pe}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Nt,marginTop:-Nt,marginBottom:0,borderRadius:pn,"&::after":{position:"absolute",insetInline:en,bottom:0,borderBottom:`${It}px solid transparent`,transition:`border-color ${ln} ${nn}`,content:'""'},"&:hover, &-active, &-open":{background:tn,"&::after":{borderBottomWidth:It,borderBottomColor:cn}},"&-selected":{color:cn,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:It,borderBottomColor:cn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Nt}px ${Fe} ${Ie}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:mt},[`${pe}-item, ${pe}-submenu-title`]:Nt&&jt?{width:`calc(100% + ${Nt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Ye}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Gt} ${Pn}`,`opacity ${Gt} ${Pn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Ct}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Gt} ${nn}`,`opacity ${Gt} ${nn}`].join(",")}}}}}};const $n=Me=>{const{componentCls:we,itemHeight:pe,itemMarginInline:Ve,padding:Ye,menuArrowSize:st,marginXS:it,itemMarginBlock:mt}=Me,Mt=Ye+st+it;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Ye,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ve,marginBlock:mt,width:`calc(100% - ${Ve*2}px)`},[`> ${we}-item,
> ${we}-submenu > ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${we}-item-group-list ${we}-submenu-title,
${we}-submenu-title`]:{paddingInlineEnd:Mt}}};var ke=Me=>{const{componentCls:we,iconCls:pe,itemHeight:Ve,colorTextLightSolid:Ye,dropdownWidth:st,controlHeightLG:it,motionDurationMid:mt,motionEaseOut:Mt,paddingXL:It,itemMarginInline:jt,fontSizeLG:Nt,motionDurationSlow:ln,paddingXS:nn,boxShadowSecondary:Pn,collapsedWidth:en,collapsedIconSize:Gt}=Me,le={height:Ve,lineHeight:`${Ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},$n(Me))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},$n(Me)),{boxShadow:Pn})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:st,maxHeight:`calc(100vh - ${it*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${mt} ${Mt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:le,[`& ${we}-item-group-title`]:{paddingInlineStart:It}},[`${we}-item`]:le}},{[`${we}-inline-collapsed`]:{width:en,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:Nt,textAlign:"center"}}},[`> ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Nt/2}px - ${jt}px)`,textOverflow:"clip",[`
${we}-submenu-arrow,
${we}-submenu-expand-icon
`]:{opacity:0},[`${we}-item-icon, ${pe}`]:{margin:0,fontSize:Gt,lineHeight:`${Ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Ye}},[`${we}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:nn})}}]};const Ae=Me=>{const{componentCls:we,motionDurationSlow:pe,motionDurationMid:Ve,motionEaseInOut:Ye,motionEaseOut:st,iconCls:it,iconSize:mt,iconMarginInlineEnd:Mt}=Me;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Ye}`].join(","),[`${we}-item-icon, ${it}`]:{minWidth:mt,fontSize:mt,transition:[`font-size ${Ve} ${st}`,`margin ${pe} ${Ye}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${pe} ${Ye}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${we}-item-only-child`]:{[`> ${it}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ot=Me=>{const{componentCls:we,motionDurationSlow:pe,motionEaseInOut:Ve,borderRadius:Ye,menuArrowSize:st,menuArrowOffset:it}=Me;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Me.margin,width:st,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Ve}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:st*.6,height:st*.15,backgroundColor:"currentcolor",borderRadius:Ye,transition:[`background ${pe} ${Ve}`,`transform ${pe} ${Ve}`,`top ${pe} ${Ve}`,`color ${pe} ${Ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${it})`},"&::after":{transform:`rotate(-45deg) translateY(${it})`}}}}},Oe=Me=>{const{antCls:we,componentCls:pe,fontSize:Ve,motionDurationSlow:Ye,motionDurationMid:st,motionEaseInOut:it,paddingXS:mt,padding:Mt,colorSplit:It,lineWidth:jt,zIndexPopup:Nt,borderRadiusLG:ln,subMenuItemBorderRadius:nn,menuArrowSize:Pn,menuArrowOffset:en,lineType:Gt,menuPanelMaskInset:le,groupTitleLineHeight:Fe,groupTitleFontSize:Ie}=Me;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(Me)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ye} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:Me.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${mt}px ${Mt}px`,fontSize:Ie,lineHeight:Fe,transition:`all ${Ye}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Ye} ${it}`,`background ${Ye} ${it}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Ye} ${it}`,`background ${Ye} ${it}`,`padding ${st} ${it}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Ye} ${it}`,`padding ${Ye} ${it}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Ye}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:It,borderStyle:Gt,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ae(Me)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Ve*2}px ${Mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Nt,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:le},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Me.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Me.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Me.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Me.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},Ae(Me)),ot(Me)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:nn},[`${pe}-submenu-title::after`]:{transition:`transform ${Ye} ${it}`}})}}),ot(Me)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${en})`},"&::after":{transform:`rotate(45deg) translateX(-${en})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Pn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${en})`},"&::before":{transform:`rotate(45deg) translateX(${en})`}}})},{[`${we}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var ft=(Me,we)=>(0,zt.Z)("Menu",Ve=>{if(we===!1)return[];const{colorBgElevated:Ye,colorPrimary:st,colorTextLightSolid:it,controlHeightLG:mt,fontSize:Mt,darkItemColor:It,darkDangerItemColor:jt,darkItemBg:Nt,darkSubMenuItemBg:ln,darkItemSelectedColor:nn,darkItemSelectedBg:Pn,darkDangerItemSelectedBg:en,darkItemHoverBg:Gt,darkGroupTitleColor:le,darkItemHoverColor:Fe,darkItemDisabledColor:Ie,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:dt,darkDangerItemActiveBg:wt}=Ve,Ct=Mt/7*5,vt=(0,Jt.TS)(Ve,{menuArrowSize:Ct,menuHorizontalHeight:mt*1.15,menuArrowOffset:`${Ct*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ye}),bt=(0,Jt.TS)(vt,{itemColor:It,itemHoverColor:Fe,groupTitleColor:le,itemSelectedColor:nn,itemBg:Nt,popupBg:Nt,subMenuItemBg:ln,itemActiveBg:"transparent",itemSelectedBg:Pn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Gt,itemDisabledColor:Ie,dangerItemColor:jt,dangerItemHoverColor:tt,dangerItemSelectedColor:dt,dangerItemActiveBg:wt,dangerItemSelectedBg:en,menuSubMenuBg:ln,horizontalItemSelectedColor:it,horizontalItemSelectedBg:st});return[Oe(vt),_t(vt),ke(vt),In(vt,"light"),In(bt,"dark"),Tt(vt),(0,De.Z)(vt),(0,et.oN)(vt,"slide-up"),(0,et.oN)(vt,"slide-down"),(0,Ot._y)(vt,"zoom-big")]},Ve=>{const{colorPrimary:Ye,colorError:st,colorTextDisabled:it,colorErrorBg:mt,colorText:Mt,colorTextDescription:It,colorBgContainer:jt,colorFillAlter:Nt,colorFillContent:ln,lineWidth:nn,lineWidthBold:Pn,controlItemBgActive:en,colorBgTextHover:Gt,controlHeightLG:le,lineHeight:Fe,colorBgElevated:Ie,marginXXS:tt,padding:dt,fontSize:wt,controlHeightSM:Ct,fontSizeLG:vt,colorTextLightSolid:bt,colorErrorHover:Zt}=Ve,Rt=new ce.C(bt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ve.zIndexPopupBase+50,radiusItem:Ve.borderRadiusLG,itemBorderRadius:Ve.borderRadiusLG,radiusSubMenuItem:Ve.borderRadiusSM,subMenuItemBorderRadius:Ve.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:Ye,horizontalItemHoverColor:Ye,colorGroupTitle:It,groupTitleColor:It,colorItemTextSelected:Ye,itemSelectedColor:Ye,colorItemTextSelectedHorizontal:Ye,horizontalItemSelectedColor:Ye,colorItemBg:jt,itemBg:jt,colorItemBgHover:Gt,itemHoverBg:Gt,colorItemBgActive:ln,itemActiveBg:en,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:en,itemSelectedBg:en,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Pn,activeBarHeight:Pn,colorActiveBarBorderSize:nn,activeBarBorderWidth:nn,colorItemTextDisabled:it,itemDisabledColor:it,colorDangerItemText:st,dangerItemColor:st,colorDangerItemTextHover:st,dangerItemHoverColor:st,colorDangerItemTextSelected:st,dangerItemSelectedColor:st,colorDangerItemBgActive:mt,dangerItemActiveBg:mt,colorDangerItemBgSelected:mt,dangerItemSelectedBg:mt,itemMarginInline:Ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:le,groupTitleLineHeight:Fe,collapsedWidth:le*2,popupBg:Ie,itemMarginBlock:tt,itemPaddingInline:dt,horizontalLineHeight:`${le*1.15}px`,iconSize:wt,iconMarginInlineEnd:Ct-wt,collapsedIconSize:vt,groupTitleFontSize:wt,darkItemDisabledColor:new ce.C(bt).setAlpha(.25).toRgbString(),darkItemColor:Rt,darkDangerItemColor:st,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:bt,darkItemSelectedBg:Ye,darkDangerItemSelectedBg:st,darkItemHoverBg:"transparent",darkGroupTitleColor:Rt,darkItemHoverColor:bt,darkDangerItemHoverColor:Zt,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:st}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Me),de=function(Me,we){var pe={};for(var Ve in Me)Object.prototype.hasOwnProperty.call(Me,Ve)&&we.indexOf(Ve)<0&&(pe[Ve]=Me[Ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ve=Object.getOwnPropertySymbols(Me);Ye<Ve.length;Ye++)we.indexOf(Ve[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ve[Ye])&&(pe[Ve[Ye]]=Me[Ve[Ye]]);return pe},Et=(0,Pe.forwardRef)((Me,we)=>{var pe,Ve;const Ye=Pe.useContext(oe.Z),st=Ye||{},{getPrefixCls:it,getPopupContainer:mt,direction:Mt,menu:It}=Pe.useContext(Re.E_),jt=it(),{prefixCls:Nt,className:ln,style:nn,theme:Pn="light",expandIcon:en,_internalDisableMenuItemTitleTooltip:Gt,inlineCollapsed:le,siderCollapsed:Fe,items:Ie,children:tt,rootClassName:dt,mode:wt,selectable:Ct,onClick:vt,overflowedIndicatorPopupClassName:bt}=Me,Zt=de(Me,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Rt=(0,Xe.Z)(Zt,["collapsedWidth"]),an=ue(Ie)||tt;(pe=st.validator)===null||pe===void 0||pe.call(st,{mode:wt});const cn=(0,ee.useEvent)(function(){var wn;vt==null||vt.apply(void 0,arguments),(wn=st.onClick)===null||wn===void 0||wn.call(st)}),fn=st.mode||wt,pn=Ct!=null?Ct:st.selectable,tn=Pe.useMemo(()=>Fe!==void 0?Fe:le,[le,Fe]),Qt={horizontal:{motionName:`${jt}-slide-up`},inline:(0,ne.Z)(jt),other:{motionName:`${jt}-zoom-big`}},Sn=it("menu",Nt||st.prefixCls),[vn,yn]=ft(Sn,!Ye),sn=he()(`${Sn}-${Pn}`,It==null?void 0:It.className,ln);let On;if(typeof en=="function")On=en;else if(en===null||en===!1)On=null;else if(st.expandIcon===null||st.expandIcon===!1)On=null;else{const wn=en!=null?en:st.expandIcon;On=(0,Ge.Tm)(wn,{className:he()(`${Sn}-submenu-expand-icon`,(0,Ge.l$)(wn)?(Ve=wn.props)===null||Ve===void 0?void 0:Ve.className:"")})}const Kn=Pe.useMemo(()=>({prefixCls:Sn,inlineCollapsed:tn||!1,direction:Mt,firstLevel:!0,theme:Pn,mode:fn,disableMenuItemTitleTooltip:Gt}),[Sn,tn,Mt,Gt,Pn]);return vn(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Kn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:mt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:he()(Sn,`${Sn}-${Pn}`,bt),mode:fn,selectable:pn,onClick:cn},Rt,{inlineCollapsed:tn,style:Object.assign(Object.assign({},It==null?void 0:It.style),nn),className:sn,prefixCls:Sn,direction:Mt,defaultMotions:Qt,expandIcon:On,ref:we,rootClassName:he()(dt,yn)}),an))))});const yt=(0,Pe.forwardRef)((Me,we)=>{const pe=(0,Pe.useRef)(null),Ve=Pe.useContext(We.D);return(0,Pe.useImperativeHandle)(we,()=>({menu:pe.current,focus:Ye=>{var st;(st=pe.current)===null||st===void 0||st.focus(Ye)}})),Pe.createElement(Et,Object.assign({ref:pe},Me,Ve))});yt.Item=E,yt.SubMenu=x,yt.Divider=je,yt.ItemGroup=ae.BW;var Ze=yt},66330:function(xe,at,re){"use strict";re.d(at,{t5:function(){return Le}});var ae=re(94184),Pe=re.n(ae),We=re(92419),Ne=re(67294),he=re(53124),Re=re(81643),se=re(20136),qe=function(He,Ge){var te={};for(var a in He)Object.prototype.hasOwnProperty.call(He,a)&&Ge.indexOf(a)<0&&(te[a]=He[a]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(He);y<a.length;y++)Ge.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(He,a[y])&&(te[a[y]]=He[a[y]]);return te};const je=(He,Ge,te)=>{if(!(!Ge&&!te))return Ne.createElement(Ne.Fragment,null,Ge&&Ne.createElement("div",{className:`${He}-title`},(0,Re.Z)(Ge)),Ne.createElement("div",{className:`${He}-inner-content`},(0,Re.Z)(te)))},Le=He=>{const{hashId:Ge,prefixCls:te,className:a,style:y,placement:E="top",title:b,content:x,children:z}=He;return Ne.createElement("div",{className:Pe()(Ge,te,`${te}-pure`,`${te}-placement-${E}`,a),style:y},Ne.createElement("div",{className:`${te}-arrow`}),Ne.createElement(We.G,Object.assign({},He,{className:Ge,prefixCls:te}),z||je(te,b,x)))},Xe=He=>{const{prefixCls:Ge}=He,te=qe(He,["prefixCls"]),{getPrefixCls:a}=Ne.useContext(he.E_),y=a("popover",Ge),[E,b]=(0,se.Z)(y);return E(Ne.createElement(Le,Object.assign({},te,{prefixCls:y,hashId:b})))};at.ZP=Xe},55241:function(xe,at,re){"use strict";var ae=re(94184),Pe=re.n(ae),We=re(67294),Ne=re(81643),he=re(33603),Re=re(53124),se=re(83062),qe=re(66330),je=re(20136),Le=function(Ge,te){var a={};for(var y in Ge)Object.prototype.hasOwnProperty.call(Ge,y)&&te.indexOf(y)<0&&(a[y]=Ge[y]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,y=Object.getOwnPropertySymbols(Ge);E<y.length;E++)te.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(Ge,y[E])&&(a[y[E]]=Ge[y[E]]);return a};const Xe=Ge=>{let{title:te,content:a,prefixCls:y}=Ge;return We.createElement(We.Fragment,null,te&&We.createElement("div",{className:`${y}-title`},(0,Ne.Z)(te)),We.createElement("div",{className:`${y}-inner-content`},(0,Ne.Z)(a)))},He=We.forwardRef((Ge,te)=>{const{prefixCls:a,title:y,content:E,overlayClassName:b,placement:x="top",trigger:z="hover",mouseEnterDelay:ee=.1,mouseLeaveDelay:ne=.1,overlayStyle:oe={}}=Ge,ge=Le(Ge,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ie}=We.useContext(Re.E_),ue=ie("popover",a),[ce,ze]=(0,je.Z)(ue),De=ie(),et=Pe()(b,ze);return ce(We.createElement(se.Z,Object.assign({placement:x,trigger:z,mouseEnterDelay:ee,mouseLeaveDelay:ne,overlayStyle:oe},ge,{prefixCls:ue,overlayClassName:et,ref:te,overlay:y||E?We.createElement(Xe,{prefixCls:ue,title:y,content:E}):null,transitionName:(0,he.m)(De,"zoom-big",ge.transitionName),"data-popover-inject":!0})))});He._InternalPanelDoNotUseOrYouWillBeFired=qe.ZP,at.Z=He},20136:function(xe,at,re){"use strict";var ae=re(14747),Pe=re(50438),We=re(97414),Ne=re(8796),he=re(67968),Re=re(45503);const se=Le=>{const{componentCls:Xe,popoverColor:He,minWidth:Ge,fontWeightStrong:te,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:E,borderRadiusLG:b,zIndexPopup:x,marginXS:z,colorBgElevated:ee,popoverBg:ne}=Le;return[{[Xe]:Object.assign(Object.assign({},(0,ae.Wf)(Le)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:x,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":ee,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Xe}-content`]:{position:"relative"},[`${Xe}-inner`]:{backgroundColor:ne,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${Xe}-title`]:{minWidth:Ge,marginBottom:z,color:E,fontWeight:te},[`${Xe}-inner-content`]:{color:He}})},(0,We.ZP)(Le,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Xe}-pure`]:{position:"relative",maxWidth:"none",margin:Le.sizePopupArrow,display:"inline-block",[`${Xe}-content`]:{display:"inline-block"}}}]},qe=Le=>{const{componentCls:Xe}=Le;return{[Xe]:Ne.i.map(He=>{const Ge=Le[`${He}6`];return{[`&${Xe}-${He}`]:{"--antd-arrow-background-color":Ge,[`${Xe}-inner`]:{backgroundColor:Ge},[`${Xe}-arrow`]:{background:"transparent"}}}})}},je=Le=>{const{componentCls:Xe,lineWidth:He,lineType:Ge,colorSplit:te,paddingSM:a,controlHeight:y,fontSize:E,lineHeight:b,padding:x}=Le,z=y-Math.round(E*b),ee=z/2,ne=z/2-He,oe=x;return{[Xe]:{[`${Xe}-inner`]:{padding:0},[`${Xe}-title`]:{margin:0,padding:`${ee}px ${oe}px ${ne}px`,borderBottom:`${He}px ${Ge} ${te}`},[`${Xe}-inner-content`]:{padding:`${a}px ${oe}px`}}}};at.Z=(0,he.Z)("Popover",Le=>{const{colorBgElevated:Xe,colorText:He,wireframe:Ge}=Le,te=(0,Re.TS)(Le,{popoverPadding:12,popoverBg:Xe,popoverColor:He});return[se(te),qe(te),Ge&&je(te),(0,Pe._y)(te,"zoom-big")]},Le=>({width:177,minWidth:177,zIndexPopup:Le.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(xe,at,re){"use strict";re.d(at,{Z:function(){return Gt}});var ae=re(67294),Pe=re(87725),We=re(18299),Ne=re(16646),he=re(73475),Re=re(94184),se=re.n(Re),qe=re(10366),je=re(53124),Le=re(87462),Xe=re(1413),He=re(45987),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var Fe=(0,ae.useRef)([]),Ie=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var tt=Date.now(),dt=!1;Fe.current.forEach(function(wt){if(wt){dt=!0;var Ct=wt.style;Ct.transitionDuration=".3s, .3s, .3s, .06s",Ie.current&&tt-Ie.current<100&&(Ct.transitionDuration="0s, 0s")}}),dt&&(Ie.current=Date.now())}),Fe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Fe){var Ie=(0,Xe.Z)((0,Xe.Z)({},Ge),Fe),tt=Ie.className,dt=Ie.percent,wt=Ie.prefixCls,Ct=Ie.strokeColor,vt=Ie.strokeLinecap,bt=Ie.strokeWidth,Zt=Ie.style,Rt=Ie.trailColor,an=Ie.trailWidth,cn=Ie.transition,fn=(0,He.Z)(Ie,a);delete fn.gapPosition;var pn=Array.isArray(dt)?dt:[dt],tn=Array.isArray(Ct)?Ct:[Ct],Qt=te(),Sn=bt/2,vn=100-bt/2,yn="M ".concat(vt==="round"?Sn:0,",").concat(Sn,`
L `).concat(vt==="round"?vn:100,",").concat(Sn),sn="0 0 100 ".concat(bt),On=0;return ae.createElement("svg",(0,Le.Z)({className:se()("".concat(wt,"-line"),tt),viewBox:sn,preserveAspectRatio:"none",style:Zt},fn),ae.createElement("path",{className:"".concat(wt,"-line-trail"),d:yn,strokeLinecap:vt,stroke:Rt,strokeWidth:an||bt,fillOpacity:"0"}),pn.map(function(Kn,wn){var Wn=1;switch(vt){case"round":Wn=1-bt/100;break;case"square":Wn=1-bt/2/100;break;default:Wn=1;break}var aa={strokeDasharray:"".concat(Kn*Wn,"px, 100px"),strokeDashoffset:"-".concat(On,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=tn[wn]||tn[tn.length-1];return On+=Kn,ae.createElement("path",{key:wn,className:"".concat(wt,"-line-path"),d:yn,strokeLinecap:vt,stroke:Se,strokeWidth:bt,fillOpacity:"0",ref:function(fe){Qt[wn]=fe},style:aa})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,ne=(0,z.Z)();function oe(){var le;return ne?(le=ee,ee+=1):le="TEST_OR_SSR",le}var ge=function(le){var Fe=ae.useState(),Ie=(0,x.Z)(Fe,2),tt=Ie[0],dt=Ie[1];return ae.useEffect(function(){dt("rc_progress_".concat(oe()))},[]),le||tt},ie=function(Fe){var Ie=Fe.bg,tt=Fe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ie}},tt)};function ue(le,Fe){return Object.keys(le).map(function(Ie){var tt=parseFloat(Ie),dt="".concat(Math.floor(tt*Fe),"%");return"".concat(le[Ie]," ").concat(dt)})}var ce=ae.forwardRef(function(le,Fe){var Ie=le.prefixCls,tt=le.color,dt=le.gradientId,wt=le.radius,Ct=le.style,vt=le.ptg,bt=le.strokeLinecap,Zt=le.strokeWidth,Rt=le.size,an=le.gapDegree,cn=tt&&(0,b.Z)(tt)==="object",fn=cn?"#FFF":void 0,pn=Rt/2,tn=ae.createElement("circle",{className:"".concat(Ie,"-circle-path"),r:wt,cx:pn,cy:pn,stroke:fn,strokeLinecap:bt,strokeWidth:Zt,opacity:vt===0?0:1,style:Ct,ref:Fe});if(!cn)return tn;var Qt="".concat(dt,"-conic"),Sn=an?"".concat(180+an/2,"deg"):"0deg",vn=ue(tt,(360-an)/360),yn=ue(tt,1),sn="conic-gradient(from ".concat(Sn,", ").concat(vn.join(", "),")"),On="linear-gradient(to ".concat(an?"bottom":"top",", ").concat(yn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Qt},tn),ae.createElement("foreignObject",{x:0,y:0,width:Rt,height:Rt,mask:"url(#".concat(Qt,")")},ae.createElement(ie,{bg:On},ae.createElement(ie,{bg:sn}))))}),ze=ce,De=100,et=function(Fe,Ie,tt,dt,wt,Ct,vt,bt,Zt,Rt){var an=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=tt/100*360*((360-Ct)/360),fn=Ct===0?0:{bottom:0,top:180,left:90,right:-90}[vt],pn=(100-dt)/100*Ie;Zt==="round"&&dt!==100&&(pn+=Rt/2,pn>=Ie&&(pn=Ie-.01));var tn=De/2;return{stroke:typeof bt=="string"?bt:void 0,strokeDasharray:"".concat(Ie,"px ").concat(Fe),strokeDashoffset:pn+an,transform:"rotate(".concat(wt+cn+fn,"deg)"),transformOrigin:"".concat(tn,"px ").concat(tn,"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}},Ot=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function zt(le){var Fe=le!=null?le:[];return Array.isArray(Fe)?Fe:[Fe]}var Jt=function(Fe){var Ie=(0,Xe.Z)((0,Xe.Z)({},Ge),Fe),tt=Ie.id,dt=Ie.prefixCls,wt=Ie.steps,Ct=Ie.strokeWidth,vt=Ie.trailWidth,bt=Ie.gapDegree,Zt=bt===void 0?0:bt,Rt=Ie.gapPosition,an=Ie.trailColor,cn=Ie.strokeLinecap,fn=Ie.style,pn=Ie.className,tn=Ie.strokeColor,Qt=Ie.percent,Sn=(0,He.Z)(Ie,Ot),vn=De/2,yn=ge(tt),sn="".concat(yn,"-gradient"),On=vn-Ct/2,Kn=Math.PI*2*On,wn=Zt>0?90+Zt/2:-90,Wn=Kn*((360-Zt)/360),aa=(0,b.Z)(wt)==="object"?wt:{count:wt,space:2},Se=aa.count,ve=aa.space,fe=zt(Qt),Ue=zt(tn),ct=Ue.find(function(zn){return zn&&(0,b.Z)(zn)==="object"}),ht=ct&&(0,b.Z)(ct)==="object",Yt=ht?"butt":cn,Ut=et(Kn,Wn,0,100,wn,Zt,Rt,an,Yt,Ct),Ft=te(),hn=function(){var Je=0;return fe.map(function(Ht,me){var be=Ue[me]||Ue[Ue.length-1],ye=et(Kn,Wn,Je,Ht,wn,Zt,Rt,be,Yt,Ct);return Je+=Ht,ae.createElement(ze,{key:me,color:be,ptg:Ht,radius:On,prefixCls:dt,gradientId:sn,style:ye,strokeLinecap:Yt,strokeWidth:Ct,gapDegree:Zt,ref:function(Qe){Ft[me]=Qe},size:De})}).reverse()},Vn=function(){var Je=Math.round(Se*(fe[0]/100)),Ht=100/Se,me=0;return new Array(Se).fill(null).map(function(be,ye){var Be=ye<=Je-1?Ue[0]:an,Qe=Be&&(0,b.Z)(Be)==="object"?"url(#".concat(sn,")"):void 0,Te=et(Kn,Wn,me,Ht,wn,Zt,Rt,Be,"butt",Ct,ve);return me+=(Wn-Te.strokeDashoffset+ve)*100/Wn,ae.createElement("circle",{key:ye,className:"".concat(dt,"-circle-path"),r:On,cx:vn,cy:vn,stroke:Qe,strokeWidth:Ct,opacity:1,style:Te,ref:function($e){Ft[ye]=$e}})})};return ae.createElement("svg",(0,Le.Z)({className:se()("".concat(dt,"-circle"),pn),viewBox:"0 0 ".concat(De," ").concat(De),style:fn,id:tt,role:"presentation"},Sn),!Se&&ae.createElement("circle",{className:"".concat(dt,"-circle-trail"),r:On,cx:vn,cy:vn,stroke:an,strokeLinecap:Yt,strokeWidth:vt||Ct,style:Ut}),Se?Vn():hn())},un=Jt,_t={Line:E,Circle:un},Kt=re(83062),Tt=re(47448);function Wt(le){return!le||le<0?0:le>100?100:le}function dn(le){let{success:Fe,successPercent:Ie}=le,tt=Ie;return Fe&&"progress"in Fe&&(tt=Fe.progress),Fe&&"percent"in Fe&&(tt=Fe.percent),tt}const In=le=>{let{percent:Fe,success:Ie,successPercent:tt}=le;const dt=Wt(dn({success:Ie,successPercent:tt}));return[dt,Wt(Wt(Fe)-dt)]},$n=le=>{let{success:Fe={},strokeColor:Ie}=le;const{strokeColor:tt}=Fe;return[tt||Tt.presetPrimaryColors.green,Ie||null]},Ee=(le,Fe,Ie)=>{var tt,dt,wt,Ct;let vt=-1,bt=-1;if(Fe==="step"){const Zt=Ie.steps,Rt=Ie.strokeWidth;typeof le=="string"||typeof le=="undefined"?(vt=le==="small"?2:14,bt=Rt!=null?Rt:8):typeof le=="number"?[vt,bt]=[le,le]:[vt=14,bt=8]=le,vt*=Zt}else if(Fe==="line"){const Zt=Ie==null?void 0:Ie.strokeWidth;typeof le=="string"||typeof le=="undefined"?bt=Zt||(le==="small"?6:8):typeof le=="number"?[vt,bt]=[le,le]:[vt=-1,bt=8]=le}else(Fe==="circle"||Fe==="dashboard")&&(typeof le=="string"||typeof le=="undefined"?[vt,bt]=le==="small"?[60,60]:[120,120]:typeof le=="number"?[vt,bt]=[le,le]:(vt=(dt=(tt=le[0])!==null&&tt!==void 0?tt:le[1])!==null&&dt!==void 0?dt:120,bt=(Ct=(wt=le[0])!==null&&wt!==void 0?wt:le[1])!==null&&Ct!==void 0?Ct:120));return[vt,bt]},ke=3,Ae=le=>ke/le*100;var Oe=le=>{const{prefixCls:Fe,trailColor:Ie=null,strokeLinecap:tt="round",gapPosition:dt,gapDegree:wt,width:Ct=120,type:vt,children:bt,success:Zt,size:Rt=Ct}=le,[an,cn]=Ee(Rt,"circle");let{strokeWidth:fn}=le;fn===void 0&&(fn=Math.max(Ae(an),6));const pn={width:an,height:cn,fontSize:an*.15+6},tn=ae.useMemo(()=>{if(wt||wt===0)return wt;if(vt==="dashboard")return 75},[wt,vt]),Qt=dt||vt==="dashboard"&&"bottom"||void 0,Sn=Object.prototype.toString.call(le.strokeColor)==="[object Object]",vn=$n({success:Zt,strokeColor:le.strokeColor}),yn=se()(`${Fe}-inner`,{[`${Fe}-circle-gradient`]:Sn}),sn=ae.createElement(un,{percent:In(le),strokeWidth:fn,trailWidth:fn,strokeColor:vn,strokeLinecap:tt,trailColor:Ie,prefixCls:Fe,gapDegree:tn,gapPosition:Qt});return ae.createElement("div",{className:yn,style:pn},an<=20?ae.createElement(Kt.Z,{title:bt},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,bt))},ft=function(le,Fe){var Ie={};for(var tt in le)Object.prototype.hasOwnProperty.call(le,tt)&&Fe.indexOf(tt)<0&&(Ie[tt]=le[tt]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,tt=Object.getOwnPropertySymbols(le);dt<tt.length;dt++)Fe.indexOf(tt[dt])<0&&Object.prototype.propertyIsEnumerable.call(le,tt[dt])&&(Ie[tt[dt]]=le[tt[dt]]);return Ie};const de=le=>{let Fe=[];return Object.keys(le).forEach(Ie=>{const tt=parseFloat(Ie.replace(/%/g,""));isNaN(tt)||Fe.push({key:tt,value:le[Ie]})}),Fe=Fe.sort((Ie,tt)=>Ie.key-tt.key),Fe.map(Ie=>{let{key:tt,value:dt}=Ie;return`${dt} ${tt}%`}).join(", ")},rt=(le,Fe)=>{const{from:Ie=Tt.presetPrimaryColors.blue,to:tt=Tt.presetPrimaryColors.blue,direction:dt=Fe==="rtl"?"to left":"to right"}=le,wt=ft(le,["from","to","direction"]);if(Object.keys(wt).length!==0){const Ct=de(wt);return{backgroundImage:`linear-gradient(${dt}, ${Ct})`}}return{backgroundImage:`linear-gradient(${dt}, ${Ie}, ${tt})`}};var yt=le=>{const{prefixCls:Fe,direction:Ie,percent:tt,size:dt,strokeWidth:wt,strokeColor:Ct,strokeLinecap:vt="round",children:bt,trailColor:Zt=null,success:Rt}=le,an=Ct&&typeof Ct!="string"?rt(Ct,Ie):{backgroundColor:Ct},cn=vt==="square"||vt==="butt"?0:void 0,fn={backgroundColor:Zt||void 0,borderRadius:cn},pn=dt!=null?dt:[-1,wt||(dt==="small"?6:8)],[tn,Qt]=Ee(pn,"line",{strokeWidth:wt}),Sn=Object.assign({width:`${Wt(tt)}%`,height:Qt,borderRadius:cn},an),vn=dn(le),yn={width:`${Wt(vn)}%`,height:Qt,borderRadius:cn,backgroundColor:Rt==null?void 0:Rt.strokeColor},sn={width:tn<0?"100%":tn,height:Qt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Fe}-outer`,style:sn},ae.createElement("div",{className:`${Fe}-inner`,style:fn},ae.createElement("div",{className:`${Fe}-bg`,style:Sn}),vn!==void 0?ae.createElement("div",{className:`${Fe}-success-bg`,style:yn}):null)),bt)},Me=le=>{const{size:Fe,steps:Ie,percent:tt=0,strokeWidth:dt=8,strokeColor:wt,trailColor:Ct=null,prefixCls:vt,children:bt}=le,Zt=Math.round(Ie*(tt/100)),Rt=Fe==="small"?2:14,an=Fe!=null?Fe:[Rt,dt],[cn,fn]=Ee(an,"step",{steps:Ie,strokeWidth:dt}),pn=cn/Ie,tn=new Array(Ie);for(let Qt=0;Qt<Ie;Qt++){const Sn=Array.isArray(wt)?wt[Qt]:wt;tn[Qt]=ae.createElement("div",{key:Qt,className:se()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:Qt<=Zt-1}),style:{backgroundColor:Qt<=Zt-1?Sn:Ct,width:pn,height:fn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},tn,bt)},we=re(45930),pe=re(14747),Ve=re(67968),Ye=re(45503);const st=le=>{const Fe=le?"100%":"-100%";return new we.Keyframes(`antProgress${le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},it=le=>{const{componentCls:Fe,iconCls:Ie}=le;return{[Fe]:Object.assign(Object.assign({},(0,pe.Wf)(le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:le.fontSize,marginInlineEnd:le.marginXS,marginBottom:le.marginXS},[`${Fe}-outer`]:{display:"inline-block",width:"100%"},[`&${Fe}-show-info`]:{[`${Fe}-outer`]:{marginInlineEnd:`calc(-2em - ${le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${le.paddingXS}px)`}},[`${Fe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:le.remainingColor,borderRadius:le.lineBorderRadius},[`${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:le.defaultColor}},[`${Fe}-success-bg, ${Fe}-bg`]:{position:"relative",backgroundColor:le.defaultColor,borderRadius:le.lineBorderRadius,transition:`all ${le.motionDurationSlow} ${le.motionEaseInOutCirc}`},[`${Fe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:le.colorSuccess},[`${Fe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:le.marginXS,color:le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ie]:{fontSize:le.fontSize}},[`&${Fe}-status-active`]:{[`${Fe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:le.colorBgContainer,borderRadius:le.lineBorderRadius,opacity:0,animationName:st(),animationDuration:le.progressActiveMotionDuration,animationTimingFunction:le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Fe}-rtl${Fe}-status-active`]:{[`${Fe}-bg::before`]:{animationName:st(!0)}},[`&${Fe}-status-exception`]:{[`${Fe}-bg`]:{backgroundColor:le.colorError},[`${Fe}-text`]:{color:le.colorError}},[`&${Fe}-status-exception ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:le.colorError}},[`&${Fe}-status-success`]:{[`${Fe}-bg`]:{backgroundColor:le.colorSuccess},[`${Fe}-text`]:{color:le.colorSuccess}},[`&${Fe}-status-success ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:le.colorSuccess}}})}},mt=le=>{const{componentCls:Fe,iconCls:Ie}=le;return{[Fe]:{[`${Fe}-circle-trail`]:{stroke:le.remainingColor},[`&${Fe}-circle ${Fe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Fe}-circle ${Fe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:le.circleTextColor,fontSize:le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ie]:{fontSize:`${le.fontSize/le.fontSizeSM}em`}},[`${Fe}-circle&-status-exception`]:{[`${Fe}-text`]:{color:le.colorError}},[`${Fe}-circle&-status-success`]:{[`${Fe}-text`]:{color:le.colorSuccess}}},[`${Fe}-inline-circle`]:{lineHeight:1,[`${Fe}-inner`]:{verticalAlign:"bottom"}}}},Mt=le=>{const{componentCls:Fe}=le;return{[Fe]:{[`${Fe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:le.progressStepMinWidth,marginInlineEnd:le.progressStepMarginInlineEnd,backgroundColor:le.remainingColor,transition:`all ${le.motionDurationSlow}`,"&-active":{backgroundColor:le.defaultColor}}}}}},It=le=>{const{componentCls:Fe,iconCls:Ie}=le;return{[Fe]:{[`${Fe}-small&-line, ${Fe}-small&-line ${Fe}-text ${Ie}`]:{fontSize:le.fontSizeSM}}}};var jt=(0,Ve.Z)("Progress",le=>{const Fe=le.marginXXS/2,Ie=(0,Ye.TS)(le,{progressStepMarginInlineEnd:Fe,progressStepMinWidth:Fe,progressActiveMotionDuration:"2.4s"});return[it(Ie),mt(Ie),Mt(Ie),It(Ie)]},le=>({circleTextColor:le.colorText,defaultColor:le.colorInfo,remainingColor:le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nt=function(le,Fe){var Ie={};for(var tt in le)Object.prototype.hasOwnProperty.call(le,tt)&&Fe.indexOf(tt)<0&&(Ie[tt]=le[tt]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,tt=Object.getOwnPropertySymbols(le);dt<tt.length;dt++)Fe.indexOf(tt[dt])<0&&Object.prototype.propertyIsEnumerable.call(le,tt[dt])&&(Ie[tt[dt]]=le[tt[dt]]);return Ie};const ln=null,nn=["normal","exception","active","success"];var en=ae.forwardRef((le,Fe)=>{const{prefixCls:Ie,className:tt,rootClassName:dt,steps:wt,strokeColor:Ct,percent:vt=0,size:bt="default",showInfo:Zt=!0,type:Rt="line",status:an,format:cn,style:fn}=le,pn=Nt(le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),tn=ae.useMemo(()=>{var fe,Ue;const ct=dn(le);return parseInt(ct!==void 0?(fe=ct!=null?ct:0)===null||fe===void 0?void 0:fe.toString():(Ue=vt!=null?vt:0)===null||Ue===void 0?void 0:Ue.toString(),10)},[vt,le.success,le.successPercent]),Qt=ae.useMemo(()=>!nn.includes(an)&&tn>=100?"success":an||"normal",[an,tn]),{getPrefixCls:Sn,direction:vn,progress:yn}=ae.useContext(je.E_),sn=Sn("progress",Ie),[On,Kn]=jt(sn),wn=ae.useMemo(()=>{if(!Zt)return null;const fe=dn(le);let Ue;const ct=cn||(Yt=>`${Yt}%`),ht=Rt==="line";return cn||Qt!=="exception"&&Qt!=="success"?Ue=ct(Wt(vt),Wt(fe)):Qt==="exception"?Ue=ht?ae.createElement(Ne.Z,null):ae.createElement(he.Z,null):Qt==="success"&&(Ue=ht?ae.createElement(Pe.Z,null):ae.createElement(We.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Ue=="string"?Ue:void 0},Ue)},[Zt,vt,tn,Qt,Rt,sn,cn]),Wn=Array.isArray(Ct)?Ct[0]:Ct,aa=typeof Ct=="string"||Array.isArray(Ct)?Ct:void 0;let Se;Rt==="line"?Se=wt?ae.createElement(Me,Object.assign({},le,{strokeColor:aa,prefixCls:sn,steps:wt}),wn):ae.createElement(yt,Object.assign({},le,{strokeColor:Wn,prefixCls:sn,direction:vn}),wn):(Rt==="circle"||Rt==="dashboard")&&(Se=ae.createElement(Oe,Object.assign({},le,{strokeColor:Wn,prefixCls:sn,progressStatus:Qt}),wn));const ve=se()(sn,`${sn}-status-${Qt}`,`${sn}-${Rt==="dashboard"&&"circle"||wt&&"steps"||Rt}`,{[`${sn}-inline-circle`]:Rt==="circle"&&Ee(bt,"circle")[0]<=20,[`${sn}-show-info`]:Zt,[`${sn}-${bt}`]:typeof bt=="string",[`${sn}-rtl`]:vn==="rtl"},yn==null?void 0:yn.className,tt,dt,Kn);return On(ae.createElement("div",Object.assign({ref:Fe,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),fn),className:ve,role:"progressbar","aria-valuenow":tn},(0,qe.Z)(pn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Se))}),Gt=en},59810:function(xe,at,re){"use strict";re.d(at,{default:function(){return Ht}});var ae=re(67294),Pe=re(74902),We=re(94184),Ne=re.n(We),he=re(87462),Re=re(15671),se=re(43144),qe=re(60136),je=re(51630),Le=re(4942),Xe=re(45987),He=re(74165),Ge=re(71002),te=re(15861),a=re(64217);function y(me,be){var ye="cannot ".concat(me.method," ").concat(me.action," ").concat(be.status,"'"),Be=new Error(ye);return Be.status=be.status,Be.method=me.method,Be.url=me.action,Be}function E(me){var be=me.responseText||me.response;if(!be)return be;try{return JSON.parse(be)}catch(ye){return be}}function b(me){var be=new XMLHttpRequest;me.onProgress&&be.upload&&(be.upload.onprogress=function(Te){Te.total>0&&(Te.percent=Te.loaded/Te.total*100),me.onProgress(Te)});var ye=new FormData;me.data&&Object.keys(me.data).forEach(function(Qe){var Te=me.data[Qe];if(Array.isArray(Te)){Te.forEach(function(Ke){ye.append("".concat(Qe,"[]"),Ke)});return}ye.append(Qe,Te)}),me.file instanceof Blob?ye.append(me.filename,me.file,me.file.name):ye.append(me.filename,me.file),be.onerror=function(Te){me.onError(Te)},be.onload=function(){return be.status<200||be.status>=300?me.onError(y(me,be),E(be)):me.onSuccess(E(be),be)},be.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in be&&(be.withCredentials=!0);var Be=me.headers||{};return Be["X-Requested-With"]!==null&&be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Be).forEach(function(Qe){Be[Qe]!==null&&be.setRequestHeader(Qe,Be[Qe])}),be.send(ye),{abort:function(){be.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=re(80334),oe=function(me,be){if(me&&be){var ye=Array.isArray(be)?be:be.split(","),Be=me.name||"",Qe=me.type||"",Te=Qe.replace(/\/.*$/,"");return ye.some(function(Ke){var $e=Ke.trim();if(/^\*(\/\*)?$/.test(Ke))return!0;if($e.charAt(0)==="."){var xt=Be.toLowerCase(),Pt=$e.toLowerCase(),$t=[Pt];return(Pt===".jpg"||Pt===".jpeg")&&($t=[".jpg",".jpeg"]),$t.some(function(Xt){return xt.endsWith(Xt)})}return/\/\*$/.test($e)?Te===$e.replace(/\/.*$/,""):Qe===$e?!0:/^\w+$/.test($e)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat($e,"'.Skip for check.")),!0):!1})}return!0};function ge(me,be){var ye=me.createReader(),Be=[];function Qe(){ye.readEntries(function(Te){var Ke=Array.prototype.slice.apply(Te);Be=Be.concat(Ke);var $e=!Ke.length;$e?be(Be):Qe()})}Qe()}var ie=function(be,ye,Be){var Qe=function Te(Ke,$e){Ke&&(Ke.path=$e||"",Ke.isFile?Ke.file(function(xt){Be(xt)&&(Ke.fullPath&&!xt.webkitRelativePath&&(Object.defineProperties(xt,{webkitRelativePath:{writable:!0}}),xt.webkitRelativePath=Ke.fullPath.replace(/^\//,""),Object.defineProperties(xt,{webkitRelativePath:{writable:!1}})),ye([xt]))}):Ke.isDirectory&&ge(Ke,function(xt){xt.forEach(function(Pt){Te(Pt,"".concat($e).concat(Ke.name,"/"))})}))};be.forEach(function(Te){Qe(Te.webkitGetAsEntry())})},ue=ie,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(me){(0,qe.Z)(ye,me);var be=(0,je.Z)(ye);function ye(){var Be;(0,Re.Z)(this,ye);for(var Qe=arguments.length,Te=new Array(Qe),Ke=0;Ke<Qe;Ke++)Te[Ke]=arguments[Ke];return Be=be.call.apply(be,[this].concat(Te)),Be.state={uid:ee()},Be.reqs={},Be.fileInput=void 0,Be._isMounted=void 0,Be.onChange=function($e){var xt=Be.props,Pt=xt.accept,$t=xt.directory,Xt=$e.target.files,Ce=(0,Pe.Z)(Xt).filter(function(on){return!$t||oe(on,Pt)});Be.uploadFiles(Ce),Be.reset()},Be.onClick=function($e){var xt=Be.fileInput;if(xt){var Pt=Be.props,$t=Pt.children,Xt=Pt.onClick;if($t&&$t.type==="button"){var Ce=xt.parentNode;Ce.focus(),Ce.querySelector("button").blur()}xt.click(),Xt&&Xt($e)}},Be.onKeyDown=function($e){$e.key==="Enter"&&Be.onClick($e)},Be.onFileDrop=function($e){var xt=Be.props.multiple;if($e.preventDefault(),$e.type!=="dragover")if(Be.props.directory)ue(Array.prototype.slice.call($e.dataTransfer.items),Be.uploadFiles,function($t){return oe($t,Be.props.accept)});else{var Pt=(0,Pe.Z)($e.dataTransfer.files).filter(function($t){return oe($t,Be.props.accept)});xt===!1&&(Pt=Pt.slice(0,1)),Be.uploadFiles(Pt)}},Be.uploadFiles=function($e){var xt=(0,Pe.Z)($e),Pt=xt.map(function($t){return $t.uid=ee(),Be.processFile($t,xt)});Promise.all(Pt).then(function($t){var Xt=Be.props.onBatchStart;Xt==null||Xt($t.map(function(Ce){var on=Ce.origin,Nn=Ce.parsedFile;return{file:on,parsedFile:Nn}})),$t.filter(function(Ce){return Ce.parsedFile!==null}).forEach(function(Ce){Be.post(Ce)})})},Be.processFile=function(){var $e=(0,te.Z)((0,He.Z)().mark(function xt(Pt,$t){var Xt,Ce,on,Nn,An,Dn,bn,_e,St;return(0,He.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Xt=Be.props.beforeUpload,Ce=Pt,!Xt){nt.next=14;break}return nt.prev=3,nt.next=6,Xt(Pt,$t);case 6:Ce=nt.sent,nt.next=12;break;case 9:nt.prev=9,nt.t0=nt.catch(3),Ce=!1;case 12:if(Ce!==!1){nt.next=14;break}return nt.abrupt("return",{origin:Pt,parsedFile:null,action:null,data:null});case 14:if(on=Be.props.action,typeof on!="function"){nt.next=21;break}return nt.next=18,on(Pt);case 18:Nn=nt.sent,nt.next=22;break;case 21:Nn=on;case 22:if(An=Be.props.data,typeof An!="function"){nt.next=29;break}return nt.next=26,An(Pt);case 26:Dn=nt.sent,nt.next=30;break;case 29:Dn=An;case 30:return bn=((0,Ge.Z)(Ce)==="object"||typeof Ce=="string")&&Ce?Ce:Pt,bn instanceof File?_e=bn:_e=new File([bn],Pt.name,{type:Pt.type}),St=_e,St.uid=Pt.uid,nt.abrupt("return",{origin:Pt,data:Dn,parsedFile:St,action:Nn});case 35:case"end":return nt.stop()}},xt,null,[[3,9]])}));return function(xt,Pt){return $e.apply(this,arguments)}}(),Be.saveFileInput=function($e){Be.fileInput=$e},Be}return(0,se.Z)(ye,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Qe){var Te=this,Ke=Qe.data,$e=Qe.origin,xt=Qe.action,Pt=Qe.parsedFile;if(this._isMounted){var $t=this.props,Xt=$t.onStart,Ce=$t.customRequest,on=$t.name,Nn=$t.headers,An=$t.withCredentials,Dn=$t.method,bn=$e.uid,_e=Ce||b,St={action:xt,filename:on,data:Ke,file:Pt,headers:Nn,withCredentials:An,method:Dn||"post",onProgress:function(nt){var qt=Te.props.onProgress;qt==null||qt(nt,Pt)},onSuccess:function(nt,qt){var Vt=Te.props.onSuccess;Vt==null||Vt(nt,Pt,qt),delete Te.reqs[bn]},onError:function(nt,qt){var Vt=Te.props.onError;Vt==null||Vt(nt,qt,Pt),delete Te.reqs[bn]}};Xt($e),this.reqs[bn]=_e(St)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Qe){var Te=this.reqs;if(Qe){var Ke=Qe.uid?Qe.uid:Qe;Te[Ke]&&Te[Ke].abort&&Te[Ke].abort(),delete Te[Ke]}else Object.keys(Te).forEach(function($e){Te[$e]&&Te[$e].abort&&Te[$e].abort(),delete Te[$e]})}},{key:"render",value:function(){var Qe,Te=this.props,Ke=Te.component,$e=Te.prefixCls,xt=Te.className,Pt=Te.disabled,$t=Te.id,Xt=Te.style,Ce=Te.multiple,on=Te.accept,Nn=Te.capture,An=Te.children,Dn=Te.directory,bn=Te.openFileDialogOnClick,_e=Te.onMouseEnter,St=Te.onMouseLeave,ut=(0,Xe.Z)(Te,ce),nt=Ne()((Qe={},(0,Le.Z)(Qe,$e,!0),(0,Le.Z)(Qe,"".concat($e,"-disabled"),Pt),(0,Le.Z)(Qe,xt,xt),Qe)),qt=Dn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Vt=Pt?{}:{onClick:bn?this.onClick:function(){},onKeyDown:bn?this.onKeyDown:function(){},onMouseEnter:_e,onMouseLeave:St,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ke,(0,he.Z)({},Vt,{className:nt,role:"button",style:Xt}),ae.createElement("input",(0,he.Z)({},(0,a.Z)(ut,{aria:!0,data:!0}),{id:$t,disabled:Pt,type:"file",ref:this.saveFileInput,onClick:function(Ln){return Ln.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:on},qt,{multiple:Ce,onChange:this.onChange},Nn!=null?{capture:Nn}:{})),An)}}]),ye}(ae.Component),De=ze;function et(){}var Ot=function(me){(0,qe.Z)(ye,me);var be=(0,je.Z)(ye);function ye(){var Be;(0,Re.Z)(this,ye);for(var Qe=arguments.length,Te=new Array(Qe),Ke=0;Ke<Qe;Ke++)Te[Ke]=arguments[Ke];return Be=be.call.apply(be,[this].concat(Te)),Be.uploader=void 0,Be.saveUploader=function($e){Be.uploader=$e},Be}return(0,se.Z)(ye,[{key:"abort",value:function(Qe){this.uploader.abort(Qe)}},{key:"render",value:function(){return ae.createElement(De,(0,he.Z)({},this.props,{ref:this.saveUploader}))}}]),ye}(ae.Component);Ot.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:et,onError:et,onSuccess:et,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var zt=Ot,Jt=zt,un=re(5663),_t=re(73935),Kt=re(53124),Tt=re(98866),Wt=re(10110),dn=re(24457),In={icon:function(be,ye){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ye}},{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:be}}]}},name:"file",theme:"twotone"},$n=In,Ee=re(74643),ke=function(be,ye){return ae.createElement(Ee.Z,(0,he.Z)({},be,{ref:ye,icon:$n}))},Ae=ae.forwardRef(ke),ot=re(3407),Oe={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"},ft=Oe,de=function(be,ye){return ae.createElement(Ee.Z,(0,he.Z)({},be,{ref:ye,icon:ft}))},rt=ae.forwardRef(de),Et={icon:function(be,ye){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:be}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ye}},{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:ye}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ye}},{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:be}}]}},name:"picture",theme:"twotone"},yt=Et,Ze=function(be,ye){return ae.createElement(Ee.Z,(0,he.Z)({},be,{ref:ye,icon:yt}))},Me=ae.forwardRef(Ze),we=re(38379),pe=re(57838),Ve=re(33603),Ye=re(96159),st=re(71577);function it(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function mt(me,be){const ye=(0,Pe.Z)(be),Be=ye.findIndex(Qe=>{let{uid:Te}=Qe;return Te===me.uid});return Be===-1?ye.push(me):ye[Be]=me,ye}function Mt(me,be){const ye=me.uid!==void 0?"uid":"name";return be.filter(Be=>Be[ye]===me[ye])[0]}function It(me,be){const ye=me.uid!==void 0?"uid":"name",Be=be.filter(Qe=>Qe[ye]!==me[ye]);return Be.length===be.length?null:Be}const jt=function(){const be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Be=be[be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Be)||[""])[0]},Nt=me=>me.indexOf("image/")===0,ln=me=>{if(me.type&&!me.thumbUrl)return Nt(me.type);const be=me.thumbUrl||me.url||"",ye=jt(be);return/^data:image\//.test(be)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ye)?!0:!(/^data:/.test(be)||ye)},nn=200;function Pn(me){return new Promise(be=>{if(!me.type||!Nt(me.type)){be("");return}const ye=document.createElement("canvas");ye.width=nn,ye.height=nn,ye.style.cssText=`position: fixed; left: 0; top: 0; width: ${nn}px; height: ${nn}px; z-index: 9999; display: none;`,document.body.appendChild(ye);const Be=ye.getContext("2d"),Qe=new Image;if(Qe.onload=()=>{const{width:Te,height:Ke}=Qe;let $e=nn,xt=nn,Pt=0,$t=0;Te>Ke?(xt=Ke*(nn/Te),$t=-(xt-$e)/2):($e=Te*(nn/Ke),Pt=-($e-xt)/2),Be.drawImage(Qe,Pt,$t,$e,xt);const Xt=ye.toDataURL();document.body.removeChild(ye),window.URL.revokeObjectURL(Qe.src),be(Xt)},Qe.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Te=new FileReader;Te.onload=()=>{Te.result&&(Qe.src=Te.result)},Te.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Te=new FileReader;Te.onload=()=>{Te.result&&be(Te.result)},Te.readAsDataURL(me)}else Qe.src=window.URL.createObjectURL(me)})}var en=re(84249),Gt=re(90674),le=re(99569),Fe=re(38703),Ie=re(83062),dt=ae.forwardRef((me,be)=>{let{prefixCls:ye,className:Be,style:Qe,locale:Te,listType:Ke,file:$e,items:xt,progress:Pt,iconRender:$t,actionIconRender:Xt,itemRender:Ce,isImgUrl:on,showPreviewIcon:Nn,showRemoveIcon:An,showDownloadIcon:Dn,previewIcon:bn,removeIcon:_e,downloadIcon:St,onPreview:ut,onDownload:nt,onClose:qt}=me;var Vt,Fn;const{status:Ln}=$e,[Gn,qn]=ae.useState(Ln);ae.useEffect(()=>{Ln!=="removed"&&qn(Ln)},[Ln]);const[oa,ua]=ae.useState(!1);ae.useEffect(()=>{const xn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(xn)}},[]);const ra=$t($e);let Un=ae.createElement("div",{className:`${ye}-icon`},ra);if(Ke==="picture"||Ke==="picture-card"||Ke==="picture-circle")if(Gn==="uploading"||!$e.thumbUrl&&!$e.url){const xn=Ne()(`${ye}-list-item-thumbnail`,{[`${ye}-list-item-file`]:Gn!=="uploading"});Un=ae.createElement("div",{className:xn},ra)}else{const xn=on!=null&&on($e)?ae.createElement("img",{src:$e.thumbUrl||$e.url,alt:$e.name,className:`${ye}-list-item-image`,crossOrigin:$e.crossOrigin}):ra,Cn=Ne()(`${ye}-list-item-thumbnail`,{[`${ye}-list-item-file`]:on&&!on($e)});Un=ae.createElement("a",{className:Cn,onClick:ia=>ut($e,ia),href:$e.url||$e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},xn)}const En=Ne()(`${ye}-list-item`,`${ye}-list-item-${Gn}`),la=typeof $e.linkProps=="string"?JSON.parse($e.linkProps):$e.linkProps,sa=An?Xt((typeof _e=="function"?_e($e):_e)||ae.createElement(en.Z,null),()=>qt($e),ye,Te.removeFile):null,Yn=Dn&&Gn==="done"?Xt((typeof St=="function"?St($e):St)||ae.createElement(Gt.Z,null),()=>nt($e),ye,Te.downloadFile):null,Qn=Ke!=="picture-card"&&Ke!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ne()(`${ye}-list-item-actions`,{picture:Ke==="picture"})},Yn,sa),jn=Ne()(`${ye}-list-item-name`),ga=$e.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jn,title:$e.name},la,{href:$e.url,onClick:xn=>ut($e,xn)}),$e.name),Qn]:[ae.createElement("span",{key:"view",className:jn,onClick:xn=>ut($e,xn),title:$e.name},$e.name),Qn],kt={pointerEvents:"none",opacity:.5},Bn=Nn?ae.createElement("a",{href:$e.url||$e.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:$e.url||$e.thumbUrl?void 0:kt,onClick:xn=>ut($e,xn),title:Te.previewFile},typeof bn=="function"?bn($e):bn||ae.createElement(le.Z,null)):null,Xn=(Ke==="picture-card"||Ke==="picture-circle")&&Gn!=="uploading"&&ae.createElement("span",{className:`${ye}-list-item-actions`},Bn,Gn==="done"&&Yn,sa),{getPrefixCls:Hn}=ae.useContext(Kt.E_),_n=Hn(),ea=ae.createElement("div",{className:En},Un,ga,Xn,oa&&ae.createElement(we.default,{motionName:`${_n}-fade`,visible:Gn==="uploading",motionDeadline:2e3},xn=>{let{className:Cn}=xn;const ia="percent"in $e?ae.createElement(Fe.Z,Object.assign({},Pt,{type:"line",percent:$e.percent,"aria-label":$e["aria-label"],"aria-labelledby":$e["aria-labelledby"]})):null;return ae.createElement("div",{className:Ne()(`${ye}-list-item-progress`,Cn)},ia)})),ta=$e.response&&typeof $e.response=="string"?$e.response:((Vt=$e.error)===null||Vt===void 0?void 0:Vt.statusText)||((Fn=$e.error)===null||Fn===void 0?void 0:Fn.message)||Te.uploadError,ca=Gn==="error"?ae.createElement(Ie.Z,{title:ta,getPopupContainer:xn=>xn.parentNode},ea):ea;return ae.createElement("div",{className:Ne()(`${ye}-list-item-container`,Be),style:Qe,ref:be},Ce?Ce(ca,$e,xt,{download:nt.bind(null,$e),preview:ut.bind(null,$e),remove:qt.bind(null,$e)}):ca)});const wt=(me,be)=>{const{listType:ye="text",previewFile:Be=Pn,onPreview:Qe,onDownload:Te,onRemove:Ke,locale:$e,iconRender:xt,isImageUrl:Pt=ln,prefixCls:$t,items:Xt=[],showPreviewIcon:Ce=!0,showRemoveIcon:on=!0,showDownloadIcon:Nn=!1,removeIcon:An,previewIcon:Dn,downloadIcon:bn,progress:_e={size:[-1,2],showInfo:!1},appendAction:St,appendActionVisible:ut=!0,itemRender:nt,disabled:qt}=me,Vt=(0,pe.Z)(),[Fn,Ln]=ae.useState(!1);ae.useEffect(()=>{ye!=="picture"&&ye!=="picture-card"&&ye!=="picture-circle"||(Xt||[]).forEach(kt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(kt.originFileObj instanceof File||kt.originFileObj instanceof Blob)||kt.thumbUrl!==void 0||(kt.thumbUrl="",Be&&Be(kt.originFileObj).then(Bn=>{kt.thumbUrl=Bn||"",Vt()}))})},[ye,Xt,Be]),ae.useEffect(()=>{Ln(!0)},[]);const Gn=(kt,Bn)=>{if(Qe)return Bn==null||Bn.preventDefault(),Qe(kt)},qn=kt=>{typeof Te=="function"?Te(kt):kt.url&&window.open(kt.url)},oa=kt=>{Ke==null||Ke(kt)},ua=kt=>{if(xt)return xt(kt,ye);const Bn=kt.status==="uploading",Xn=Pt&&Pt(kt)?ae.createElement(Me,null):ae.createElement(Ae,null);let Hn=Bn?ae.createElement(ot.Z,null):ae.createElement(rt,null);return ye==="picture"?Hn=Bn?ae.createElement(ot.Z,null):Xn:(ye==="picture-card"||ye==="picture-circle")&&(Hn=Bn?$e.uploading:Xn),Hn},ra=(kt,Bn,Xn,Hn)=>{const _n={type:"text",size:"small",title:Hn,onClick:ea=>{Bn(),(0,Ye.l$)(kt)&&kt.props.onClick&&kt.props.onClick(ea)},className:`${Xn}-list-item-action`,disabled:qt};if((0,Ye.l$)(kt)){const ea=(0,Ye.Tm)(kt,Object.assign(Object.assign({},kt.props),{onClick:()=>{}}));return ae.createElement(st.ZP,Object.assign({},_n,{icon:ea}))}return ae.createElement(st.ZP,Object.assign({},_n),ae.createElement("span",null,kt))};ae.useImperativeHandle(be,()=>({handlePreview:Gn,handleDownload:qn}));const{getPrefixCls:Un}=ae.useContext(Kt.E_),En=Un("upload",$t),la=Un(),sa=Ne()(`${En}-list`,`${En}-list-${ye}`),Yn=(0,Pe.Z)(Xt.map(kt=>({key:kt.uid,file:kt})));let jn={motionDeadline:2e3,motionName:`${En}-${ye==="picture-card"||ye==="picture-circle"?"animate-inline":"animate"}`,keys:Yn,motionAppear:Fn};const ga=ae.useMemo(()=>{const kt=Object.assign({},(0,Ve.Z)(la));return delete kt.onAppearEnd,delete kt.onEnterEnd,delete kt.onLeaveEnd,kt},[la]);return ye!=="picture-card"&&ye!=="picture-circle"&&(jn=Object.assign(Object.assign({},ga),jn)),ae.createElement("div",{className:sa},ae.createElement(we.CSSMotionList,Object.assign({},jn,{component:!1}),kt=>{let{key:Bn,file:Xn,className:Hn,style:_n}=kt;return ae.createElement(dt,{key:Bn,locale:$e,prefixCls:En,className:Hn,style:_n,file:Xn,items:Xt,progress:_e,listType:ye,isImgUrl:Pt,showPreviewIcon:Ce,showRemoveIcon:on,showDownloadIcon:Nn,removeIcon:An,previewIcon:Dn,downloadIcon:bn,iconRender:ua,actionIconRender:ra,itemRender:nt,onPreview:Gn,onDownload:qn,onClose:oa})}),St&&ae.createElement(we.default,Object.assign({},jn,{visible:ut,forceRender:!0}),kt=>{let{className:Bn,style:Xn}=kt;return(0,Ye.Tm)(St,Hn=>({className:Ne()(Hn.className,Bn),style:Object.assign(Object.assign(Object.assign({},Xn),{pointerEvents:Bn?"none":void 0}),Hn.style)}))}))};var vt=ae.forwardRef(wt),bt=re(14747),Zt=re(33507),Rt=re(67968),an=re(45503),fn=me=>{const{componentCls:be,iconCls:ye}=me;return{[`${be}-wrapper`]:{[`${be}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[be]:{padding:`${me.padding}px 0`},[`${be}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${be}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${be}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${be}-drag-icon`]:{marginBottom:me.margin,[ye]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${be}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${be}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${be}-disabled`]:{cursor:"not-allowed",[`p${be}-drag-icon ${ye},
p${be}-text,
p${be}-hint
`]:{color:me.colorTextDisabled}}}}}},tn=me=>{const{componentCls:be,antCls:ye,iconCls:Be,fontSize:Qe,lineHeight:Te}=me,Ke=`${be}-list-item`,$e=`${Ke}-actions`,xt=`${Ke}-action`,Pt=Math.round(Qe*Te);return{[`${be}-wrapper`]:{[`${be}-list`]:Object.assign(Object.assign({},(0,bt.dF)()),{lineHeight:me.lineHeight,[Ke]:{position:"relative",height:me.lineHeight*Qe,marginTop:me.marginXS,fontSize:Qe,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ke}-name`]:Object.assign(Object.assign({},bt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Te,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[$e]:{[xt]:{opacity:0},[`${xt}${ye}-btn-sm`]:{height:Pt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${xt}:focus-visible,
&.picture ${xt}
`]:{opacity:1},[Be]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Be}`]:{color:me.colorText}},[`${be}-icon ${Be}`]:{color:me.colorTextDescription,fontSize:Qe},[`${Ke}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Qe+me.paddingXS,fontSize:Qe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ke}:hover ${xt}`]:{opacity:1,color:me.colorText},[`${Ke}-error`]:{color:me.colorError,[`${Ke}-name, ${be}-icon ${Be}`]:{color:me.colorError},[$e]:{[`${Be}, ${Be}:hover`]:{color:me.colorError},[xt]:{opacity:1}}},[`${be}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Qt=re(45930),Sn=re(16932);const vn=new Qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new Qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var On=me=>{const{componentCls:be}=me,ye=`${be}-animate-inline`;return[{[`${be}-wrapper`]:{[`${ye}-appear, ${ye}-enter, ${ye}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ye}-appear, ${ye}-enter`]:{animationName:vn},[`${ye}-leave`]:{animationName:yn}}},{[`${be}-wrapper`]:(0,Sn.J$)(me)},vn,yn]},Kn=re(47448),wn=re(84780);const Wn=me=>{const{componentCls:be,iconCls:ye,uploadThumbnailSize:Be,uploadProgressOffset:Qe}=me,Te=`${be}-list`,Ke=`${Te}-item`;return{[`${be}-wrapper`]:{[`
${Te}${Te}-picture,
${Te}${Te}-picture-card,
${Te}${Te}-picture-circle
`]:{[Ke]:{position:"relative",height:Be+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ke}-thumbnail`]:Object.assign(Object.assign({},bt.vS),{width:Be,height:Be,lineHeight:`${Be+me.paddingSM}px`,textAlign:"center",flex:"none",[ye]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ke}-progress`]:{bottom:Qe,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Be+me.paddingXS}},[`${Ke}-error`]:{borderColor:me.colorError,[`${Ke}-thumbnail ${ye}`]:{[`svg path[fill='${Kn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Kn.blue.primary}']`]:{fill:me.colorError}}},[`${Ke}-uploading`]:{borderStyle:"dashed",[`${Ke}-name`]:{marginBottom:Qe}}},[`${Te}${Te}-picture-circle ${Ke}`]:{[`&, &::before, ${Ke}-thumbnail`]:{borderRadius:"50%"}}}}},aa=me=>{const{componentCls:be,iconCls:ye,fontSizeLG:Be,colorTextLightSolid:Qe}=me,Te=`${be}-list`,Ke=`${Te}-item`,$e=me.uploadPicCardSize;return{[`
${be}-wrapper${be}-picture-card-wrapper,
${be}-wrapper${be}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,bt.dF)()),{display:"inline-block",width:"100%",[`${be}${be}-select`]:{width:$e,height:$e,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${be}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${be}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Te}${Te}-picture-card, ${Te}${Te}-picture-circle`]:{[`${Te}-item-container`]:{display:"inline-block",width:$e,height:$e,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Ke}:hover`]:{[`&::before, ${Ke}-actions`]:{opacity:1}},[`${Ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${ye}-eye, ${ye}-download, ${ye}-delete`]:{zIndex:10,width:Be,margin:`0 ${me.marginXXS}px`,fontSize:Be,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ke}-actions, ${Ke}-actions:hover`]:{[`${ye}-eye, ${ye}-download, ${ye}-delete`]:{color:new wn.C(Qe).setAlpha(.65).toRgbString(),"&:hover":{color:Qe}}},[`${Ke}-thumbnail, ${Ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ke}-name`]:{display:"none",textAlign:"center"},[`${Ke}-file + ${Ke}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ke}-uploading`]:{[`&${Ke}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${ye}-eye, ${ye}-download, ${ye}-delete`]:{display:"none"}},[`${Ke}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${be}-wrapper${be}-picture-circle-wrapper`]:{[`${be}${be}-select`]:{borderRadius:"50%"}}}};var ve=me=>{const{componentCls:be}=me;return{[`${be}-rtl`]:{direction:"rtl"}}};const fe=me=>{const{componentCls:be,colorTextDisabled:ye}=me;return{[`${be}-wrapper`]:Object.assign(Object.assign({},(0,bt.Wf)(me)),{[be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${be}-select`]:{display:"inline-block"},[`${be}-disabled`]:{color:ye,cursor:"not-allowed"}})}};var Ue=(0,Rt.Z)("Upload",me=>{const{fontSizeHeading3:be,fontSize:ye,lineHeight:Be,lineWidth:Qe,controlHeightLG:Te}=me,Ke=Math.round(ye*Be),$e=(0,an.TS)(me,{uploadThumbnailSize:be*2,uploadProgressOffset:Ke/2+Qe,uploadPicCardSize:Te*2.55});return[fe($e),fn($e),Wn($e),aa($e),tn($e),On($e),ve($e),(0,Zt.Z)($e)]},me=>({actionsColor:me.colorTextDescription})),ct=function(me,be,ye,Be){function Qe(Te){return Te instanceof ye?Te:new ye(function(Ke){Ke(Te)})}return new(ye||(ye=Promise))(function(Te,Ke){function $e($t){try{Pt(Be.next($t))}catch(Xt){Ke(Xt)}}function xt($t){try{Pt(Be.throw($t))}catch(Xt){Ke(Xt)}}function Pt($t){$t.done?Te($t.value):Qe($t.value).then($e,xt)}Pt((Be=Be.apply(me,be||[])).next())})};const ht=`__LIST_IGNORE_${Date.now()}__`,Yt=(me,be)=>{const{fileList:ye,defaultFileList:Be,onRemove:Qe,showUploadList:Te=!0,listType:Ke="text",onPreview:$e,onDownload:xt,onChange:Pt,onDrop:$t,previewFile:Xt,disabled:Ce,locale:on,iconRender:Nn,isImageUrl:An,progress:Dn,prefixCls:bn,className:_e,type:St="select",children:ut,style:nt,itemRender:qt,maxCount:Vt,data:Fn={},multiple:Ln=!1,action:Gn="",accept:qn="",supportServerRender:oa=!0,rootClassName:ua}=me,ra=ae.useContext(Tt.Z),Un=Ce!=null?Ce:ra,[En,la]=(0,un.Z)(Be||[],{value:ye,postState:Bt=>Bt!=null?Bt:[]}),[sa,Yn]=ae.useState("drop"),Qn=ae.useRef(null);ae.useMemo(()=>{const Bt=Date.now();(ye||[]).forEach((At,gn)=>{!At.uid&&!Object.isFrozen(At)&&(At.uid=`__AUTO__${Bt}_${gn}__`)})},[ye]);const jn=(Bt,At,gn)=>{let Dt=(0,Pe.Z)(At),mn=!1;Vt===1?Dt=Dt.slice(-1):Vt&&(mn=Dt.length>Vt,Dt=Dt.slice(0,Vt)),(0,_t.flushSync)(()=>{la(Dt)});const kn={file:Bt,fileList:Dt};gn&&(kn.event=gn),(!mn||Dt.some(na=>na.uid===Bt.uid))&&(0,_t.flushSync)(()=>{Pt==null||Pt(kn)})},ga=(Bt,At)=>ct(void 0,void 0,void 0,function*(){const{beforeUpload:gn,transformFile:Dt}=me;let mn=Bt;if(gn){const kn=yield gn(Bt,At);if(kn===!1)return!1;if(delete Bt[ht],kn===ht)return Object.defineProperty(Bt,ht,{value:!0,configurable:!0}),!1;typeof kn=="object"&&kn&&(mn=kn)}return Dt&&(mn=yield Dt(mn)),mn}),kt=Bt=>{const At=Bt.filter(mn=>!mn.file[ht]);if(!At.length)return;const gn=At.map(mn=>it(mn.file));let Dt=(0,Pe.Z)(En);gn.forEach(mn=>{Dt=mt(mn,Dt)}),gn.forEach((mn,kn)=>{let na=mn;if(At[kn].parsedFile)mn.status="uploading";else{const{originFileObj:ma}=mn;let Jn;try{Jn=new File([ma],ma.name,{type:ma.type})}catch(La){Jn=new Blob([ma],{type:ma.type}),Jn.name=ma.name,Jn.lastModifiedDate=new Date,Jn.lastModified=new Date().getTime()}Jn.uid=mn.uid,na=Jn}jn(na,Dt)})},Bn=(Bt,At,gn)=>{try{typeof Bt=="string"&&(Bt=JSON.parse(Bt))}catch(kn){}if(!Mt(At,En))return;const Dt=it(At);Dt.status="done",Dt.percent=100,Dt.response=Bt,Dt.xhr=gn;const mn=mt(Dt,En);jn(Dt,mn)},Xn=(Bt,At)=>{if(!Mt(At,En))return;const gn=it(At);gn.status="uploading",gn.percent=Bt.percent;const Dt=mt(gn,En);jn(gn,Dt,Bt)},Hn=(Bt,At,gn)=>{if(!Mt(gn,En))return;const Dt=it(gn);Dt.error=Bt,Dt.response=At,Dt.status="error";const mn=mt(Dt,En);jn(Dt,mn)},_n=Bt=>{let At;Promise.resolve(typeof Qe=="function"?Qe(Bt):Qe).then(gn=>{var Dt;if(gn===!1)return;const mn=It(Bt,En);mn&&(At=Object.assign(Object.assign({},Bt),{status:"removed"}),En==null||En.forEach(kn=>{const na=At.uid!==void 0?"uid":"name";kn[na]===At[na]&&!Object.isFrozen(kn)&&(kn.status="removed")}),(Dt=Qn.current)===null||Dt===void 0||Dt.abort(At),jn(At,mn))})},ea=Bt=>{Yn(Bt.type),Bt.type==="drop"&&($t==null||$t(Bt))};ae.useImperativeHandle(be,()=>({onBatchStart:kt,onSuccess:Bn,onProgress:Xn,onError:Hn,fileList:En,upload:Qn.current}));const{getPrefixCls:ta,direction:ca,upload:xn}=ae.useContext(Kt.E_),Cn=ta("upload",bn),ia=Object.assign(Object.assign({onBatchStart:kt,onError:Hn,onProgress:Xn,onSuccess:Bn},me),{data:Fn,multiple:Ln,action:Gn,accept:qn,supportServerRender:oa,prefixCls:Cn,disabled:Un,beforeUpload:ga,onChange:void 0});delete ia.className,delete ia.style,(!ut||Un)&&delete ia.id;const[Pa,ha]=Ue(Cn),[wa]=(0,Wt.Z)("Upload",dn.Z.Upload),{showRemoveIcon:Sa,showPreviewIcon:fa,showDownloadIcon:pa,removeIcon:va,previewIcon:Lt,downloadIcon:gt}=typeof Te=="boolean"?{}:Te,lt=(Bt,At)=>Te?ae.createElement(vt,{prefixCls:Cn,listType:Ke,items:En,previewFile:Xt,onPreview:$e,onDownload:xt,onRemove:_n,showRemoveIcon:!Un&&Sa,showPreviewIcon:fa,showDownloadIcon:pa,removeIcon:va,previewIcon:Lt,downloadIcon:gt,iconRender:Nn,locale:Object.assign(Object.assign({},wa),on),isImageUrl:An,progress:Dn,appendAction:Bt,appendActionVisible:At,itemRender:qt,disabled:Un}):Bt,pt=Ne()(`${Cn}-wrapper`,_e,ua,ha,xn==null?void 0:xn.className,{[`${Cn}-rtl`]:ca==="rtl",[`${Cn}-picture-card-wrapper`]:Ke==="picture-card",[`${Cn}-picture-circle-wrapper`]:Ke==="picture-circle"}),rn=Object.assign(Object.assign({},xn==null?void 0:xn.style),nt);if(St==="drag"){const Bt=Ne()(ha,Cn,`${Cn}-drag`,{[`${Cn}-drag-uploading`]:En.some(At=>At.status==="uploading"),[`${Cn}-drag-hover`]:sa==="dragover",[`${Cn}-disabled`]:Un,[`${Cn}-rtl`]:ca==="rtl"});return Pa(ae.createElement("span",{className:pt},ae.createElement("div",{className:Bt,style:rn,onDrop:ea,onDragOver:ea,onDragLeave:ea},ae.createElement(Jt,Object.assign({},ia,{ref:Qn,className:`${Cn}-btn`}),ae.createElement("div",{className:`${Cn}-drag-container`},ut))),lt()))}const Mn=Ne()(Cn,`${Cn}-select`,{[`${Cn}-disabled`]:Un}),Tn=(Bt=>ae.createElement("div",{className:Mn,style:Bt},ae.createElement(Jt,Object.assign({},ia,{ref:Qn}))))(ut?void 0:{display:"none"});return Pa(Ke==="picture-card"||Ke==="picture-circle"?ae.createElement("span",{className:pt},lt(Tn,!!ut)):ae.createElement("span",{className:pt},Tn,lt()))};var Ft=ae.forwardRef(Yt),hn=function(me,be){var ye={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&be.indexOf(Be)<0&&(ye[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Be=Object.getOwnPropertySymbols(me);Qe<Be.length;Qe++)be.indexOf(Be[Qe])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[Qe])&&(ye[Be[Qe]]=me[Be[Qe]]);return ye},zn=ae.forwardRef((me,be)=>{var{style:ye,height:Be}=me,Qe=hn(me,["style","height"]);return ae.createElement(Ft,Object.assign({ref:be},Qe,{type:"drag",style:Object.assign(Object.assign({},ye),{height:Be})}))});const Je=Ft;Je.Dragger=zn,Je.LIST_IGNORE=ht;var Ht=Je},64217:function(xe,at,re){"use strict";re.d(at,{Z:function(){return qe}});var ae=re(1413),Pe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,We=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ne="".concat(Pe," ").concat(We).split(/[\s\n]+/),he="aria-",Re="data-";function se(je,Le){return je.indexOf(Le)===0}function qe(je){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;Le===!1?Xe={aria:!0,data:!0,attr:!0}:Le===!0?Xe={aria:!0}:Xe=(0,ae.Z)({},Le);var He={};return Object.keys(je).forEach(function(Ge){(Xe.aria&&(Ge==="role"||se(Ge,he))||Xe.data&&se(Ge,Re)||Xe.attr&&Ne.includes(Ge))&&(He[Ge]=je[Ge])}),He}}}]);